From 9c338a3dc3f60b18a113777d48ff7b3a7e59feeb Mon Sep 17 00:00:00 2001 From: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Date: Sat, 16 Mar 2024 16:10:51 +0000 Subject: [PATCH 01/11] Edits the descriptions of the MMI and SMMI, adds extended description to both (#24343) * DEEP LORE! Edits the descriptions of the MMI and SMMI and gives them extended descriptions. * Spiderbots exist I forgot about them but they do be real Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> * Update code/modules/mob/living/brain/MMI.dm --------- Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> --- code/modules/mob/living/brain/MMI.dm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/brain/MMI.dm b/code/modules/mob/living/brain/MMI.dm index c70327e5ba98..5b0293c0bb23 100644 --- a/code/modules/mob/living/brain/MMI.dm +++ b/code/modules/mob/living/brain/MMI.dm @@ -1,6 +1,7 @@ /obj/item/mmi name = "\improper Man-Machine Interface" - desc = "The Warrior's bland acronym, MMI, obscures the true horror of this monstrosity." + desc = "A compact, highly portable self-contained life support system, capable of housing a single brain and allowing it to seamlessly interface with whatever it is installed into. \ + It can be installed into a cyborg shell, AI core, mech, spiderbot, or an Integrated Robotic Chassis' chest cavity." icon = 'icons/obj/assemblies.dmi' icon_state = "mmi_empty" w_class = WEIGHT_CLASS_NORMAL @@ -28,6 +29,15 @@ var/next_possible_ghost_ping //Used by syndie MMIs, stores the master's mind UID for later referencing var/master_uid = null + /// Extended description on examine_more + var/extended_desc = "Development of Man-Machine Interfaces can be dated all the way back to the late 20th century within the Sol system, but the first viable designs didn't emerge until 2408 when Zeng-Hu Pharmaceuticals and Bishop Cybernetics unveiled a co-developed unit and established dominance over the niche market that persists into the present day. \ + The brain is submerged in a preservation fluid rich in mannitol, mitocholide, dissolved oxygen (or functional equivalent in other species) as well as a carefully tuned mixture of nutrients, hormones, peptides, and various other essential substances produced by a specialised chemical synthesiser. \ + A non-invasive neural interface uses a combination of targeted magnetic pulses, micro-electric discharges, and a grid of highly sensitive EMF probes allow a two-way connection between the MMI and the brain. On-board microphones, cameras, and a speaker provide basic sensory input and a method of communication, which can be expanded with an optional radio upgrade. Any further functionality must be provided by whatever the MMI is installed into. \ + Brains housed inside an MMI are effectively biologically immortal, provided the unit remains powered." + +/obj/item/mmi/examine_more(mob/user) + . = ..() + . += extended_desc /obj/item/mmi/attackby(obj/item/O as obj, mob/user as mob, params) if(istype(O, /obj/item/organ/internal/brain/golem)) @@ -289,10 +299,14 @@ /obj/item/mmi/syndie name = "\improper Syndicate Man-Machine Interface" - desc = "Syndicate's own brand of MMI. Mindslaves any brain inserted into it for as long as it's in. Cyborgs made with this MMI will be slaved to the owner. Does not fit into NT AI cores." + desc = "The Syndicate's own brand of MMI. Mindslaves any brain inserted into it for as long as it's inside. Cyborgs, mechs, spiderbots, or IRCs made with this MMI will be slaved to the owner. Does not fit into NT AI cores. \ + Cyborgs will appear to be linked to an AI (if present). If someone attempts to detonate the cyborg, it will automatically block the attempt and then disconnect from the AI. No emagged equipment is provided." origin_tech = "biotech=4;programming=4;syndicate=2" syndiemmi = TRUE mmi_item_name = "Syndicate Man-Machine Interface" + extended_desc = "Before the development of the mindslave implant by Cybersun, they first prototyped the technology using test subjects in MMIs. The unfettered access given to the user's brain made the task of delivering the memetic payloads trivial, allowing Cybersun's R&D to perfect their brainwashing techniques before moving on to a miniaturised implant. \ + Whilst these specialty MMIs are rarely used owing to the far greater applicability and convenience of the mindslave implant, they do see occasional employment by undercover agents that wish to stealthily convert the AI-slaved cyborgs of Nanotrasen. \ + Just like the mindslave implant, these are extremely illegal in most regions of space. Simple possession (to say nothing of actual use) generally warrants a very long prison sentence." /obj/item/mmi/syndie/attackby(obj/item/O, mob/user, params) if(!master_uid && ishuman(user) && user.mind && istype(O,/obj/item/organ/internal/brain)) From 4cf311cbf20ff13c957804a617ac4e11da71b758 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Sat, 16 Mar 2024 11:12:09 -0500 Subject: [PATCH 02/11] Reworks last resort. Reverts #23992 (#24389) * Reworks last resort. Reverts #23992 * forgot to push these * projectiles no longer pass over headslugs --- .../changeling/changeling_power.dm | 3 --- .../changeling/datum_changeling.dm | 4 --- .../antagonists/changeling/powers/absorb.dm | 4 --- .../changeling/powers/become_headslug.dm | 25 +++++++++++++------ .../antagonists/changeling/powers/revive.dm | 4 --- .../living/simple_animal/hostile/headslug.dm | 7 ++++-- 6 files changed, 22 insertions(+), 25 deletions(-) diff --git a/code/modules/antagonists/changeling/changeling_power.dm b/code/modules/antagonists/changeling/changeling_power.dm index abb6ed1f284e..b5d08685e4e3 100644 --- a/code/modules/antagonists/changeling/changeling_power.dm +++ b/code/modules/antagonists/changeling/changeling_power.dm @@ -83,9 +83,6 @@ if(HAS_TRAIT(user, TRAIT_FAKEDEATH) && !bypass_fake_death) to_chat(user, "We are incapacitated.") return FALSE - if(!cling.can_use_powers) - to_chat(owner, "Our cells are repairing themselves, we are unable to use our powers!") - return FALSE return TRUE // Transform the target to the chosen dna. Used in transform.dm and tiny_prick.dm (handy for changes since it's the same thing done twice) diff --git a/code/modules/antagonists/changeling/datum_changeling.dm b/code/modules/antagonists/changeling/datum_changeling.dm index a507ad5cfa36..f8c39e74fd9b 100644 --- a/code/modules/antagonists/changeling/datum_changeling.dm +++ b/code/modules/antagonists/changeling/datum_changeling.dm @@ -48,10 +48,6 @@ var/datum/action/changeling/sting/chosen_sting /// If the changeling is in the process of regenerating from their fake death. var/regenerating = FALSE - /// Did changeling use headslug? - var/headslugged = FALSE - /// Can you use abilities due to a recent revival? - var/can_use_powers = TRUE blurb_text_color = COLOR_PURPLE blurb_text_outline_width = 1 diff --git a/code/modules/antagonists/changeling/powers/absorb.dm b/code/modules/antagonists/changeling/powers/absorb.dm index eb2b08c67caa..1674c5729cfa 100644 --- a/code/modules/antagonists/changeling/powers/absorb.dm +++ b/code/modules/antagonists/changeling/powers/absorb.dm @@ -86,10 +86,6 @@ target_cling.absorbed_dna.len = 1 target_cling.absorbed_count = 0 - if(cling.headslugged) - cling.headslugged = FALSE - to_chat(user, "By absorbing [target], we are once again strong enough to turn into a headslug.") - cling.chem_charges = min(cling.chem_charges + 10, cling.chem_storage) cling.is_absorbing = FALSE diff --git a/code/modules/antagonists/changeling/powers/become_headslug.dm b/code/modules/antagonists/changeling/powers/become_headslug.dm index 06301121e983..c6e87864784d 100644 --- a/code/modules/antagonists/changeling/powers/become_headslug.dm +++ b/code/modules/antagonists/changeling/powers/become_headslug.dm @@ -1,24 +1,33 @@ /datum/action/changeling/headslug name = "Last Resort" - desc = "We sacrifice our current body in a moment of need, placing us in control of a vessel that can plant our likeness in a new host. Costs 20 chemicals. We will need to absorb someone to use this ability again." - helptext = "We will be placed in control of a small, fragile creature. We may attack a corpse like this to plant an egg which will slowly mature into a new form for us. This ability is available only once per absorption." + desc = "We sacrifice our current body in a moment of need, placing us in control of a vessel that can plant our likeness in a new host. Costs 20 chemicals." + helptext = "We will be placed in control of a small, fragile creature. We may attack a corpse like this to plant an egg which will slowly mature into a new form for us." button_icon_state = "last_resort" chemical_cost = 20 + dna_cost = 2 req_human = TRUE req_stat = DEAD bypass_fake_death = TRUE - power_type = CHANGELING_INNATE_POWER + power_type = CHANGELING_PURCHASABLE_POWER + category = /datum/changeling_power_category/defence /datum/action/changeling/headslug/try_to_sting(mob/user, mob/target) - if(cling.headslugged) - to_chat(user, "We need to absorb a humanoid to headslug again.") - return if(tgui_alert(user, "Are you sure you wish to do this? This action cannot be undone.", "Sting", list("Yes", "No")) != "Yes") return - cling.headslugged = TRUE ..() -/datum/action/changeling/headslug/sting_action(mob/user) +/datum/action/changeling/headslug/sting_action(mob/living/user) + user.Weaken(30 SECONDS) + user.do_jitter_animation(1000, -1) // jitter until they are gibbed + user.visible_message("A loud crack erupts from [user], followed by a hiss.") + playsound(get_turf(user), "bonebreak", 75, TRUE) + playsound(get_turf(user), 'sound/machines/hiss.ogg', 75, TRUE) + addtimer(CALLBACK(src, PROC_REF(become_headslug), user), 5 SECONDS) + var/matrix/M = user.transform + M.Scale(1.8, 1.2) + animate(user, time = 5 SECONDS, transform = M, easing = SINE_EASING) + +/datum/action/changeling/headslug/proc/become_headslug(mob/user) var/datum/mind/M = user.mind var/list/organs = user.get_organs_zone("head", 1) diff --git a/code/modules/antagonists/changeling/powers/revive.dm b/code/modules/antagonists/changeling/powers/revive.dm index f5fc56bb4959..20e4c7933302 100644 --- a/code/modules/antagonists/changeling/powers/revive.dm +++ b/code/modules/antagonists/changeling/powers/revive.dm @@ -11,10 +11,6 @@ if(HAS_TRAIT(user, TRAIT_UNREVIVABLE)) to_chat(user, "Something is preventing us from regenerating, we will need to revive at another point.") return FALSE - - cling.can_use_powers = FALSE - addtimer(VARSET_CALLBACK(cling, can_use_powers, TRUE), 10 SECONDS) - REMOVE_TRAIT(user, TRAIT_FAKEDEATH, CHANGELING_TRAIT) for(var/obj/item/grab/G in user.grabbed_by) var/mob/living/carbon/M = G.assailant diff --git a/code/modules/mob/living/simple_animal/hostile/headslug.dm b/code/modules/mob/living/simple_animal/hostile/headslug.dm index 19137beaac9e..be34f9ff999a 100644 --- a/code/modules/mob/living/simple_animal/hostile/headslug.dm +++ b/code/modules/mob/living/simple_animal/hostile/headslug.dm @@ -1,5 +1,5 @@ -#define EGG_INCUBATION_DEAD_CYCLE 60 -#define EGG_INCUBATION_LIVING_CYCLE 120 +#define EGG_INCUBATION_DEAD_CYCLE 120 +#define EGG_INCUBATION_LIVING_CYCLE 200 /mob/living/simple_animal/hostile/headslug name = "headslug" desc = "Absolutely not de-beaked or harmless. Keep away from corpses." @@ -59,6 +59,9 @@ to_chat(src, "With our egg laid, our death approaches rapidly...") addtimer(CALLBACK(src, PROC_REF(death)), 25 SECONDS) +/mob/living/simple_animal/hostile/headslug/projectile_hit_check(obj/item/projectile/P) + return (stat || FALSE) + /obj/item/organ/internal/body_egg/changeling_egg name = "changeling egg" desc = "Twitching and disgusting." From dcb0167ce8aa24764247bee26aedc4d8cd4706a6 Mon Sep 17 00:00:00 2001 From: Aylong <69762909+AyIong@users.noreply.github.com> Date: Sat, 16 Mar 2024 18:12:45 +0200 Subject: [PATCH 03/11] BSA UI size fix & TGUI input list (#24500) * BSA UI fix & TGUI input list * Rebuild --- code/modules/station_goals/bsa.dm | 6 +- .../interfaces/BlueSpaceArtilleryControl.js | 80 ++++++++++--------- tgui/public/tgui.bundle.js | 2 +- 3 files changed, 47 insertions(+), 41 deletions(-) diff --git a/code/modules/station_goals/bsa.dm b/code/modules/station_goals/bsa.dm index d368a88f0ef1..e80a76b43b05 100644 --- a/code/modules/station_goals/bsa.dm +++ b/code/modules/station_goals/bsa.dm @@ -376,8 +376,10 @@ var/list/options = gps_locators if(area_aim) options += target_all_areas ? SSmapping.ghostteleportlocs : SSmapping.teleportlocs - var/V = input(user,"Select target", "Select target",null) in options|null - target = options[V] + var/choose = tgui_input_list(user, "Select target", "Target", options) + if(!choose) + return + target = options[choose] /obj/machinery/computer/bsa_control/proc/get_target_name() if(isarea(target)) diff --git a/tgui/packages/tgui/interfaces/BlueSpaceArtilleryControl.js b/tgui/packages/tgui/interfaces/BlueSpaceArtilleryControl.js index 3e766e746d7f..45af08e0e912 100644 --- a/tgui/packages/tgui/interfaces/BlueSpaceArtilleryControl.js +++ b/tgui/packages/tgui/interfaces/BlueSpaceArtilleryControl.js @@ -1,5 +1,5 @@ import { useBackend } from '../backend'; -import { Button, LabeledList, Section, Box, ProgressBar } from '../components'; +import { Button, LabeledList, Section, Stack } from '../components'; import { Window } from '../layouts'; export const BlueSpaceArtilleryControl = (props, context) => { @@ -25,44 +25,48 @@ export const BlueSpaceArtilleryControl = (props, context) => { ); } return ( - + -
- - {data.notice && ( - - {data.notice} - - )} - {alertStatus} - -
+ + +
+ + {data.notice && ( + + {data.notice} + + )} + {alertStatus} + +
+
+
); diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 65e0c44d4861..a92f6a0cafb6 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -234,7 +234,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var V=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],y={},p=function(s){if(s===16)return"Shift";if(s===17)return"Ctrl";if(s===18)return"Alt";if(s===33)return"Northeast";if(s===34)return"Southeast";if(s===35)return"Southwest";if(s===36)return"Northwest";if(s===37)return"West";if(s===38)return"North";if(s===39)return"East";if(s===40)return"South";if(s===45)return"Insert";if(s===46)return"Delete";if(s>=48&&s<=57||s>=65&&s<=90)return String.fromCharCode(s);if(s>=96&&s<=105)return"Numpad"+(s-96);if(s>=112&&s<=123)return"F"+(s-111);if(s===188)return",";if(s===189)return"-";if(s===190)return"."},l=function(s){var N=String(s);if(N==="Ctrl+F5"||N==="Ctrl+R"){location.reload();return}if(N!=="Ctrl+F"&&!(s.event.defaultPrevented||s.isModifierKey()||S.includes(s.code))){N==="F5"&&(s.event.preventDefault(),s.event.returnValue=!1);var C=p(s.code);if(C){var v=k[C];if(v)return V.debug("macro",v),Byond.command(v);if(s.isDown()&&!y[C]){y[C]=!0;var h='Key_Down "'+C+'"';return V.debug(h),Byond.command(h)}if(s.isUp()&&y[C]){y[C]=!1;var g='Key_Up "'+C+'"';return V.debug(g),Byond.command(g)}}}},c=r.acquireHotKey=function(){function u(s){S.push(s)}return u}(),m=r.releaseHotKey=function(){function u(s){var N=S.indexOf(s);N>=0&&S.splice(N,1)}return u}(),i=r.releaseHeldKeys=function(){function u(){for(var s=0,N=Object.keys(y);s=75?c="green":l.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:l.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,l.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(m,i){return(0,e.createComponentVNode)(2,t.Box,{children:m},i)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){function m(){return p("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){function m(){return p("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||l.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return p("wipe")}return m}()})})]})})})]})})})}return V}()},46817:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AIFixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;if(l.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(l.stat===2||l.stat===null)&&(c=!1);var m=null;l.integrity>=75?m="green":l.integrity>=25?m="yellow":m="red";var i=!0;return l.integrity>=100&&l.stat!==2&&(i=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:l.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(d,u){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},u)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!i||l.active,content:!i||l.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},20420:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),V=r.APC=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return p}(),k={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"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.locked&&!d.siliconUser,s=d.normallyLocked,N=k[d.externalPower]||k[0],C=k[d.chargingStatus]||k[0],v=d.powerChannels||[],h=S[d.malfStatus]||S[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:N.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){function b(){return i("breaker")}return b}()}),children:["[ ",N.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:u,onClick:function(){function b(){return i("charge")}return b}()}),children:["[ ",C.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!u&&(b.status===1||b.status===3),disabled:u,onClick:function(){function L(){return i("channel",B.auto)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!u&&b.status===2,disabled:u,onClick:function(){function L(){return i("channel",B.on)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!u&&b.status===0,disabled:u,onClick:function(){function L(){return i("channel",B.off)}return L}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return i(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return i("overload")}return b}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:u,onClick:function(){function b(){return i("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:u,onClick:function(){function b(){return i("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return i("toggle_nightshift")}return b}()})})]})})],4)}},16822:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ATM=function(){function m(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.view_screen,v=N.authenticated_account,h=N.ticks_left_locked_down,g=N.linked_db,b;if(h>0)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!g)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(C){case 1:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,l);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return m}(),V=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.machine_id,v=N.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"eject",onClick:function(){function h(){return s("insert_card")}return h}()})})})]})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:C===0,onClick:function(){function v(){return s("change_security_level",{new_security_level:1})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:C===2,onClick:function(){function v(){return s("change_security_level",{new_security_level:2})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=(0,a.useLocalState)(d,"targetAccNumber",0),v=C[0],h=C[1],g=(0,a.useLocalState)(d,"fundsAmount",0),b=g[0],B=g[1],L=(0,a.useLocalState)(d,"purpose",0),w=L[0],T=L[1],A=N.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,O){return h(O)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,O){return B(O)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,O){return T(O)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return s("transfer",{target_acc_number:v,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=(0,a.useLocalState)(d,"fundsAmount",0),v=C[0],h=C[1],g=N.owner_name,b=N.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return s("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return s("withdrawal",{funds_amount:v})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return s("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return s("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return s("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return s("balance_statement")}return B}()})})]})],4)},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=(0,a.useLocalState)(d,"accountID",null),v=C[0],h=C[1],g=(0,a.useLocalState)(d,"accountPin",null),b=g[0],B=g[1],L=N.machine_id,w=N.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return s("attempt_auth",{account_num:v,account_pin:b})}return T}()})})]})})},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),C.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function C(){return s("view_screen",{view_screen:0})}return C}()})}},90698:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(99753),V=n(84947),k=n(51185),S=n(69774),y=r.AccountsUplinkTerminal=function(){function N(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=b.loginState,L=b.currentPage,w;if(B.logged_in)L===1?w=(0,e.createComponentVNode)(2,l):L===2?w=(0,e.createComponentVNode)(2,u):L===3&&(w=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return N}(),p=function(C,v){var h=(0,t.useBackend)(v),g=h.data,b=(0,t.useLocalState)(v,"tabIndex",0),B=b[0],L=b[1],w=g.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return L(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return L(1)}return T}(),children:"Department Accounts"})]})})})},l=function(C,v){var h=(0,t.useLocalState)(v,"tabIndex",0),g=h[0];switch(g){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=b.accounts,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],O=(0,t.useLocalState)(v,"sortOrder",!0),R=O[0],M=O[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(D){return D.owner_name+"|"+D.account_number+"|"+D.suspended+"|"+D.money})).sort(function(D,j){var U=R?1:-1;return D[x].localeCompare(j[x])*U}).map(function(D){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+D.suspended,onClick:function(){function j(){return g("view_account_detail",{account_num:D.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",D.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",D.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.money})]},D.account_number)})]})})})]})},m=function(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+L.suspended,onClick:function(){function w(){return g("view_account_detail",{account_num:L.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",L.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",L.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.money})]},L.account_number)})]})})})})},i=function(C,v){var h=(0,t.useLocalState)(v,"sortId","name"),g=h[0],b=h[1],B=(0,t.useLocalState)(v,"sortOrder",!0),L=B[0],w=B[1],T=C.id,A=C.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:g!==T&&"transparent",width:"100%",onClick:function(){function x(){g===T?w(!L):(b(T),w(!0))}return x}(),children:[A,g===T&&(0,e.createComponentVNode)(2,o.Icon,{name:L?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=b.is_printing,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return g("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},u=function(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=b.account_number,L=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+L,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function O(){return g("back")}return O}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function O(){return g("set_account_pin",{account_number:B})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function O(){return g("toggle_suspension")}return O}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:O.is_deposit?"green":"red",children:["$",O.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.target_name})]},O)})]})})})]})},s=function(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=(0,t.useLocalState)(v,"accName",""),L=B[0],w=B[1],T=(0,t.useLocalState)(v,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return g("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(O,R){return w(R)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(O,R){return x(R)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return g("finalise_create_account",{holder_name:L,starting_funds:A})}return E}()})]})}},26354:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=f[c.power.main]||f[0],i=f[c.power.backup]||f[0],d=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function u(){return l("disrupt-main")}return u}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:i.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function u(){return l("disrupt-backup")}return u}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function u(){return l("shock-restore")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function u(){return l("shock-temp")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function u(){return l("shock-perm")}return u}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function u(){return l("idscan-toggle")}return u}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function u(){return l("emergency-toggle")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function u(){return l("bolt-toggle")}return u}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function u(){return l("light-toggle")}return u}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function u(){return l("safe-toggle")}return u}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function u(){return l("speed-toggle")}return u}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function u(){return l("open-close")}return u}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},26673:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),V=r.AirAlarm=function(){function d(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),k=function(u){return u===0?"green":u===1?"orange":"red"},S=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.air,g=v.mode,b=v.atmos_alarm,B=v.locked,L=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function x(){return C("mode",{mode:g===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return C("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return C("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:L?"Reset Alarm":"Activate Alarm",selected:L,onClick:function(){function x(){return C(L?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return C("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return C("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return C("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},y=function(u,s){var N=(0,a.useLocalState)(s,"tabIndex",0),C=N[0],v=N[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(u,s){var N=(0,a.useLocalState)(s,"tabIndex",0),C=N[0],v=N[1];switch(C){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,i);default:return"WE SHOULDN'T BE HERE!"}},l=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.vents;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function b(){return C("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction?"Blowing":"Siphoning",icon:g.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return C("command",{cmd:"direction",val:!g.direction,id_tag:g.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function b(){return C("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function b(){return C("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return C("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return C("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return b}()})]})]})},g.name)})},c=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.scrubbers;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function b(){return C("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return C("command",{cmd:"scrubbing",val:!g.scrubbing,id_tag:g.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return C("command",{cmd:"widenet",val:!g.widenet,id_tag:g.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function b(){return C("command",{cmd:"co2_scrub",val:!g.filter_co2,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function b(){return C("command",{cmd:"tox_scrub",val:!g.filter_toxins,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function b(){return C("command",{cmd:"n2o_scrub",val:!g.filter_n2o,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function b(){return C("command",{cmd:"o2_scrub",val:!g.filter_o2,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function b(){return C("command",{cmd:"n2_scrub",val:!g.filter_n2,id_tag:g.id_tag})}return b}()})]})]})},g.name)})},m=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.modes,g=v.presets,b=v.emagged,B=v.mode,L=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return C("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===L,onClick:function(){function T(){return C("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},i=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return C("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},g.name)})]})})}},98565:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AirlockAccessController=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.exterior_status,m=l.interior_status,i=l.processing,d,u;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:i,onClick:function(){function s(){return p("force_ext")}return s}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:i,onClick:function(){function s(){return p("cycle_ext_door")}return s}()}),m==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:i,color:m==="open"?"red":i?"yellow":null,onClick:function(){function s(){return p("force_int")}return s}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:i,onClick:function(){function s(){return p("cycle_int_door")}return s}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,u]})})]})})}return V}()},76385:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=1,k=2,S=4,y=8,p=r.AirlockElectronics=function(){function m(i,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})})}return m}(),l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:C&S?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:C&k?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:C&y?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:C&V?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:V})}return v}()})})]})]})})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.selected_accesses,v=N.one_access,h=N.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function g(){return s("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return s("set_one_access",{access:"all"})}return g}()})],4),accesses:h,selectedList:C,accessMod:function(){function g(b){return s("set",{access:b})}return g}(),grantAll:function(){function g(){return s("grant_all")}return g}(),denyAll:function(){function g(){return s("clear_all")}return g}(),grantDep:function(){function g(b){return s("grant_region",{region:b})}return g}(),denyDep:function(){function g(b){return s("deny_region",{region:b})}return g}()})}},55666:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(28823),a=n(2146),t=n(91819),o=n(31068),f=n(2971),V=n(84947),k=-1,S=1,y=r.AlertModal=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.autofocus,C=s.buttons,v=C===void 0?[]:C,h=s.large_buttons,g=s.message,b=g===void 0?"":g,B=s.timeout,L=s.title,w=(0,t.useLocalState)(i,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(v.length>2?100:0),O=function(){function R(M){T===0&&M===k?A(v.length-1):T===v.length-1&&M===S?A(0):A(T+M)}return R}();return(0,e.createComponentVNode)(2,V.Window,{title:L,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function R(M){var D=window.event?M.which:M.keyCode;D===o.KEY_SPACE||D===o.KEY_ENTER?u("choose",{choice:v[T]}):D===o.KEY_ESCAPE?u("cancel"):D===o.KEY_LEFT?(M.preventDefault(),O(k)):(D===o.KEY_TAB||D===o.KEY_RIGHT)&&(M.preventDefault(),O(S))}return R}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!N&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=u.buttons,N=s===void 0?[]:s,C=u.large_buttons,v=u.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:N==null?void 0:N.map(function(g,b){return C&&N.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:g,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:C?1:0,children:(0,e.createComponentVNode)(2,l,{button:g,id:b.toString(),selected:h===b})},b)})})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.large_buttons,C=m.button,v=m.selected,h=C.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:N?1:0,pt:N?.33:0,content:C,fluid:!!N,onClick:function(){function g(){return u("choose",{choice:C})}return g}(),selected:v,textAlign:"center",height:!!N&&2,width:!N&&h})}},16504:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AppearanceChanger=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.change_race,i=c.species,d=c.specimen,u=c.change_gender,s=c.gender,N=c.has_gender,C=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,g=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,L=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,O=c.head_accessory_styles,R=c.head_accessory_style,M=c.change_hair,D=c.hair_styles,j=c.hair_style,U=c.change_hair_gradient,W=c.change_facial_hair,K=c.facial_hair_styles,G=c.facial_hair_style,z=c.change_head_markings,Y=c.head_marking_styles,$=c.head_marking_style,Q=c.change_body_markings,re=c.body_marking_styles,ae=c.body_marking_style,de=c.change_tail_markings,ve=c.tail_marking_styles,ye=c.tail_marking_style,Le=c.change_body_accessory,pe=c.body_accessory_styles,ne=c.body_accessory_style,ce=c.change_alt_head,q=c.alt_head_styles,se=c.alt_head_style,me=!1;return(C||v||h||g||b||B||L||w||T||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:i.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===d,onClick:function(){function be(){return l("race",{race:te.specimen})}return be}()},te.specimen)})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:s==="male",onClick:function(){function te(){return l("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:s==="female",onClick:function(){function te(){return l("gender",{gender:"female"})}return te}()}),!N&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:s==="plural",onClick:function(){function te(){return l("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,V),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===R,onClick:function(){function be(){return l("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:D.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===j,onClick:function(){function be(){return l("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return l("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return l("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return l("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return l("hair_gradient_alpha")}return te}()})]}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===G,onClick:function(){function be(){return l("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:Y.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===$,onClick:function(){function be(){return l("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!Q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:re.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===ae,onClick:function(){function be(){return l("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!de&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:ve.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===ye,onClick:function(){function be(){return l("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!Le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:pe.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===ne,onClick:function(){function be(){return l("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===se,onClick:function(){function be(){return l("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(i){return!!c[i.key]&&(0,e.createComponentVNode)(2,t.Button,{content:i.text,onClick:function(){function d(){return l(i.action)}return d}()},i.key)})})}},77280:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosAlertConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.priority||[],m=l.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(i){return(0,e.createVNode)(1,"li","color-bad",i,0,null,i)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(i){return(0,e.createVNode)(1,"li","color-average",i,0,null,i)})],0)})})})}return V}()},66274:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(99753),f=n(84947),V=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=(0,a.useLocalState)(m,"tabIndex",0),N=s[0],C=s[1],v=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:N===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===0,onClick:function(){function h(){return C(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===1,onClick:function(){function h(){return C(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(N)]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),s.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:N.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(N.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function C(){return d("open_alarm",{aref:N.ref})}return C}()})})]},N.name)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.data,u=(0,a.useLocalState)(m,"zoom",1),s=u[0],N=u[1],C=d.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function v(h){return N(h)}return v}(),children:C.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:v.x,y:v.y,zoom:s,icon:"circle",tooltip:v.name,color:k(v.danger)},v.ref)})})})}},90588:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosFilter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.on,m=l.pressure,i=l.max_pressure,d=l.filter_type,u=l.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return p("min_pressure")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:i,value:m,onDrag:function(){function s(N,C){return p("custom_pressure",{pressure:C})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return p("max_pressure")}return s}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Button,{selected:s.gas_type===d,content:s.label,onClick:function(){function N(){return p("set_filter",{filter:s.gas_type})}return N}()},s.label)})})]})})})})}return V}()},87486:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosMixer=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.on,i=c.pressure,d=c.max_pressure,u=c.node1_concentration,s=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function N(){return l("power")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:i===0,width:2.2,onClick:function(){function N(){return l("min_pressure")}return N}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:i,onDrag:function(){function N(C,v){return l("custom_pressure",{pressure:v})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:i===d,width:2.2,onClick:function(){function N(){return l("max_pressure")}return N}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:u}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:s})]})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.node_name,i=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:i===0,onClick:function(){function d(){return l("set_node",{node_name:m,concentration:(i-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:i,onChange:function(){function d(u,s){return l("set_node",{node_name:m,concentration:s/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:i===100,onClick:function(){function d(){return l("set_node",{node_name:m,concentration:(i+10)/100})}return d}()})]})}},46714:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosPump=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.on,m=l.rate,i=l.max_rate,d=l.gas_unit,u=l.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return p("min_rate")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:u,minValue:0,maxValue:i,value:m,onDrag:function(){function s(N,C){return p("custom_rate",{rate:C})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return p("max_rate")}return s}()})]})]})})})})}return V}()},66032:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(58331),f=n(30381),V=n(84947),k=r.AtmosTankControl=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.sensors||{};return(0,e.createComponentVNode)(2,V.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[Object.keys(i).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(i[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[i[d].pressure," kpa"]}):"",Object.keys(i[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[i[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(u){return Object.keys(i[d]).indexOf(u)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(u),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(u),value:i[d][u],minValue:0,maxValue:100,children:(0,o.toFixed)(i[d][u],2)+"%"})},(0,f.getGasLabel)(u)):""})]})},d)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function d(u,s){return c("set_pressure",{dev:"inlet",val:s})}return d}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function d(u,s){return c("set_pressure",{dev:"outlet",val:s})}return d}()})})]})}):""]})})}return S}()},62343:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),V=n(84947),k=n(37843),S=function(l,c,m,i){return l.requirements===null?!0:!(l.requirements.metal*i>c||l.requirements.glass*i>m)},y=r.Autolathe=function(){function p(l,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,u=d.total_amount,s=d.max_amount,N=d.metal_amount,C=d.glass_amount,v=d.busyname,h=d.busyamt,g=d.showhacked,b=d.buildQueue,B=d.buildQueueLen,L=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),D=M[0],j=M[1],U=(0,k.createSearch)(D,function(z){return z.name}),W="";B>0&&(W=b.map(function(z,Y){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[Y][0],onClick:function(){function $(){return i("remove_from_queue",{remove_from_queue:b.indexOf(z)+1})}return $}()},z)},Y)}));var K=(0,a.flow)([(0,t.filter)(function(z){return(z.category.indexOf(A)>-1||D)&&(d.showhacked||!z.hacked)}),D&&(0,t.filter)(U),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(L),G="Build";return D?G="Results for: '"+D+"':":A&&(G="Build ("+A+")"),(0,e.createComponentVNode)(2,V.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:G,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function z(Y){return x(Y)}return z}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(Y,$){return j($)}return z}(),mb:1}),K.map(function(z){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+z.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===1,disabled:!S(z,d.metal_amount,d.glass_amount,1),onClick:function(){function Y(){return i("make",{make:z.uid,multiplier:1})}return Y}(),children:(0,k.toTitleCase)(z.name)}),z.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===10,disabled:!S(z,d.metal_amount,d.glass_amount,10),onClick:function(){function Y(){return i("make",{make:z.uid,multiplier:10})}return Y}(),children:"10x"}),z.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===25,disabled:!S(z,d.metal_amount,d.glass_amount,25),onClick:function(){function Y(){return i("make",{make:z.uid,multiplier:25})}return Y}(),children:"25x"}),z.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===z.max_multiplier,disabled:!S(z,d.metal_amount,d.glass_amount,z.max_multiplier),onClick:function(){function Y(){return i("make",{make:z.uid,multiplier:z.max_multiplier})}return Y}(),children:[z.max_multiplier,"x"]}),z.requirements&&Object.keys(z.requirements).map(function(Y){return(0,k.toTitleCase)(Y)+": "+z.requirements[Y]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},z.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:R}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[W,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function z(){return i("clear_queue")}return z}()})]})]})]})})})}return p}()},13940:function(I,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BioChipPad=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.implant,m=l.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function i(){return p("eject_case")}return i}()})]})})})}return V}()},55295:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),V=r.Biogenerator=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.data,u=i.config,s=d.container,N=d.processing,C=u.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:N,name:C}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),s?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,N=u.container,C=u.container_curr_reagents,v=u.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:s}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),N?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.has_plants,N=u.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!s,tooltip:s?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return d("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!N,tooltip:N?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return d("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!s,tooltip:s?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return d("eject_plants")}return C}()})})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,N=u.product_list,C=(0,a.useSharedState)(m,"vendAmount",1),v=C[0],h=C[1],g=Object.entries(N).map(function(b,B){var L=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:L.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:sd&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i===0,tooltip:"Set to 0",onClick:function(){function L(){return l("set",{set_level:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:i===0,onClick:function(){function L(){return l("set",{set_level:d})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:i===0,tooltip:"Decrease one step",onClick:function(){function L(){return l("decrease")}return L}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:i,fillValue:d,minValue:0,color:B,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function L(w,T){return l("set",{set_level:T})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:i===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function L(){return l("increase")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function L(){return l("set",{set_level:v})}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(C)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:s})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:L.price>=u,onClick:function(){function w(){return l("vend",{target:L.key})}return w}(),content:L.price})},L.key)})})})})]})})]})})})}return k}()},31876:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],S=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],y={average:[.25,.5],bad:[.5,1/0]},p=function(b,B){for(var L=[],w=0;w0?b.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,o.Box,{children:L},L)],0)},null):null},c=function(b){if(b>100){if(b<300)return"mild infection";if(b<400)return"mild infection+";if(b<500)return"mild infection++";if(b<700)return"acute infection";if(b<800)return"acute infection+";if(b<900)return"acute infection++";if(b>=900)return"septic"}return""},m=r.BodyScanner=function(){function g(b,B){var L=(0,t.useBackend)(B),w=L.data,T=w.occupied,A=w.occupant,x=A===void 0?{}:A,E=T?(0,e.createComponentVNode)(2,i,{occupant:x}):(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,f.Window,{width:690,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:E})})}return g}(),i=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,d,{occupant:B}),(0,e.createComponentVNode)(2,u,{occupant:B}),(0,e.createComponentVNode)(2,s,{occupant:B}),(0,e.createComponentVNode)(2,C,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,v,{organs:B.intOrgan})]})},d=function(b,B){var L=(0,t.useBackend)(B),w=L.act,T=L.data,A=T.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function x(){return w("print_p")}return x}(),children:"Print Report"}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function x(){return w("ejectify")}return x}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[A.stat][0],children:V[A.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempF,0)}),"\xB0F"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Implants",children:A.implant_len?(0,e.createComponentVNode)(2,o.Box,{children:A.implant.map(function(x){return x.name}).join(", ")}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"None"})})]})})},u=function(b){var B=b.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:k.map(function(L,w){if(B[L[0]])return(0,e.createComponentVNode)(2,o.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No abnormalities found."})})},s=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.Table,{children:p(S,function(L,w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,N,{value:B[L[1]],marginBottom:T100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",q:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:y,children:[(0,e.createComponentVNode)(2,o.Box,{float:"left",inline:!0,children:[!!B.bruteLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Brute damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bone"}),(0,a.round)(B.bruteLoss,0),"\xA0"]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Burn damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"fire"}),(0,a.round)(B.fireLoss,0)]})})]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.round)(B.totalLoss,0)})]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,c(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[l([!!B.status.splinted&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})]),l(B.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},v=function(b){return b.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),b.organs.map(function(B,L){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:y,children:(0,a.round)(B.damage,0)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([c(B.germ_level)])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:l([B.robotic===1&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},h=function(){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},73440:function(I,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=n(92462),k=r.BookBinder=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.selectedbook,d=m.book_categories,u=[];return d.map(function(s){return u[s.description]=s.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function s(){return c("print_book")}return s}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.title,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_title")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.author,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_author")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:d.map(function(s){return s.description}),onSelected:function(){function s(N){return c("toggle_binder_category",{category_id:u[N]})}return s}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_summary")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:i.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(s){return i.categories.includes(s.category_id)}).map(function(s){return(0,e.createComponentVNode)(2,t.Button,{content:s.description,selected:!0,icon:"unlink",onClick:function(){function N(){return c("toggle_binder_category",{category_id:s.category_id})}return N}()},s.category_id)})]})})]})})})]})}return S}()},40730:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,N=c.canhack,C=c.emagged,v=c.remote_disabled,h=c.painame,g=c.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:310,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Clean Blood",disabled:i,onClick:function(){function b(){return l("blood")}return b}()})}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return k}()},36078:function(I,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.hullplating,u=c.replace,s=c.eat,N=c.make,C=c.fixfloor,v=c.nag_empty,h=c.magnet,g=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:g})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",disabled:m,onClick:function(){function b(){return l("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Replace floor tiles",disabled:m,onClick:function(){function b(){return l("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return l("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Finds tiles",disabled:m,onClick:function(){function b(){return l("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return l("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return l("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return l("anchored")}return b}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return k}()},89121:function(I,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return k}()},39805:function(I,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,N=c.canhack,C=c.emagged,v=c.remote_disabled,h=c.painame,g=c.shut_up,b=c.declare_crit,B=c.stationary_mode,L=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!g,disabled:i,onClick:function(){function E(){return l("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:i,onClick:function(){function E(){return l("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,disabled:i,onChange:function(){function E(O,R){return l("set_heal_threshold",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(O){return O+"u"}return E}(),disabled:i,onChange:function(){function E(O,R){return l("set_injection_amount",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:i,onClick:function(){function E(){return l("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:i,onClick:function(){function E(){return l("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:i,onClick:function(){function E(){return l("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:i,onClick:function(){function E(){return l("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return k}()},35519:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.check_id,u=c.check_weapons,s=c.check_warrant,N=c.arrest_mode,C=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return l("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return l("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return l("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return l("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return l("arrdeclare")}return v}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function v(){return l("ejectpai")}return v}()})})]})})}return k}()},71169:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(28823),a=n(84947),t=n(2971),o=n(91819),f=function(y,p){var l=y.cell,c=(0,o.useBackend)(p),m=c.act,i=l.cell_id,d=l.occupant,u=l.crimes,s=l.brigged_by,N=l.time_left_seconds,C=l.time_set_seconds,v=l.ref,h="";N>0&&(h+=" BrigCells__listRow--active");var g=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:N})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},V=function(y){var p=y.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(l){return(0,e.createComponentVNode)(2,f,{cell:l},l.ref)})]})},k=r.BrigCells=function(){function S(y,p){var l=(0,o.useBackend)(p),c=l.act,m=l.data,i=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V,{cells:i})})})})})}return S}()},19070:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BrigTimer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.occupant}):l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l.occupant}));var c="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(c="exclamation-triangle"));var m=[],i=0;for(i=0;im?this.substring(0,m)+"...":this};var y=function(i,d){var u,s;if(!d)return[];var N=i.findIndex(function(C){return C.name===d.name});return[(u=i[N-1])==null?void 0:u.name,(s=i[N+1])==null?void 0:s.name]},p=function(i,d){d===void 0&&(d="");var u=(0,f.createSearch)(d,function(s){return s.name});return(0,t.flow)([(0,a.filter)(function(s){return s==null?void 0:s.name}),d&&(0,a.filter)(u),(0,a.sortBy)(function(s){return s.name})])(i)},l=r.CameraConsole=function(){function m(i,d){var u=(0,V.useBackend)(d),s=u.act,N=u.data,C=u.config,v=N.mapRef,h=N.activeCamera,g=p(N.cameras),b=y(g,h),B=b[0],L=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return s("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!L,onClick:function(){function w(){return s("switch_camera",{name:L})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(i,d){var u=(0,V.useBackend)(d),s=u.act,N=u.data,C=(0,V.useLocalState)(d,"searchText",""),v=C[0],h=C[1],g=N.activeCamera,b=p(N.cameras,v);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",g&&B.name===g.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function L(){return s("switch_camera",{name:B.name})}return L}()},B.name)})})})]})}return m}()},21348:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(48300),V=n(84947),k=r.Canister=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.portConnected,d=m.tankPressure,u=m.releasePressure,s=m.defaultReleasePressure,N=m.minReleasePressure,C=m.maxReleasePressure,v=m.valveOpen,h=m.name,g=m.canLabel,b=m.colorContainer,B=m.color_index,L=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var O=[],R=[],M=[],D=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:s.cooldown_time||!h.can_close,onClick:function(){function g(){return u("make_job_unavailable",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:s.cooldown_time||!h.can_open,onClick:function(){function g(){return u("make_job_available",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:s.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:s.cooldown_time||!h.can_prioritize,onClick:function(){function g(){return u("prioritize_job",{job:h.title})}return g}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):s.modify_name?v=(0,e.createComponentVNode)(2,f.AccessList,{accesses:s.regions,selectedList:s.selectedAccess,accessMod:function(){function h(g){return u("set",{access:g})}return h}(),grantAll:function(){function h(){return u("grant_all")}return h}(),denyAll:function(){function h(){return u("clear_all")}return h}(),grantDep:function(){function h(g){return u("grant_region",{region:g})}return h}(),denyDep:function(){function h(g){return u("deny_region",{region:g})}return h}()}):v=(0,e.createComponentVNode)(2,y);break;case 3:s.authenticated?s.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!s.authenticated||s.records.length===0||s.target_dept,onClick:function(){function h(){return u("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),s.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!s.authenticated||s.records.length===0,onClick:function(){function h(){return u("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,S);break;case 4:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),s.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function g(){return u("remote_demote",{remote_demote:h.name})}return g}()})})]},h.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},62486:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),V=n(84947),k=n(37843),S=r.CargoConsole=function(){function d(u,s){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return d}(),y=function(u,s){var N=(0,o.useLocalState)(s,"contentsModal",null),C=N[0],v=N[1],h=(0,o.useLocalState)(s,"contentsModalTitle",null),g=h[0],b=h[1];if(C!==null&&g!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[g,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:C.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){v(null),b(null)}return B}()})})]})},p=function(u,s){var N=(0,o.useBackend)(s),C=N.act,v=N.data,h=v.is_public,g=v.timeleft,b=v.moving,B=v.at_station,L,w;return!b&&!B?(L="Docked off-station",w="Call Shuttle"):!b&&B?(L="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",g!==1?L="Shuttle is en route (ETA: "+g+" minutes)":L="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:L}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:b,onClick:function(){function T(){return C("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return C("showMessages")}return T}()})]})]})})})},l=function(u,s){var N,C=(0,o.useBackend)(s),v=C.act,h=C.data,g=h.accounts,b=(0,o.useLocalState)(s,"selectedAccount"),B=b[0],L=b[1],w=[];return g.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(T){return T.name}),selected:(N=g.filter(function(T){return T.account_UID===B})[0])==null?void 0:N.name,onSelected:function(){function T(A){return L(w[A])}return T}()}),g.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(u,s){var N=(0,o.useBackend)(s),C=N.act,v=N.data,h=v.requests,g=v.categories,b=v.supply_packs,B=(0,o.useSharedState)(s,"category","Emergency"),L=B[0],w=B[1],T=(0,o.useSharedState)(s,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(s,"contentsModal",null),O=E[0],R=E[1],M=(0,o.useLocalState)(s,"contentsModalTitle",null),D=M[0],j=M[1],U=(0,k.createSearch)(A,function($){return $.name}),W=(0,o.useLocalState)(s,"selectedAccount"),K=W[0],G=W[1],z=(0,a.flow)([(0,t.filter)(function($){return $.cat===g.filter(function(Q){return Q.name===L})[0].category||A}),A&&(0,t.filter)(U),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(b),Y="Crate Catalogue";return A?Y="Results for '"+A+"':":L&&(Y="Browsing "+L),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:Y,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function($){return $.name}),selected:L,onSelected:function(){function $(Q){return w(Q)}return $}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(Q,re){return x(re)}return $}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:z.map(function($){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[$.name," (",$.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!K,onClick:function(){function Q(){return C("order",{crate:$.ref,multiple:!1,account:K})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!K||$.singleton,onClick:function(){function Q(){return C("order",{crate:$.ref,multiple:!0,account:K})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function Q(){R($.contents),j($.name)}return Q}()})]})]},$.name)})})})]})})},m=function(u,s){var N=u.request,C,v;switch(N.department){case"Engineering":v="CE",C="orange";break;case"Medical":v="CMO",C="teal";break;case"Science":v="RD",C="purple";break;case"Supply":v="CT",C="brown";break;case"Service":v="HOP",C="olive";break;case"Security":v="HOS",C="red";break;case"Command":v="CAP",C="blue";break;case"Assistant":v="Any Head",C="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!N.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!N.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:C,content:v,disabled:N.req_cargo_approval,icon:"user-tie",tooltip:N.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},i=function(u,s){var N=(0,o.useBackend)(s),C=N.act,v=N.data,h=v.requests,g=v.orders,b=v.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function L(){return C("approve",{ordernum:B.ordernum})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function L(){return C("deny",{ordernum:B.ordernum})}return L}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},86885:function(I,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ChangelogView=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],i=c[1],d=l.cl_data,u=l.last_cl,s={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},N=function(){function C(v){return v in s?s[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function C(){return i(!m)}return C}()}),children:d.map(function(C){return!m&&C.merge_ts<=u||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:C.author+" - Merged on "+C.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+C.num,onClick:function(){function v(){return p("open_pr",{pr_number:C.num})}return v}()}),children:C.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[N(v.etype)," ",v.etext]},v)})},C)})})})})}return V}()},56975:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(83326),f=n(84947),V=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+N.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l)]})})})}return c}(),y=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.amount,C=s.energy,v=s.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[C," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:V.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:N===h,content:h,onClick:function(){function b(){return u("amount",{amount:h})}return b}()})},g)})})})]})})})},p=function(m,i){for(var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.chemicals,C=N===void 0?[]:N,v=[],h=0;h<(C.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s.glass?"Drink Dispenser":"Chemical Dispenser",children:[C.map(function(g,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function B(){return u("dispense",{reagent:g.id})}return B}()},b)}),v.map(function(g,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.isBeakerLoaded,C=s.beakerCurrentVolume,v=s.beakerMaxVolume,h=s.beakerContents,g=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:s.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!N&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[C," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!N,onClick:function(){function b(){return u("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:N,beakerContents:g,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:-1})}return L}()}),k.map(function(L,w){return(0,e.createComponentVNode)(2,t.Button,{content:L,onClick:function(){function T(){return u("remove",{reagent:B.id,amount:L})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:B.volume})}return L}()})],0)}return b}()})})})}},48734:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(83326),V=n(84947),k=r.ChemHeater=function(){function p(l,c){return(0,e.createComponentVNode)(2,V.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.targetTemp,s=d.targetTempReached,N=d.autoEject,C=d.isActive,v=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){function g(){return i("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:C?"On":"Off",icon:"power-off",selected:C,disabled:!h,onClick:function(){function g(){return i("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(u,0),minValue:0,maxValue:1e3,onDrag:function(){function g(b,B){return i("adjust_temperature",{target:B})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:s?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(b){return(0,a.toFixed)(b)+" K"}return g}()})||"\u2014"})]})})})},y=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerCurrentVolume,N=d.beakerMaxVolume,C=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!u&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[s," / ",N," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return i("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:u,beakerContents:C})})})}},35918:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(83326),V=n(22677),k=n(66586),S=n(50175),y=["icon"];function p(x,E){if(x==null)return{};var O={},R=Object.keys(x),M,D;for(D=0;D=0)&&(O[M]=x[M]);return O}function l(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function O(R,M){return R.__proto__=M,R}return O}(),c(x,E)}var m=(0,S.createLogger)("ChemMaster"),i=[1,5,10],d=function(E,O){var R=(0,a.useBackend)(O),M=R.act,D=R.data,j=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:D.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:j.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(j.desc||"").length>0?j.desc:"N/A"}),j.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:j.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:j.blood_dna})],4),!D.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:D.printing?"spinner":"print",disabled:D.printing,iconSpin:!!D.printing,ml:"0.5rem",content:"Print",onClick:function(){function U(){return M("print",{idx:j.idx,beaker:E.args.beaker})}return U}()})]})})})})},u=r.ChemMaster=function(){function x(E,O){var R=(0,a.useBackend)(O),M=R.data,D=M.condi,j=M.beaker,U=M.beaker_reagents,W=U===void 0?[]:U,K=M.buffer_reagents,G=K===void 0?[]:K,z=M.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s,{beaker:j,beakerReagents:W,bufferNonEmpty:G.length>0}),(0,e.createComponentVNode)(2,N,{mode:z,bufferReagents:G}),(0,e.createComponentVNode)(2,C,{isCondiment:D,bufferNonEmpty:G.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),s=function(E,O){var R=(0,a.useBackend)(O),M=R.act,D=E.beaker,j=E.beakerReagents,U=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:U?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return M("eject")}return W}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return M("eject")}return W}()}),children:D?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function W(K,G){return(0,e.createComponentVNode)(2,t.Box,{mb:G0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:U,buttons:function(){function W(K,G){return(0,e.createComponentVNode)(2,t.Box,{mb:G1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.oxy,inline:!0,children:x[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.toxin,inline:!0,children:x[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.brute,inline:!0,children:x[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.burn,inline:!0,children:x[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:B})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function s(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.menu;return(0,V.modalRegisterBodyOverride)("view_rec",y),(0,e.createComponentVNode)(2,k.Window,{width:535,height:440,children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,c)})})]})})]})}return s}(),l=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.menu;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===1,icon:"home",onClick:function(){function B(){return h("menu",{num:1})}return B}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===2,icon:"folder",onClick:function(){function B(){return h("menu",{num:2})}return B}(),children:"Records"})]})})},c=function(N,C){var v=(0,t.useBackend)(C),h=v.data,g=h.menu,b;return g===1?b=(0,e.createComponentVNode)(2,m):g===2&&(b=(0,e.createComponentVNode)(2,i)),b},m=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.loading,B=g.scantemp,L=g.occupant,w=g.locked,T=g.can_brainscan,A=g.scan_mode,x=g.numberofpods,E=g.pods,O=g.selected_pod,R=w&&!!L;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L,selected:R,icon:R?"toggle-on":"toggle-off",content:R?"Engaged":"Disengaged",onClick:function(){function M(){return h("lock")}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:R||!L,icon:"user-slash",content:"Eject Occupant",onClick:function(){function M(){return h("eject")}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:B.color,children:B.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function M(){return h("toggle_mode")}return M}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L||b,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function M(){return h("scan")}return M}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",children:x?E.map(function(M,D){var j;return M.status==="cloning"?j=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:M.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(M.progress,0)+"%"})}):M.status==="mess"?j=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):j=(0,e.createComponentVNode)(2,o.Button,{selected:O===M.pod,icon:O===M.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function U(){return h("selectpod",{ref:M.pod})}return U}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",mt:1,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)("pod_"+M.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",D+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,mt:.75,color:M.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:M.biomass>=150?"circle":"circle-o"}),"\xA0",M.biomass]}),j]},D)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},i=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.records;return b.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:b.map(function(B,L){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:B.realname,onClick:function(){function w(){return h("view_rec",{ref:B.record})}return w}()},L)})}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(N,C){var v,h=(0,t.useBackend)(C),g=h.act,b=h.data,B=b.temp;if(!(!B||!B.text||B.text.length<=0)){var L=(v={},v[B.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",children:B.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function w(){return g("cleartemp")}return w}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},u=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.scanner,B=g.numberofpods,L=g.autoallowed,w=g.autoprocess,T=g.disk;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)(!!L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Enabled":"Disabled",onClick:function(){function A(){return h("autoprocess",{on:w?0:1})}return A}()})],4),0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:B?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[B," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})})}},14283:function(I,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ColourMatrixTester=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Modify Matrix",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:i.map(function(d){return(0,e.createFragment)([d.name,(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{value:c[d.idx],step:.05,minValue:-5,maxValue:5,onDrag:function(){function u(s,N){return p("setvalue",{idx:d.idx+1,value:N})}return u}()})],0,d.name)})},i)})})})})}return V}()},98577:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(u){switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,i);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},V=r.CommunicationsComputer=function(){function d(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),f(h)]})})})}return d}(),k=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.authenticated,g=v.noauthbutton,b=v.esc_section,B=v.esc_callable,L=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,O;return h?h===1?O="Command":h===2?O="Captain":h===3?O="CentComm Officer":h===4?(O="CentComm Secure Connection",E=!0):O="ERROR: Report This Bug!":O="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:O})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:g,content:h?"Log Out ("+O+")":"Log In",onClick:function(){function R(){return C("auth")}return R}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function R(){return C("callshuttle")}return R}()})}),!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function R(){return C("cancelshuttle")}return R}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.is_admin,g=v.gamma_armory_location,b=v.admin_levels,B=v.authenticated,L=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:b,required_access:h,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!h,onClick:function(){function w(){return C("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return C("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return C("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"ERT calling enabled":"ERT calling disabled",tooltip:L?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return C("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!h,onClick:function(){function w(){return C("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:g?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,onClick:function(){function w(){return C("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return C("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return C("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.msg_cooldown,g=v.emagged,b=v.cc_cooldown,B=v.security_level_color,L=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var O=g?"Message [UNKNOWN]":"Message CentComm",R="Request Authentication Codes";return b>0&&(O+=" ("+b+"s)",R+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function M(){return C("announce")}return M}()})}),!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:O,disabled:!T||b>0,onClick:function(){function M(){return C("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function M(){return C("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:O,disabled:!T||b>0,onClick:function(){function M(){return C("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:R,disabled:!T||b>0,onClick:function(){function M(){return C("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return C("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return C("messagelist")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function M(){return C("RestartNanoMob")}return M}()})})]})})})],4)},l=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.stat_display,g=v.authhead,b=v.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!g,onClick:function(){function T(){return C("setstat",{statdisp:w.name})}return T}()},w.name)}),L=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!g,onClick:function(){function T(){return C("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return C("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!g,onClick:function(){function w(){return C("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!g,onClick:function(){function w(){return C("setmsg2")}return w}()})})]})})})},c=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.authhead,g=v.current_message_title,b=v.current_message,B=v.messages,L=v.security_level,w;if(g)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return C("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!h||g===A.title,onClick:function(){function x(){return C("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return C("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return C("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=u.levels,g=u.required_access,b=u.use_confirm,B=v.security_level;return b?h.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!g||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return C("newalertlevel",{level:L.id})}return w}()},L.name)}):h.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!g||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return C("newalertlevel",{level:L.id})}return w}()},L.name)})},i=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.is_admin,g=v.possible_cc_sounds;if(!h)return C("main");var b=(0,a.useLocalState)(s,"subtitle",""),B=b[0],L=b[1],w=(0,a.useLocalState)(s,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(s,"classified",0),E=x[0],O=x[1],R=(0,a.useLocalState)(s,"beepsound","Beep"),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function j(){return C("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(U,W){return L(W)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(U,W){return A(W)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return C("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:M})}return j}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:g,selected:M,onSelected:function(){function j(U){return D(U)}return j}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function j(){return C("test_sound",{sound:M})}return j}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function j(){return O(!E)}return j}()})})]})]})})}},70611:function(I,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CompostBin=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.biomass,m=l.compost,i=l.biomass_capacity,d=l.compost_capacity,u=(0,a.useSharedState)(S,"vendAmount",1),s=u[0],N=u[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[c," / ",i," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:m,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[m," / ",d," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:s,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function C(v,h){return N(h)}return C}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*s,icon:"arrow-circle-down",onClick:function(){function C(){return p("create",{amount:s})}return C}()})})})]})})})}return V}()},73744:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(73712),V=n(84947);function k(C,v){C.prototype=Object.create(v.prototype),C.prototype.constructor=C,S(C,v)}function S(C,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(g,b){return g.__proto__=b,g}return h}(),S(C,v)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],l=r.Contractor=function(){function C(v,h){var g=(0,t.useBackend)(h),b=g.act,B=g.data,L;B.unauthorized?L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?L=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,i,{height:"100%"}):(0,e.createComponentVNode)(2,u,{height:"100%"})})],4):L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:L})})]})}return C}(),c=function(v,h){var g=(0,t.useBackend)(h),b=g.act,B=g.data,L=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[L," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:L<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,h){var g=(0,t.useBackend)(h),b=g.act,B=g.data,L=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},i=function(v,h){var g=(0,t.useBackend)(h),b=g.act,B=g.data,L=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&L.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),O=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(D,j){return" ("+j.substr(3)+")"}return M}()})],onClick:function(){function M(){return b("extract")}return M}()})},v,{children:L.slice().sort(function(M,D){return M.status===1?-1:D.status===1?1:M.status-D.status}).map(function(M){var D;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return R("target_photo_"+M.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return b("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(M)]}),(D=M.difficulties)==null?void 0:D.map(function(j,U){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function W(){return b("activate",{uid:M.uid,difficulty:U+1})}return W}()},U)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,b=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,L=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:L?"dot-circle-o":"arrow-alt-circle-right-o",color:L?"green":"yellow",rotation:L?null:-(0,a.rad2deg)(Math.atan2(B[1]-g[1],B[0]-g[0])),lineHeight:L?null:"0.85",size:"1.5"})})}},u=function(v,h){var g=(0,t.useBackend)(h),b=g.act,B=g.data,L=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:L-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},s=function(C){k(v,C);function v(g){var b;return b=C.call(this,g)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}var h=v.prototype;return h.tick=function(){function g(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var L=B.currentDisplay;L.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return g}(),h.componentDidMount=function(){function g(){var b=this,B=this.props.linesPerSecond,L=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/L)}return g}(),h.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),h.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return g}(),v}(e.Component),N=function(v,h){var g=(0,t.useLocalState)(h,"viewingPhoto",""),b=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function L(){return B("")}return L}()})]})}},57392:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ConveyorSwitch=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.slowFactor,m=l.oneWay,i=l.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:i>0?"forward":i<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function d(){return p("toggleOneWay")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function d(){return p("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return p("slowFactor",{value:c-1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function d(u){return u+"x"}return d}(),onChange:function(){function d(u,s){return p("slowFactor",{value:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return p("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return p("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return V}()},91413:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(28823),a=n(72026),t=n(37843),o=n(91819),f=n(2971),V=n(99753),k=n(30381),S=n(84947),y=function(d,u){return d.dead?"Deceased":parseInt(d.health,10)<=u?"Critical":parseInt(d.stat,10)===1?"Unconscious":"Living"},p=function(d,u){return d.dead?"red":parseInt(d.health,10)<=u?"orange":parseInt(d.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function i(d,u){var s=(0,o.useBackend)(u),N=s.act,C=s.data,v=(0,o.useLocalState)(u,"tabIndex",0),h=v[0],g=v[1],b=function(){function B(L){switch(L){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return g(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return g(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return i}(),c=function(d,u){var s=(0,o.useBackend)(u),N=s.act,C=s.data,v=(0,a.sortBy)(function(A){return A.name})(C.crewmembers||[]),h=C.possible_levels,g=C.viewing_current_z_level,b=C.is_advanced,B=(0,o.useLocalState)(u,"search",""),L=B[0],w=B[1],T=(0,t.createSearch)(L,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:g,onSelected:function(){function A(x){return N("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),v.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(A,C.critThreshold),children:y(A,C.critThreshold)}),A.sensor_type>=2?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:A.sensor_type===3?C.isAI?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return N("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(d,u){var s=(0,o.useBackend)(u),N=s.data,C=(0,o.useLocalState)(u,"zoom",1),v=C[0],h=C[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function g(b){return h(b)}return g}(),children:N.crewmembers.filter(function(g){return g.sensor_type===3}).map(function(g){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:g.x,y:g.y,zoom:v,icon:"circle",tooltip:g.name+" ("+g.assignment+")",color:p(g,N.critThreshold)},g.ref)})})})}},55104:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isOperating,s=d.hasOccupant,N=d.occupant,C=N===void 0?[]:N,v=d.cellTemperature,h=d.cellTemperatureStatus,g=d.isBeakerLoaded,b=d.cooldownProgress,B=d.auto_eject_healthy,L=d.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return i("ejectOccupant")}return w}(),disabled:!s,children:"Eject"}),children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[C.stat][0],children:V[C.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return i("ejectBeaker")}return w}(),disabled:!g,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return i(u?"switchOff":"switchOn")}return w}(),selected:u,children:u?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!g&&"average",value:b,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return i(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function w(){return i(L?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:L?"On":"Off"})})]})})})],4)},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerLabel,N=d.beakerVolume;return u?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!s&&"average",children:[s||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!N&&"bad",ml:1,children:N?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N,format:function(){function C(v){return Math.round(v)+" units remaining"}return C}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},1763:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),V=r.CryopodConsole=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.account_name,d=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(i||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:i.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(d,u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},u)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.frozen_items,u=function(N){var C=N.toString();return C.startsWith("the ")&&(C=C.slice(4,C.length)),(0,f.toTitleCase)(C)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u(s.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function N(){return m("one_item",{item:s.uid})}return N}()})},s)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function s(){return m("all_items")}return s}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},69055:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function h(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,C,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return h}(),p=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return L("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return L("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[x.stat][0],children:V[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},l=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(O,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:T===O[0],onClick:function(){function M(){return L("selectMenuKey",{key:O[0]})}return M}(),children:O[1]},R)})}),E]})},c=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function O(R){return R.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(R,M){return L("changeUITarget",{value:M})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function O(){return L("pulseUIRadiation")}return O}()})]})},m=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return L("pulseSERadiation")}return E}()})]})},i=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,O){return L("radiationIntensity",{value:O})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,O){return L("radiationDuration",{value:O})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return L("pulseRadiation")}return x}()})]})},d=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,u,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,s)})]})},u=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=g.id,A=g.name,x=g.buffer,E=w.isInjectorReady,O=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function R(){return L("bufferOption",{option:"clear",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function R(){return L("bufferOption",{option:"changeLabel",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function R(){return L("bufferOption",{option:"saveDisk",id:T})}return R}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveUI",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveUIAndUE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveSE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"loadDisk",id:T})}return R}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"createInjector",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"createInjector",id:T,block:1})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"transfer",id:T})}return R}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},s=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return L("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return L("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},N=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return L("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function R(){return L("injectRejuvenators",{amount:E})}return R}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return L("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},C=function(g,b){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},v=function(g,b){for(var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=g.dnaString,A=g.selectedBlock,x=g.selectedSubblock,E=g.blockSize,O=g.action,R=T.split(""),M=0,D=[],j=function(){for(var K=U/E+1,G=[],z=function(){var Q=Y+1;G.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===Q,content:R[U+Y],mb:"0",onClick:function(){function re(){return L(O,{block:K,subblock:Q})}return re}()}))},Y=0;Ys.spawnpoints?"red":"green",children:[s.total," total, versus ",s.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function g(){return u("dispatch_ert",{silent:v})}return g}()})})]})})})},p=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:N&&N.length?N.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:C.sender_real_name,onClick:function(){function v(){return u("view_player_panel",{uid:C.sender_uid})}return v}(),tooltip:"View player panel"}),children:C.message},(0,f.decodeHtmlEntities)(C.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=(0,a.useLocalState)(i,"text",""),C=N[0],v=N[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:C,onChange:function(){function h(g,b){return v(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return u("deny_ert",{reason:C})}return h}()})]})})}},77877:function(I,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.EconomyManager=function(){function S(y,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",i," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},10707:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.data,m=c.power,i=c.code,d=c.frequency,u=c.minFrequency,s=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function N(){return l("power")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function N(){return l("reset",{reset:"freq"})}return N}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:s/10,value:d/10,format:function(){function N(C){return(0,a.toFixed)(C,1)}return N}(),width:"80px",onChange:function(){function N(C,v){return l("freq",{freq:v})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function N(){return l("reset",{reset:"code"})}return N}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onChange:function(){function N(C,v){return l("code",{code:v})}return N}()})})]})})})})}return k}()},52640:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=n(90955),k=n(72026),S=r.EvolutionMenu=function(){function l(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)]})})})}return l}(),y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,N=u.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:s}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!N,content:"Readapt",icon:"sync",onClick:function(){function C(){return d("readapt")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,N=u.ability_tabs,C=u.purchased_abilities,v=u.view_mode,h=(0,t.useLocalState)(m,"selectedTab",N[0]),g=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),L=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",N[0].abilities),A=T[0],x=T[1],E=function(D,j){if(j===void 0&&(j=""),!D||D.length===0)return[];var U=(0,a.createSearch)(j,function(W){return W.name+"|"+W.description});return(0,V.flow)([(0,k.filter)(function(W){return W==null?void 0:W.name}),(0,k.filter)(U),(0,k.sortBy)(function(W){return W==null?void 0:W.name})])(D)},O=function(D){if(w(D),D==="")return x(g.abilities);x(E(N.map(function(j){return j.abilities}).flat(),D))},R=function(D){b(D),x(D.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(D,j){O(j)}return M}(),value:L}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function M(){return d("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function M(){return d("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:N.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===""&&g===M,onClick:function(){function D(){R(M)}return D}(),children:M.category},M)})}),A.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),C.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>s||C.includes(M.power_path),content:"Evolve",onClick:function(){function j(){return d("purchase",{power_path:M.power_path})}return j}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},D)})]})})}},70672:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(28823),a=n(66586),t=n(37843),o=n(91819),f=n(2971),V=n(73712),k=n(84947),S=["id","amount","lineDisplay","onClick"];function y(C,v){if(C==null)return{};var h={},g=Object.keys(C),b,B;for(B=0;B=0)&&(h[b]=C[b]);return h}var p=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function C(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)}),L&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)})]})})]})})})}return C}(),m=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=B.materials,w=B.capacity,T=Object.values(L).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,s,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},i=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],O=x[1],R=(0,t.createSearch)(E,function(D){return D.name}),M=T.filter(R);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:L,options:w,onSelected:function(){function D(j){return b("category",{cat:j})}return D}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function D(){return b("queueall")}return D}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function D(){return b("sync")}return D}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function D(j,U){return O(U)}return D}()}),M.map(function(D){return(0,e.createComponentVNode)(2,N,{design:D},D.id)}),M.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",L,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,O){return O.substr(3)}return x}()}),")"]})]})})})},u=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=L.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:L.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:L.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:L.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function O(){return b("queueswap",{from:E+1,to:E})}return O}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},s=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=y(v,S),E=B.materials[L]||0,O=w||E;if(!(O<=0&&!(L==="metal"||L==="glass"))){var R=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",L])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",L])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:L}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/p*10)/10," ","sheets)"]})]})],4)})))}},N=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=v.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:L.notEnough||B.building,icon:"cog",content:L.name,onClick:function(){function w(){return b("build",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(L.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),L.time>0?(0,e.createFragment)([L.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(I,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),V=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.open,d=m.feedback,u=m.occupant,s=m.occupant_name,N=m.occupant_status,C=function(){function h(){if(!u)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var g=function(){function B(){return f.get(N)}return B}(),b=g();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:V.get(B).icon,content:V.get(B).label,onClick:function(){function L(){return c("experiment",{experiment_type:B})}return L}()},B)})})]})}return h}(),v=C();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!i,onClick:function(){function h(){return c("door")}return h}()}),children:v})]})})}return S}()},14172:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=0,V=1013,k=function(p){var l="good",c=80,m=95,i=110,d=120;return pi?l="average":p>d&&(l="bad"),l},S=r.ExternalAirlockController=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.chamber_pressure,u=i.exterior_status,s=i.interior_status,N=i.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:k(d),value:d,minValue:f,maxValue:V,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!N,onClick:function(){function C(){return m("abort")}return C}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:N,onClick:function(){function C(){return m("cycle_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:N,onClick:function(){function C(){return m("cycle_int")}return C}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:s==="open"?"red":N?"yellow":null,onClick:function(){function C(){return m("force_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:s==="open"?"red":N?"yellow":null,onClick:function(){function C(){return m("force_int")}return C}()})]})]})]})})}return y}()},61893:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FaxMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:l.nologin,content:l.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:l.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return V}()},80031:function(I,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FilingCabinet=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=y.config,m=l.contents,i=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",i," is empty."]})}),!!m&&m.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function u(){return p("retrieve",{index:d.index})}return u}()})})]},d)})]})})})})}return V}()},39552:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.image,i=S.isSelected,d=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":i&&"solid"||"none","border-width":"2px","border-color":"orange",padding:i&&"2px"||"4px"},onClick:d})},V=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.availableStyles,i=c.selectedStyle,d=c.selectedDir,u=c.directionsPreview,s=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function N(){return l("cycle_style",{offset:-1})}return N}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:i,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function N(C){return l("select_style",{style:C})}return N}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function N(){return l("cycle_style",{offset:1})}return N}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(N){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:s[N],isSelected:i===N,onSelect:function(){function C(){return l("select_style",{style:N})}return C}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[N+"west",N,N+"east"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:C===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:u[C],isSelected:C===d,onSelect:function(){function v(){return l("select_direction",{direction:C})}return v}()})},C)})},N)})})})})]})})})}return k}()},5090:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=function(i){return i?"("+i.join(", ")+")":"ERROR"},k=function(i,d){if(!(!i||!d)){if(i[2]!==d[2])return null;var u=Math.atan2(d[1]-i[1],d[0]-i[0]),s=Math.sqrt(Math.pow(d[1]-i[1],2)+Math.pow(d[0]-i[0],2));return{angle:(0,a.rad2deg)(u),distance:s}}},S=r.GPS=function(){function m(i,d){var u=(0,t.useBackend)(d),s=u.data,N=s.emped,C=s.active,v=s.area,h=s.position,g=s.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:N?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:v,position:h})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,y)],0)})})})}return m}(),y=function(i,d){var u=i.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:u?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),u?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(i,d){var u=(0,t.useBackend)(d),s=u.act,N=u.data,C=N.active,v=N.tag,h=N.same_z,g=(0,t.useLocalState)(d,"newTag",v),b=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function L(){return s("toggle")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function L(){return s("tag",{newtag:b})}return L}(),onInput:function(){function L(w,T){return B(T)}return L}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function L(){return s("tag",{newtag:b})}return L}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function L(){return s("same_z")}return L}()})})]})})},l=function(i,d){var u=i.title,s=i.area,N=i.position;return(0,e.createComponentVNode)(2,o.Section,{title:u||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[s&&(0,e.createFragment)([s,(0,e.createVNode)(1,"br")],0),V(N)]})})},c=function(i,d){var u=(0,t.useBackend)(d),s=u.data,N=s.position,C=s.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},i,{children:(0,e.createComponentVNode)(2,o.Table,{children:C.map(function(v){return Object.assign({},v,k(N,v.position))}).map(function(v,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:V(v.position)})]},h)})})})))}},1055:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(22677),f=n(84947),V=r.GeneModder=function(){function i(d,u){var s=(0,a.useBackend)(u),N=s.data,C=N.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),C===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return i}(),k=function(d,u){var s=(0,a.useBackend)(u),N=s.act,C=s.data,v=C.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!v||!v.can_insert||v.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return N("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})},S=function(d,u){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},y=function(d,u){var s=(0,a.useBackend)(u),N=s.act,C=s.data,v=C.has_seed,h=C.seed,g=C.has_disk,b=C.disk,B,L;return v?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return N("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return N("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return N("eject_seed")}return w}()})}),g?L=b.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,onClick:function(){function w(){return N("eject_disk")}return w}()})})})]})})},p=function(d,u){var s=(0,a.useBackend)(u),N=s.act,C=s.data,v=C.disk,h=C.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:h.map(function(g){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:g.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function b(){return N("extract",{id:g.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!g.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return N("replace",{id:g.id})}return b}()})})]},g)})},"Core Genes")},l=function(d,u){var s=(0,a.useBackend)(u),N=s.data,C=N.reagent_genes,v=N.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:C,do_we_show:v})},c=function(d,u){var s=(0,a.useBackend)(u),N=s.data,C=N.trait_genes,v=N.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:C,do_we_show:v})},m=function(d,u){var s=d.title,N=d.gene_set,C=d.do_we_show,v=(0,a.useBackend)(u),h=v.act,g=v.data,b=g.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:s,open:!0,children:C?N.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function L(){return h("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return h("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},s)}},14232:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(28823),a=n(2971),t=n(84947),o=n(692),f=r.GenericCrewManifest=function(){function V(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return V}()},86268:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GhostHudPanel=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.security,m=l.medical,i=l.diagnostic,d=l.radioactivity,u=l.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,V,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,V,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,V,{label:"Diagnostic",type:"diagnostic",is_active:i}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=S.label,m=S.type,i=m===void 0?null:m,d=S.is_active,u=S.act_on,s=u===void 0?"hud_on":u,N=S.act_off,C=N===void 0?"hud_off":N;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return l(d?C:s,{hud_type:i})}return v}()})})]})}},8977:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GlandDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:i.color,content:i.amount||"0",disabled:!i.amount,onClick:function(){function d(){return p("dispense",{gland_id:i.id})}return d}()},i.id)})})})})}return V}()},70309:function(I,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GravityGen=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.charging_state,m=l.charge_count,i=l.breaker,d=l.ext_power,u=function(){function N(C){return C>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",C===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return N}(),s=function(){function N(C){if(C>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return N}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[s(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"Online":"Offline",color:i?"green":"red",px:1.5,onClick:function(){function N(){return p("breaker")}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:u(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return V}()},64769:function(I,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return l("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return l("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return l("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return l("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(i){return l("access",{access:i})}return m}(),grantAll:function(){function m(){return l("grant_all")}return m}(),denyAll:function(){function m(){return l("clear_all")}return m}(),grantDep:function(){function m(i){return l("grant_region",{region:i})}return m}(),denyDep:function(){function m(i){return l("deny_region",{region:i})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return l("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},i)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return k}()},12219:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[1,5,10,20,30,50],V=null,k=r.HandheldChemDispenser=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.amount,s=d.energy,N=d.maxEnergy,C=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:N,ranges:{good:[N*.5,1/0],average:[N*.25,N*.5],bad:[-1/0,N*.25]},children:[s," / ",N," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:u===v,content:v,onClick:function(){function g(){return i("amount",{amount:v})}return g}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"isolate"})}return v}()})]})})]})})})},y=function(l,c){for(var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.chemicals,s=u===void 0?[]:u,N=d.current_reagent,C=[],v=0;v<(s.length+1)%3;v++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[s.map(function(h,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:N===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return i("dispense",{reagent:h.id})}return b}()},g)}),C.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},53917:function(I,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.HealthSensor=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.on,d=m.user_health,u=m.minHealth,s=m.maxHealth,N=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function C(){return c("scan_toggle")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:u,maxValue:s,value:N,format:function(){function C(v){return(0,a.toFixed)(v,1)}return C}(),width:"80px",onDrag:function(){function C(v,h){return c("alarm_health",{alarm_health:h})}return C}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},93116:function(I,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Holodeck=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=(0,a.useLocalState)(y,"currentDeck",""),i=m[0],d=m[1],u=(0,a.useLocalState)(y,"showReload",!1),s=u[0],N=u[1],C=c.decks,v=c.ai_override,h=c.emagged,g=function(){function b(B){l("select_deck",{deck:B}),d(B),N(!0),setTimeout(function(){N(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[s&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",i]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===i,onClick:function(){function B(){return g(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return l("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return l("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),V=function(S,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},77209:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.Instrument=function(){function l(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return l}(),k=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.help;if(s)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function N(){return d("help")}return N}()})]})})})},S=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.lines,N=u.playing,C=u.repeat,v=u.maxRepeats,h=u.tempo,g=u.minTempo,b=u.maxTempo,B=u.tickLag,L=u.volume,w=u.minVolume,T=u.maxVolume,A=u.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:N,disabled:s.length===0||C<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:C,stepPixelSize:59,onChange:function(){function x(E,O){return d("repeat",{new:O})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:L,stepPixelSize:6,onDrag:function(){function x(E,O){return d("setvolume",{new:O})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,y)]})},y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.allowedInstrumentNames,N=u.instrumentLoaded,C=u.instrument,v=u.canNoteShift,h=u.noteShift,g=u.noteShiftMin,b=u.noteShiftMax,B=u.sustainMode,L=u.sustainLinearDuration,w=u.sustainExponentialDropoff,T=u.legacy,A=u.sustainDropoffVolume,x=u.sustainHeldNote,E,O;return B===1?(E="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:L,step:.5,stepPixelSize:85,format:function(){function R(M){return(0,a.round)(M*100)/100+" seconds"}return R}(),onChange:function(){function R(M,D){return d("setlinearfalloff",{new:D/10})}return R}()})):B===2&&(E="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function R(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return R}(),onChange:function(){function R(M,D){return d("setexpfalloff",{new:D})}return R}()})),s.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:N?(0,e.createComponentVNode)(2,o.Dropdown,{options:s,selected:C,width:"50%",onSelected:function(){function R(M){return d("switchinstrument",{name:M})}return R}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:b,value:h,stepPixelSize:2,format:function(){function R(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return R}(),onChange:function(){function R(M,D){return d("setnoteshift",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function R(M){return d("setsustainmode",{new:M})}return R}()}),O]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function R(M,D){return d("setdropoffvolume",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function R(){return d("togglesustainhold")}return R}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function R(){return d("reset")}return R}()})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.playing,N=u.lines,C=u.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!C||s,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:N.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!C&&(N.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:N.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:h+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:h+1})}return g}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},64261:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.KeycardAuth=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!l.swiping&&!l.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){function i(){return p("triggerevent",{triggerevent:"Red Alert"})}return i}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return i}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return i}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return i}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!l.hasSwiped&&!l.ertreason&&l.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):l.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,l.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){function i(){return p("ert")}return i}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:l.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){function i(){return p("reset")}return i}()}),children:m})]})})}return V}()},34898:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),V=r.KitchenMachine=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.data,m=l.config,i=c.ingredients,d=c.operating,u=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:d,name:u}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:s.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[s.amount," ",s.units]}),2)]},s.name)})})})})]})})})}return S}(),k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.inactive,d=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function u(){return c("cook")}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function u(){return c("eject")}return u}()})})]})})}},52564:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.LawManager=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.isAdmin,u=i.isSlaved,s=i.isMalf,N=i.isAIMalf,C=i.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:s?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&u)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",u,"."]}),!!(s||N)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:C===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:C===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),C===0&&(0,e.createComponentVNode)(2,V),C===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.has_zeroth_laws,u=i.zeroth_laws,s=i.has_ion_laws,N=i.ion_laws,C=i.ion_law_nr,v=i.has_inherent_laws,h=i.inherent_laws,g=i.has_supplied_laws,b=i.supplied_laws,B=i.channels,L=i.channel,w=i.isMalf,T=i.isAdmin,A=i.zeroth_law,x=i.ion_law,E=i.inherent_law,O=i.supplied_law,R=i.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:u,ctx:l}),!!s&&(0,e.createComponentVNode)(2,S,{title:C,laws:N,ctx:l}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:l}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:l}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===L,onClick:function(){function D(){return m("law_channel",{law_channel:M.channel})}return D}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:R,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name+" - "+u.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function s(){return m("transfer_laws",{transfer_laws:u.ref})}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.laws.has_ion_laws>0&&u.laws.ion_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_zeroth_laws>0&&u.laws.zeroth_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_inherent_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_supplied_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)})]})},u.name)})})},S=function(p,l){var c=(0,a.useBackend)(p.ctx),m=c.act,i=c.data,d=i.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:u.state?"Yes":"No",selected:u.state,onClick:function(){function s(){return m("state_law",{ref:u.ref,state_law:u.state?0:1})}return s}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function s(){return m("edit_law",{edit_law:u.ref})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function s(){return m("delete_law",{delete_law:u.ref})}return s}()})],4)]})]},u.law)})]})})}},55499:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.LibraryComputer=function(){function C(v,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return C}(),k=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:L.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!L.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:L.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===L.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:L.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:L.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:L.id})}return T}()})]})},S=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=v.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function O(){return b("set_report",{report_type:x.category_id})}return O}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return b("submit_report",{bookid:L.id,user_ckey:A})}return x}()})]})},y=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:L>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[L+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.current_rating?L.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:L.total_ratings?L.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:L.id,user_ckey:w})}return T}()})]})},l=function(v,h){var g=(0,a.useBackend)(h),b=g.data,B=(0,a.useLocalState)(h,"tabIndex",0),L=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,h){var g=(0,a.useLocalState)(h,"tabIndex",0),b=g[0];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,u);case 3:return(0,e.createComponentVNode)(2,s);case 4:return(0,e.createComponentVNode)(2,N);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:L.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:L.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:L.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:L.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return b("clear_search")}return x}()}),L.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},i=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),L.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),L.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},u=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:L.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[L.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:L.copyright,content:L.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:L.copyright,content:L.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:L.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:L.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:L.summary})]})})]})]})},s=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},N=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},92682:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.LibraryManager=function(){function l(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return l}(),k=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.pagestate;switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return s}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_search")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function s(){return d("view_reported_books")}return s}()})]})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function N(){return d("return")}return N}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),s.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:N.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),N.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:N.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function C(){return d("delete_book",{bookid:N.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function C(){return d("unflag_book",{bookid:N.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return d("view_book",{bookid:N.id})}return C}()})]})]},N.id)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.ckey,N=u.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",s,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return d("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),N.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return d("delete_book",{bookid:C.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:C.id})}return v}()})]})]},C.id)})]})})}},68e3:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(2971),f=n(91819),V=n(31068),k=n(84947),S=r.ListInputModal=function(){function l(c,m){var i=(0,f.useBackend)(m),d=i.act,u=i.data,s=u.items,N=s===void 0?[]:s,C=u.message,v=C===void 0?"":C,h=u.init_value,g=u.timeout,b=u.title,B=(0,f.useLocalState)(m,"selected",N.indexOf(h)),L=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",N.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),O=E[0],R=E[1],M=function(){function Y($){var Q=G.length-1;if($===V.KEY_DOWN)if(L===null||L===Q){var re;w(0),(re=document.getElementById("0"))==null||re.scrollIntoView()}else{var ae;w(L+1),(ae=document.getElementById((L+1).toString()))==null||ae.scrollIntoView()}else if($===V.KEY_UP)if(L===null||L===0){var de;w(Q),(de=document.getElementById(Q.toString()))==null||de.scrollIntoView()}else{var ve;w(L-1),(ve=document.getElementById((L-1).toString()))==null||ve.scrollIntoView()}}return Y}(),D=function(){function Y($){$!==L&&w($)}return Y}(),j=function(){function Y(){x(!1),x(!0)}return Y}(),U=function(){function Y($){var Q=String.fromCharCode($),re=N.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(Q==null?void 0:Q.toLowerCase())});if(re){var ae,de=N.indexOf(re);w(de),(ae=document.getElementById(de.toString()))==null||ae.scrollIntoView()}}return Y}(),W=function(){function Y($){var Q;$!==O&&(R($),w(0),(Q=document.getElementById("0"))==null||Q.scrollIntoView())}return Y}(),K=function(){function Y(){x(!A),R("")}return Y}(),G=N.filter(function(Y){return Y==null?void 0:Y.toLowerCase().includes(O.toLowerCase())}),z=330+Math.ceil(v.length/3);return A||setTimeout(function(){var Y;return(Y=document.getElementById(L.toString()))==null?void 0:Y.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:z,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function Y($){var Q=window.event?$.which:$.keyCode;(Q===V.KEY_DOWN||Q===V.KEY_UP)&&($.preventDefault(),M(Q)),Q===V.KEY_ENTER&&($.preventDefault(),d("submit",{entry:G[L]})),!A&&Q>=V.KEY_A&&Q<=V.KEY_Z&&($.preventDefault(),U(Q)),Q===V.KEY_ESCAPE&&($.preventDefault(),d("cancel"))}return Y}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"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(){function Y(){return K()}return Y}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{filteredItems:G,onClick:D,onFocusSearch:j,searchBarVisible:A,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:G,onSearch:W,searchQuery:O,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:G[L]})})]})})})]})}return l}(),y=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onClick,N=c.onFocusSearch,C=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(h,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function b(){return s(g)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),d("submit",{entry:u[v]})}return b}(),onKeyDown:function(){function b(B){var L=window.event?B.which:B.keyCode;C&&L>=V.KEY_A&&L<=V.KEY_Z&&(B.preventDefault(),N())}return b}(),selected:g===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},g)})})},p=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onSearch,N=c.searchQuery,C=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:u[C]})}return v}(),onInput:function(){function v(h,g){return s(g)}return v}(),placeholder:"Search...",value:N})}},75965:function(I,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),O=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function R(M,D){return O("configure",{key:T,value:D,ref:x})}return R}()})},V=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),O=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function R(){return O("configure",{key:T,value:!A,ref:x})}return R}()})},k=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),O=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function R(){return O("configure",{key:T,ref:x})}return R}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(L,w){var T=L.name,A=L.value,x=L.values,E=L.module_ref,O=(0,a.useBackend)(w),R=O.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(D){return R("configure",{key:T,value:D,ref:E})}return M}()})},y=function(L,w){var T=L.name,A=L.display_name,x=L.type,E=L.value,O=L.values,R=L.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},L))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,Object.assign({},L))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},L))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},L)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},p=function(L,w){var T=L.active,A=L.userradiated,x=L.usertoxins,E=L.usermaxtoxins,O=L.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&O?"bad":"good",bold:!0,children:T&&O?O:0})})]})},l=function(L,w){var T=L.active,A=L.userhealth,x=L.usermaxhealth,E=L.userbrute,O=L.userburn,R=L.usertoxin,M=L.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?O/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?O:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})})]})],4)},c=function(L,w){var T=L.active,A=L.statustime,x=L.statusid,E=L.statushealth,O=L.statusmaxhealth,R=L.statusbrute,M=L.statusburn,D=L.statustoxin,j=L.statusoxy,U=L.statustemp,W=L.statusnutrition,K=L.statusfingerprints,G=L.statusdna,z=L.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/O:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?U:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?W:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?G:"???"})]})}),!!T&&!!z&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),z.map(function(Y){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[Y.stage,"/",Y.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.cure})]},Y.name)})]})})],0)},m={rad_counter:p,health_analyzer:l,status_readout:c},i=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},d=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},u=function(L,w){var T=L.configuration_data,A=L.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var O=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:O.display_name,type:O.type,value:O.value,values:O.values,module_ref:A})},O.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:L.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},s=function(L){switch(L){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},N=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,O=x.malfunctioning,R=x.locked,M=x.open,D=x.selected_module,j=x.complexity,U=x.complexity_max,W=x.wearer_name,K=x.wearer_job,G=O?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function z(){return A("activate")}return z}()}),children:G}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:R?"lock-open":"lock",content:R?"Unlock":"Lock",onClick:function(){function z(){return A("lock")}return z}()}),children:R?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",U,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[W,", ",K]})]})})},C=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,O=x.control,R=x.helmet,M=x.chestplate,D=x.gauntlets,j=x.boots,U=x.core,W=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:O}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:U&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:U}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:W/100,content:W+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,O=x.modules,R=O.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:R.length!==0&&R.map(function(M){var D=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,D,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,O=x.modules,R=(0,a.useLocalState)(w,"module_configuration",null),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:O.length!==0&&O.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===j.ref&&(0,e.createComponentVNode)(2,u,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function U(){return D(null)}return U}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function U(){return A("select",{ref:j.ref})}return U}(),icon:"bullseye",selected:j.module_active,tooltip:s(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function U(){return D(j.ref)}return U}(),icon:"cog",selected:M===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function U(){return A("pin",{ref:j.ref})}return U}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},g=r.MODsuitContent=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,O=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!O,children:!!O&&(0,e.createComponentVNode)(2,i)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,O=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,g)})})})}return B}()},86322:function(I,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=n(22677),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.autolink,u=i.code,s=i.frequency,N=i.linkedMagnets,C=i.magnetConfiguration,v=i.path,h=i.pathPosition,g=i.probing,b=i.powerState,B=i.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!d&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:g?"spinner":"sync",iconSpin:!!g,disabled:g,onClick:function(){function L(){return m("probe_magnets")}return L}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(s/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:u})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function L(){return m("toggle_power")}return L}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function L(w,T){return m("set_speed",{speed:T})}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(L){var w=L[0],T=L[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function L(){return m("path_clear")}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function L(){return(0,V.modalOpen)(l,"path_custom_input")}return L}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(L,w){var T=k.get(L)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:L})}return E}()},w)})})]})]})}),N.map(function(L,w){var T=L.uid,A=L.powerState,x=L.electricityLevel,E=L.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function O(){return m("toggle_magnet_power",{id:T})}return O}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:C.electricityLevel.min,maxValue:C.electricityLevel.max,onChange:function(){function O(R,M){return m("set_electricity_level",{id:T,electricityLevel:M})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:C.magneticField.min,maxValue:C.magneticField.max,onChange:function(){function O(R,M){return m("set_magnetic_field",{id:T,magneticField:M})}return O}()})})]})},T)})]})]})}return y}()},54374:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.MechBayConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.recharge_port,m=c&&c.mech,i=m&&m.cell,d=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function u(){return p("reconnect")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.charge/i.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.charge})," / "+i.maxcharge]})})]})})})})}return V}()},14823:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=n(37843),k=r.MechaControlConsole=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.beacons,d=m.stored_data;return d.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function u(){return c("clear_log")}return u}()}),children:d.map(function(u){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",u.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,V.decodeHtmlEntities)(u.message)})]},u.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:i.length&&i.map(function(u){return(0,e.createComponentVNode)(2,o.Section,{title:u.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function s(){return c("send_message",{mt:u.uid})}return s}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function s(){return c("get_log",{mt:u.uid})}return s}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function s(){return c("shock",{mt:u.uid})}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.maxHealth*.75,1/0],average:[u.maxHealth*.5,u.maxHealth*.75],bad:[-1/0,u.maxHealth*.5]},value:u.health,maxValue:u.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:u.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.cellMaxCharge*.75,1/0],average:[u.cellMaxCharge*.5,u.cellMaxCharge*.75],bad:[-1/0,u.cellMaxCharge*.5]},value:u.cellCharge,maxValue:u.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[u.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:u.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,V.toTitleCase)(u.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:u.active||"None"}),u.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[u.cargoMax*.75,1/0],average:[u.cargoMax*.5,u.cargoMax*.75],good:[-1/0,u.cargoMax*.5]},value:u.cargoUsed,maxValue:u.cargoMax})})||null]})},u.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},16189:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(22677),V=n(84947),k=n(51185),S=n(69774),y=n(76519),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,A){(0,f.modalOpen)(T,"edit",{field:A.edit,value:A.value})},m=function(T,A){var x=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:x.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:x.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[x.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:x.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:x.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[x.severity],children:x.severity})]})})})},i=r.MedicalRecords=function(){function w(T,A){var x=(0,t.useBackend)(A),E=x.data,O=E.loginState,R=E.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var M;return R===2?M=(0,e.createComponentVNode)(2,d):R===3?M=(0,e.createComponentVNode)(2,u):R===4?M=(0,e.createComponentVNode)(2,s):R===5?M=(0,e.createComponentVNode)(2,h):R===6&&(M=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,L),M]})})]})}return w}(),d=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.records,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],U=(0,t.useLocalState)(A,"sortId","name"),W=U[0],K=U[1],G=(0,t.useLocalState)(A,"sortOrder",!0),z=G[0],Y=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function $(){return E("screen",{screen:3})}return $}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function $(Q,re){return j(re)}return $}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,b,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,b,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,b,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,b,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,b,{id:"m_stat",children:"Mental Status"})]}),R.filter((0,a.createSearch)(D,function($){return $.name+"|"+$.id+"|"+$.rank+"|"+$.p_stat+"|"+$.m_stat})).sort(function($,Q){var re=z?1:-1;return $[W].localeCompare(Q[W])*re}).map(function($){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[$.p_stat],onClick:function(){function Q(){return E("view_record",{view_record:$.ref})}return Q}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",$.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.m_stat})]},$.id)})]})})})],4)},u=function(T,A){var x=(0,t.useBackend)(A),E=x.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function O(){return E("del_all_med_records")}return O}()})})]})})},s=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.medical,M=O.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:M?"spinner":"print",disabled:M,iconSpin:!!M,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return E("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,N)})}),!R||!R.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return E("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!R.empty,content:"Delete Medical Record",onClick:function(){function D(){return E("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,v)],4)],0)},N=function(T,A){var x=(0,t.useBackend)(A),E=x.data,O=E.general;return!O||!O.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.fields.map(function(R,M){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:R.value}),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return c(A,R)}return D}()})]},M)})})}),!!O.has_photos&&O.photos.map(function(R,M){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:R,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",M+1]},M)})]})},C=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.medical;return!R||!R.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:R.fields.map(function(M,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(A,M)}return j}()})]},D)})})})})},v=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function M(){return(0,f.modalOpen)(A,"add_comment")}return M}()}),children:R.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):R.comments.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:M.header}),(0,e.createVNode)(1,"br"),M.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return E("del_comment",{del_comment:D+1})}return j}()})]},D)})})})},h=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.virus,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],U=(0,t.useLocalState)(A,"sortId2","name"),W=U[0],K=U[1],G=(0,t.useLocalState)(A,"sortOrder2",!0),z=G[0],Y=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function $(Q,re){return j(re)}return $}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,B,{id:"severity",children:"Severity"})]}),R.filter((0,a.createSearch)(D,function($){return $.name+"|"+$.max_stages+"|"+$.severity})).sort(function($,Q){var re=z?1:-1;return $[W].localeCompare(Q[W])*re}).map(function($){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+$.severity,onClick:function(){function Q(){return E("vir",{vir:$.D})}return Q}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",$.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[$.severity],children:$.severity})]},$.id)})]})})})})],4)},g=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.medbots;return R.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),R.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+M.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",M.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[M.area||"Unknown"," (",M.x,", ",M.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.use_beaker?"Reservoir: "+M.total_volume+"/"+M.maximum_volume:"Using internal synthesizer"})]},M.id)})]})})})},b=function(T,A){var x=(0,t.useLocalState)(A,"sortId","name"),E=x[0],O=x[1],R=(0,t.useLocalState)(A,"sortOrder",!0),M=R[0],D=R[1],j=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function W(){E===j?D(!M):(O(j),D(!0))}return W}(),children:[U,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var x=(0,t.useLocalState)(A,"sortId2","name"),E=x[0],O=x[1],R=(0,t.useLocalState)(A,"sortOrder2",!0),M=R[0],D=R[1],j=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function W(){E===j?D(!M):(O(j),D(!0))}return W}(),children:[U,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.screen,M=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:R===2,onClick:function(){function D(){E("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:R===5,onClick:function(){function D(){E("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:R===6,onClick:function(){function D(){return E("screen",{screen:6})}return D}(),children:"Medibot Tracking"}),R===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:R===3,children:"Record Maintenance"}),R===4&&M&&!M.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:R===4,children:["Record: ",M.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},44482:function(I,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.product,u=p.productImage,s=p.productCategory,N=i.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>N,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function C(){return m("purchase",{name:d.name,category:s})}return C}()})})]})},V=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),d=i[0],u=m.products,s=m.imagelist,N=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:u[N[d]].map(function(C){return(0,e.createComponentVNode)(2,f,{product:C,productImage:s[C.path],productCategory:N[d]},C.name)})})},k=r.MerchVendor=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.user_cash,u=i.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,u,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function s(){return m("change")}return s}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,V)]})})]})})})}return y}(),S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),d=i[0],u=i[1],s=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function N(){return u(1)}return N}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function N(){return u(2)}return N}(),children:"Decorations"})]})}},53551:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=["title","items"];function k(i,d){if(i==null)return{};var u={},s=Object.keys(i),N,C;for(C=0;C=0)&&(u[N]=i[N]);return u}var S={Alphabetical:function(){function i(d,u){return d-u}return i}(),Availability:function(){function i(d,u){return-(d.affordable-u.affordable)}return i}(),Price:function(){function i(d,u){return d.price-u.price}return i}()},y=r.MiningVendor=function(){function i(d,u){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return i}(),p=function(d,u){var s=(0,t.useBackend)(u),N=s.act,C=s.data,v=C.has_id,h=C.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return N("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},l=function(d,u){var s=(0,t.useBackend)(u),N=s.act,C=s.data,v=C.has_id,h=C.id,g=C.items,b=(0,t.useLocalState)(u,"search",""),B=b[0],L=b[1],w=(0,t.useLocalState)(u,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(u,"descending",!1),E=x[0],O=x[1],R=(0,a.createSearch)(B,function(j){return j[0]}),M=!1,D=Object.entries(g).map(function(j,U){var W=Object.entries(j[1]).filter(R).map(function(K){return K[1].affordable=v&&h.points>=K[1].price,K[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?D:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,u){var s=(0,t.useLocalState)(u,"search",""),N=s[0],C=s[1],v=(0,t.useLocalState)(u,"sort",""),h=v[0],g=v[1],b=(0,t.useLocalState)(u,"descending",!1),B=b[0],L=b[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return C(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return g(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return L(!B)}return w}()})})]})})},m=function(d,u){var s=(0,t.useBackend)(u),N=s.act,C=s.data,v=d.title,h=d.items,g=k(d,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C.has_id||C.id.points=0)&&(T[x]=L[x]);return T}var c=128,m=["security","engineering","medical","science","service","supply"],i={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function L(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=E.is_security,R=E.is_admin,M=E.is_silent,D=E.is_printing,j=E.screen,U=E.channels,W=E.channel_idx,K=W===void 0?-1:W,G=(0,t.useLocalState)(T,"menuOpen",!1),z=G[0],Y=G[1],$=(0,t.useLocalState)(T,"viewingPhoto",""),Q=$[0],re=$[1],ae=(0,t.useLocalState)(T,"censorMode",!1),de=ae[0],ve=ae[1],ye;j===0||j===2?ye=(0,e.createComponentVNode)(2,s):j===1&&(ye=(0,e.createComponentVNode)(2,N));var Le=U.reduce(function(pe,ne){return pe+ne.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:O&&"security",width:800,height:600,children:[Q?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",z&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,u,{icon:"bars",title:"Toggle Menu",onClick:function(){function pe(){return Y(!z)}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function pe(){return x("headlines")}return pe}(),children:Le>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Le>=10?"9+":Le})}),(0,e.createComponentVNode)(2,u,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function pe(){return x("jobs")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:U.map(function(pe){return(0,e.createComponentVNode)(2,u,{icon:pe.icon,title:pe.name,selected:j===2&&U[K-1]===pe,onClick:function(){function ne(){return x("channel",{uid:pe.uid})}return ne}(),children:pe.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:pe.unread>=10?"9+":pe.unread})},pe)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!R)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"wanted_notice")}return pe}()}),(0,e.createComponentVNode)(2,u,{security:!0,icon:de?"minus-square":"minus-square-o",title:"Censor Mode: "+(de?"On":"Off"),mb:"0.5rem",onClick:function(){function pe(){return ve(!de)}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,u,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_story")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"plus-circle",title:"New Channel",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_channel")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,u,{icon:D?"spinner":"print",iconSpin:D,title:D?"Printing...":"Print Newspaper",onClick:function(){function pe(){return x("print_newspaper")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function pe(){return x("toggle_mute")}return pe}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return L}(),u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,O=E===void 0?"":E,R=w.iconSpin,M=w.selected,D=M===void 0?!1:M,j=w.security,U=j===void 0?!1:j,W=w.onClick,K=w.title,G=w.children,z=l(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",D&&"Newscaster__menuButton--selected",U&&"Newscaster__menuButton--security"]),onClick:W},z,{children:[D&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:R,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),G]})))},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=E.screen,R=E.is_admin,M=E.channel_idx,D=E.channel_can_manage,j=E.channels,U=E.stories,W=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),G=K[0],z=K[1],Y=(0,t.useLocalState)(T,"censorMode",!1),$=Y[0],Q=Y[1],re=O===2&&M>-1?j[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!W&&(0,e.createComponentVNode)(2,C,{story:W,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:re?re.icon:"newspaper",mr:"0.5rem"}),re?re.name:"Headlines"],0),children:U.length>0?U.slice().reverse().map(function(ae){return!G.includes(ae.uid)&&ae.body.length+3>c?Object.assign({},ae,{body_short:ae.body.substr(0,c-4)+"..."}):ae}).map(function(ae,de){return(0,e.createComponentVNode)(2,C,{story:ae},de)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!re&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([$&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!re.admin&&!R,selected:re.censored,icon:re.censored?"comment-slash":"comment",content:re.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ae(){return x("censor_channel",{uid:re.uid})}return ae}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"cog",content:"Manage",onClick:function(){function ae(){return(0,k.modalOpen)(T,"manage_channel",{uid:re.uid})}return ae}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:re.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:re.author||"N/A"}),!!R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:re.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:re.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),U.reduce(function(ae,de){return ae+de.view_count},0).toLocaleString()]})]})})]})},N=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=E.jobs,R=E.wanted,M=Object.entries(O).reduce(function(D,j){var U=j[0],W=j[1];return D+W.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!R&&(0,e.createComponentVNode)(2,C,{story:R,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(D){return Object.assign({},i[D],{id:D,jobs:O[D]})}).filter(function(D){return!!D&&D.jobs.length>0}).map(function(D){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+D.id]),title:D.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:D.fluff_text}),children:D.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},D.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=w.story,R=w.wanted,M=R===void 0?!1:R,D=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"censorMode",!1),G=K[0],z=K[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&G&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function Y(){return x("censor_story",{uid:O.uid})}return Y}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!!D&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),O.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(O.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(Y,$){return(0,e.createComponentVNode)(2,o.Box,{children:Y||(0,e.createVNode)(1,"br")},$)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function Y(){return W([].concat(U,[O.uid]))}return Y}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=l(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),O=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return R(A)}return M}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return E("")}return O}()})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!O){(0,k.modalClose)(T);return}var R=w.id==="manage_channel",M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(O==null?void 0:O.author)||D||"Unknown"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(O==null?void 0:O.name)||""),G=K[0],z=K[1],Y=(0,t.useLocalState)(T,"description",(O==null?void 0:O.description)||""),$=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"icon",(O==null?void 0:O.icon)||"newspaper"),ae=re[0],de=re[1],ve=(0,t.useLocalState)(T,"isPublic",R?!!(O!=null&&O.public):!1),ye=ve[0],Le=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",(O==null?void 0:O.admin)===1||!1),ne=pe[0],ce=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:R?"Manage "+O.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:U,onInput:function(){function q(se,me){return W(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:G,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:$,onInput:function(){function q(se,me){return Q(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ae,width:"35%",mr:"0.5rem",onInput:function(){function q(se,me){return de(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ae,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Le(!ye)}return q}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||G.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,w.id,"",{author:U,name:G.substr(0,49),description:$.substr(0,128),icon:ae,public:ye?1:0,admin_locked:ne?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=E.photo,R=E.channels,M=E.channel_idx,D=M===void 0?-1:M,j=!!w.args.is_admin,U=w.args.scanned_user,W=R.slice().sort(function(q,se){if(D<0)return 0;var me=R[D-1];if(me.uid===q.uid)return-1;if(me.uid===se.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===U||!!q.public)}),K=(0,t.useLocalState)(T,"author",U||"Unknown"),G=K[0],z=K[1],Y=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),$=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"title",""),ae=re[0],de=re[1],ve=(0,t.useLocalState)(T,"body",""),ye=ve[0],Le=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",!1),ne=pe[0],ce=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:G,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:$,options:W.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(se){return Q(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ae,onInput:function(){function q(se,me){return de(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ye,onInput:function(){function q(se,me){return Le(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(O?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ae,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"}),ye.split("\n").map(function(q,se){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},se)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:G.trim().length===0||$.trim().length===0||ae.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,"create_story","",{author:G,channel:$,title:ae.substr(0,127),body:ye.substr(0,1023),admin_locked:ne?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=E.photo,R=E.wanted,M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(R==null?void 0:R.author)||D||"Unknown"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(R==null?void 0:R.title.substr(8))||""),G=K[0],z=K[1],Y=(0,t.useLocalState)(T,"description",(R==null?void 0:R.body)||""),$=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"adminLocked",(R==null?void 0:R.admin_locked)===1||!1),ae=re[0],de=re[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:U,onInput:function(){function ve(ye,Le){return W(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:G,maxLength:"128",onInput:function(){function ve(ye,Le){return z(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:$,maxLength:"512",rows:"4",onInput:function(){function ve(ye,Le){return Q(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function ve(){return x(O?"eject_photo":"attach_photo")}return ve}()}),!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ve(){return de(!ae)}return ve}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!R,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function ve(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return ve}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||G.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ve(){(0,k.modalAnswer)(T,w.id,"",{author:U,name:G.substr(0,127),description:$.substr(0,511),admin_locked:ae?1:0})}return ve}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",g),(0,k.modalRegisterBodyOverride)("manage_channel",g),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NuclearBomb=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return l.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authdisk,content:l.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return V}()},45523:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(31068),f=n(91819),V=n(2971),k=n(84947),S=r.NumberInputModal=function(){function p(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.init_value,s=d.large_buttons,N=d.message,C=N===void 0?"":N,v=d.timeout,h=d.title,g=(0,f.useLocalState)(c,"input",u),b=g[0],B=g[1],L=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(C.length>30?Math.ceil(C.length/3):0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&i("submit",{entry:b}),E===o.KEY_ESCAPE&&i("cancel")}return A}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:L})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.min_value,s=d.max_value,N=d.init_value,C=d.round_value,v=l.input,h=l.onClick,g=l.onChange,b=Math.round(v!==u?Math.max(v/2,u):s/2),B=v===u&&u>0||v===1;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===u,icon:"angle-double-left",onClick:function(){function L(){return h(u)}return L}(),tooltip:v===u?"Min":"Min ("+u+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:u,maxValue:s,onChange:function(){function L(w,T){return g(T)}return L}(),onEnter:function(){function L(w,T){return i("submit",{entry:T})}return L}(),value:v})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===s,icon:"angle-double-right",onClick:function(){function L(){return h(s)}return L}(),tooltip:v===s?"Max":"Max ("+s+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function L(){return h(b)}return L}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===N,icon:"redo",onClick:function(){function L(){return h(N)}return L}(),tooltip:N?"Reset ("+N+")":"Reset"})})]})}},48314:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(84947),f=n(2971),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function i(d,u){var s=(0,t.useBackend)(u),N=s.act,C=s.data,v=C.hasOccupant,h=C.choice,g;return h?g=(0,e.createComponentVNode)(2,m):g=v?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return N("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return N("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return i}(),l=function(d,u){var s=(0,t.useBackend)(u),N=s.data,C=N.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:C.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[C.stat][0],children:V[C.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxHealth,value:C.health/C.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(v,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:C[v[1]]/100,ranges:S,children:(0,a.round)(C[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxTemp,value:C.bodyTemperature/C.maxTemp,color:y[C.temperatureSuitability+3],children:[(0,a.round)(C.btCelsius),"\xB0C, ",(0,a.round)(C.btFaren),"\xB0F"]})}),!!C.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.bloodMax,value:C.bloodLevel/C.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[C.bloodPercent,"%, ",C.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[C.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:C.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:C.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:C.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(d,u){var s=(0,t.useBackend)(u),N=s.act,C=s.data,v=C.verbose,h=C.health,g=C.healthAlarm,b=C.oxy,B=C.oxyAlarm,L=C.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function w(){return N(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return N(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return N("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return N(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return N("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function w(){return N(L?"critOff":"critOn")}return w}()})})]})}},87511:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947);function V(u,s){var N=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(N)return(N=N.call(u)).next.bind(N);if(Array.isArray(u)||(N=k(u))||s&&u&&typeof u.length=="number"){N&&(u=N);var C=0;return function(){return C>=u.length?{done:!0}:{done:!1,value:u[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(u,s){if(u){if(typeof u=="string")return S(u,s);var N=Object.prototype.toString.call(u).slice(8,-1);if(N==="Object"&&u.constructor&&(N=u.constructor.name),N==="Map"||N==="Set")return Array.from(u);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return S(u,s)}}function S(u,s){(s==null||s>u.length)&&(s=u.length);for(var N=0,C=new Array(s);NN},c=function(s,N){var C=s.name,v=N.name;if(!C||!v)return 0;var h=C.match(y),g=v.match(y);if(h&&g&&C.replace(y,"")===v.replace(y,"")){var b=parseInt(h[1],10),B=parseInt(g[1],10);return b-B}return l(C,v)},m=function(s,N){var C=s.searchText,v=s.source,h=s.title,g=s.color,b=s.sorted,B=v.filter(p(C));return b&&B.sort(c),v.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:h+" - ("+v.length+")",children:B.map(function(L){return(0,e.createComponentVNode)(2,i,{thing:L,color:g},L.name)})})},i=function(s,N){var C=(0,t.useBackend)(N),v=C.act,h=s.color,g=s.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function b(){return v("orbit",{ref:g.ref})}return b}(),children:[g.name,g.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",g.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},d=r.Orbit=function(){function u(s,N){for(var C=(0,t.useBackend)(N),v=C.act,h=C.data,g=h.alive,b=h.antagonists,B=h.highlights,L=h.response_teams,w=h.auto_observe,T=h.dead,A=h.ghosts,x=h.misc,E=h.npcs,O=(0,t.useLocalState)(N,"searchText",""),R=O[0],M=O[1],D={},j=V(b),U;!(U=j()).done;){var W=U.value;D[W.antag]===void 0&&(D[W.antag]=[]),D[W.antag].push(W)}var K=Object.entries(D);K.sort(function(z,Y){return l(z[0],Y[0])});var G=function(){function z(Y){for(var $=0,Q=[K.map(function(de){var ve=de[0],ye=de[1];return ye}),B,g,A,T,E,x];$0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function(z){var Y=z[0],$=z[1];return(0,e.createComponentVNode)(2,o.Section,{title:Y+" - ("+$.length+")",level:2,children:$.filter(p(R)).sort(c).map(function(Q){return(0,e.createComponentVNode)(2,i,{color:"bad",thing:Q},Q.name)})},Y)})}),B.length>0&&(0,e.createComponentVNode)(2,m,{title:"Highlights",source:B,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,m,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,m,{title:"Alive",source:g,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,m,{title:"Ghosts",source:A,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,m,{title:"Dead",source:T,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"NPCs",source:E,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"Misc",source:x,searchText:R,sorted:!1})]})})}return u}()},54528:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),V=n(50175);function k(s){if(s==null)throw new TypeError("Cannot destructure "+s)}var S=(0,V.createLogger)("OreRedemption"),y=function(N){return N.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function s(N,C){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return s}(),l=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.id,B=g.points,L=g.disk,w=Object.assign({},(k(N),N));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:b?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:b.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.points)})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:y(B)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!b,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),L?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:L.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L.design||!L.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:L.design&&(L.compatible?"good":"bad"),children:L.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.sheets,B=Object.assign({},(k(N),N));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,d,{ore:L},L.id)})]})))})},m=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.alloys,B=Object.assign({},(k(N),N));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,u,{ore:L},L.id)})]})))})},i=function(N,C){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:N.title}),(v=N.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=N.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return h(g.value?"sheet":"alloy",{id:g.id,amount:L})}return b}()})})]})})},u=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=N.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return h(g.value?"sheet":"alloy",{id:g.id,amount:L})}return b}()})})]})})}},55686:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),V=n(33115),k=function(p){var l;try{l=V("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=l[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.app_template,u=i.app_icon,s=i.app_title,N=k(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u,mr:1}),s,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function C(){return m("Back")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function C(){return m("MASTER_back")}return C}()})],4)]}),children:(0,e.createComponentVNode)(2,N)})})})})})}return y}()},58717:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),V=n(75168),k=function(c){var m;try{m=V("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw d}var i=m[c];return i||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.app,N=u.owner;if(!N)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var C=k(s.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s.icon,mr:1}),s.name]}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.idInserted,N=u.idLink,C=u.stationTime,v=u.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return d("Authenticate")}return h}(),content:s?N:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return d("Eject")}return h}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:C})]})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!s.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function N(){return d("Back")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:s.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.is_home?"disabled":"white",icon:"home",onClick:function(){function N(){d("Home")}return N}()})})]})})}},78062:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48300),V=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.active,i=c.anchored,d=c.broken,u=c.emagged,s=c.fuel_type,N=c.fuel_usage,C=c.fuel_stored,v=c.fuel_cap,h=c.is_ai,g=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,L=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=C/v,E=g/b,O=T*w,R=Math.round(C/N),M=Math.round(R/60),D=R>120?M+" minutes":R+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!i)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!i&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!i&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function j(){return l("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:L*(u?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(U,W){return l("change_power",{change_power:W})}return j}()}),"(",(0,f.formatPower)(O),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[g," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||h||!A,onClick:function(){function j(){return l("eject_fuel")}return j}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(C/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[N/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(N?D:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},65823:function(I,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ParticleAccelerator=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.assembled,m=l.power,i=l.strength,d=l.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function u(){return p("scan")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||i===0,onClick:function(){function u(){return p("remove_strength")}return u}(),mr:"4px"}),i,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||i===d,onClick:function(){function u(){return p("add_strength")}return u}(),ml:"4px"})]})]})})})})}return V}()},67572:function(I,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PdaPainter=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,V)})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function i(){return m("insert_pda")}return i}()})]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function s(){return m("choose_pda",{selectedPda:u})}return s}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[u][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u})]},u)})})})})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.current_appearance,u=i.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function s(){return m("eject_pda")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function s(){return m("paint_pda")}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},12456:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PersonalCrafting=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.busy,d=m.category,u=m.display_craftable_only,s=m.display_compact,N=m.prev_cat,C=m.next_cat,v=m.subcategory,h=m.prev_subcat,g=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),s?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function N(){return c("make",{make:s.ref})}return N}()}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)}),!i&&u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)})]})})},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function N(){return c("make",{make:s.ref})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)}),!i&&u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)})]})}},72143:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Photocopier=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function i(){return c("minus")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function i(){return c("add")}return i}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function i(){return c("removedocument")}return i}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function i(){return c("removefolder")}return i}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!i&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function d(){return c("filecopy",{uid:i.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:i.uid})}return d}()})]})},i.name)})})}},47051:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=["tempKey"];function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(l,c){var m=l.tempKey,i=V(l,f),d=k[m];if(!d)return null;var u=(0,a.useBackend)(c),s=u.data,N=u.act,C=s.currentTemp,v=d.label,h=d.icon,g=m===C,b=function(){N("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:g,onClick:b},i,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},y=r.PoolController=function(){function p(l,c){for(var m=(0,a.useBackend)(c),i=m.data,d=i.emagged,u=i.currentTemp,s=k[u]||k.normal,N=s.label,C=s.color,v=[],h=0,g=Object.entries(k);h50?"battery-half":"battery-quarter")||C==="C"&&"bolt"||C==="F"&&"battery-full"||C==="M"&&"slash",color:C==="N"&&(v>50?"yellow":"red")||C==="C"&&"yellow"||C==="F"&&"green"||C==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=f.pureComponentHooks;var u=function(N){var C,v,h=N.status;switch(h){case"AOn":C=!0,v=!0;break;case"AOff":C=!0,v=!1;break;case"On":C=!1,v=!0;break;case"Off":C=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:C?void 0:"M",title:g})};u.defaultHooks=f.pureComponentHooks},15164:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(88488),f=n(22677),V=n(51185),k=n(69774),S=n(84947),y=r.PrisonerImplantManager=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.loginState,s=d.prisonerInfo,N=d.chemicalInfo,C=d.trackingInfo,v;if(!u.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.name?"eject":"id-card",selected:s.name,content:s.name?s.name:"-----",tooltip:s.name?"Eject ID":"Insert ID",onClick:function(){function g(){return i("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[s.points!==null?s.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:s.points===null,content:"Reset",onClick:function(){function g(){return i("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[s.goal!==null?s.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:s.goal===null,content:"Edit",onClick:function(){function g(){return(0,f.modalOpen)(c,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:s.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:C.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function b(){return(0,f.modalOpen)(c,"warn",{uid:g.uid})}return b}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:N.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume0?"envelope-open-text":"envelope",onClick:function(){function b(){return s("setScreen",{setScreen:6})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function b(){return s("setScreen",{setScreen:1})}return b}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function b(){return s("setScreen",{setScreen:2})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function b(){return s("setScreen",{setScreen:3})}return b}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function b(){return s("setScreen",{setScreen:9})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function b(){return s("setScreen",{setScreen:10})}return b}()})]})}),!!v&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function b(){return s("setScreen",{setScreen:8})}return b}()})})]})})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.department,v=[],h;switch(i.purpose){case"ASSISTANCE":v=N.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":v=N.supply_dept,h="Request supplies from another department";break;case"INFO":v=N.info_dept,h="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return s("setScreen",{setScreen:0})}return g}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.filter(function(g){return g!==C}).map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function b(){return s("writeInput",{write:g,priority:"1"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function b(){return s("writeInput",{write:g,priority:"2"})}return b}()})]},g)})})})})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C;switch(i.type){case"SUCCESS":C="Message sent successfully";break;case"FAIL":C="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function v(){return s("setScreen",{setScreen:0})}return v}()})})},y=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C,v;switch(i.type){case"MESSAGES":C=N.message_log,v="Message Log";break;case"SHIPPING":C=N.shipping_log,v="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return s("setScreen",{setScreen:0})}return h}()}),children:C.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[h.map(function(g,b){return(0,e.createVNode)(1,"div",null,g,0,null,b)}),(0,e.createVNode)(1,"hr")]},h)})})})},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.recipient,v=N.message,h=N.msgVerified,g=N.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return s("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:g})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function b(){return s("department",{department:C})}return b}()})})})],4)},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.message,v=N.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return s("setScreen",{setScreen:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function h(){return s("writeAnnouncement")}return h}()})],4),children:C})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[v?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(v&&C),onClick:function(){function h(){return s("sendAnnouncement")}return h}()})]})})],4)},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.shipDest,v=N.msgVerified,h=N.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return s("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:v})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(C&&v),onClick:function(){function g(){return s("printLabel")}return g}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:C===g?"Selected":"Select",selected:C===g,onClick:function(){function b(){return s("shipSelect",{shipSelect:g})}return b}()})},g)})})})})],4)}},51939:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(63752),V=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,f.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function d(u){return u===V.LATHE||u===V.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return d}()}),i?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:i})})}):null]})})})}return y}()},50239:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.CurrentLevels=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(l,c){var m=l.name,i=l.level,d=l.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},m)})]})}return f}()},24183:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V="design",k="tech",S=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=N.act,h=C.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return v("updt_tech")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function g(){return v("clear_tech")}return g}()}),(0,e.createComponentVNode)(2,l)]})]}):null},y=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=N.act,h=C.disk_data;if(!h)return null;var g=h.name,b=h.lathe_types,B=h.materials,L=b.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g}),L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:L}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return v("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return v("clear_design")}return w}()}),(0,e.createComponentVNode)(2,l)]})]})},p=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=C.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=N.act,h=C.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function g(){var b=h===k?"eject_tech":"eject_design";v(b)}return g}()}):null},c=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=C.disk_data,h=C.disk_type,g=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case V:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:g()})},m=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=N.act,h=C.disk_type,g=C.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,L=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?v("copy_tech",{id:L}):v("copy_design",{id:L})}return w}()})},L)})})})})},i=r.DataDiskMenu=function(){function d(u,s){var N=(0,a.useBackend)(s),C=N.data,v=C.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return d}()},72751:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.DeconstructionMenu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_item,c=y.linked_destroy;return c?l?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",l.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},51802:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheCategory=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.category,m=p.matching_designs,i=p.menu,d=i===4,u=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(s){var N=s.id,C=s.name,v=s.can_build,h=s.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:C,disabled:v<1,onClick:function(){function g(){return l(u,{id:N,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return l(u,{id:N,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return l(u,{id:N,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},N)})})]})}return V}()},47349:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheChemicalStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_chemicals,c=y.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var i=c?"disposeallP":"disposeallI";p(i)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(m){var i=m.volume,d=m.name,u=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+i+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function s(){var N=c?"disposeP":"disposeI";p(N,{id:u})}return s}()})},u)})})]})}return f}()},73492:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheMainMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.menu,m=p.categories,i=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:i+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function u(){l("setCategory",{category:d})}return u}()})},d)})})]})}return V}()},87115:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterialStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(c){var m=c.id,i=c.amount,d=c.name,u=function(){function v(h){var g=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(g,{id:m,amount:h})}return v}(),s=Math.floor(i/2e3),N=i<1,C=s===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:N?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",i," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",s," sheet",C,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return u(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return u("custom")}return v}()}),i>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return u(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return u(50)}return v}()})],0):null})]},m)})})})}return f}()},2345:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterials=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.total_materials,l=y.max_materials,c=y.max_chemicals,m=y.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},45805:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(28823),a=n(91819),t=n(28078),o=n(63752),f=n(2971),V=n(51939),k=r.LatheMenu=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.data,m=c.menu,i=c.linked_lathe,d=c.linked_imprinter;return m===4&&!i?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CATEGORY,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_MAT_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return u}()})]})}return S}()},92497:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheSearch=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(l,c){return y("search",{to_search:c})}return p}()})})}return f}()},25242:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.disk_type,m=l.linked_destroy,i=l.linked_lathe,d=l.linked_imprinter,u=l.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!i,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){var N=s.name,C=s.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:C},N)})})]})}return k}()},29933:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.RndNavButton=function(){function f(V,k){var S=V.icon,y=V.children,p=V.disabled,l=V.content,c=(0,a.useBackend)(k),m=c.data,i=c.act,d=m.menu,u=m.submenu,s=d,N=u;return V.menu!==null&&V.menu!==void 0&&(s=V.menu),V.submenu!==null&&V.submenu!==void 0&&(N=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:p,onClick:function(){function C(){i("nav",{menu:s,submenu:N})}return C}(),children:y})}return f}()},59959:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(28823),a=n(63752),t=n(2971),o=n(51939),f=r.RndNavbar=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return V}()},28078:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(91819),a=r.RndRoute=function(){function t(o,f){var V=o.render,k=(0,e.useBackend)(f),S=k.data,y=S.menu,p=S.submenu,l=function(){function m(i,d){return i==null?!0:typeof i=="function"?i(d):i===d}return m}(),c=l(o.menu,y)&&l(o.submenu,p);return c?V():null}return t}()},59991:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=p.act,m=l.sync,i=l.admin,d=l.linked_destroy,u=l.linked_lathe,s=l.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function N(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function C(){c("sync")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function C(){c("togglesync")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function C(){c("togglesync")}return C}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),i===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function C(){return c("maxresearch")}return C}()}):null]})})}return N}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function N(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function C(){return c("find_device")}return C}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){return c("disconnect",{item:"destroy"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){c("disconnect",{item:"lathe"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){return c("disconnect",{item:"imprinter"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return N}()})]})}return k}()},63752:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(50239);r.CurrentLevels=e.CurrentLevels;var a=n(24183);r.DataDiskMenu=a.DataDiskMenu;var t=n(72751);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(51802);r.LatheCategory=o.LatheCategory;var f=n(47349);r.LatheChemicalStorage=f.LatheChemicalStorage;var V=n(73492);r.LatheMainMenu=V.LatheMainMenu;var k=n(2345);r.LatheMaterials=k.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(45805);r.LatheMenu=y.LatheMenu;var p=n(92497);r.LatheSearch=p.LatheSearch;var l=n(25242);r.MainMenu=l.MainMenu;var c=n(59959);r.RndNavbar=c.RndNavbar;var m=n(29933);r.RndNavButton=m.RndNavButton;var i=n(28078);r.RndRoute=i.RndRoute;var d=n(59991);r.SettingsMenu=d.SettingsMenu},73407:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),V=function(y,p){var l=y/p;return l<=.2?"good":l<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(i,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(i.name),children:i.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:i.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:V(i.brute_damage,i.max_damage),children:i.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:V(i.electronic_damage,i.max_damage),children:i.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:i.powered?"good":"bad",children:i.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:i.status?"good":"bad",children:i.status?"Yes":"No"})]})})]})},d)})})})}return S}()},48356:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.RoboticsControlConsole=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.can_hack,i=c.safety,d=c.show_lock_all,u=c.cyborgs,s=u===void 0?[]:u;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function N(){return l("arm",{})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:i,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function N(){return l("masslock",{})}return N}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:s,can_hack:m})]})})}return k}(),V=function(S,y){var p=S.cyborgs,l=S.can_hack,c=(0,a.useBackend)(y),m=c.act,i=c.data,d="Detonate";return i.detonate_cooldown>0&&(d+=" ("+i.detonate_cooldown+"s)"),p.length?p.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createFragment)([!!u.hackable&&!u.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function s(){return m("hackbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:u.locked_down?"unlock":"lock",color:u.locked_down?"good":"default",content:u.locked_down?"Release":"Lockdown",disabled:!i.auth,onClick:function(){function s(){return m("stopbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!i.auth||i.detonate_cooldown>0,color:"bad",onClick:function(){function s(){return m("killbot",{uid:u.uid})}return s}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:u.status?"bad":u.locked_down?"average":"good",children:u.status?"Not Responding":u.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:u.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.health>50?"good":"bad",value:u.health/100})}),typeof u.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.charge>30?"good":"bad",value:u.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:u.cell_capacity<3e4?"average":"good",children:u.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!u.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:u.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:u.synchronization?"default":"average",children:u.synchronization||"None"})})]})},u.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},33122:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Safe=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,N=i.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),u?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!u&&(0,e.createComponentVNode)(2,S)]})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,N=function(v,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:u||h&&!s,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+v,iconRight:h,onClick:function(){function g(){return m(h?"turnleft":"turnright",{num:v})}return g}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,icon:u?"lock":"lock-open",content:u?"Close":"Open",mb:"0.5rem",onClick:function(){function C(){return m("open")}return C}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[N(50),N(10),N(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[N(1,!0),N(10,!0),N(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(u,s){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function N(){return m("retrieve",{index:s+1})}return N}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:u.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),u.name]}),(0,e.createVNode)(1,"br")],4,u)})})},S=function(p,l){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},46748:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SatelliteControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.satellites,m=l.notice,i=l.meteor_shield,d=l.meteor_shield_coverage,u=l.meteor_shield_coverage_max,s=l.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[i&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s>=100?"good":"average",value:d,maxValue:u,children:[s," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+N.id,children:[N.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:N.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function C(){return p("toggle",{id:N.id})}return C}()})]},N.id)})]})})]})})}return V}()},46504:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),V=n(99753),k=n(31068),S=r.SecureStorage=function(){function c(m,i){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})})})})}return c}(),y=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=window.event?m.which:m.keyCode;if(s===k.KEY_ENTER){m.preventDefault(),u("keypad",{digit:"E"});return}if(s===k.KEY_ESCAPE){m.preventDefault(),u("keypad",{digit:"C"});return}if(s===k.KEY_BACKSPACE){m.preventDefault(),u("backspace");return}if(s>=k.KEY_0&&s<=k.KEY_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_0});return}if(s>=k.KEY_NUMPAD_0&&s<=k.KEY_NUMPAD_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_NUMPAD_0});return}},p=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.locked,C=s.no_passcode,v=s.emagged,h=s.user_entered_code,g=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=C?"":N?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(L){return y(L,i)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+b]),height:"100%",children:v?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(L){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:L})},L)})},B[0])})})]})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:N,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+N]),onClick:function(){function C(){return u("keypad",{digit:N})}return C}()})}},54529:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=n(22677),k=n(51185),S=n(69774),y=n(76519),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(h,g){(0,V.modalOpen)(h,"edit",{field:g.edit,value:g.value})},c=r.SecurityRecords=function(){function v(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.loginState,T=L.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,i):T===2&&(A=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.currentPage,T=L.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},i=function(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.records,T=(0,t.useLocalState)(g,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(g,"sortId","name"),O=E[0],R=E[1],M=(0,t.useLocalState)(g,"sortOrder",!0),D=M[0],j=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(U){return U.name+"|"+U.id+"|"+U.rank+"|"+U.fingerprint+"|"+U.status})).sort(function(U,W){var K=D?1:-1;return U[O].localeCompare(W[O])*K}).map(function(U){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[U.status],onClick:function(){function W(){return B("view",{uid_gen:U.uid_gen,uid_sec:U.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",U.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.status})]},U.id)})]})})})],4)},d=function(h,g){var b=(0,t.useLocalState)(g,"sortId","name"),B=b[0],L=b[1],w=(0,t.useLocalState)(g,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function O(){B===x?A(!T):(L(x),A(!0))}return O}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},u=function(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.isPrinting,T=(0,t.useLocalState)(g,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,V.modalOpen)(g,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(O,R){return x(R)}return E}()})})]})},s=function(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.isPrinting,T=L.general,A=L.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,N)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function O(){return l(g,x)}return O}()})]},E)})})})})}),(0,e.createComponentVNode)(2,C)],4)],0)},N=function(h,g){var b=(0,t.useBackend)(g),B=b.data,L=B.general;return!L||!L.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return l(g,w)}return A}()})]},T)})})}),!!L.has_photos&&L.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},C=function(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,V.modalOpen)(g,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},79315:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SeedExtractor=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.stored_seeds,i=c.vend_amount;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Stored Seeds",buttons:(0,e.createFragment)([(0,e.createTextVNode)("Set Amount to be Vended:\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:i,width:"40px",minValue:1,maxValue:25,stepPixelSize:3,onDrag:function(){function d(u,s){return l("set_vend_amount",{vend_amount:s})}return d}()})],4),children:m!=null&&m.length?(0,e.createComponentVNode)(2,V):"No Seeds"})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.stored_seeds;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Lifespan"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Endurance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Maturation"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Production"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Yield"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Potency"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stock"})]}),m.map(function(i,d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),i.name,i.variant?" ("+i.variant+")":""]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.lifespan}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.endurance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.maturation}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.production}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.yield}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.potency}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:["(",i.amount," Left)\xA0",(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Vend",icon:"arrow-circle-down",onClick:function(){function u(){return l("vend",{seedid:i.id,seedvariant:i.variant})}return u}()})]})]},d)})]})}},58578:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l.status?l.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!l.shuttle&&(!!l.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:l.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return p("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!l.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return V}()},11154:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleManipulator=function(){function y(p,l){var c=(0,a.useLocalState)(l,"tabIndex",0),m=c[0],i=c[1],d=function(){function u(s){switch(s){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return u}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function u(){return i(0)}return u}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function u(){return i(1)}return u}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function u(){return i(2)}return u}(),icon:"tools",children:"Modification"},"Modification")]}),d(m)]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:u.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:u.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:u.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:u.id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function s(){return m("fast_travel",{id:u.id})}return s}()})]})]})},u.name)})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.templates_tabs,u=i.existing_shuttle,s=i.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===u.id,icon:"file",onClick:function(){function C(){return m("select_template_category",{cat:N})}return C}(),children:N},N)})}),!!u&&s[u.id].templates.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[N.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:N.description}),N.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:N.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function C(){return m("select_template",{shuttle_id:N.shuttle_id})}return C}()})})]})},N.name)})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.existing_shuttle,u=i.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:d.id})}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:u.description}),u.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:u.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function s(){return m("preview",{shuttle_id:u.shuttle_id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function s(){return m("load",{shuttle_id:u.shuttle_id})}return s}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},80699:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function s(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.hasOccupant,B=b?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,u);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i)})]})})})}return s}(),l=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.occupant,B=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function L(){return h("auto_eject_dead_"+(B?"off":"on"))}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function L(){return h("ejectify")}return L}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[b.stat][0],children:V[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},m=function(N,C){var v=(0,t.useBackend)(C),h=v.data,g=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[b[1]]/100,ranges:S,children:(0,a.round)(g[b[1]],0)},B)},B)})})})},i=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.hasOccupant,B=g.isBeakerLoaded,L=g.beakerMaxSpace,w=g.beakerFreeSpace,T=g.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:w/L,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.occupant,B=g.chemicals,L=g.maxchem,w=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:T.occ_amount/L,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",L,"u"]}),w.map(function(O,R){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+O>L||b.stat===2,icon:"syringe",content:"Inject "+O+"u",title:"Inject "+O+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return h("chemical",{chemid:T.id,amount:O})}return M}()},R)})]})})},A)})})},u=function(N,C){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},42439:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SlotMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;if(l.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return l.plays===1?c=l.plays+" player has tried their luck today!":c=l.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:l.working,content:l.working?"Spinning...":"Spin",onClick:function(){function m(){return p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return V}()},280:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Smartfridge=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.secure,m=l.can_dry,i=l.drying,d=l.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:i?"power-off":"times",content:i?"On":"Off",selected:i,onClick:function(){function u(){return p("drying")}return u}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(u,s){return u.display_name.localeCompare(s.display_name)}).map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",u.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function s(){return p("vend",{index:u.vend,amount:1})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:u.quantity,step:1,stepPixelSize:3,onChange:function(){function s(N,C){return p("vend",{index:u.vend,amount:C})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function s(){return p("vend",{index:u.vend,amount:u.quantity})}return s}()})]})]},u)})]})]})})})}return V}()},47606:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(48300),f=n(84947),V=1e3,k=r.Smes=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.capacityPercent,d=m.capacity,u=m.charge,s=m.inputAttempt,N=m.inputting,C=m.inputLevel,v=m.inputLevelMax,h=m.inputAvailable,g=m.outputPowernet,b=m.outputAttempt,B=m.outputting,L=m.outputLevel,w=m.outputLevelMax,T=m.outputUsed,A=i>=100&&"good"||N&&"average"||"bad",x=B&&"good"||u>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:s?"sync-alt":"times",selected:s,onClick:function(){function E(){return c("tryinput")}return E}(),children:s?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:i>=100&&"Fully Charged"||N&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:C===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:C/V,fillValue:h/V,minValue:0,maxValue:v/V,step:5,stepPixelSize:4,format:function(){function E(O){return(0,o.formatPower)(O*V,1)}return E}(),onChange:function(){function E(O,R){return c("input",{target:R*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===v,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:g?B?"Sending":u>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:L===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:L===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:L/V,minValue:0,maxValue:w/V,step:5,stepPixelSize:4,format:function(){function E(O){return(0,o.formatPower)(O*V,1)}return E}(),onChange:function(){function E(O,R){return c("output",{target:R*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:L===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:L===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},66527:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SolarControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=0,m=1,i=2,d=l.generated,u=l.generated_ratio,s=l.tracking_state,N=l.tracking_rate,C=l.connected_panels,v=l.connected_tracker,h=l.cdir,g=l.direction,b=l.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),s===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",N,"\xB0/h (",b,")"," "]}),s===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[s!==i&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(L,w){return p("cdir",{cdir:w})}return B}()}),s===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:s===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:s===m,onClick:function(){function B(){return p("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:s===i,disabled:!v,onClick:function(){function B(){return p("track",{track:i})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:N,format:function(){function B(L){var w=Math.sign(L)>0?"+":"-";return w+Math.abs(L)}return B}(),onDrag:function(){function B(L,w){return p("tdir",{tdir:w})}return B}()}),s===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),s===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},27478:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpawnersMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function i(){return p("jump",{ID:m.uids})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function i(){return p("spawn",{ID:m.uids})}return i}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return V}()},15565:function(I,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpecMenu=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),V=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("hemomancer")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("umbrae")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("gargantua")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("dantalion")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},31752:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.alarms||[],m=c.Fire||[],i=c.Atmosphere||[],d=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)})],4)}return k}()},64323:function(I,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(28823),a=n(72026),t=n(98644),o=n(91819),f=n(2971),V=n(84947),k=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(k||{}),S=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data,s=u.future_station_traits,N=(0,o.useLocalState)(m,"selectedFutureTrait",null),C=N[0],v=N[1],h=Object.fromEntries(u.valid_station_traits.map(function(b){return[b.name,b.path]})),g=Object.keys(h);return g.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!C&&"Select trait to add...",onSelected:v,options:g,selected:C,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(C){var B=h[C],L=[B];if(s){var w,T=s.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;L=(w=L).concat.apply(w,T)}d("setup_future_traits",{station_traits:L})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(s)?s.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.map(function(b){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(s,function(L){if(L.path!==b.path)return L.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return d("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return d("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data;return u.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:u.current_traits.map(function(s){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:s.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:u.too_late_to_revert||!s.can_revert,tooltip:!s.can_revert&&"This trait is not revertable."||u.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function N(){return d("revert",{ref:s.ref})}return N}()})})]})},s.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function l(c,m){var i=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),d=i[0],u=i[1],s;switch(d){case k.SetupFutureStationTraits:s=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:s=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,V.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:d===k.ViewStationTraits,onClick:function(){function N(){return u(k.ViewStationTraits)}return N}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:d===k.SetupFutureStationTraits,onClick:function(){function N(){return u(k.SetupFutureStationTraits)}return N}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),s]})]})})})}return l}()},57633:function(I,r,n){"use strict";r.__esModule=!0,r.SuitStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SuitStorage=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.uv;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,textAlign:"center",mb:1,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,e.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,S)]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.helmet,u=i.suit,s=i.magboots,N=i.mask,C=i.storage,v=i.open,h=i.locked;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored Items",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Start Disinfection Cycle",icon:"radiation",textAlign:"center",onClick:function(){function g(){return m("cook")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:h?"Unlock":"Lock",icon:h?"unlock":"lock",disabled:v,onClick:function(){function g(){return m("toggle_lock")}return g}()})],4),children:v&&!h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,k,{object:d,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.createComponentVNode)(2,k,{object:u,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.createComponentVNode)(2,k,{object:s,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,e.createComponentVNode)(2,k,{object:N,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.createComponentVNode)(2,k,{object:C,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:h?"lock":"exclamation-circle",size:"5",mb:3}),(0,e.createVNode)(1,"br"),h?"The unit is locked.":"The unit is closed."]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.object,u=p.label,s=p.missingText,N=p.eject;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u,children:(0,e.createComponentVNode)(2,t.Box,{my:.5,children:d?(0,e.createComponentVNode)(2,t.Button,{my:-1,icon:"eject",content:d,onClick:function(){function C(){return m(N)}return C}()}):(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.open,u=i.locked;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:d?"Close Suit Storage Unit":"Open Suit Storage Unit",icon:d?"times-circle":"expand",color:d?"red":"green",disabled:u,textAlign:"center",onClick:function(){function s(){return m("toggle_open")}return s}()})})}},72217:function(I,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitor=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(58331),f=n(91819),V=n(2971),k=n(30381),S=n(84947),y=n(99753),p=r.SupermatterMonitor=function(){function i(d,u){var s=(0,f.useBackend)(u),N=s.act,C=s.data;return C.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return i}(),l=function(d){return Math.log2(16+Math.max(0,d))-4},c=function(d,u){var s=(0,f.useBackend)(u),N=s.act,C=s.data,v=C.supermatters,h=v===void 0?[]:v;return(0,e.createComponentVNode)(2,S.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,title:"Detected Supermatters",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"sync",content:"Refresh",onClick:function(){function g(){return N("refresh")}return g}()}),children:(0,e.createComponentVNode)(2,V.Table,{children:h.map(function(g){return(0,e.createComponentVNode)(2,V.Table.Row,{children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:g.supermatter_id+". "+g.area_name}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:g.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,V.Button,{content:"Details",onClick:function(){function b(){return N("view",{view:g.supermatter_id})}return b}()})})]},g.supermatter_id)})})})})})},m=function(d,u){var s=(0,f.useBackend)(u),N=s.act,C=s.data,v=C.active,h=C.SM_integrity,g=C.SM_power,b=C.SM_ambienttemp,B=C.SM_ambientpressure,L=(0,t.flow)([function(T){return T.filter(function(A){return A.amount>=.01})},(0,a.sortBy)(function(T){return-T.amount})])(C.gases||[]),w=Math.max.apply(Math,[1].concat(L.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:g,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(g)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(b),minValue:0,maxValue:l(1e4),ranges:{teal:[-1/0,l(80)],good:[l(80),l(373)],average:[l(373),l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(B),minValue:0,maxValue:l(5e4),ranges:{good:[l(1),l(300)],average:[-1/0,l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return N("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:L.map(function(T){return(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,V.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SyndicateComputerSimple=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return p(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return V}()},61225:function(I,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return l("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(c.cold_inlet_temp)," K,"," ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K,"," ",f(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(c.hot_inlet_temp)," K,"," ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K,"," ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return k}()},97552:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TachyonArray=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.records,i=m===void 0?[]:m,d=c.explosion_target,u=c.toxins_tech,s=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!i.length||s,align:"center",onClick:function(){function N(){return l("print_logs")}return N}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!i.length,color:"bad",align:"center",onClick:function(){function N(){return l("delete_logs")}return N}()})]})]})}),i.length?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),V=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.records,i=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function u(){return l("delete_record",{index:d.index})}return u}()})})]},d.index)})]})})})})}return k}()},33291:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Tank=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c;return l.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:l.connected?"check":"times",content:l.connected?"Internals On":"Internals Off",selected:l.connected,onClick:function(){function m(){return p("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:l.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return p("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(){function m(i,d){return p("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return p("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},75480:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TankDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.o_tanks,m=l.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function i(){return p("oxygen")}return i}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function i(){return p("plasma")}return i}()})})]})})})}return V}()},62291:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsCore=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.ion,s=(0,a.useLocalState)(c,"tabIndex",0),N=s[0],C=s[1],v=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u===1&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:N===0,onClick:function(){function h(){return C(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:N===1,onClick:function(){function h(){return C(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:N===2,onClick:function(){function h(){return C(2)}return h}(),children:"User Filtering"},"FilterPage")]}),v(N)]})})}return p}(),V=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.active,s=d.sectors_available,N=d.nttc_toggle_jobs,C=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,b=d.nttc_setting_language,B=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function L(){return i("toggle_active")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"On":"Off",selected:N,icon:"user-tag",onClick:function(){function L(){return i("nttc_toggle_jobs")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"clipboard-list",onClick:function(){function L(){return i("nttc_toggle_job_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function L(){return i("nttc_toggle_name_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function L(){return i("nttc_toggle_command_bold")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function L(){return i("nttc_job_indicator_type")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function L(){return i("nttc_setting_language")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function L(){return i("network_id")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function L(){return i("import")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function L(){return i("export")}return L}()})]})],4)},S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.link_password,s=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"lock",onClick:function(){function N(){return i("change_password")}return N}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),s.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function C(){return i("unlink",{addr:N.addr})}return C}()})})]},N.addr)})]})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function s(){return i("add_filter")}return s}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function N(){return i("remove_filter",{user:s})}return N}()})})]},s)})]})})}},82905:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsRelay=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.linked,d=m.active,u=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function s(){return c("toggle_active")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"server",onClick:function(){function s(){return c("network_id")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:i===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),i===1?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.linked_core_id,d=m.linked_core_addr,u=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"Yes":"No",icon:u?"eye-slash":"eye",selected:u,onClick:function(){function s(){return c("toggle_hidden_link")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return c("unlink")}return s}()})})]})})},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return c("link",{addr:d.addr})}return u}()})})]},d.addr)})]})})}},87692:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Teleporter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.targetsTeleport?l.targetsTeleport:{},m=0,i=1,d=2,u=l.calibrated,s=l.calibrating,N=l.powerstation,C=l.regime,v=l.teleporterhub,h=l.target,g=l.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!N||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!N&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),N&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),N&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[C===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),C===i&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),C===d&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:C===i?"good":null,onClick:function(){function b(){return p("setregime",{regime:i})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:C===m?"good":null,onClick:function(){function b(){return p("setregime",{regime:m})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:C===d?"good":null,disabled:!g,onClick:function(){function b(){return p("setregime",{regime:d})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||u&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(u||s),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(g&&N&&v&&C===d)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return V}()},40759:function(I,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.TempGun=function(){function p(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.target_temperature,s=d.temperature,N=d.max_temp,C=d.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:C,maxValue:N,value:u,format:function(){function v(h){return(0,a.toFixed)(h,2)}return v}(),width:"50px",onDrag:function(){function v(h,g){return i("target_temperature",{target_temperature:g})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(s),bold:s>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(s,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(s),children:S(s)})})]})})})})}return p}(),k=function(l){return l<=-100?"blue":l<=0?"teal":l<=100?"green":l<=200?"orange":"red"},S=function(l){return l<=100-273.15?"High":l<=250-273.15?"Medium":l<=300-273.15?"Low":l<=400-273.15?"Medium":"High"},y=function(l){return l<=100-273.15?"red":l<=250-273.15?"orange":l<=300-273.15?"green":l<=400-273.15?"orange":"red"}},32369:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(91819),f=n(31068),V=n(2971),k=n(84947),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,N=s.max_length,C=s.message,v=C===void 0?"":C,h=s.multiline,g=s.placeholder,b=s.timeout,B=s.title,L=(0,o.useLocalState)(i,"input",g||""),w=L[0],T=L[1],A=function(){function O(R){if(R!==w){var M=h?S(R):y(R);T(M)}}return O}(),x=h||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function O(R){var M=window.event?R.which:R.keyCode;M===f.KEY_ENTER&&(!x||!R.shiftKey)&&u("submit",{entry:w}),M===f.KEY_ESCAPE&&u("cancel")}return O}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+N})})]})})})]})}return c}(),l=function(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,N=s.max_length,C=s.multiline,v=m.input,h=m.onType,g=C||v.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:C||v.length>=40?"100%":"1.8rem",maxLength:N,onEscape:function(){function b(){return u("cancel")}return b}(),onEnter:function(){function b(B){g&&B.shiftKey||(B.preventDefault(),u("submit",{entry:v}))}return b}(),onInput:function(){function b(B,L){return h(L)}return b}(),placeholder:"Type something...",value:v})}},82296:function(I,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(i){return(0,a.toFixed)(i,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(i){return(0,a.toFixed)(i,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return l("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return l("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return l("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(i,d){return l("target",{target:d})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return l("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return l("target",{target:c.initial})}return m}()})]})]})})]})})}return k}()},68488:function(I,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TransferValve=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.tank_one,m=l.tank_two,i=l.attached_device,d=l.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!m,onClick:function(){function u(){return p("toggle")}return u}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!i,onClick:function(){function u(){return p("device")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function u(){return p("remove_device")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function u(){return p("tankone")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function u(){return p("tanktwo")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},26868:function(I,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(58331),V=r.TurbineComputer=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.compressor,u=i.compressor_broken,s=i.turbine,N=i.turbine_broken,C=i.online,v=!!(d&&!u&&s&&!N);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:C?"power-off":"times",content:C?"Online":"Offline",selected:C,disabled:!v,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.compressor,d=m.compressor_broken,u=m.turbine,s=m.turbine_broken,N=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!i||d?"bad":"good",children:d?i?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!u||s?"bad":"good",children:s?u?"Offline":"Missing":"Online"})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.rpm,d=m.temperature,u=m.power,s=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[i," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[u," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(s)+"%"})})]})}},30778:function(I,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(37843),f=n(91819),V=n(2971),k=n(84947),S=n(22677),y=function(C){switch(C){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function N(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=b.cart,L=(0,f.useLocalState)(v,"tabIndex",0),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===0,onClick:function(){function O(){T(0),E("")}return O}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===1,onClick:function(){function O(){T(1),E("")}return O}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===2,onClick:function(){function O(){T(2),E("")}return O}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function O(){return g("lock")}return O}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:y(w)})]})})]})}return N}(),l=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=b.crystals,L=b.cats,w=(0,f.useLocalState)(v,"uplinkItems",L[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(v,"searchText",""),E=x[0],O=x[1],R=function(K,G){G===void 0&&(G="");var z=(0,o.createSearch)(G,function(Y){var $=Y.hijack_only===1?"|hijack":"";return Y.name+"|"+Y.desc+"|"+Y.cost+"tc"+$});return(0,t.flow)([(0,a.filter)(function(Y){return Y==null?void 0:Y.name}),G&&(0,a.filter)(z),(0,a.sortBy)(function(Y){return Y==null?void 0:Y.name})])(K)},M=function(K){if(O(K),K==="")return A(L[0].items);A(R(L.map(function(G){return G.items}).flat(),K))},D=(0,f.useLocalState)(v,"showDesc",1),j=D[0],U=D[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function W(){return U(!j)}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return g("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return g("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,G){M(G)}return W}(),value:E})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function K(){A(W.items),O("")}return K}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:T.map(function(W){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:W,showDecription:j},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=b.cart,L=b.crystals,w=b.cart_price,T=(0,f.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return g("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return g("purchase_cart")}return E}(),disabled:!B||w>L})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,u,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=b.cats,L=b.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return g("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:L.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,i,{grow:!0,i:w})},T)})})})})},i=function(C,v){var h=C.i,g=C.showDecription,b=g===void 0?1:g,B=C.buttons,L=B===void 0?(0,e.createComponentVNode)(2,d,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:L,children:b?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},d=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=C.i,L=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return g("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,V.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return g("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>L})],4)},u=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=C.i,L=b.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return g("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return g("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},s=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=b.exploitable,L=(0,f.useLocalState)(v,"selectedRecord",B[0]),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1],O=function(D,j){j===void 0&&(j="");var U=(0,o.createSearch)(j,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),j&&(0,a.filter)(U),(0,a.sortBy)(function(W){return W.name})])(D)},R=O(B,x);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(D,j){return E(j)}return M}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:R.map(function(M){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:M===w,onClick:function(){function D(){return T(M)}return D}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},7307:function(I,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.product,i=S.productStock,d=S.productImage,u=c.chargesMoney,s=c.user,N=c.usermoney,C=c.inserted_cash,v=c.vend_ready,h=c.inserted_item_name,g=!u||m.price===0,b="ERROR!",B="";g?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var L=!v||i===0||!g&&m.price>N&&m.price>C;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:i<=0&&"bad"||i<=m.max_amount/2&&"average"||"good",children:[i," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:L,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:m.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.user,i=c.usermoney,d=c.inserted_cash,u=c.chargesMoney,s=c.product_records,N=s===void 0?[]:s,C=c.hidden_records,v=C===void 0?[]:C,h=c.stock,g=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,L=c.speaker,w=c.imagelist,T;return T=[].concat(N),c.extended_inventory&&(T=[].concat(T,v)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((u?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return l("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return l("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),","," ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[i,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"check":"volume-mute",selected:L,content:"Speaker",textAlign:"left",onClick:function(){function A(){return l("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},25485:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VolumeMixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:i>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:m.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function d(u,s){return p("volume",{channel:m.num,volume:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return V}()},26564:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VotePanel=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.remaining,m=l.question,i=l.choices,d=l.user_vote,u=l.counts,s=l.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),i.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:N,content:N+(s?" ("+(u[N]||0)+")":""),onClick:function(){function C(){return p("vote",{target:N})}return C}(),selected:N===d})},N)})]})})})}return V}()},496:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Wires=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.wires||[],m=l.status||[],i=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:i,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function u(){return p("cut",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function u(){return p("pulse",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function u(){return p("attach",{wire:d.color})}return u}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return V}()},28919:function(I,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.WizardApprenticeContract=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},14635:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971);function f(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=V(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(p,l){if(p){if(typeof p=="string")return k(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,l)}}function k(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c0&&!b.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function U(){return B(j.ref)}return U}()},j.desc)})]})]})})}return p}()},29136:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=function(S,y,p,l,c){return Sl?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function k(S,y){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(l){return l.val!=="0"||l.entry==="Pressure"||l.entry==="Temperature"})(p).map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.entry,color:f(l.val,l.bad_low,l.poor_low,l.poor_high,l.bad_high),children:[l.val,l.units]},l.entry)})})})}return k}()},83326:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function V(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,l=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!l&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:l(c,m)})]},c.name)})]})}return V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},86041:function(I,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.BotStatus=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.locked,c=p.noaccess,m=p.maintpanel,i=p.on,d=p.autopatrol,u=p.canhack,s=p.emagged,N=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"On":"Off",selected:i,disabled:c,onClick:function(){function C(){return y("power")}return C}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function C(){return y("autopatrol")}return C}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"bad":"good",children:s?"DISABLED!":"Enabled"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:s?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function C(){return y("hack")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!N,content:"AI Remote Control",disabled:c,onClick:function(){function C(){return y("disableremote")}return C}()})})]})})],4)}return f}()},22677:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(28823),a=n(91819),t=n(2971),o={},f=r.modalOpen=function(){function p(l,c,m){var i=(0,a.useBackend)(l),d=i.act,u=i.data,s=Object.assign(u.modal?u.modal.args:{},m||{});d("modal_open",{id:c,arguments:JSON.stringify(s)})}return p}(),V=r.modalRegisterBodyOverride=function(){function p(l,c){o[l]=c}return p}(),k=r.modalAnswer=function(){function p(l,c,m,i){var d=(0,a.useBackend)(l),u=d.act,s=d.data;if(s.modal){var N=Object.assign(s.modal.args||{},i||{});u("modal_answer",{id:c,answer:m,arguments:JSON.stringify(N)})}}return p}(),S=r.modalClose=function(){function p(l,c){var m=(0,a.useBackend)(l),i=m.act;i("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.data;if(i.modal){var d=i.modal,u=d.id,s=d.text,N=d.type,C,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,g,b="auto";if(o[u])h=o[u](i.modal,c);else if(N==="input"){var B=i.modal.value;C=function(){function w(T){return k(c,u,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:i.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(N==="choice"){var L=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:L,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,u,T)}return w}()}),b="initial"}else N==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:i.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(i.modal.value,10),onClick:function(){function A(){return k(c,u,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):N==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return k(c,u,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:i.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:l.maxWidth||window.innerWidth/2+"px",maxHeight:l.maxHeight||window.innerHeight/2+"px",onEnter:C,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[s&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s}),o[u]&&v,h,g]})}}return p}()},692:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(37843),f=n(30381),V=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},p=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(i.rank),bold:y(i.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.active})]},i.name+i.rank)})]})},l=r.CrewManifest=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s;if(m.data)s=m.data;else{var N=(0,a.useBackend)(i),C=N.data;s=C}var v=s,h=v.manifest,g=h.heads,b=h.sec,B=h.eng,L=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(x)})]})}return c}()},98658:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(28823),a=n(2971),t=n(91819),o=r.InputButtons=function(){function f(V,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,l=p.large_buttons,c=p.swapped_buttons,m=V.input,i=V.message,d=V.disabled,u=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function N(){return y("submit",{entry:m})}return N}(),textAlign:"center",tooltip:l&&i,disabled:d,width:!l&&6}),s=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!l,fluid:!!l,onClick:function(){function N(){return y("cancel")}return N}(),textAlign:"center",width:!l&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s}),!l&&i&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:i})}),l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u})]})}return f}()},29723:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.InterfaceLockNoticeBox=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=V.siliconUser,c=l===void 0?p.siliconUser:l,m=V.locked,i=m===void 0?p.locked:m,d=V.normallyLocked,u=d===void 0?p.normallyLocked:d,s=V.onLockStatusChange,N=s===void 0?function(){return y("lock")}:s,C=V.accessText,v=C===void 0?"an ID card":C;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:u?"red":"green",icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",onClick:function(){function h(){N&&N(!i)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",i?"unlock":"lock"," this interface."]})}return f}()},2146:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(28823),a=n(58331),t=n(2971),o=r.Loader=function(){function f(V){var k=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},51185:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginInfo=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!l.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return f}()},69774:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginScreen=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState,c=p.isAI,m=p.isRobot,i=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){function d(){return y("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){function d(){return y("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return y("login_login",{login_type:2})}return d}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return y("login_login",{login_type:3})}return d}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return y("login_login",{login_type:4})}return d}()})]})})})}return f}()},48154:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(28823),a=n(2971),t=n(64635),o=r.Operating=function(){function f(V){var k=V.operating,S=V.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},92149:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.Signaler=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,l=k.data,c=l.code,m=l.frequency,i=l.minFrequency,d=l.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:i/10,maxValue:d/10,value:m/10,format:function(){function u(s){return(0,a.toFixed)(s,1)}return u}(),width:"80px",onDrag:function(){function u(s,N){return p("freq",{freq:N})}return u}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function u(s,N){return p("code",{code:N})}return u}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function u(){return p("signal")}return u}()})]})}return V}()},79969:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(28823),a=n(91819),t=n(37843),o=n(90955),f=n(72026),V=n(2971),k=r.SimpleRecords=function(){function p(l,c){var m=l.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.recordsList,u=(0,a.useLocalState)(c,"searchText",""),s=u[0],N=u[1],C=function(g,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(L){return L.Name});return(0,o.flow)([(0,f.filter)(function(L){return L==null?void 0:L.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(L){return L.Name})])(d)},v=C(d,s);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(g,b){return N(b)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function g(){return i("Records",{target:h.uid})}return g}()})},h)})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.records,u=d.general,s=d.medical,N=d.security,C;switch(l.recordType){case"MED":C=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:s?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":C=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:N?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:N.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:N.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:N.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:N.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:N.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:N.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Section,{title:"General Data",children:u?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Mental Status",children:u.m_stat})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"General record lost!"})}),C]})}},76519:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.TemporaryNotice=function(){function f(V,k){var S,y=(0,a.useBackend)(k),p=y.act,l=y.data,c=l.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function i(){return p("cleartemp")}return i}()})})]})})))}}return f}()},98638:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pai_atmosphere=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},56601:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_bioscan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.holder,m=l.dead,i=l.health,d=l.brute,u=l.oxy,s=l.tox,N=l.burn,C=l.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:i/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:N})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},48047:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_directives=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.master,m=l.dna,i=l.prime,d=l.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function u(){return y("getdna")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},4646:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_doorjack=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.cable,m=l.machine,i=l.inprogress,d=l.progress,u=l.aborted,s;m?s=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):s=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function C(){return y("cable")}return C}()});var N;return m&&(N=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),i?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function C(){return y("cancel")}return C}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function C(){return y("jack")}return C}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:s}),N]})}return f}()},94648:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_main_menu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.available_software,m=l.installed_software,i=l.installed_toggles,d=l.available_ram,u=l.emotions,s=l.current_emotion,N=l.speech_verbs,C=l.current_speech_verb,v=l.available_chassises,h=l.current_chassis,g=[];return m.map(function(b){return g[b.key]=b.name}),i.map(function(b){return g[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!g[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!g[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[i.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),i.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:u.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===s,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:N.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===C,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},45549:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pai_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},53434:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_medrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},7328:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(28823),a=n(91819),t=n(38467),o=r.pai_messenger=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},32036:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(28823),a=n(91819),t=n(58331),o=n(2971),f=r.pai_radio=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.app_data,m=c.minFrequency,i=c.maxFrequency,d=c.frequency,u=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:i/10,value:d/10,format:function(){function s(N){return(0,t.toFixed)(N,1)}return s}(),onChange:function(){function s(N,C){return p("freq",{freq:C})}return s}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function s(){return p("freq",{freq:"145.9"})}return s}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function s(){return p("toggleBroadcast")}return s}(),selected:u,content:u?"Enabled":"Disabled"})})]})}return V}()},76020:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_secrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},11562:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pai_signaler=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},29539:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pda_atmos_scan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},92180:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_janitor=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.janitor,c=l.user_loc,m=l.mops,i=l.buckets,d=l.cleanbots,u=l.carts,s=l.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - ",N.status]},N)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:i.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - [",N.volume,"/",N.max_volume,"]"]},N)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - ",N.status]},N)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - [",N.volume,"/",N.max_volume,"]"]},N)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:s.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.direction_from_user,")"]},N)})})]})}return f}()},57725:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.pda_main_menu=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,l=y.data,c=l.owner,m=l.ownjob,i=l.idInserted,d=l.categories,u=l.pai,s=l.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!i,onClick:function(){function N(){return p("UpdateInfo")}return N}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(N){var C=l.apps[N];return!C||!C.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N,children:C.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in s?v.notify_icon:v.icon,iconSpin:v.uid in s,color:v.uid in s?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},N)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!u&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function N(){return p("pai",{option:1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function N(){return p("pai",{option:2})}return N}()})]})})]})}return V}()},29978:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pda_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},20567:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_medical=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},38467:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=r.pda_messenger=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.active_convo;return d?(0,e.createComponentVNode)(2,V,{data:i}):(0,e.createComponentVNode)(2,k,{data:i})}return y}(),V=r.ActiveConversation=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convo_name,u=i.convo_job,s=i.messages,N=i.active_convo,C=(0,t.useLocalState)(l,"clipboardMode",!1),v=C[0],h=C[1],g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:N})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===N})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return v&&(g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:N})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===N})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function b(){return m("Clear",{option:"Convo"})}return b}()})})})}),g]})}return y}(),k=r.MessengerList=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convopdas,u=i.pdas,s=i.charges,N=i.silent,C=i.toff,v=i.ringtone_list,h=i.ringtone,g=(0,t.useLocalState)(l,"searchTerm",""),b=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!N,icon:N?"volume-mute":"volume-up",onClick:function(){function L(){return m("Toggle Ringer")}return L}(),children:["Ringer: ",N?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:C?"bad":"green",icon:"power-off",onClick:function(){function L(){return m("Toggle Messenger")}return L}(),children:["Messenger: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function L(){return m("Clear",{option:"All"})}return L}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function L(){return m("Ringtone")}return L}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(v),onSelected:function(){function L(w){return m("Available_Ringtones",{selected_ringtone:w})}return L}()})})]})}),!C&&(0,e.createComponentVNode)(2,o.Box,{children:[!!s&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[s," charges left."]})})}),!d.length&&!u.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:b,onInput:function(){function L(w,T){B(T)}return L}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:i,pdas:d,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:u,msgAct:"Message",data:i,searchTerm:b})]})}return y}(),S=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=p.pdas,u=p.title,s=p.msgAct,N=p.searchTerm,C=i.charges,v=i.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:u,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:u,children:d.filter(function(h){return h.Name.toLowerCase().includes(N.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function g(){return m(s,{target:h.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!C&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:g.uid,target:h.uid})}return b}()},g.uid)})})]},h.uid)})})}},54291:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(96820),f=r.pda_mob_hunt=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.connected,m=l.wild_captures,i=l.no_collection,d=l.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function u(){return p("Disconnect")}return u}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function u(){return p("Reconnect")}return u}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:m})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!i&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function u(){return p("Prev")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function u(){return p("Next")}return u}()})]})}),children:i?"Your collection is empty! Go capture some Nano-Mobs!":d?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(d.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:d.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:d.type1}),d.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:d.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function u(){return p("Transfer")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function u(){return p("Release")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function u(){return p("Rename")}return u}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function u(){return p("Set_Trap")}return u}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return V}()},31112:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_mule=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.bots;return i.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function u(){return l("control",{bot:d.uid})}return u}()})},d.Name)})},V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.botstatus,d=m.active,u=i.mode,s=i.loca,N=i.load,C=i.powr,v=i.dest,h=i.home,g=i.retn,b=i.pick,B;switch(u){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=u;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[u===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[C,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function L(){return l("target")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:N?N+" (Unload)":"None",disabled:!N,onClick:function(){function L(){return l("unload")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function L(){return l("set_pickup_type",{autopick:b?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function L(){return l("set_auto_return",{autoret:g?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function L(){return l("stop")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function L(){return l("start")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function L(){return l("home")}return L}()})]})]})]})}},2817:function(I,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=r.pda_nanobank=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.logged_in,C=s.owner_name,v=s.money;return N?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:C}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",v]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),V=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=(0,t.useLocalState)(i,"tabIndex",1),N=s[0],C=s[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,onClick:function(){function v(){return C(1)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,onClick:function(){function v(){return C(2)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===3,onClick:function(){function v(){return C(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,i){var d=(0,t.useLocalState)(i,"tabIndex",1),u=d[0],s=(0,t.useBackend)(i),N=s.data,C=N.db_status;if(!C)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,i){var d,u=(0,t.useBackend)(i),s=u.act,N=u.data,C=N.requests,v=N.available_accounts,h=N.money,g=(0,t.useLocalState)(i,"selectedAccount"),b=g[0],B=g[1],L=(0,t.useLocalState)(i,"transferAmount"),w=L[0],T=L[1],A=(0,t.useLocalState)(i,"searchText",""),x=A[0],E=A[1],O=[];return v.map(function(R){return O[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(M,D){return E(D)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:v.filter((0,a.createSearch)(x,function(R){return R.name})).map(function(R){return R.name}),selected:(d=v.filter(function(R){return R.UID===b})[0])==null?void 0:d.name,onSelected:function(){function R(M){return B(O[M])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(M,D){return T(D)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:h0&&s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.OrderedBy,'"']},C)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:u>0&&d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.ApprovedBy,'"']},C)})})]})}return f}()},73786:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(33053),f=["className","theme","children"],V=["className","scrollable","children"];/** + */var V=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],y={},p=function(s){if(s===16)return"Shift";if(s===17)return"Ctrl";if(s===18)return"Alt";if(s===33)return"Northeast";if(s===34)return"Southeast";if(s===35)return"Southwest";if(s===36)return"Northwest";if(s===37)return"West";if(s===38)return"North";if(s===39)return"East";if(s===40)return"South";if(s===45)return"Insert";if(s===46)return"Delete";if(s>=48&&s<=57||s>=65&&s<=90)return String.fromCharCode(s);if(s>=96&&s<=105)return"Numpad"+(s-96);if(s>=112&&s<=123)return"F"+(s-111);if(s===188)return",";if(s===189)return"-";if(s===190)return"."},l=function(s){var N=String(s);if(N==="Ctrl+F5"||N==="Ctrl+R"){location.reload();return}if(N!=="Ctrl+F"&&!(s.event.defaultPrevented||s.isModifierKey()||S.includes(s.code))){N==="F5"&&(s.event.preventDefault(),s.event.returnValue=!1);var C=p(s.code);if(C){var v=k[C];if(v)return V.debug("macro",v),Byond.command(v);if(s.isDown()&&!y[C]){y[C]=!0;var h='Key_Down "'+C+'"';return V.debug(h),Byond.command(h)}if(s.isUp()&&y[C]){y[C]=!1;var g='Key_Up "'+C+'"';return V.debug(g),Byond.command(g)}}}},c=r.acquireHotKey=function(){function u(s){S.push(s)}return u}(),m=r.releaseHotKey=function(){function u(s){var N=S.indexOf(s);N>=0&&S.splice(N,1)}return u}(),i=r.releaseHeldKeys=function(){function u(){for(var s=0,N=Object.keys(y);s=75?c="green":l.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:l.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,l.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(m,i){return(0,e.createComponentVNode)(2,t.Box,{children:m},i)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.wireless?"green":"red",onClick:function(){function m(){return p("wireless")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.radio?"green":"red",onClick:function(){function m(){return p("radio")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:l.flushing||l.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function m(){return p("wipe")}return m}()})})]})})})]})})})}return V}()},46817:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AIFixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;if(l.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(l.stat===2||l.stat===null)&&(c=!1);var m=null;l.integrity>=75?m="green":l.integrity>=25?m="yellow":m="red";var i=!0;return l.integrity>=100&&l.stat!==2&&(i=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:l.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:m,value:l.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(d,u){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},u)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!i||l.active,content:!i||l.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return V}()},20420:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),V=r.APC=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return p}(),k={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"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.locked&&!d.siliconUser,s=d.normallyLocked,N=k[d.externalPower]||k[0],C=k[d.chargingStatus]||k[0],v=d.powerChannels||[],h=S[d.malfStatus]||S[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:N.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!u,color:d.isOperating?"":"bad",disabled:u,onClick:function(){function b(){return i("breaker")}return b}()}),children:["[ ",N.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:u,onClick:function(){function b(){return i("charge")}return b}()}),children:["[ ",C.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!u&&(b.status===1||b.status===3),disabled:u,onClick:function(){function L(){return i("channel",B.auto)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!u&&b.status===2,disabled:u,onClick:function(){function L(){return i("channel",B.on)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!u&&b.status===0,disabled:u,onClick:function(){function L(){return i("channel",B.off)}return L}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return i(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return i("overload")}return b}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:u,onClick:function(){function b(){return i("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:u,onClick:function(){function b(){return i("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return i("toggle_nightshift")}return b}()})})]})})],4)}},16822:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ATM=function(){function m(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.view_screen,v=N.authenticated_account,h=N.ticks_left_locked_down,g=N.linked_db,b;if(h>0)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!g)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(C){case 1:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,l);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return m}(),V=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.machine_id,v=N.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"eject",onClick:function(){function h(){return s("insert_card")}return h}()})})})]})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:C===0,onClick:function(){function v(){return s("change_security_level",{new_security_level:1})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:C===2,onClick:function(){function v(){return s("change_security_level",{new_security_level:2})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=(0,a.useLocalState)(d,"targetAccNumber",0),v=C[0],h=C[1],g=(0,a.useLocalState)(d,"fundsAmount",0),b=g[0],B=g[1],L=(0,a.useLocalState)(d,"purpose",0),w=L[0],T=L[1],A=N.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,O){return h(O)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,O){return B(O)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,O){return T(O)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return s("transfer",{target_acc_number:v,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=(0,a.useLocalState)(d,"fundsAmount",0),v=C[0],h=C[1],g=N.owner_name,b=N.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return s("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return s("withdrawal",{funds_amount:v})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return s("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return s("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return s("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return s("balance_statement")}return B}()})})]})],4)},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=(0,a.useLocalState)(d,"accountID",null),v=C[0],h=C[1],g=(0,a.useLocalState)(d,"accountPin",null),b=g[0],B=g[1],L=N.machine_id,w=N.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return s("attempt_auth",{account_num:v,account_pin:b})}return T}()})})]})})},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),C.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function C(){return s("view_screen",{view_screen:0})}return C}()})}},90698:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(99753),V=n(84947),k=n(51185),S=n(69774),y=r.AccountsUplinkTerminal=function(){function N(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=b.loginState,L=b.currentPage,w;if(B.logged_in)L===1?w=(0,e.createComponentVNode)(2,l):L===2?w=(0,e.createComponentVNode)(2,u):L===3&&(w=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,V.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return N}(),p=function(C,v){var h=(0,t.useBackend)(v),g=h.data,b=(0,t.useLocalState)(v,"tabIndex",0),B=b[0],L=b[1],w=g.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return L(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return L(1)}return T}(),children:"Department Accounts"})]})})})},l=function(C,v){var h=(0,t.useLocalState)(v,"tabIndex",0),g=h[0];switch(g){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=b.accounts,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],O=(0,t.useLocalState)(v,"sortOrder",!0),R=O[0],M=O[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(D){return D.owner_name+"|"+D.account_number+"|"+D.suspended+"|"+D.money})).sort(function(D,j){var U=R?1:-1;return D[x].localeCompare(j[x])*U}).map(function(D){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+D.suspended,onClick:function(){function j(){return g("view_account_detail",{account_num:D.account_number})}return j}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",D.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",D.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:D.money})]},D.account_number)})]})})})]})},m=function(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,f.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,f.TableCell,{children:"Account Balance"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+L.suspended,onClick:function(){function w(){return g("view_account_detail",{account_num:L.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",L.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",L.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.money})]},L.account_number)})]})})})})},i=function(C,v){var h=(0,t.useLocalState)(v,"sortId","name"),g=h[0],b=h[1],B=(0,t.useLocalState)(v,"sortOrder",!0),L=B[0],w=B[1],T=C.id,A=C.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:g!==T&&"transparent",width:"100%",onClick:function(){function x(){g===T?w(!L):(b(T),w(!0))}return x}(),children:[A,g===T&&(0,e.createComponentVNode)(2,o.Icon,{name:L?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=b.is_printing,L=(0,t.useLocalState)(v,"searchText",""),w=L[0],T=L[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return g("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},u=function(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=b.account_number,L=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+L,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function O(){return g("back")}return O}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function O(){return g("set_account_pin",{account_number:B})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function O(){return g("toggle_suspension")}return O}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:O.is_deposit?"green":"red",children:["$",O.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.target_name})]},O)})]})})})]})},s=function(C,v){var h=(0,t.useBackend)(v),g=h.act,b=h.data,B=(0,t.useLocalState)(v,"accName",""),L=B[0],w=B[1],T=(0,t.useLocalState)(v,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return g("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(O,R){return w(R)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(O,R){return x(R)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return g("finalise_create_account",{holder_name:L,starting_funds:A})}return E}()})]})}},26354:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},V=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=f[c.power.main]||f[0],i=f[c.power.backup]||f[0],d=f[c.shock]||f[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:m.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function u(){return l("disrupt-main")}return u}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:i.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function u(){return l("disrupt-backup")}return u}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function u(){return l("shock-restore")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function u(){return l("shock-temp")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function u(){return l("shock-perm")}return u}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function u(){return l("idscan-toggle")}return u}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function u(){return l("emergency-toggle")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function u(){return l("bolt-toggle")}return u}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function u(){return l("light-toggle")}return u}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function u(){return l("safe-toggle")}return u}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function u(){return l("speed-toggle")}return u}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function u(){return l("open-close")}return u}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},26673:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(29723),V=r.AirAlarm=function(){function d(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),k=function(u){return u===0?"green":u===1?"orange":"red"},S=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.air,g=v.mode,b=v.atmos_alarm,B=v.locked,L=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function x(){return C("mode",{mode:g===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return C("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return C("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:L?"Reset Alarm":"Activate Alarm",selected:L,onClick:function(){function x(){return C(L?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return C("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return C("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return C("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},y=function(u,s){var N=(0,a.useLocalState)(s,"tabIndex",0),C=N[0],v=N[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(u,s){var N=(0,a.useLocalState)(s,"tabIndex",0),C=N[0],v=N[1];switch(C){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,m);case 3:return(0,e.createComponentVNode)(2,i);default:return"WE SHOULDN'T BE HERE!"}},l=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.vents;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function b(){return C("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction?"Blowing":"Siphoning",icon:g.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return C("command",{cmd:"direction",val:!g.direction,id_tag:g.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function b(){return C("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function b(){return C("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return C("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return C("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return b}()})]})]})},g.name)})},c=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.scrubbers;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function b(){return C("command",{cmd:"power",val:!g.power,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return C("command",{cmd:"scrubbing",val:!g.scrubbing,id_tag:g.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return C("command",{cmd:"widenet",val:!g.widenet,id_tag:g.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function b(){return C("command",{cmd:"co2_scrub",val:!g.filter_co2,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function b(){return C("command",{cmd:"tox_scrub",val:!g.filter_toxins,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function b(){return C("command",{cmd:"n2o_scrub",val:!g.filter_n2o,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function b(){return C("command",{cmd:"o2_scrub",val:!g.filter_o2,id_tag:g.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function b(){return C("command",{cmd:"n2_scrub",val:!g.filter_n2,id_tag:g.id_tag})}return b}()})]})]})},g.name)})},m=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.modes,g=v.presets,b=v.emagged,B=v.mode,L=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return C("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===L,onClick:function(){function T(){return C("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},i=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return C("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},g.name)})]})})}},98565:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AirlockAccessController=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.exterior_status,m=l.interior_status,i=l.processing,d,u;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:i,onClick:function(){function s(){return p("force_ext")}return s}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:i,onClick:function(){function s(){return p("cycle_ext_door")}return s}()}),m==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:i,color:m==="open"?"red":i?"yellow":null,onClick:function(){function s(){return p("force_int")}return s}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:i,onClick:function(){function s(){return p("cycle_int_door")}return s}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:m==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,u]})})]})})}return V}()},76385:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=1,k=2,S=4,y=8,p=r.AirlockElectronics=function(){function m(i,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})})}return m}(),l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:C&S?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:C&k?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:C&y?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:C&V?"selected":null,onClick:function(){function v(){return s("unrestricted_access",{unres_dir:V})}return v}()})})]})]})})},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.selected_accesses,v=N.one_access,h=N.regions;return(0,e.createComponentVNode)(2,f.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function g(){return s("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return s("set_one_access",{access:"all"})}return g}()})],4),accesses:h,selectedList:C,accessMod:function(){function g(b){return s("set",{access:b})}return g}(),grantAll:function(){function g(){return s("grant_all")}return g}(),denyAll:function(){function g(){return s("clear_all")}return g}(),grantDep:function(){function g(b){return s("grant_region",{region:b})}return g}(),denyDep:function(){function g(b){return s("deny_region",{region:b})}return g}()})}},55666:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(28823),a=n(2146),t=n(91819),o=n(31068),f=n(2971),V=n(84947),k=-1,S=1,y=r.AlertModal=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.autofocus,C=s.buttons,v=C===void 0?[]:C,h=s.large_buttons,g=s.message,b=g===void 0?"":g,B=s.timeout,L=s.title,w=(0,t.useLocalState)(i,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(v.length>2?100:0),O=function(){function R(M){T===0&&M===k?A(v.length-1):T===v.length-1&&M===S?A(0):A(T+M)}return R}();return(0,e.createComponentVNode)(2,V.Window,{title:L,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,V.Window.Content,{onKeyDown:function(){function R(M){var D=window.event?M.which:M.keyCode;D===o.KEY_SPACE||D===o.KEY_ENTER?u("choose",{choice:v[T]}):D===o.KEY_ESCAPE?u("cancel"):D===o.KEY_LEFT?(M.preventDefault(),O(k)):(D===o.KEY_TAB||D===o.KEY_RIGHT)&&(M.preventDefault(),O(S))}return R}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,f.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:[!!N&&(0,e.createComponentVNode)(2,f.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=u.buttons,N=s===void 0?[]:s,C=u.large_buttons,v=u.swapped_buttons,h=m.selected;return(0,e.createComponentVNode)(2,f.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:N==null?void 0:N.map(function(g,b){return C&&N.length<3?(0,e.createComponentVNode)(2,f.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:g,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,f.Flex.Item,{grow:C?1:0,children:(0,e.createComponentVNode)(2,l,{button:g,id:b.toString(),selected:h===b})},b)})})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.large_buttons,C=m.button,v=m.selected,h=C.length>7?"100%":7;return(0,e.createComponentVNode)(2,f.Button,{mx:N?1:0,pt:N?.33:0,content:C,fluid:!!N,onClick:function(){function g(){return u("choose",{choice:C})}return g}(),selected:v,textAlign:"center",height:!!N&&2,width:!N&&h})}},16504:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AppearanceChanger=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.change_race,i=c.species,d=c.specimen,u=c.change_gender,s=c.gender,N=c.has_gender,C=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,g=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,L=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,O=c.head_accessory_styles,R=c.head_accessory_style,M=c.change_hair,D=c.hair_styles,j=c.hair_style,U=c.change_hair_gradient,W=c.change_facial_hair,K=c.facial_hair_styles,G=c.facial_hair_style,z=c.change_head_markings,Y=c.head_marking_styles,$=c.head_marking_style,Q=c.change_body_markings,re=c.body_marking_styles,ae=c.body_marking_style,de=c.change_tail_markings,ve=c.tail_marking_styles,ye=c.tail_marking_style,Le=c.change_body_accessory,pe=c.body_accessory_styles,ne=c.body_accessory_style,ce=c.change_alt_head,q=c.alt_head_styles,se=c.alt_head_style,me=!1;return(C||v||h||g||b||B||L||w||T||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:i.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===d,onClick:function(){function be(){return l("race",{race:te.specimen})}return be}()},te.specimen)})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:s==="male",onClick:function(){function te(){return l("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:s==="female",onClick:function(){function te(){return l("gender",{gender:"female"})}return te}()}),!N&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:s==="plural",onClick:function(){function te(){return l("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,V),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===R,onClick:function(){function be(){return l("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:D.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===j,onClick:function(){function be(){return l("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return l("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return l("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return l("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return l("hair_gradient_alpha")}return te}()})]}),!!W&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===G,onClick:function(){function be(){return l("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:Y.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===$,onClick:function(){function be(){return l("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!Q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:re.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===ae,onClick:function(){function be(){return l("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!de&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:ve.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===ye,onClick:function(){function be(){return l("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!Le&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:pe.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===ne,onClick:function(){function be(){return l("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===se,onClick:function(){function be(){return l("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:m.map(function(i){return!!c[i.key]&&(0,e.createComponentVNode)(2,t.Button,{content:i.text,onClick:function(){function d(){return l(i.action)}return d}()},i.key)})})}},77280:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosAlertConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.priority||[],m=l.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(i){return(0,e.createVNode)(1,"li","color-bad",i,0,null,i)}),m.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),m.map(function(i){return(0,e.createVNode)(1,"li","color-average",i,0,null,i)})],0)})})})}return V}()},66274:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(99753),f=n(84947),V=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=(0,a.useLocalState)(m,"tabIndex",0),N=s[0],C=s[1],v=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,f.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:N===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===0,onClick:function(){function h(){return C(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===1,onClick:function(){function h(){return C(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(N)]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),s.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:N.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:V(N.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function C(){return d("open_alarm",{aref:N.ref})}return C}()})})]},N.name)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.data,u=(0,a.useLocalState)(m,"zoom",1),s=u[0],N=u[1],C=d.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function v(h){return N(h)}return v}(),children:C.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:v.x,y:v.y,zoom:s,icon:"circle",tooltip:v.name,color:k(v.danger)},v.ref)})})})}},90588:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosFilter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.on,m=l.pressure,i=l.max_pressure,d=l.filter_type,u=l.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return p("min_pressure")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:i,value:m,onDrag:function(){function s(N,C){return p("custom_pressure",{pressure:C})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return p("max_pressure")}return s}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Button,{selected:s.gas_type===d,content:s.label,onClick:function(){function N(){return p("set_filter",{filter:s.gas_type})}return N}()},s.label)})})]})})})})}return V}()},87486:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosMixer=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.on,i=c.pressure,d=c.max_pressure,u=c.node1_concentration,s=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"On":"Off",color:m?null:"red",selected:m,onClick:function(){function N(){return l("power")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:i===0,width:2.2,onClick:function(){function N(){return l("min_pressure")}return N}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:i,onDrag:function(){function N(C,v){return l("custom_pressure",{pressure:v})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:i===d,width:2.2,onClick:function(){function N(){return l("max_pressure")}return N}()})]}),(0,e.createComponentVNode)(2,V,{node_name:"Node 1",node_ref:u}),(0,e.createComponentVNode)(2,V,{node_name:"Node 2",node_ref:s})]})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.node_name,i=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:i===0,onClick:function(){function d(){return l("set_node",{node_name:m,concentration:(i-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:i,onChange:function(){function d(u,s){return l("set_node",{node_name:m,concentration:s/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:i===100,onClick:function(){function d(){return l("set_node",{node_name:m,concentration:(i+10)/100})}return d}()})]})}},46714:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.AtmosPump=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.on,m=l.rate,i=l.max_rate,d=l.gas_unit,u=l.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:m===0,width:2.2,onClick:function(){function s(){return p("min_rate")}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:u,minValue:0,maxValue:i,value:m,onDrag:function(){function s(N,C){return p("custom_rate",{rate:C})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:m===i,width:2.2,onClick:function(){function s(){return p("max_rate")}return s}()})]})]})})})})}return V}()},66032:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(58331),f=n(30381),V=n(84947),k=r.AtmosTankControl=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.sensors||{};return(0,e.createComponentVNode)(2,V.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[Object.keys(i).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(i[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[i[d].pressure," kpa"]}):"",Object.keys(i[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[i[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(u){return Object.keys(i[d]).indexOf(u)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.getGasLabel)(u),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,f.getGasColor)(u),value:i[d][u],minValue:0,maxValue:100,children:(0,o.toFixed)(i[d][u],2)+"%"})},(0,f.getGasLabel)(u)):""})]})},d)}),m.inlet&&Object.keys(m.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.inlet.on,"power-off"),content:m.inlet.on?"On":"Off",color:m.inlet.on?null:"red",selected:m.inlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:m.inlet.rate,onDrag:function(){function d(u,s){return c("set_pressure",{dev:"inlet",val:s})}return d}()})})]})}):"",m.outlet&&Object.keys(m.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(m.outlet.on,"power-off"),content:m.outlet.on?"On":"Off",color:m.outlet.on?null:"red",selected:m.outlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:m.outlet.rate,onDrag:function(){function d(u,s){return c("set_pressure",{dev:"outlet",val:s})}return d}()})})]})}):""]})})}return S}()},62343:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),V=n(84947),k=n(37843),S=function(l,c,m,i){return l.requirements===null?!0:!(l.requirements.metal*i>c||l.requirements.glass*i>m)},y=r.Autolathe=function(){function p(l,c){var m=(0,o.useBackend)(c),i=m.act,d=m.data,u=d.total_amount,s=d.max_amount,N=d.metal_amount,C=d.glass_amount,v=d.busyname,h=d.busyamt,g=d.showhacked,b=d.buildQueue,B=d.buildQueueLen,L=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),R=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),D=M[0],j=M[1],U=(0,k.createSearch)(D,function(z){return z.name}),W="";B>0&&(W=b.map(function(z,Y){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"times",color:"transparent",content:b[Y][0],onClick:function(){function $(){return i("remove_from_queue",{remove_from_queue:b.indexOf(z)+1})}return $}()},z)},Y)}));var K=(0,a.flow)([(0,t.filter)(function(z){return(z.category.indexOf(A)>-1||D)&&(d.showhacked||!z.hacked)}),D&&(0,t.filter)(U),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(L),G="Build";return D?G="Results for: '"+D+"':":A&&(G="Build ("+A+")"),(0,e.createComponentVNode)(2,V.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:G,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function z(Y){return x(Y)}return z}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(Y,$){return j($)}return z}(),mb:1}),K.map(function(z){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+z.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===1,disabled:!S(z,d.metal_amount,d.glass_amount,1),onClick:function(){function Y(){return i("make",{make:z.uid,multiplier:1})}return Y}(),children:(0,k.toTitleCase)(z.name)}),z.max_multiplier>=10&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===10,disabled:!S(z,d.metal_amount,d.glass_amount,10),onClick:function(){function Y(){return i("make",{make:z.uid,multiplier:10})}return Y}(),children:"10x"}),z.max_multiplier>=25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===25,disabled:!S(z,d.metal_amount,d.glass_amount,25),onClick:function(){function Y(){return i("make",{make:z.uid,multiplier:25})}return Y}(),children:"25x"}),z.max_multiplier>25&&(0,e.createComponentVNode)(2,f.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===z.max_multiplier,disabled:!S(z,d.metal_amount,d.glass_amount,z.max_multiplier),onClick:function(){function Y(){return i("make",{make:z.uid,multiplier:z.max_multiplier})}return Y}(),children:[z.max_multiplier,"x"]}),z.requirements&&Object.keys(z.requirements).map(function(Y){return(0,k.toTitleCase)(Y)+": "+z.requirements[Y]}).join(", ")||(0,e.createComponentVNode)(2,f.Box,{children:"No resources required."})]},z.ref)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,f.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Total",children:R}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Building",children:(0,e.createComponentVNode)(2,f.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,f.Section,{title:"Build Queue",height:23.7,children:[W,(0,e.createComponentVNode)(2,f.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function z(){return i("clear_queue")}return z}()})]})]})]})})})}return p}()},13940:function(I,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BioChipPad=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.implant,m=l.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&m?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):m?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!m,onClick:function(){function i(){return p("eject_case")}return i}()})]})})})}return V}()},55295:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),V=r.Biogenerator=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.data,u=i.config,s=d.container,N=d.processing,C=u.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:N,name:C}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),s?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=function(c,m){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,N=u.container,C=u.container_curr_reagents,v=u.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:s}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),N?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.has_plants,N=u.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!s,tooltip:s?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return d("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!N,tooltip:N?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return d("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!s,tooltip:s?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return d("eject_plants")}return C}()})})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.biomass,N=u.product_list,C=(0,a.useSharedState)(m,"vendAmount",1),v=C[0],h=C[1],g=Object.entries(N).map(function(b,B){var L=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:L.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:sd&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i===0,tooltip:"Set to 0",onClick:function(){function L(){return l("set",{set_level:0})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:i===0,onClick:function(){function L(){return l("set",{set_level:d})}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:i===0,tooltip:"Decrease one step",onClick:function(){function L(){return l("decrease")}return L}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:i,fillValue:d,minValue:0,color:B,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function L(w,T){return l("set",{set_level:T})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:i===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function L(){return l("increase")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function L(){return l("set",{set_level:v})}return L}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,f.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,f.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,f.formatPower)(C)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:s})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:L.price>=u,onClick:function(){function w(){return l("vend",{target:L.key})}return w}(),content:L.price})},L.key)})})})})]})})]})})})}return k}()},31876:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],S=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],y={average:[.25,.5],bad:[.5,1/0]},p=function(b,B){for(var L=[],w=0;w0?b.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,o.Box,{children:L},L)],0)},null):null},c=function(b){if(b>100){if(b<300)return"mild infection";if(b<400)return"mild infection+";if(b<500)return"mild infection++";if(b<700)return"acute infection";if(b<800)return"acute infection+";if(b<900)return"acute infection++";if(b>=900)return"septic"}return""},m=r.BodyScanner=function(){function g(b,B){var L=(0,t.useBackend)(B),w=L.data,T=w.occupied,A=w.occupant,x=A===void 0?{}:A,E=T?(0,e.createComponentVNode)(2,i,{occupant:x}):(0,e.createComponentVNode)(2,h);return(0,e.createComponentVNode)(2,f.Window,{width:690,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:E})})}return g}(),i=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,d,{occupant:B}),(0,e.createComponentVNode)(2,u,{occupant:B}),(0,e.createComponentVNode)(2,s,{occupant:B}),(0,e.createComponentVNode)(2,C,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,v,{organs:B.intOrgan})]})},d=function(b,B){var L=(0,t.useBackend)(B),w=L.act,T=L.data,A=T.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function x(){return w("print_p")}return x}(),children:"Print Report"}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function x(){return w("ejectify")}return x}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:A.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:A.maxHealth,value:A.health/A.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[A.stat][0],children:V[A.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(A.bodyTempF,0)}),"\xB0F"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Implants",children:A.implant_len?(0,e.createComponentVNode)(2,o.Box,{children:A.implant.map(function(x){return x.name}).join(", ")}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"None"})})]})})},u=function(b){var B=b.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:k.map(function(L,w){if(B[L[0]])return(0,e.createComponentVNode)(2,o.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,o.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No abnormalities found."})})},s=function(b){var B=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.Table,{children:p(S,function(L,w,T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!w&&w[0]+":"})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,N,{value:B[L[1]],marginBottom:T100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",q:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:y,children:[(0,e.createComponentVNode)(2,o.Box,{float:"left",inline:!0,children:[!!B.bruteLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Brute damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bone"}),(0,a.round)(B.bruteLoss,0),"\xA0"]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,o.Tooltip,{position:"top",content:"Burn damage",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"fire"}),(0,a.round)(B.fireLoss,0)]})})]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.round)(B.totalLoss,0)})]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,c(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[l([!!B.status.splinted&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})]),l(B.shrapnel.map(function(w){return w.known?w.name:"Unknown object"}))]})]})]},L)})]})})},v=function(b){return b.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,o.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"Injuries"})]}),b.organs.map(function(B,L){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:B.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:y,children:(0,a.round)(B.damage,0)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",inline:!0,children:l([c(B.germ_level)])}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:l([B.robotic===1&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},h=function(){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},73440:function(I,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=n(92462),k=r.BookBinder=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.selectedbook,d=m.book_categories,u=[];return d.map(function(s){return u[s.description]=s.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function s(){return c("print_book")}return s}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.title,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_title")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.author,onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_author")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:d.map(function(s){return s.description}),onSelected:function(){function s(N){return c("toggle_binder_category",{category_id:u[N]})}return s}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function s(){return(0,f.modalOpen)(p,"edit_selected_summary")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:i.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(s){return i.categories.includes(s.category_id)}).map(function(s){return(0,e.createComponentVNode)(2,t.Button,{content:s.description,selected:!0,icon:"unlink",onClick:function(){function N(){return c("toggle_binder_category",{category_id:s.category_id})}return N}()},s.category_id)})]})})]})})})]})}return S}()},40730:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,N=c.canhack,C=c.emagged,v=c.remote_disabled,h=c.painame,g=c.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:310,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Clean Blood",disabled:i,onClick:function(){function b(){return l("blood")}return b}()})}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return k}()},36078:function(I,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.hullplating,u=c.replace,s=c.eat,N=c.make,C=c.fixfloor,v=c.nag_empty,h=c.magnet,g=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:g})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",disabled:m,onClick:function(){function b(){return l("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Replace floor tiles",disabled:m,onClick:function(){function b(){return l("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Repair damaged tiles and platings",disabled:m,onClick:function(){function b(){return l("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Finds tiles",disabled:m,onClick:function(){function b(){return l("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Make pieces of metal into tiles when empty",disabled:m,onClick:function(){function b(){return l("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:m,onClick:function(){function b(){return l("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:m,onClick:function(){function b(){return l("anchored")}return b}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return k}()},89121:function(I,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.BotStatus)})})}return k}()},39805:function(I,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.locked,i=c.noaccess,d=c.maintpanel,u=c.on,s=c.autopatrol,N=c.canhack,C=c.emagged,v=c.remote_disabled,h=c.painame,g=c.shut_up,b=c.declare_crit,B=c.stationary_mode,L=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!g,disabled:i,onClick:function(){function E(){return l("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:i,onClick:function(){function E(){return l("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:L.value,minValue:L.min,maxValue:L.max,step:5,disabled:i,onChange:function(){function E(O,R){return l("set_heal_threshold",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(O){return O+"u"}return E}(),disabled:i,onChange:function(){function E(O,R){return l("set_injection_amount",{target:R})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:i,onClick:function(){function E(){return l("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:i,onClick:function(){function E(){return l("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:i,onClick:function(){function E(){return l("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:i,onClick:function(){function E(){return l("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return k}()},35519:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(86041),V=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.noaccess,i=c.painame,d=c.check_id,u=c.check_weapons,s=c.check_warrant,N=c.arrest_mode,C=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:m,onClick:function(){function v(){return l("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unauthorized Weapons",disabled:m,onClick:function(){function v(){return l("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Wanted Criminals",disabled:m,onClick:function(){function v(){return l("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Detain Targets Indefinitely",disabled:m,onClick:function(){function v(){return l("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Announce Arrests On Radio",disabled:m,onClick:function(){function v(){return l("arrdeclare")}return v}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:i,disabled:m,onClick:function(){function v(){return l("ejectpai")}return v}()})})]})})}return k}()},71169:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(28823),a=n(84947),t=n(2971),o=n(91819),f=function(y,p){var l=y.cell,c=(0,o.useBackend)(p),m=c.act,i=l.cell_id,d=l.occupant,u=l.crimes,s=l.brigged_by,N=l.time_left_seconds,C=l.time_set_seconds,v=l.ref,h="";N>0&&(h+=" BrigCells__listRow--active");var g=function(){m("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:N})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},V=function(y){var p=y.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(l){return(0,e.createComponentVNode)(2,f,{cell:l},l.ref)})]})},k=r.BrigCells=function(){function S(y,p){var l=(0,o.useBackend)(p),c=l.act,m=l.data,i=m.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V,{cells:i})})})})})}return S}()},19070:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.BrigTimer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.occupant}):l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l.occupant}));var c="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(c="exclamation-triangle"));var m=[],i=0;for(i=0;im?this.substring(0,m)+"...":this};var y=function(i,d){var u,s;if(!d)return[];var N=i.findIndex(function(C){return C.name===d.name});return[(u=i[N-1])==null?void 0:u.name,(s=i[N+1])==null?void 0:s.name]},p=function(i,d){d===void 0&&(d="");var u=(0,f.createSearch)(d,function(s){return s.name});return(0,t.flow)([(0,a.filter)(function(s){return s==null?void 0:s.name}),d&&(0,a.filter)(u),(0,a.sortBy)(function(s){return s.name})])(i)},l=r.CameraConsole=function(){function m(i,d){var u=(0,V.useBackend)(d),s=u.act,N=u.data,C=u.config,v=N.mapRef,h=N.activeCamera,g=p(N.cameras),b=y(g,h),B=b[0],L=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return s("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!L,onClick:function(){function w(){return s("switch_camera",{name:L})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return m}(),c=r.CameraConsoleContent=function(){function m(i,d){var u=(0,V.useBackend)(d),s=u.act,N=u.data,C=(0,V.useLocalState)(d,"searchText",""),v=C[0],h=C[1],g=N.activeCamera,b=p(N.cameras,v);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(L,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",g&&B.name===g.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function L(){return s("switch_camera",{name:B.name})}return L}()},B.name)})})})]})}return m}()},21348:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(48300),V=n(84947),k=r.Canister=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.portConnected,d=m.tankPressure,u=m.releasePressure,s=m.defaultReleasePressure,N=m.minReleasePressure,C=m.maxReleasePressure,v=m.valveOpen,h=m.name,g=m.canLabel,b=m.colorContainer,B=m.color_index,L=m.hasHoldingTank,w=m.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var O=[],R=[],M=[],D=[],j=0;for(j=0;jh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:s.cooldown_time||!h.can_close,onClick:function(){function g(){return u("make_job_unavailable",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:s.cooldown_time||!h.can_open,onClick:function(){function g(){return u("make_job_available",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:s.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:s.cooldown_time||!h.can_prioritize,onClick:function(){function g(){return u("prioritize_job",{job:h.title})}return g}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):s.modify_name?v=(0,e.createComponentVNode)(2,f.AccessList,{accesses:s.regions,selectedList:s.selectedAccess,accessMod:function(){function h(g){return u("set",{access:g})}return h}(),grantAll:function(){function h(){return u("grant_all")}return h}(),denyAll:function(){function h(){return u("clear_all")}return h}(),grantDep:function(){function h(g){return u("grant_region",{region:g})}return h}(),denyDep:function(){function h(g){return u("deny_region",{region:g})}return h}()}):v=(0,e.createComponentVNode)(2,y);break;case 3:s.authenticated?s.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!s.authenticated||s.records.length===0||s.target_dept,onClick:function(){function h(){return u("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),s.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!s.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!s.authenticated||s.records.length===0,onClick:function(){function h(){return u("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,S);break;case 4:!s.authenticated||!s.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),s.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function g(){return u("remote_demote",{remote_demote:h.name})}return g}()})})]},h.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:N}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},62486:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),f=n(2971),V=n(84947),k=n(37843),S=r.CargoConsole=function(){function d(u,s){return(0,e.createComponentVNode)(2,V.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return d}(),y=function(u,s){var N=(0,o.useLocalState)(s,"contentsModal",null),C=N[0],v=N[1],h=(0,o.useLocalState)(s,"contentsModalTitle",null),g=h[0],b=h[1];if(C!==null&&g!==null)return(0,e.createComponentVNode)(2,f.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,f.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[g,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,f.Box,{children:C.map(function(B){return(0,e.createComponentVNode)(2,f.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:(0,e.createComponentVNode)(2,f.Button,{content:"Close",onClick:function(){function B(){v(null),b(null)}return B}()})})]})},p=function(u,s){var N=(0,o.useBackend)(s),C=N.act,v=N.data,h=v.is_public,g=v.timeleft,b=v.moving,B=v.at_station,L,w;return!b&&!B?(L="Docked off-station",w="Call Shuttle"):!b&&B?(L="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",g!==1?L="Shuttle is en route (ETA: "+g+" minutes)":L="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Status",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Shuttle Status",children:L}),h===0&&(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,f.Button,{content:w,disabled:b,onClick:function(){function T(){return C("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Central Command Messages",onClick:function(){function T(){return C("showMessages")}return T}()})]})]})})})},l=function(u,s){var N,C=(0,o.useBackend)(s),v=C.act,h=C.data,g=h.accounts,b=(0,o.useLocalState)(s,"selectedAccount"),B=b[0],L=b[1],w=[];return g.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function(T){return T.name}),selected:(N=g.filter(function(T){return T.account_UID===B})[0])==null?void 0:N.name,onSelected:function(){function T(A){return L(w[A])}return T}()}),g.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,f.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(u,s){var N=(0,o.useBackend)(s),C=N.act,v=N.data,h=v.requests,g=v.categories,b=v.supply_packs,B=(0,o.useSharedState)(s,"category","Emergency"),L=B[0],w=B[1],T=(0,o.useSharedState)(s,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(s,"contentsModal",null),O=E[0],R=E[1],M=(0,o.useLocalState)(s,"contentsModalTitle",null),D=M[0],j=M[1],U=(0,k.createSearch)(A,function($){return $.name}),W=(0,o.useLocalState)(s,"selectedAccount"),K=W[0],G=W[1],z=(0,a.flow)([(0,t.filter)(function($){return $.cat===g.filter(function(Q){return Q.name===L})[0].category||A}),A&&(0,t.filter)(U),(0,t.sortBy)(function($){return $.name.toLowerCase()})])(b),Y="Crate Catalogue";return A?Y="Results for '"+A+"':":L&&(Y="Browsing "+L),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:Y,buttons:(0,e.createComponentVNode)(2,f.Dropdown,{width:"190px",options:g.map(function($){return $.name}),selected:L,onSelected:function(){function $(Q){return w(Q)}return $}()}),children:[(0,e.createComponentVNode)(2,f.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function $(Q,re){return x(re)}return $}(),mb:1}),(0,e.createComponentVNode)(2,f.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:z.map(function($){return(0,e.createComponentVNode)(2,f.Table.Row,{children:[(0,e.createComponentVNode)(2,f.Table.Cell,{bold:!0,children:[$.name," (",$.cost," Credits)"]}),(0,e.createComponentVNode)(2,f.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,f.Button,{content:"Order 1",icon:"shopping-cart",disabled:!K,onClick:function(){function Q(){return C("order",{crate:$.ref,multiple:!1,account:K})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!K||$.singleton,onClick:function(){function Q(){return C("order",{crate:$.ref,multiple:!0,account:K})}return Q}()}),(0,e.createComponentVNode)(2,f.Button,{content:"View Contents",icon:"search",onClick:function(){function Q(){R($.contents),j($.name)}return Q}()})]})]},$.name)})})})]})})},m=function(u,s){var N=u.request,C,v;switch(N.department){case"Engineering":v="CE",C="orange";break;case"Medical":v="CMO",C="teal";break;case"Science":v="RD",C="purple";break;case"Supply":v="CT",C="brown";break;case"Service":v="HOP",C="olive";break;case"Security":v="HOS",C="red";break;case"Command":v="CAP",C="blue";break;case"Assistant":v="Any Head",C="grey";break}return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{mt:.5,children:"Approval Required:"}),!!N.req_cargo_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!N.req_head_approval&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:C,content:v,disabled:N.req_cargo_approval,icon:"user-tie",tooltip:N.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},i=function(u,s){var N=(0,o.useBackend)(s),C=N.act,v=N.data,h=v.requests,g=v.orders,b=v.shipments;return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,f.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,f.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,f.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,m,{request:B})]}),(0,e.createComponentVNode)(2,f.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,f.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function L(){return C("approve",{ordernum:B.ordernum})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function L(){return C("deny",{ordernum:B.ordernum})}return L}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:g.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,f.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,f.Table.Row,{children:(0,e.createComponentVNode)(2,f.Table.Cell,{children:[(0,e.createComponentVNode)(2,f.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,f.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},86885:function(I,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ChangelogView=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),m=c[0],i=c[1],d=l.cl_data,u=l.last_cl,s={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},N=function(){function C(v){return v in s?s[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:m?"Showing all changes":"Showing changes since last connection",onClick:function(){function C(){return i(!m)}return C}()}),children:d.map(function(C){return!m&&C.merge_ts<=u||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:C.author+" - Merged on "+C.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+C.num,onClick:function(){function v(){return p("open_pr",{pr_number:C.num})}return v}()}),children:C.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[N(v.etype)," ",v.etext]},v)})},C)})})})})}return V}()},56975:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(83326),f=n(84947),V=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.chemicals;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:400+N.length*8,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l)]})})})}return c}(),y=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.amount,C=s.energy,v=s.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[C," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:V.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:N===h,content:h,onClick:function(){function b(){return u("amount",{amount:h})}return b}()})},g)})})})]})})})},p=function(m,i){for(var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.chemicals,C=N===void 0?[]:N,v=[],h=0;h<(C.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s.glass?"Drink Dispenser":"Chemical Dispenser",children:[C.map(function(g,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function B(){return u("dispense",{reagent:g.id})}return B}()},b)}),v.map(function(g,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.isBeakerLoaded,C=s.beakerCurrentVolume,v=s.beakerMaxVolume,h=s.beakerContents,g=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:s.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!N&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[C," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!N,onClick:function(){function b(){return u("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:N,beakerContents:g,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:-1})}return L}()}),k.map(function(L,w){return(0,e.createComponentVNode)(2,t.Button,{content:L,onClick:function(){function T(){return u("remove",{reagent:B.id,amount:L})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function L(){return u("remove",{reagent:B.id,amount:B.volume})}return L}()})],0)}return b}()})})})}},48734:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(83326),V=n(84947),k=r.ChemHeater=function(){function p(l,c){return(0,e.createComponentVNode)(2,V.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.targetTemp,s=d.targetTempReached,N=d.autoEject,C=d.isActive,v=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){function g(){return i("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:C?"On":"Off",icon:"power-off",selected:C,disabled:!h,onClick:function(){function g(){return i("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(u,0),minValue:0,maxValue:1e3,onDrag:function(){function g(b,B){return i("adjust_temperature",{target:B})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:s?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(b){return(0,a.toFixed)(b)+" K"}return g}()})||"\u2014"})]})})})},y=function(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerCurrentVolume,N=d.beakerMaxVolume,C=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!u&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[s," / ",N," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return i("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:u,beakerContents:C})})})}},35918:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(83326),V=n(22677),k=n(66586),S=n(50175),y=["icon"];function p(x,E){if(x==null)return{};var O={},R=Object.keys(x),M,D;for(D=0;D=0)&&(O[M]=x[M]);return O}function l(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function O(R,M){return R.__proto__=M,R}return O}(),c(x,E)}var m=(0,S.createLogger)("ChemMaster"),i=[1,5,10],d=function(E,O){var R=(0,a.useBackend)(O),M=R.act,D=R.data,j=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:D.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:j.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(j.desc||"").length>0?j.desc:"N/A"}),j.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:j.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:j.blood_dna})],4),!D.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:D.printing?"spinner":"print",disabled:D.printing,iconSpin:!!D.printing,ml:"0.5rem",content:"Print",onClick:function(){function U(){return M("print",{idx:j.idx,beaker:E.args.beaker})}return U}()})]})})})})},u=r.ChemMaster=function(){function x(E,O){var R=(0,a.useBackend)(O),M=R.data,D=M.condi,j=M.beaker,U=M.beaker_reagents,W=U===void 0?[]:U,K=M.buffer_reagents,G=K===void 0?[]:K,z=M.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,s,{beaker:j,beakerReagents:W,bufferNonEmpty:G.length>0}),(0,e.createComponentVNode)(2,N,{mode:z,bufferReagents:G}),(0,e.createComponentVNode)(2,C,{isCondiment:D,bufferNonEmpty:G.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),s=function(E,O){var R=(0,a.useBackend)(O),M=R.act,D=E.beaker,j=E.beakerReagents,U=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:U?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return M("eject")}return W}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!D,content:"Eject and Clear Buffer",onClick:function(){function W(){return M("eject")}return W}()}),children:D?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:j,buttons:function(){function W(K,G){return(0,e.createComponentVNode)(2,t.Box,{mb:G0?(0,e.createComponentVNode)(2,f.BeakerContents,{beakerLoaded:!0,beakerContents:U,buttons:function(){function W(K,G){return(0,e.createComponentVNode)(2,t.Box,{mb:G1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.oxy,inline:!0,children:x[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.toxin,inline:!0,children:x[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.brute,inline:!0,children:x[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:f.COLORS.damageType.burn,inline:!0,children:x[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:B})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function s(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.menu;return(0,V.modalRegisterBodyOverride)("view_rec",y),(0,e.createComponentVNode)(2,k.Window,{width:535,height:440,children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,c)})})]})})]})}return s}(),l=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.menu;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===1,icon:"home",onClick:function(){function B(){return h("menu",{num:1})}return B}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:b===2,icon:"folder",onClick:function(){function B(){return h("menu",{num:2})}return B}(),children:"Records"})]})})},c=function(N,C){var v=(0,t.useBackend)(C),h=v.data,g=h.menu,b;return g===1?b=(0,e.createComponentVNode)(2,m):g===2&&(b=(0,e.createComponentVNode)(2,i)),b},m=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.loading,B=g.scantemp,L=g.occupant,w=g.locked,T=g.can_brainscan,A=g.scan_mode,x=g.numberofpods,E=g.pods,O=g.selected_pod,R=w&&!!L;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L,selected:R,icon:R?"toggle-on":"toggle-off",content:R?"Engaged":"Disengaged",onClick:function(){function M(){return h("lock")}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:R||!L,icon:"user-slash",content:"Eject Occupant",onClick:function(){function M(){return h("eject")}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:B.color,children:B.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function M(){return h("toggle_mode")}return M}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L||b,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function M(){return h("scan")}return M}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",children:x?E.map(function(M,D){var j;return M.status==="cloning"?j=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:M.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(M.progress,0)+"%"})}):M.status==="mess"?j=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):j=(0,e.createComponentVNode)(2,o.Button,{selected:O===M.pod,icon:O===M.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function U(){return h("selectpod",{ref:M.pod})}return U}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",mt:1,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)("pod_"+M.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",D+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,mt:.75,color:M.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:M.biomass>=150?"circle":"circle-o"}),"\xA0",M.biomass]}),j]},D)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},i=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.records;return b.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:b.map(function(B,L){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:B.realname,onClick:function(){function w(){return h("view_rec",{ref:B.record})}return w}()},L)})}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(N,C){var v,h=(0,t.useBackend)(C),g=h.act,b=h.data,B=b.temp;if(!(!B||!B.text||B.text.length<=0)){var L=(v={},v[B.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",children:B.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function w(){return g("cleartemp")}return w}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},u=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.scanner,B=g.numberofpods,L=g.autoallowed,w=g.autoprocess,T=g.disk;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)(!!L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Enabled":"Disabled",onClick:function(){function A(){return h("autoprocess",{on:w?0:1})}return A}()})],4),0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:b?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:B?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[B," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})})}},14283:function(I,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ColourMatrixTester=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.colour_data,m=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Modify Matrix",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:i.map(function(d){return(0,e.createFragment)([d.name,(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{value:c[d.idx],step:.05,minValue:-5,maxValue:5,onDrag:function(){function u(s,N){return p("setvalue",{idx:d.idx+1,value:N})}return u}()})],0,d.name)})},i)})})})})}return V}()},98577:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(u){switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,i);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},V=r.CommunicationsComputer=function(){function d(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),f(h)]})})})}return d}(),k=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.authenticated,g=v.noauthbutton,b=v.esc_section,B=v.esc_callable,L=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,O;return h?h===1?O="Command":h===2?O="Captain":h===3?O="CentComm Officer":h===4?(O="CentComm Secure Connection",E=!0):O="ERROR: Report This Bug!":O="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:O})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:g,content:h?"Log Out ("+O+")":"Log In",onClick:function(){function R(){return C("auth")}return R}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function R(){return C("callshuttle")}return R}()})}),!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function R(){return C("cancelshuttle")}return R}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.is_admin,g=v.gamma_armory_location,b=v.admin_levels,B=v.authenticated,L=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:b,required_access:h,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!h,onClick:function(){function w(){return C("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return C("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return C("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"ERT calling enabled":"ERT calling disabled",tooltip:L?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return C("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!h,onClick:function(){function w(){return C("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:g?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,onClick:function(){function w(){return C("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return C("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return C("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.msg_cooldown,g=v.emagged,b=v.cc_cooldown,B=v.security_level_color,L=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var O=g?"Message [UNKNOWN]":"Message CentComm",R="Request Authentication Codes";return b>0&&(O+=" ("+b+"s)",R+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,m,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function M(){return C("announce")}return M}()})}),!!g&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:O,disabled:!T||b>0,onClick:function(){function M(){return C("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function M(){return C("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:O,disabled:!T||b>0,onClick:function(){function M(){return C("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:R,disabled:!T||b>0,onClick:function(){function M(){return C("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function M(){return C("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return C("messagelist")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function M(){return C("RestartNanoMob")}return M}()})})]})})})],4)},l=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.stat_display,g=v.authhead,b=v.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!g,onClick:function(){function T(){return C("setstat",{statdisp:w.name})}return T}()},w.name)}),L=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!g,onClick:function(){function T(){return C("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return C("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!g,onClick:function(){function w(){return C("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!g,onClick:function(){function w(){return C("setmsg2")}return w}()})})]})})})},c=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.authhead,g=v.current_message_title,b=v.current_message,B=v.messages,L=v.security_level,w;if(g)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return C("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!h||g===A.title,onClick:function(){function x(){return C("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return C("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return C("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},m=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=u.levels,g=u.required_access,b=u.use_confirm,B=v.security_level;return b?h.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!g||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return C("newalertlevel",{level:L.id})}return w}()},L.name)}):h.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!g||L.id===B,tooltip:L.tooltip,onClick:function(){function w(){return C("newalertlevel",{level:L.id})}return w}()},L.name)})},i=function(u,s){var N=(0,a.useBackend)(s),C=N.act,v=N.data,h=v.is_admin,g=v.possible_cc_sounds;if(!h)return C("main");var b=(0,a.useLocalState)(s,"subtitle",""),B=b[0],L=b[1],w=(0,a.useLocalState)(s,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(s,"classified",0),E=x[0],O=x[1],R=(0,a.useLocalState)(s,"beepsound","Beep"),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function j(){return C("main")}return j}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function j(U,W){return L(W)}return j}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function j(U,W){return A(W)}return j}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function j(){return C("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:M})}return j}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:g,selected:M,onSelected:function(){function j(U){return D(U)}return j}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function j(){return C("test_sound",{sound:M})}return j}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function j(){return O(!E)}return j}()})})]})]})})}},70611:function(I,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.CompostBin=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.biomass,m=l.compost,i=l.biomass_capacity,d=l.compost_capacity,u=(0,a.useSharedState)(S,"vendAmount",1),s=u[0],N=u[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[c," / ",i," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:m,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[m," / ",d," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:s,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function C(v,h){return N(h)}return C}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:m<25*s,icon:"arrow-circle-down",onClick:function(){function C(){return p("create",{amount:s})}return C}()})})})]})})})}return V}()},73744:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(73712),V=n(84947);function k(C,v){C.prototype=Object.create(v.prototype),C.prototype.constructor=C,S(C,v)}function S(C,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(g,b){return g.__proto__=b,g}return h}(),S(C,v)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],l=r.Contractor=function(){function C(v,h){var g=(0,t.useBackend)(h),b=g.act,B=g.data,L;B.unauthorized?L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?L=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,i,{height:"100%"}):(0,e.createComponentVNode)(2,u,{height:"100%"})})],4):L=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,s,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,V.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:L})})]})}return C}(),c=function(v,h){var g=(0,t.useBackend)(h),b=g.act,B=g.data,L=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[L," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:L<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},m=function(v,h){var g=(0,t.useBackend)(h),b=g.act,B=g.data,L=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},i=function(v,h){var g=(0,t.useBackend)(h),b=g.act,B=g.data,L=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&L.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),O=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,f.Countdown,{timeLeft:A.time_left,format:function(){function M(D,j){return" ("+j.substr(3)+")"}return M}()})],onClick:function(){function M(){return b("extract")}return M}()})},v,{children:L.slice().sort(function(M,D){return M.status===1?-1:D.status===1?1:M.status-D.status}).map(function(M){var D;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function j(){return R("target_photo_"+M.uid+".png")}return j}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function j(){return b("abort")}return j}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",M.completed_time]}),!!M.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!M.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",M.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(M)]}),(D=M.difficulties)==null?void 0:D.map(function(j,U){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:j.name+" ("+j.reward+" TC)",onClick:function(){function W(){return b("activate",{uid:M.uid,difficulty:U+1})}return W}()},U)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,b=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,L=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:L?"dot-circle-o":"arrow-alt-circle-right-o",color:L?"green":"yellow",rotation:L?null:-(0,a.rad2deg)(Math.atan2(B[1]-g[1],B[0]-g[0])),lineHeight:L?null:"0.85",size:"1.5"})})}},u=function(v,h){var g=(0,t.useBackend)(h),b=g.act,B=g.data,L=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:L-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},s=function(C){k(v,C);function v(g){var b;return b=C.call(this,g)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}var h=v.prototype;return h.tick=function(){function g(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var L=B.currentDisplay;L.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return g}(),h.componentDidMount=function(){function g(){var b=this,B=this.props.linesPerSecond,L=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/L)}return g}(),h.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),h.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return g}(),v}(e.Component),N=function(v,h){var g=(0,t.useLocalState)(h,"viewingPhoto",""),b=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function L(){return B("")}return L}()})]})}},57392:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ConveyorSwitch=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.slowFactor,m=l.oneWay,i=l.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:i>0?"forward":i<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!m,onClick:function(){function d(){return p("toggleOneWay")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function d(){return p("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return p("slowFactor",{value:c-1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function d(u){return u+"x"}return d}(),onChange:function(){function d(u,s){return p("slowFactor",{value:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return p("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return p("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return V}()},91413:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(28823),a=n(72026),t=n(37843),o=n(91819),f=n(2971),V=n(99753),k=n(30381),S=n(84947),y=function(d,u){return d.dead?"Deceased":parseInt(d.health,10)<=u?"Critical":parseInt(d.stat,10)===1?"Unconscious":"Living"},p=function(d,u){return d.dead?"red":parseInt(d.health,10)<=u?"orange":parseInt(d.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function i(d,u){var s=(0,o.useBackend)(u),N=s.act,C=s.data,v=(0,o.useLocalState)(u,"tabIndex",0),h=v[0],g=v[1],b=function(){function B(L){switch(L){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,m);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return g(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return g(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return i}(),c=function(d,u){var s=(0,o.useBackend)(u),N=s.act,C=s.data,v=(0,a.sortBy)(function(A){return A.name})(C.crewmembers||[]),h=C.possible_levels,g=C.viewing_current_z_level,b=C.is_advanced,B=(0,o.useLocalState)(u,"search",""),L=B[0],w=B[1],T=(0,t.createSearch)(L,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:b?(0,e.createComponentVNode)(2,f.Dropdown,{mr:"5px",width:"50px",options:h,selected:g,onSelected:function(){function A(x){return N("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,f.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,f.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,f.Table.Cell,{children:"Location"})]}),v.filter(T).map(function(A){return(0,e.createComponentVNode)(2,f.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,V.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,V.TableCell,{children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:p(A,C.critThreshold),children:y(A,C.critThreshold)}),A.sensor_type>=2?(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,V.TableCell,{children:A.sensor_type===3?C.isAI?(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return N("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},m=function(d,u){var s=(0,o.useBackend)(u),N=s.data,C=(0,o.useLocalState)(u,"zoom",1),v=C[0],h=C[1];return(0,e.createComponentVNode)(2,f.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,f.NanoMap,{onZoom:function(){function g(b){return h(b)}return g}(),children:N.crewmembers.filter(function(g){return g.sensor_type===3}).map(function(g){return(0,e.createComponentVNode)(2,f.NanoMap.Marker,{x:g.x,y:g.y,zoom:v,icon:"circle",tooltip:g.name+" ("+g.assignment+")",color:p(g,N.critThreshold)},g.ref)})})})}},55104:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isOperating,s=d.hasOccupant,N=d.occupant,C=N===void 0?[]:N,v=d.cellTemperature,h=d.cellTemperatureStatus,g=d.isBeakerLoaded,b=d.cooldownProgress,B=d.auto_eject_healthy,L=d.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return i("ejectOccupant")}return w}(),disabled:!s,children:"Eject"}),children:s?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[C.stat][0],children:V[C.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),f.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(C[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return i("ejectBeaker")}return w}(),disabled:!g,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return i(u?"switchOff":"switchOn")}return w}(),selected:u,children:u?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!g&&"average",value:b,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return i(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"toggle-on":"toggle-off",selected:L,onClick:function(){function w(){return i(L?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:L?"On":"Off"})})]})})})],4)},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.isBeakerLoaded,s=d.beakerLabel,N=d.beakerVolume;return u?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!s&&"average",children:[s||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!N&&"bad",ml:1,children:N?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N,format:function(){function C(v){return Math.round(v)+" units remaining"}return C}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},1763:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),V=r.CryopodConsole=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.account_name,d=m.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(i||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:i.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(d,u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},u)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.frozen_items,u=function(N){var C=N.toString();return C.startsWith("the ")&&(C=C.slice(4,C.length)),(0,f.toTitleCase)(C)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u(s.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function N(){return m("one_item",{item:s.uid})}return N}()})},s)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function s(){return m("all_items")}return s}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},69055:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function h(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,C,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,f.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)})]})})]})}return h}(),p=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return L("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return L("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:V[x.stat][0],children:V[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},l=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,N)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(O,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:T===O[0],onClick:function(){function M(){return L("selectMenuKey",{key:O[0]})}return M}(),children:O[1]},R)})}),E]})},c=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function O(R){return R.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(R,M){return L("changeUITarget",{value:M})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function O(){return L("pulseUIRadiation")}return O}()})]})},m=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return L("pulseSERadiation")}return E}()})]})},i=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,O){return L("radiationIntensity",{value:O})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,O){return L("radiationDuration",{value:O})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return L("pulseRadiation")}return x}()})]})},d=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,u,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,s)})]})},u=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=g.id,A=g.name,x=g.buffer,E=w.isInjectorReady,O=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function R(){return L("bufferOption",{option:"clear",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function R(){return L("bufferOption",{option:"changeLabel",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function R(){return L("bufferOption",{option:"saveDisk",id:T})}return R}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveUI",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveUIAndUE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"saveSE",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"loadDisk",id:T})}return R}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"createInjector",id:T})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"createInjector",id:T,block:1})}return R}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function R(){return L("bufferOption",{option:"transfer",id:T})}return R}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},s=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return L("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return L("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},N=function(g,b){var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return L("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function R(){return L("injectRejuvenators",{amount:E})}return R}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return L("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},C=function(g,b){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},v=function(g,b){for(var B=(0,a.useBackend)(b),L=B.act,w=B.data,T=g.dnaString,A=g.selectedBlock,x=g.selectedSubblock,E=g.blockSize,O=g.action,R=T.split(""),M=0,D=[],j=function(){for(var K=U/E+1,G=[],z=function(){var Q=Y+1;G.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===Q,content:R[U+Y],mb:"0",onClick:function(){function re(){return L(O,{block:K,subblock:Q})}return re}()}))},Y=0;Ys.spawnpoints?"red":"green",children:[s.total," total, versus ",s.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function g(){return u("dispatch_ert",{silent:v})}return g}()})})]})})})},p=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=s.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:N&&N.length?N.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:C.sender_real_name,onClick:function(){function v(){return u("view_player_panel",{uid:C.sender_uid})}return v}(),tooltip:"View player panel"}),children:C.message},(0,f.decodeHtmlEntities)(C.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},l=function(m,i){var d=(0,a.useBackend)(i),u=d.act,s=d.data,N=(0,a.useLocalState)(i,"text",""),C=N[0],v=N[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:C,onChange:function(){function h(g,b){return v(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return u("deny_ert",{reason:C})}return h}()})]})})}},77877:function(I,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.EconomyManager=function(){function S(y,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",i," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},10707:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.data,m=c.power,i=c.code,d=c.frequency,u=c.minFrequency,s=c.maxFrequency;return(0,e.createComponentVNode)(2,f.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,onClick:function(){function N(){return l("power")}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function N(){return l("reset",{reset:"freq"})}return N}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:s/10,value:d/10,format:function(){function N(C){return(0,a.toFixed)(C,1)}return N}(),width:"80px",onChange:function(){function N(C,v){return l("freq",{freq:v})}return N}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function N(){return l("reset",{reset:"code"})}return N}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onChange:function(){function N(C,v){return l("code",{code:v})}return N}()})})]})})})})}return k}()},52640:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=n(90955),k=n(72026),S=r.EvolutionMenu=function(){function l(c,m){return(0,e.createComponentVNode)(2,f.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)]})})})}return l}(),y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,N=u.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:s}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!N,content:"Readapt",icon:"sync",onClick:function(){function C(){return d("readapt")}return C}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.evo_points,N=u.ability_tabs,C=u.purchased_abilities,v=u.view_mode,h=(0,t.useLocalState)(m,"selectedTab",N[0]),g=h[0],b=h[1],B=(0,t.useLocalState)(m,"searchText",""),L=B[0],w=B[1],T=(0,t.useLocalState)(m,"ability_tabs",N[0].abilities),A=T[0],x=T[1],E=function(D,j){if(j===void 0&&(j=""),!D||D.length===0)return[];var U=(0,a.createSearch)(j,function(W){return W.name+"|"+W.description});return(0,V.flow)([(0,k.filter)(function(W){return W==null?void 0:W.name}),(0,k.filter)(U),(0,k.sortBy)(function(W){return W==null?void 0:W.name})])(D)},O=function(D){if(w(D),D==="")return x(g.abilities);x(E(N.map(function(j){return j.abilities}).flat(),D))},R=function(D){b(D),x(D.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(D,j){O(j)}return M}(),value:L}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function M(){return d("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function M(){return d("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:N.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:L===""&&g===M,onClick:function(){function D(){R(M)}return D}(),children:M.category},M)})}),A.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),C.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>s||C.includes(M.power_path),content:"Evolve",onClick:function(){function j(){return d("purchase",{power_path:M.power_path})}return j}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},D)})]})})}},70672:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(28823),a=n(66586),t=n(37843),o=n(91819),f=n(2971),V=n(73712),k=n(84947),S=["id","amount","lineDisplay","onClick"];function y(C,v){if(C==null)return{};var h={},g=Object.keys(C),b,B;for(B=0;B=0)&&(h[b]=C[b]);return h}var p=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function C(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)}),L&&(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)})]})})]})})})}return C}(),m=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=B.materials,w=B.capacity,T=Object.values(L).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,f.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,s,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},i=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],O=x[1],R=(0,t.createSearch)(E,function(D){return D.name}),M=T.filter(R);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,f.Dropdown,{className:"Exofab__dropdown",selected:L,options:w,onSelected:function(){function D(j){return b("category",{cat:j})}return D}()}),buttons:(0,e.createComponentVNode)(2,f.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,f.Button,{icon:"plus",content:"Queue all",onClick:function(){function D(){return b("queueall")}return D}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function D(){return b("sync")}return D}()})]}),children:[(0,e.createComponentVNode)(2,f.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function D(j,U){return O(U)}return D}()}),M.map(function(D){return(0,e.createComponentVNode)(2,N,{design:D},D.id)}),M.length===0&&(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,f.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,f.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:["Building ",L,"\xA0(",(0,e.createComponentVNode)(2,V.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,O){return O.substr(3)}return x}()}),")"]})]})})})},u=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=L.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,f.Button,{disabled:L.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:L.length===0?(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:L.map(function(x,E){return(0,e.createComponentVNode)(2,f.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,f.Button,{icon:"arrow-up",onClick:function(){function O(){return b("queueswap",{from:E+1,to:E})}return O}()}),E0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,f.Divider),"Processing time:",(0,e.createComponentVNode)(2,f.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,f.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},s=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=y(v,S),E=B.materials[L]||0,O=w||E;if(!(O<=0&&!(L==="metal"||L==="glass"))){var R=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{className:(0,a.classes)(["materials32x32",L])}),(0,e.createComponentVNode)(2,f.Stack.Item,{className:"Exofab__material--amount",color:R&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,f.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,f.Box,{mt:1,className:(0,a.classes)(["materials32x32",L])})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--name",children:L}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/p*10)/10," ","sheets)"]})]})],4)})))}},N=function(v,h){var g=(0,o.useBackend)(h),b=g.act,B=g.data,L=v.design;return(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,f.Button,{disabled:L.notEnough||B.building,icon:"cog",content:L.name,onClick:function(){function w(){return b("build",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:L.id})}return w}()}),(0,e.createComponentVNode)(2,f.Box,{className:"Exofab__design--cost",children:Object.entries(L.cost).map(function(w){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,s,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,f.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,f.Stack.Item,{children:[(0,e.createComponentVNode)(2,f.Icon,{name:"clock"}),L.time>0?(0,e.createFragment)([L.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(I,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),V=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.open,d=m.feedback,u=m.occupant,s=m.occupant_name,N=m.occupant_status,C=function(){function h(){if(!u)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var g=function(){function B(){return f.get(N)}return B}(),b=g();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:V.get(B).icon,content:V.get(B).label,onClick:function(){function L(){return c("experiment",{experiment_type:B})}return L}()},B)})})]})}return h}(),v=C();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!i,onClick:function(){function h(){return c("door")}return h}()}),children:v})]})})}return S}()},14172:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=0,V=1013,k=function(p){var l="good",c=80,m=95,i=110,d=120;return pi?l="average":p>d&&(l="bad"),l},S=r.ExternalAirlockController=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.chamber_pressure,u=i.exterior_status,s=i.interior_status,N=i.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:k(d),value:d,minValue:f,maxValue:V,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!N,onClick:function(){function C(){return m("abort")}return C}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:N,onClick:function(){function C(){return m("cycle_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:N,onClick:function(){function C(){return m("cycle_int")}return C}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:s==="open"?"red":N?"yellow":null,onClick:function(){function C(){return m("force_ext")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:s==="open"?"red":N?"yellow":null,onClick:function(){function C(){return m("force_int")}return C}()})]})]})]})})}return y}()},61893:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FaxMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:l.nologin,content:l.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:l.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!l.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:l.destination?l.destination:"-----",disabled:!l.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return V}()},80031:function(I,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.FilingCabinet=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=y.config,m=l.contents,i=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!m&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",i," is empty."]})}),!!m&&m.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function u(){return p("retrieve",{index:d.index})}return u}()})})]},d)})]})})})})}return V}()},39552:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.image,i=S.isSelected,d=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+m,style:{"border-style":i&&"solid"||"none","border-width":"2px","border-color":"orange",padding:i&&"2px"||"4px"},onClick:d})},V=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.availableStyles,i=c.selectedStyle,d=c.selectedDir,u=c.directionsPreview,s=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function N(){return l("cycle_style",{offset:-1})}return N}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:m,selected:i,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function N(C){return l("select_style",{style:C})}return N}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function N(){return l("cycle_style",{offset:1})}return N}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:m.map(function(N){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f,{image:s[N],isSelected:i===N,onSelect:function(){function C(){return l("select_style",{style:N})}return C}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[N+"west",N,N+"east"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:C===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,f,{image:u[C],isSelected:C===d,onSelect:function(){function v(){return l("select_direction",{direction:C})}return v}()})},C)})},N)})})})})]})})})}return k}()},5090:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=function(i){return i?"("+i.join(", ")+")":"ERROR"},k=function(i,d){if(!(!i||!d)){if(i[2]!==d[2])return null;var u=Math.atan2(d[1]-i[1],d[0]-i[0]),s=Math.sqrt(Math.pow(d[1]-i[1],2)+Math.pow(d[0]-i[0],2));return{angle:(0,a.rad2deg)(u),distance:s}}},S=r.GPS=function(){function m(i,d){var u=(0,t.useBackend)(d),s=u.data,N=s.emped,C=s.active,v=s.area,h=s.position,g=s.saved;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:N?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:v,position:h})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,y)],0)})})})}return m}(),y=function(i,d){var u=i.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:u?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),u?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(i,d){var u=(0,t.useBackend)(d),s=u.act,N=u.data,C=N.active,v=N.tag,h=N.same_z,g=(0,t.useLocalState)(d,"newTag",v),b=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function L(){return s("toggle")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function L(){return s("tag",{newtag:b})}return L}(),onInput:function(){function L(w,T){return B(T)}return L}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function L(){return s("tag",{newtag:b})}return L}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function L(){return s("same_z")}return L}()})})]})})},l=function(i,d){var u=i.title,s=i.area,N=i.position;return(0,e.createComponentVNode)(2,o.Section,{title:u||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[s&&(0,e.createFragment)([s,(0,e.createVNode)(1,"br")],0),V(N)]})})},c=function(i,d){var u=(0,t.useBackend)(d),s=u.data,N=s.position,C=s.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},i,{children:(0,e.createComponentVNode)(2,o.Table,{children:C.map(function(v){return Object.assign({},v,k(N,v.position))}).map(function(v,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:V(v.position)})]},h)})})})))}},1055:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(22677),f=n(84947),V=r.GeneModder=function(){function i(d,u){var s=(0,a.useBackend)(u),N=s.data,C=N.has_seed;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),C===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return i}(),k=function(d,u){var s=(0,a.useBackend)(u),N=s.act,C=s.data,v=C.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!v||!v.can_insert||v.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return N("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})},S=function(d,u){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},y=function(d,u){var s=(0,a.useBackend)(u),N=s.act,C=s.data,v=C.has_seed,h=C.seed,g=C.has_disk,b=C.disk,B,L;return v?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return N("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return N("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return N("eject_seed")}return w}()})}),g?L=b.name:L="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:L,onClick:function(){function w(){return N("eject_disk")}return w}()})})})]})})},p=function(d,u){var s=(0,a.useBackend)(u),N=s.act,C=s.data,v=C.disk,h=C.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:h.map(function(g){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:g.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function b(){return N("extract",{id:g.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!g.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return N("replace",{id:g.id})}return b}()})})]},g)})},"Core Genes")},l=function(d,u){var s=(0,a.useBackend)(u),N=s.data,C=N.reagent_genes,v=N.has_reagent;return(0,e.createComponentVNode)(2,m,{title:"Reagent Genes",gene_set:C,do_we_show:v})},c=function(d,u){var s=(0,a.useBackend)(u),N=s.data,C=N.trait_genes,v=N.has_trait;return(0,e.createComponentVNode)(2,m,{title:"Trait Genes",gene_set:C,do_we_show:v})},m=function(d,u){var s=d.title,N=d.gene_set,C=d.do_we_show,v=(0,a.useBackend)(u),h=v.act,g=v.data,b=g.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:s,open:!0,children:C?N.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function L(){return h("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return h("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},s)}},14232:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(28823),a=n(2971),t=n(84947),o=n(692),f=r.GenericCrewManifest=function(){function V(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return V}()},86268:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GhostHudPanel=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.security,m=l.medical,i=l.diagnostic,d=l.radioactivity,u=l.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,V,{label:"Medical",type:"medical",is_active:m}),(0,e.createComponentVNode)(2,V,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,V,{label:"Diagnostic",type:"diagnostic",is_active:i}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,V,{label:"Antag HUD",is_active:u,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=S.label,m=S.type,i=m===void 0?null:m,d=S.is_active,u=S.act_on,s=u===void 0?"hud_on":u,N=S.act_off,C=N===void 0?"hud_off":N;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return l(d?C:s,{hud_type:i})}return v}()})})]})}},8977:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GlandDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.glands,m=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:i.color,content:i.amount||"0",disabled:!i.amount,onClick:function(){function d(){return p("dispense",{gland_id:i.id})}return d}()},i.id)})})})})}return V}()},70309:function(I,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.GravityGen=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.charging_state,m=l.charge_count,i=l.breaker,d=l.ext_power,u=function(){function N(C){return C>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",C===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return N}(),s=function(){function N(C){if(C>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return N}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[s(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"Online":"Offline",color:i?"green":"red",px:1.5,onClick:function(){function N(){return p("breaker")}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:u(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return V}()},64769:function(I,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(14635),V=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function m(){return l("mode",{mode:0})}return m}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function m(){return l("mode",{mode:1})}return m}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function m(){return l("scan")}return m}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("giv_name")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("reason")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function m(){return l("duration")}return m}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function m(){return l("issue")}return m}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function m(i){return l("access",{access:i})}return m}(),grantAll:function(){function m(){return l("grant_all")}return m}(),denyAll:function(){function m(){return l("clear_all")}return m}(),grantDep:function(){function m(i){return l("grant_region",{region:i})}return m}(),denyDep:function(){function m(i){return l("deny_region",{region:i})}return m}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function m(){return l("print")}return m}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(m,i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:m},i)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return k}()},12219:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=[1,5,10,20,30,50],V=null,k=r.HandheldChemDispenser=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.amount,s=d.energy,N=d.maxEnergy,C=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:N,ranges:{good:[N*.5,1/0],average:[N*.25,N*.5],bad:[-1/0,N*.25]},children:[s," / ",N," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:f.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:u===v,content:v,onClick:function(){function g(){return i("amount",{amount:v})}return g}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:C==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"isolate"})}return v}()})]})})]})})})},y=function(l,c){for(var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.chemicals,s=u===void 0?[]:u,N=d.current_reagent,C=[],v=0;v<(s.length+1)%3;v++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[s.map(function(h,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:N===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return i("dispense",{reagent:h.id})}return b}()},g)}),C.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},53917:function(I,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.HealthSensor=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.on,d=m.user_health,u=m.minHealth,s=m.maxHealth,N=m.alarm_health;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function C(){return c("scan_toggle")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:u,maxValue:s,value:N,format:function(){function C(v){return(0,a.toFixed)(v,1)}return C}(),width:"80px",onDrag:function(){function C(v,h){return c("alarm_health",{alarm_health:h})}return C}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},93116:function(I,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Holodeck=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=(0,a.useLocalState)(y,"currentDeck",""),i=m[0],d=m[1],u=(0,a.useLocalState)(y,"showReload",!1),s=u[0],N=u[1],C=c.decks,v=c.ai_override,h=c.emagged,g=function(){function b(B){l("select_deck",{deck:B}),d(B),N(!0),setTimeout(function(){N(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[s&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",i]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===i,onClick:function(){function B(){return g(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return l("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return l("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),V=function(S,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},77209:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.Instrument=function(){function l(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return l}(),k=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.help;if(s)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function N(){return d("help")}return N}()})]})})})},S=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.lines,N=u.playing,C=u.repeat,v=u.maxRepeats,h=u.tempo,g=u.minTempo,b=u.maxTempo,B=u.tickLag,L=u.volume,w=u.minVolume,T=u.maxVolume,A=u.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:N,disabled:s.length===0||C<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:C,stepPixelSize:59,onChange:function(){function x(E,O){return d("repeat",{new:O})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:L,stepPixelSize:6,onDrag:function(){function x(E,O){return d("setvolume",{new:O})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,y)]})},y=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.allowedInstrumentNames,N=u.instrumentLoaded,C=u.instrument,v=u.canNoteShift,h=u.noteShift,g=u.noteShiftMin,b=u.noteShiftMax,B=u.sustainMode,L=u.sustainLinearDuration,w=u.sustainExponentialDropoff,T=u.legacy,A=u.sustainDropoffVolume,x=u.sustainHeldNote,E,O;return B===1?(E="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:L,step:.5,stepPixelSize:85,format:function(){function R(M){return(0,a.round)(M*100)/100+" seconds"}return R}(),onChange:function(){function R(M,D){return d("setlinearfalloff",{new:D/10})}return R}()})):B===2&&(E="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function R(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return R}(),onChange:function(){function R(M,D){return d("setexpfalloff",{new:D})}return R}()})),s.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:N?(0,e.createComponentVNode)(2,o.Dropdown,{options:s,selected:C,width:"50%",onSelected:function(){function R(M){return d("switchinstrument",{name:M})}return R}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:b,value:h,stepPixelSize:2,format:function(){function R(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return R}(),onChange:function(){function R(M,D){return d("setnoteshift",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function R(M){return d("setsustainmode",{new:M})}return R}()}),O]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function R(M,D){return d("setdropoffvolume",{new:D})}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function R(){return d("togglesustainhold")}return R}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function R(){return d("reset")}return R}()})]})})})},p=function(c,m){var i=(0,t.useBackend)(m),d=i.act,u=i.data,s=u.playing,N=u.lines,C=u.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!C||s,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:N.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!C&&(N.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:N.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:h+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:s,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:h+1})}return g}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},64261:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.KeycardAuth=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!l.swiping&&!l.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!l.redAvailable,onClick:function(){function i(){return p("triggerevent",{triggerevent:"Red Alert"})}return i}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return i}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return i}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return i}(),content:"Revoke"})]})]})})]})});var m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!l.hasSwiped&&!l.ertreason&&l.event==="Emergency Response Team"?m=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):l.hasConfirm?m=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.hasSwiped&&(m=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,l.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){function i(){return p("ert")}return i}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:l.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){function i(){return p("reset")}return i}()}),children:m})]})})}return V}()},34898:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48154),V=r.KitchenMachine=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.data,m=l.config,i=c.ingredients,d=c.operating,u=m.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Operating,{operating:d,name:u}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:i.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:s.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[s.amount," ",s.units]}),2)]},s.name)})})})})]})})})}return S}(),k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.inactive,d=m.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function u(){return c("cook")}return u}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:i,tooltip:i?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function u(){return c("eject")}return u}()})})]})})}},52564:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.LawManager=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.isAdmin,u=i.isSlaved,s=i.isMalf,N=i.isAIMalf,C=i.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:s?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&u)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",u,"."]}),!!(s||N)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:C===0,onClick:function(){function v(){return m("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:C===1,onClick:function(){function v(){return m("set_view",{set_view:1})}return v}()})]}),C===0&&(0,e.createComponentVNode)(2,V),C===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.has_zeroth_laws,u=i.zeroth_laws,s=i.has_ion_laws,N=i.ion_laws,C=i.ion_law_nr,v=i.has_inherent_laws,h=i.inherent_laws,g=i.has_supplied_laws,b=i.supplied_laws,B=i.channels,L=i.channel,w=i.isMalf,T=i.isAdmin,A=i.zeroth_law,x=i.ion_law,E=i.inherent_law,O=i.supplied_law,R=i.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:u,ctx:l}),!!s&&(0,e.createComponentVNode)(2,S,{title:C,laws:N,ctx:l}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:l}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:l}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===L,onClick:function(){function D(){return m("law_channel",{law_channel:M.channel})}return D}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return m("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return m("notify_laws")}return M}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_zeroth_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_ion_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_inherent_law")}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:R,onClick:function(){function M(){return m("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return m("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return m("add_supplied_law")}return M}()})]})]})]})})],0)},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name+" - "+u.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function s(){return m("transfer_laws",{transfer_laws:u.ref})}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.laws.has_ion_laws>0&&u.laws.ion_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_zeroth_laws>0&&u.laws.zeroth_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_inherent_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)}),u.laws.has_supplied_laws>0&&u.laws.inherent_laws.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.index,children:s.law},s.index)})]})},u.name)})})},S=function(p,l){var c=(0,a.useBackend)(p.ctx),m=c.act,i=c.data,d=i.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:u.state?"Yes":"No",selected:u.state,onClick:function(){function s(){return m("state_law",{ref:u.ref,state_law:u.state?0:1})}return s}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function s(){return m("edit_law",{edit_law:u.ref})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function s(){return m("delete_law",{delete_law:u.ref})}return s}()})],4)]})]},u.law)})]})})}},55499:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.LibraryComputer=function(){function C(v,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return C}(),k=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:L.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!L.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:L.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===L.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:L.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"report_book",{bookid:L.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:L.isProgrammatic,onClick:function(){function T(){return(0,f.modalOpen)(h,"rate_info",{bookid:L.id})}return T}()})]})},S=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=v.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function O(){return b("set_report",{report_type:x.category_id})}return O}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return b("submit_report",{bookid:L.id,user_ckey:A})}return x}()})]})},y=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:L>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[L+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:L.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:L.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[L.current_rating?L.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:L.total_ratings?L.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:L.id,user_ckey:w})}return T}()})]})},l=function(v,h){var g=(0,a.useBackend)(h),b=g.data,B=(0,a.useLocalState)(h,"tabIndex",0),L=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:L===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,h){var g=(0,a.useLocalState)(h,"tabIndex",0),b=g[0];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,u);case 3:return(0,e.createComponentVNode)(2,s);case 4:return(0,e.createComponentVNode)(2,N);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},m=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:L.title||"Input Title",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:L.author||"Input Author",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:L.ratingmin,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:L.ratingmax,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return b("clear_search")}return x}()}),L.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},i=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,f.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,m),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),L.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,f.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),L.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,f.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},u=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:L.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[L.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:L.copyright,content:L.title,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:L.copyright,content:L.author,onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return L.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:L.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:L.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,f.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:L.summary})]})})]})]})},s=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},N=function(v,h){var g=(0,a.useBackend)(h),b=g.act,B=g.data,L=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),L.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,f.modalRegisterBodyOverride)("expand_info",k),(0,f.modalRegisterBodyOverride)("report_book",S),(0,f.modalRegisterBodyOverride)("rate_info",p)},92682:function(I,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(22677),V=r.LibraryManager=function(){function l(c,m){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return l}(),k=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.pagestate;switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ssid_delete")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_delete")}return s}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function s(){return(0,f.modalOpen)(m,"specify_ckey_search")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function s(){return d("view_reported_books")}return s}()})]})},y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function N(){return d("return")}return N}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),s.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:N.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),N.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:N.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:N.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function C(){return d("delete_book",{bookid:N.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function C(){return d("unflag_book",{bookid:N.id})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function C(){return d("view_book",{bookid:N.id})}return C}()})]})]},N.id)})]})})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.ckey,N=u.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",s,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return d("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),N.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return d("delete_book",{bookid:C.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:C.id})}return v}()})]})]},C.id)})]})})}},68e3:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(2971),f=n(91819),V=n(31068),k=n(84947),S=r.ListInputModal=function(){function l(c,m){var i=(0,f.useBackend)(m),d=i.act,u=i.data,s=u.items,N=s===void 0?[]:s,C=u.message,v=C===void 0?"":C,h=u.init_value,g=u.timeout,b=u.title,B=(0,f.useLocalState)(m,"selected",N.indexOf(h)),L=B[0],w=B[1],T=(0,f.useLocalState)(m,"searchBarVisible",N.length>10),A=T[0],x=T[1],E=(0,f.useLocalState)(m,"searchQuery",""),O=E[0],R=E[1],M=function(){function Y($){var Q=G.length-1;if($===V.KEY_DOWN)if(L===null||L===Q){var re;w(0),(re=document.getElementById("0"))==null||re.scrollIntoView()}else{var ae;w(L+1),(ae=document.getElementById((L+1).toString()))==null||ae.scrollIntoView()}else if($===V.KEY_UP)if(L===null||L===0){var de;w(Q),(de=document.getElementById(Q.toString()))==null||de.scrollIntoView()}else{var ve;w(L-1),(ve=document.getElementById((L-1).toString()))==null||ve.scrollIntoView()}}return Y}(),D=function(){function Y($){$!==L&&w($)}return Y}(),j=function(){function Y(){x(!1),x(!0)}return Y}(),U=function(){function Y($){var Q=String.fromCharCode($),re=N.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(Q==null?void 0:Q.toLowerCase())});if(re){var ae,de=N.indexOf(re);w(de),(ae=document.getElementById(de.toString()))==null||ae.scrollIntoView()}}return Y}(),W=function(){function Y($){var Q;$!==O&&(R($),w(0),(Q=document.getElementById("0"))==null||Q.scrollIntoView())}return Y}(),K=function(){function Y(){x(!A),R("")}return Y}(),G=N.filter(function(Y){return Y==null?void 0:Y.toLowerCase().includes(O.toLowerCase())}),z=330+Math.ceil(v.length/3);return A||setTimeout(function(){var Y;return(Y=document.getElementById(L.toString()))==null?void 0:Y.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:z,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function Y($){var Q=window.event?$.which:$.keyCode;(Q===V.KEY_DOWN||Q===V.KEY_UP)&&($.preventDefault(),M(Q)),Q===V.KEY_ENTER&&($.preventDefault(),d("submit",{entry:G[L]})),!A&&Q>=V.KEY_A&&Q<=V.KEY_Z&&($.preventDefault(),U(Q)),Q===V.KEY_ESCAPE&&($.preventDefault(),d("cancel"))}return Y}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"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(){function Y(){return K()}return Y}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{filteredItems:G,onClick:D,onFocusSearch:j,searchBarVisible:A,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:G,onSearch:W,searchQuery:O,selected:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:G[L]})})]})})})]})}return l}(),y=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onClick,N=c.onFocusSearch,C=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(h,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function b(){return s(g)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),d("submit",{entry:u[v]})}return b}(),onKeyDown:function(){function b(B){var L=window.event?B.which:B.keyCode;C&&L>=V.KEY_A&&L<=V.KEY_Z&&(B.preventDefault(),N())}return b}(),selected:g===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},g)})})},p=function(c,m){var i=(0,f.useBackend)(m),d=i.act,u=c.filteredItems,s=c.onSearch,N=c.searchQuery,C=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:u[C]})}return v}(),onInput:function(){function v(h,g){return s(g)}return v}(),placeholder:"Search...",value:N})}},75965:function(I,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),O=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function R(M,D){return O("configure",{key:T,value:D,ref:x})}return R}()})},V=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),O=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function R(){return O("configure",{key:T,value:!A,ref:x})}return R}()})},k=function(L,w){var T=L.name,A=L.value,x=L.module_ref,E=(0,a.useBackend)(w),O=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function R(){return O("configure",{key:T,ref:x})}return R}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(L,w){var T=L.name,A=L.value,x=L.values,E=L.module_ref,O=(0,a.useBackend)(w),R=O.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(D){return R("configure",{key:T,value:D,ref:E})}return M}()})},y=function(L,w){var T=L.name,A=L.display_name,x=L.type,E=L.value,O=L.values,R=L.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({},L))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,V,Object.assign({},L))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},L))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},L)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},p=function(L,w){var T=L.active,A=L.userradiated,x=L.usertoxins,E=L.usermaxtoxins,O=L.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&O?"bad":"good",bold:!0,children:T&&O?O:0})})]})},l=function(L,w){var T=L.active,A=L.userhealth,x=L.usermaxhealth,E=L.userbrute,O=L.userburn,R=L.usertoxin,M=L.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?O/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?O:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})})]})],4)},c=function(L,w){var T=L.active,A=L.statustime,x=L.statusid,E=L.statushealth,O=L.statusmaxhealth,R=L.statusbrute,M=L.statusburn,D=L.statustoxin,j=L.statusoxy,U=L.statustemp,W=L.statusnutrition,K=L.statusfingerprints,G=L.statusdna,z=L.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/O:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?R:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/O:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:j})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?U:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?W:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?G:"???"})]})}),!!T&&!!z&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),z.map(function(Y){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[Y.stage,"/",Y.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:Y.cure})]},Y.name)})]})})],0)},m={rad_counter:p,health_analyzer:l,status_readout:c},i=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},d=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},u=function(L,w){var T=L.configuration_data,A=L.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var O=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:O.display_name,type:O.type,value:O.value,values:O.values,module_ref:A})},O.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:L.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},s=function(L){switch(L){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},N=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,O=x.malfunctioning,R=x.locked,M=x.open,D=x.selected_module,j=x.complexity,U=x.complexity_max,W=x.wearer_name,K=x.wearer_job,G=O?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function z(){return A("activate")}return z}()}),children:G}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:R?"lock-open":"lock",content:R?"Unlock":"Lock",onClick:function(){function z(){return A("lock")}return z}()}),children:R?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[j," (",U,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[W,", ",K]})]})})},C=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,O=x.control,R=x.helmet,M=x.chestplate,D=x.gauntlets,j=x.boots,U=x.core,W=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:O}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:D||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:j||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:U&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:U}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:W/100,content:W+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,O=x.modules,R=O.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:R.length!==0&&R.map(function(M){var D=m[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,D,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,O=x.modules,R=(0,a.useLocalState)(w,"module_configuration",null),M=R[0],D=R[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:O.length!==0&&O.map(function(j){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:j.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===j.ref&&(0,e.createComponentVNode)(2,u,{configuration_data:j.configuration_data,module_ref:j.ref,onExit:function(){function U(){return D(null)}return U}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:j.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[j.cooldown>0&&j.cooldown/10||"0","/",j.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function U(){return A("select",{ref:j.ref})}return U}(),icon:"bullseye",selected:j.module_active,tooltip:s(j.module_type),tooltipPosition:"left",disabled:!j.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function U(){return D(j.ref)}return U}(),icon:"cog",selected:M===j.ref,tooltip:"Configure",tooltipPosition:"left",disabled:j.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function U(){return A("pin",{ref:j.ref})}return U}(),icon:"thumbtack",selected:j.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!j.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:j.description})]})})},j.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},g=r.MODsuitContent=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,O=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!O,children:!!O&&(0,e.createComponentVNode)(2,i)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(L,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,O=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,g)})})})}return B}()},86322:function(I,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=n(22677),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.autolink,u=i.code,s=i.frequency,N=i.linkedMagnets,C=i.magnetConfiguration,v=i.path,h=i.pathPosition,g=i.probing,b=i.powerState,B=i.speed;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[!d&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:g?"spinner":"sync",iconSpin:!!g,disabled:g,onClick:function(){function L(){return m("probe_magnets")}return L}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(s/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:u})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function L(){return m("toggle_power")}return L}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function L(w,T){return m("set_speed",{speed:T})}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(L){var w=L[0],T=L[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return m("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function L(){return m("path_clear")}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function L(){return(0,V.modalOpen)(l,"path_custom_input")}return L}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(L,w){var T=k.get(L)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return m("path_remove",{index:w+1,code:L})}return E}()},w)})})]})]})}),N.map(function(L,w){var T=L.uid,A=L.powerState,x=L.electricityLevel,E=L.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function O(){return m("toggle_magnet_power",{id:T})}return O}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:C.electricityLevel.min,maxValue:C.electricityLevel.max,onChange:function(){function O(R,M){return m("set_electricity_level",{id:T,electricityLevel:M})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:C.magneticField.min,maxValue:C.magneticField.max,onChange:function(){function O(R,M){return m("set_magnetic_field",{id:T,magneticField:M})}return O}()})})]})},T)})]})]})}return y}()},54374:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.MechBayConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.recharge_port,m=c&&c.mech,i=m&&m.cell,d=m&&m.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function u(){return p("reconnect")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.health/m.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!m&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.charge/i.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.charge})," / "+i.maxcharge]})})]})})})})}return V}()},14823:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=n(37843),k=r.MechaControlConsole=function(){function S(y,p){var l=(0,t.useBackend)(p),c=l.act,m=l.data,i=m.beacons,d=m.stored_data;return d.length?(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function u(){return c("clear_log")}return u}()}),children:d.map(function(u){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",u.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,V.decodeHtmlEntities)(u.message)})]},u.time)})})})}):(0,e.createComponentVNode)(2,f.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:i.length&&i.map(function(u){return(0,e.createComponentVNode)(2,o.Section,{title:u.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function s(){return c("send_message",{mt:u.uid})}return s}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function s(){return c("get_log",{mt:u.uid})}return s}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function s(){return c("shock",{mt:u.uid})}return s}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.maxHealth*.75,1/0],average:[u.maxHealth*.5,u.maxHealth*.75],bad:[-1/0,u.maxHealth*.5]},value:u.health,maxValue:u.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:u.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[u.cellMaxCharge*.75,1/0],average:[u.cellMaxCharge*.5,u.cellMaxCharge*.75],bad:[-1/0,u.cellMaxCharge*.5]},value:u.cellCharge,maxValue:u.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[u.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:u.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,V.toTitleCase)(u.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:u.active||"None"}),u.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[u.cargoMax*.75,1/0],average:[u.cargoMax*.5,u.cargoMax*.75],good:[-1/0,u.cargoMax*.5]},value:u.cargoUsed,maxValue:u.cargoMax})})||null]})},u.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},16189:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(22677),V=n(84947),k=n(51185),S=n(69774),y=n(76519),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,A){(0,f.modalOpen)(T,"edit",{field:A.edit,value:A.value})},m=function(T,A){var x=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:x.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:x.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[x.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:x.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:x.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[x.severity],children:x.severity})]})})})},i=r.MedicalRecords=function(){function w(T,A){var x=(0,t.useBackend)(A),E=x.data,O=E.loginState,R=E.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var M;return R===2?M=(0,e.createComponentVNode)(2,d):R===3?M=(0,e.createComponentVNode)(2,u):R===4?M=(0,e.createComponentVNode)(2,s):R===5?M=(0,e.createComponentVNode)(2,h):R===6&&(M=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,V.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,L),M]})})]})}return w}(),d=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.records,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],U=(0,t.useLocalState)(A,"sortId","name"),W=U[0],K=U[1],G=(0,t.useLocalState)(A,"sortOrder",!0),z=G[0],Y=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function $(){return E("screen",{screen:3})}return $}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function $(Q,re){return j(re)}return $}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,b,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,b,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,b,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,b,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,b,{id:"m_stat",children:"Mental Status"})]}),R.filter((0,a.createSearch)(D,function($){return $.name+"|"+$.id+"|"+$.rank+"|"+$.p_stat+"|"+$.m_stat})).sort(function($,Q){var re=z?1:-1;return $[W].localeCompare(Q[W])*re}).map(function($){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[$.p_stat],onClick:function(){function Q(){return E("view_record",{view_record:$.ref})}return Q}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",$.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.m_stat})]},$.id)})]})})})],4)},u=function(T,A){var x=(0,t.useBackend)(A),E=x.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function O(){return E("del_all_med_records")}return O}()})})]})})},s=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.medical,M=O.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:M?"spinner":"print",disabled:M,iconSpin:!!M,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return E("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,N)})}),!R||!R.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return E("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!R.empty,content:"Delete Medical Record",onClick:function(){function D(){return E("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,v)],4)],0)},N=function(T,A){var x=(0,t.useBackend)(A),E=x.data,O=E.general;return!O||!O.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.fields.map(function(R,M){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:R.value}),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return c(A,R)}return D}()})]},M)})})}),!!O.has_photos&&O.photos.map(function(R,M){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:R,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",M+1]},M)})]})},C=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.medical;return!R||!R.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:R.fields.map(function(M,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function j(){return c(A,M)}return j}()})]},D)})})})})},v=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function M(){return(0,f.modalOpen)(A,"add_comment")}return M}()}),children:R.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):R.comments.map(function(M,D){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:M.header}),(0,e.createVNode)(1,"br"),M.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function j(){return E("del_comment",{del_comment:D+1})}return j}()})]},D)})})})},h=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.virus,M=(0,t.useLocalState)(A,"searchText",""),D=M[0],j=M[1],U=(0,t.useLocalState)(A,"sortId2","name"),W=U[0],K=U[1],G=(0,t.useLocalState)(A,"sortOrder2",!0),z=G[0],Y=G[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function $(Q,re){return j(re)}return $}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,B,{id:"severity",children:"Severity"})]}),R.filter((0,a.createSearch)(D,function($){return $.name+"|"+$.max_stages+"|"+$.severity})).sort(function($,Q){var re=z?1:-1;return $[W].localeCompare(Q[W])*re}).map(function($){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+$.severity,onClick:function(){function Q(){return E("vir",{vir:$.D})}return Q}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",$.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:$.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[$.severity],children:$.severity})]},$.id)})]})})})})],4)},g=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.medbots;return R.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),R.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+M.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",M.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[M.area||"Unknown"," (",M.x,", ",M.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.use_beaker?"Reservoir: "+M.total_volume+"/"+M.maximum_volume:"Using internal synthesizer"})]},M.id)})]})})})},b=function(T,A){var x=(0,t.useLocalState)(A,"sortId","name"),E=x[0],O=x[1],R=(0,t.useLocalState)(A,"sortOrder",!0),M=R[0],D=R[1],j=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function W(){E===j?D(!M):(O(j),D(!0))}return W}(),children:[U,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var x=(0,t.useLocalState)(A,"sortId2","name"),E=x[0],O=x[1],R=(0,t.useLocalState)(A,"sortOrder2",!0),M=R[0],D=R[1],j=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==j&&"transparent",onClick:function(){function W(){E===j?D(!M):(O(j),D(!0))}return W}(),children:[U,E===j&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},L=function(T,A){var x=(0,t.useBackend)(A),E=x.act,O=x.data,R=O.screen,M=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:R===2,onClick:function(){function D(){E("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:R===5,onClick:function(){function D(){E("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:R===6,onClick:function(){function D(){return E("screen",{screen:6})}return D}(),children:"Medibot Tracking"}),R===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:R===3,children:"Record Maintenance"}),R===4&&M&&!M.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:R===4,children:["Record: ",M.fields[0].value]})]})})};(0,f.modalRegisterBodyOverride)("virus",m)},44482:function(I,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.product,u=p.productImage,s=p.productCategory,N=i.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>N,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function C(){return m("purchase",{name:d.name,category:s})}return C}()})})]})},V=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),d=i[0],u=m.products,s=m.imagelist,N=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:u[N[d]].map(function(C){return(0,e.createComponentVNode)(2,f,{product:C,productImage:s[C.path],productCategory:N[d]},C.name)})})},k=r.MerchVendor=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.user_cash,u=i.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,u,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function s(){return m("change")}return s}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,V)]})})]})})})}return y}(),S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),d=i[0],u=i[1],s=m.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function N(){return u(1)}return N}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function N(){return u(2)}return N}(),children:"Decorations"})]})}},53551:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=["title","items"];function k(i,d){if(i==null)return{};var u={},s=Object.keys(i),N,C;for(C=0;C=0)&&(u[N]=i[N]);return u}var S={Alphabetical:function(){function i(d,u){return d-u}return i}(),Availability:function(){function i(d,u){return-(d.affordable-u.affordable)}return i}(),Price:function(){function i(d,u){return d.price-u.price}return i}()},y=r.MiningVendor=function(){function i(d,u){return(0,e.createComponentVNode)(2,f.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return i}(),p=function(d,u){var s=(0,t.useBackend)(u),N=s.act,C=s.data,v=C.has_id,h=C.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return N("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},l=function(d,u){var s=(0,t.useBackend)(u),N=s.act,C=s.data,v=C.has_id,h=C.id,g=C.items,b=(0,t.useLocalState)(u,"search",""),B=b[0],L=b[1],w=(0,t.useLocalState)(u,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(u,"descending",!1),E=x[0],O=x[1],R=(0,a.createSearch)(B,function(j){return j[0]}),M=!1,D=Object.entries(g).map(function(j,U){var W=Object.entries(j[1]).filter(R).map(function(K){return K[1].affordable=v&&h.points>=K[1].price,K[1]}).sort(S[T]);if(W.length!==0)return E&&(W=W.reverse()),M=!0,(0,e.createComponentVNode)(2,m,{title:j[0],items:W},j[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?D:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,u){var s=(0,t.useLocalState)(u,"search",""),N=s[0],C=s[1],v=(0,t.useLocalState)(u,"sort",""),h=v[0],g=v[1],b=(0,t.useLocalState)(u,"descending",!1),B=b[0],L=b[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return C(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return g(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return L(!B)}return w}()})})]})})},m=function(d,u){var s=(0,t.useBackend)(u),N=s.act,C=s.data,v=d.title,h=d.items,g=k(d,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C.has_id||C.id.points=0)&&(T[x]=L[x]);return T}var c=128,m=["security","engineering","medical","science","service","supply"],i={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function L(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=E.is_security,R=E.is_admin,M=E.is_silent,D=E.is_printing,j=E.screen,U=E.channels,W=E.channel_idx,K=W===void 0?-1:W,G=(0,t.useLocalState)(T,"menuOpen",!1),z=G[0],Y=G[1],$=(0,t.useLocalState)(T,"viewingPhoto",""),Q=$[0],re=$[1],ae=(0,t.useLocalState)(T,"censorMode",!1),de=ae[0],ve=ae[1],ye;j===0||j===2?ye=(0,e.createComponentVNode)(2,s):j===1&&(ye=(0,e.createComponentVNode)(2,N));var Le=U.reduce(function(pe,ne){return pe+ne.unread},0);return(0,e.createComponentVNode)(2,V.Window,{theme:O&&"security",width:800,height:600,children:[Q?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",z&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,u,{icon:"bars",title:"Toggle Menu",onClick:function(){function pe(){return Y(!z)}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"newspaper",title:"Headlines",selected:j===0,onClick:function(){function pe(){return x("headlines")}return pe}(),children:Le>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Le>=10?"9+":Le})}),(0,e.createComponentVNode)(2,u,{icon:"briefcase",title:"Job Openings",selected:j===1,onClick:function(){function pe(){return x("jobs")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:U.map(function(pe){return(0,e.createComponentVNode)(2,u,{icon:pe.icon,title:pe.name,selected:j===2&&U[K-1]===pe,onClick:function(){function ne(){return x("channel",{uid:pe.uid})}return ne}(),children:pe.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:pe.unread>=10?"9+":pe.unread})},pe)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!R)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,u,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"wanted_notice")}return pe}()}),(0,e.createComponentVNode)(2,u,{security:!0,icon:de?"minus-square":"minus-square-o",title:"Censor Mode: "+(de?"On":"Off"),mb:"0.5rem",onClick:function(){function pe(){return ve(!de)}return pe}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,u,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_story")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:"plus-circle",title:"New Channel",onClick:function(){function pe(){return(0,k.modalOpen)(T,"create_channel")}return pe}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,u,{icon:D?"spinner":"print",iconSpin:D,title:D?"Printing...":"Print Newspaper",onClick:function(){function pe(){return x("print_newspaper")}return pe}()}),(0,e.createComponentVNode)(2,u,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function pe(){return x("toggle_mute")}return pe}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return L}(),u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,O=E===void 0?"":E,R=w.iconSpin,M=w.selected,D=M===void 0?!1:M,j=w.security,U=j===void 0?!1:j,W=w.onClick,K=w.title,G=w.children,z=l(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",D&&"Newscaster__menuButton--selected",U&&"Newscaster__menuButton--security"]),onClick:W},z,{children:[D&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:R,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),G]})))},s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=E.screen,R=E.is_admin,M=E.channel_idx,D=E.channel_can_manage,j=E.channels,U=E.stories,W=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),G=K[0],z=K[1],Y=(0,t.useLocalState)(T,"censorMode",!1),$=Y[0],Q=Y[1],re=O===2&&M>-1?j[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!W&&(0,e.createComponentVNode)(2,C,{story:W,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:re?re.icon:"newspaper",mr:"0.5rem"}),re?re.name:"Headlines"],0),children:U.length>0?U.slice().reverse().map(function(ae){return!G.includes(ae.uid)&&ae.body.length+3>c?Object.assign({},ae,{body_short:ae.body.substr(0,c-4)+"..."}):ae}).map(function(ae,de){return(0,e.createComponentVNode)(2,C,{story:ae},de)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!re&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([$&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!re.admin&&!R,selected:re.censored,icon:re.censored?"comment-slash":"comment",content:re.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ae(){return x("censor_channel",{uid:re.uid})}return ae}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!D,icon:"cog",content:"Manage",onClick:function(){function ae(){return(0,k.modalOpen)(T,"manage_channel",{uid:re.uid})}return ae}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:re.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:re.author||"N/A"}),!!R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:re.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:re.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),U.reduce(function(ae,de){return ae+de.view_count},0).toLocaleString()]})]})})]})},N=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=E.jobs,R=E.wanted,M=Object.entries(O).reduce(function(D,j){var U=j[0],W=j[1];return D+W.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!R&&(0,e.createComponentVNode)(2,C,{story:R,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?m.map(function(D){return Object.assign({},i[D],{id:D,jobs:O[D]})}).filter(function(D){return!!D&&D.jobs.length>0}).map(function(D){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+D.id]),title:D.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:D.fluff_text}),children:D.jobs.map(function(j){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!j.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",j.title]},j.title)})},D.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=w.story,R=w.wanted,M=R===void 0?!1:R,D=E.is_admin,j=(0,t.useLocalState)(T,"fullStories",[]),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"censorMode",!1),G=K[0],z=K[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&G&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function Y(){return x("censor_story",{uid:O.uid})}return Y}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!!D&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),O.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,f.timeAgo)(O.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(Y,$){return(0,e.createComponentVNode)(2,o.Box,{children:Y||(0,e.createVNode)(1,"br")},$)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function Y(){return W([].concat(U,[O.uid]))}return Y}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=l(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),O=E[0],R=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return R(A)}return M}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return E("")}return O}()})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!O){(0,k.modalClose)(T);return}var R=w.id==="manage_channel",M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(O==null?void 0:O.author)||D||"Unknown"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(O==null?void 0:O.name)||""),G=K[0],z=K[1],Y=(0,t.useLocalState)(T,"description",(O==null?void 0:O.description)||""),$=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"icon",(O==null?void 0:O.icon)||"newspaper"),ae=re[0],de=re[1],ve=(0,t.useLocalState)(T,"isPublic",R?!!(O!=null&&O.public):!1),ye=ve[0],Le=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",(O==null?void 0:O.admin)===1||!1),ne=pe[0],ce=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:R?"Manage "+O.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:U,onInput:function(){function q(se,me){return W(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:G,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:$,onInput:function(){function q(se,me){return Q(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ae,width:"35%",mr:"0.5rem",onInput:function(){function q(se,me){return de(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ae,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Le(!ye)}return q}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||G.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,w.id,"",{author:U,name:G.substr(0,49),description:$.substr(0,128),icon:ae,public:ye?1:0,admin_locked:ne?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=E.photo,R=E.channels,M=E.channel_idx,D=M===void 0?-1:M,j=!!w.args.is_admin,U=w.args.scanned_user,W=R.slice().sort(function(q,se){if(D<0)return 0;var me=R[D-1];if(me.uid===q.uid)return-1;if(me.uid===se.uid)return 1}).filter(function(q){return j||!q.frozen&&(q.author===U||!!q.public)}),K=(0,t.useLocalState)(T,"author",U||"Unknown"),G=K[0],z=K[1],Y=(0,t.useLocalState)(T,"channel",W.length>0?W[0].name:""),$=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"title",""),ae=re[0],de=re[1],ve=(0,t.useLocalState)(T,"body",""),ye=ve[0],Le=ve[1],pe=(0,t.useLocalState)(T,"adminLocked",!1),ne=pe[0],ce=pe[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!j,width:"100%",value:G,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:$,options:W.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(se){return Q(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ae,onInput:function(){function q(se,me){return de(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ye,onInput:function(){function q(se,me){return Le(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(O?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ae,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"}),ye.split("\n").map(function(q,se){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},se)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:G.trim().length===0||$.trim().length===0||ae.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,"create_story","",{author:G,channel:$,title:ae.substr(0,127),body:ye.substr(0,1023),admin_locked:ne?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,O=E.photo,R=E.wanted,M=!!w.args.is_admin,D=w.args.scanned_user,j=(0,t.useLocalState)(T,"author",(R==null?void 0:R.author)||D||"Unknown"),U=j[0],W=j[1],K=(0,t.useLocalState)(T,"name",(R==null?void 0:R.title.substr(8))||""),G=K[0],z=K[1],Y=(0,t.useLocalState)(T,"description",(R==null?void 0:R.body)||""),$=Y[0],Q=Y[1],re=(0,t.useLocalState)(T,"adminLocked",(R==null?void 0:R.admin_locked)===1||!1),ae=re[0],de=re[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:U,onInput:function(){function ve(ye,Le){return W(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:G,maxLength:"128",onInput:function(){function ve(ye,Le){return z(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:$,maxLength:"512",rows:"4",onInput:function(){function ve(ye,Le){return Q(Le)}return ve}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function ve(){return x(O?"eject_photo":"attach_photo")}return ve}()}),!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"lock":"lock-open",content:ae?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function ve(){return de(!ae)}return ve}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!R,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function ve(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return ve}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||G.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function ve(){(0,k.modalAnswer)(T,w.id,"",{author:U,name:G.substr(0,127),description:$.substr(0,511),admin_locked:ae?1:0})}return ve}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",g),(0,k.modalRegisterBodyOverride)("manage_channel",g),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.NuclearBomb=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return l.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!l.authdisk,selected:l.authcode,content:l.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authdisk,content:l.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return V}()},45523:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(31068),f=n(91819),V=n(2971),k=n(84947),S=r.NumberInputModal=function(){function p(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.init_value,s=d.large_buttons,N=d.message,C=N===void 0?"":N,v=d.timeout,h=d.title,g=(0,f.useLocalState)(c,"input",u),b=g[0],B=g[1],L=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(C.length>30?Math.ceil(C.length/3):0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&i("submit",{entry:b}),E===o.KEY_ESCAPE&&i("cancel")}return A}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:L})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(l,c){var m=(0,f.useBackend)(c),i=m.act,d=m.data,u=d.min_value,s=d.max_value,N=d.init_value,C=d.round_value,v=l.input,h=l.onClick,g=l.onChange,b=Math.round(v!==u?Math.max(v/2,u):s/2),B=v===u&&u>0||v===1;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===u,icon:"angle-double-left",onClick:function(){function L(){return h(u)}return L}(),tooltip:v===u?"Min":"Min ("+u+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:u,maxValue:s,onChange:function(){function L(w,T){return g(T)}return L}(),onEnter:function(){function L(w,T){return i("submit",{entry:T})}return L}(),value:v})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===s,icon:"angle-double-right",onClick:function(){function L(){return h(s)}return L}(),tooltip:v===s?"Max":"Max ("+s+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:B,icon:"divide",onClick:function(){function L(){return h(b)}return L}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:v===N,icon:"redo",onClick:function(){function L(){return h(N)}return L}(),tooltip:N?"Reset ("+N+")":"Reset"})})]})}},48314:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(84947),f=n(2971),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function i(d,u){var s=(0,t.useBackend)(u),N=s.act,C=s.data,v=C.hasOccupant,h=C.choice,g;return h?g=(0,e.createComponentVNode)(2,m):g=v?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return N("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return N("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return i}(),l=function(d,u){var s=(0,t.useBackend)(u),N=s.data,C=N.occupant;return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:C.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[C.stat][0],children:V[C.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxHealth,value:C.health/C.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(v,h){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:C[v[1]]/100,ranges:S,children:(0,a.round)(C[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.maxTemp,value:C.bodyTemperature/C.maxTemp,color:y[C.temperatureSuitability+3],children:[(0,a.round)(C.btCelsius),"\xB0C, ",(0,a.round)(C.btFaren),"\xB0F"]})}),!!C.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:C.bloodMax,value:C.bloodLevel/C.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[C.bloodPercent,"%, ",C.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[C.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:C.inSurgery?(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Procedure",children:C.surgeryName}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Next Step",children:C.stepName})]}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},m=function(d,u){var s=(0,t.useBackend)(u),N=s.act,C=s.data,v=C.verbose,h=C.health,g=C.healthAlarm,b=C.oxy,B=C.oxyAlarm,L=C.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function w(){return N(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return N(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return N("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return N(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return N("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"On":"Off",onClick:function(){function w(){return N(L?"critOff":"critOn")}return w}()})})]})}},87511:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947);function V(u,s){var N=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(N)return(N=N.call(u)).next.bind(N);if(Array.isArray(u)||(N=k(u))||s&&u&&typeof u.length=="number"){N&&(u=N);var C=0;return function(){return C>=u.length?{done:!0}:{done:!1,value:u[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(u,s){if(u){if(typeof u=="string")return S(u,s);var N=Object.prototype.toString.call(u).slice(8,-1);if(N==="Object"&&u.constructor&&(N=u.constructor.name),N==="Map"||N==="Set")return Array.from(u);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return S(u,s)}}function S(u,s){(s==null||s>u.length)&&(s=u.length);for(var N=0,C=new Array(s);NN},c=function(s,N){var C=s.name,v=N.name;if(!C||!v)return 0;var h=C.match(y),g=v.match(y);if(h&&g&&C.replace(y,"")===v.replace(y,"")){var b=parseInt(h[1],10),B=parseInt(g[1],10);return b-B}return l(C,v)},m=function(s,N){var C=s.searchText,v=s.source,h=s.title,g=s.color,b=s.sorted,B=v.filter(p(C));return b&&B.sort(c),v.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:h+" - ("+v.length+")",children:B.map(function(L){return(0,e.createComponentVNode)(2,i,{thing:L,color:g},L.name)})})},i=function(s,N){var C=(0,t.useBackend)(N),v=C.act,h=s.color,g=s.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function b(){return v("orbit",{ref:g.ref})}return b}(),children:[g.name,g.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",g.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},d=r.Orbit=function(){function u(s,N){for(var C=(0,t.useBackend)(N),v=C.act,h=C.data,g=h.alive,b=h.antagonists,B=h.highlights,L=h.response_teams,w=h.auto_observe,T=h.dead,A=h.ghosts,x=h.misc,E=h.npcs,O=(0,t.useLocalState)(N,"searchText",""),R=O[0],M=O[1],D={},j=V(b),U;!(U=j()).done;){var W=U.value;D[W.antag]===void 0&&(D[W.antag]=[]),D[W.antag].push(W)}var K=Object.entries(D);K.sort(function(z,Y){return l(z[0],Y[0])});var G=function(){function z(Y){for(var $=0,Q=[K.map(function(de){var ve=de[0],ye=de[1];return ye}),B,g,A,T,E,x];$0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function(z){var Y=z[0],$=z[1];return(0,e.createComponentVNode)(2,o.Section,{title:Y+" - ("+$.length+")",level:2,children:$.filter(p(R)).sort(c).map(function(Q){return(0,e.createComponentVNode)(2,i,{color:"bad",thing:Q},Q.name)})},Y)})}),B.length>0&&(0,e.createComponentVNode)(2,m,{title:"Highlights",source:B,searchText:R,color:"teal"}),(0,e.createComponentVNode)(2,m,{title:"Response Teams",source:L,searchText:R,color:"purple"}),(0,e.createComponentVNode)(2,m,{title:"Alive",source:g,searchText:R,color:"good"}),(0,e.createComponentVNode)(2,m,{title:"Ghosts",source:A,searchText:R,color:"grey"}),(0,e.createComponentVNode)(2,m,{title:"Dead",source:T,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"NPCs",source:E,searchText:R,sorted:!1}),(0,e.createComponentVNode)(2,m,{title:"Misc",source:x,searchText:R,sorted:!1})]})})}return u}()},54528:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),V=n(50175);function k(s){if(s==null)throw new TypeError("Cannot destructure "+s)}var S=(0,V.createLogger)("OreRedemption"),y=function(N){return N.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function s(N,C){return(0,e.createComponentVNode)(2,f.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m)]})})})}return s}(),l=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.id,B=g.points,L=g.disk,w=Object.assign({},(k(N),N));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:b?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:b.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.points)})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:y(b.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:y(B)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!b,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),L?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:L.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!L.design||!L.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:L.design&&(L.compatible?"good":"bad"),children:L.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.sheets,B=Object.assign({},(k(N),N));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,d,{ore:L},L.id)})]})))})},m=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.alloys,B=Object.assign({},(k(N),N));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(L){return(0,e.createComponentVNode)(2,u,{ore:L},L.id)})]})))})},i=function(N,C){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:N.title}),(v=N.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=N.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return h(g.value?"sheet":"alloy",{id:g.id,amount:L})}return b}()})})]})})},u=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=N.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function b(B,L){return h(g.value?"sheet":"alloy",{id:g.id,amount:L})}return b}()})})]})})}},55686:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),V=n(33115),k=function(p){var l;try{l=V("./"+p+".js")}catch(m){if(m.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",p);throw m}var c=l[p];return c||(0,f.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.app_template,u=i.app_icon,s=i.app_title,N=k(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u,mr:1}),s,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function C(){return m("Back")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function C(){return m("MASTER_back")}return C}()})],4)]}),children:(0,e.createComponentVNode)(2,N)})})})})})}return y}()},58717:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(76521),V=n(75168),k=function(c){var m;try{m=V("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",c);throw d}var i=m[c];return i||(0,f.routingError)("missingExport",c)},S=r.PDA=function(){function l(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.app,N=u.owner;if(!N)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var C=k(s.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s.icon,mr:1}),s.name]}),children:(0,e.createComponentVNode)(2,C)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return l}(),y=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.idInserted,N=u.idLink,C=u.stationTime,v=u.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return d("Authenticate")}return h}(),content:s?N:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return d("Eject")}return h}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:C})]})},p=function(c,m){var i=(0,a.useBackend)(m),d=i.act,u=i.data,s=u.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!s.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function N(){return d("Back")}return N}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:s.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:s.is_home?"disabled":"white",icon:"home",onClick:function(){function N(){d("Home")}return N}()})})]})})}},78062:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(48300),V=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.active,i=c.anchored,d=c.broken,u=c.emagged,s=c.fuel_type,N=c.fuel_usage,C=c.fuel_stored,v=c.fuel_cap,h=c.is_ai,g=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,L=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=C/v,E=g/b,O=T*w,R=Math.round(C/N),M=Math.round(R/60),D=R>120?M+" minutes":R+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!i)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!i&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!i&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:m,onClick:function(){function j(){return l("toggle_power")}return j}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:L*(u?2.5:1),step:1,className:"mt-1",onDrag:function(){function j(U,W){return l("change_power",{change_power:W})}return j}()}),"(",(0,f.formatPower)(O),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[g," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:m||h||!A,onClick:function(){function j(){return l("eject_fuel")}return j}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(C/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[N/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(N?D:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},65823:function(I,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ParticleAccelerator=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.assembled,m=l.power,i=l.strength,d=l.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function u(){return p("scan")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:m?"power-off":"times",content:m?"On":"Off",selected:m,disabled:!c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||i===0,onClick:function(){function u(){return p("remove_strength")}return u}(),mr:"4px"}),i,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||i===d,onClick:function(){function u(){return p("add_strength")}return u}(),ml:"4px"})]})]})})})})}return V}()},67572:function(I,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PdaPainter=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,V)})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function i(){return m("insert_pda")}return i}()})]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(d).map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function s(){return m("choose_pda",{selectedPda:u})}return s}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[u][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u})]},u)})})})})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.current_appearance,u=i.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function s(){return m("eject_pda")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function s(){return m("paint_pda")}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},12456:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.PersonalCrafting=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.busy,d=m.category,u=m.display_craftable_only,s=m.display_compact,N=m.prev_cat,C=m.next_cat,v=m.subcategory,h=m.prev_subcat,g=m.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:N,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),s?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function N(){return c("make",{make:s.ref})}return N}()}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)}),!i&&u.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),s.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:s.req_text,content:"Requirements",color:"transparent"}),s.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:s.tool_text,content:"Tools",color:"transparent"})]},s.name)})]})})},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.display_craftable_only,d=m.can_craft,u=m.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function N(){return c("make",{make:s.ref})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)}),!i&&u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:s.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:s.req_text}),s.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:s.tool_text})]})},s.name)})]})}},72143:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Photocopier=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:m.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function i(){return c("minus")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function i(){return c("add")}return i}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:m.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.copyitem&&!m.mob,content:m.copyitem?m.copyitem:m.mob?m.mob+"'s ass!":"document",onClick:function(){function i(){return c("removedocument")}return i}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!m.folder,content:m.folder?m.folder:"folder",onClick:function(){function i(){return c("removefolder")}return i}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!i&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:m.files.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:m.toner<=0,onClick:function(){function d(){return c("filecopy",{uid:i.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:i.uid})}return d}()})]})},i.name)})})}},47051:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=["tempKey"];function V(p,l){if(p==null)return{};var c={},m=Object.keys(p),i,d;for(d=0;d=0)&&(c[i]=p[i]);return c}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(l,c){var m=l.tempKey,i=V(l,f),d=k[m];if(!d)return null;var u=(0,a.useBackend)(c),s=u.data,N=u.act,C=s.currentTemp,v=d.label,h=d.icon,g=m===C,b=function(){N("setTemp",{temp:m})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:g,onClick:b},i,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},y=r.PoolController=function(){function p(l,c){for(var m=(0,a.useBackend)(c),i=m.data,d=i.emagged,u=i.currentTemp,s=k[u]||k.normal,N=s.label,C=s.color,v=[],h=0,g=Object.entries(k);h50?"battery-half":"battery-quarter")||C==="C"&&"bolt"||C==="F"&&"battery-full"||C==="M"&&"slash",color:C==="N"&&(v>50?"yellow":"red")||C==="C"&&"yellow"||C==="F"&&"green"||C==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=f.pureComponentHooks;var u=function(N){var C,v,h=N.status;switch(h){case"AOn":C=!0,v=!0;break;case"AOff":C=!0,v=!1;break;case"On":C=!1,v=!0;break;case"Off":C=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(C?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:C?void 0:"M",title:g})};u.defaultHooks=f.pureComponentHooks},15164:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(88488),f=n(22677),V=n(51185),k=n(69774),S=n(84947),y=r.PrisonerImplantManager=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.loginState,s=d.prisonerInfo,N=d.chemicalInfo,C=d.trackingInfo,v;if(!u.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,f.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:s.name?"eject":"id-card",selected:s.name,content:s.name?s.name:"-----",tooltip:s.name?"Eject ID":"Insert ID",onClick:function(){function g(){return i("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[s.points!==null?s.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:s.points===null,content:"Reset",onClick:function(){function g(){return i("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[s.goal!==null?s.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:s.goal===null,content:"Edit",onClick:function(){function g(){return(0,f.modalOpen)(c,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:s.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:C.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function b(){return(0,f.modalOpen)(c,"warn",{uid:g.uid})}return b}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:N.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume0?"envelope-open-text":"envelope",onClick:function(){function b(){return s("setScreen",{setScreen:6})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function b(){return s("setScreen",{setScreen:1})}return b}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function b(){return s("setScreen",{setScreen:2})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function b(){return s("setScreen",{setScreen:3})}return b}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function b(){return s("setScreen",{setScreen:9})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function b(){return s("setScreen",{setScreen:10})}return b}()})]})}),!!v&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function b(){return s("setScreen",{setScreen:8})}return b}()})})]})})},k=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.department,v=[],h;switch(i.purpose){case"ASSISTANCE":v=N.assist_dept,h="Request assistance from another department";break;case"SUPPLIES":v=N.supply_dept,h="Request supplies from another department";break;case"INFO":v=N.info_dept,h="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return s("setScreen",{setScreen:0})}return g}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v.filter(function(g){return g!==C}).map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function b(){return s("writeInput",{write:g,priority:"1"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function b(){return s("writeInput",{write:g,priority:"2"})}return b}()})]},g)})})})})},S=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C;switch(i.type){case"SUCCESS":C="Message sent successfully";break;case"FAIL":C="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function v(){return s("setScreen",{setScreen:0})}return v}()})})},y=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C,v;switch(i.type){case"MESSAGES":C=N.message_log,v="Message Log";break;case"SHIPPING":C=N.shipping_log,v="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return s("setScreen",{setScreen:0})}return h}()}),children:C.map(function(h){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[h.map(function(g,b){return(0,e.createVNode)(1,"div",null,g,0,null,b)}),(0,e.createVNode)(1,"hr")]},h)})})})},p=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.recipient,v=N.message,h=N.msgVerified,g=N.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return s("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:g})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function b(){return s("department",{department:C})}return b}()})})})],4)},l=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.message,v=N.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return s("setScreen",{setScreen:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function h(){return s("writeAnnouncement")}return h}()})],4),children:C})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[v?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(v&&C),onClick:function(){function h(){return s("sendAnnouncement")}return h}()})]})})],4)},c=function(i,d){var u=(0,a.useBackend)(d),s=u.act,N=u.data,C=N.shipDest,v=N.msgVerified,h=N.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return s("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:v})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(C&&v),onClick:function(){function g(){return s("printLabel")}return g}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:C===g?"Selected":"Select",selected:C===g,onClick:function(){function b(){return s("shipSelect",{shipSelect:g})}return b}()})},g)})})})})],4)}},51939:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),f=n(63752),V=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,f.RndNavbar),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,f.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,f.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:function(){function d(u){return u===V.LATHE||u===V.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,f.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,f.RndRoute,{menu:V.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,f.SettingsMenu)}return d}()}),i?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:i})})}):null]})})})}return y}()},50239:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.CurrentLevels=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(l,c){var m=l.name,i=l.level,d=l.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:m}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},m)})]})}return f}()},24183:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V="design",k="tech",S=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=N.act,h=C.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return v("updt_tech")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function g(){return v("clear_tech")}return g}()}),(0,e.createComponentVNode)(2,l)]})]}):null},y=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=N.act,h=C.disk_data;if(!h)return null;var g=h.name,b=h.lathe_types,B=h.materials,L=b.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g}),L?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:L}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return v("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return v("clear_design")}return w}()}),(0,e.createComponentVNode)(2,l)]})]})},p=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=C.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:f.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=N.act,h=C.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function g(){var b=h===k?"eject_tech":"eject_design";v(b)}return g}()}):null},c=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=C.disk_data,h=C.disk_type,g=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case V:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:g()})},m=function(u,s){var N=(0,a.useBackend)(s),C=N.data,v=N.act,h=C.disk_type,g=C.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,L=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?v("copy_tech",{id:L}):v("copy_design",{id:L})}return w}()})},L)})})})})},i=r.DataDiskMenu=function(){function d(u,s){var N=(0,a.useBackend)(s),C=N.data,v=C.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,m)}return h}()})],4):null}return d}()},72751:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.DeconstructionMenu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_item,c=y.linked_destroy;return c?l?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",l.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.origin_tech.map(function(m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+m.name,children:[m.object_level," ",m.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),m.current_level,(0,e.createTextVNode)(")")],0):null]},m.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function m(){p("deconstruct")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function m(){p("eject_item")}return m}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return f}()},51802:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheCategory=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.category,m=p.matching_designs,i=p.menu,d=i===4,u=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:m.map(function(s){var N=s.id,C=s.name,v=s.can_build,h=s.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:C,disabled:v<1,onClick:function(){function g(){return l(u,{id:N,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return l(u,{id:N,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return l(u,{id:N,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},N)})})]})}return V}()},47349:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheChemicalStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_chemicals,c=y.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function m(){var i=c?"disposeallP":"disposeallI";p(i)}return m}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(m){var i=m.volume,d=m.name,u=m.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+i+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function s(){var N=c?"disposeP":"disposeI";p(N,{id:u})}return s}()})},u)})})]})}return f}()},73492:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=r.LatheMainMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.data,l=y.act,c=p.menu,m=p.categories,i=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:i+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function u(){l("setCategory",{category:d})}return u}()})},d)})})]})}return V}()},87115:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterialStorage=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,l=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(c){var m=c.id,i=c.amount,d=c.name,u=function(){function v(h){var g=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(g,{id:m,amount:h})}return v}(),s=Math.floor(i/2e3),N=i<1,C=s===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:N?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",i," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",s," sheet",C,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return u(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return u("custom")}return v}()}),i>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return u(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return u(50)}return v}()})],0):null})]},m)})})})}return f}()},2345:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterials=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data,p=y.total_materials,l=y.max_materials,c=y.max_chemicals,m=y.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return f}()},45805:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(28823),a=n(91819),t=n(28078),o=n(63752),f=n(2971),V=n(51939),k=r.LatheMenu=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.data,m=c.menu,i=c.linked_lathe,d=c.linked_imprinter;return m===4&&!i?(0,e.createComponentVNode)(2,f.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):m===5&&!d?(0,e.createComponentVNode)(2,f.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CATEGORY,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_MAT_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return u}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:V.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function u(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return u}()})]})}return S}()},92497:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheSearch=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(l,c){return y("search",{to_search:c})}return p}()})})}return f}()},25242:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.disk_type,m=l.linked_destroy,i=l.linked_lathe,d=l.linked_imprinter,u=l.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:f.MENU.DISK,submenu:f.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,menu:f.MENU.DESTROY,submenu:f.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!i,menu:f.MENU.LATHE,submenu:f.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:f.MENU.IMPRINTER,submenu:f.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:f.MENU.SETTINGS,submenu:f.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(s){var N=s.name,C=s.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:C},N)})})]})}return k}()},29933:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.RndNavButton=function(){function f(V,k){var S=V.icon,y=V.children,p=V.disabled,l=V.content,c=(0,a.useBackend)(k),m=c.data,i=c.act,d=m.menu,u=m.submenu,s=d,N=u;return V.menu!==null&&V.menu!==void 0&&(s=V.menu),V.submenu!==null&&V.submenu!==void 0&&(N=V.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:p,onClick:function(){function C(){i("nav",{menu:s,submenu:N})}return C}(),children:y})}return f}()},59959:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(28823),a=n(63752),t=n(2971),o=n(51939),f=r.RndNavbar=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return V}()},28078:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(91819),a=r.RndRoute=function(){function t(o,f){var V=o.render,k=(0,e.useBackend)(f),S=k.data,y=S.menu,p=S.submenu,l=function(){function m(i,d){return i==null?!0:typeof i=="function"?i(d):i===d}return m}(),c=l(o.menu,y)&&l(o.submenu,p);return c?V():null}return t}()},59991:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),f=n(51939),V=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=p.act,m=l.sync,i=l.admin,d=l.linked_destroy,u=l.linked_lathe,s=l.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.MAIN,render:function(){function N(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!m,onClick:function(){function C(){c("sync")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:m,onClick:function(){function C(){c("togglesync")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!m,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function C(){c("togglesync")}return C}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!m,content:"Device Linkage Menu",icon:"link",menu:f.MENU.SETTINGS,submenu:f.SUBMENU.SETTINGS_DEVICES}),i===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function C(){return c("maxresearch")}return C}()}):null]})})}return N}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:f.SUBMENU.SETTINGS_DEVICES,render:function(){function N(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function C(){return c("find_device")}return C}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){return c("disconnect",{item:"destroy"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){c("disconnect",{item:"lathe"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function C(){return c("disconnect",{item:"imprinter"})}return C}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return N}()})]})}return k}()},63752:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(50239);r.CurrentLevels=e.CurrentLevels;var a=n(24183);r.DataDiskMenu=a.DataDiskMenu;var t=n(72751);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(51802);r.LatheCategory=o.LatheCategory;var f=n(47349);r.LatheChemicalStorage=f.LatheChemicalStorage;var V=n(73492);r.LatheMainMenu=V.LatheMainMenu;var k=n(2345);r.LatheMaterials=k.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(45805);r.LatheMenu=y.LatheMenu;var p=n(92497);r.LatheSearch=p.LatheSearch;var l=n(25242);r.MainMenu=l.MainMenu;var c=n(59959);r.RndNavbar=c.RndNavbar;var m=n(29933);r.RndNavButton=m.RndNavButton;var i=n(28078);r.RndRoute=i.RndRoute;var d=n(59991);r.SettingsMenu=d.SettingsMenu},73407:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(37843),V=function(y,p){var l=y/p;return l<=.2?"good":l<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.data,m=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m.map(function(i,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,f.capitalize)(i.name),children:i.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:i.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:V(i.brute_damage,i.max_damage),children:i.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:V(i.electronic_damage,i.max_damage),children:i.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:i.powered?"good":"bad",children:i.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:i.status?"good":"bad",children:i.status?"Yes":"No"})]})})]})},d)})})})}return S}()},48356:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.RoboticsControlConsole=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.can_hack,i=c.safety,d=c.show_lock_all,u=c.cyborgs,s=u===void 0?[]:u;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function N(){return l("arm",{})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:i,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function N(){return l("masslock",{})}return N}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:s,can_hack:m})]})})}return k}(),V=function(S,y){var p=S.cyborgs,l=S.can_hack,c=(0,a.useBackend)(y),m=c.act,i=c.data,d="Detonate";return i.detonate_cooldown>0&&(d+=" ("+i.detonate_cooldown+"s)"),p.length?p.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createFragment)([!!u.hackable&&!u.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function s(){return m("hackbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:u.locked_down?"unlock":"lock",color:u.locked_down?"good":"default",content:u.locked_down?"Release":"Lockdown",disabled:!i.auth,onClick:function(){function s(){return m("stopbot",{uid:u.uid})}return s}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!i.auth||i.detonate_cooldown>0,color:"bad",onClick:function(){function s(){return m("killbot",{uid:u.uid})}return s}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:u.status?"bad":u.locked_down?"average":"good",children:u.status?"Not Responding":u.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:u.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.health>50?"good":"bad",value:u.health/100})}),typeof u.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u.charge>30?"good":"bad",value:u.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:u.cell_capacity<3e4?"average":"good",children:u.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!u.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:u.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:u.synchronization?"default":"average",children:u.synchronization||"None"})})]})},u.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},33122:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Safe=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,N=i.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),u?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!u&&(0,e.createComponentVNode)(2,S)]})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.dial,u=i.open,s=i.locked,N=function(v,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:u||h&&!s,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+v,iconRight:h,onClick:function(){function g(){return m(h?"turnleft":"turnright",{num:v})}return g}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:s,icon:u?"lock":"lock-open",content:u?"Close":"Open",mb:"0.5rem",onClick:function(){function C(){return m("open")}return C}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[N(50),N(10),N(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[N(1,!0),N(10,!0),N(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(u,s){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function N(){return m("retrieve",{index:s+1})}return N}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:u.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),u.name]}),(0,e.createVNode)(1,"br")],4,u)})})},S=function(p,l){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},46748:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SatelliteControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.satellites,m=l.notice,i=l.meteor_shield,d=l.meteor_shield_coverage,u=l.meteor_shield_coverage_max,s=l.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[i&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s>=100?"good":"average",value:d,maxValue:u,children:[s," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:l.notice}),c.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+N.id,children:[N.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:N.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function C(){return p("toggle",{id:N.id})}return C}()})]},N.id)})]})})]})})}return V}()},46504:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),f=n(84947),V=n(99753),k=n(31068),S=r.SecureStorage=function(){function c(m,i){return(0,e.createComponentVNode)(2,f.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})})})})}return c}(),y=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=window.event?m.which:m.keyCode;if(s===k.KEY_ENTER){m.preventDefault(),u("keypad",{digit:"E"});return}if(s===k.KEY_ESCAPE){m.preventDefault(),u("keypad",{digit:"C"});return}if(s===k.KEY_BACKSPACE){m.preventDefault(),u("backspace");return}if(s>=k.KEY_0&&s<=k.KEY_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_0});return}if(s>=k.KEY_NUMPAD_0&&s<=k.KEY_NUMPAD_9){m.preventDefault(),u("keypad",{digit:s-k.KEY_NUMPAD_0});return}},p=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.locked,C=s.no_passcode,v=s.emagged,h=s.user_entered_code,g=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=C?"":N?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(L){return y(L,i)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+b]),height:"100%",children:v?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(B){return(0,e.createComponentVNode)(2,V.TableRow,{children:B.map(function(L){return(0,e.createComponentVNode)(2,V.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:L})},L)})},B[0])})})]})},l=function(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=m.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:N,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+N]),onClick:function(){function C(){return u("keypad",{digit:N})}return C}()})}},54529:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=n(84947),V=n(22677),k=n(51185),S=n(69774),y=n(76519),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(h,g){(0,V.modalOpen)(h,"edit",{field:g.edit,value:g.value})},c=r.SecurityRecords=function(){function v(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.loginState,T=L.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,i):T===2&&(A=(0,e.createComponentVNode)(2,s));else return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,f.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,V.ComplexModal),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,m),A]})})]})}return v}(),m=function(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.currentPage,T=L.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},i=function(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.records,T=(0,t.useLocalState)(g,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(g,"sortId","name"),O=E[0],R=E[1],M=(0,t.useLocalState)(g,"sortOrder",!0),D=M[0],j=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(U){return U.name+"|"+U.id+"|"+U.rank+"|"+U.fingerprint+"|"+U.status})).sort(function(U,W){var K=D?1:-1;return U[O].localeCompare(W[O])*K}).map(function(U){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[U.status],onClick:function(){function W(){return B("view",{uid_gen:U.uid_gen,uid_sec:U.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",U.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.status})]},U.id)})]})})})],4)},d=function(h,g){var b=(0,t.useLocalState)(g,"sortId","name"),B=b[0],L=b[1],w=(0,t.useLocalState)(g,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function O(){B===x?A(!T):(L(x),A(!0))}return O}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},u=function(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.isPrinting,T=(0,t.useLocalState)(g,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,V.modalOpen)(g,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(O,R){return x(R)}return E}()})})]})},s=function(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.isPrinting,T=L.general,A=L.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,N)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function O(){return l(g,x)}return O}()})]},E)})})})})}),(0,e.createComponentVNode)(2,C)],4)],0)},N=function(h,g){var b=(0,t.useBackend)(g),B=b.data,L=B.general;return!L||!L.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return l(g,w)}return A}()})]},T)})})}),!!L.has_photos&&L.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},C=function(h,g){var b=(0,t.useBackend)(g),B=b.act,L=b.data,w=L.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,V.modalOpen)(g,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},79315:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SeedExtractor=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.stored_seeds,i=c.vend_amount;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Stored Seeds",buttons:(0,e.createFragment)([(0,e.createTextVNode)("Set Amount to be Vended:\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:i,width:"40px",minValue:1,maxValue:25,stepPixelSize:3,onDrag:function(){function d(u,s){return l("set_vend_amount",{vend_amount:s})}return d}()})],4),children:m!=null&&m.length?(0,e.createComponentVNode)(2,V):"No Seeds"})})})})}return k}(),V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.stored_seeds;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Lifespan"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Endurance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Maturation"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Production"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Yield"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Potency"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stock"})]}),m.map(function(i,d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),i.name,i.variant?" ("+i.variant+")":""]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.lifespan}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.endurance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.maturation}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.production}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.yield}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.potency}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:["(",i.amount," Left)\xA0",(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Vend",icon:"arrow-circle-down",onClick:function(){function u(){return l("vend",{seedid:i.id,seedvariant:i.variant})}return u}()})]})]},d)})]})}},58578:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleConsole=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:l.status?l.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!l.shuttle&&(!!l.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:l.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function m(){return p("move",{move:c.id})}return m}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!l.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return V}()},11154:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.ShuttleManipulator=function(){function y(p,l){var c=(0,a.useLocalState)(l,"tabIndex",0),m=c[0],i=c[1],d=function(){function u(s){switch(s){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return u}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===0,onClick:function(){function u(){return i(0)}return u}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===1,onClick:function(){function u(){return i(1)}return u}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:m===2,onClick:function(){function u(){return i(2)}return u}(),icon:"tools",children:"Modification"},"Modification")]}),d(m)]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:u.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:u.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:u.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:u.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:u.id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function s(){return m("fast_travel",{id:u.id})}return s}()})]})]})},u.name)})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.templates_tabs,u=i.existing_shuttle,s=i.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(N){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===u.id,icon:"file",onClick:function(){function C(){return m("select_template_category",{cat:N})}return C}(),children:N},N)})}),!!u&&s[u.id].templates.map(function(N){return(0,e.createComponentVNode)(2,t.Section,{title:N.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[N.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:N.description}),N.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:N.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function C(){return m("select_template",{shuttle_id:N.shuttle_id})}return C}()})})]})},N.name)})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.existing_shuttle,u=i.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function s(){return m("jump_to",{type:"mobile",id:d.id})}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:u.description}),u.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:u.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function s(){return m("preview",{shuttle_id:u.shuttle_id})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function s(){return m("load",{shuttle_id:u.shuttle_id})}return s}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},80699:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function s(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.hasOccupant,B=b?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,u);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i)})]})})})}return s}(),l=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,d)],4)},c=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.occupant,B=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function L(){return h("auto_eject_dead_"+(B?"off":"on"))}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function L(){return h("ejectify")}return L}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[b.stat][0],children:V[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},m=function(N,C){var v=(0,t.useBackend)(C),h=v.data,g=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[b[1]]/100,ranges:S,children:(0,a.round)(g[b[1]],0)},B)},B)})})})},i=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.hasOccupant,B=g.isBeakerLoaded,L=g.beakerMaxSpace,w=g.beakerFreeSpace,T=g.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:w/L,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(N,C){var v=(0,t.useBackend)(C),h=v.act,g=v.data,b=g.occupant,B=g.chemicals,L=g.maxchem,w=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:L,value:T.occ_amount/L,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",L,"u"]}),w.map(function(O,R){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+O>L||b.stat===2,icon:"syringe",content:"Inject "+O+"u",title:"Inject "+O+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return h("chemical",{chemid:T.id,amount:O})}return M}()},R)})]})})},A)})})},u=function(N,C){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},42439:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SlotMachine=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;if(l.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return l.plays===1?c=l.plays+" player has tried their luck today!":c=l.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:l.working,content:l.working?"Spinning...":"Spin",onClick:function(){function m(){return p("spin")}return m}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return V}()},280:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Smartfridge=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.secure,m=l.can_dry,i=l.drying,d=l.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m?"Drying rack":"Contents",buttons:!!m&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:i?"power-off":"times",content:i?"On":"Off",selected:i,onClick:function(){function u(){return p("drying")}return u}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(u,s){return u.display_name.localeCompare(s.display_name)}).map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",u.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function s(){return p("vend",{index:u.vend,amount:1})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:u.quantity,step:1,stepPixelSize:3,onChange:function(){function s(N,C){return p("vend",{index:u.vend,amount:C})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function s(){return p("vend",{index:u.vend,amount:u.quantity})}return s}()})]})]},u)})]})]})})})}return V}()},47606:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(48300),f=n(84947),V=1e3,k=r.Smes=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.capacityPercent,d=m.capacity,u=m.charge,s=m.inputAttempt,N=m.inputting,C=m.inputLevel,v=m.inputLevelMax,h=m.inputAvailable,g=m.outputPowernet,b=m.outputAttempt,B=m.outputting,L=m.outputLevel,w=m.outputLevelMax,T=m.outputUsed,A=i>=100&&"good"||N&&"average"||"bad",x=B&&"good"||u>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:s?"sync-alt":"times",selected:s,onClick:function(){function E(){return c("tryinput")}return E}(),children:s?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:i>=100&&"Fully Charged"||N&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:C===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:C===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:C/V,fillValue:h/V,minValue:0,maxValue:v/V,step:5,stepPixelSize:4,format:function(){function E(O){return(0,o.formatPower)(O*V,1)}return E}(),onChange:function(){function E(O,R){return c("input",{target:R*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:C===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:C===v,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:g?B?"Sending":u>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:L===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:L===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:L/V,minValue:0,maxValue:w/V,step:5,stepPixelSize:4,format:function(){function E(O){return(0,o.formatPower)(O*V,1)}return E}(),onChange:function(){function E(O,R){return c("output",{target:R*V})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:L===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:L===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},66527:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SolarControl=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=0,m=1,i=2,d=l.generated,u=l.generated_ratio,s=l.tracking_state,N=l.tracking_rate,C=l.connected_panels,v=l.connected_tracker,h=l.cdir,g=l.direction,b=l.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:C>0?"good":"bad",children:C})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),s===m&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",N,"\xB0/h (",b,")"," "]}),s===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[s!==i&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(L,w){return p("cdir",{cdir:w})}return B}()}),s===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:s===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:s===m,onClick:function(){function B(){return p("track",{track:m})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:s===i,disabled:!v,onClick:function(){function B(){return p("track",{track:i})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[s===m&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:N,format:function(){function B(L){var w=Math.sign(L)>0?"+":"-";return w+Math.abs(L)}return B}(),onDrag:function(){function B(L,w){return p("tdir",{tdir:w})}return B}()}),s===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),s===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return V}()},27478:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpawnersMenu=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:m.name+" ("+m.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function i(){return p("jump",{ID:m.uids})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function i(){return p("spawn",{ID:m.uids})}return i}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:m.desc}),!!m.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:m.fluff}),!!m.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:m.important_info})]},m.name)})})})})}return V}()},15565:function(I,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SpecMenu=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),V=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("hemomancer")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("umbrae")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("gargantua")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function s(){return i("dantalion")}return s}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},31752:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return k}(),V=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.data,c=l.alarms||[],m=c.Fire||[],i=c.Atmosphere||[],d=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[m.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),m.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(u){return(0,e.createVNode)(1,"li","color-average",u,0,null,u)})],0)})],4)}return k}()},64323:function(I,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(28823),a=n(72026),t=n(98644),o=n(91819),f=n(2971),V=n(84947),k=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(k||{}),S=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data,s=u.future_station_traits,N=(0,o.useLocalState)(m,"selectedFutureTrait",null),C=N[0],v=N[1],h=Object.fromEntries(u.valid_station_traits.map(function(b){return[b.name,b.path]})),g=Object.keys(h);return g.sort(),(0,e.createComponentVNode)(2,f.Box,{children:[(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Dropdown,{displayText:!C&&"Select trait to add...",onSelected:v,options:g,selected:C,width:"100%"})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(C){var B=h[C],L=[B];if(s){var w,T=s.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;L=(w=L).concat.apply(w,T)}d("setup_future_traits",{station_traits:L})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,f.Divider),Array.isArray(s)?s.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:s.map(function(b){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(s,function(L){if(L.path!==b.path)return L.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return d("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,f.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,f.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return d("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,m){var i=(0,o.useBackend)(m),d=i.act,u=i.data;return u.current_traits.length>0?(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:u.current_traits.map(function(s){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:s.name}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Revert",color:"red",disabled:u.too_late_to_revert||!s.can_revert,tooltip:!s.can_revert&&"This trait is not revertable."||u.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function N(){return d("revert",{ref:s.ref})}return N}()})})]})},s.ref)})}):(0,e.createComponentVNode)(2,f.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function l(c,m){var i=(0,o.useLocalState)(m,"station_traits_tab",k.ViewStationTraits),d=i[0],u=i[1],s;switch(d){case k.SetupFutureStationTraits:s=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:s=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,V.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"eye",selected:d===k.ViewStationTraits,onClick:function(){function N(){return u(k.ViewStationTraits)}return N}(),children:"View"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"edit",selected:d===k.SetupFutureStationTraits,onClick:function(){function N(){return u(k.SetupFutureStationTraits)}return N}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,f.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,f.Divider),s]})]})})})}return l}()},57633:function(I,r,n){"use strict";r.__esModule=!0,r.SuitStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SuitStorage=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.uv;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"black",opacity:.85,children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,textAlign:"center",mb:1,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",spin:1,size:4,mb:4}),(0,e.createVNode)(1,"br"),"Disinfection of contents in progress..."]})})}),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,S)]})})})}return y}(),V=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.helmet,u=i.suit,s=i.magboots,N=i.mask,C=i.storage,v=i.open,h=i.locked;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored Items",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Start Disinfection Cycle",icon:"radiation",textAlign:"center",onClick:function(){function g(){return m("cook")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:h?"Unlock":"Lock",icon:h?"unlock":"lock",disabled:v,onClick:function(){function g(){return m("toggle_lock")}return g}()})],4),children:v&&!h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,k,{object:d,label:"Helmet",missingText:"helmet",eject:"dispense_helmet"}),(0,e.createComponentVNode)(2,k,{object:u,label:"Suit",missingText:"suit",eject:"dispense_suit"}),(0,e.createComponentVNode)(2,k,{object:s,label:"Boots",missingText:"boots",eject:"dispense_boots"}),(0,e.createComponentVNode)(2,k,{object:N,label:"Breathmask",missingText:"mask",eject:"dispense_mask"}),(0,e.createComponentVNode)(2,k,{object:C,label:"Storage",missingText:"storage item",eject:"dispense_storage"})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:h?"lock":"exclamation-circle",size:"5",mb:3}),(0,e.createVNode)(1,"br"),h?"The unit is locked.":"The unit is closed."]})})})},k=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=p.object,u=p.label,s=p.missingText,N=p.eject;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u,children:(0,e.createComponentVNode)(2,t.Box,{my:.5,children:d?(0,e.createComponentVNode)(2,t.Button,{my:-1,icon:"eject",content:d,onClick:function(){function C(){return m(N)}return C}()}):(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:["No ",s," found."]})})})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.open,u=i.locked;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:d?"Close Suit Storage Unit":"Open Suit Storage Unit",icon:d?"times-circle":"expand",color:d?"red":"green",disabled:u,textAlign:"center",onClick:function(){function s(){return m("toggle_open")}return s}()})})}},72217:function(I,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitor=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(58331),f=n(91819),V=n(2971),k=n(30381),S=n(84947),y=n(99753),p=r.SupermatterMonitor=function(){function i(d,u){var s=(0,f.useBackend)(u),N=s.act,C=s.data;return C.active===0?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m)}return i}(),l=function(d){return Math.log2(16+Math.max(0,d))-4},c=function(d,u){var s=(0,f.useBackend)(u),N=s.act,C=s.data,v=C.supermatters,h=v===void 0?[]:v;return(0,e.createComponentVNode)(2,S.Window,{width:450,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,title:"Detected Supermatters",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"sync",content:"Refresh",onClick:function(){function g(){return N("refresh")}return g}()}),children:(0,e.createComponentVNode)(2,V.Table,{children:h.map(function(g){return(0,e.createComponentVNode)(2,V.Table.Row,{children:[(0,e.createComponentVNode)(2,V.Table.Cell,{children:g.supermatter_id+". "+g.area_name}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,color:"label",children:"Integrity:"}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,width:"120px",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:g.integrity/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,V.Button,{content:"Details",onClick:function(){function b(){return N("view",{view:g.supermatter_id})}return b}()})})]},g.supermatter_id)})})})})})},m=function(d,u){var s=(0,f.useBackend)(u),N=s.act,C=s.data,v=C.active,h=C.SM_integrity,g=C.SM_power,b=C.SM_ambienttemp,B=C.SM_ambientpressure,L=(0,t.flow)([function(T){return T.filter(function(A){return A.amount>=.01})},(0,a.sortBy)(function(T){return-T.amount})])(C.gases||[]),w=Math.max.apply(Math,[1].concat(L.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:g,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(g)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(b),minValue:0,maxValue:l(1e4),ranges:{teal:[-1/0,l(80)],good:[l(80),l(373)],average:[l(373),l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,V.ProgressBar,{value:l(B),minValue:0,maxValue:l(5e4),ranges:{good:[l(1),l(300)],average:[-1/0,l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return N("back")}return T}()}),children:(0,e.createComponentVNode)(2,V.LabeledList,{children:L.map(function(T){return(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,V.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.SyndicateComputerSimple=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function m(){return p(c.buttonact)}return m}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(m){return(0,e.createComponentVNode)(2,t.Box,{children:m},m)})})]},c.title)})})})}return V}()},61225:function(I,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},V=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function m(){return l("check")}return m}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[f(c.cold_inlet_temp)," K,"," ",f(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[f(c.cold_outlet_temp)," K,"," ",f(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[f(c.hot_inlet_temp)," K,"," ",f(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[f(c.hot_outlet_temp)," K,"," ",f(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[f(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return k}()},97552:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TachyonArray=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.records,i=m===void 0?[]:m,d=c.explosion_target,u=c.toxins_tech,s=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!i.length||s,align:"center",onClick:function(){function N(){return l("print_logs")}return N}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!i.length,color:"bad",align:"center",onClick:function(){function N(){return l("delete_logs")}return N}()})]})]})}),i.length?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),V=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.records,i=m===void 0?[]:m;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function u(){return l("delete_record",{index:d.index})}return u}()})})]},d.index)})]})})})})}return k}()},33291:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Tank=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c;return l.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:l.connected?"check":"times",content:l.connected?"Internals On":"Internals Off",selected:l.connected,onClick:function(){function m(){return p("internals")}return m}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:l.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,tooltip:"Min",onClick:function(){function m(){return p("pressure",{pressure:"min"})}return m}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(){function m(i,d){return p("pressure",{pressure:d})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,tooltip:"Max",onClick:function(){function m(){return p("pressure",{pressure:"max"})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,tooltip:"Reset",onClick:function(){function m(){return p("pressure",{pressure:"reset"})}return m}()})]}),c]})})})})}return V}()},75480:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TankDispenser=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.o_tanks,m=l.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function i(){return p("oxygen")}return i}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+m+")",disabled:m===0,icon:"arrow-circle-down",onClick:function(){function i(){return p("plasma")}return i}()})})]})})})}return V}()},62291:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsCore=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.ion,s=(0,a.useLocalState)(c,"tabIndex",0),N=s[0],C=s[1],v=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[u===1&&(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:N===0,onClick:function(){function h(){return C(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:N===1,onClick:function(){function h(){return C(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:N===2,onClick:function(){function h(){return C(2)}return h}(),children:"User Filtering"},"FilterPage")]}),v(N)]})})}return p}(),V=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.active,s=d.sectors_available,N=d.nttc_toggle_jobs,C=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,b=d.nttc_setting_language,B=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function L(){return i("toggle_active")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:s})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"On":"Off",selected:N,icon:"user-tag",onClick:function(){function L(){return i("nttc_toggle_jobs")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"clipboard-list",onClick:function(){function L(){return i("nttc_toggle_job_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function L(){return i("nttc_toggle_name_color")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function L(){return i("nttc_toggle_command_bold")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function L(){return i("nttc_job_indicator_type")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function L(){return i("nttc_setting_language")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function L(){return i("network_id")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function L(){return i("import")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function L(){return i("export")}return L}()})]})],4)},S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.link_password,s=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"lock",onClick:function(){function N(){return i("change_password")}return N}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),s.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:N.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function C(){return i("unlink",{addr:N.addr})}return C}()})})]},N.addr)})]})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=m.data,u=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function s(){return i("add_filter")}return s}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),u.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function N(){return i("remove_filter",{user:s})}return N}()})})]},s)})]})})}},82905:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TcommsRelay=function(){function S(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.linked,d=m.active,u=m.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function s(){return c("toggle_active")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:u||"Unset",selected:u,icon:"server",onClick:function(){function s(){return c("network_id")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:i===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),i===1?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})})}return S}(),V=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.linked_core_id,d=m.linked_core_addr,u=m.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:u?"Yes":"No",icon:u?"eye-slash":"eye",selected:u,onClick:function(){function s(){return c("toggle_hidden_link")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function s(){return c("unlink")}return s}()})})]})})},k=function(y,p){var l=(0,a.useBackend)(p),c=l.act,m=l.data,i=m.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function u(){return c("link",{addr:d.addr})}return u}()})})]},d.addr)})]})})}},87692:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Teleporter=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.targetsTeleport?l.targetsTeleport:{},m=0,i=1,d=2,u=l.calibrated,s=l.calibrating,N=l.powerstation,C=l.regime,v=l.teleporterhub,h=l.target,g=l.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!N||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!N&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),N&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),N&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[C===m&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),C===i&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),C===d&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:C===i?"good":null,onClick:function(){function b(){return p("setregime",{regime:i})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:C===m?"good":null,onClick:function(){function b(){return p("setregime",{regime:m})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:C===d?"good":null,disabled:!g,onClick:function(){function b(){return p("setregime",{regime:d})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||u&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(u||s),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(g&&N&&v&&C===d)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return V}()},40759:function(I,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.TempGun=function(){function p(l,c){var m=(0,t.useBackend)(c),i=m.act,d=m.data,u=d.target_temperature,s=d.temperature,N=d.max_temp,C=d.min_temp;return(0,e.createComponentVNode)(2,f.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:C,maxValue:N,value:u,format:function(){function v(h){return(0,a.toFixed)(h,2)}return v}(),width:"50px",onDrag:function(){function v(h,g){return i("target_temperature",{target_temperature:g})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(s),bold:s>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(s,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(s),children:S(s)})})]})})})})}return p}(),k=function(l){return l<=-100?"blue":l<=0?"teal":l<=100?"green":l<=200?"orange":"red"},S=function(l){return l<=100-273.15?"High":l<=250-273.15?"Medium":l<=300-273.15?"Low":l<=400-273.15?"Medium":"High"},y=function(l){return l<=100-273.15?"red":l<=250-273.15?"orange":l<=300-273.15?"green":l<=400-273.15?"orange":"red"}},32369:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(91819),f=n(31068),V=n(2971),k=n(84947),S=r.sanitizeMultiline=function(){function c(m){return m.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(m){return m.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,N=s.max_length,C=s.message,v=C===void 0?"":C,h=s.multiline,g=s.placeholder,b=s.timeout,B=s.title,L=(0,o.useLocalState)(i,"input",g||""),w=L[0],T=L[1],A=function(){function O(R){if(R!==w){var M=h?S(R):y(R);T(M)}}return O}(),x=h||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function O(R){var M=window.event?R.which:R.keyCode;M===f.KEY_ENTER&&(!x||!R.shiftKey)&&u("submit",{entry:w}),M===f.KEY_ESCAPE&&u("cancel")}return O}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:A})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+N})})]})})})]})}return c}(),l=function(m,i){var d=(0,o.useBackend)(i),u=d.act,s=d.data,N=s.max_length,C=s.multiline,v=m.input,h=m.onType,g=C||v.length>=40;return(0,e.createComponentVNode)(2,V.TextArea,{autoFocus:!0,autoSelect:!0,height:C||v.length>=40?"100%":"1.8rem",maxLength:N,onEscape:function(){function b(){return u("cancel")}return b}(),onEnter:function(){function b(B){g&&B.shiftKey||(B.preventDefault(),u("submit",{entry:v}))}return b}(),onInput:function(){function b(B,L){return h(L)}return b}(),placeholder:"Type something...",value:v})}},82296:function(I,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=n(84947),V=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function m(i){return(0,a.toFixed)(i,2)}return m}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function m(i){return(0,a.toFixed)(i,2)}return m}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function m(){return l("power")}return m}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function m(){return l("cooling")}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function m(){return l("target",{target:c.min})}return m}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function m(i,d){return l("target",{target:d})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function m(){return l("target",{target:c.max})}return m}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function m(){return l("target",{target:c.initial})}return m}()})]})]})})]})})}return k}()},68488:function(I,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.TransferValve=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.tank_one,m=l.tank_two,i=l.attached_device,d=l.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!m,onClick:function(){function u(){return p("toggle")}return u}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!i,onClick:function(){function u(){return p("device")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function u(){return p("remove_device")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function u(){return p("tankone")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:m?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function u(){return p("tanktwo")}return u}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return V}()},26868:function(I,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=n(58331),V=r.TurbineComputer=function(){function y(p,l){var c=(0,a.useBackend)(l),m=c.act,i=c.data,d=i.compressor,u=i.compressor_broken,s=i.turbine,N=i.turbine_broken,C=i.online,v=!!(d&&!u&&s&&!N);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:C?"power-off":"times",content:C?"Online":"Offline",selected:C,disabled:!v,onClick:function(){function h(){return m("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return m("disconnect")}return h}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.compressor,d=m.compressor_broken,u=m.turbine,s=m.turbine_broken,N=m.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!i||d?"bad":"good",children:d?i?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!u||s?"bad":"good",children:s?u?"Offline":"Missing":"Online"})]})},S=function(p,l){var c=(0,a.useBackend)(l),m=c.data,i=m.rpm,d=m.temperature,u=m.power,s=m.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[i," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[u," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,f.toFixed)(s)+"%"})})]})}},30778:function(I,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(37843),f=n(91819),V=n(2971),k=n(84947),S=n(22677),y=function(C){switch(C){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function N(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=b.cart,L=(0,f.useLocalState)(v,"tabIndex",0),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Tabs,{children:[(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===0,onClick:function(){function O(){T(0),E("")}return O}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===1,onClick:function(){function O(){T(1),E("")}return O}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:w===2,onClick:function(){function O(){T(2),E("")}return O}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,V.Tabs.Tab,{onClick:function(){function O(){return g("lock")}return O}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:y(w)})]})})]})}return N}(),l=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=b.crystals,L=b.cats,w=(0,f.useLocalState)(v,"uplinkItems",L[0].items),T=w[0],A=w[1],x=(0,f.useLocalState)(v,"searchText",""),E=x[0],O=x[1],R=function(K,G){G===void 0&&(G="");var z=(0,o.createSearch)(G,function(Y){var $=Y.hijack_only===1?"|hijack":"";return Y.name+"|"+Y.desc+"|"+Y.cost+"tc"+$});return(0,t.flow)([(0,a.filter)(function(Y){return Y==null?void 0:Y.name}),G&&(0,a.filter)(z),(0,a.sortBy)(function(Y){return Y==null?void 0:Y.name})])(K)},M=function(K){if(O(K),K==="")return A(L[0].items);A(R(L.map(function(G){return G.items}).flat(),K))},D=(0,f.useLocalState)(v,"showDesc",1),j=D[0],U=D[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:j,onClick:function(){function W(){return U(!j)}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return g("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return g("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,V.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,G){M(G)}return W}(),value:E})})})}),(0,e.createComponentVNode)(2,V.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:E!==""?!1:W.items===T,onClick:function(){function K(){A(W.items),O("")}return K}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:T.map(function(W){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:W,showDecription:j},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},c=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=b.cart,L=b.crystals,w=b.cart_price,T=(0,f.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,V.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return g("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,V.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return g("purchase_cart")}return E}(),disabled:!B||w>L})],4),children:(0,e.createComponentVNode)(2,V.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,u,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,m)]})},m=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=b.cats,L=b.lucky_numbers;return(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,V.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return g("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,V.Stack,{wrap:!0,children:L.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,V.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,i,{grow:!0,i:w})},T)})})})})},i=function(C,v){var h=C.i,g=C.showDecription,b=g===void 0?1:g,B=C.buttons,L=B===void 0?(0,e.createComponentVNode)(2,d,{i:h}):B;return(0,e.createComponentVNode)(2,V.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:L,children:b?(0,e.createComponentVNode)(2,V.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},d=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=C.i,L=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,V.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return g("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,V.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return g("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>L})],4)},u=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=C.i,L=b.exploitable;return(0,e.createComponentVNode)(2,V.Stack,{children:[(0,e.createComponentVNode)(2,V.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return g("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,V.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return g("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,V.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return g("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},s=function(C,v){var h=(0,f.useBackend)(v),g=h.act,b=h.data,B=b.exploitable,L=(0,f.useLocalState)(v,"selectedRecord",B[0]),w=L[0],T=L[1],A=(0,f.useLocalState)(v,"searchText",""),x=A[0],E=A[1],O=function(D,j){j===void 0&&(j="");var U=(0,o.createSearch)(j,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),j&&(0,a.filter)(U),(0,a.sortBy)(function(W){return W.name})])(D)},R=O(B,x);return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(D,j){return E(j)}return M}()}),(0,e.createComponentVNode)(2,V.Tabs,{vertical:!0,children:R.map(function(M){return(0,e.createComponentVNode)(2,V.Tabs.Tab,{selected:M===w,onClick:function(){function D(){return T(M)}return D}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},7307:function(I,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=S.product,i=S.productStock,d=S.productImage,u=c.chargesMoney,s=c.user,N=c.usermoney,C=c.inserted_cash,v=c.vend_ready,h=c.inserted_item_name,g=!u||m.price===0,b="ERROR!",B="";g?(b="FREE",B="arrow-circle-down"):(b=m.price,B="shopping-cart");var L=!v||i===0||!g&&m.price>N&&m.price>C;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:m.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:i<=0&&"bad"||i<=m.max_amount/2&&"average"||"good",children:[i," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:L,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:m.inum})}return w}()})})]})},V=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.user,i=c.usermoney,d=c.inserted_cash,u=c.chargesMoney,s=c.product_records,N=s===void 0?[]:s,C=c.hidden_records,v=C===void 0?[]:C,h=c.stock,g=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,L=c.speaker,w=c.imagelist,T;return T=[].concat(N),c.extended_inventory&&(T=[].concat(T,v)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((u?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return l("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return l("change")}return A}()})})]}),children:m&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),","," ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[i,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:L?"check":"volume-mute",selected:L,content:"Speaker",textAlign:"left",onClick:function(){function A(){return l("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,f,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},25485:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VolumeMixer=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(m,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:i>0&&"0.5rem",children:m.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:m.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:m.volume,onChange:function(){function d(u,s){return p("volume",{channel:m.num,volume:s})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:m.num,volume:100})}return d}()})})})]})})],4,m.num)})})})})}return V}()},26564:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.VotePanel=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.remaining,m=l.question,i=l.choices,d=l.user_vote,u=l.counts,s=l.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:m,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),i.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:N,content:N+(s?" ("+(u[N]||0)+")":""),onClick:function(){function C(){return p("vote",{target:N})}return C}(),selected:N===d})},N)})]})})})}return V}()},496:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.Wires=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.wires||[],m=l.status||[],i=56+c.length*23+(status?0:15+m.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:i,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function u(){return p("cut",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function u(){return p("pulse",{wire:d.color})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function u(){return p("attach",{wire:d.color})}return u}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!m.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return V}()},28919:function(I,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),f=r.WizardApprenticeContract=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("fire")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("translocation")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("restoration")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("stealth")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function m(){return p("honk")}return m}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return V}()},14635:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971);function f(p,l){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=V(p))||l&&p&&typeof p.length=="number"){c&&(p=c);var m=0;return function(){return m>=p.length?{done:!0}:{done:!1,value:p[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(p,l){if(p){if(typeof p=="string")return k(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,l)}}function k(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,m=new Array(l);c0&&!b.includes(j.ref)&&!h.includes(j.ref),checked:h.includes(j.ref),onClick:function(){function U(){return B(j.ref)}return U}()},j.desc)})]})]})})}return p}()},29136:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=function(S,y,p,l,c){return Sl?"average":S>c?"bad":"good"},V=r.AtmosScan=function(){function k(S,y){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(l){return l.val!=="0"||l.entry==="Pressure"||l.entry==="Temperature"})(p).map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.entry,color:f(l.val,l.bad_low,l.poor_low,l.poor_high,l.bad_high),children:[l.val,l.units]},l.entry)})})})}return k}()},83326:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(k){return k+" unit"+(k===1?"":"s")},f=r.BeakerContents=function(){function V(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,l=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,m){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!l&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:l(c,m)})]},c.name)})]})}return V}();f.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},86041:function(I,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.BotStatus=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.locked,c=p.noaccess,m=p.maintpanel,i=p.on,d=p.autopatrol,u=p.canhack,s=p.emagged,N=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"On":"Off",selected:i,disabled:c,onClick:function(){function C(){return y("power")}return C}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function C(){return y("autopatrol")}return C}()})}),!!m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"bad":"good",children:s?"DISABLED!":"Enabled"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:s?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function C(){return y("hack")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!N,content:"AI Remote Control",disabled:c,onClick:function(){function C(){return y("disableremote")}return C}()})})]})})],4)}return f}()},22677:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(28823),a=n(91819),t=n(2971),o={},f=r.modalOpen=function(){function p(l,c,m){var i=(0,a.useBackend)(l),d=i.act,u=i.data,s=Object.assign(u.modal?u.modal.args:{},m||{});d("modal_open",{id:c,arguments:JSON.stringify(s)})}return p}(),V=r.modalRegisterBodyOverride=function(){function p(l,c){o[l]=c}return p}(),k=r.modalAnswer=function(){function p(l,c,m,i){var d=(0,a.useBackend)(l),u=d.act,s=d.data;if(s.modal){var N=Object.assign(s.modal.args||{},i||{});u("modal_answer",{id:c,answer:m,arguments:JSON.stringify(N)})}}return p}(),S=r.modalClose=function(){function p(l,c){var m=(0,a.useBackend)(l),i=m.act;i("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(l,c){var m=(0,a.useBackend)(c),i=m.data;if(i.modal){var d=i.modal,u=d.id,s=d.text,N=d.type,C,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,g,b="auto";if(o[u])h=o[u](i.modal,c);else if(N==="input"){var B=i.modal.value;C=function(){function w(T){return k(c,u,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:i.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(N==="choice"){var L=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:L,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,u,T)}return w}()}),b="initial"}else N==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:i.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(i.modal.value,10),onClick:function(){function A(){return k(c,u,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):N==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return k(c,u,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:i.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,u,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:l.maxWidth||window.innerWidth/2+"px",maxHeight:l.maxHeight||window.innerHeight/2+"px",onEnter:C,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[s&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:s}),o[u]&&v,h,g]})}}return p}()},692:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(37843),f=n(30381),V=f.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(m){return k.indexOf(m)!==-1?"green":"orange"},y=function(m){if(k.indexOf(m)!==-1)return!0},p=function(m){return m.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),m.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(i.rank),bold:y(i.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.active})]},i.name+i.rank)})]})},l=r.CrewManifest=function(){function c(m,i){var d=(0,a.useBackend)(i),u=d.act,s;if(m.data)s=m.data;else{var N=(0,a.useBackend)(i),C=N.data;s=C}var v=s,h=v.manifest,g=h.heads,b=h.sec,B=h.eng,L=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:V.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(x)})]})}return c}()},98658:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(28823),a=n(2971),t=n(91819),o=r.InputButtons=function(){function f(V,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,l=p.large_buttons,c=p.swapped_buttons,m=V.input,i=V.message,d=V.disabled,u=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function N(){return y("submit",{entry:m})}return N}(),textAlign:"center",tooltip:l&&i,disabled:d,width:!l&&6}),s=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!l,fluid:!!l,onClick:function(){function N(){return y("cancel")}return N}(),textAlign:"center",width:!l&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s}),!l&&i&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:i})}),l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u})]})}return f}()},29723:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.InterfaceLockNoticeBox=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=V.siliconUser,c=l===void 0?p.siliconUser:l,m=V.locked,i=m===void 0?p.locked:m,d=V.normallyLocked,u=d===void 0?p.normallyLocked:d,s=V.onLockStatusChange,N=s===void 0?function(){return y("lock")}:s,C=V.accessText,v=C===void 0?"an ID card":C;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:u?"red":"green",icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",onClick:function(){function h(){N&&N(!i)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",i?"unlock":"lock"," this interface."]})}return f}()},2146:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(28823),a=n(58331),t=n(2971),o=r.Loader=function(){function f(V){var k=V.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return f}()},51185:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginInfo=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",l.name," (",l.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!l.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return f}()},69774:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginScreen=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.loginState,c=p.isAI,m=p.isRobot,i=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){function d(){return y("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){function d(){return y("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return y("login_login",{login_type:2})}return d}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return y("login_login",{login_type:3})}return d}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return y("login_login",{login_type:4})}return d}()})]})})})}return f}()},48154:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(28823),a=n(2971),t=n(64635),o=r.Operating=function(){function f(V){var k=V.operating,S=V.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return f}();o.propTypes={operating:t.bool,name:t.string}},92149:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.Signaler=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,l=k.data,c=l.code,m=l.frequency,i=l.minFrequency,d=l.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:i/10,maxValue:d/10,value:m/10,format:function(){function u(s){return(0,a.toFixed)(s,1)}return u}(),width:"80px",onDrag:function(){function u(s,N){return p("freq",{freq:N})}return u}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function u(s,N){return p("code",{code:N})}return u}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function u(){return p("signal")}return u}()})]})}return V}()},79969:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(28823),a=n(91819),t=n(37843),o=n(90955),f=n(72026),V=n(2971),k=r.SimpleRecords=function(){function p(l,c){var m=l.data.records;return(0,e.createComponentVNode)(2,V.Box,{children:m?(0,e.createComponentVNode)(2,y,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return p}(),S=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.recordsList,u=(0,a.useLocalState)(c,"searchText",""),s=u[0],N=u[1],C=function(g,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(L){return L.Name});return(0,o.flow)([(0,f.filter)(function(L){return L==null?void 0:L.Name}),b&&(0,f.filter)(B),(0,f.sortBy)(function(L){return L.Name})])(d)},v=C(d,s);return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(g,b){return N(b)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,V.Box,{children:(0,e.createComponentVNode)(2,V.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function g(){return i("Records",{target:h.uid})}return g}()})},h)})]})},y=function(l,c){var m=(0,a.useBackend)(c),i=m.act,d=l.data.records,u=d.general,s=d.medical,N=d.security,C;switch(l.recordType){case"MED":C=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Medical Data",children:s?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Blood Type",children:s.blood_type}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Disabilities",children:s.mi_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.mi_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Disabilities",children:s.ma_dis}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.ma_dis_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Allergies",children:s.alg}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.alg_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Current Diseases",children:s.cdi}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:s.cdi_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:s.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":C=(0,e.createComponentVNode)(2,V.Section,{level:2,title:"Security Data",children:N?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Criminal Status",children:N.criminal}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Minor Crimes",children:N.mi_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:N.mi_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Major Crimes",children:N.ma_crim}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Details",children:N.ma_crim_d}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Important Notes",children:N.notes})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,V.Box,{children:[(0,e.createComponentVNode)(2,V.Section,{title:"General Data",children:u?(0,e.createComponentVNode)(2,V.LabeledList,{children:[(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Name",children:u.name}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Sex",children:u.sex}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Species",children:u.species}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Age",children:u.age}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Rank",children:u.rank}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Fingerprint",children:u.fingerprint}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Physical Status",children:u.p_stat}),(0,e.createComponentVNode)(2,V.LabeledList.Item,{label:"Mental Status",children:u.m_stat})]}):(0,e.createComponentVNode)(2,V.Box,{color:"red",bold:!0,children:"General record lost!"})}),C]})}},76519:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.TemporaryNotice=function(){function f(V,k){var S,y=(0,a.useBackend)(k),p=y.act,l=y.data,c=l.temp;if(c){var m=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},m,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function i(){return p("cleartemp")}return i}()})})]})})))}}return f}()},98638:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pai_atmosphere=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return f}()},56601:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_bioscan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.holder,m=l.dead,i=l.health,d=l.brute,u=l.oxy,s=l.tox,N=l.burn,C=l.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:m?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:i/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:N})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return f}()},48047:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_directives=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.master,m=l.dna,i=l.prime,d=l.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+m+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function u(){return y("getdna")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return f}()},4646:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_doorjack=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.cable,m=l.machine,i=l.inprogress,d=l.progress,u=l.aborted,s;m?s=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):s=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function C(){return y("cable")}return C}()});var N;return m&&(N=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),i?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function C(){return y("cancel")}return C}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function C(){return y("jack")}return C}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:s}),N]})}return f}()},94648:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_main_menu=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data,c=l.available_software,m=l.installed_software,i=l.installed_toggles,d=l.available_ram,u=l.emotions,s=l.current_emotion,N=l.speech_verbs,C=l.current_speech_verb,v=l.available_chassises,h=l.current_chassis,g=[];return m.map(function(b){return g[b.key]=b.name}),i.map(function(b){return g[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!g[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!g[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[m.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),m.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[i.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),i.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:u.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===s,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:N.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===C,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return f}()},45549:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pai_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return f}()},53434:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_medrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return f}()},7328:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(28823),a=n(91819),t=n(38467),o=r.pai_messenger=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return f}()},32036:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(28823),a=n(91819),t=n(58331),o=n(2971),f=r.pai_radio=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.app_data,m=c.minFrequency,i=c.maxFrequency,d=c.frequency,u=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:m/10,maxValue:i/10,value:d/10,format:function(){function s(N){return(0,t.toFixed)(N,1)}return s}(),onChange:function(){function s(N,C){return p("freq",{freq:C})}return s}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function s(){return p("freq",{freq:"145.9"})}return s}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function s(){return p("toggleBroadcast")}return s}(),selected:u,content:u?"Enabled":"Disabled"})})]})}return V}()},76020:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_secrecords=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return f}()},11562:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pai_signaler=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return f}()},29539:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pda_atmos_scan=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return f}()},92180:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_janitor=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,l=p.janitor,c=l.user_loc,m=l.mops,i=l.buckets,d=l.cleanbots,u=l.carts,s=l.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:m.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - ",N.status]},N)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:i.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - [",N.volume,"/",N.max_volume,"]"]},N)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - ",N.status]},N)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:u.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.dir,") - [",N.volume,"/",N.max_volume,"]"]},N)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:s.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[N.x,",",N.y," (",N.direction_from_user,")"]},N)})})]})}return f}()},57725:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),f=r.pda_main_menu=function(){function V(k,S){var y=(0,t.useBackend)(S),p=y.act,l=y.data,c=l.owner,m=l.ownjob,i=l.idInserted,d=l.categories,u=l.pai,s=l.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",m]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!i,onClick:function(){function N(){return p("UpdateInfo")}return N}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(N){var C=l.apps[N];return!C||!C.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N,children:C.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in s?v.notify_icon:v.icon,iconSpin:v.uid in s,color:v.uid in s?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},N)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!u&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function N(){return p("pai",{option:1})}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function N(){return p("pai",{option:2})}return N}()})]})})]})}return V}()},29978:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pda_manifest=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return f}()},20567:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_medical=function(){function f(V,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return f}()},38467:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),f=r.pda_messenger=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=c.data,d=i.active_convo;return d?(0,e.createComponentVNode)(2,V,{data:i}):(0,e.createComponentVNode)(2,k,{data:i})}return y}(),V=r.ActiveConversation=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convo_name,u=i.convo_job,s=i.messages,N=i.active_convo,C=(0,t.useLocalState)(l,"clipboardMode",!1),v=C[0],h=C[1],g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:N})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===N})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return v&&(g=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+u+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return m("Message",{target:N})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===N})(s).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function b(){return m("Clear",{option:"Convo"})}return b}()})})})}),g]})}return y}(),k=r.MessengerList=function(){function y(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=i.convopdas,u=i.pdas,s=i.charges,N=i.silent,C=i.toff,v=i.ringtone_list,h=i.ringtone,g=(0,t.useLocalState)(l,"searchTerm",""),b=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!N,icon:N?"volume-mute":"volume-up",onClick:function(){function L(){return m("Toggle Ringer")}return L}(),children:["Ringer: ",N?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:C?"bad":"green",icon:"power-off",onClick:function(){function L(){return m("Toggle Messenger")}return L}(),children:["Messenger: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function L(){return m("Clear",{option:"All"})}return L}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function L(){return m("Ringtone")}return L}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(v),onSelected:function(){function L(w){return m("Available_Ringtones",{selected_ringtone:w})}return L}()})})]})}),!C&&(0,e.createComponentVNode)(2,o.Box,{children:[!!s&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[s," charges left."]})})}),!d.length&&!u.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:b,onInput:function(){function L(w,T){B(T)}return L}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:i,pdas:d,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:u,msgAct:"Message",data:i,searchTerm:b})]})}return y}(),S=function(p,l){var c=(0,t.useBackend)(l),m=c.act,i=p.data,d=p.pdas,u=p.title,s=p.msgAct,N=p.searchTerm,C=i.charges,v=i.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:u,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:u,children:d.filter(function(h){return h.Name.toLowerCase().includes(N.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function g(){return m(s,{target:h.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!C&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function b(){return m("Messenger Plugin",{plugin:g.uid,target:h.uid})}return b}()},g.uid)})})]},h.uid)})})}},54291:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(96820),f=r.pda_mob_hunt=function(){function V(k,S){var y=(0,a.useBackend)(S),p=y.act,l=y.data,c=l.connected,m=l.wild_captures,i=l.no_collection,d=l.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function u(){return p("Disconnect")}return u}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function u(){return p("Reconnect")}return u}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:m})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!i&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function u(){return p("Prev")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function u(){return p("Next")}return u}()})]})}),children:i?"Your collection is empty! Go capture some Nano-Mobs!":d?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(d.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:d.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:d.type1}),d.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:d.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function u(){return p("Transfer")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function u(){return p("Release")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function u(){return p("Rename")}return u}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function u(){return p("Set_Trap")}return u}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return V}()},31112:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_mule=function(){function k(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,f)})}return k}(),f=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.bots;return i.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function u(){return l("control",{bot:d.uid})}return u}()})},d.Name)})},V=function(S,y){var p=(0,a.useBackend)(y),l=p.act,c=p.data,m=c.mulebot,i=m.botstatus,d=m.active,u=i.mode,s=i.loca,N=i.load,C=i.powr,v=i.dest,h=i.home,g=i.retn,b=i.pick,B;switch(u){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=u;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[u===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[C,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function L(){return l("target")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:N?N+" (Unload)":"None",disabled:!N,onClick:function(){function L(){return l("unload")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function L(){return l("set_pickup_type",{autopick:b?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function L(){return l("set_auto_return",{autoret:g?0:1})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function L(){return l("stop")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function L(){return l("start")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function L(){return l("home")}return L}()})]})]})]})}},2817:function(I,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),f=r.pda_nanobank=function(){function c(m,i){var d=(0,t.useBackend)(i),u=d.act,s=d.data,N=s.logged_in,C=s.owner_name,v=s.money;return N?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:C}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",v]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),V=function(m,i){var d=(0,t.useBackend)(i),u=d.data,s=(0,t.useLocalState)(i,"tabIndex",1),N=s[0],C=s[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,onClick:function(){function v(){return C(1)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,onClick:function(){function v(){return C(2)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===3,onClick:function(){function v(){return C(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(m,i){var d=(0,t.useLocalState)(i,"tabIndex",1),u=d[0],s=(0,t.useBackend)(i),N=s.data,C=N.db_status;if(!C)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(m,i){var d,u=(0,t.useBackend)(i),s=u.act,N=u.data,C=N.requests,v=N.available_accounts,h=N.money,g=(0,t.useLocalState)(i,"selectedAccount"),b=g[0],B=g[1],L=(0,t.useLocalState)(i,"transferAmount"),w=L[0],T=L[1],A=(0,t.useLocalState)(i,"searchText",""),x=A[0],E=A[1],O=[];return v.map(function(R){return O[R.name]=R.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function R(M,D){return E(D)}return R}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:v.filter((0,a.createSearch)(x,function(R){return R.name})).map(function(R){return R.name}),selected:(d=v.filter(function(R){return R.UID===b})[0])==null?void 0:d.name,onSelected:function(){function R(M){return B(O[M])}return R}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function R(M,D){return T(D)}return R}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:h0&&s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.OrderedBy,'"']},C)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:u>0&&d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:["#",C.Number,' - "',C.Name,'" for "',C.ApprovedBy,'"']},C)})})]})}return f}()},73786:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(33053),f=["className","theme","children"],V=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT From a65809e32f694c2ebd0f0a009eb5f208727b9b20 Mon Sep 17 00:00:00 2001 From: Luc <89928798+lewcc@users.noreply.github.com> Date: Sat, 16 Mar 2024 12:13:30 -0400 Subject: [PATCH 04/11] Adds an action button for succumbing, broadcasts last words (#24501) * succumb * Apply suggestions from code review Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * capitalize * clear the alert, and no more last words when you're already dead! * Update code/modules/mob/living/death.dm --------- Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --- code/_onclick/hud/alert.dm | 14 ++++++++++++++ .../mob/living/carbon/human/human_life.dm | 5 +++++ code/modules/mob/living/death.dm | 4 ++++ code/modules/mob/living/living.dm | 12 ++++++++++++ code/modules/mob/living/living_defines.dm | 3 +++ code/modules/mob/living/living_life.dm | 4 ++++ icons/mob/screen_alert.dmi | Bin 72344 -> 72947 bytes 7 files changed, 42 insertions(+) diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm index 66e7af873a3e..6cf0868dd45f 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -817,3 +817,17 @@ so as to remain in compliance with the most up-to-date laws." master = null screen_loc = "" return ..() + +/// Gives the player the option to succumb while in critical condition +/atom/movable/screen/alert/succumb + name = "Succumb" + desc = "Shuffle off this mortal coil." + icon_state = "succumb" + +/atom/movable/screen/alert/succumb/Click() + if(!usr || !usr.client) + return + var/mob/living/living_owner = usr + if(!istype(usr)) + return + living_owner.do_succumb(TRUE) diff --git a/code/modules/mob/living/carbon/human/human_life.dm b/code/modules/mob/living/carbon/human/human_life.dm index 83fba4605632..ab18b3fd2b8b 100644 --- a/code/modules/mob/living/carbon/human/human_life.dm +++ b/code/modules/mob/living/carbon/human/human_life.dm @@ -662,6 +662,11 @@ healthdoll.overlays -= (cached_overlays - new_overlays) healthdoll.cached_healthdoll_overlays = new_overlays + if(health <= HEALTH_THRESHOLD_CRIT) + throw_alert("succumb", /atom/movable/screen/alert/succumb) + else + clear_alert("succumb") + #undef BODYPART_PAIN_REDUCTION /mob/living/carbon/human/proc/handle_nutrition_alerts() //This is a terrible abuse of the alert system; something like this should be a HUD element diff --git a/code/modules/mob/living/death.dm b/code/modules/mob/living/death.dm index 211b99e16a6d..e071470af7d5 100644 --- a/code/modules/mob/living/death.dm +++ b/code/modules/mob/living/death.dm @@ -87,10 +87,14 @@ var/mob/M = P if((M.client?.prefs.toggles2 & PREFTOGGLE_2_DEATHMESSAGE) && (isobserver(M) || M.stat == DEAD)) to_chat(M, "[mind.name] has died at [area_name]. (JMP)") + if(last_words) + to_chat(M, "[p_their(TRUE)] last words were: \"[last_words]\"") if(SSticker && SSticker.mode) SSticker.mode.check_win() + clear_alert("succumb") + // u no we dead return TRUE diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 2f10c2ce2092..4f3933fffb2f 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -291,18 +291,30 @@ /mob/living/verb/succumb() set hidden = TRUE + // if you use the verb you better mean it + do_succumb(FALSE) + +/mob/living/proc/do_succumb(cancel_on_no_words) + if(stat == DEAD) + to_chat(src, "It's too late, you're already dead!") + return if(health >= HEALTH_THRESHOLD_CRIT) to_chat(src, "You are unable to succumb to death! This life continues!") return var/last_words = tgui_input_text(src, "Do you have any last words?", "Goodnight, Sweet Prince", encode = FALSE) + if(isnull(last_words) && cancel_on_no_words) + to_chat(src, "You decide you aren't quite ready to die.") + return + if(stat == DEAD) // cancel em out if they died while they had the message box up last_words = null if(!isnull(last_words)) create_log(MISC_LOG, "gave their final words, [last_words]") + src.last_words = last_words // sorry whisper(last_words) add_attack_logs(src, src, "[src] has [!isnull(last_words) ? "whispered [p_their()] final words" : "succumbed to death"] with [round(health, 0.1)] points of health!") diff --git a/code/modules/mob/living/living_defines.dm b/code/modules/mob/living/living_defines.dm index e58823c3d616..55324a2ef85b 100644 --- a/code/modules/mob/living/living_defines.dm +++ b/code/modules/mob/living/living_defines.dm @@ -97,6 +97,9 @@ var/datum/middleClickOverride/middleClickOverride = null + /// Famous last words -- if succumbing, what the user's last words were + var/last_words + /* Taste Vars */ diff --git a/code/modules/mob/living/living_life.dm b/code/modules/mob/living/living_life.dm index 59b1b5a7c043..f930e555c9e8 100644 --- a/code/modules/mob/living/living_life.dm +++ b/code/modules/mob/living/living_life.dm @@ -176,3 +176,7 @@ overlay_fullscreen("brute", /atom/movable/screen/fullscreen/brute, severity) else clear_fullscreen("brute") + if(health <= HEALTH_THRESHOLD_CRIT) + throw_alert("succumb", /atom/movable/screen/alert/succumb) + else + clear_alert("succumb") diff --git a/icons/mob/screen_alert.dmi b/icons/mob/screen_alert.dmi index e7f44d0f575c87e2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 17 00:00:00 2001 From: Marm <85680653+ItsMarmite@users.noreply.github.com> Date: Sat, 16 Mar 2024 16:14:43 +0000 Subject: [PATCH 05/11] Alters Command access to include weapons permits + Telebatons are now weapons (#24621) * beepsy nooo * Update code/game/objects/items/weapons/batons.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/game/objects/items/weapons/batons.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --- code/game/jobs/job/engineering_jobs.dm | 2 +- code/game/jobs/job/medical_jobs.dm | 3 ++- code/game/jobs/job/science_jobs.dm | 3 ++- code/game/jobs/job/supervisor.dm | 3 ++- code/game/jobs/job/support.dm | 1 + code/game/objects/items/weapons/batons.dm | 2 -- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/code/game/jobs/job/engineering_jobs.dm b/code/game/jobs/job/engineering_jobs.dm index 9895b80c5fc3..9b4741eb3b28 100644 --- a/code/game/jobs/job/engineering_jobs.dm +++ b/code/game/jobs/job/engineering_jobs.dm @@ -13,7 +13,7 @@ access = list(ACCESS_ENGINE, ACCESS_ENGINE_EQUIP, ACCESS_TECH_STORAGE, ACCESS_MAINT_TUNNELS, ACCESS_TELEPORTER, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_ATMOSPHERICS, ACCESS_EMERGENCY_STORAGE, ACCESS_EVA, ACCESS_HEADS, ACCESS_CONSTRUCTION, ACCESS_SEC_DOORS, - ACCESS_CE, ACCESS_RC_ANNOUNCE, ACCESS_KEYCARD_AUTH, ACCESS_TCOMSAT, ACCESS_MINISAT, ACCESS_MINERAL_STOREROOM) + ACCESS_CE, ACCESS_RC_ANNOUNCE, ACCESS_KEYCARD_AUTH, ACCESS_TCOMSAT, ACCESS_MINISAT, ACCESS_MINERAL_STOREROOM, ACCESS_WEAPONS) minimal_player_age = 21 exp_map = list(EXP_TYPE_ENGINEERING = 1200) blacklisted_disabilities = list(DISABILITY_FLAG_BLIND, DISABILITY_FLAG_DEAF, DISABILITY_FLAG_MUTE, DISABILITY_FLAG_DIZZY, DISABILITY_FLAG_NERVOUS, DISABILITY_FLAG_LISP) diff --git a/code/game/jobs/job/medical_jobs.dm b/code/game/jobs/job/medical_jobs.dm index fbfd3c7972bd..471025698839 100644 --- a/code/game/jobs/job/medical_jobs.dm +++ b/code/game/jobs/job/medical_jobs.dm @@ -26,7 +26,8 @@ ACCESS_RC_ANNOUNCE, ACCESS_SEC_DOORS, ACCESS_SURGERY, - ACCESS_VIROLOGY + ACCESS_VIROLOGY, + ACCESS_WEAPONS ) minimal_player_age = 21 exp_map = list(EXP_TYPE_MEDICAL = 1200) diff --git a/code/game/jobs/job/science_jobs.dm b/code/game/jobs/job/science_jobs.dm index e21cae1f2125..3ddf3c0e18f8 100644 --- a/code/game/jobs/job/science_jobs.dm +++ b/code/game/jobs/job/science_jobs.dm @@ -33,7 +33,8 @@ ACCESS_TOX_STORAGE, ACCESS_TOX, ACCESS_XENOARCH, - ACCESS_XENOBIOLOGY + ACCESS_XENOBIOLOGY, + ACCESS_WEAPONS ) minimal_player_age = 21 blacklisted_disabilities = list(DISABILITY_FLAG_BLIND, DISABILITY_FLAG_DEAF, DISABILITY_FLAG_MUTE, DISABILITY_FLAG_DIZZY) diff --git a/code/game/jobs/job/supervisor.dm b/code/game/jobs/job/supervisor.dm index 2e3d051bba72..48c6eacb159e 100644 --- a/code/game/jobs/job/supervisor.dm +++ b/code/game/jobs/job/supervisor.dm @@ -282,7 +282,8 @@ ACCESS_MAINT_TUNNELS, ACCESS_RC_ANNOUNCE, ACCESS_SEC_DOORS, - ACCESS_SECURITY + ACCESS_SECURITY, + ACCESS_WEAPONS ) blacklisted_disabilities = list(DISABILITY_FLAG_DEAF, DISABILITY_FLAG_MUTE, DISABILITY_FLAG_NERVOUS, DISABILITY_FLAG_LISP) outfit = /datum/outfit/job/judge diff --git a/code/game/jobs/job/support.dm b/code/game/jobs/job/support.dm index 3f23637747c5..b48d3cd33429 100644 --- a/code/game/jobs/job/support.dm +++ b/code/game/jobs/job/support.dm @@ -27,6 +27,7 @@ ACCESS_RC_ANNOUNCE, ACCESS_SEC_DOORS, ACCESS_SUPPLY_SHUTTLE, + ACCESS_WEAPONS ) blacklisted_disabilities = list(DISABILITY_FLAG_BLIND, DISABILITY_FLAG_DEAF, DISABILITY_FLAG_MUTE, DISABILITY_FLAG_DIZZY) outfit = /datum/outfit/job/qm diff --git a/code/game/objects/items/weapons/batons.dm b/code/game/objects/items/weapons/batons.dm index 08e01fc96b6d..9d777f125a0e 100644 --- a/code/game/objects/items/weapons/batons.dm +++ b/code/game/objects/items/weapons/batons.dm @@ -143,7 +143,6 @@ desc = "A cane with special engraving on it. It seems well suited for fending off assailants..." icon_state = "cane_nt" item_state = "cane_nt" - needs_permit = FALSE /obj/item/melee/classic_baton/ntcane/get_crutch_efficiency() return 2 @@ -158,7 +157,6 @@ item_state = null slot_flags = SLOT_FLAG_BELT w_class = WEIGHT_CLASS_SMALL - needs_permit = FALSE on = FALSE /// Force when concealed var/force_off = 0 From 426ee61c6047748a5f648021993a15eba92aeacd Mon Sep 17 00:00:00 2001 From: Adrer Date: Sat, 16 Mar 2024 17:15:03 +0100 Subject: [PATCH 06/11] Plasma cutter no longer requires a permit (#24622) Co-authored-by: adrermail@gmail.com --- code/modules/projectiles/guns/energy/special_eguns.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/projectiles/guns/energy/special_eguns.dm b/code/modules/projectiles/guns/energy/special_eguns.dm index f32812f922a8..50167d3573bc 100644 --- a/code/modules/projectiles/guns/energy/special_eguns.dm +++ b/code/modules/projectiles/guns/energy/special_eguns.dm @@ -158,6 +158,7 @@ item_state = "plasmacutter" modifystate = -1 origin_tech = "combat=1;materials=3;magnets=2;plasmatech=3;engineering=1" + needs_permit = FALSE ammo_type = list(/obj/item/ammo_casing/energy/plasma) fire_sound = 'sound/weapons/laser.ogg' usesound = 'sound/items/welder.ogg' From 1799458add9059dbe82db8cb7b0f30674739b0d5 Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Sat, 16 Mar 2024 17:15:43 +0100 Subject: [PATCH 07/11] Overrides the proc (#24635) --- .../traitor/contractor/datums/objective_contract.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/antagonists/traitor/contractor/datums/objective_contract.dm b/code/modules/antagonists/traitor/contractor/datums/objective_contract.dm index 112065566848..3544d65bfdf4 100644 --- a/code/modules/antagonists/traitor/contractor/datums/objective_contract.dm +++ b/code/modules/antagonists/traitor/contractor/datums/objective_contract.dm @@ -203,6 +203,9 @@ // We pick the target ourselves so we don't want the default behaviour. owning_contract.invalidate() +/datum/objective/contract/update_explanation_text() + return + /** * Assigns a randomly selected zone to the contract's selectable zone at the given difficulty. * From b067b8bb04e53f62e2e00cd802874a6e3563750f Mon Sep 17 00:00:00 2001 From: Charlie Nolan Date: Sat, 16 Mar 2024 09:17:53 -0700 Subject: [PATCH 08/11] Added a setting that gates random station traits on round start. (#24641) The setting is on by default, but disabled in the example config, to help test servers be more predictable. --- .../configuration/sections/gamemode_configuration.dm | 3 +++ code/controllers/subsystem/processing/SSstation.dm | 3 +++ config/example/config.toml | 2 ++ 3 files changed, 8 insertions(+) diff --git a/code/controllers/configuration/sections/gamemode_configuration.dm b/code/controllers/configuration/sections/gamemode_configuration.dm index d9be626883fa..1fc39b62217d 100644 --- a/code/controllers/configuration/sections/gamemode_configuration.dm +++ b/code/controllers/configuration/sections/gamemode_configuration.dm @@ -20,6 +20,8 @@ var/traitor_objectives_amount = 2 /// Enable player limits on gamemodes? Disabling can be useful for testing var/enable_gamemode_player_limit = TRUE + /// Should we generate random station traits at game start? + var/add_random_station_traits = TRUE // Dynamically setup a list of all gamemodes /datum/configuration_section/gamemode_configuration/New() @@ -51,6 +53,7 @@ CONFIG_LOAD_BOOL(prevent_mindshield_antags, data["prevent_mindshield_antag"]) CONFIG_LOAD_BOOL(disable_certain_round_early_end, data["disable_certain_round_early_end"]) CONFIG_LOAD_BOOL(enable_gamemode_player_limit, data["enable_gamemode_player_limit"]) + CONFIG_LOAD_BOOL(add_random_station_traits, data["add_random_station_traits"]) CONFIG_LOAD_NUM(traitor_objectives_amount, data["traitor_objective_amount"]) diff --git a/code/controllers/subsystem/processing/SSstation.dm b/code/controllers/subsystem/processing/SSstation.dm index 62901a31c1e7..f177094db081 100644 --- a/code/controllers/subsystem/processing/SSstation.dm +++ b/code/controllers/subsystem/processing/SSstation.dm @@ -34,6 +34,9 @@ PROCESSING_SUBSYSTEM_DEF(station) return + if(!GLOB.configuration.gamemode.add_random_station_traits) + return + for(var/i in subtypesof(/datum/station_trait)) var/datum/station_trait/trait_typepath = i diff --git a/config/example/config.toml b/config/example/config.toml index 53d5fd378219..bb01c052363a 100644 --- a/config/example/config.toml +++ b/config/example/config.toml @@ -254,6 +254,8 @@ disable_certain_round_early_end = false traitor_objective_amount = 2 # Enable player limits on gamemodes. Disable if testing enable_gamemode_player_limit = true +# Enable to generate zero or more random station traits on game start. +add_random_station_traits = false ################################################################ From d01d3e4f027ffa1dcae365b410107b67b1c45ff8 Mon Sep 17 00:00:00 2001 From: Charlie Nolan Date: Sat, 16 Mar 2024 09:24:46 -0700 Subject: [PATCH 09/11] Don't try to run queries when the database isn't enabled. (#24598) --- code/controllers/subsystem/SSdbcore.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/controllers/subsystem/SSdbcore.dm b/code/controllers/subsystem/SSdbcore.dm index 88624dc784ce..03d147e9aaca 100644 --- a/code/controllers/subsystem/SSdbcore.dm +++ b/code/controllers/subsystem/SSdbcore.dm @@ -382,6 +382,8 @@ SUBSYSTEM_DEF(dbcore) * * log_error - Do we want to log errors this creates? Disable this if you are running sensitive queries where you dont want errors logged in plain text (EG: Auth token stuff) */ /datum/db_query/proc/warn_execute(async = TRUE, log_error = TRUE) + if(!GLOB.configuration.database.enabled) + return . = Execute(async, log_error) if(!.) SSdbcore.total_errors++ From 08f9a8129b944af5bf7d3cfc5e106c1e19cf444d Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Sat, 16 Mar 2024 12:25:30 -0400 Subject: [PATCH 10/11] use directional helpers for ATMs (#24426) * use directional helpers for ATMs * updatepaths script PR number --------- Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --- _maps/map_files/Delta/delta.dmm | 112 ++++++++---------- _maps/map_files/MetaStation/MetaStation.dmm | 46 +++---- _maps/map_files/cerestation/cerestation.dmm | 100 +++++++--------- _maps/map_files/cyberiad/cyberiad.dmm | 44 ++----- _maps/map_files/generic/centcomm.dmm | 4 +- code/modules/economy/economy_machinery/atm.dm | 2 + icons/obj/terminals.dmi | Bin 36847 -> 34499 bytes .../Scripts/24426_atm_directionals.txt | 4 + tools/maplint/lints/directional_atms.yml | 9 ++ 9 files changed, 135 insertions(+), 186 deletions(-) create mode 100644 tools/UpdatePaths/Scripts/24426_atm_directionals.txt create mode 100644 tools/maplint/lints/directional_atms.yml diff --git a/_maps/map_files/Delta/delta.dmm b/_maps/map_files/Delta/delta.dmm index 9b7e943362f0..aa026618a9d5 100644 --- a/_maps/map_files/Delta/delta.dmm +++ b/_maps/map_files/Delta/delta.dmm @@ -1038,9 +1038,7 @@ /turf/simulated/floor/plasteel, /area/station/hallway/secondary/entry/east) "ait" = ( -/obj/machinery/economy/atm{ - pixel_y = -32 - }, +/obj/machinery/economy/atm/directional/south, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, @@ -60021,9 +60019,7 @@ /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 8 }, -/obj/machinery/economy/atm{ - pixel_x = 32 - }, +/obj/machinery/economy/atm/directional/east, /turf/simulated/floor/plasteel{ icon_state = "neutralcorner" }, @@ -64411,16 +64407,6 @@ /obj/item/crowbar/red, /turf/simulated/floor/plasteel/dark, /area/station/maintenance/apmaint) -"dSB" = ( -/obj/machinery/atmospherics/unary/portables_connector{ - dir = 8 - }, -/obj/machinery/atmospherics/portable/canister/air, -/obj/effect/turf_decal/stripes/line{ - dir = 10 - }, -/turf/simulated/floor/plasteel, -/area/station/hallway/secondary/exit) "dSD" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 4 @@ -67200,9 +67186,7 @@ /turf/simulated/floor/plasteel, /area/station/engineering/hardsuitstorage) "eEG" = ( -/obj/machinery/economy/atm{ - pixel_x = 32 - }, +/obj/machinery/economy/atm/directional/east, /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/structure/disposalpipe/segment, @@ -69068,9 +69052,7 @@ /turf/simulated/floor/plating, /area/station/maintenance/starboard) "fJp" = ( -/obj/machinery/economy/atm{ - pixel_y = 32 - }, +/obj/machinery/economy/atm/directional/north, /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, @@ -71544,6 +71526,16 @@ }, /turf/simulated/floor/plating, /area/station/command/office/rd) +"hli" = ( +/obj/machinery/atmospherics/unary/portables_connector{ + dir = 8 + }, +/obj/machinery/atmospherics/portable/canister/air, +/obj/effect/turf_decal/stripes/line{ + dir = 10 + }, +/turf/simulated/floor/plasteel, +/area/station/hallway/secondary/exit) "hly" = ( /obj/structure/table/wood, /turf/simulated/floor/plasteel/dark, @@ -74289,10 +74281,12 @@ icon_state = "bar" }, /area/station/service/kitchen) +"iVe" = ( +/obj/effect/spawner/airlock, +/turf/simulated/wall, +/area/station/service/chapel/office) "iVg" = ( -/obj/machinery/economy/atm{ - pixel_x = -32 - }, +/obj/machinery/economy/atm/directional/west, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "neutralcorner" @@ -76136,15 +76130,6 @@ icon_state = "whiteblue" }, /area/station/medical/storage) -"kdg" = ( -/obj/structure/sign/vacuum{ - pixel_x = -32 - }, -/obj/effect/turf_decal/stripes/line{ - dir = 8 - }, -/turf/simulated/floor/plasteel, -/area/station/hallway/secondary/exit) "kdm" = ( /obj/machinery/power/apc/critical/directional/north, /obj/machinery/firealarm{ @@ -76245,6 +76230,15 @@ }, /turf/simulated/floor/plasteel/dark, /area/station/medical/morgue) +"kfC" = ( +/obj/structure/sign/vacuum{ + pixel_x = -32 + }, +/obj/effect/turf_decal/stripes/line{ + dir = 8 + }, +/turf/simulated/floor/plasteel, +/area/station/hallway/secondary/exit) "kfT" = ( /obj/structure/cable{ d2 = 4; @@ -77036,9 +77030,7 @@ /turf/simulated/floor/plating, /area/station/maintenance/library) "kGm" = ( -/obj/machinery/economy/atm{ - pixel_x = -32 - }, +/obj/machinery/economy/atm/directional/west, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "neutralcorner" @@ -77686,9 +77678,7 @@ }, /area/station/service/hydroponics) "lbc" = ( -/obj/machinery/economy/atm{ - pixel_x = -32 - }, +/obj/machinery/economy/atm/directional/west, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/structure/cable{ @@ -91901,6 +91891,21 @@ }, /turf/simulated/floor/plasteel, /area/station/science/research) +"tjT" = ( +/obj/item/radio/intercom{ + name = "west bump"; + pixel_x = -28 + }, +/obj/machinery/newscaster{ + dir = 1; + name = "south bump"; + pixel_y = -28 + }, +/obj/effect/turf_decal/stripes/line{ + dir = 10 + }, +/turf/simulated/floor/plasteel, +/area/station/hallway/secondary/exit) "tkb" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 6 @@ -92940,21 +92945,6 @@ /obj/effect/spawner/window/reinforced/grilled, /turf/simulated/floor/plating, /area/station/security/prison/cell_block) -"tSp" = ( -/obj/item/radio/intercom{ - name = "west bump"; - pixel_x = -28 - }, -/obj/machinery/newscaster{ - dir = 1; - name = "south bump"; - pixel_y = -28 - }, -/obj/effect/turf_decal/stripes/line{ - dir = 10 - }, -/turf/simulated/floor/plasteel, -/area/station/hallway/secondary/exit) "tSt" = ( /obj/structure/table, /obj/item/reagent_containers/drinks/drinkingglass{ @@ -93598,10 +93588,6 @@ icon_state = "darkred" }, /area/station/security/processing) -"uil" = ( -/obj/effect/spawner/airlock, -/turf/simulated/wall, -/area/station/service/chapel/office) "uit" = ( /obj/machinery/atmospherics/unary/vent_pump{ dir = 4; @@ -137312,7 +137298,7 @@ dIx dIx dIx dIx -uil +iVe abj aaa aaa @@ -137823,7 +137809,7 @@ dPM dkq dSs dSP -dSB +hli dIH dIH dIH @@ -138081,8 +138067,8 @@ dKo dXJ dKo dUj -kdg -tSp +kfC +tjT dIH abj aaa diff --git a/_maps/map_files/MetaStation/MetaStation.dmm b/_maps/map_files/MetaStation/MetaStation.dmm index dcb957cffa33..bb7dfebbc117 100644 --- a/_maps/map_files/MetaStation/MetaStation.dmm +++ b/_maps/map_files/MetaStation/MetaStation.dmm @@ -10309,9 +10309,7 @@ /turf/simulated/floor/plating, /area/station/maintenance/fore) "aTi" = ( -/obj/machinery/economy/atm{ - pixel_y = -32 - }, +/obj/machinery/economy/atm/directional/south, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "redcorner" @@ -24421,9 +24419,7 @@ c_tag = "Arrivals - Middle Arm"; dir = 1 }, -/obj/machinery/economy/atm{ - pixel_y = -32 - }, +/obj/machinery/economy/atm/directional/south, /obj/effect/turf_decal/stripes/line, /turf/simulated/floor/plasteel, /area/station/hallway/secondary/entry/east) @@ -42135,9 +42131,7 @@ }, /area/station/medical/surgery/secondary) "cRq" = ( -/obj/machinery/economy/atm{ - pixel_y = 32 - }, +/obj/machinery/economy/atm/directional/north, /obj/effect/turf_decal/stripes/line{ dir = 1 }, @@ -67055,6 +67049,16 @@ icon_state = "whiteblue" }, /area/station/security/permabrig) +"mgu" = ( +/obj/effect/turf_decal/stripes/white/line{ + dir = 1 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, +/obj/machinery/atmospherics/pipe/simple/hidden/supply, +/turf/simulated/floor/plasteel{ + icon_state = "darkgrey" + }, +/area/station/science/toxins/launch) "mgZ" = ( /obj/machinery/atmospherics/air_sensor{ autolink_id = "air_sensor"; @@ -68569,16 +68573,6 @@ icon_state = "greenblue" }, /area/station/service/hydroponics) -"mQW" = ( -/obj/effect/turf_decal/stripes/white/line{ - dir = 1 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/atmospherics/pipe/simple/hidden/supply, -/turf/simulated/floor/plasteel{ - icon_state = "darkgrey" - }, -/area/station/science/toxins/launch) "mRj" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 9 @@ -73031,9 +73025,7 @@ }, /area/station/maintenance/asmaint) "oPi" = ( -/obj/machinery/economy/atm{ - pixel_x = -32 - }, +/obj/machinery/economy/atm/directional/west, /turf/simulated/floor/wood, /area/station/public/mrchangs) "oPO" = ( @@ -78974,9 +78966,7 @@ /turf/simulated/floor/engine, /area/station/engineering/control) "rmg" = ( -/obj/machinery/economy/atm{ - pixel_y = -32 - }, +/obj/machinery/economy/atm/directional/south, /obj/machinery/light, /turf/simulated/floor/plasteel{ icon_state = "neutralcorner" @@ -93428,9 +93418,7 @@ /area/station/service/chapel) "xKg" = ( /obj/structure/disposalpipe/segment, -/obj/machinery/economy/atm{ - pixel_x = 32 - }, +/obj/machinery/economy/atm/directional/east, /turf/simulated/floor/plasteel{ icon_state = "neutralcorner" }, @@ -128756,7 +128744,7 @@ wtQ jQZ eGn iXy -mQW +mgu tQW czx naq diff --git a/_maps/map_files/cerestation/cerestation.dmm b/_maps/map_files/cerestation/cerestation.dmm index 215350da6e95..4dab9f0ffa71 100644 --- a/_maps/map_files/cerestation/cerestation.dmm +++ b/_maps/map_files/cerestation/cerestation.dmm @@ -26883,9 +26883,7 @@ "cPP" = ( /obj/machinery/atmospherics/pipe/simple/hidden/supply, /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers, -/obj/machinery/economy/atm{ - pixel_x = -32 - }, +/obj/machinery/economy/atm/directional/west, /turf/simulated/floor/plasteel{ dir = 1; icon_state = "neutralcorner" @@ -33915,9 +33913,7 @@ d2 = 8; icon_state = "4-8" }, -/obj/machinery/economy/atm{ - pixel_y = -32 - }, +/obj/machinery/economy/atm/directional/south, /obj/structure/disposalpipe/segment{ dir = 4; color = "#954535" @@ -36276,6 +36272,27 @@ icon_state = "darkgreenfull" }, /area/station/service/hydroponics) +"eua" = ( +/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ + dir = 4 + }, +/obj/machinery/atmospherics/pipe/simple/hidden/supply{ + dir = 4 + }, +/obj/structure/disposalpipe/segment{ + dir = 4 + }, +/obj/structure/cable/orange{ + d1 = 4; + d2 = 8; + icon_state = "4-8" + }, +/obj/machinery/economy/atm/directional/north, +/turf/simulated/floor/plasteel{ + dir = 4; + icon_state = "bluecorner" + }, +/area/station/hallway/primary/fore/north) "eul" = ( /obj/structure/cable/orange{ d1 = 4; @@ -43313,9 +43330,7 @@ d2 = 8; icon_state = "4-8" }, -/obj/machinery/economy/atm{ - pixel_y = 32 - }, +/obj/machinery/economy/atm/directional/north, /obj/effect/spawner/random_spawners/dirt_often, /turf/simulated/floor/plasteel{ dir = 4; @@ -43964,14 +43979,6 @@ }, /turf/simulated/floor/plasteel, /area/station/hallway/secondary/exit) -"hiN" = ( -/obj/machinery/economy/atm{ - pixel_y = -32 - }, -/turf/simulated/floor/plasteel{ - icon_state = "arrival" - }, -/area/station/hallway/secondary/entry/west) "hiU" = ( /obj/structure/reagent_dispensers/water_cooler, /turf/simulated/floor/plasteel{ @@ -54619,9 +54626,7 @@ /obj/machinery/atmospherics/pipe/simple/hidden/supply{ dir = 4 }, -/obj/machinery/economy/atm{ - pixel_y = -32 - }, +/obj/machinery/economy/atm/directional/south, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "neutralcorner" @@ -54837,6 +54842,12 @@ }, /turf/simulated/floor/transparent/glass/reinforced, /area/station/maintenance/fsmaint) +"kEV" = ( +/obj/machinery/economy/atm/directional/south, +/turf/simulated/floor/plasteel{ + icon_state = "arrival" + }, +/area/station/hallway/secondary/entry/west) "kFj" = ( /obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ dir = 10 @@ -58619,15 +58630,6 @@ }, /turf/simulated/floor/plating, /area/station/maintenance/fsmaint) -"lME" = ( -/obj/machinery/economy/atm{ - pixel_y = -32 - }, -/turf/simulated/floor/plasteel{ - dir = 8; - icon_state = "yellowcorner" - }, -/area/station/hallway/primary/central/north) "lMW" = ( /obj/effect/decal/cleanable/dirt, /turf/simulated/floor/plating, @@ -63310,29 +63312,6 @@ icon_state = "whiteblue" }, /area/station/medical/medbay) -"nqK" = ( -/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{ - dir = 4 - }, -/obj/machinery/atmospherics/pipe/simple/hidden/supply{ - dir = 4 - }, -/obj/structure/disposalpipe/segment{ - dir = 4 - }, -/obj/structure/cable/orange{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/machinery/economy/atm{ - pixel_y = 32 - }, -/turf/simulated/floor/plasteel{ - dir = 4; - icon_state = "bluecorner" - }, -/area/station/hallway/primary/fore/north) "nqO" = ( /obj/machinery/atmospherics/unary/portables_connector{ dir = 4 @@ -75765,6 +75744,13 @@ icon_state = "whiteblue" }, /area/station/medical/surgery/primary) +"rqJ" = ( +/obj/machinery/economy/atm/directional/south, +/turf/simulated/floor/plasteel{ + dir = 8; + icon_state = "yellowcorner" + }, +/area/station/hallway/primary/central/north) "rrp" = ( /obj/machinery/shower{ pixel_y = 20 @@ -93069,9 +93055,7 @@ dir = 4; color = "#954535" }, -/obj/machinery/economy/atm{ - pixel_y = -32 - }, +/obj/machinery/economy/atm/directional/south, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "purplecorner" @@ -132406,7 +132390,7 @@ pKj aYJ eQQ bgf -lME +rqJ aYJ bhQ dcG @@ -134688,7 +134672,7 @@ dGA eDi djn dmA -nqK +eua vuY pwc fXC @@ -138140,7 +138124,7 @@ dbg sFj dbg eWu -hiN +kEV qHn rNK rNK diff --git a/_maps/map_files/cyberiad/cyberiad.dmm b/_maps/map_files/cyberiad/cyberiad.dmm index 73f571166df0..b86b572be3a1 100644 --- a/_maps/map_files/cyberiad/cyberiad.dmm +++ b/_maps/map_files/cyberiad/cyberiad.dmm @@ -18714,9 +18714,7 @@ dir = 4 }, /obj/machinery/light, -/obj/machinery/economy/atm{ - pixel_y = -32 - }, +/obj/machinery/economy/atm/directional/south, /turf/simulated/floor/plasteel{ icon_state = "neutralcorner" }, @@ -21815,9 +21813,7 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/ne) "bnu" = ( -/obj/machinery/economy/atm{ - pixel_x = 32 - }, +/obj/machinery/economy/atm/directional/east, /obj/machinery/camera{ c_tag = "Arrivals Hallway"; dir = 8 @@ -22881,9 +22877,7 @@ /turf/simulated/floor/wood, /area/station/service/bar) "bql" = ( -/obj/machinery/economy/atm{ - pixel_x = 32 - }, +/obj/machinery/economy/atm/directional/east, /turf/simulated/floor/plasteel, /area/station/hallway/primary/port/east) "bqm" = ( @@ -25163,9 +25157,7 @@ /turf/simulated/floor/carpet, /area/station/service/chapel) "bxE" = ( -/obj/machinery/economy/atm{ - pixel_x = 32 - }, +/obj/machinery/economy/atm/directional/east, /obj/item/kirbyplants, /turf/simulated/floor/wood, /area/station/service/bar) @@ -25858,9 +25850,7 @@ /turf/simulated/floor/wood, /area/station/public/vacant_office) "bAn" = ( -/obj/machinery/economy/atm{ - pixel_y = 32 - }, +/obj/machinery/economy/atm/directional/north, /turf/simulated/floor/plasteel, /area/station/hallway/primary/starboard/west) "bAo" = ( @@ -26128,9 +26118,7 @@ }, /area/station/supply/sorting) "bBq" = ( -/obj/machinery/economy/atm{ - pixel_x = -32 - }, +/obj/machinery/economy/atm/directional/west, /obj/structure/disposalpipe/segment, /turf/simulated/floor/plasteel{ dir = 8; @@ -27054,9 +27042,7 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/starboard/east) "bFo" = ( -/obj/machinery/economy/atm{ - pixel_y = 32 - }, +/obj/machinery/economy/atm/directional/north, /obj/structure/cable{ d1 = 4; d2 = 8; @@ -28436,9 +28422,7 @@ }, /area/station/medical/chemistry) "bJP" = ( -/obj/machinery/economy/atm{ - pixel_y = -32 - }, +/obj/machinery/economy/atm/directional/south, /turf/simulated/floor/plasteel{ icon_state = "whitehall" }, @@ -32421,9 +32405,7 @@ c_tag = "Cargo Bay Entrance"; dir = 4 }, -/obj/machinery/economy/atm{ - pixel_x = -32 - }, +/obj/machinery/economy/atm/directional/west, /turf/simulated/floor/plasteel{ dir = 8; icon_state = "browncorner" @@ -33489,9 +33471,7 @@ /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/se) "ccn" = ( -/obj/machinery/economy/atm{ - pixel_y = 32 - }, +/obj/machinery/economy/atm/directional/north, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/se) "cco" = ( @@ -51622,9 +51602,7 @@ }, /area/station/turret_protected/ai) "dnk" = ( -/obj/machinery/economy/atm{ - pixel_x = 32 - }, +/obj/machinery/economy/atm/directional/east, /turf/simulated/floor/plasteel, /area/station/hallway/primary/central/ne) "dnl" = ( diff --git a/_maps/map_files/generic/centcomm.dmm b/_maps/map_files/generic/centcomm.dmm index 0520abc37123..f49696832a9a 100644 --- a/_maps/map_files/generic/centcomm.dmm +++ b/_maps/map_files/generic/centcomm.dmm @@ -5440,9 +5440,7 @@ /turf/simulated/floor/plasteel, /area/centcom/evac) "sq" = ( -/obj/machinery/economy/atm{ - pixel_y = 32 - }, +/obj/machinery/economy/atm/directional/north, /obj/structure/chair/comfy/shuttle{ dir = 8 }, diff --git a/code/modules/economy/economy_machinery/atm.dm b/code/modules/economy/economy_machinery/atm.dm index d93e39c9e488..563375fd5a20 100644 --- a/code/modules/economy/economy_machinery/atm.dm +++ b/code/modules/economy/economy_machinery/atm.dm @@ -314,6 +314,8 @@ return . += "Yellow ooze is dripping from the card slot!" +MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/economy/atm, 30, 30) + #undef ATM_SCREEN_DEFAULT #undef ATM_SCREEN_SECURITY #undef ATM_SCREEN_TRANSFER diff --git a/icons/obj/terminals.dmi b/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Y&V)7h?HBg)Qot~A()Fnwn&>k?g%(v;5bBBSg_Zket6}d(c`s;CNJJOoS z?R*n5fWy(LfT<1%?Eb+wi$+|xlpv6yHRdi^v`$P248Q@i$fVlZ+J+qZPua@ebu_(_ z&Kl_Jt8kkNxflahJ3r6YVjMEE)Pr8`|NZ6@an46F6~_3TxLD7agk@3F8k$74nAOl9 z-h_p3ZOAzOIXiTC7@_9^s;@C8=od{H7yfXI5~BM*_GWw2cHRS@EP!(-8k3?o!~qrM znamFU;9v(@57YHTY!1Vh1f?oqDpP^BE&tg^MDcj;jMF#>6lCyp^>bP0l+XkKp6B=$ diff --git a/tools/UpdatePaths/Scripts/24426_atm_directionals.txt b/tools/UpdatePaths/Scripts/24426_atm_directionals.txt new file mode 100644 index 000000000000..9f4a41700a73 --- /dev/null +++ b/tools/UpdatePaths/Scripts/24426_atm_directionals.txt @@ -0,0 +1,4 @@ +/obj/machinery/economy/atm{pixel_x=-32} : /obj/machinery/economy/atm/directional/west +/obj/machinery/economy/atm{pixel_x=32} : /obj/machinery/economy/atm/directional/east +/obj/machinery/economy/atm{pixel_y=-32} : /obj/machinery/economy/atm/directional/south +/obj/machinery/economy/atm{pixel_y=32} : /obj/machinery/economy/atm/directional/north \ No newline at end of file diff --git a/tools/maplint/lints/directional_atms.yml b/tools/maplint/lints/directional_atms.yml new file mode 100644 index 000000000000..de734d3b085a --- /dev/null +++ b/tools/maplint/lints/directional_atms.yml @@ -0,0 +1,9 @@ +help: "Use the directional subtypes for this ATM." +/obj/machinery/economy/atm: + banned_variables: + - pixel_x + - pixel_y +=/obj/machinery/economy/atm: + banned: true +=/obj/machinery/economy/atm/directional: + banned: true From 0c25bf4a21a5e8504ce990b10c75bd2700c6b664 Mon Sep 17 00:00:00 2001 From: JimKil3 <47290811+JimKil3@users.noreply.github.com> Date: Sat, 16 Mar 2024 11:51:13 -0500 Subject: [PATCH 11/11] Cloning Rework (#21683) * guts the cloning pod * guts cloning console (except the tgui) * clonescanner, more gutting, linkage * reagent stuff * `cloning_data` datum * scanner inserting/removing * scanning logic * auto-linkage * `get_cloning_cost()` in its entirety * logic for which limbs to grow * RefreshParts() and insert_organ() * removes misinformation * robot parts * more organ insertion logic * more organ code :D * create_clone * beginnings of clone logic * cloning addl. stuff * cloning finalization * fixes CI? * whitespace fixes (regex edition) * ejection logic * Update code/game/machinery/clonepod.dm Co-authored-by: Nathan Winters <100448493+CinnamonSnowball@users.noreply.github.com> * stuff * stuff 2 * update_icon_state stuff * clonepod TGUI * organ fix yipee * cloning console UI beginnings * cloning console main menu * reagents stuff * beginning of damage tab * damages menu skeleton * aiuhgugh * splits up code * ejecting patient updates ui * contra reviews * temp fix for CI * tgui finished? (clueless) * Cloning :D it's done * manual & tweaks * more feedback! * cooldown because you can spam the fuck out if it otherwise and it's really loud for the ghost * oops * tweaks * edits EVERY MAP OH GOD * no link stuff * oops * Apply suggestions from code review Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Apply suggestions from code review (pt. 2) Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/machinery/computer/cloning.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * dgamer review * Update code/game/machinery/clonepod.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> * henri stuff * makes it compile * builds tgui (oops) * rebuilt bundle i guess? * not stale i swear * fixes * whoops * countdown stuff * sirryan review pt. 1 * sirryan review pt 2 * every day i'm shuffling (or something idk) * wasdfhdfg * sean clonepod.dm changes * update_icon(UPDATE_ICON_STATE) * Update code/game/machinery/clonescanner.dm Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * icon stuff * map weirdness * henri disks * unfucks maps? * cc maps * eject button * Apply suggestions from code review Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Update code/game/machinery/clonepod.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * dgamer review 2 * ourgh * dgamer review 3 * waaaah * fixes access locks * fixes Fixes the numbers issues (and no feet hopefully?) * re-adds feet * more fixes yipee * un-biomass * fixes ghost stuff * exploit fix --------- Co-authored-by: Nathan Winters <100448493+CinnamonSnowball@users.noreply.github.com> Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --- _maps/map_files/Delta/delta.dmm | 4 +- _maps/map_files/MetaStation/MetaStation.dmm | 4 +- _maps/map_files/cerestation/cerestation.dmm | 2 +- _maps/map_files/cyberiad/cyberiad.dmm | 4 +- _maps/map_files/generic/centcomm.dmm | 32 +- _maps/map_files/shuttles/admin_hospital.dmm | 6 +- code/__DEFINES/cloning_defines.dm | 13 + code/game/machinery/clonepod.dm | 1095 +++++++++-------- code/game/machinery/clonescanner.dm | 229 ++++ code/game/machinery/computer/cloning.dm | 676 +++++----- code/game/machinery/constructable_frame.dm | 6 +- code/game/machinery/cryopod.dm | 5 - code/game/objects/items/weapons/disks.dm | 67 + code/game/objects/items/weapons/manuals.dm | 109 +- code/modules/client/preference/character.dm | 22 +- code/modules/countdown/countdown.dm | 5 +- .../carbon/human/species/slimepeople.dm | 4 +- icons/obj/cryogenic2.dmi | Bin 86007 -> 80841 bytes paradise.dme | 2 + .../tgui/interfaces/CloningConsole.js | 829 +++++++------ tgui/packages/tgui/interfaces/CloningPod.js | 151 +++ tgui/public/tgui.bundle.js | 148 +-- 22 files changed, 1984 insertions(+), 1429 deletions(-) create mode 100644 code/__DEFINES/cloning_defines.dm create mode 100644 code/game/machinery/clonescanner.dm create mode 100644 tgui/packages/tgui/interfaces/CloningPod.js diff --git a/_maps/map_files/Delta/delta.dmm b/_maps/map_files/Delta/delta.dmm index aa026618a9d5..0791a5cfe9a1 100644 --- a/_maps/map_files/Delta/delta.dmm +++ b/_maps/map_files/Delta/delta.dmm @@ -81719,7 +81719,7 @@ /turf/simulated/floor/plasteel, /area/station/engineering/atmos) "nsl" = ( -/obj/machinery/clonepod/biomass, +/obj/machinery/clonepod, /turf/simulated/floor/plasteel{ icon_state = "freezerfloor" }, @@ -93376,7 +93376,7 @@ /turf/simulated/floor/plasteel/dark, /area/station/medical/surgery/observation) "udS" = ( -/obj/machinery/dna_scannernew, +/obj/machinery/clonescanner, /turf/simulated/floor/plasteel{ icon_state = "freezerfloor" }, diff --git a/_maps/map_files/MetaStation/MetaStation.dmm b/_maps/map_files/MetaStation/MetaStation.dmm index bb7dfebbc117..12991913a00b 100644 --- a/_maps/map_files/MetaStation/MetaStation.dmm +++ b/_maps/map_files/MetaStation/MetaStation.dmm @@ -37480,13 +37480,13 @@ /turf/simulated/floor/plating, /area/station/maintenance/medmaint) "cAj" = ( -/obj/machinery/clonepod/biomass, /obj/effect/turf_decal/stripes/line{ dir = 5 }, /obj/effect/turf_decal/siding{ dir = 5 }, +/obj/machinery/clonepod, /turf/simulated/floor/plasteel{ icon_state = "dark" }, @@ -39927,13 +39927,13 @@ /turf/simulated/floor/engine, /area/station/science/xenobiology) "cIR" = ( -/obj/machinery/dna_scannernew, /obj/effect/turf_decal/stripes/line{ dir = 1 }, /obj/effect/turf_decal/siding{ dir = 1 }, +/obj/machinery/clonescanner, /turf/simulated/floor/plasteel{ icon_state = "dark" }, diff --git a/_maps/map_files/cerestation/cerestation.dmm b/_maps/map_files/cerestation/cerestation.dmm index 4dab9f0ffa71..55eff70d42ab 100644 --- a/_maps/map_files/cerestation/cerestation.dmm +++ b/_maps/map_files/cerestation/cerestation.dmm @@ -41182,7 +41182,7 @@ network = list("SS13","CMO") }, /obj/machinery/light, -/obj/machinery/dna_scannernew, +/obj/machinery/clonescanner, /turf/simulated/floor/plasteel{ icon_state = "whiteblue" }, diff --git a/_maps/map_files/cyberiad/cyberiad.dmm b/_maps/map_files/cyberiad/cyberiad.dmm index b86b572be3a1..94c98dd40fa1 100644 --- a/_maps/map_files/cyberiad/cyberiad.dmm +++ b/_maps/map_files/cyberiad/cyberiad.dmm @@ -32052,7 +32052,6 @@ /turf/simulated/floor/plating, /area/station/science/genetics) "bXO" = ( -/obj/machinery/dna_scannernew, /obj/machinery/light{ dir = 4 }, @@ -32060,6 +32059,7 @@ layer = 4; pixel_x = 32 }, +/obj/machinery/clonescanner, /turf/simulated/floor/plasteel{ icon_state = "freezerfloor" }, @@ -32980,10 +32980,10 @@ }, /area/station/medical/cloning) "caN" = ( -/obj/machinery/clonepod/biomass, /obj/machinery/atmospherics/unary/vent_scrubber/on{ dir = 8 }, +/obj/machinery/clonepod, /turf/simulated/floor/plasteel{ icon_state = "freezerfloor" }, diff --git a/_maps/map_files/generic/centcomm.dmm b/_maps/map_files/generic/centcomm.dmm index f49696832a9a..17bdeb7a24e3 100644 --- a/_maps/map_files/generic/centcomm.dmm +++ b/_maps/map_files/generic/centcomm.dmm @@ -3854,7 +3854,6 @@ /area/abductor_ship) "mX" = ( /obj/machinery/door/window{ - dir = 2; name = "Cockpit"; req_access_txt = "150" }, @@ -4139,15 +4138,11 @@ /turf/simulated/floor/plasteel/freezer, /area/syndicate_mothership) "nN" = ( -/obj/effect/turf_decal/stripes/corner{ - dir = 2 - }, +/obj/effect/turf_decal/stripes/corner, /turf/simulated/floor/plating/airless, /area/syndicate_mothership) "nO" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 2 - }, +/obj/effect/turf_decal/stripes/line, /turf/simulated/floor/plating/airless, /area/syndicate_mothership) "nP" = ( @@ -4554,10 +4549,10 @@ /turf/simulated/floor/carpet/purple, /area/wizard_station) "pq" = ( -/obj/machinery/clonepod/upgraded, /obj/machinery/light/spot{ dir = 1 }, +/obj/machinery/clonepod/upgraded, /turf/simulated/floor/mineral/titanium, /area/shuttle/administration) "pr" = ( @@ -4908,8 +4903,7 @@ "qJ" = ( /obj/structure/table, /obj/machinery/door/window/classic/normal{ - name = "security checkpoint"; - dir = 2 + name = "security checkpoint" }, /turf/simulated/floor/carpet, /area/admin) @@ -5054,6 +5048,10 @@ /obj/structure/coatrack, /turf/simulated/floor/wood, /area/ghost_bar) +"rg" = ( +/obj/machinery/clonescanner, +/turf/simulated/floor/mineral/titanium, +/area/shuttle/administration) "rh" = ( /obj/machinery/economy/vending/liberationstation, /turf/simulated/floor/plasteel, @@ -7907,9 +7905,7 @@ /turf/simulated/floor/wood, /area/ghost_bar) "Cl" = ( -/obj/effect/turf_decal/stripes/line{ - dir = 2 - }, +/obj/effect/turf_decal/stripes/line, /turf/simulated/floor/plating/airless, /area/centcom/control) "Cm" = ( @@ -8480,7 +8476,6 @@ /area/holodeck/source_basketball) "Ej" = ( /obj/machinery/door/window/reinforced/normal{ - dir = 2; name = "Cell Door"; req_access_txt = "150" }, @@ -11381,9 +11376,7 @@ /obj/machinery/door/airlock/medical/glass{ name = "Escape Shuttle Infirmary" }, -/obj/effect/turf_decal/stripes/line{ - dir = 2 - }, +/obj/effect/turf_decal/stripes/line, /turf/simulated/floor/plasteel, /area/shuttle/escape) "Of" = ( @@ -14331,8 +14324,7 @@ "YJ" = ( /obj/machinery/door/window/classic/normal{ name = "Cell B"; - req_access_txt = "101"; - dir = 2 + req_access_txt = "101" }, /turf/simulated/floor/plasteel/dark, /area/admin) @@ -28037,7 +28029,7 @@ ZN ZN Ek ZG -km +rg lr lr Sx diff --git a/_maps/map_files/shuttles/admin_hospital.dmm b/_maps/map_files/shuttles/admin_hospital.dmm index 167f4c130b61..120d18bf47cf 100644 --- a/_maps/map_files/shuttles/admin_hospital.dmm +++ b/_maps/map_files/shuttles/admin_hospital.dmm @@ -97,7 +97,7 @@ /turf/simulated/floor/mineral/titanium, /area/shuttle/administration) "aB" = ( -/obj/machinery/dna_scannernew, +/obj/machinery/clonescanner, /turf/simulated/floor/mineral/titanium, /area/shuttle/administration) "aC" = ( @@ -585,12 +585,10 @@ /turf/simulated/floor/mineral/titanium, /area/shuttle/administration) "ip" = ( -/obj/machinery/clonepod{ - biomass = 300 - }, /obj/machinery/light{ dir = 1 }, +/obj/machinery/clonepod/upgraded, /turf/simulated/floor/mineral/titanium, /area/shuttle/administration) "kY" = ( diff --git a/code/__DEFINES/cloning_defines.dm b/code/__DEFINES/cloning_defines.dm new file mode 100644 index 000000000000..5b22af2017d8 --- /dev/null +++ b/code/__DEFINES/cloning_defines.dm @@ -0,0 +1,13 @@ +//Defines used to pass info between the scanner and cloning console +#define SCANNER_UNCLONEABLE_SPECIES "uncloneable" +#define SCANNER_HUSKED "husked" +#define SCANNER_ABSORBED "absorbed" +#define SCANNER_NO_SOUL "soulless" +#define SCANNER_BRAIN_ISSUE "suicide or missing brain" +#define SCANNER_MISC "miscellanious" +#define SCANNER_SUCCESSFUL "successful" + +//Defines used to make the return value of a get_cloning_cost() operation more readable +#define BIOMASS_COST 1 +#define SANGUINE_COST 2 +#define OSSEOUS_COST 3 diff --git a/code/game/machinery/clonepod.dm b/code/game/machinery/clonepod.dm index 05ee54d5e37d..d07e5f3ba598 100644 --- a/code/game/machinery/clonepod.dm +++ b/code/game/machinery/clonepod.dm @@ -1,23 +1,58 @@ -//Cloning revival method. -//The pod handles the actual cloning while the computer manages the clone profiles +/// Reagents that can be inserted into the cloning pod (and not deleted by it). +#define VALID_REAGENTS list("sanguine_reagent", "osseous_reagent") + +/// Meats that can be used as biomass for the cloner. +#define VALID_BIOMASSABLES list(/obj/item/food/snacks/meat, \ + /obj/item/food/snacks/monstermeat, \ + /obj/item/food/snacks/carpmeat, \ + /obj/item/food/snacks/salmonmeat, \ + /obj/item/food/snacks/catfishmeat, \ + /obj/item/food/snacks/tofurkey) + +/// Internal organs the cloner will *never* accept for insertion. +#define FORBIDDEN_INTERNAL_ORGANS list(/obj/item/organ/internal/regenerative_core, \ + /obj/item/organ/internal/alien, \ + /obj/item/organ/internal/body_egg, \ + /obj/item/organ/internal/adamantine_resonator, \ + /obj/item/organ/internal/vocal_cords/colossus, \ + /obj/item/organ/internal/cyberimp, \ + /obj/item/organ/internal/brain, \ + /obj/item/organ/internal/cell, \ + /obj/item/organ/internal/eyes/optical_sensor, \ + /obj/item/organ/internal/ears/microphone) + +/// Internal organs the cloner will only accept when fully upgraded. +#define UPGRADE_LOCKED_ORGANS list(/obj/item/organ/internal/heart/gland, \ + /obj/item/organ/internal/heart/demon, \ + /obj/item/organ/internal/heart/cursed, \ + /obj/item/organ/internal/eyes/cybernetic/eyesofgod) + +/// Limbs that the cloner won't accept. +#define FORBIDDEN_LIMBS list(/obj/item/organ/external/head, \ + /obj/item/organ/external/chest, \ + /obj/item/organ/external/groin) //you can't even get chests and groins normally + +/// A list of robot parts for use later, so that you can put them straight into the cloner from the exosuit fabricator. +#define ALLOWED_ROBOT_PARTS list(/obj/item/robot_parts/r_arm, \ + /obj/item/robot_parts/l_arm, \ + /obj/item/robot_parts/r_leg, \ + /obj/item/robot_parts/l_leg) + + +//Balance tweaks go here vv +#define BIOMASS_BASE_COST 250 +#define MEAT_BIOMASS_VALUE 50 +//These ones are also used for dead limbs/organs +#define BIOMASS_NEW_LIMB_COST 100 +#define BIOMASS_NEW_ORGAN_COST 100 +#define BIOMASS_BURN_WOUND_COST 25 +//These next 3 are for every point of the respective damage type +#define BIOMASS_BRUTE_COST 0.5 +#define BIOMASS_BURN_COST 0.5 +#define BIOMASS_ORGAN_DAMAGE_COST 1 +#define SANGUINE_IB_COST 5 +#define OSSEOUS_BONE_COST 5 -//Potential replacement for genetics revives or something I dunno (?) - -#define BIOMASS_BASE_AMOUNT 50 // How much biomass a BIOMASSABLE item gives the cloning pod - -// Not a comprehensive list: Further PRs should add appropriate items here. -// Meat as usual, monstermeat covers goliath, xeno, spider, bear meat -GLOBAL_LIST_INIT(cloner_biomass_items, list(\ -/obj/item/food/snacks/meat,\ -/obj/item/food/snacks/monstermeat, -/obj/item/food/snacks/carpmeat, -/obj/item/food/snacks/salmonmeat, -/obj/item/food/snacks/catfishmeat, -/obj/item/food/snacks/tofurkey)) - -#define MINIMUM_HEAL_LEVEL 40 -#define CLONE_INITIAL_DAMAGE 190 -#define BRAIN_INITIAL_DAMAGE 90 // our minds are too feeble for 190 /obj/machinery/clonepod anchored = TRUE @@ -26,367 +61,520 @@ GLOBAL_LIST_INIT(cloner_biomass_items, list(\ density = TRUE icon = 'icons/obj/cloning.dmi' icon_state = "pod_idle" - req_access = list(ACCESS_MEDICAL) //For premature unlocking. - - var/mob/living/carbon/human/occupant - var/heal_level //The clone is released once its health reaches this level. - var/obj/machinery/computer/cloning/connected = null //So we remember the connected clone machine. - var/mess = FALSE //Need to clean out it if it's full of exploded clone. - var/attempting = FALSE //One clone attempt at a time thanks - var/biomass = 0 - var/speed_coeff - var/efficiency - - var/datum/mind/clonemind - var/grab_ghost_when = CLONER_MATURE_CLONE - - var/obj/item/radio/Radio - var/radio_announce = TRUE + //So that chemicals can be loaded into the pod. + container_type = OPENCONTAINER + /// The linked cloning console. + var/obj/machinery/computer/cloning/console + + /// Whether or not we're cloning someone. + var/currently_cloning = FALSE + /// The progress on the current clone. + /// Measured from 0-100, where 0-20 has no body, and 21-100 gradually builds on limbs every 10. (r_arm, r_hand, l_arm, l_hand, r_leg, r_foot, l_leg, l_foot) + var/clone_progress = 0 + /// A list of limbs which have not yet been grown by the cloner. + var/list/limbs_to_grow = list() + /// The limb we're currently growing. + var/current_limb + /// Flavor text to show on examine. + var/desc_flavor = "It doesn't seem to be doing anything right now." + /// The countdown. var/obj/effect/countdown/clonepod/countdown - - var/list/brine_types = list("corazone", "perfluorodecalin", "epinephrine", "salglu_solution") //stops heart attacks, heart failure, shock, and keeps their O2 levels normal - var/list/missing_organs = list() - var/organs_number = 0 - - light_color = LIGHT_COLOR_PURE_GREEN - -/obj/machinery/clonepod/power_change() - ..() //we don't check return here because we also care about the BROKEN flag - if(!(stat & (BROKEN|NOPOWER))) - set_light(2) - else - set_light(0) - -/obj/machinery/clonepod/biomass - biomass = CLONER_BIOMASS_REQUIRED + /// Whether or not the interface is locked. + var/locked = TRUE + req_access = list(ACCESS_MEDICAL) + + /// The speed at which we clone. Each processing cycle will advance clone_progress by this amount. + var/speed_modifier = 1 + /// Our price modifier, multiplied with the base cost to get the true cost. + var/price_modifier = 1.1 + /// Our storage modifier, which is used in calculating organ and biomass storage. + var/storage_modifier = 1 + + /// The cloner's biomass count. + var/biomass = 0 + /// How many organs we can store. This is calculated with the storage modifier in RefreshParts(). + var/organ_storage_capacity + /// How much biomass we can store. This is calculated at the same time as organ_storage_capacity. + var/biomass_storage_capacity + + /// The cloning_data datum which shows the patient's current status. + var/datum/cloning_data/patient_data + /// The cloning_data datum which shows the status we want the patient to be in. + var/datum/cloning_data/desired_data + /// Our patient. + var/mob/living/carbon/human/clone /obj/machinery/clonepod/Initialize(mapload) . = ..() + countdown = new(src) - Radio = new /obj/item/radio(src) - Radio.listening = FALSE - Radio.config(list("Medical" = 0)) - Radio.follow_target = src + if(!console && mapload) + console = pick(locate(/obj/machinery/computer/cloning, orange(5, src))) //again, there shouldn't be multiple consoles, mappers component_parts = list() component_parts += new /obj/item/circuitboard/clonepod(null) component_parts += new /obj/item/stock_parts/scanning_module(null) - component_parts += new /obj/item/stock_parts/scanning_module(null) + component_parts += new /obj/item/stock_parts/matter_bin(null) component_parts += new /obj/item/stock_parts/manipulator(null) component_parts += new /obj/item/stock_parts/manipulator(null) component_parts += new /obj/item/stack/sheet/glass(null) component_parts += new /obj/item/stack/cable_coil(null, 1) component_parts += new /obj/item/stack/cable_coil(null, 1) - RefreshParts() + component_parts += new /obj/item/reagent_containers/glass/beaker/large(null) + create_reagents(100) update_icon() + RefreshParts() + +/obj/machinery/clonepod/biomass/Initialize(mapload) + . = ..() + biomass = biomass_storage_capacity /obj/machinery/clonepod/upgraded/Initialize(mapload) . = ..() component_parts = list() component_parts += new /obj/item/circuitboard/clonepod(null) - component_parts += new /obj/item/stock_parts/scanning_module/phasic(null) - component_parts += new /obj/item/stock_parts/scanning_module/phasic(null) - component_parts += new /obj/item/stock_parts/manipulator/pico(null) - component_parts += new /obj/item/stock_parts/manipulator/pico(null) + component_parts += new /obj/item/stock_parts/scanning_module/triphasic(null) + component_parts += new /obj/item/stock_parts/matter_bin/bluespace(null) + component_parts += new /obj/item/stock_parts/manipulator/femto(null) + component_parts += new /obj/item/stock_parts/manipulator/femto(null) component_parts += new /obj/item/stack/sheet/glass(null) component_parts += new /obj/item/stack/cable_coil(null, 1) component_parts += new /obj/item/stack/cable_coil(null, 1) - biomass = CLONER_BIOMASS_REQUIRED + component_parts += new /obj/item/reagent_containers/glass/beaker/bluespace(null) + + update_icon() RefreshParts() + biomass = biomass_storage_capacity + reagents.add_reagent("sanguine_reagent", 150) + reagents.add_reagent("osseous_reagent", 150) + /obj/machinery/clonepod/Destroy() - if(connected) - connected.pods -= src - connected = null - if(clonemind) - UnregisterSignal(clonemind.current, COMSIG_LIVING_REVIVE) - UnregisterSignal(clonemind, COMSIG_MIND_TRANSER_TO) - QDEL_NULL(Radio) - QDEL_NULL(countdown) - QDEL_LIST_CONTENTS(missing_organs) - return ..() + if(console) + console.pods -= src + if(console.selected_pod == src && length(console.pods) > 0) + console.selected_pod = pick(console.pods) + else + console.selected_pod = null -/obj/machinery/clonepod/RefreshParts() - speed_coeff = 0 - efficiency = 0 - for(var/obj/item/stock_parts/scanning_module/S in component_parts) - efficiency += S.rating - for(var/obj/item/stock_parts/manipulator/P in component_parts) - speed_coeff += P.rating - heal_level = max(min((efficiency * 15) + 10, 100), MINIMUM_HEAL_LEVEL) - -//The return of data disks?? Just for transferring between genetics machine/cloning machine. -//TO-DO: Make the genetics machine accept them. -/obj/item/disk/data - name = "Genetics Data Disk" - icon_state = "datadisk0" //Gosh I hope syndies don't mistake them for the nuke disk. - var/datum/dna2/record/buf = null - var/read_only = FALSE //Well,it's still a floppy disk - -/obj/item/disk/data/proc/initialize() - buf = new - buf.dna=new - -/obj/item/disk/data/Destroy() - QDEL_NULL(buf) + QDEL_NULL(countdown) return ..() -/obj/item/disk/data/demo - name = "data disk - 'God Emperor of Mankind'" - read_only = TRUE - -/obj/item/disk/data/demo/New() - ..() - initialize() - buf.types=DNA2_BUF_UE|DNA2_BUF_UI - //data = "066000033000000000AF00330660FF4DB002690" - //data = "0C80C80C80C80C80C8000000000000161FBDDEF" - Farmer Jeff - buf.dna.real_name="God Emperor of Mankind" - buf.dna.unique_enzymes = md5(buf.dna.real_name) - buf.dna.UI=list(0x066,0x000,0x033,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0xAF0,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x033,0x066,0x0FF,0x4DB,0x002,0x690,0x000,0x000,0x000,0x328,0x045,0x5FC,0x053,0x035,0x035,0x035) - //buf.dna.UI=list(0x0C8,0x0C8,0x0C8,0x0C8,0x0C8,0x0C8,0x000,0x000,0x000,0x000,0x161,0xFBD,0xDEF) // Farmer Jeff - if(buf.dna.UI.len != DNA_UI_LENGTH) //If there's a disparity b/w the dna UI string lengths, 0-fill the extra blocks in this UI. - for(var/i in buf.dna.UI.len to DNA_UI_LENGTH) - buf.dna.UI += 0x000 - buf.dna.ResetSE() - buf.dna.UpdateUI() - -/obj/item/disk/data/monkey - name = "data disk - 'Mr. Muggles'" - read_only = 1 - -/obj/item/disk/data/monkey/New() - ..() - initialize() - buf.types=DNA2_BUF_SE - var/list/new_SE=list(0x098,0x3E8,0x403,0x44C,0x39F,0x4B0,0x59D,0x514,0x5FC,0x578,0x5DC,0x640,0x6A4) - for(var/i=new_SE.len;i<=DNA_SE_LENGTH;i++) - new_SE += rand(1,1024) - buf.dna.SE=new_SE - buf.dna.SetSEValueRange(GLOB.monkeyblock,0xDAC, 0xFFF) - -//Disk stuff. -/obj/item/disk/data/New() - ..() - var/diskcolor = pick(0,1,2) - icon_state = "datadisk[diskcolor]" - -/obj/item/disk/data/attack_self(mob/user as mob) - read_only = !read_only - to_chat(user, "You flip the write-protect tab to [read_only ? "protected" : "unprotected"].") - -/obj/item/disk/data/examine(mob/user) - . = ..() - . += "The write-protect tab is set to [read_only ? "protected" : "unprotected"]." - -//Clonepod - /obj/machinery/clonepod/examine(mob/user) . = ..() - if(mess) - . += "It's filled with blood and viscera. You swear you can see it moving..." - if(HAS_TRAIT(src, TRAIT_CMAGGED)) - . += "Yellow ooze is dripping out of the synthmeat storage chamber..." - if(!occupant || stat & (NOPOWER|BROKEN)) - return - if(occupant && occupant.stat != DEAD) - . += "Current clone cycle is [round(get_completion())]% complete." - -/obj/machinery/clonepod/return_air() //non-reactive air - RETURN_TYPE(/datum/gas_mixture) - var/datum/gas_mixture/GM = new - GM.nitrogen = MOLES_O2STANDARD + MOLES_N2STANDARD - GM.temperature = T20C - return GM - -/obj/machinery/clonepod/proc/get_completion() - . = (100 * ((occupant.health + 100) / (heal_level + 100))) + . += "[desc_flavor]" + . += "[src] is currently [locked ? "locked" : "unlocked"], and can be [locked ? "unlocked" : "locked"] by swiping an ID with medical access on it." -/obj/machinery/clonepod/attack_ai(mob/user) - return examine(user) - -//Radio Announcement - -/obj/machinery/clonepod/proc/announce_radio_message(message) - if(radio_announce) - Radio.autosay(message, name, "Medical", list(z)) - -//Start growing a human clone in the pod! -/obj/machinery/clonepod/proc/growclone(datum/dna2/record/R) - if(mess || attempting || panel_open || stat & (NOPOWER|BROKEN)) - return 0 - clonemind = locate(R.mind) - if(!istype(clonemind)) //not a mind - return 0 - if(clonemind.current && clonemind.current.stat != DEAD) //mind is associated with a non-dead body - return 0 - if(clonemind.active) //somebody is using that mind - if(ckey(clonemind.key) != R.ckey) - return 0 - if(clonemind.suicided) // and stay out! - malfunction(go_easy = 0) - return -1 // Flush the record - else - // get_ghost() will fail if they're unable to reenter their body - var/mob/dead/observer/G = clonemind.get_ghost() - if(!G) - return 0 +/obj/machinery/clonepod/RefreshParts() + speed_modifier = 0 //Since we have multiple manipulators, which affect this modifier, we reset here so we can just use += later + for(var/obj/item/stock_parts/SP as anything in component_parts) + if(istype(SP, /obj/item/stock_parts/matter_bin/)) //Matter bins for storage modifier + storage_modifier = round(10 * (SP.rating / 2)) //5 at tier 1, 10 at tier 2, 15 at tier 3, 20 at tier 4 + else if(istype(SP, /obj/item/stock_parts/scanning_module)) //Scanning modules for price modifier (more accurate scans = more efficient) + price_modifier = -(SP.rating / 10) + 1.2 //1.1 at tier 1, 1 at tier 2, 0.9 at tier 3, 0.8 at tier 4 + else if(istype(SP, /obj/item/stock_parts/manipulator)) //Manipulators for speed modifier + speed_modifier += SP.rating / 2 //1 at tier 1, 2 at tier 2, et cetera - if(biomass >= CLONER_BIOMASS_REQUIRED) - biomass -= CLONER_BIOMASS_REQUIRED - else - return 0 + for(var/obj/item/reagent_containers/glass/beaker/B in component_parts) + if(istype(B)) + reagents.maximum_volume = B.volume //The default cloning pod has a large beaker in it, so 100u. - attempting = TRUE //One at a time!! - countdown.start() + organ_storage_capacity = storage_modifier + biomass_storage_capacity = storage_modifier * 400 - if(!R.dna) - R.dna = new /datum/dna() - var/mob/living/carbon/human/H = new /mob/living/carbon/human(src) - H.set_species(R.dna.species.type) - occupant = H - if(!R.dna.real_name) //to prevent null names - R.dna.real_name = H.real_name - else - H.real_name = R.dna.real_name - - H.dna = R.dna.Clone() - - for(var/datum/language/L in R.languages) - H.add_language(L.name) - - domutcheck(H, MUTCHK_FORCED) //Ensures species that get powers by the species proc handle_dna keep them - - if(efficiency > 2 && efficiency < 5 && prob(25)) - randmutb(H) - if(efficiency > 5 && prob(20)) - randmutg(H) - if(efficiency < 3 && prob(50)) - randmutb(H) - - H.dna.UpdateSE() - H.dna.UpdateUI() - - H.sync_organ_dna(1) // It's literally a fresh body as you can get, so all organs properly belong to it - H.UpdateAppearance() - - check_brine() - //Get the clone body ready - maim_clone(H) - H.Paralyse(8 SECONDS) - - if(grab_ghost_when == CLONER_FRESH_CLONE) - clonemind.transfer_to(H) - H.ckey = R.ckey - var/message - message += "Consciousness slowly creeps over you as your body regenerates.
    " - message += "So this is what cloning feels like?" - to_chat(H, "[message]") - else if(grab_ghost_when == CLONER_MATURE_CLONE) - to_chat(clonemind.current, "Your body is beginning to regenerate in a cloning pod. You will become conscious when it is complete.") - // Set up a soul link with the dead body to catch a revival - RegisterSignal(clonemind.current, COMSIG_LIVING_REVIVE, PROC_REF(occupant_got_revived)) - RegisterSignal(clonemind, COMSIG_MIND_TRANSER_TO, PROC_REF(occupant_got_revived)) - - SSblackbox.record_feedback("tally", "players_revived", 1, "cloned") - update_icon() +//Process +/obj/machinery/clonepod/process() - H.suiciding = FALSE - attempting = FALSE - return 1 + //Basically just isolate_reagent() with extra functionality. + for(var/datum/reagent/R as anything in reagents.reagent_list) + if(!(R.id in VALID_REAGENTS)) + reagents.del_reagent(R.id) + reagents.update_total() + atom_say("Purged contaminant from chemical storage.") -//Grow clones to maturity then kick them out. FREELOADERS -/obj/machinery/clonepod/process() + //Take in biomass. Mostly copied from the old cloning code var/show_message = FALSE for(var/obj/item/item in range(1, src)) - if(is_type_in_list(item, GLOB.cloner_biomass_items)) + if(is_type_in_list(item, VALID_BIOMASSABLES) && (biomass + MEAT_BIOMASS_VALUE <= biomass_storage_capacity)) qdel(item) - biomass += BIOMASS_BASE_AMOUNT + biomass += MEAT_BIOMASS_VALUE show_message = TRUE if(show_message) - visible_message("[src] sucks in and processes the nearby biomass.") + visible_message("[src] sucks in nearby biomass.") + + //If we're cloning someone, we haven't generated a list of limbs to grow, and we're before any possibility of not having any limbs left to grow. + if(currently_cloning && !length(limbs_to_grow) && clone_progress < 20) + for(var/limb in desired_data.limbs) + if(desired_data.limbs[limb][4]) + continue //We're not growing this limb, since in the desired state it's missing. + + var/obj/item/organ/external/limb_typepath = patient_data.genetic_info.species.has_limbs[limb]["path"] + if(initial(limb_typepath.vital)) //I hate everything about this check, but it sees if the current organ is vital.. + continue //and continues if it is, since the proc that creates the clone mob will make these all at once. + var/parent_organ_is_limb = FALSE + for(var/organ in desired_data.organs) + var/obj/item/organ/external/organ_typepath = patient_data.genetic_info.species.has_organ[organ] + if(!initial(organ_typepath.vital)) //I hate this check too. We loop through all the organs the cloned species should have. + continue //If it's not a vital organ, continue looping through the organs. + if(initial(organ_typepath.parent_organ) == limb) + parent_organ_is_limb = TRUE //If it's a vital organ, and belongs to the current limb, we don't want this limb. + break + if(parent_organ_is_limb) + continue + limbs_to_grow += limb //It's not supposed to be missing and it's not vital - so we'll be growing it. + limbs_to_grow = shuffle(limbs_to_grow) + + if(clone) + clone.Weaken(4 SECONDS) //make sure they stay in the pod + clone.setOxyLoss(0) //..and alive + + //Actually grow clones (this is the fun part of the proc!) + if(currently_cloning) + switch(clone_progress) + if(0 to 10) + desc_flavor = "You see muscle quickly growing on a ribcage and skull inside [src]." + clone_progress += speed_modifier + return + if(11 to 90) + clone_progress += speed_modifier + if(!clone) + create_clone() + return + + if(clone.cloneloss >= 25) + clone.adjustCloneLoss(-2) + return + + if(!current_limb) + if(!length(limbs_to_grow)) //if we meet all of the conditions to get here, there's nothing left to do in this section + desc_flavor = "You see muscle and fat filling out on [clone]'s body." + return + for(var/limb_candidate in limbs_to_grow) + var/obj/item/organ/external/LC = clone.dna.species.has_limbs[limb_candidate]["path"] + if(initial(LC.parent_organ) in limbs_to_grow) + continue //If we haven't grown this limb's parent organ yet, we don't want to grow it now. + current_limb = limb_candidate //If we have grown it, then we're good to grow it now. + limbs_to_grow -= limb_candidate + return + + if(!(current_limb in clone.bodyparts)) + if(get_stored_organ(current_limb)) + var/obj/item/organ/external/EO = get_stored_organ(current_limb) + desc_flavor = "You see [src] attaching \a [EO.name] to [clone]." + EO.replaced(clone) + current_limb = null + clone.adjustCloneLoss(4 / speed_modifier) + clone.regenerate_icons() + return + + var/list/EO_path = clone.dna.species.has_limbs[current_limb]["path"] + var/obj/item/organ/external/EO = new EO_path(clone) //Passing a human to a limb's New() proc automatically attaches it + desc_flavor = "You see \a [EO.name] growing from [clone]'[clone.p_s()] [EO.amputation_point]." + current_limb = null + EO.brute_dam = desired_data.limbs[EO.limb_name][1] + EO.burn_dam = desired_data.limbs[EO.limb_name][2] + EO.status = desired_data.limbs[EO.limb_name][3] + clone.adjustCloneLoss(4 / speed_modifier) + clone.regenerate_icons() + return + + if(91 to 100) + if(length(limbs_to_grow) || current_limb) //This shouldn't happen, but just in case.. (no more feetless clones) + clone_progress -= 5 + if(eject_clone()) + return + clone.adjustCloneLoss(-5 * speed_modifier) //rapidly heal clone damage + desc_flavor = "You see [src] finalizing the cloning process." + clone_progress += speed_modifier + return + if(101 to INFINITY) //this state can be reached with an upgraded cloner + if(eject_clone()) + return + clone.setCloneLoss(0) //get out of the pod!! + return + +//Clonepod-specific procs +//This just begins the cloning process. Called by the cloning console. +/obj/machinery/clonepod/proc/start_cloning(datum/cloning_data/_patient_data, datum/cloning_data/_desired_data) + currently_cloning = TRUE + patient_data = _patient_data + desired_data = _desired_data + + var/cost = get_cloning_cost(patient_data, desired_data) + biomass -= cost[BIOMASS_COST] + reagents.remove_reagent("sanguine_reagent", cost[SANGUINE_COST]) + reagents.remove_reagent("osseous_reagent", cost[OSSEOUS_COST]) - if(stat & NOPOWER) //Autoeject if power is lost - if(occupant) - go_out() - connected_message("Clone Ejected: Loss of power.") + countdown.start() + update_icon(UPDATE_ICON_STATE) - else if((occupant) && (occupant.loc == src)) - if((occupant.stat == DEAD) || (occupant.suiciding)) //Autoeject corpses and suiciding dudes. - announce_radio_message("The cloning of [occupant] has been aborted due to unrecoverable tissue failure.") - go_out() - connected_message("Clone Rejected: Deceased.") +//Creates the clone! Used once the cloning pod reaches ~10% completion. +/obj/machinery/clonepod/proc/create_clone() + clone = new /mob/living/carbon/human(src, patient_data.genetic_info.species.type) - else if(occupant.cloneloss > (100 - heal_level)) - occupant.Paralyse(8 SECONDS) + clone.change_dna(patient_data.genetic_info, FALSE, TRUE) - //Slowly get that clone healed and finished. - occupant.adjustCloneLoss(-((speed_coeff/2))) + for(var/obj/item/organ/external/limb in clone.bodyparts) + if(!(limb.limb_name in limbs_to_grow)) //if the limb was determined to be vital + var/active_limb_name = limb.limb_name + limb.brute_dam = desired_data.limbs[active_limb_name][1] + limb.burn_dam = desired_data.limbs[active_limb_name][2] + limb.status = desired_data.limbs[active_limb_name][3] + continue + if(length(limb.children)) //This doesn't support having a vital organ inside a child of a limb that itself isn't vital. + for(var/obj/item/organ/external/child in limb.children) //Future coders, if you want to add a species with its brain in its hand or something, change this + child.remove(null, TRUE) + qdel(child) + limb.remove(null, TRUE) + qdel(limb) + + for(var/candidate_for_insertion in desired_data.organs) + var/obj/item/organ/internal/organ = clone.get_int_organ(clone.dna.species.has_organ[candidate_for_insertion]) + + if(desired_data.organs[candidate_for_insertion][3]) //if it's desired for the organ to be missing.. + qdel(organ) //make it so + continue - // For human species that lack non-vital parts for some weird reason - if(organs_number) - var/progress = CLONE_INITIAL_DAMAGE - occupant.getCloneLoss() - progress += (100 - MINIMUM_HEAL_LEVEL) - var/milestone = CLONE_INITIAL_DAMAGE / organs_number -// Doing this as a #define so that the value can change when evaluated multiple times -#define INSTALLED (organs_number - length(missing_organs)) + if(get_stored_organ(candidate_for_insertion)) + var/obj/item/organ/internal/IO = get_stored_organ(candidate_for_insertion) + qdel(organ) + IO.insert(clone) //hotswap + continue - while((progress / milestone) > INSTALLED && length(missing_organs)) - var/obj/item/organ/I = pick_n_take(missing_organs) - I.safe_replace(occupant) + if(candidate_for_insertion == "heart") + continue //The heart is always cloned or replaced, remember? If we're not inserting a new one, we don't need to touch it. -#undef INSTALLED + organ.damage = desired_data.organs[candidate_for_insertion][1] + organ.status = desired_data.organs[candidate_for_insertion][2] - //Premature clones may have brain damage. - occupant.adjustBrainLoss(-((speed_coeff/20)*efficiency)) + clone.updatehealth("droplimb") + clone.regenerate_icons() - check_brine() + clone.set_heartattack(FALSE) //you are not allowed to die + clone.adjustCloneLoss(25) //to punish early ejects + clone.Weaken(4 SECONDS) - //Also heal some oxyloss ourselves just in case!! - occupant.adjustOxyLoss(-10) +//Ejects a clone. The force var ejects even if there's still clone damage. +/obj/machinery/clonepod/proc/eject_clone(force = FALSE) + if(!currently_cloning) + return FALSE - use_power(7500) //This might need tweaking. + if(!clone && force) + new /obj/effect/gibspawner/generic(get_turf(src), desired_data.genetic_info) + playsound(loc, 'sound/effects/splat.ogg', 50, TRUE) + reset_cloning() + return TRUE + + if(!clone.cloneloss) + clone.forceMove(loc) + var/datum/mind/patient_mind = locateUID(patient_data.mindUID) + patient_mind.transfer_to(clone) + clone.grab_ghost() + clone.update_revive() + to_chat(clone, "You remember nothing from the time that you were dead!") + to_chat(clone, "There's a bright flash of light, and you take your first breath once more.") + + reset_cloning() + return TRUE + + if(!force) + return FALSE - else if((occupant.cloneloss <= (100 - heal_level))) - connected_message("Cloning Process Complete.") - announce_radio_message("The cloning cycle of [occupant] is complete.") - go_out() + clone.forceMove(loc) + new /obj/effect/gibspawner/generic(get_turf(src), clone) + playsound(loc, 'sound/effects/splat.ogg', 50, TRUE) - else if((!occupant) || (occupant.loc != src)) - occupant = null - update_icon() - use_power(200) + var/datum/mind/patient_mind = locateUID(patient_data.mindUID) + patient_mind.transfer_to(clone) + clone.grab_ghost() + clone.update_revive() + to_chat(clone, "You remember nothing from the time that you were dead!") + to_chat(clone, "You're ripped out of blissful oblivion! You feel like shit.") -//Let's unlock this early I guess. Might be too early, needs tweaking. -/obj/machinery/clonepod/attackby(obj/item/I, mob/user, params) - if(exchange_parts(user, I)) + reset_cloning() + return TRUE + +//Helper proc for the above +/obj/machinery/clonepod/proc/reset_cloning() + currently_cloning = FALSE + clone = null + patient_data = null + desired_data = null + clone_progress = 0 + desc_flavor = initial(desc_flavor) + update_icon(UPDATE_ICON_STATE) + countdown.stop() + +//This gets the cost of cloning, in a list with the form (biomass, sanguine reagent, osseous reagent). +/obj/machinery/clonepod/proc/get_cloning_cost(datum/cloning_data/_patient_data, datum/cloning_data/_desired_data) + var/datum/cloning_data/p_data = _patient_data + var/datum/cloning_data/d_data = _desired_data + //Biomass, sanguine reagent, osseous reagent + var/list/cloning_cost = list((price_modifier * BIOMASS_BASE_COST), 0, 0) + + if(!istype(p_data) || !istype(d_data)) + return //this shouldn't happen but whatever + + for(var/limb in p_data.limbs) + + if(get_stored_organ(limb)) + continue //if we have a stored organ, we'll be replacing it - so no biomass or sanguine/osseous cost + + var/list/patient_limb_info = p_data.limbs[limb] + var/patient_limb_status = patient_limb_info[3] + + var/list/desired_limb_info = d_data.limbs[limb] + var/desired_limb_status = desired_limb_info[3] + + if(p_data.limbs[limb][4] && !d_data.limbs[limb][4]) //if the limb is missing on the patient and we want it to not be + cloning_cost[1] += BIOMASS_NEW_LIMB_COST * price_modifier + continue //then continue - since we're replacing the limb, we don't need to fix its damages + + if((patient_limb_status & ORGAN_DEAD) && !(desired_limb_status & ORGAN_DEAD)) //if the patient's limb is dead and we don't want it to be + cloning_cost[1] += BIOMASS_NEW_LIMB_COST * price_modifier + continue //as above + + var/brute_damage_diff = patient_limb_info[1] - desired_limb_info[1] + cloning_cost[1] += BIOMASS_BRUTE_COST * brute_damage_diff * price_modifier + + var/burn_damage_diff = patient_limb_info[2] - desired_limb_info[2] + cloning_cost[1] += BIOMASS_BURN_COST * burn_damage_diff * price_modifier + + if((patient_limb_status & ORGAN_BURNT) && !(desired_limb_status & ORGAN_BURNT)) //if the patient's limb has a burn wound and we don't want it to + cloning_cost[1] += BIOMASS_BURN_WOUND_COST * price_modifier + + if((patient_limb_status & ORGAN_INT_BLEEDING) && !(desired_limb_status & ORGAN_INT_BLEEDING)) //if the patient's limb has IB and we want it to not be + cloning_cost[2] += SANGUINE_IB_COST * price_modifier + + if((patient_limb_status & ORGAN_BROKEN) && !(desired_limb_status & ORGAN_BROKEN)) //if the patient's limb is broken and we want it to not be + cloning_cost[3] += OSSEOUS_BONE_COST * price_modifier + + for(var/organ in p_data.organs) + + if(organ == "heart") //The heart is always replaced in cloning. This is factored into the base biomass cost, so we don't add more here. + if(get_stored_organ(organ)) + cloning_cost[1] -= BIOMASS_NEW_ORGAN_COST //the cost of a new organ should ALWAYS be below the base cloning cost + continue + + if(get_stored_organ(organ)) + continue //if we can replace it, we will, so no need to do the rest of the loop + + var/list/patient_organ_info = p_data.organs[organ] + var/patient_organ_status = patient_organ_info[2] + + var/list/desired_organ_info = d_data.organs[organ] + var/desired_organ_status = desired_organ_info[2] + + if(patient_organ_info[3] && !desired_organ_info[3]) //If it's missing, and we don't want it to be, replace the organ + cloning_cost[1] += BIOMASS_NEW_ORGAN_COST * price_modifier + continue + + if((desired_organ_status & ORGAN_DEAD) && !(patient_organ_status & ORGAN_DEAD)) //if the patient's organ is dead and we want it to not be + cloning_cost[1] += BIOMASS_NEW_ORGAN_COST * price_modifier + continue //.. then continue, because if we replace the organ we don't need to fix its damages + + var/organ_damage_diff = patient_organ_info[1] - desired_organ_info[1] + cloning_cost[1] += BIOMASS_ORGAN_DAMAGE_COST * organ_damage_diff * price_modifier + + cloning_cost[1] = round(cloning_cost[1]) //no decimal-point amounts of biomass! + + return cloning_cost + +//insert an organ into storage +/obj/machinery/clonepod/proc/insert_organ(obj/item/organ/inserted, mob/inserter) + var/has_children = FALSE //Used for arms and legs + var/stored_organs + for(var/obj/item/organ/O in contents) + stored_organs++ + for(var/obj/item/robot_parts/R in contents) + stored_organs++ + + if(stored_organs >= organ_storage_capacity) + to_chat(inserter, "[src]'s organ storage is full!") return - if(I.GetID()) - if(!check_access(I)) - to_chat(user, "Access Denied.") + if(is_int_organ(inserted)) + if(is_type_in_list(inserted, FORBIDDEN_INTERNAL_ORGANS)) + to_chat(inserter, "[src] refuses [inserted].") + return + if(is_type_in_list(inserted, UPGRADE_LOCKED_ORGANS) && speed_modifier < 4) //if our manipulators aren't fully upgraded + to_chat(inserter, "[src] refuses [inserted].") return - if(!(occupant || mess)) - to_chat(user, "Error: Pod has no occupant.") + if(inserted.status & ORGAN_ROBOT && speed_modifier == 1) //if our manipulators aren't upgraded at all + to_chat(inserter, "[src] refuses [inserted].") + return + + if(isorgan(inserted)) + if(is_type_in_list(inserted, FORBIDDEN_LIMBS)) + to_chat(inserter, "[src] refuses [inserted].") return + var/obj/item/organ/external/EO = inserted + if(length(EO.children)) + if((stored_organs + 1 + length(EO.children)) > organ_storage_capacity) + to_chat(inserter, "You can't fit all of [inserted] into [src]'s organ storage!") + return + has_children = TRUE + for(var/obj/item/organ/external/child in EO.children) + child.forceMove(src) + child.parent = null + EO.children -= child + EO.compile_icon() + + if(is_type_in_list(inserted, ALLOWED_ROBOT_PARTS) && speed_modifier == 1) //if our manipulators aren't upgraded at all + to_chat(inserter, "[src] refuses [inserted].") + return + + if(ismob(inserted.loc)) + var/mob/M = inserted.loc + if(!M.get_active_hand() == inserted) + return //not sure how this would happen, but smartfridges check for it so + if(!M.drop_item()) + to_chat(inserter, "[inserted] is stuck to you!") + return + M.unEquip(inserted) + inserted.forceMove(src) + to_chat(inserter, "You insert [inserted] into [src]'s organ storage.") + SStgui.try_update_ui(inserter, src) + if(has_children) + visible_message("There's a crunching sound as [src] breaks down [inserted] into discrete parts.", "You hear a loud crunch.") + +/obj/machinery/clonepod/proc/get_stored_organ(organ) + for(var/obj/item/organ/external/EO in contents) + if(EO.limb_name == organ) + return EO + for(var/obj/item/organ/internal/IO in contents) + if(IO.organ_tag == organ) + return IO + for(var/obj/item/robot_parts/RP in contents) + if(organ in RP.part) + return RP + return FALSE + +//Attackby and x_acts +/obj/machinery/clonepod/attackby(obj/item/I, mob/user, params) + if(exchange_parts(user, I)) + return + + if(I.is_open_container()) + return + + if(istype(I, /obj/item/card/id) || istype(I, /obj/item/pda)) + if(allowed(user)) + locked = !locked + to_chat(user, "Access restriction is now [locked ? "enabled" : "disabled"].") else - connected_message("Authorized Ejection") - announce_radio_message("An authorized ejection of [(occupant) ? occupant.real_name : "the malfunctioning pod"] has occurred") - to_chat(user, "You force an emergency ejection.") - go_out() - -// A user can feed in biomass sources manually. - else if(is_type_in_list(I, GLOB.cloner_biomass_items)) - if(user.drop_item()) - to_chat(user, "[src] processes [I].") - biomass += BIOMASS_BASE_AMOUNT - qdel(I) - else - return ..() + to_chat(user, "Access denied.") + return + + if(is_int_organ(I) || isorgan(I) || is_type_in_list(I, ALLOWED_ROBOT_PARTS)) //fun fact, robot parts aren't organs! + insert_organ(I, user) + return + + return ..() /obj/machinery/clonepod/crowbar_act(mob/user, obj/item/I) . = TRUE @@ -403,7 +591,6 @@ GLOBAL_LIST_INIT(cloner_biomass_items, list(\ /obj/machinery/clonepod/screwdriver_act(mob/user, obj/item/I) . = TRUE - // These icon states don't really matter since we need to call update_icon() to handle panel open/closed overlays anyway. default_deconstruction_screwdriver(user, null, null, I) update_icon() @@ -411,119 +598,96 @@ GLOBAL_LIST_INIT(cloner_biomass_items, list(\ . = TRUE if(!I.use_tool(src, user, 0, volume = I.tool_volume)) return - if(occupant) - to_chat(user, "Can not do that while [src] is in use.") - return if(anchored) WRENCH_UNANCHOR_MESSAGE anchored = FALSE - connected.pods -= src - connected = null else WRENCH_ANCHOR_MESSAGE anchored = TRUE -/obj/machinery/clonepod/emag_act(user) - malfunction() - return TRUE +/obj/machinery/clonepod/attack_hand(mob/user) + . = ..() + add_fingerprint(user) -/obj/machinery/clonepod/cmag_act(mob/user) - if(HAS_TRAIT(src, TRAIT_CMAGGED)) + if(stat & (BROKEN|NOPOWER)) return - playsound(src, "sparks", 75, TRUE, SHORT_RANGE_SOUND_EXTRARANGE) - to_chat(user, "A droplet of bananium ooze seeps into the synthmeat storage chamber...") - ADD_TRAIT(src, TRAIT_CMAGGED, CLOWN_EMAG) -//Put messages in the connected computer's temp var for display. -/obj/machinery/clonepod/proc/connected_message(message) - if((isnull(connected)) || (!istype(connected, /obj/machinery/computer/cloning))) - return FALSE - if(!message) - return FALSE + ui_interact(user) + +/obj/machinery/clonepod/attack_ai(mob/user) + return attack_hand(user) + +/obj/machinery/clonepod/attack_ghost(mob/user) + return attack_hand(user) - connected.temp = "[name] : [message]" - connected.updateUsrDialog() +/obj/machinery/clonepod/emag_act(user) + . = ..() + eject_clone(TRUE) return TRUE -/obj/machinery/clonepod/proc/go_out() - countdown.stop() - var/turf/T = get_turf(src) - if(mess) //Clean that mess and dump those gibs! - for(var/i in missing_organs) - var/obj/I = i - I.forceMove(T) - missing_organs.Cut() - mess = FALSE - new /obj/effect/gibspawner/generic(get_turf(src), occupant) - playsound(loc, 'sound/effects/splat.ogg', 50, 1) - update_icon() +/obj/machinery/clonepod/emp_act(severity) + if(prob(50)) + eject_clone(TRUE) + return ..() + +//TGUI +/obj/machinery/clonepod/ui_interact(mob/user, datum/tgui/ui = null) + if(stat & (NOPOWER|BROKEN)) return - if(!occupant) + if(!allowed(user) && locked && !isobserver(user)) + to_chat(user, "Access denied.") + if(ui) + ui.close() return - if(grab_ghost_when == CLONER_MATURE_CLONE) - UnregisterSignal(clonemind.current, COMSIG_LIVING_REVIVE) - UnregisterSignal(clonemind, COMSIG_MIND_TRANSER_TO) - clonemind.transfer_to(occupant) - occupant.grab_ghost() - to_chat(occupant, "You remember nothing from the time that you were dead!") - to_chat(occupant, "There is a bright flash!
    \ - You feel like a new being.
    ") - if(HAS_TRAIT(src, TRAIT_CMAGGED)) - playsound(loc, 'sound/items/bikehorn.ogg', 50, 1) - occupant.dna.SetSEState(GLOB.clumsyblock, TRUE, FALSE) - occupant.dna.SetSEState(GLOB.comicblock, TRUE, FALSE) - singlemutcheck(occupant, GLOB.clumsyblock, MUTCHK_FORCED) - singlemutcheck(occupant, GLOB.comicblock, MUTCHK_FORCED) - occupant.dna.default_blocks.Add(GLOB.clumsyblock) //Until Genetics fixes you, this is your life now - occupant.dna.default_blocks.Add(GLOB.comicblock) - occupant.flash_eyes(visual = 1) - clonemind = null - - - QDEL_LIST_CONTENTS(missing_organs) - occupant.SetLoseBreath(0) // Stop friggin' dying, gosh damn - occupant.setOxyLoss(0) - for(var/datum/disease/critical/crit in occupant.viruses) - crit.cure() - occupant.forceMove(T) - occupant.update_body() - domutcheck(occupant) //Waiting until they're out before possible notransform. - occupant.special_post_clone_handling() - occupant = null - update_icon() + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "CloningPod", "Cloning Pod") + ui.open() + +/obj/machinery/clonepod/ui_data(mob/user) + var/list/data = list() + data["biomass"] = biomass + data["biomass_storage_capacity"] = biomass_storage_capacity + data["sanguine_reagent"] = reagents.get_reagent_amount("sanguine_reagent") + data["osseous_reagent"] = reagents.get_reagent_amount("osseous_reagent") + + var/list/organs_list + for(var/obj/item/organ/O in contents) + organs_list += list(list("name" = O.name, "ref" = O.UID())) + + data["organs"] = organs_list + data["currently_cloning"] = currently_cloning + + return data + +/obj/machinery/clonepod/ui_act(action, params, datum/tgui/ui) + if(..()) + return + switch(action) + if("eject_organ") + var/obj/item/organ/O = locateUID(params["organ_ref"]) + if(!istype(O)) //This shouldn't happen + return FALSE + if(!ui.user.put_in_hands(O)) + O.forceMove(loc) + return TRUE + if("purge_reagent") + if(params["reagent"]) + reagents.del_reagent(params["reagent"]) + return TRUE + if("remove_reagent") + if(params["reagent"]) + reagents.remove_reagent(params["reagent"], params["amount"]) + return TRUE -/obj/machinery/clonepod/proc/malfunction(go_easy = FALSE) - if(occupant) - connected_message("Critical Error!") - announce_radio_message("Critical error! Please contact a Thinktronic Systems technician, as your warranty may be affected.") - UnregisterSignal(clonemind.current, COMSIG_LIVING_REVIVE) - UnregisterSignal(clonemind, COMSIG_MIND_TRANSER_TO) - if(!go_easy) - if(occupant.mind != clonemind) - clonemind.transfer_to(occupant) - occupant.grab_ghost() // We really just want to make you suffer. - var/message - message += "Agony blazes across your consciousness as your body is torn apart.
    " - message += "Is this what dying is like? Yes it is." - to_chat(occupant, "[message]") - SEND_SOUND(occupant, sound('sound/hallucinations/veryfar_noise.ogg', 0, 1, 50)) - QDEL_LIST_CONTENTS(missing_organs) - clonemind = null - spawn(40) - qdel(occupant) - - - playsound(loc, 'sound/machines/warning-buzzer.ogg', 50, 0) - mess = TRUE update_icon() +//Icon stuff /obj/machinery/clonepod/update_icon_state() - if(occupant && !(stat & NOPOWER)) + if(currently_cloning && !(stat & NOPOWER)) icon_state = "pod_cloning" - else if(mess) - icon_state = "pod_mess" else icon_state = "pod_idle" @@ -532,103 +696,20 @@ GLOBAL_LIST_INIT(cloner_biomass_items, list(\ if(panel_open) . += "panel_open" -/obj/machinery/clonepod/relaymove(mob/user) - if(user.stat == CONSCIOUS) - go_out() - -/obj/machinery/clonepod/emp_act(severity) - if(prob(100/(severity*efficiency))) malfunction() - ..() - -/obj/machinery/clonepod/ex_act(severity) - ..() - if(!QDELETED(src) && occupant) - go_out() - -/obj/machinery/clonepod/handle_atom_del(atom/A) - if(A == occupant) - occupant = null - countdown.stop() - -/obj/machinery/clonepod/deconstruct(disassembled = TRUE) - if(occupant) - go_out() - ..() - -/obj/machinery/clonepod/proc/occupant_got_revived() - // The old body's back in shape, time to ditch the cloning one - malfunction(go_easy = TRUE) - -/obj/machinery/clonepod/proc/maim_clone(mob/living/carbon/human/H) - QDEL_LIST_CONTENTS(missing_organs) - - H.setCloneLoss(CLONE_INITIAL_DAMAGE, FALSE) - H.setBrainLoss(BRAIN_INITIAL_DAMAGE) - - for(var/o in H.internal_organs) - var/obj/item/organ/O = o - if(!istype(O) || O.vital) - continue - - // Let's non-specially remove all non-vital organs - // What could possibly go wrong - var/obj/item/I = O.remove(H) - // Make this support stuff that turns into items when removed - I.forceMove(src) - missing_organs += I - - var/static/list/zones = list("r_arm", "l_arm", "r_leg", "l_leg") - for(var/zone in zones) - var/obj/item/organ/external/E = H.get_organ(zone) - var/obj/item/I = E.remove(H) - I.forceMove(src) - missing_organs += I - - organs_number = length(missing_organs) - H.updatehealth() - -/obj/machinery/clonepod/proc/check_brine() - // Clones are in a pickled bath of mild chemicals, keeping - // them alive, despite their lack of internal organs - for(var/bt in brine_types) - if(occupant.reagents.get_reagent_amount(bt) < 1) - occupant.reagents.add_reagent(bt, 1) - -/* - * Manual -- A big ol' manual. - */ - -/obj/item/paper/Cloning - name = "paper - 'H-87 Cloning Apparatus Manual" - info = {"

    Getting Started

    - Congratulations, your station has purchased the H-87 industrial cloning device!
    - Using the H-87 is almost as simple as brain surgery! Simply insert the target humanoid into the scanning chamber and select the scan option to create a new profile!
    - That's all there is to it!
    - Notice, cloning system cannot scan inorganic life or small primates. Scan may fail if subject has suffered extreme brain damage.
    -

    Clone profiles may be viewed through the profiles menu. Scanning implants a complementary HEALTH MONITOR BIO-CHIP into the subject, which may be viewed from each profile. - Profile Deletion has been restricted to \[Station Head\] level access.

    -

    Cloning from a profile

    - Cloning is as simple as pressing the CLONE option at the bottom of the desired profile.
    - Per your company's EMPLOYEE PRIVACY RIGHTS agreement, the H-87 has been blocked from cloning crewmembers while they are still alive.
    -
    -

    The provided CLONEPOD SYSTEM will produce the desired clone. Standard clone maturation times (With SPEEDCLONE technology) are roughly 90 seconds. - The cloning pod may be unlocked early with any \[Medical Researcher\] ID after initial maturation is complete.


    - Please note that resulting clones may have a small DEVELOPMENTAL DEFECT as a result of genetic drift.
    -

    Profile Management

    -

    The H-87 (as well as your station's standard genetics machine) can accept STANDARD DATA DISKETTES. - These diskettes are used to transfer genetic information between machines and profiles. - A load/save dialog will become available in each profile if a disk is inserted.


    - A good diskette is a great way to counter aforementioned genetic drift!
    -
    - This technology produced under license from Thinktronic Systems, LTD."} - -//SOME SCRAPS I GUESS -/* EMP grenade/spell effect - if(istype(A, /obj/machinery/clonepod)) - A:malfunction() -*/ - -#undef MINIMUM_HEAL_LEVEL -#undef BIOMASS_BASE_AMOUNT -#undef CLONE_INITIAL_DAMAGE -#undef BRAIN_INITIAL_DAMAGE +#undef VALID_REAGENTS +#undef VALID_BIOMASSABLES +#undef FORBIDDEN_INTERNAL_ORGANS +#undef UPGRADE_LOCKED_ORGANS +#undef FORBIDDEN_LIMBS +#undef ALLOWED_ROBOT_PARTS + +#undef BIOMASS_BASE_COST +#undef MEAT_BIOMASS_VALUE +#undef BIOMASS_NEW_LIMB_COST +#undef BIOMASS_NEW_ORGAN_COST +#undef BIOMASS_BURN_WOUND_COST +#undef BIOMASS_BRUTE_COST +#undef BIOMASS_BURN_COST +#undef BIOMASS_ORGAN_DAMAGE_COST +#undef SANGUINE_IB_COST +#undef OSSEOUS_BONE_COST diff --git a/code/game/machinery/clonescanner.dm b/code/game/machinery/clonescanner.dm new file mode 100644 index 000000000000..b644feb3182d --- /dev/null +++ b/code/game/machinery/clonescanner.dm @@ -0,0 +1,229 @@ +/// A limb that's not missing with no damages or flags. +#define HEALTHY_LIMB list(0, 0, 0, FALSE) +/// As above, but for organs. +#define HEALTHY_ORGAN list(0, 0, FALSE) + +/// A datum to store the information gained by scanning a patient OR the fixes to be made to their body. +/datum/cloning_data + /// The patient's name. + var/name + /// A reference to the patient's mind. + var/mindUID + + /// The patient's external organs (limbs) and their data, stored as an associated list of lists. + /// List format: limb = list(brute, burn, status, missing, name, max damage) + var/list/limbs = list() + + /// The patient's internal organs and their data, stored as an associated list of lists. + /// List format: organ = list(damage, status, missing, name, max damage, organ tag) + var/list/organs = list() + + /// The patient's DNA + var/datum/dna/genetic_info + +//this is mostly an example +/datum/cloning_data/healthy + + limbs = list( + "head" = HEALTHY_LIMB, + "torso" = HEALTHY_LIMB, + "groin" = HEALTHY_LIMB, + "r_arm" = HEALTHY_LIMB, + "r_hand" = HEALTHY_LIMB, + "l_arm" = HEALTHY_LIMB, + "l_hand" = HEALTHY_LIMB, + "r_leg" = HEALTHY_LIMB, + "r_foot" = HEALTHY_LIMB, + "l_leg" = HEALTHY_LIMB, + "l_foot" = HEALTHY_LIMB + ) + + organs = list( + "heart" = HEALTHY_ORGAN, + "lungs" = HEALTHY_ORGAN, + "liver" = HEALTHY_ORGAN, + "kidneys" = HEALTHY_ORGAN, + "brain" = HEALTHY_ORGAN, + "appendix" = HEALTHY_ORGAN, + "eyes" = HEALTHY_ORGAN + ) + +//The cloning scanner itself. +/obj/machinery/clonescanner + name = "cloning scanner" + desc = "An advanced machine that thoroughly scans the current state of a cadaver for use in cloning." + icon = 'icons/obj/cryogenic2.dmi' + icon_state = "scanner_open" + density = TRUE + anchored = TRUE + + /// The linked cloning console. + var/obj/machinery/computer/cloning/console + /// The tier of scan we can perform. Tier 2 parts and up can scan husks - or a tier 4 scanner and tier 1 laser. + var/scanning_tier + /// The scanner's occupant. + var/mob/living/carbon/human/occupant + /// The scanner's latest scan result + var/datum/cloning_data/last_scan + /// Whether or not we've tried to scan the current patient + var/has_scanned = FALSE + +/obj/machinery/clonescanner/Initialize(mapload) + . = ..() + + if(!console && mapload) //this could be varedited in in mapping, maybe? + console = pick(locate(/obj/machinery/computer/cloning, orange(5, src))) //yes, it's random, but there shouldn't be multiple consoles anyways + + component_parts = list() + component_parts += new /obj/item/circuitboard/clonescanner(null) + component_parts += new /obj/item/stock_parts/scanning_module(null) + component_parts += new /obj/item/stock_parts/micro_laser(null) + component_parts += new /obj/item/stack/sheet/glass(null) + component_parts += new /obj/item/stack/cable_coil(null, 1) + component_parts += new /obj/item/stack/cable_coil(null, 1) + update_icon() + RefreshParts() + +/obj/machinery/clonescanner/RefreshParts() + for(var/obj/item/stock_parts/SP in component_parts) + scanning_tier += SP.rating + +/obj/machinery/clonescanner/Destroy() + if(console) + console.scanner = null + return ..() + +/obj/machinery/clonescanner/MouseDrop_T(atom/movable/O, mob/user) + if(!(ishuman(user) || issilicon(user)) || user.incapacitated()) + return + if(!ishuman(O)) + return + var/mob/living/carbon/human/H = O + if(H.stat != DEAD) + to_chat(user, "You don't think it'd be wise to scan a living being.") + return TRUE + if(occupant) + to_chat(user, "[src] is already occupied!") + return TRUE + + to_chat(user, "You put [H] into the cloning scanner.") + insert_mob(H) + return TRUE + +/obj/machinery/clonescanner/AltClick(mob/user) + if(!occupant) + return + if(issilicon(user)) + remove_mob(occupant) + return + if(!Adjacent(user) || !ishuman(user) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED)) + return + remove_mob(occupant) + +/obj/machinery/clonescanner/relaymove(mob/user) + if(user.stat) + return + remove_mob(user) + +/obj/machinery/clonescanner/proc/try_scan(mob/living/carbon/human/scanned) + if(!scanned) + return + + occupant.notify_ghost_cloning() + + has_scanned = TRUE + + if(!scanned.dna || HAS_TRAIT(scanned, TRAIT_GENELESS)) + return SCANNER_MISC + if(HAS_TRAIT(scanned, TRAIT_BADDNA) && scanning_tier < 4) + return SCANNER_ABSORBED + if(HAS_TRAIT(scanned, TRAIT_HUSK) && scanning_tier < 4) + return SCANNER_HUSKED + if(NO_CLONESCAN in scanned.dna.species.species_traits) + return SCANNER_UNCLONEABLE_SPECIES + if(!scanned.ckey || !scanned.client || ischangeling(scanned)) + return SCANNER_NO_SOUL + if(scanned.suiciding || !scanned.get_int_organ(/obj/item/organ/internal/brain)) + return SCANNER_BRAIN_ISSUE + + return scan(scanned) + +/obj/machinery/clonescanner/proc/scan(mob/living/carbon/human/scanned) + var/datum/cloning_data/scan_result = new + + scan_result.name = scanned.dna.real_name + scan_result.mindUID = scanned.mind.UID() + scan_result.genetic_info = scanned.dna.Clone() + + for(var/limb in scanned.dna.species.has_limbs) + if(scanned.bodyparts_by_name[limb]) + var/obj/item/organ/external/active_limb = scanned.bodyparts_by_name[limb] + scan_result.limbs[limb] = list(active_limb.brute_dam, + active_limb.burn_dam, + active_limb.status, + FALSE, + active_limb.name, + active_limb.max_damage) + else + scan_result.limbs[limb] = list(0, 0, 0, TRUE, scanned.dna.species.has_limbs[limb]["descriptor"], 0) //no damage if it's missing! + + for(var/organ in scanned.dna.species.has_organ) + var/obj/item/organ/internal/active_organ = scanned.get_int_organ(scanned.dna.species.has_organ[organ]) //this is icky + if(!istype(active_organ)) + scan_result.organs[organ] = list(0, 0, TRUE, organ, 0, organ) + continue + + scan_result.organs[organ] = list(active_organ.damage, + active_organ.status, + FALSE, + active_organ.name, + active_organ.max_damage, + active_organ.organ_tag) + + last_scan = scan_result + return scan_result + +/obj/machinery/clonescanner/proc/insert_mob(mob/living/carbon/human/inserted) + if(!istype(inserted)) + return + inserted.forceMove(src) + occupant = inserted + update_icon(UPDATE_ICON_STATE) + +/obj/machinery/clonescanner/proc/remove_mob(mob/living/carbon/human/removed) + if(!istype(removed)) + return + removed.forceMove(get_turf(loc)) + occupant = null + update_scan_status() + update_icon(UPDATE_ICON_STATE) + +/obj/machinery/clonescanner/proc/update_scan_status() + last_scan = null + has_scanned = FALSE + +/obj/machinery/clonescanner/update_icon_state() + if(panel_open) + icon_state = "scanner" + (occupant ? "" : "_open") + "_maintenance" + return + if(stat & NOPOWER) + icon_state = "scanner" + return + if(!occupant) + icon_state = "scanner_open" + return + icon_state = "scanner_occupied" + return + + +/obj/machinery/clonescanner/multitool_act(mob/user, obj/item/I) + . = TRUE + if(!I.use_tool(src, user, 0, volume = I.tool_volume)) + return + if(!I.multitool_check_buffer(user)) + return + var/obj/item/multitool/M = I + M.set_multitool_buffer(user, src) + +#undef HEALTHY_LIMB +#undef HEALTHY_ORGAN diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm index da24fb361686..668e88b84b24 100644 --- a/code/game/machinery/computer/cloning.dm +++ b/code/game/machinery/computer/cloning.dm @@ -1,5 +1,5 @@ -#define MENU_MAIN 1 -#define MENU_RECORDS 2 +#define TAB_MAIN 1 +#define TAB_DAMAGES_BREAKDOWN 2 /obj/machinery/computer/cloning name = "cloning console" @@ -7,116 +7,151 @@ icon_keyboard = "med_key" icon_screen = "dna" circuit = /obj/item/circuitboard/cloning - req_access = list(ACCESS_HEADS) //Only used for record deletion right now. - var/obj/machinery/dna_scannernew/scanner = null //Linked scanner. For scanning. - var/list/pods = null //Linked cloning pods. - var/list/temp = null - var/list/scantemp = null - var/menu = MENU_MAIN //Which menu screen to display - var/list/records = null - var/datum/dna2/record/active_record = null - var/loading = 0 // Nice loading text - var/autoprocess = 0 - var/obj/machinery/clonepod/selected_pod - // 0: Standard body scan - // 1: The "Best" scan available - var/scan_mode = 1 + req_access = list(ACCESS_MEDICAL) - light_color = LIGHT_COLOR_DARKBLUE + /// The currently-selected cloning pod. + var/obj/machinery/clonepod/selected_pod + /// A list of all linked cloning pods. + var/list/pods = list() + /// Our linked cloning scanner. + var/obj/machinery/clonescanner/scanner + /// Which tab we're currently on + var/tab = TAB_MAIN + /// What feedback to give for the most recent scan. + var/feedback + /// The desired outcome of the cloning process. + var/datum/cloning_data/desired_data + /// Whether the ID lock is on or off + var/locked = TRUE + + COOLDOWN_DECLARE(scancooldown) /obj/machinery/computer/cloning/Initialize(mapload) . = ..() - pods = list() - records = list() - set_scan_temp("Scanner ready.", "good") - updatemodules() + + if(length(pods) && scanner) + return + + if(!mapload) + return //cloning setups built by players need to be linked manually + + pods += locate(/obj/machinery/clonepod, orange(5, src)) + scanner = locate(/obj/machinery/clonescanner, orange(5, src)) + selected_pod = pick(pods) + + new /obj/item/book/manual/medical_cloning(get_turf(src)) //hopefully this stems the tide of mhelps during the TM... /obj/machinery/computer/cloning/Destroy() - releasecloner() + if(scanner) + scanner.console = null + if(pods) + for(var/obj/machinery/clonepod/P in pods) + P.console = null return ..() -/obj/machinery/computer/cloning/process() - if(!scanner || !pods.len || !autoprocess || stat & NOPOWER) +/obj/machinery/computer/cloning/examine(mob/user) + . = ..() + . += "[src] is currently [locked ? "locked" : "unlocked"], and can be [locked ? "unlocked" : "locked"] by swiping an ID with medical access on it." + +/obj/machinery/computer/cloning/attackby(obj/item/I, mob/user, params) + if(istype(I, /obj/item/card/id) || istype(I, /obj/item/pda)) + if(allowed(user)) + locked = !locked + to_chat(user, "Access restriction is now [locked ? "enabled" : "disabled"].") + else + to_chat(user, "Access denied.") + return + + if(!ismultitool(I)) + return ..() + + var/obj/item/multitool/M = I + if(!M.buffer) + to_chat(user, "[M]'[M.p_s()] buffer is empty!") return - if(scanner.occupant && can_autoprocess()) - scan_mob(scanner.occupant) + if(istype(M.buffer, /obj/machinery/clonepod)) + var/obj/machinery/clonepod/buffer_pod = M.buffer + if(buffer_pod.console == src) + to_chat(user, "[M.buffer] is already linked!") + return - if(!LAZYLEN(records)) + pods += M.buffer + buffer_pod.console = src + to_chat(user, "[M.buffer] was successfully added to the cloning pod array.") + if(!selected_pod) + selected_pod = buffer_pod return - for(var/obj/machinery/clonepod/pod in pods) - if(!(pod.occupant || pod.mess) && (pod.efficiency > 5)) - for(var/datum/dna2/record/R in records) - if(!(pod.occupant || pod.mess)) - if(pod.growclone(R)) - records.Remove(R) - -/obj/machinery/computer/cloning/proc/updatemodules() - src.scanner = findscanner() - releasecloner() - findcloner() - if(!selected_pod && pods.len) - selected_pod = pods[1] - -/obj/machinery/computer/cloning/proc/findscanner() - //Try to find scanner on adjacent tiles first - for(var/obj/machinery/dna_scannernew/scanner in orange(1, src)) - return scanner - - //Then look for a free one in the area - for(var/obj/machinery/dna_scannernew/S in get_area(src)) - return S - - return FALSE - -/obj/machinery/computer/cloning/proc/releasecloner() - for(var/obj/machinery/clonepod/P in pods) - P.connected = null - P.name = initial(P.name) - pods.Cut() - -/obj/machinery/computer/cloning/proc/findcloner() - var/num = 1 - for(var/obj/machinery/clonepod/P in get_area(src)) - if(!P.connected) - pods += P - P.connected = src - P.name = "[initial(P.name)] #[num++]" - -/obj/machinery/computer/cloning/attackby(obj/item/W as obj, mob/user as mob, params) - if(istype(W, /obj/item/multitool)) - var/obj/item/multitool/M = W - if(M.buffer && istype(M.buffer, /obj/machinery/clonepod)) - var/obj/machinery/clonepod/P = M.buffer - if(P && !(P in pods)) - pods += P - P.connected = src - P.name = "[initial(P.name)] #[pods.len]" - to_chat(user, "You connect [P] to [src].") - else - return ..() + if(istype(M.buffer, /obj/machinery/clonescanner)) + var/obj/machinery/clonescanner/buffer_scanner = M.buffer + if(scanner) + to_chat(user, "There's already a linked scanner!") + return + + scanner = buffer_scanner + buffer_scanner.console = src + to_chat(user, "[M.buffer] was successfully linked.") + return + to_chat(user, "[M.buffer] cannot be linked to [src].") + return -/obj/machinery/computer/cloning/attack_ai(mob/user as mob) +/obj/machinery/computer/cloning/attack_ai(mob/user) return attack_hand(user) -/obj/machinery/computer/cloning/attack_hand(mob/user as mob) +/obj/machinery/computer/cloning/attack_hand(mob/user) + . = ..() add_fingerprint(user) if(stat & (BROKEN|NOPOWER)) return - updatemodules() ui_interact(user) -/obj/machinery/computer/cloning/ui_state(mob/user) - return GLOB.default_state +/obj/machinery/computer/cloning/emag_act(mob/user) + . = ..() + if(!emagged) + emagged = TRUE + to_chat(user, "You short out the ID scanner on [src].") + else + to_chat(user, "[src]'s ID scanner is already broken!") + + return TRUE + +/obj/machinery/computer/cloning/proc/generate_healthy_data(datum/cloning_data/patient_data) + var/datum/cloning_data/desired_data = new + + for(var/limb in patient_data.limbs) + desired_data.limbs[limb] = list(0, + 0, + 0, + FALSE, + patient_data.limbs[limb][5], + patient_data.limbs[limb][6]) + + for(var/organ in patient_data.organs) + desired_data.organs[organ] = list(0, + 0, + FALSE, + patient_data.organs[organ][4], + patient_data.organs[organ][5]) + + return desired_data /obj/machinery/computer/cloning/ui_interact(mob/user, datum/tgui/ui = null) if(stat & (NOPOWER|BROKEN)) return + if(!allowed(user) && locked && !isobserver(user)) + to_chat(user, "Access denied.") + if(ui) + ui.close() + return + + var/datum/asset/simple/cloning/assets = get_asset_datum(/datum/asset/simple/cloning) + assets.send(user) + ui = SStgui.try_update_ui(user, src, ui) if(!ui) ui = new(user, src, "CloningConsole", "Cloning Console") @@ -128,60 +163,73 @@ ) /obj/machinery/computer/cloning/ui_data(mob/user) - var/data[0] - data["menu"] = src.menu - data["scanner"] = sanitize("[src.scanner]") + var/list/data = list() - var/canpodautoprocess = 0 - if(pods.len) - data["numberofpods"] = src.pods.len + data["tab"] = tab - var/list/tempods[0] - for(var/obj/machinery/clonepod/pod in pods) - if(pod.efficiency > 5) - canpodautoprocess = 1 - - var/status = "idle" - if(pod.mess) - status = "mess" - else if(pod.occupant && !(pod.stat & NOPOWER)) - status = "cloning" - tempods.Add(list(list( - "pod" = "\ref[pod]", - "name" = sanitize(capitalize(pod.name)), - "biomass" = pod.biomass, - "status" = status, - "progress" = (pod.occupant && pod.occupant.stat != DEAD) ? pod.get_completion() : 0 - ))) - data["pods"] = tempods - - data["loading"] = loading - data["autoprocess"] = autoprocess - data["can_brainscan"] = can_brainscan() // You'll need tier 4s for this - data["scan_mode"] = scan_mode - - if(scanner && pods.len && ((scanner.scan_level > 2) || canpodautoprocess)) - data["autoallowed"] = 1 + if(scanner) + data["has_scanner"] = TRUE + else + data["has_scanner"] = FALSE + + if(scanner) + data["has_scanned"] = scanner.has_scanned else - data["autoallowed"] = 0 - if(src.scanner) - data["occupant"] = src.scanner.occupant - data["locked"] = src.scanner.locked - data["temp"] = temp - data["scantemp"] = scantemp - data["selected_pod"] = "\ref[selected_pod]" - var/list/temprecords[0] - for(var/datum/dna2/record/R in records) - var/tempRealName = R.dna.real_name - temprecords.Add(list(list("record" = "\ref[R]", "realname" = sanitize(tempRealName)))) - data["records"] = temprecords - - if(selected_pod && (selected_pod in pods) && selected_pod.biomass >= CLONER_BIOMASS_REQUIRED) - data["podready"] = 1 + data["has_scanned"] = FALSE + + if(scanner?.last_scan) + data["patient_limb_data"] = scanner.last_scan.limbs + var/list/allLimbs = list() + for(var/limb in scanner.last_scan.limbs) + allLimbs += limb + data["limb_list"] = allLimbs + + data["patient_organ_data"] = scanner.last_scan.organs + var/list/allOrgans = list() + for(var/organ in scanner.last_scan.organs) + allOrgans += organ + data["organ_list"] = allOrgans + + if(desired_data) + data["desired_limb_data"] = desired_data.limbs + data["desired_organ_data"] = desired_data.organs + + data["feedback"] = feedback + + if(feedback && feedback["color"] == "good") + data["scan_successful"] = TRUE else - data["podready"] = 0 + data["scan_successful"] = FALSE - data["modal"] = ui_modal_data(src) + if(scanner?.occupant) + data["scanner_has_patient"] = TRUE + else + data["scanner_has_patient"] = FALSE + + var/list/pod_data = list() + if(length(pods)) + for(var/obj/machinery/clonepod/pod in pods) + pod_data += list(list("uid" = pod.UID(), + "cloning" = pod.currently_cloning, + "clone_progress" = pod.clone_progress, + "biomass" = pod.biomass, + "biomass_storage_capacity" = pod.biomass_storage_capacity, + "sanguine_reagent" = pod.reagents.get_reagent_amount("sanguine_reagent"), + "osseous_reagent" = pod.reagents.get_reagent_amount("osseous_reagent"))) + + if(selected_pod) + data["selected_pod_data"] = list("biomass" = selected_pod.biomass, + "biomass_storage_capacity" = selected_pod.biomass_storage_capacity, + "sanguine_reagent" = selected_pod.reagents.get_reagent_amount("sanguine_reagent"), + "osseous_reagent" = selected_pod.reagents.get_reagent_amount("osseous_reagent"), + "max_reagent_capacity" = selected_pod.reagents.maximum_volume) + data["selected_pod_UID"] = selected_pod.UID() + if(scanner?.last_scan && desired_data) + var/list/costs = selected_pod.get_cloning_cost(scanner.last_scan, desired_data) + data["cloning_cost"] = costs + + data["pods"] = pod_data + data["pod_amount"] = length(pods) return data @@ -191,273 +239,119 @@ if(stat & (NOPOWER|BROKEN)) return - . = TRUE - switch(ui_modal_act(src, action, params)) - if(UI_MODAL_ANSWER) - if(params["id"] == "del_rec" && text2num(params["answer"]) && active_record) - if(!allowed(usr)) - set_temp("Access denied.", "danger") - return - - records.Remove(active_record) - qdel(active_record) - set_temp("Record deleted.", "success") - menu = MENU_RECORDS - return + var/datum/cloning_data/patient_data = scanner?.last_scan //For readability, mostly switch(action) + if("menu") + switch(text2num(params["tab"])) + if(TAB_MAIN) + tab = TAB_MAIN + scanner?.update_scan_status() + return TRUE + if(TAB_DAMAGES_BREAKDOWN) + tab = TAB_DAMAGES_BREAKDOWN + return TRUE + if("select_pod") + selected_pod = locateUID(params["uid"]) + return TRUE + if("clone") + var/cost = selected_pod.get_cloning_cost(scanner.last_scan, desired_data) + if(selected_pod.biomass < cost[BIOMASS_COST] || (selected_pod.reagents.get_reagent_amount("sanguine_reagent") < cost[SANGUINE_COST]) || selected_pod.reagents.get_reagent_amount("osseous_reagent") < cost[OSSEOUS_COST]) + feedback = list("text" = "The cloning operation is too expensive!", "color" = "bad") + else + selected_pod.start_cloning(scanner.last_scan, desired_data) + scanner?.update_scan_status() + feedback = list("text" = "Beginning cloning operation...", "color" = "good") + return TRUE if("scan") - if(!scanner || !scanner.occupant || loading) - return - set_scan_temp("Scanner ready.", "good") - loading = TRUE + if(!COOLDOWN_FINISHED(src, scancooldown)) + feedback = list("text" = "The scanning array is still calibrating! Please wait...", "color" = "average") + return TRUE - spawn(20) - if(can_brainscan() && scan_mode) - scan_mob(scanner.occupant, scan_brain = TRUE) - else - scan_mob(scanner.occupant) - loading = FALSE - SStgui.update_uis(src) - if("autoprocess") - autoprocess = text2num(params["on"]) > 0 - if("lock") - if(isnull(scanner) || !scanner.occupant) //No locking an open scanner. - return - scanner.locked = !scanner.locked - if("view_rec") - var/ref = params["ref"] - if(!length(ref)) - return - active_record = locate(ref) - if(istype(active_record)) - if(isnull(active_record.ckey)) - qdel(active_record) - set_temp("Error: Record corrupt.", "danger") - else - var/obj/item/bio_chip/health/H = null - if(active_record.implant) - H = locate(active_record.implant) - var/list/payload = list( - activerecord = "\ref[active_record]", - health = (H && istype(H)) ? H.sensehealth() : "", - realname = sanitize(active_record.dna.real_name), - unidentity = active_record.dna.uni_identity, - strucenzymes = active_record.dna.struc_enzymes, - ) - ui_modal_message(src, action, "", null, payload) - else - active_record = null - set_temp("Error: Record missing.", "danger") - if("del_rec") - if(!active_record) - return - ui_modal_boolean(src, action, "Please confirm that you want to delete the record:", yes_text = "Delete", no_text = "Cancel") - if("refresh") - SStgui.update_uis(src) - if("selectpod") - var/ref = params["ref"] - if(!length(ref)) - return - var/obj/machinery/clonepod/selected = locate(ref) - if(istype(selected) && (selected in pods)) - selected_pod = selected - if("clone") - var/ref = params["ref"] - if(!length(ref)) + if(!scanner.occupant) return - var/datum/dna2/record/C = locate(ref) - //Look for that player! They better be dead! - if(istype(C)) - ui_modal_clear(src) - //Can't clone without someone to clone. Or a pod. Or if the pod is busy. Or full of gibs. - if(!length(pods)) - set_temp("Error: No cloning pod detected.", "danger") + + COOLDOWN_START(src, scancooldown, 5 SECONDS) + var/scanner_result = scanner.try_scan(scanner.occupant) + switch(scanner_result) + if(SCANNER_MISC) + feedback = list("text" = "Unable to analyze patient's genetic sequence.", "color" = "bad") + if(SCANNER_UNCLONEABLE_SPECIES) + feedback = list("text" = "[scanner.occupant.dna.species.name_plural] cannot be scanned.", "color" = "bad") + if(SCANNER_HUSKED) + feedback = list("text" = "The patient is husked.", "color" = "bad") + if(SCANNER_ABSORBED) + feedback = list("text" = "The patient cannot be scanned due to a lack of biofluids.", "color" = "bad") + if(SCANNER_NO_SOUL) + feedback = list("text" = "Failed to sequence the patient's brain. Further attempts may succeed.", "color" = "average") + if(SCANNER_BRAIN_ISSUE) + feedback = list("text" = "The patient's brain is inactive or missing.", "color" = "bad") else - var/obj/machinery/clonepod/pod = selected_pod - var/cloneresult - if(!selected_pod) - set_temp("Error: No cloning pod selected.", "danger") - else if(pod.occupant) - set_temp("Error: The cloning pod is currently occupied.", "danger") - else if(pod.biomass < CLONER_BIOMASS_REQUIRED) - set_temp("Error: Not enough biomass.", "danger") - else if(pod.mess) - set_temp("Error: The cloning pod is malfunctioning.", "danger") - else if(!GLOB.configuration.general.enable_cloning) - set_temp("Error: Unable to initiate cloning cycle.", "danger") + var/datum/cloning_data/scan = scanner_result + if((scan.mindUID == patient_data?.mindUID) || (scan.mindUID == selected_pod?.patient_data?.mindUID)) + feedback = list("text" = "Patient has already been scanned.", "color" = "average") + return TRUE + feedback = list("text" = "Successfully scanned the patient.", "color" = "good") + desired_data = generate_healthy_data(scan) + return TRUE + if("fix_all") + desired_data = generate_healthy_data(scanner.last_scan) + return TRUE + if("fix_none") + desired_data = scanner.last_scan + return TRUE + if("toggle_limb_repair") + switch(params["type"]) + if("replace") + if(desired_data.limbs[params["limb"]][4]) + desired_data.limbs[params["limb"]][4] = FALSE else - cloneresult = pod.growclone(C) - if(cloneresult) - set_temp("Initiating cloning cycle...", "success") - records.Remove(C) - qdel(C) - menu = MENU_MAIN - else - set_temp("Error: Initialisation failure.", "danger") - else - set_temp("Error: Data corruption.", "danger") - if("menu") - menu = clamp(text2num(params["num"]), MENU_MAIN, MENU_RECORDS) - if("toggle_mode") - if(loading) - return - if(can_brainscan()) - scan_mode = !scan_mode - else - scan_mode = FALSE + desired_data.limbs[params["limb"]][4] = TRUE + if("damage") + if(desired_data.limbs[params["limb"]][1] || desired_data.limbs[params["limb"]][2]) + desired_data.limbs[params["limb"]][1] = 0 + desired_data.limbs[params["limb"]][2] = 0 + else + desired_data.limbs[params["limb"]][1] = patient_data.limbs[params["limb"]][1] + desired_data.limbs[params["limb"]][2] = patient_data.limbs[params["limb"]][2] + if("bone") + if(desired_data.limbs[params["limb"]][3] & ORGAN_BROKEN) + desired_data.limbs[params["limb"]][3] &= ~ORGAN_BROKEN + else + desired_data.limbs[params["limb"]][3] |= ORGAN_BROKEN + if("ib") + if(desired_data.limbs[params["limb"]][3] & ORGAN_INT_BLEEDING) + desired_data.limbs[params["limb"]][3] &= ~ORGAN_INT_BLEEDING + else + desired_data.limbs[params["limb"]][3] |= ORGAN_INT_BLEEDING + if("critburn") + if(desired_data.limbs[params["limb"]][3] & ORGAN_BURNT) + desired_data.limbs[params["limb"]][3] &= ~ORGAN_BURNT + else + desired_data.limbs[params["limb"]][3] |= ORGAN_BURNT + return TRUE + if("toggle_organ_repair") + switch(params["type"]) + if("replace") + if(desired_data.organs[params["organ"]][3] || desired_data.organs[params["organ"]][2]) + desired_data.organs[params["organ"]][3] = FALSE + desired_data.organs[params["organ"]][2] = 0 + else + desired_data.organs[params["organ"]][3] = patient_data.organs[params["organ"]][3] + desired_data.organs[params["organ"]][2] = patient_data.organs[params["organ"]][2] + if("damage") + if(desired_data.organs[params["organ"]][1]) + desired_data.organs[params["organ"]][1] = 0 + else + desired_data.organs[params["organ"]][1] = patient_data.organs[params["organ"]][1] + return TRUE if("eject") - if(usr.incapacitated() || !scanner || loading) - return - scanner.eject_occupant(usr) - scanner.add_fingerprint(usr) - if("cleartemp") - temp = null - else - return FALSE + if(scanner?.occupant) + scanner.remove_mob(scanner.occupant) + return TRUE - src.add_fingerprint(usr) -/obj/machinery/computer/cloning/proc/scan_mob(mob/living/carbon/human/subject as mob, scan_brain = 0) - if(stat & NOPOWER) - return - if(scanner.stat & (NOPOWER|BROKEN)) - return - if(scan_brain && !can_brainscan()) - return - if(isnull(subject) || (!(ishuman(subject))) || (!subject.dna)) - if(isalien(subject)) - set_scan_temp("Safety interlocks engaged. Nanotrasen Directive 7b forbids the cloning of biohazardous alien species.", "bad") - SStgui.update_uis(src) - return - // can add more conditions for specific non-human messages here - else - set_scan_temp("Subject species is not clonable.", "bad") - SStgui.update_uis(src) - return - if(NO_CLONESCAN in subject.dna.species.species_traits) - set_scan_temp("[subject.dna.species.name_plural] are not clonable. Alternative revival methods recommended.", "bad") - SStgui.update_uis(src) - return - if(subject.get_int_organ(/obj/item/organ/internal/brain)) - var/obj/item/organ/internal/brain/Brn = subject.get_int_organ(/obj/item/organ/internal/brain) - if(istype(Brn)) - if(Brn.dna.species.name == "Machine") - set_scan_temp("No organic tissue detected within subject. Alternative revival methods recommended.", "bad") - SStgui.update_uis(src) - return - if(NO_CLONESCAN in Brn.dna.species.species_traits) - set_scan_temp("[Brn.dna.species.name_plural] are not clonable. Alternative revival methods recommended.", "bad") - SStgui.update_uis(src) - return - if(!subject.get_int_organ(/obj/item/organ/internal/brain)) - set_scan_temp("No brain detected in subject.", "bad") - SStgui.update_uis(src) - return - if(subject.suiciding) - set_scan_temp("Subject has committed suicide and is not clonable.", "bad") - SStgui.update_uis(src) - return - if(HAS_TRAIT(subject, TRAIT_BADDNA) && src.scanner.scan_level < 2) - set_scan_temp("Insufficient level of biofluids detected within subject. Scanner upgrades may be required to improve scan capabilities.", "bad") - SStgui.update_uis(src) - return - if(HAS_TRAIT(subject, TRAIT_HUSK) && src.scanner.scan_level < 2) - set_scan_temp("Subject is husked. Treat condition or upgrade scanning module to proceed with scan.", "bad") - SStgui.update_uis(src) - return - if((!subject.ckey) || (!subject.client)) - set_scan_temp("Subject's brain is not responding. Further attempts after a short delay may succeed.", "bad") - SStgui.update_uis(src) - return - if(!isnull(find_record(subject.ckey))) - set_scan_temp("Subject already in database.") - SStgui.update_uis(src) - return - if(subject.stat != DEAD) - set_scan_temp("Subject is not dead.", "bad") - SStgui.update_uis(src) - return + add_fingerprint(usr) - for(var/obj/machinery/clonepod/pod in pods) - if(pod.occupant && pod.clonemind == subject.mind) - set_scan_temp("Subject already getting cloned.") - SStgui.update_uis(src) - return - - subject.dna.check_integrity() - - var/datum/dna2/record/R = new /datum/dna2/record() - R.ckey = subject.ckey - var/extra_info = "" - if(scan_brain) - var/obj/item/organ/B = subject.get_int_organ(/obj/item/organ/internal/brain) - B.dna.check_integrity() - R.dna=B.dna.Clone() - if(NO_CLONESCAN in R.dna.species.species_traits) - extra_info = "Proper genetic interface not found, defaulting to genetic data of the body." - R.dna.species = new subject.dna.species.type - R.id= copytext(md5(B.dna.real_name), 2, 6) - R.name=B.dna.real_name - else - R.dna=subject.dna.Clone() - R.id= copytext(md5(subject.real_name), 2, 6) - R.name=R.dna.real_name - - R.types=DNA2_BUF_UI|DNA2_BUF_UE|DNA2_BUF_SE - R.languages=subject.languages - //Add an implant if needed - var/obj/item/bio_chip/health/imp = locate(/obj/item/bio_chip/health, subject) - if(!imp) - imp = new /obj/item/bio_chip/health(subject) - imp.implant(subject) - R.implant = "\ref[imp]" - - if(!isnull(subject.mind)) //Save that mind so traitors can continue traitoring after cloning. - R.mind = "\ref[subject.mind]" - - src.records += R - set_scan_temp("Subject successfully scanned. [extra_info]", "good") - SStgui.update_uis(src) - -//Find a specific record by key. -/obj/machinery/computer/cloning/proc/find_record(find_key) - var/selected_record = null - for(var/datum/dna2/record/R in src.records) - if(R.ckey == find_key) - selected_record = R - break - return selected_record - -/obj/machinery/computer/cloning/proc/can_autoprocess() - return (scanner && scanner.scan_level > 2) - -/obj/machinery/computer/cloning/proc/can_brainscan() - return (scanner && scanner.scan_level > 3) - -/** - * Sets a temporary message to display to the user - * - * Arguments: - * * text - Text to display, null/empty to clear the message from the UI - * * style - The style of the message: (color name), info, success, warning, danger - */ -/obj/machinery/computer/cloning/proc/set_temp(text = "", style = "info", update_now = FALSE) - temp = list(text = text, style = style) - if(update_now) - SStgui.update_uis(src) - -/** - * Sets a temporary scan message to display to the user - * - * Arguments: - * * text - Text to display, null/empty to clear the message from the UI - * * color - The color of the message: (color name) - */ -/obj/machinery/computer/cloning/proc/set_scan_temp(text = "", color = "", update_now = FALSE) - scantemp = list(text = text, color = color) - if(update_now) - SStgui.update_uis(src) - -#undef MENU_MAIN -#undef MENU_RECORDS +#undef TAB_MAIN +#undef TAB_DAMAGES_BREAKDOWN diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm index e4d89c6f7383..e3c9877aa5c3 100644 --- a/code/game/machinery/constructable_frame.dm +++ b/code/game/machinery/constructable_frame.dm @@ -824,19 +824,19 @@ to destroy them and players will be able to make replacements. origin_tech = "programming=2;biotech=2" req_components = list( /obj/item/stack/cable_coil = 2, - /obj/item/stock_parts/scanning_module = 2, + /obj/item/stock_parts/scanning_module = 1, + /obj/item/stock_parts/matter_bin = 1, /obj/item/stock_parts/manipulator = 2, /obj/item/stack/sheet/glass = 1) /obj/item/circuitboard/clonescanner board_name = "Cloning Scanner" icon_state = "medical" - build_path = /obj/machinery/dna_scannernew + build_path = /obj/machinery/clonescanner board_type = "machine" origin_tech = "programming=2;biotech=2" req_components = list( /obj/item/stock_parts/scanning_module = 1, - /obj/item/stock_parts/manipulator = 1, /obj/item/stock_parts/micro_laser = 1, /obj/item/stack/sheet/glass = 1, /obj/item/stack/cable_coil = 2,) diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index 02bc0b34b199..bd691273d8a0 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -329,11 +329,6 @@ I.forceMove(src) handle_contents(I) - for(var/obj/machinery/computer/cloning/cloner in GLOB.machines) - for(var/datum/dna2/record/R in cloner.records) - if(occupant.mind == locate(R.mind)) - cloner.records.Remove(R) - //Delete all items not on the preservation list. var/list/items = contents items -= occupant // Don't delete the occupant diff --git a/code/game/objects/items/weapons/disks.dm b/code/game/objects/items/weapons/disks.dm index 50f6c04919cc..b982a0d44e59 100644 --- a/code/game/objects/items/weapons/disks.dm +++ b/code/game/objects/items/weapons/disks.dm @@ -5,3 +5,70 @@ icon_state = "datadisk0" drop_sound = 'sound/items/handling/disk_drop.ogg' pickup_sound = 'sound/items/handling/disk_pickup.ogg' + +/obj/item/disk/data + name = "Cloning Data Disk" + icon_state = "datadisk0" //Gosh I hope syndies don't mistake them for the nuke disk. + var/datum/dna2/record/buf = null + var/read_only = FALSE //Well,it's still a floppy disk + +/obj/item/disk/data/proc/initialize_data() + buf = new + buf.dna = new + +/obj/item/disk/data/Destroy() + QDEL_NULL(buf) + return ..() + +/obj/item/disk/data/demo + name = "data disk - 'God Emperor of Mankind'" + read_only = TRUE + +/obj/item/disk/data/demo/New() + . = ..() + initialize_data() + buf.types = DNA2_BUF_UE|DNA2_BUF_UI + buf.dna.real_name = "God Emperor of Mankind" + buf.dna.unique_enzymes = md5(buf.dna.real_name) + buf.dna.UI = list(0x066,0x000,0x033,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0xAF0,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x000,0x033,0x066,0x0FF,0x4DB,0x002,0x690,0x000,0x000,0x000,0x328,0x045,0x5FC,0x053,0x035,0x035,0x035) + if(length(buf.dna.UI) != DNA_UI_LENGTH) //If there's a disparity b/w the dna UI string lengths, 0-fill the extra blocks in this UI. + for(var/i in length(buf.dna.UI) to DNA_UI_LENGTH) + buf.dna.UI += 0x000 + buf.dna.ResetSE() + buf.dna.UpdateUI() + +/obj/item/disk/data/monkey + name = "data disk - 'Mr. Muggles'" + read_only = 1 + +/obj/item/disk/data/monkey/New() + . = ..() + initialize_data() + buf.types = DNA2_BUF_SE + var/list/new_SE = list(0x098,0x3E8,0x403,0x44C,0x39F,0x4B0,0x59D,0x514,0x5FC,0x578,0x5DC,0x640,0x6A4) + for(var/i = length(new_SE); i <= DNA_SE_LENGTH; i++) + new_SE += rand(1, 1024) + buf.dna.SE = new_SE + buf.dna.SetSEValueRange(GLOB.monkeyblock, 0xDAC, 0xFFF) + +//Disk stuff. +/obj/item/disk/data/New() + . = ..() + var/diskcolor = pick(0, 1, 2) + icon_state = "datadisk[diskcolor]" + +/obj/item/disk/data/attack_self(mob/user) + read_only = !read_only + to_chat(user, "You flip the write-protect tab to [read_only ? "protected" : "unprotected"].") + +/obj/item/disk/data/examine(mob/user) + . = ..() + . += "The write-protect tab is set to [read_only ? "protected" : "unprotected"]." + +/obj/item/storage/box/disks + name = "Diskette Box" + icon_state = "disk_kit" + +/obj/item/storage/box/disks/populate_contents() + for(var/i in 1 to 7) + new /obj/item/disk/data(src) diff --git a/code/game/objects/items/weapons/manuals.dm b/code/game/objects/items/weapons/manuals.dm index 3e15b3b06e92..d14a4c0e2b5f 100644 --- a/code/game/objects/items/weapons/manuals.dm +++ b/code/game/objects/items/weapons/manuals.dm @@ -348,11 +348,11 @@ "}) /obj/item/book/manual/medical_cloning - name = "Cloning techniques of the 26th century" - desc = "A clinical explanation on how to resurrect your patients." - icon_state ="bookCloning" - author = "Medical Journal, volume 3" - title = "Cloning techniques of the 26th century" + name = "Introduction to Cloning" + desc = "A guide covering the basics of cloning." + icon_state = "bookCloning" + author = "Bioarchitect for the Pillars of Creation" //this is a valid nian name, right? + title = "Introduction to Cloning" pages = list({" @@ -366,60 +366,59 @@ -

    How to Clone People

    - So thereÂ’s 50 dead people lying on the floor, chairs are spinning like no tomorrow and you havenÂ’t the foggiest idea of what to do? Not to worry! This guide is intended to teach you how to clone people and how to do it right, in a simple step-by-step process! If at any point of the guide you have a mental meltdown, genetics probably isnÂ’t for you and you should get a job-change as soon as possible before youÂ’re sued for malpractice. +

    How to Clone People

    + Picture the scene: there's five corpses surrounding you, the Chief Medical Officer is yelling something \ + about terror spiders into their radio, and you only graduated medical school last week. What are you supposed to do?
    \ + Well, Thinktronics Corporation is proud to present you the new and improved TTC-5601 cloning device - capable of \ + economically resuscitating even the most damaged of bodies. What follows is a guide on how to use this newer model \ + of cloning machine and where it differs from previous models.
      -
    1. Acquire body
    2. -
    3. Strip body
    4. -
    5. Put body in cloning machine
    6. -
    7. Scan body
    8. -
    9. Clone body
    10. -
    11. Get clean Structurel Enzymes for the body
    12. -
    13. Put body in morgue
    14. -
    15. Await cloned body
    16. -
    17. Use the clean SW injector
    18. -
    19. Give person clothes back
    20. -
    21. Send person on their way
    22. +
    23. Preparation
    24. +
    25. Load into Cloning Scanner
    26. +
    27. Scan Patient
    28. +
    29. Configure Device
    30. +
    31. Clone
    32. +
    33. Finish Procedure
    -

    Step 1: Acquire body

    - This is pretty much vital for the process because without a body, you cannot clone it. Usually, bodies will be brought to you, so you do not need to worry so much about this step. If you already have a body, great! Move on to the next step. - -

    Step 2: Strip body

    - The cloning machine does not like abiotic items. What this means is you canÂ’t clone anyone if theyÂ’re wearing clothes, so take all of it off. If itÂ’s just one person, itÂ’s courteous to put their possessions in the closet. If you have about seven people awaiting cloning, just leave the piles where they are, but donÂ’t mix them around and for GodÂ’s sake donÂ’t let people in to steal them. - -

    Step 3: Put body in cloning machine

    - Grab the body and then put it inside the DNA modifier. If you cannot do this, then you messed up at Step 2. Go back and check you took EVERYTHING off - a commonly missed item is their headset. - -

    Step 4: Scan body

    - Go onto the computer and scan the body by pressing ‘Scan - ’. If you’re successful, they will be added to the records (note that this can be done at any time, even with living people, so that they can be cloned without a body in the event that they are lying dead on port solars and didn‘t turn on their suit sensors)! If not, and it says “Error: Mental interface failure.”, then they have left their bodily confines and are one with the spirits. If this happens, just shout at them to get back in their body, click ‘Refresh‘ and try scanning them again. If there’s no success, threaten them with gibbing. Still no success? Skip over to Step 7 and don‘t continue after it, as you have an unresponsive body and it cannot be cloned. If you got “Error: Unable to locate valid genetic data.“, you are trying to clone a monkey - start over. - -

    Step 5: Clone body

    - Now that the body has a record, click ’View Records’, click the subject’s name, and then click ‘Clone’ to start the cloning process. Congratulations! You’re halfway there. Remember not to ‘Eject’ the cloning pod as this will kill the developing clone and you’ll have to start the process again. - -

    Step 6: Get clean SEs for body

    - Cloning is a finicky and unreliable process. Whilst it will most certainly bring someone back from the dead, they can have any number of nasty disabilities given to them during the cloning process! For this reason, you need to prepare a clean, defect-free Structural Enzyme (SE) injection for when they’re done. If you’re a competent Geneticist, you will already have one ready on your working computer. If, for any reason, you do not, then eject the body from the DNA modifier (NOT THE CLONING POD) and take it next door to the Genetics research room. Put the body in one of those DNA modifiers and then go onto the console. Go into View/Edit/Transfer Buffer, find an open slot and click “SE“ to save it. Then click ‘Injector’ to get the SEs in syringe form. Put this in your pocket or something for when the body is done. - -

    Step 7: Put body in morgue

    - Now that the cloning process has been initiated and you have some clean Structural Enzymes, you no longer need the body! Drag it to the morgue and tell the Chef over the radio that they have some fresh meat waiting for them in there. To put a body in a morgue bed, simply open the tray, grab the body, put it on the open tray, then close the tray again. Use one of the nearby pens to label the bed “CHEF MEAT” in order to avoid confusion. - -

    Step 8: Await cloned body

    - Now go back to the lab and wait for your patient to be cloned. It wonÂ’t be long now, I promise. - -

    Step 9: Use the clean SE injector on person

    - Has your body been cloned yet? Great! As soon as the guy pops out, grab your injector and jab it in them. Once youÂ’ve injected them, they now have clean Structural Enzymes and their defects, if any, will disappear in a short while. - -

    Step 10: Give person clothes back

    - Obviously the person will be naked after they have been cloned. Provided you werenÂ’t an irresponsible little shit, you should have protected their possessions from thieves and should be able to give them back to the patient. No matter how cruel you are, itÂ’s simply against protocol to force your patients to walk outside naked. - -

    Step 11: Send person on their way

    - Give the patient one last check-over - make sure they donÂ’t still have any defects and that they have all their possessions. Ask them how they died, if they know, so that you can report any foul play over the radio. Once youÂ’re done, your patient is ready to go back to work! Chances are they do not have Medbay access, so you should let them out of Genetics and the Medbay main entrance. - -

    If youÂ’ve gotten this far, congratulations! You have mastered the art of cloning. Now, the real problem is how to resurrect yourself after that traitor had his way with you for cloning his target. - - - +

    Step 1: Preparation

    + Your patient must be dead to clone them (as of the Cloning Regulatory Act of 2533). Therefore, make sure that \ + they are deceased before proceeding, and ideally try to revive them via defibrillation! If that fails, however, \ + you should strip them of their equipment and check to make sure the cloning pod is loaded with, at least, 250 \ + biomass.
    + If your patient has a lot of damage, it'll take a lot of biomass to clone them! If you do not have ample biomass \ + or simply want to conserve it, try to tend to the cadaver's wounds before proceeding. In addition, fixing broken \ + bones and internal bleeds via cloning will consume Osseous Reagent and Sanguine Reagent respectively - these are \ + both much harder to replenish than biomass, so consider being polite to your chemists and fixing these via \ + surgery instead. + +

    Step 2: Load into Cloning Scanner

    + After stripping your patient, load them into the cloning device's scanning machine, as you would with any other \ + device. + +

    Step 3: Scan Patient

    + Access the cloning device's terminal, then navigate to the Damage Configuration menu and click 'scan.' If you see \ + 'Scan Successful' - great! Move on to the next step. If not, the device will inform you about what went wrong with \ + the process. If it says it failed to sequence the patient's brain, try to scan them again in a few seconds. \ + +

    Step 4: Configure Device

    + This step is where the TTC-5601 cloning device diverges from its earlier models. Its advanced systems allow you to \ + conserve resources and elect to not fix certain damages, or elect to fix all damages - all on the fly! Keep \ + in mind that if you're short on resources, you'll have to leave some damages on the patient in order to clone \ + them. Once you're done tweaking settings, proceed to the next step. + +

    Step 5: Clone

    + This is the simplest, but most important step. Simply press 'Clone' in the Damage Configuration menu, and the machine \ + will begin the process of cloning. The process is fully automatic, so feel free to take care of other chores in the \ + meanwhile - like moving the scanned cadaver to the morgue. + +

    Step 6: Finish Procedure

    + After cloning, the patient may be disoriented - help them to get their bearings and put on the gear you stripped from \ + their previous body. In addition, make sure to fix any wounds you may have left to save resources before sending them off. + +

    Congratulations! You now know how to use the TTC-5601 model cloning device. Please direct any further questions you have \ + to your Chief Medical Officer. Warranty void if used on living people, changeling organisms, or cluwnes. "}) diff --git a/code/modules/client/preference/character.dm b/code/modules/client/preference/character.dm index db3cd2447a6c..333acaf4d4bb 100644 --- a/code/modules/client/preference/character.dm +++ b/code/modules/client/preference/character.dm @@ -110,17 +110,17 @@ real_name = random_name(gender, species) /datum/character_save/proc/save(client/C) - var/organlist - var/rlimblist + var/organ_list + var/rlimb_list var/playertitlelist var/gearlist var/markingcolourslist = list2params(m_colours) var/markingstyleslist = list2params(m_styles) if(!isemptylist(organ_data)) - organlist = list2params(organ_data) + organ_list = list2params(organ_data) if(!isemptylist(rlimb_data)) - rlimblist = list2params(rlimb_data) + rlimb_list = list2params(rlimb_data) if(!isemptylist(player_alt_titles)) playertitlelist = list2params(player_alt_titles) if(!isemptylist(loadout_gear)) @@ -177,8 +177,8 @@ gen_record=:gen_record, player_alt_titles=:playertitlelist, disabilities=:disabilities, - organ_data=:organlist, - rlimb_data=:rlimblist, + organ_data=:organ_list, + rlimb_data=:rlimb_list, nanotrasen_relation=:nanotrasen_relation, physique=:physique, height=:height, @@ -236,8 +236,8 @@ "gen_record" = gen_record, "playertitlelist" = (playertitlelist ? playertitlelist : ""), // This it intentnional. It wont work without it! "disabilities" = disabilities, - "organlist" = (organlist ? organlist : ""), - "rlimblist" = (rlimblist ? rlimblist : ""), + "organ_list" = (organ_list ? organ_list : ""), + "rlimb_list" = (rlimb_list ? rlimb_list : ""), "nanotrasen_relation" = nanotrasen_relation, "physique" = physique, "height" = height, @@ -316,7 +316,7 @@ :sec_record, :gen_record, :playertitlelist, - :disabilities, :organlist, :rlimblist, :nanotrasen_relation, :physique, :height, :speciesprefs, + :disabilities, :organ_list, :rlimb_list, :nanotrasen_relation, :physique, :height, :speciesprefs, :socks, :body_accessory, :gearlist, :autohiss_mode, :h_grad_style, :h_grad_offset, :h_grad_colour, :h_grad_alpha, :custom_emotes) "}, list( @@ -364,8 +364,8 @@ "gen_record" = gen_record, "playertitlelist" = (playertitlelist ? playertitlelist : ""), // This it intentional. It wont work without it! "disabilities" = disabilities, - "organlist" = (organlist ? organlist : ""), - "rlimblist" = (rlimblist ? rlimblist : ""), + "organ_list" = (organ_list ? organ_list : ""), + "rlimb_list" = (rlimb_list ? rlimb_list : ""), "nanotrasen_relation" = nanotrasen_relation, "physique" = physique, "height" = height, diff --git a/code/modules/countdown/countdown.dm b/code/modules/countdown/countdown.dm index 34d8653ca99a..1d11da9dc5d9 100644 --- a/code/modules/countdown/countdown.dm +++ b/code/modules/countdown/countdown.dm @@ -93,9 +93,8 @@ var/obj/machinery/clonepod/C = attached_to if(!istype(C)) return - else if(C.occupant) - var/completion = round(C.get_completion()) - return completion + + return C.clone_progress /obj/effect/countdown/supermatter name = "supermatter damage" diff --git a/code/modules/mob/living/carbon/human/species/slimepeople.dm b/code/modules/mob/living/carbon/human/species/slimepeople.dm index 9a7cc5098eef..39c9e7f6bc34 100644 --- a/code/modules/mob/living/carbon/human/species/slimepeople.dm +++ b/code/modules/mob/living/carbon/human/species/slimepeople.dm @@ -139,8 +139,8 @@ for(var/l in H.bodyparts_by_name) var/obj/item/organ/external/E = H.bodyparts_by_name[l] if(!istype(E)) - var/list/limblist = H.dna.species.has_limbs[l] - var/obj/item/organ/external/limb = limblist["path"] + var/list/limb_list = H.dna.species.has_limbs[l] + var/obj/item/organ/external/limb = limb_list["path"] var/parent_organ = initial(limb.parent_organ) var/obj/item/organ/external/parentLimb = H.bodyparts_by_name[parent_organ] if(!istype(parentLimb)) diff --git a/icons/obj/cryogenic2.dmi b/icons/obj/cryogenic2.dmi index 6fcd3462abd655774e183c4db7fcbb6b03a5b4ce..a8ab1a9f3e98d329677418d2497ca58b53c4a607 100644 GIT binary patch literal 80841 zcmdqJbyQW|+x|<4C8UJ?V17!3gd0Yh3!>=^KHI8t|V7F3;8N#Ejk;+L~G0nORvPAUGxDMh(a}QR4dL&(pU%X!dBhZiY@6 zI26_(J>e-5yNNLu4Lf|xHR9M@F- zWHNxb7ovIFKueJpTY^-h|0Dea z(26jLbY&IXt5$X9<)Lc{b&x>h!Z|J3b2)oa^Zeqtamdz6`P;*ZtubB5Dy`dvpNXFG zxgP=|pT4x%ljlweTQ%rTxNWf~=gCO}A)f~>A4l|~JRo{|_pTzP&lK|GFbwvF$0Q~t z5N|db8ua_|b6>f6t6-zYj`g&Kdx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kqF7W}yWAawUQhYP{wU(K` ze}neWQ2n-n`%q9wD8{ZiZ%wXDFTTr!;PiT`?0#aw?8yC!{okZ2h!NzLI)_kPquH6; z{4S#+Rlt7z`sMR2OMTD&rp%j^TvICZ|jQ->7GJn#xw@=OO?6#en~Dq|oo_1R&O+i`krp>$Mf9@>6ok zw{fIV^u62LjLT=j(S*O2m*ogiRj|}6=lT%YETZ-(8g_rL%c)LR2Wmc&Ww_rYp)C8( z*sbv1d``tHv|ZphCwrP}ozsNGm6KPDy-#BJI`VQfrLQlqUc}VcSj8?s{k2u-9L8Np zKw-oq$T}JtCSLf$DnmA8zyCQhyYcH(e*CF#8$boqI|4m!1`6DdYELE79ecpcbN0He zb+#_LdXQ|kF1iz{U{x`b9N}N=4@u { - const { act, data } = useBackend(context); - const { activerecord, realname, health, unidentity, strucenzymes } = - modal.args; - const damages = health.split(' - '); - return ( -

    - - {realname} - - {damages.length > 1 ? ( - <> - - {damages[0]} - -  |  - - {damages[2]} - -  |  - - {damages[3]} - -  |  - - {damages[1]} - - - ) : ( - Unknown - )} - - - {unidentity} - - - {strucenzymes} - - -
    - ); -}; +const brokenFlag = 1 << 0; +const internalBleedingFlag = 1 << 5; +const burnWoundFlag = 1 << 7; export const CloningConsole = (props, context) => { const { act, data } = useBackend(context); - const { menu } = data; - modalRegisterBodyOverride('view_rec', viewRecordModalBodyOverride); + const { tab, has_scanner, pod_amount } = data; return ( - - - - - - - - -
    - -
    -
    -
    + + +
    + + + {has_scanner ? 'Online' : 'Missing'} + + + {pod_amount} + + +
    + + act('menu', { tab: 1 })} + > + Main Menu + + act('menu', { tab: 2 })} + > + Damage Configuration + + +
    + +
    ); }; -const CloningConsoleNavigation = (props, context) => { - const { act, data } = useBackend(context); - const { menu } = data; - return ( - - - - act('menu', { - num: 1, - }) - } - > - Main - - - act('menu', { - num: 2, - }) - } - > - Records - - - - ); -}; - const CloningConsoleBody = (props, context) => { const { data } = useBackend(context); - const { menu } = data; + const { tab } = data; let body; - if (menu === 1) { + if (tab === 1) { body = ; - } else if (menu === 2) { - body = ; + } else if (tab === 2) { + body = ; } return body; }; const CloningConsoleMain = (props, context) => { const { act, data } = useBackend(context); - const { - loading, - scantemp, - occupant, - locked, - can_brainscan, - scan_mode, - numberofpods, - pods, - selected_pod, - } = data; - const isLocked = locked && !!occupant; + const { pods, pod_amount, selected_pod_UID } = data; return ( - <> -
    - - Scanner Lock:  - -
    -
    - {numberofpods ? ( - pods.map((pod, i) => { - let podAction; - if (pod.status === 'cloning') { - podAction = ( - - {round(pod.progress, 0) + '%'} - - ); - } else if (pod.status === 'mess') { - podAction = ( - - ERROR - - ); - } else { - podAction = ( -
    - + Select + + + + + + {!pod['cloning'] && ( + Pod is inactive. + )} + {!!pod['cloning'] && ( + + )} + + + + + {pod['biomass']}/ + {pod['biomass_storage_capacity'] + + ' (' + + (100 * pod['biomass']) / + pod['biomass_storage_capacity'] + + '%)'} + + + + {pod['sanguine_reagent']} + + + {pod['osseous_reagent']} + + + + + + ))} + ); }; -const CloningConsoleRecords = (props, context) => { +const CloningConsoleDamage = (props, context) => { const { act, data } = useBackend(context); - const { records } = data; - if (!records.length) { - return ( - - - -
    - No records found. -
    -
    - ); - } + const { + selected_pod_data, + has_scanned, + scanner_has_patient, + feedback, + scan_successful, + cloning_cost, + has_scanner, + } = data; return ( - - {records.map((record, i) => ( - + + + } + > + {!has_scanned && ( + + {scanner_has_patient + ? 'No scan detected for current patient.' + : 'No patient is in the scanner.'} + + )} + {!!has_scanned && ( + {feedback['text']} + )} + +
    + + {(!scan_successful || !has_scanned) && ( + No valid scan detected. + )} + {!!scan_successful && !!has_scanned && ( + + + + + + + + + + + + + + selected_pod_data['biomass'] + ? 'bad' + : null + } + > + Biomass: {cloning_cost[0]}/ + {selected_pod_data['biomass']}/ + {selected_pod_data['biomass_storage_capacity']} + + + + + selected_pod_data['sanguine_reagent'] + ? 'bad' + : 'good' + } + > + Sanguine: {cloning_cost[1]}/ + {selected_pod_data['sanguine_reagent']}/ + {selected_pod_data['max_reagent_capacity']} + + + + selected_pod_data['osseous_reagent'] + ? 'bad' + : 'good' + } + > + Osseous: {cloning_cost[2]}/ + {selected_pod_data['osseous_reagent']}/ + {selected_pod_data['max_reagent_capacity']} + + + + + + + )} + +
    + + )} ); }; -const CloningConsoleTemp = (props, context) => { +const LimbsMenu = (props, context) => { const { act, data } = useBackend(context); - const { temp } = data; - if (!temp || !temp.text || temp.text.length <= 0) { - return; - } - - const tempProp = { [temp.style]: true }; + const { patient_limb_data, limb_list, desired_limb_data } = data; return ( - - - {temp.text} - -