\
NT's most well known products are its phoron based creations, especially those used in Cryotherapy. \
- It also boasts an prosthetic line, which is provided to its employees as needed, and is used as an incentive \
+ It also boasts a prosthetic line, which is provided to its employees as needed, and is used as an incentive \
for newly tested posibrains to remain with the company. \
\
NT's ships are named for famous scientists."
@@ -222,6 +322,12 @@
headquarters = "Luna, Sol"
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "NanoTrasen - Phoron Makes The Galaxy Go 'Round.",
+ "NanoTrasen - Join for the Medical, stay for the Company.",
+ "NanoTrasen - Advancing Humanity."
+ )
ship_prefixes = list("NTV" = "a general operations", "NEV" = "an exploration", "NGV" = "a hauling", "NDV" = "a patrol", "NRV" = "an emergency response", "NDV" = "an asset protection")
//Scientist naming scheme
ship_names = list(
@@ -247,13 +353,11 @@
"Nye",
"Hawking",
"Aristotle",
- "Von Braun",
"Kaku",
"Oppenheimer",
"Renwick",
"Hubble",
"Alcubierre",
- "Robineau",
"Glass"
)
// Note that the current station being used will be pruned from this list upon being instantiated
@@ -297,6 +401,12 @@
headquarters = "Luna, Sol"
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "Hephaestus Arms - When it comes to personal protection, nobody does it better.",
+ "Hephaestus Arms - Peace through Superior Firepower.",
+ "Hephaestus Arms - Don't be caught firing blanks."
+ )
ship_prefixes = list("HCV" = "a general operations", "HTV" = "a freight", "HLV" = "a munitions resupply", "HDV" = "an asset protection", "HDV" = "a preemptive deployment")
//War God Theme, updated
ship_names = list(
@@ -401,6 +511,12 @@
headquarters = "Toledo, New Ohio"
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "Vey-Medical. Medical care you can trust.",
+ "Vey-Medical. Only the finest in surgical equipment.",
+ "Vey-Medical. Because your patients deserve the best."
+ )
ship_prefixes = list("VMV" = "a general operations", "VTV" = "a transportation", "VHV" = "a medical resupply", "VSV" = "a research", "VRV" = "an emergency medical support")
// Diona names, mostly
ship_names = list(
@@ -415,6 +531,9 @@
"Fire Blown Out By Wind",
"Star That Fades From View",
"Eyes Which Turn Inwards",
+ "Still Water Upon An Endless Shore",
+ "Sunlight Glitters Upon Tranquil Sands",
+ "Growth Within The Darkest Abyss",
"Joy Without Which The World Would Come Undone",
"A Thousand Thousand Planets Dangling From Branches",
"Light Streaming Through Interminable Branches",
@@ -447,6 +566,13 @@
headquarters = "Earth, Sol"
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "Zeng-Hu! WE make the medicines that YOU need!",
+ "Zeng-Hu! Having acid reflux problems? Consult your local physician to see if Dylovene is right for YOU!",
+ "Zeng-Hu! Tired of getting left in the dust? Try Hyperzine! You'll never fall behind again!",
+ "Zeng-Hu! Life's aches and pains getting to you? Try Tramadol - available at any good pharmacy!"
+ )
ship_prefixes = list("ZHV" = "a general operations", "ZTV" = "a transportation", "ZMV" = "a medical resupply", "ZRV" = "a medical research")
//ship names: a selection of famous physicians who advanced the cause of medicine
ship_names = list(
@@ -527,6 +653,12 @@
headquarters = ""
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "Takahashi Appliances - keeping your home running smoothly.",
+ "W-T Automotive - keeping you on time, all the time.",
+ "Ward-Takahashi Electronics - keeping you in touch with the galaxy."
+ )
ship_prefixes = list("WTV" = "a general operations", "WTFV" = "a freight", "WTGV" = "a transport", "WTDV" = "an asset protection")
ship_names = list(
"Comet",
@@ -560,6 +692,8 @@
"Curtain",
"Planetar",
"Quasar",
+ "Blazar",
+ "Corona",
"Binary"
)
destination_names = list()
@@ -581,6 +715,12 @@
headquarters = ""
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "Bishop Cybernetics - only the best in personal augmentation.",
+ "Bishop Cybernetics - why settle for flesh when you can have metal?",
+ "Bishop Cybernetics - make a statement."
+ )
ship_prefixes = list("BCV" = "a general operations", "BCTV" = "a transportation", "BCSV" = "a research exchange")
//famous mechanical engineers
ship_names = list(
@@ -660,6 +800,10 @@
headquarters = "Shelf flotilla"
motto = ""
+ org_type = "neutral" //disables slogans for morpheus as they don't advertise, per the description above
+ /*
+ slogans = list()
+ */
ship_prefixes = list("MCV" = "a general operations", "MTV" = "a freight", "MDV" = "a market protection", "MSV" = "an outreach")
//periodic elements; something 'unusual' for the posibrain TSC without being full on 'quirky' culture ship names (much as I love them, they're done to death)
ship_names = list(
@@ -749,6 +893,12 @@
headquarters = ""
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "Xion Manufacturing - We have what you need.",
+ "Xion Manufacturing - The #1 choice of the SolCom Engineer's Union for 150 years.",
+ "Xion Manufacturing - Our products are as bulletproof as our contracts."
+ )
ship_prefixes = list("XMV" = "a general operations", "XTV" = "a hauling", "XFV" = "a bulk transport", "XIV" = "a resupply")
//martian mountains
ship_names = list(
@@ -803,6 +953,12 @@
headquarters = ""
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "The FTU. We look out for the little guy.",
+ "There's no Trade like Free Trade.",
+ "Join the Free Trade Union. Because anything worth doing, is worth doing for money." //rule of acquisition #13
+ )
ship_prefixes = list("FTV" = "a general operations", "FTRP" = "a trade protection", "FTRR" = "a piracy suppression", "FTLV" = "a logistical support", "FTTV" = "a mercantile", "FTDV" = "a market establishment")
//famous merchants and traders, taken from Civ6's Great Merchants, plus the TSC's founder
ship_names = list(
@@ -846,6 +1002,12 @@
headquarters = "Mars, Sol"
motto = "With Major Bill's, you won't pay major bills!"
+ org_type = "corporate"
+ slogans = list(
+ "With Major Bill's, you won't pay major bills!",
+ "Major Bill's - Private Couriers - General Shipping!",
+ "Major Bill's got you covered, now get out there!"
+ )
ship_prefixes = list("TTV" = "a general operations", "TTV" = "a transport", "TTV" = "a luxury transit", "TTV" = "a priority transit", "TTV" = "a secure data courier")
//ship names: big rivers
ship_names = list (
@@ -916,6 +1078,12 @@
headquarters = "Mars, Sol"
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "Grayson Mining - It's An Ore Effort, For The War Effort!",
+ "Grayson Mining - Winning The War On Ore!",
+ "Grayson Mining - Come On Down To Our Ore Chasm!"
+ )
ship_prefixes = list("GMV" = "a general operations", "GMT" = "a transport", "GMR" = "a resourcing", "GMS" = "a surveying", "GMH" = "a bulk transit")
//rocks
ship_names = list(
@@ -976,6 +1144,12 @@
headquarters = ""
motto = "Dum spiro spero"
+ org_type = "corporate"
+ slogans = list(
+ "Aether A&R - We're Absolutely Breathtaking.",
+ "Aether A&R - You Can Breathe Easy With Us!",
+ "Aether A&R - The SolCom's #1 Environmental Systems Provider."
+ )
ship_prefixes = list("AARV" = "a general operations", "AARE" = "a resource extraction", "AARG" = "a gas transport", "AART" = "a transport")
//weather systems/patterns
ship_names = list (
@@ -1025,6 +1199,12 @@
headquarters = ""
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "Focal Point Energistics - Sustainable Power for a Sustainable Future.",
+ "Focal Point Energistics - Powering The Future Before It Even Happens.",
+ "Focal Point Energistics - Let There Be Light."
+ )
ship_prefixes = list("FPV" = "a general operations", "FPH" = "a transport", "FPC" = "an energy relay", "FPT" = "a fuel transport")
//famous electrical engineers
ship_names = list (
@@ -1085,6 +1265,12 @@
headquarters = "Spin Aerostat, Jupiter"
motto = "Sic itur ad astra"
+ org_type = "corporate"
+ slogans = list(
+ "StarFlight - travel the stars.",
+ "StarFlight - bringing you to new horizons.",
+ "StarFlight - getting you where you need to be since 2137."
+ )
ship_prefixes = list("SFI-X" = "a VIP liner", "SFI-L" = "a luxury liner", "SFI-B" = "a business liner", "SFI-E" = "an economy liner", "SFI-M" = "a mixed class liner", "SFI-S" = "a sightseeing", "SFI-M" = "a wedding", "SFI-O" = "a marketing", "SFI-S" = "a safari", "SFI-A" = "an aquatic adventure")
flight_types = list( //no military-sounding ones here
"flight",
@@ -1143,6 +1329,12 @@
headquarters = ""
motto = "News from all across the spectrum"
+ org_type = "corporate"
+ slogans = list(
+ "Oculum - All News, All The Time.",
+ "Oculum - We Keep An Eye Out.",
+ "Oculum - Your Eye On The Galaxy."
+ )
ship_prefixes = list("OBV" = "an investigation", "OBV" = "a distribution", "OBV" = "a journalism", "OBV" = "a general operations")
destination_names = list(
"Oculus HQ"
@@ -1158,6 +1350,12 @@
headquarters = "Alpha Centauri"
motto = "The largest brands of food and drink - most of them are Centauri."
+ org_type = "corporate"
+ slogans = list(
+ "Centauri Provisions Bread Tubes - They're Not Just Edible, They're |Breadible!|",
+ "Centauri Provisions SkrellSnax - Not |Just| For Skrell!",
+ "Centauri Provisions Space Mountain Wind - It'll Take Your |Breath| Away!"
+ )
ship_prefixes = list("CPTV" = "a transport", "CPCV" = "a catering", "CPRV" = "a resupply", "CPV" = "a general operations")
destination_names = list(
"Centauri Provisions HQ",
@@ -1175,6 +1373,12 @@
headquarters = ""
motto = "Engine designs, emergency generators, and old memories"
+ org_type = "corporate"
+ slogans = list(
+ "Einstein Engines - you don't have to be Einstein to use |our| engines!",
+ "Einstein Engines - bringing power to the people.",
+ "Einstein Engines - because it's the smart thing to do."
+ )
ship_prefixes = list("EETV" = "a transport", "EERV" = "a research", "EEV" = "a general operations")
destination_names = list(
"Einstein HQ"
@@ -1190,6 +1394,12 @@
headquarters = ""
motto = "We build it - you fly it"
+ org_type = "corporate"
+ slogans = list(
+ "Wulf Aeronautics. We build it - you fly it.",
+ "Wulf Aeronautics, the Commonwealth's favorite shipwrights.",
+ "Wulf Aeronautics, building tomorrow's ships today."
+ )
ship_prefixes = list("WATV" = "a transport", "WARV" = "a repair", "WAV" = "a general operations")
destination_names = list(
"Wulf Aeronautics HQ",
@@ -1207,6 +1417,12 @@
headquarters = ""
motto = ""
+ org_type = "corporate"
+ slogans = list(
+ "Why choose |luxury| when you can choose |Gilthari|?",
+ "|Gilthari|. Because |you're| worth it.",
+ "|Gilthari|. Why settle for |anything| less?"
+ )
ship_prefixes = list("GETV" = "a transport", "GECV" = "a luxury catering", "GEV" = "a general operations")
//precious stones
ship_names = list(
@@ -1283,6 +1499,12 @@
headquarters = "N/A"
motto = "one man's trash is another man's treasure"
+ org_type = "corporate"
+ slogans = list(
+ "Coyote Salvage Corp. 'cause your trash ain't gonna clean itself.",
+ "Coyote Salvage Corp. 'cause one man's trash is another man's treasure.",
+ "Coyote Salvage Corp. We'll take your scrap - but not your crap."
+ )
ship_prefixes = list("CSV" = "a salvage", "CRV" = "a recovery", "CTV" = "a transport", "CSV" = "a shipbreaking", "CHV" = "a towing")
//mostly-original, maybe some references, and more than a few puns
ship_names = list(
@@ -1351,6 +1573,12 @@
headquarters = "Titan, Sol"
motto = "the whole is greater than the sum of its parts"
+ org_type = "corporate"
+ slogans = list(
+ "Chimera Genetics. Find your true self today!",
+ "Chimera Genetics. Bring us your genes and we'll clean them right up.",
+ "Chimera Genetics. Better bodies for a better tomorrow."
+ )
ship_prefixes = list("CGV" = "a general operations", "CGT" = "a transport", "CGT" = "a delivery", "CGH" = "a medical")
//edgy mythological critters!
ship_names = list(
@@ -1506,6 +1734,7 @@
sysdef = TRUE //we're the space law, we don't impersonate people and stuff
autogenerate_destination_names = FALSE //don't add extra destinations to our pool, or else we leave the system which makes no sense
+ org_type = "system defense"
ship_prefixes = list ("SDB" = "a patrol", "SDF" = "a patrol", "SDV" = "a patrol", "SDB" = "an escort", "SDF" = "an escort", "SDV" = "an escort", "SAR" = "a search and rescue", "SDT" = "a logistics", "SDT" = "a resupply", "SDJ" = "a prisoner transport") //b = boat, f = fleet (generic), v = vessel, t = tender
//ship names: weapons
ship_names = list(
@@ -1605,6 +1834,7 @@
sysdef = FALSE
autogenerate_destination_names = TRUE //the events we get called for don't fire a destination, but we need entries to avoid runtimes.
+ org_type = "smuggler"
ship_prefixes = list ("suspected smuggler" = "an illegal smuggling", "possible smuggler" = "an illegal smuggling") //as assigned by control, second part shouldn't even come up
//blank out our shipnames for redesignation
ship_names = list(
@@ -1781,6 +2011,7 @@
hostile = TRUE
autogenerate_destination_names = TRUE //the events we get called for don't fire a destination, but we need entries to avoid runtimes.
+ org_type = "pirate"
ship_prefixes = list ("known pirate" = "a piracy", "suspected pirate" = "a piracy", "rogue privateer" = "a piracy", "Cartel enforcer" = "a piracy", "known outlaw" = "a piracy", "bandit" = "a piracy", "roving corsair" = "a piracy", "illegal salvager" = "an illegal salvage", "rogue mercenary" = "a mercenary") //as assigned by control, second part shouldn't even come up, but it exists to avoid hiccups/weirdness just in case
ship_names = list(
"Morally Bankrupt",
@@ -1953,6 +2184,7 @@
hostile = TRUE
autogenerate_destination_names = TRUE
+ org_type = "pirate"
ship_prefixes = list("Ue-Katish pirate" = "a raiding", "Ue-Katish bandit" = "a raiding", "Ue-Katish raider" = "a raiding", "Ue-Katish enforcer" = "an enforcement")
ship_names = list(
"Keqxuer'xeu's Prize",
@@ -1987,6 +2219,7 @@
hostile = TRUE
autogenerate_destination_names = TRUE //the events we get called for don't fire a destination, but we need *some* entries to avoid runtimes.
+ org_type = "pirate"
ship_prefixes = list("vox marauder" = "a marauding", "vox raider" = "a raiding", "vox ravager" = "a raiding", "vox corsair" = "a raiding") //as assigned by control, second part shouldn't even come up
//blank out our shipnames for redesignation
ship_names = list(
@@ -2063,6 +2296,7 @@
motto = "Nil Mortalibus Ardui Est" // Latin, because latin. Says 'Nothing is too steep for mortals'
autogenerate_destination_names = TRUE
+ org_type = "government"
ship_prefixes = list("CWS-A" = "an administrative", "CWS-T" = "a transportation", "CWS-D" = "a diplomatic", "CWS-F" = "a freight", "CWS-J" = "a prisoner transfer")
//earth's biggest impact craters
ship_names = list(
@@ -2158,6 +2392,7 @@
headquarters = "Paraiso a Àstrea"
motto = "Liberty to the Stars!"
+ org_type = "government"
ship_prefixes = list("UFHV" = "military", "FFHV" = "classified")
ship_names = list(
"Bulwark of the Free",
@@ -2236,6 +2471,7 @@
headquarters = ""
motto = ""
+ org_type = "government"
ship_prefixes = list("ECS-M" = "a military", "ECS-T" = "a transport", "ECS-T" = "a special transport", "ECS-D" = "a diplomatic") //The Special Transport is SLAAAAVES. but let's not advertise that openly.
ship_names = list(
"Bring Me Wine!",
@@ -2291,6 +2527,7 @@
headquarters = "The Pact, Myria"
motto = ""
+ org_type = "government"
ship_prefixes = list("SFM-M" = "a military", "SFM-M" = "a patrol") // The Salthans don't do anything else.
flight_types = list(
"mission",
@@ -2394,6 +2631,7 @@
motto = ""
autogenerate_destination_names = TRUE //big list of own holdings to come
+ org_type = "government"
//the tesh expeditionary fleet's closest analogue in modern terms would be the US Army Corps of Engineers, just with added combat personnel as well
ship_prefixes = list("TEF" = "a diplomatic", "TEF" = "a peacekeeping", "TEF" = "an escort", "TEF" = "an exploration", "TEF" = "a survey", "TEF" = "an expeditionary", "TEF" = "a pioneering")
//TODO: better ship names? I just took a bunch of random teshnames from the Random Name button and added a word.
@@ -2441,6 +2679,7 @@
motto = "Si Vis Pacem Para Bellum" //if you wish for peace, prepare for war
autogenerate_destination_names = TRUE
+ org_type = "military"
ship_prefixes = list ("USDF" = "a logistical", "USDF" = "a training", "USDF" = "a patrol", "USDF" = "a piracy suppression", "USDF" = "a peacekeeping", "USDF" = "a relief", "USDF" = "an escort", "USDF" = "a search and rescue", "USDF" = "a classified")
flight_types = list(
"mission",
@@ -2539,6 +2778,7 @@
motto = ""
autogenerate_destination_names = TRUE
+ org_type = "military"
ship_prefixes = list("PCRC" = "a risk control", "PCRC" = "a private security")
flight_types = list(
"flight",
@@ -2602,6 +2842,7 @@
motto = "Strength in Numbers"
autogenerate_destination_names = TRUE
+ org_type = "military"
ship_prefixes = list("HPF" = "a secure freight", "HPT" = "a training", "HPS" = "a logistics", "HPV" = "a patrol", "HPH" = "a bounty hunting", "HPX" = "an experimental", "HPC" = "a command", "HPI" = "a mercy")
flight_types = list(
"flight",
@@ -2686,6 +2927,7 @@
motto = "Aut Neca Aut Necare"
autogenerate_destination_names = TRUE
+ org_type = "military"
ship_prefixes = list("SAARE" = "a secure freight", "SAARE" = "a training", "SAARE" = "a logistics", "SAARE" = "a patrol", "SAARE" = "a security", "SAARE" = "an experimental", "SAARE" = "a command", "SAARE" = "a classified")
flight_types = list(
"flight",
diff --git a/code/modules/casino/casino_prize_vendor.dm b/code/modules/casino/casino_prize_vendor.dm
index d82f8ef72ac..0355a73bb4f 100644
--- a/code/modules/casino/casino_prize_vendor.dm
+++ b/code/modules/casino/casino_prize_vendor.dm
@@ -88,8 +88,8 @@
CASINO_PRIZE("Dolphin mask", /obj/item/clothing/mask/dolphin, 1, 50, "clothing"),
CASINO_PRIZE("Demon mask", /obj/item/clothing/mask/demon, 1, 50, "clothing"),
CASINO_PRIZE("Chameleon mask", /obj/item/clothing/under/chameleon, 1, 250, "clothing"),
- CASINO_PRIZE("Ian costume", /obj/item/clothing/suit/storage/hooded/ian_costume, 1, 50, "clothing"),
- CASINO_PRIZE("Carp costume", /obj/item/clothing/suit/storage/hooded/carp_costume, 1, 50, "clothing"),
+ CASINO_PRIZE("Ian costume", /obj/item/clothing/suit/storage/hooded/costume/ian, 1, 50, "clothing"),
+ CASINO_PRIZE("Carp costume", /obj/item/clothing/suit/storage/hooded/costume/carp, 1, 50, "clothing"),
)
item_list["Miscellaneous"] = list(
CASINO_PRIZE("Toy sword", /obj/item/toy/sword, 1, 50, "misc"),
diff --git a/code/modules/client/preference_setup/general/02_language.dm b/code/modules/client/preference_setup/general/02_language.dm
index 6128eb2c64a..21214895355 100644
--- a/code/modules/client/preference_setup/general/02_language.dm
+++ b/code/modules/client/preference_setup/general/02_language.dm
@@ -30,7 +30,7 @@
// Sanitize illegal languages
for(var/language in pref.alternate_languages)
var/datum/language/L = GLOB.all_languages[language]
- if(!istype(L) || (L.flags & RESTRICTED) || (!(language in S.secondary_langs) && !is_lang_whitelisted(pref.client, L)))
+ if(!istype(L) || (L.flags & RESTRICTED) || (!(language in S.secondary_langs) && pref.client && !is_lang_whitelisted(pref.client, L)))
testing("LANGSANI: Removed [L?.name || "lang not found"] from [pref.client]'s character [pref.real_name || "-name not yet loaded-"] because it failed allowed checks")
pref.alternate_languages -= language
diff --git a/code/modules/client/preference_setup/loadout/loadout_gloves.dm b/code/modules/client/preference_setup/loadout/loadout_gloves.dm
index 2564b8d98e5..fe56eea8684 100644
--- a/code/modules/client/preference_setup/loadout/loadout_gloves.dm
+++ b/code/modules/client/preference_setup/loadout/loadout_gloves.dm
@@ -92,14 +92,17 @@
ringtype["engagement ring"] = /obj/item/clothing/gloves/ring/engagement
ringtype["signet ring"] = /obj/item/clothing/gloves/ring/seal/signet
ringtype["masonic ring"] = /obj/item/clothing/gloves/ring/seal/mason
- ringtype["ring, steel"] = /obj/item/clothing/gloves/ring/material/steel
- ringtype["ring, iron"] = /obj/item/clothing/gloves/ring/material/iron
- ringtype["ring, silver"] = /obj/item/clothing/gloves/ring/material/silver
- ringtype["ring, gold"] = /obj/item/clothing/gloves/ring/material/gold
- ringtype["ring, platinum"] = /obj/item/clothing/gloves/ring/material/platinum
ringtype["ring, glass"] = /obj/item/clothing/gloves/ring/material/glass
ringtype["ring, wood"] = /obj/item/clothing/gloves/ring/material/wood
ringtype["ring, plastic"] = /obj/item/clothing/gloves/ring/material/plastic
+ ringtype["ring, iron"] = /obj/item/clothing/gloves/ring/material/iron
+ ringtype["ring, bronze"] = /obj/item/clothing/gloves/ring/material/bronze
+ ringtype["ring, steel"] = /obj/item/clothing/gloves/ring/material/steel
+ ringtype["ring, copper"] = /obj/item/clothing/gloves/ring/material/copper
+ ringtype["ring, silver"] = /obj/item/clothing/gloves/ring/material/silver
+ ringtype["ring, gold"] = /obj/item/clothing/gloves/ring/material/gold
+ ringtype["ring, platinum"] = /obj/item/clothing/gloves/ring/material/platinum
+
gear_tweaks += new/datum/gear_tweak/path(ringtype)
/datum/gear/gloves/circuitry
diff --git a/code/modules/client/preference_setup/loadout/loadout_mask.dm b/code/modules/client/preference_setup/loadout/loadout_mask.dm
index 5de81409f3f..7336f5e4f75 100644
--- a/code/modules/client/preference_setup/loadout/loadout_mask.dm
+++ b/code/modules/client/preference_setup/loadout/loadout_mask.dm
@@ -29,4 +29,25 @@
/datum/gear/mask/plaguedoctor2
display_name = "golden plague doctor's mask"
path = /obj/item/clothing/mask/gas/plaguedoctor/gold
- cost = 3 ///Because it functions as a gas mask, and therefore has a mechanical advantage.
\ No newline at end of file
+ cost = 3 ///Because it functions as a gas mask, and therefore has a mechanical advantage.
+
+/datum/gear/mask/papermask
+ display_name = "paper mask"
+ path = /obj/item/clothing/mask/paper
+
+/datum/gear/mask/emotionalmask
+ display_name = "emotional mask"
+ path = /obj/item/clothing/mask/emotions
+
+/datum/gear/mask/gaiter
+ display_name = "neck gaiter selection"
+ path = /obj/item/clothing/mask/gaiter
+ cost = 1
+
+/datum/gear/mask/gaiter/New()
+ ..()
+ var/list/gaiters = list()
+ for(var/gaiter in typesof(/obj/item/clothing/mask/gaiter))
+ var/obj/item/clothing/mask/gaiter_type = gaiter
+ gaiters[initial(gaiter_type.name)] = gaiter_type
+ gear_tweaks += new/datum/gear_tweak/path(sortTim(gaiters, /proc/cmp_text_asc))
\ No newline at end of file
diff --git a/code/modules/client/preference_setup/loadout/loadout_utility.dm b/code/modules/client/preference_setup/loadout/loadout_utility.dm
index fb396762f5e..4a945f442c2 100644
--- a/code/modules/client/preference_setup/loadout/loadout_utility.dm
+++ b/code/modules/client/preference_setup/loadout/loadout_utility.dm
@@ -89,37 +89,37 @@
display_name = "flashlight"
path = /obj/item/device/flashlight
-/datum/gear/utility/flashlight_blue
- display_name = "flashlight, blue"
- path = /obj/item/device/flashlight/color
-
-/datum/gear/utility/flashlight_orange
- display_name = "flashlight, orange"
- path = /obj/item/device/flashlight/color/orange
-
-/datum/gear/utility/flashlight_red
- display_name = "flashlight, red"
- path = /obj/item/device/flashlight/color/red
-
-/datum/gear/utility/flashlight_yellow
- display_name = "flashlight, yellow"
- path = /obj/item/device/flashlight/color/yellow
-
/datum/gear/utility/maglight
display_name = "flashlight, maglight"
path = /obj/item/device/flashlight/maglight
cost = 2
+/datum/gear/utility/flashlight/color
+ display_name = "flashlight, small (selection)"
+ path = /obj/item/device/flashlight/color
+
+/datum/gear/utility/flashlight/color/New()
+ ..()
+ var/list/flashlights = list(
+ "Blue Flashlight" = /obj/item/device/flashlight/color,
+ "Red Flashlight" = /obj/item/device/flashlight/color/red,
+ "Green Flashlight" = /obj/item/device/flashlight/color/green,
+ "Yellow Flashlight" = /obj/item/device/flashlight/color/yellow,
+ "Purple Flashlight" = /obj/item/device/flashlight/color/purple,
+ "Orange Flashlight" = /obj/item/device/flashlight/color/orange
+ )
+ gear_tweaks += new/datum/gear_tweak/path(flashlights)
+
/datum/gear/utility/battery
display_name = "cell, device"
path = /obj/item/weapon/cell/device
/datum/gear/utility/pen
- display_name = "Fountain Pen"
+ display_name = "fountain pen"
path = /obj/item/weapon/pen/fountain
/datum/gear/utility/umbrella
- display_name = "Umbrella"
+ display_name = "umbrella"
path = /obj/item/weapon/melee/umbrella
cost = 3
@@ -131,7 +131,7 @@
display_name = "wheelchair selection"
path = /obj/item/wheelchair
cost = 4
-
+
/datum/gear/utility/wheelchair/New()
..()
gear_tweaks += gear_tweak_free_color_choice
diff --git a/code/modules/client/preference_setup/occupation/occupation.dm b/code/modules/client/preference_setup/occupation/occupation.dm
index 116bd1a9ad8..9ce7f08026c 100644
--- a/code/modules/client/preference_setup/occupation/occupation.dm
+++ b/code/modules/client/preference_setup/occupation/occupation.dm
@@ -148,8 +148,11 @@
. += "[rank] \[WHITELIST ONLY] "
continue
//VOREStation Add End
- if(job.minimum_character_age && user.client && (user.client.prefs.age < job.minimum_character_age))
- . += "[rank] \[MINIMUM CHARACTER AGE: [job.minimum_character_age]] "
+ if(job.is_species_banned(user.client.prefs.species, user.client.prefs.organ_data["brain"]) == TRUE)
+ . += "[rank] \[THIS RACE/BRAIN TYPE CANNOT TAKE THIS ROLE.\] "
+ continue
+ if((job.minimum_character_age || job.min_age_by_species) && user.client && (user.client.prefs.age < job.get_min_age(user.client.prefs.species, user.client.prefs.organ_data["brain"])))
+ . += "[rank] \[MINIMUM CHARACTER AGE FOR SELECTED RACE/BRAIN TYPE: [job.get_min_age(user.client.prefs.species, user.client.prefs.organ_data["brain"])]\] "
continue
if((pref.job_civilian_low & ASSISTANT) && job.type != /datum/job/assistant)
. += "[rank] "
diff --git a/code/modules/client/preference_setup/vore/07_traits.dm b/code/modules/client/preference_setup/vore/07_traits.dm
index d953221b201..0e5b6a24205 100644
--- a/code/modules/client/preference_setup/vore/07_traits.dm
+++ b/code/modules/client/preference_setup/vore/07_traits.dm
@@ -112,12 +112,17 @@
else if(!pref.custom_base || !(pref.custom_base in GLOB.custom_species_bases))
pref.custom_base = SPECIES_HUMAN
+ pref.custom_say = lowertext(trim(pref.custom_say))
+ pref.custom_whisper = lowertext(trim(pref.custom_whisper))
+ pref.custom_ask = lowertext(trim(pref.custom_ask))
+ pref.custom_exclaim = lowertext(trim(pref.custom_exclaim))
+
/datum/category_item/player_setup_item/vore/traits/copy_to_mob(var/mob/living/carbon/human/character)
character.custom_species = pref.custom_species
- character.custom_say = pref.custom_say
- character.custom_ask = pref.custom_ask
- character.custom_whisper = pref.custom_whisper
- character.custom_exclaim = pref.custom_exclaim
+ character.custom_say = lowertext(trim(pref.custom_say))
+ character.custom_ask = lowertext(trim(pref.custom_ask))
+ character.custom_whisper = lowertext(trim(pref.custom_whisper))
+ character.custom_exclaim = lowertext(trim(pref.custom_exclaim))
if(character.isSynthetic()) //Checking if we have a synth on our hands, boys.
pref.dirty_synth = 1
diff --git a/code/modules/client/verbs/suicide.dm b/code/modules/client/verbs/suicide.dm
index 7c96267fafb..52841c84648 100644
--- a/code/modules/client/verbs/suicide.dm
+++ b/code/modules/client/verbs/suicide.dm
@@ -1,6 +1,6 @@
/mob/var/suiciding = 0
-/mob/living/carbon/human/verb/suicide()
+/mob/living/carbon/human/verb/suicide() /// At best, useful for admins to see if it's being called.
set hidden = 1
if (stat == DEAD)
@@ -10,83 +10,9 @@
if (!ticker)
to_chat(src, "You can't commit suicide before the game starts!")
return
-
- if(!player_is_antag(mind))
- message_admins("[ckey] has tried to suicide, but they were not permitted due to not being antagonist as human.", 1)
- to_chat(src, "No. Adminhelp if there is a legitimate reason.")
- return
-
- if (suiciding)
- to_chat(src, "You're already committing suicide! Be patient!")
- return
-
- var/confirm = tgui_alert(usr, "Are you sure you want to commit suicide?", "Confirm Suicide", list("Yes", "No"))
-
- if(confirm == "Yes")
- if(!canmove || restrained()) //just while I finish up the new 'fun' suiciding verb. This is to prevent metagaming via suicide
- to_chat(src, "You can't commit suicide whilst restrained! ((You can type Ghost instead however.))")
- return
- suiciding = 15
- does_not_breathe = 0 //Prevents ling-suicide zombies, or something
- var/obj/item/held_item = get_active_hand()
- if(held_item)
- var/damagetype = held_item.suicide_act(src)
- if(damagetype)
- log_and_message_admins("[key_name(src)] commited suicide using \a [held_item]")
- var/damage_mod = 1
- switch(damagetype) //Sorry about the magic numbers.
- //brute = 1, burn = 2, tox = 4, oxy = 8
- if(15) //4 damage types
- damage_mod = 4
-
- if(6, 11, 13, 14) //3 damage types
- damage_mod = 3
-
- if(3, 5, 7, 9, 10, 12) //2 damage types
- damage_mod = 2
-
- if(1, 2, 4, 8) //1 damage type
- damage_mod = 1
-
- else //This should not happen, but if it does, everything should still work
- damage_mod = 1
-
- //Do 175 damage divided by the number of damage types applied.
- if(damagetype & BRUTELOSS)
- adjustBruteLoss(30/damage_mod) //hack to prevent gibbing
- adjustOxyLoss(145/damage_mod)
-
- if(damagetype & FIRELOSS)
- adjustFireLoss(175/damage_mod)
-
- if(damagetype & TOXLOSS)
- adjustToxLoss(175/damage_mod)
-
- if(damagetype & OXYLOSS)
- adjustOxyLoss(175/damage_mod)
-
- //If something went wrong, just do normal oxyloss
- if(!(damagetype | BRUTELOSS) && !(damagetype | FIRELOSS) && !(damagetype | TOXLOSS) && !(damagetype | OXYLOSS))
- adjustOxyLoss(max(175 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0))
-
- updatehealth()
- return
-
- log_and_message_admins("[key_name(src)] commited suicide")
-
- var/datum/gender/T = gender_datums[get_visible_gender()]
-
- var/suicidemsg
- suicidemsg = pick("[src] is attempting to bite [T.his] tongue off! It looks like [T.he] [T.is] trying to commit suicide. ", \
- "[src] is jamming [T.his] thumbs into [T.his] eye sockets! It looks like [T.he] [T.is] trying to commit suicide. ", \
- "[src] is twisting [T.his] own neck! It looks like [T.he] [T.is] trying to commit suicide. ", \
- "[src] is holding [T.his] breath! It looks like [T.he] [T.is] trying to commit suicide. ")
- if(isSynthetic())
- suicidemsg = "[src] is attempting to switch [T.his] power off! It looks like [T.he] [T.is] trying to commit suicide. "
- visible_message(suicidemsg)
-
- adjustOxyLoss(max(175 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0))
- updatehealth()
+
+ to_chat(src, "No. Adminhelp if there is a legitimate reason, and please review our server rules. ")
+ message_admins("[ckey] has tried to trigger the suicide verb as human, but it is currently disabled.")
/mob/living/carbon/brain/verb/suicide()
set hidden = 1
@@ -165,4 +91,4 @@
M.show_message("[src] flashes a message across its screen, \"Wiping core files. Please acquire a new personality to continue using pAI device functions.\" ", 3, "[src] bleeps electronically. ", 2)
death(0)
else
- to_chat(src, "Aborting suicide attempt.")
+ to_chat(src, "Aborting suicide attempt.")
\ No newline at end of file
diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm
index 3db7ad58cf4..7f45fcfdb3f 100644
--- a/code/modules/clothing/glasses/glasses.dm
+++ b/code/modules/clothing/glasses/glasses.dm
@@ -292,6 +292,12 @@ BLIND // can't see anything
item_state_slots = list(slot_r_hand_str = "glasses", slot_l_hand_str = "glasses")
body_parts_covered = 0
+/obj/item/clothing/glasses/artist
+ name = "4-D Glasses"
+ desc = "You can see in every dimension, and get four times the amount of headache!"
+ icon_state = "artist"
+ item_state = "artist_glasses"
+
/obj/item/clothing/glasses/gglasses
name = "green glasses"
desc = "Forest green glasses, like the kind you'd wear when hatching a nasty scheme."
@@ -590,3 +596,4 @@ BLIND // can't see anything
to_chat(usr, "You push \the [src] up from in front of your eyes.")
update_clothing_icon()
usr.update_action_buttons()
+
diff --git a/code/modules/clothing/head/hood.dm b/code/modules/clothing/head/hood.dm
index db51bcb8f99..a6bef8b838b 100644
--- a/code/modules/clothing/head/hood.dm
+++ b/code/modules/clothing/head/hood.dm
@@ -192,4 +192,10 @@
/obj/item/clothing/head/hood/techpriest
name = "techpriest hood"
desc = "A techpriest hood."
- icon_state = "techpriesthood"
\ No newline at end of file
+ icon_state = "techpriesthood"
+
+/obj/item/clothing/head/hood/siffet_hood
+ name = "siffet hood"
+ desc = "A hood that looks vaguely like a siffet's head. Guaranteed to traumatize your Promethean coworkers."
+ icon_state = "siffet"
+ item_state_slots = list(slot_r_hand_str = "siffet", slot_l_hand_str = "siffet")
diff --git a/code/modules/clothing/masks/miscellaneous.dm b/code/modules/clothing/masks/miscellaneous.dm
index d972cf82cc8..5b94f947411 100644
--- a/code/modules/clothing/masks/miscellaneous.dm
+++ b/code/modules/clothing/masks/miscellaneous.dm
@@ -294,4 +294,97 @@
desc = "A black veil, typically worn at funerals or by goths."
w_class = ITEMSIZE_TINY
body_parts_covered = FACE
- icon_state = "veil"
\ No newline at end of file
+ icon_state = "veil"
+
+/obj/item/clothing/mask/paper
+ name = "paper mask"
+ desc = "A neat, circular mask made out of paper. Perhaps you could try drawing on it with a pen!"
+ w_class = ITEMSIZE_SMALL
+ body_parts_covered = FACE
+ icon_state = "papermask"
+
+/obj/item/clothing/mask/paper/attackby(obj/item/I as obj, mob/living/user as mob, proximity)
+ if(!proximity) return
+ if(istype(I, /obj/item/weapon/pen))
+ var/drawtype = tgui_alert(user, "Choose what you'd like to draw.", "Faces", list("blank","neutral","eyes","sleeping", "heart", "core", "plus", "square", "bullseye", "vertical", "horizontal", "X", "bug eyes", "double", "mark" ))
+ switch(drawtype)
+ if("blank")
+ src.icon_state = "papermask"
+ if("neutral")
+ src.icon_state = "neutralmask"
+ if("eyes")
+ src.icon_state = "eyemask"
+ if("sleeping")
+ src.icon_state = "sleepingmask"
+ if("heart")
+ src.icon_state = "heartmask"
+ if("core")
+ src.icon_state = "coremask"
+ if("plus")
+ src.icon_state = "plusmask"
+ if("square")
+ src.icon_state = "squaremask"
+ if("bullseye")
+ src.icon_state = "bullseyemask"
+ if("vertical")
+ src.icon_state = "verticalmask"
+ if("horizontal")
+ src.icon_state = "horizontalmask"
+ if("X")
+ src.icon_state = "xmask"
+ if("bug eyes")
+ src.icon_state = "bugmask"
+ if("double")
+ src.icon_state = "doublemask"
+ if("mark")
+ src.icon_state = "markmask"
+ return
+
+/obj/item/clothing/mask/emotions
+ name = "emotional mask"
+ desc = "Express your happiness or hide your sorrows with this modular cutout. Draw your current emotions onto it with a pen!"
+ w_class = ITEMSIZE_SMALL
+ body_parts_covered = FACE
+ icon_state = "joy"
+
+/obj/item/clothing/mask/emotions/attackby(obj/item/I as obj, mob/living/user as mob, proximity)
+ if(!proximity) return
+ if(istype(I, /obj/item/weapon/pen))
+ var/drawtype = tgui_alert(user, "Choose what emotions you'd like to display.", "Emotions", list("joy","pensive","angry","flushed" ))
+ switch(drawtype)
+ if("joy")
+ src.icon_state = "joy"
+ if("pensive")
+ src.icon_state = "pensive"
+ if("angry")
+ src.icon_state = "angry"
+ if("flushed")
+ src.icon_state = "flushed"
+ return
+
+//Gaiter scarves
+/obj/item/clothing/mask/gaiter
+ name = "red neck gaiter"
+ desc = "A slightly worn neck gaiter, it's loose enough to be worn comfortably like a scarf. Commonly used by outdoorsmen and mercenaries, both to keep warm and keep debris away from the face."
+ icon_state = "gaiter_red"
+
+/obj/item/clothing/mask/gaiter/attack_self(mob/user as mob)
+ if(src.icon_state == initial(icon_state))
+ src.icon_state = "[icon_state]_up"
+ to_chat(user, "You pull the gaiter up over your nose.")
+ else
+ src.icon_state = initial(icon_state)
+ to_chat(user, "You tug the gaiter down around your neck.")
+ update_clothing_icon() //so our mob-overlays update
+
+/obj/item/clothing/mask/gaiter/tan
+ name = "tan neck gaiter"
+ icon_state = "gaiter_tan"
+
+/obj/item/clothing/mask/gaiter/gray
+ name = "gray neck gaiter"
+ icon_state = "gaiter_gray"
+
+/obj/item/clothing/mask/gaiter/green
+ name = "green neck gaiter"
+ icon_state = "gaiter_green"
\ No newline at end of file
diff --git a/code/modules/clothing/rings/material.dm b/code/modules/clothing/rings/material.dm
index 218065b2533..8fdbda704e2 100644
--- a/code/modules/clothing/rings/material.dm
+++ b/code/modules/clothing/rings/material.dm
@@ -20,28 +20,52 @@
return material
/obj/item/clothing/gloves/ring/material/wood/New(var/newloc)
- ..(newloc, "wood")
+ ..(newloc, MAT_WOOD)
/obj/item/clothing/gloves/ring/material/plastic/New(var/newloc)
- ..(newloc, "plastic")
+ ..(newloc, MAT_PLASTIC)
/obj/item/clothing/gloves/ring/material/iron/New(var/newloc)
- ..(newloc, "iron")
-
-/obj/item/clothing/gloves/ring/material/steel/New(var/newloc)
- ..(newloc, "steel")
-
-/obj/item/clothing/gloves/ring/material/silver/New(var/newloc)
- ..(newloc, "silver")
-
-/obj/item/clothing/gloves/ring/material/gold/New(var/newloc)
- ..(newloc, "gold")
-
-/obj/item/clothing/gloves/ring/material/platinum/New(var/newloc)
- ..(newloc, "platinum")
-
-/obj/item/clothing/gloves/ring/material/phoron/New(var/newloc)
- ..(newloc, "phoron")
+ ..(newloc, MAT_IRON)
/obj/item/clothing/gloves/ring/material/glass/New(var/newloc)
- ..(newloc, "glass")
+ ..(newloc, MAT_GLASS)
+
+/obj/item/clothing/gloves/ring/material/steel/New(var/newloc)
+ ..(newloc, MAT_STEEL)
+
+/obj/item/clothing/gloves/ring/material/silver/New(var/newloc)
+ ..(newloc, MAT_SILVER)
+
+/obj/item/clothing/gloves/ring/material/gold/New(var/newloc)
+ ..(newloc, MAT_GOLD)
+
+/obj/item/clothing/gloves/ring/material/platinum/New(var/newloc)
+ ..(newloc, MAT_PLATINUM)
+
+/obj/item/clothing/gloves/ring/material/phoron/New(var/newloc)
+ ..(newloc, MAT_PHORON)
+
+/obj/item/clothing/gloves/ring/material/titanium/New(var/newloc)
+ ..(newloc, MAT_TITANIUM)
+
+/obj/item/clothing/gloves/ring/material/copper/New(var/newloc)
+ ..(newloc, MAT_COPPER)
+
+/obj/item/clothing/gloves/ring/material/bronze/New(var/newloc)
+ ..(newloc, MAT_BRONZE)
+
+/obj/item/clothing/gloves/ring/material/uranium/New(var/newloc)
+ ..(newloc, MAT_URANIUM)
+
+/obj/item/clothing/gloves/ring/material/osmium/New(var/newloc)
+ ..(newloc, MAT_OSMIUM)
+
+/obj/item/clothing/gloves/ring/material/lead/New(var/newloc)
+ ..(newloc, MAT_LEAD)
+
+/obj/item/clothing/gloves/ring/material/diamond/New(var/newloc)
+ ..(newloc, MAT_DIAMOND)
+
+/obj/item/clothing/gloves/ring/material/tin/New(var/newloc)
+ ..(newloc, MAT_TIN)
diff --git a/code/modules/clothing/shoes/miscellaneous.dm b/code/modules/clothing/shoes/miscellaneous.dm
index 9cb77eaf2e5..52aabe2bb4f 100644
--- a/code/modules/clothing/shoes/miscellaneous.dm
+++ b/code/modules/clothing/shoes/miscellaneous.dm
@@ -166,7 +166,7 @@
/obj/item/clothing/shoes/athletic
name = "athletic shoes"
- desc = "A pair of sleek atheletic shoes. Made by and for the sporty types."
+ desc = "A pair of sleek athletic shoes. Made by and for the sporty types."
icon_state = "sportshoe"
addblends = "sportshoe_a"
item_state_slots = list(slot_r_hand_str = "sportheld", slot_l_hand_str = "sportheld")
diff --git a/code/modules/clothing/suits/hooded.dm b/code/modules/clothing/suits/hooded.dm
index 1a250bc683f..cd5fb97d1fc 100644
--- a/code/modules/clothing/suits/hooded.dm
+++ b/code/modules/clothing/suits/hooded.dm
@@ -63,26 +63,32 @@
else
RemoveHood()
-/obj/item/clothing/suit/storage/hooded/carp_costume
+/obj/item/clothing/suit/storage/hooded/costume
+ body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS
+ flags_inv = HIDEJUMPSUIT|HIDETIE|HIDEHOLSTER
+ cold_protection = UPPER_TORSO|LOWER_TORSO|ARMS
+ action_button_name = "Toggle Hood"
+
+/obj/item/clothing/suit/storage/hooded/costume/siffet
+ name = "siffet costume"
+ desc = "A costume made from 'synthetic' siffet fur, it smells like a weasel nest."
+ icon_state = "siffet"
+ item_state_slots = list(slot_r_hand_str = "siffet", slot_l_hand_str = "siffet")
+ hoodtype = /obj/item/clothing/head/hood/siffet_hood
+
+/obj/item/clothing/suit/storage/hooded/costume/carp
name = "carp costume"
desc = "A costume made from 'synthetic' carp scales, it smells."
icon_state = "carp_casual"
item_state_slots = list(slot_r_hand_str = "carp_casual", slot_l_hand_str = "carp_casual") //Does not exist -S2-
- body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS
- flags_inv = HIDEJUMPSUIT|HIDETIE|HIDEHOLSTER
- cold_protection = UPPER_TORSO|LOWER_TORSO|ARMS
- min_cold_protection_temperature = SPACE_SUIT_MIN_COLD_PROTECTION_TEMPERATURE //Space carp like space, so you should too
- action_button_name = "Toggle Carp Hood"
hoodtype = /obj/item/clothing/head/hood/carp_hood
+ min_cold_protection_temperature = SPACE_SUIT_MIN_COLD_PROTECTION_TEMPERATURE //Space carp like space, so you should too
-/obj/item/clothing/suit/storage/hooded/ian_costume //It's Ian, rub his bell- oh god what happened to his inside parts?
+/obj/item/clothing/suit/storage/hooded/costume/ian //It's Ian, rub his bell- oh god what happened to his inside parts?
name = "corgi costume"
desc = "A costume that looks like someone made a human-like corgi, it won't guarantee belly rubs."
icon_state = "ian"
item_state_slots = list(slot_r_hand_str = "ian", slot_l_hand_str = "ian") //Does not exist -S2-
- body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS
- flags_inv = HIDEJUMPSUIT|HIDETIE|HIDEHOLSTER
- action_button_name = "Toggle Ian Hood"
hoodtype = /obj/item/clothing/head/hood/ian_hood
// winter coats go here
diff --git a/code/modules/clothing/suits/miscellaneous.dm b/code/modules/clothing/suits/miscellaneous.dm
index bfa91659c25..3d44c893fe1 100644
--- a/code/modules/clothing/suits/miscellaneous.dm
+++ b/code/modules/clothing/suits/miscellaneous.dm
@@ -518,7 +518,7 @@
/obj/item/clothing/suit/storage/toggle/bomber/retro
name = "retro bomber jacket"
desc = "A retro style, fur-lined leather bomber jacket that invokes the early days of space exploration when spacemen were spacemen, and laser guns had funny little antennae on them."
- icon_state = "retro_bomber"
+ icon_state = "retrojacket"
/obj/item/clothing/suit/storage/bomber/alt
name = "bomber jacket"
diff --git a/code/modules/clothing/under/accessories/holster_vr.dm b/code/modules/clothing/under/accessories/holster_vr.dm
index 8cd7681dd9c..2506251a4f8 100644
--- a/code/modules/clothing/under/accessories/holster_vr.dm
+++ b/code/modules/clothing/under/accessories/holster_vr.dm
@@ -1,6 +1,6 @@
/obj/item/clothing/accessory/holster/waist/kinetic_accelerator
name = "KA holster"
- desc = "A specialized holster, made specifically for Kinetic Accelerator."
+ desc = "A specialized holster, made specifically for Kinetic Accelerators."
can_hold = list(/obj/item/weapon/gun/energy/kinetic_accelerator)
/obj/item/clothing/accessory/holster/machete/rapier
diff --git a/code/modules/clothing/under/miscellaneous.dm b/code/modules/clothing/under/miscellaneous.dm
index bc4d45685db..e358ed25748 100644
--- a/code/modules/clothing/under/miscellaneous.dm
+++ b/code/modules/clothing/under/miscellaneous.dm
@@ -1020,6 +1020,25 @@
desc = "A rather skimpy cow patterned swimsuit."
icon_state = "swim_cow"
+/obj/item/clothing/under/wetsuit
+ name = "wetsuit"
+ desc = "For when you need to scuba dive your way into an enemy base."
+ icon_state = "wetsuit"
+ body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS
+ cold_protection = UPPER_TORSO|LOWER_TORSO|ARMS|LEGS
+
+/obj/item/clothing/under/wetsuit_skimpy
+ name = "tactical wetsuit"
+ desc = "For when you need to scuba dive your way into an enemy base but still want to show off a little skin."
+ icon_state = "wetsuit_skimpy"
+ body_parts_covered = UPPER_TORSO|LOWER_TORSO
+
+/obj/item/clothing/under/wetsuit_rec
+ name = "recreational wetsuit"
+ desc = "For when you need to kayak your way into an enemy base."
+ icon_state = "wetsuit_rec"
+ body_parts_covered = UPPER_TORSO|LOWER_TORSO
+ cold_protection = UPPER_TORSO|LOWER_TORSO
/*
* Pyjamas
diff --git a/code/modules/detectivework/tools/rag.dm b/code/modules/detectivework/tools/rag.dm
index 301c99b7041..4d9c009e10d 100644
--- a/code/modules/detectivework/tools/rag.dm
+++ b/code/modules/detectivework/tools/rag.dm
@@ -98,16 +98,11 @@
if(!reagents.total_volume)
to_chat(user, "The [initial(name)] is dry! ")
else
- user.visible_message("\The [user] starts to wipe down [A] with [src]!")
- //reagents.splash(A, 1) //get a small amount of liquid on the thing we're wiping.
+ user.visible_message("[user] starts to wipe [A] with [src].")
update_name()
if(do_after(user,30))
- user.visible_message("\The [user] finishes wiping off the [A]!")
- A.clean_blood()
- if(istype(A, /turf) || istype(A, /obj/effect/decal/cleanable) || istype(A, /obj/effect/overlay) || istype(A, /obj/effect/rune)) //VOREStation Edit - "Allows rags to clean dirt from turfs"
- var/turf/T = get_turf(A)
- if(T)
- T.clean(src, user) //VOREStation Edit End
+ user.visible_message("[user] finishes wiping [A]!")
+ A.on_rag_wipe(src)
/obj/item/weapon/reagent_containers/glass/rag/attack(atom/target as obj|turf|area, mob/user as mob , flag)
if(isliving(target)) //Leaving this as isliving.
@@ -121,7 +116,7 @@
var/mob/living/carbon/human/H = target
if(H.head && (H.head.body_parts_covered & FACE)) //Check human head coverage.
to_chat(user, "Remove their [H.head] first. ")
- return
+ return
else if(reagents.total_volume) //Final check. If the rag is not on fire and their face is uncovered, smother target.
user.do_attack_animation(src)
user.visible_message(
diff --git a/code/modules/economy/price_list.dm b/code/modules/economy/price_list.dm
index 23ce932f06f..10199e9e466 100644
--- a/code/modules/economy/price_list.dm
+++ b/code/modules/economy/price_list.dm
@@ -216,6 +216,9 @@
/datum/reagent/ethanol/cuba_libre
price_tag = 4
+/datum/reagent/ethanol/rum_and_cola
+ price_tag = 4
+
/datum/reagent/ethanol/demonsblood
price_tag = 4
diff --git a/code/modules/economy/vending_machines.dm b/code/modules/economy/vending_machines.dm
index 327dbb4590b..3a4b912f16f 100644
--- a/code/modules/economy/vending_machines.dm
+++ b/code/modules/economy/vending_machines.dm
@@ -91,6 +91,7 @@
/obj/item/weapon/reagent_containers/food/drinks/bottle/milk = 5,
/obj/item/weapon/reagent_containers/food/drinks/bottle/cream = 5,
/obj/item/weapon/reagent_containers/food/drinks/bottle/cola = 5,
+ /obj/item/weapon/reagent_containers/food/drinks/bottle/decaf_cola = 5,
/obj/item/weapon/reagent_containers/food/drinks/bottle/space_up = 5,
/obj/item/weapon/reagent_containers/food/drinks/bottle/space_mountain_wind = 5,
/obj/item/weapon/reagent_containers/food/drinks/bottle/dr_gibb = 5,
@@ -139,6 +140,7 @@
products = list(/obj/item/weapon/reagent_containers/food/drinks/coffee = 25,
/obj/item/weapon/reagent_containers/food/drinks/decaf = 15,
/obj/item/weapon/reagent_containers/food/drinks/tea = 25,
+ /obj/item/weapon/reagent_containers/food/drinks/decaf_tea = 25,
/obj/item/weapon/reagent_containers/food/drinks/h_chocolate = 25,
/obj/item/weapon/reagent_containers/food/drinks/greentea = 15,
/obj/item/weapon/reagent_containers/food/drinks/chaitea = 15)
@@ -146,6 +148,7 @@
prices = list(/obj/item/weapon/reagent_containers/food/drinks/coffee = 2,
/obj/item/weapon/reagent_containers/food/drinks/decaf = 3,
/obj/item/weapon/reagent_containers/food/drinks/tea = 2,
+ /obj/item/weapon/reagent_containers/food/drinks/decaf_tea = 2,
/obj/item/weapon/reagent_containers/food/drinks/h_chocolate = 2,
/obj/item/weapon/reagent_containers/food/drinks/greentea = 10,
/obj/item/weapon/reagent_containers/food/drinks/chaitea = 5) // VOREStation Edit - Lowers Coffee/Hot Chocolate/Tea Prices from 3 -> 2.
@@ -233,10 +236,12 @@
product_slogans = "Robust Softdrinks: More robust than a toolbox to the head!"
product_ads = "Refreshing!;Hope you're thirsty!;Over 1 million drinks sold!;Thirsty? Why not cola?;Please, have a drink!;Drink up!;The best drinks in the galaxy."
products = list(/obj/item/weapon/reagent_containers/food/drinks/cans/cola = 10,
+ /obj/item/weapon/reagent_containers/food/drinks/cans/decaf_cola = 10,
/obj/item/weapon/reagent_containers/food/drinks/cans/space_mountain_wind = 10,
/obj/item/weapon/reagent_containers/food/drinks/cans/dr_gibb = 10,
/obj/item/weapon/reagent_containers/food/drinks/cans/dr_gibb_diet = 10,
/obj/item/weapon/reagent_containers/food/drinks/cans/starkist = 10,
+ /obj/item/weapon/reagent_containers/food/drinks/cans/starkistdecaf = 10,
/obj/item/weapon/reagent_containers/food/drinks/cans/waterbottle = 10,
/obj/item/weapon/reagent_containers/food/drinks/cans/space_up = 10,
/obj/item/weapon/reagent_containers/food/drinks/cans/iced_tea = 10,
@@ -247,10 +252,12 @@
contraband = list(/obj/item/weapon/reagent_containers/food/drinks/cans/thirteenloko = 5,
/obj/item/weapon/reagent_containers/food/snacks/liquidfood = 6)
prices = list(/obj/item/weapon/reagent_containers/food/drinks/cans/cola = 1,
+ /obj/item/weapon/reagent_containers/food/drinks/cans/decaf_cola = 2,
/obj/item/weapon/reagent_containers/food/drinks/cans/space_mountain_wind = 1,
/obj/item/weapon/reagent_containers/food/drinks/cans/dr_gibb = 1,
/obj/item/weapon/reagent_containers/food/drinks/cans/dr_gibb_diet = 1,
/obj/item/weapon/reagent_containers/food/drinks/cans/starkist = 1,
+ /obj/item/weapon/reagent_containers/food/drinks/cans/starkistdecaf = 1,
/obj/item/weapon/reagent_containers/food/drinks/cans/waterbottle = 2,
/obj/item/weapon/reagent_containers/food/drinks/cans/space_up = 1,
/obj/item/weapon/reagent_containers/food/drinks/cans/iced_tea = 1,
diff --git a/code/modules/economy/vending_machines_vr.dm b/code/modules/economy/vending_machines_vr.dm
index 1fce3780af9..774b2bc99ec 100644
--- a/code/modules/economy/vending_machines_vr.dm
+++ b/code/modules/economy/vending_machines_vr.dm
@@ -1325,8 +1325,8 @@
product_ads = "Don't let your art be stifled!;Remember, practice makes perfect!;Break a leg!;Don't make me get the cane!;Thespian's Delight entering stage right!;Costumes for your acting needs!"
icon = 'icons/obj/vending.dmi'
icon_state = "theater"
- products = list(/obj/item/clothing/suit/storage/hooded/carp_costume = 3,
- /obj/item/clothing/suit/storage/hooded/carp_costume = 3,
+ products = list(/obj/item/clothing/suit/storage/hooded/costume/carp = 3,
+ /obj/item/clothing/suit/storage/hooded/costume/carp = 3,
/obj/item/clothing/suit/chickensuit = 3,
/obj/item/clothing/head/chicken = 3,
/obj/item/clothing/head/helmet/gladiator = 3,
@@ -1390,8 +1390,8 @@
/obj/item/clothing/gloves/combat/knight_costume/brown = 3,
/obj/item/clothing/shoes/knight_costume = 3,
/obj/item/clothing/shoes/knight_costume/black = 3)
- prices = list(/obj/item/clothing/suit/storage/hooded/carp_costume = 200,
- /obj/item/clothing/suit/storage/hooded/carp_costume = 200,
+ prices = list(/obj/item/clothing/suit/storage/hooded/costume/carp = 200,
+ /obj/item/clothing/suit/storage/hooded/costume/carp = 200,
/obj/item/clothing/suit/chickensuit = 200,
/obj/item/clothing/head/chicken = 200,
/obj/item/clothing/head/helmet/gladiator = 300,
@@ -2505,8 +2505,8 @@
product_ads = "Don't let your art be stifled!;Remember, practice makes perfect!;Break a leg!;Don't make me get the cane!;Thespian's Delight entering stage right!;Costumes for your acting needs!"
icon = 'icons/obj/vending.dmi'
icon_state = "theater"
- products = list(/obj/item/clothing/suit/storage/hooded/carp_costume = 3,
- /obj/item/clothing/suit/storage/hooded/carp_costume = 3,
+ products = list(/obj/item/clothing/suit/storage/hooded/costume/carp = 3,
+ /obj/item/clothing/suit/storage/hooded/costume/carp = 3,
/obj/item/clothing/suit/chickensuit = 3,
/obj/item/clothing/head/chicken = 3,
/obj/item/clothing/head/helmet/gladiator = 3,
@@ -2570,8 +2570,8 @@
/obj/item/clothing/gloves/combat/knight_costume/brown = 3,
/obj/item/clothing/shoes/knight_costume = 3,
/obj/item/clothing/shoes/knight_costume/black = 3)
- prices = list(/obj/item/clothing/suit/storage/hooded/carp_costume = 200,
- /obj/item/clothing/suit/storage/hooded/carp_costume = 200,
+ prices = list(/obj/item/clothing/suit/storage/hooded/costume/carp = 200,
+ /obj/item/clothing/suit/storage/hooded/costume/carp = 200,
/obj/item/clothing/suit/chickensuit = 200,
/obj/item/clothing/head/chicken = 200,
/obj/item/clothing/head/helmet/gladiator = 300,
@@ -2668,8 +2668,8 @@
/obj/item/clothing/under/color/yellow = 5,
/obj/item/clothing/shoes/black = 5,
/obj/item/clothing/shoes/white = 5,
- /obj/item/clothing/suit/storage/hooded/carp_costume = 3,
- /obj/item/clothing/suit/storage/hooded/carp_costume = 3,
+ /obj/item/clothing/suit/storage/hooded/costume/carp = 3,
+ /obj/item/clothing/suit/storage/hooded/costume/carp = 3,
/obj/item/clothing/suit/chickensuit = 3,
/obj/item/clothing/head/chicken = 3,
/obj/item/clothing/head/helmet/gladiator = 3,
@@ -3411,8 +3411,8 @@
product_ads = "Don't let your art be stifled!;Remember, practice makes perfect!;Break a leg!;Don't make me get the cane!;Thespian's Delight entering stage right!;Costumes for your acting needs!"
icon = 'icons/obj/vending.dmi'
icon_state = "theater"
- products = list(/obj/item/clothing/suit/storage/hooded/carp_costume = 3,
- /obj/item/clothing/suit/storage/hooded/carp_costume = 3,
+ products = list(/obj/item/clothing/suit/storage/hooded/costume/carp = 3,
+ /obj/item/clothing/suit/storage/hooded/costume/carp = 3,
/obj/item/clothing/suit/chickensuit = 3,
/obj/item/clothing/head/chicken = 3,
/obj/item/clothing/head/helmet/gladiator = 3,
diff --git a/code/modules/food/drinkingglass/metaglass.dm b/code/modules/food/drinkingglass/metaglass.dm
index bca61427f55..0842b878b0a 100644
--- a/code/modules/food/drinkingglass/metaglass.dm
+++ b/code/modules/food/drinkingglass/metaglass.dm
@@ -23,7 +23,7 @@
icon = R.glass_icon_file
else
icon = initial(icon)
-
+
if(R.glass_icon_state)
icon_state = R.glass_icon_state
else
@@ -373,6 +373,10 @@ Drinks Data
glass_icon_state = "martiniglass"
glass_center_of_mass = list("x"=17, "y"=8)
+/datum/reagent/ethanol/rum_and_cola
+ glass_icon_state = "rumcolaglass"
+ glass_center_of_mass = list("x"=16, "y"=8)
+
/datum/reagent/ethanol/cuba_libre
glass_icon_state = "cubalibreglass"
glass_center_of_mass = list("x"=16, "y"=8)
diff --git a/code/modules/food/food/cans.dm b/code/modules/food/food/cans.dm
index 75018e8683c..31384df17b4 100644
--- a/code/modules/food/food/cans.dm
+++ b/code/modules/food/food/cans.dm
@@ -9,7 +9,7 @@
/obj/item/weapon/reagent_containers/food/drinks/cans/cola
name = "\improper Space Cola"
- desc = "Reassuringly artificial."
+ desc = "Reassuringly artificial. Contains caffeine."
description_fluff = "The 'Space' branding was originally added to the 'Alpha Cola' product line in order to justify selling cans for 50% higher prices to 'off-world' retailers. Despite being chemically identical, Space Cola proved so popular that Centauri Provisions eventually applied the name to the entire product line - price hike and all."
icon_state = "cola"
center_of_mass = list("x"=16, "y"=10)
@@ -18,6 +18,17 @@
. = ..()
reagents.add_reagent("cola", 30)
+/obj/item/weapon/reagent_containers/food/drinks/cans/decaf_cola
+ name = "\improper Space Cola Free"
+ desc = "More reassuringly artificial than ever before."
+ description_fluff = "The 'Space' branding was originally added to the 'Alpha Cola' product line in order to justify selling cans for 50% higher prices to 'off-world' retailers. Despite being chemically identical, Space Cola proved so popular that Centauri Provisions eventually applied the name to the entire product line - price hike and all."
+ icon_state = "decafcola"
+ center_of_mass = list("x"=16, "y"=10)
+
+/obj/item/weapon/reagent_containers/food/drinks/cans/decaf_cola/Initialize()
+ . = ..()
+ reagents.add_reagent("decafcola", 30)
+
/obj/item/weapon/reagent_containers/food/drinks/cans/waterbottle
name = "bottled water"
desc = "Ice cold and utterly tasteless, this 'all-natural' mineral water comes 'fresh' from one of NanoTrasen's heavy-duty bottling plants in the Sivian poles."
@@ -32,7 +43,7 @@
/obj/item/weapon/reagent_containers/food/drinks/cans/space_mountain_wind
name = "\improper Space Mountain Wind"
- desc = "Blows right through you like a space wind."
+ desc = "Blows right through you like a space wind. Contains caffeine."
description_fluff = "The 'Space' branding was originally added to the 'Alpha Cola' product line in order to justify selling cans for 50% higher prices to 'off-world' retailers. Despite being chemically identical, Space Cola proved so popular that Centauri Provisions eventually applied the name to the entire product line - price hike and all."
icon_state = "space_mountain_wind"
center_of_mass = list("x"=16, "y"=8)
@@ -53,7 +64,7 @@
/obj/item/weapon/reagent_containers/food/drinks/cans/dr_gibb
name = "\improper Dr. Gibb"
- desc = "A delicious mixture of 42 different flavors."
+ desc = "A delicious mixture of 42 different flavors. Contains caffine."
description_fluff = "Following a 2490 lawsuit and a spate of deaths, Gilthari Exports reminds customers that the 'Dr.' legally stands for 'Drink'."
icon_state = "dr_gibb"
center_of_mass = list("x"=16, "y"=8)
@@ -64,7 +75,7 @@
/obj/item/weapon/reagent_containers/food/drinks/cans/dr_gibb_diet
name = "\improper Diet Dr. Gibb"
- desc = "A delicious mixture of 42 different flavors, one of which is water."
+ desc = "A delicious mixture of 42 different flavors, one of which is water. Contains caffeine."
description_fluff = "Following a 2490 lawsuit and a spate of deaths, Gilthari Exports reminds customers that the 'Dr.' legally stands for 'Drink'."
icon_state = "dr_gibb_diet"
center_of_mass = list("x"=16, "y"=8)
@@ -75,7 +86,7 @@
/obj/item/weapon/reagent_containers/food/drinks/cans/starkist
name = "\improper Star-kist"
- desc = "The taste of a star in liquid form. And, a bit of tuna...?"
+ desc = "The taste of a star in liquid form. And, a bit of tuna...? Contains caffeine."
description_fluff = "Brought back by popular demand in 2515 after a limited-run release in 2510, the cult success of this bizarre tasting soda has never truly been accounted for by economists."
icon_state = "starkist"
center_of_mass = list("x"=16, "y"=8)
@@ -84,6 +95,17 @@
. = ..()
reagents.add_reagent("brownstar", 30)
+/obj/item/weapon/reagent_containers/food/drinks/cans/starkistdecaf
+ name = "\improper Star-kist Classic"
+ desc = "The taste of a star in liquid form, in a special decaffineated blend. Still tastes faintly of tuna?"
+ description_fluff = "A special variant of the Starkist brand soda introduced after popular outcry following a reformulation of the basic drink decades ago. This decaffineated variant outsells 'New' Starkist in many markets."
+ icon_state = "decafstarkist"
+ center_of_mass = list("x"=16, "y"=8)
+
+/obj/item/weapon/reagent_containers/food/drinks/cans/starkistdecaf/Initialize()
+ . = ..()
+ reagents.add_reagent("brownstar_decaf", 30)
+
/obj/item/weapon/reagent_containers/food/drinks/cans/space_up
name = "\improper Space-Up"
desc = "Tastes like a hull breach in your mouth."
@@ -108,7 +130,7 @@
/obj/item/weapon/reagent_containers/food/drinks/cans/iced_tea
name = "\improper Vrisk Serket Iced Tea"
- desc = "That sweet, refreshing southern earthy flavor. That's where it's from, right? South Earth?"
+ desc = "That sweet, refreshing southern earthy flavor. That's where it's from, right? South Earth? Contains caffeine."
description_fluff = "Produced exclusively on the planet Oasis, Vrisk Serket Iced Tea is not sold outside of the Golden Crescent, let alone Earth."
icon_state = "ice_tea_can"
center_of_mass = list("x"=16, "y"=8)
diff --git a/code/modules/food/food/drinks.dm b/code/modules/food/food/drinks.dm
index 41217df94b3..ca9dc491152 100644
--- a/code/modules/food/food/drinks.dm
+++ b/code/modules/food/food/drinks.dm
@@ -38,6 +38,9 @@
qdel(src)
return
+/obj/item/weapon/reagent_containers/food/drinks/on_rag_wipe(var/obj/item/weapon/reagent_containers/glass/rag/R)
+ clean_blood()
+
/obj/item/weapon/reagent_containers/food/drinks/attack_self(mob/user as mob)
if(!is_open_container())
open(user)
@@ -218,6 +221,21 @@
. = ..()
reagents.add_reagent("tea", 30)
+/obj/item/weapon/reagent_containers/food/drinks/decaf_tea
+ name = "cup of Count Mauve decaffeinated tea"
+ desc = "Why should bedtime stop you from enjoying a nice cuppa?"
+ description_fluff = "Count Mauve is a milder strain of NanoPasture's proprietary black tea, noted for its strong but otherwise completely non-distinctive flavour and total lack of caffeination."
+ icon_state = "chai_vended"
+ item_state = "coffee"
+ trash = /obj/item/trash/coffee
+ center_of_mass = list("x"=16, "y"=14)
+ drop_sound = 'sound/items/drop/papercup.ogg'
+ pickup_sound = 'sound/items/pickup/papercup.ogg'
+
+/obj/item/weapon/reagent_containers/food/drinks/decaf_tea/Initialize()
+ . = ..()
+ reagents.add_reagent("teadecaf", 30)
+
/obj/item/weapon/reagent_containers/food/drinks/ice
name = "cup of ice"
desc = "Careful, cold ice, do not chew."
diff --git a/code/modules/food/food/drinks/bottle.dm b/code/modules/food/food/drinks/bottle.dm
index 26775c90dba..df16e4960ba 100644
--- a/code/modules/food/food/drinks/bottle.dm
+++ b/code/modules/food/food/drinks/bottle.dm
@@ -466,9 +466,9 @@
//////////////////////////JUICES AND STUFF///////////////////////
-/obj/item/weapon/reagent_containers/food/drinks/bottle/cola //MODIFIED ON 04/21/2021
+/obj/item/weapon/reagent_containers/food/drinks/bottle/cola
name = "\improper two-liter Space Cola"
- desc = "Cola. In space."
+ desc = "Cola. In space. Contains caffeine."
icon_state = "colabottle"
center_of_mass = list("x"=16, "y"=6)
@@ -476,7 +476,17 @@
. = ..()
reagents.add_reagent("cola", 100)
-/obj/item/weapon/reagent_containers/food/drinks/bottle/space_up //MODIFIED ON 04/21/2021
+/obj/item/weapon/reagent_containers/food/drinks/bottle/decaf_cola
+ name = "\improper two-liter Space Cola Free"
+ desc = "Cola. In space. Caffeine free."
+ icon_state = "decafcolabottle"
+ center_of_mass = list("x"=16, "y"=6)
+
+/obj/item/weapon/reagent_containers/food/drinks/bottle/decaf_cola/Initialize()
+ . = ..()
+ reagents.add_reagent("decafcola", 100)
+
+/obj/item/weapon/reagent_containers/food/drinks/bottle/space_up
name = "\improper two-liter Space-Up"
desc = "Tastes like a hull breach in your mouth."
icon_state = "space-up_bottle"
@@ -486,9 +496,9 @@
. = ..()
reagents.add_reagent("space_up", 100)
-/obj/item/weapon/reagent_containers/food/drinks/bottle/space_mountain_wind //MODIFIED ON 04/21/2021
+/obj/item/weapon/reagent_containers/food/drinks/bottle/space_mountain_wind
name = "\improper two-liter Space Mountain Wind"
- desc = "Blows right through you like a space wind."
+ desc = "Blows right through you like a space wind. Contains caffeine."
icon_state = "space_mountain_wind_bottle"
center_of_mass = list("x"=16, "y"=6)
@@ -496,9 +506,9 @@
. = ..()
reagents.add_reagent("spacemountainwind", 100)
-/obj/item/weapon/reagent_containers/food/drinks/bottle/dr_gibb //ADDED ON 04/21/2021
+/obj/item/weapon/reagent_containers/food/drinks/bottle/dr_gibb
name = "\improper two-liter Dr. Gibb"
- desc = "A delicious mixture of 42 different flavors."
+ desc = "A delicious mixture of 42 different flavors. Contains caffeine."
icon_state = "dr_gibb_bottle"
center_of_mass = list("x"=16, "y"=6)
diff --git a/code/modules/food/food/snacks.dm b/code/modules/food/food/snacks.dm
index 300b8d87f92..8e87f8d71d0 100644
--- a/code/modules/food/food/snacks.dm
+++ b/code/modules/food/food/snacks.dm
@@ -34,6 +34,11 @@
/// Packaged meals switch to this state when opened, if set
var/package_open_state
+ /// If this is canned. If true, it will print a message and ask you to open it
+ var/canned = FALSE
+ /// Canned food switch to this state when opened, if set
+ var/canned_open_state
+
/obj/item/weapon/reagent_containers/food/snacks/Initialize()
. = ..()
if(nutriment_amt)
@@ -63,6 +68,9 @@
if(package && !user.incapacitated())
unpackage(user)
+ if(canned && !user.incapacitated())
+ uncan(user)
+
/obj/item/weapon/reagent_containers/food/snacks/attack(mob/living/M as mob, mob/user as mob, def_zone)
if(reagents && !reagents.total_volume)
to_chat(user, "None of [src] left! ")
@@ -74,6 +82,10 @@
to_chat(M, "How do you expect to eat this with the package still on? ")
return FALSE
+ if(canned)
+ to_chat(M, "How do you expect to eat this without opening it? ")
+ return FALSE
+
if(istype(M, /mob/living/carbon))
//TODO: replace with standard_feed_mob() call.
@@ -251,6 +263,13 @@
if(package_open_state)
icon_state = package_open_state
+/obj/item/weapon/reagent_containers/food/snacks/proc/uncan(mob/user)
+ canned = FALSE
+ to_chat(user, "You unseal \the [src] with a crack of metal. ")
+ playsound(loc,'sound/effects/tincanopen.ogg', rand(10,50), 1)
+ if(canned_open_state)
+ icon_state = canned_open_state
+
////////////////////////////////////////////////////////////////////////////////
/// FOOD END
////////////////////////////////////////////////////////////////////////////////
@@ -4218,10 +4237,12 @@
desc = "Musical fruit in a slightly less musical container."
filling_color = "#FC6F28"
icon_state = "bakedbeans"
- nutriment_amt = 4
- nutriment_desc = list("beans" = 4)
bitesize = 2
+/obj/item/weapon/reagent_containers/food/snacks/berrymuffin/berry/Initialize()
+ . = ..()
+ reagents.add_reagent("bean_protein", 6)
+
/obj/item/weapon/reagent_containers/food/snacks/sugarcookie
name = "sugar cookie"
desc = "Just like your little sister used to make."
@@ -6128,6 +6149,7 @@
/obj/item/weapon/reagent_containers/food/snacks/cb06/Initialize()
. = ..()
reagents.add_reagent("sugar", 1)
+ reagents.add_reagent("coffee", 1)
/obj/item/weapon/reagent_containers/food/snacks/cb07
name = "\improper TaroMilk Bar"
@@ -6177,6 +6199,7 @@
. = ..()
reagents.add_reagent("sugar", 1)
reagents.add_reagent("milk", 1)
+ reagents.add_reagent("peanutoil", 1)
/obj/item/weapon/reagent_containers/food/snacks/cb10
name = "\improper Shantak Bar"
@@ -6194,6 +6217,7 @@
. = ..()
reagents.add_reagent("sugar", 1)
reagents.add_reagent("protein", 1)
+ reagents.add_reagent("peanutoil", 1)
////////////////////Misc Vend Items////////////////////////////////////////////////////////////////
@@ -6337,7 +6361,7 @@
desc = "Space squid tentacles, Carefully removed (from the squid) then dried into strips of delicious rubbery goodness!"
trash = /obj/item/trash/squid
filling_color = "#c0a9d7"
- center_of_mass = list("x"=15, "y"=9)
+ center_of_mass = list ("x"=15, "y"=9)
nutriment_desc = list("fish" = 1, "salt" = 1)
nutriment_amt = 2
bitesize = 1
@@ -6353,7 +6377,7 @@
desc = "Fried bread cubes. Popular in Terran territories."
trash = /obj/item/trash/croutons
filling_color = "#c6b17f"
- center_of_mass = list("x"=15, "y"=9)
+ center_of_mass = list ("x"=15, "y"=9)
nutriment_desc = list("bread" = 1, "salt" = 1)
nutriment_amt = 3
bitesize = 1
@@ -6365,7 +6389,7 @@
desc = "Pig fat. Salted. Just as good as it sounds."
trash = /obj/item/trash/salo
filling_color = "#e0bcbc"
- center_of_mass = list("x"=15, "y"=9)
+ center_of_mass = list ("x"=15, "y"=9)
nutriment_desc = list("fat" = 1, "salt" = 1)
nutriment_amt = 2
bitesize = 2
@@ -6381,7 +6405,7 @@
desc = "Dried salted beer snack fish."
trash = /obj/item/trash/driedfish
filling_color = "#c8a5bb"
- center_of_mass = list("x"=15, "y"=9)
+ center_of_mass = list ("x"=15, "y"=9)
nutriment_desc = list("fish" = 1, "salt" = 1)
nutriment_amt = 2
bitesize = 1
@@ -6688,7 +6712,7 @@
/obj/item/weapon/reagent_containers/food/snacks/old
name = "master old-food"
desc = "they're all inedible and potentially dangerous items"
- center_of_mass = list("x"=15,"y"=12)
+ center_of_mass = list ("x"=15, "y"=9)
nutriment_desc = list("rot" = 5, "mold" = 5)
nutriment_amt = 10
bitesize = 3
@@ -6736,34 +6760,8 @@
//////////////////////Canned Foods - crack open and eat (ADDED 04/11/2021)//////////////////////
/obj/item/weapon/reagent_containers/food/snacks/canned
- name = "void can"
icon = 'icons/obj/food_canned.dmi'
- flags = 0
- var/sealed = TRUE
-
-/obj/item/weapon/reagent_containers/food/snacks/canned/Initialize()
- . = ..()
- if(!sealed)
- unseal()
-
-/obj/item/weapon/reagent_containers/food/snacks/canned/examine(mob/user)
- . = ..()
- to_chat(user, "It is [sealed ? "" : "un"]sealed.")
-
-/obj/item/weapon/reagent_containers/food/snacks/canned/proc/unseal()
- flags |= OPENCONTAINER
- sealed = FALSE
- update_icon()
-
-/obj/item/weapon/reagent_containers/food/snacks/canned/attack_self(var/mob/user)
- if(sealed)
- playsound(loc,'sound/effects/tincanopen.ogg', rand(10,50), 1)
- to_chat(user, "You unseal \the [src] with a crack of metal. ")
- unseal()
-
-/obj/item/weapon/reagent_containers/food/snacks/canned/update_icon()
- if(!sealed)
- icon_state = "[initial(icon_state)]-open"
+ canned = TRUE
//////////Just a short line of Canned Consumables, great for treasure in faraway abandoned outposts//////////
@@ -6772,6 +6770,7 @@
icon_state = "beef"
desc = "A can of premium preserved vat-grown holstein beef. Now 99.9% bone free!"
trash = /obj/item/trash/beef
+ canned_open_state = "beef-open"
filling_color = "#663300"
center_of_mass = list("x"=15, "y"=9)
nutriment_desc = list("beef" = 1)
@@ -6780,54 +6779,54 @@
/obj/item/weapon/reagent_containers/food/snacks/canned/beef/Initialize()
.=..()
reagents.add_reagent("protein", 4)
- reagents.add_reagent("sodiumchloride", 1)
+ reagents.add_reagent("sodiumchloride", 2)
/obj/item/weapon/reagent_containers/food/snacks/canned/beans
name = "baked beans"
icon_state = "beans"
desc = "Luna Colony beans. Carefully synthethized from soy."
trash = /obj/item/trash/beans
+ canned_open_state = "beans-open"
filling_color = "#ff6633"
center_of_mass = list("x"=15, "y"=9)
nutriment_desc = list("beans" = 1, "tomato sauce" = 1)
- nutriment_amt = 15
bitesize = 2
-///obj/item/weapon/reagent_containers/food/snacks/canned/tomato (NEED TO SEE HOW TO CHANGE EATING SOUND)
-// name = "tomato soup"
-// icon_state = "tomato"
-// desc = "Plain old unseasoned tomato soup. This can has no use-by date."
-// trash = "/obj/item/trash/tomato"
-// filling_color = "#ae0000"
-// center_of_mass = list("x"=15, "y"=9)
-// nutriment_desc = list("tomato" = 1)
-// bitesize = 3
-// eat_sound = 'sound/items/drink.ogg'
-//
-///obj/item/weapon/reagent_containers/food/snacks/canned/tomato/Initialize()
-// .=..()
-// reagents.add_reagent(/datum/reagent/drink/juice/tomato, 12)
-//
-//
-///obj/item/weapon/reagent_containers/food/snacks/canned/tomato/feed_sound(var/mob/user)
-// playsound(user.loc, 'sound/items/drink.ogg', rand(10, 50), 1)
+/obj/item/weapon/reagent_containers/food/snacks/canned/beans/Initialize()
+ .=..()
+ reagents.add_reagent("bean_protein", 5)
+ reagents.add_reagent("tomatojuice", 5)
+
+/obj/item/weapon/reagent_containers/food/snacks/canned/tomato
+ name = "tomato soup"
+ icon_state = "tomato"
+ desc = "Plain old unseasoned tomato soup. This can has no use-by date."
+ trash = /obj/item/trash/tomato
+ package_open_state = "tomato-open"
+ filling_color = "#ae0000"
+ center_of_mass = list("x"=15, "y"=9)
+ bitesize = 3
+
+/obj/item/weapon/reagent_containers/food/snacks/canned/tomato/Initialize()
+ .=..()
+ reagents.add_reagent("tomatojuice", 12)
/obj/item/weapon/reagent_containers/food/snacks/canned/spinach
name = "spinach"
icon_state = "spinach"
desc = "Wup-Az! Brand canned spinach. Notably has less iron in it than a watermelon."
trash = /obj/item/trash/spinach
+ canned_open_state = "spinach-open"
filling_color = "#003300"
center_of_mass = list("x"=15, "y"=9)
- nutriment_amt = 5
nutriment_desc = list("soggy" = 1, "vegetable" = 1)
- bitesize = 5
+ bitesize = 3
/obj/item/weapon/reagent_containers/food/snacks/canned/spinach/Initialize()
.=..()
- reagents.add_reagent("adrenaline", 5)
- reagents.add_reagent("hyperzine", 5)
- reagents.add_reagent("iron", 5)
+ reagents.add_reagent("adrenaline", 4)
+ reagents.add_reagent("hyperzine", 4)
+ reagents.add_reagent("iron", 4)
//////////////////////////////Advanced Canned Food//////////////////////////////
@@ -6836,30 +6835,30 @@
icon_state = "fisheggs"
desc = "Terran caviar, or space carp eggs. Carefully faked using alginate, artificial flavoring and salt. Skrell approved!"
trash = /obj/item/trash/fishegg
+ canned_open_state = "fisheggs-open"
filling_color = "#000000"
center_of_mass = list("x"=15, "y"=9)
- nutriment_desc = list("fish" = 1, "salt" = 1)
- nutriment_amt = 6
+ nutriment_desc = list("salt" = 1)
bitesize = 1
-/obj/item/weapon/reagent_containers/food/snacks/caviar/Initialize()
+/obj/item/weapon/reagent_containers/food/snacks/canned/caviar/Initialize()
. = ..()
- reagents.add_reagent("protein", 5)
+ reagents.add_reagent("seafood", 5)
/obj/item/weapon/reagent_containers/food/snacks/canned/caviar/true
name = "\improper Classic Terran Caviar"
icon_state = "carpeggs"
desc = "Terran caviar, or space carp eggs. Banned by the Vir Food Health Administration for exceeding the legally set amount of carpotoxins in food stuffs."
trash = /obj/item/trash/carpegg
+ canned_open_state = "carpeggs-open"
filling_color = "#330066"
center_of_mass = list("x"=15, "y"=9)
- nutriment_desc = list("fish" = 1, "salt" = 1, "a numbing sensation" = 1)
- nutriment_amt = 6
+ nutriment_desc = list("salt" = 1, "a numbing sensation" = 1)
bitesize = 1
-/obj/item/weapon/reagent_containers/food/snacks/caviar/true/Initialize()
+/obj/item/weapon/reagent_containers/food/snacks/canned/caviar/true/Initialize()
. = ..()
- reagents.add_reagent("protein", 4)
+ reagents.add_reagent("seafood", 4)
reagents.add_reagent("carpotoxin", 1)
/obj/item/weapon/reagent_containers/food/snacks/canned/maps
@@ -6867,13 +6866,12 @@
icon_state = "maps"
desc = "A re-branding of a classic Terran snack! Contains mostly edible ingredients."
trash = /obj/item/trash/maps
+ canned_open_state = "maps-open"
filling_color = "#330066"
center_of_mass = list("x"=15, "y"=9)
- nutriment_desc = list("meat" = 1, "salt" = 1)
- nutriment_amt = 8
bitesize = 2
-/obj/item/weapon/reagent_containers/food/snacks/maps/Initialize()
+/obj/item/weapon/reagent_containers/food/snacks/canned/maps/Initialize()
. = ..()
reagents.add_reagent("protein", 6)
reagents.add_reagent("sodiumchloride", 2)
@@ -6883,10 +6881,10 @@
icon_state = "appleberry"
desc = "A classic snack favored by Sol astronauts. Made from dried apple-hybidized berries grown on the lunar colonies."
trash = /obj/item/trash/appleberry
+ canned_open_state = "appleberry-open"
filling_color = "#FFFFFF"
center_of_mass = list("x"=15, "y"=9)
nutriment_desc = list("apple" = 1, "sweetness" = 1)
- nutriment_amt = 8
bitesize = 2
/obj/item/weapon/reagent_containers/food/snacks/appleberry/Initialize()
@@ -6898,16 +6896,50 @@
icon_state = "ntbeans"
desc = "Musical fruit in a slightly less musical container. Now with bacon!"
trash = /obj/item/trash/ntbeans
+ canned_open_state = "ntbeans-open"
filling_color = "#FC6F28"
center_of_mass = list("x"=15, "y"=9)
- nutriment_desc = list("beans" = 4)
- nutriment_amt = 6
bitesize = 2
/obj/item/weapon/reagent_containers/food/snacks/canned/ntbeans/Initialize()
. = ..()
+ reagents.add_reagent("bean_protein", 6)
reagents.add_reagent("protein", 2)
+/obj/item/weapon/reagent_containers/food/snacks/canned/brainzsnax
+ name = "\improper BrainzSnax"
+ icon_state = "brainzsnax"
+ desc = "A can of grey matter marketed for xenochimeras."
+ description_fluff = "As the cartoon brain with limbs proudly proclaims, \"It's meat. Eat it!\" On the can is printed \"Rich in limbic system\" and \
+ under that in infinitely small letters, \"Warning, product must be eaten within two hours of opening. May contain prion disease. \
+ GrubCo LTD is not liable for any brain damage occuring after consumption of product.\""
+ trash = /obj/item/trash/brainzsnax
+ canned_open_state = "brainzsnax-open"
+ filling_color = "#caa3c9"
+ center_of_mass = list("x"=15, "y"=9)
+ bitesize = 2
+
+/obj/item/weapon/reagent_containers/food/snacks/canned/brainzsnax/Initialize()
+ . = ..()
+ reagents.add_reagent("brain_protein", 10)
+
+/obj/item/weapon/reagent_containers/food/snacks/canned/brainzsnax/red
+ name = "\improper BrainzSnax RED"
+ icon_state = "brainzsnaxred"
+ desc = "A can of grey matter marketed for xenochimeras. This one has added tomato sauce."
+ description_fluff = "As the cartoonish brain with limbs proudly proclaims, \"It's meat. Eat it!\" On the can is printed \"Yummy red stuff!\" and \
+ under that in infinitely small letters, \"Warning, product must be eaten within two hours of opening. May contain prion disease. \
+ GrubCo LTD is not liable for any brain damage occuring after consumption of product.\""
+ trash = /obj/item/trash/brainzsnaxred
+ canned_open_state = "brainzsnaxred-open"
+ filling_color = "#a6898d"
+ center_of_mass = list("x"=15, "y"=9)
+ bitesize = 2
+
+/obj/item/weapon/reagent_containers/food/snacks/canned/brainzsnax/red/Initialize()
+ . = ..()
+ reagents.add_reagent("red_brain_protein", 10)
+
//////////////Packaged Food - break open and eat//////////////
/obj/item/weapon/reagent_containers/food/snacks/packaged
@@ -6999,7 +7031,7 @@
/obj/item/weapon/reagent_containers/food/snacks/packaged/meatration/Initialize()
. = ..()
- reagents.add_reagent("protein", 3)
+ reagents.add_reagent("protein", 4)
/obj/item/weapon/reagent_containers/food/snacks/packaged/vegration
name = "veggie ration"
diff --git a/code/modules/food/kitchen/microwave.dm b/code/modules/food/kitchen/microwave.dm
index e53749b22b0..bab265f004b 100644
--- a/code/modules/food/kitchen/microwave.dm
+++ b/code/modules/food/kitchen/microwave.dm
@@ -510,7 +510,7 @@
src.visible_message("The microwave gets covered in muck! ")
src.dirty = 100 // Make it dirty so it can't be used util cleaned
src.flags = null //So you can't add condiments
- src.icon_state = "mwbloody" // Make it look dirty too
+ src.icon_state = "mwbloody0" // Make it look dirty too
src.operating = 0 // Turn it off again aferwards
SStgui.update_uis(src)
soundloop.stop()
diff --git a/code/modules/holodeck/HolodeckObjects.dm b/code/modules/holodeck/HolodeckObjects.dm
index 99cca32d4c2..ee7060dfd89 100644
--- a/code/modules/holodeck/HolodeckObjects.dm
+++ b/code/modules/holodeck/HolodeckObjects.dm
@@ -358,7 +358,7 @@
//BASKETBALL OBJECTS
/obj/item/weapon/beach_ball/holoball
- icon = 'icons/obj/basketball.dmi'
+ icon = 'icons/obj/balls_vr.dmi'
icon_state = "basketball"
name = "basketball"
desc = "Here's your chance, do your dance at the Space Jam."
@@ -370,7 +370,7 @@
/obj/structure/holohoop
name = "basketball hoop"
desc = "Boom, Shakalaka!"
- icon = 'icons/obj/basketball.dmi'
+ icon = 'icons/obj/32x64.dmi'
icon_state = "hoop"
anchored = TRUE
density = TRUE
@@ -406,7 +406,6 @@
return FALSE
return ..()
-
/obj/machinery/readybutton
name = "Ready Declaration Device"
desc = "This device is used to declare ready. If all devices in an area are ready, the event will begin!"
diff --git a/code/modules/mining/drilling/drill.dm b/code/modules/mining/drilling/drill.dm
index b8618ccf867..e1874f1a933 100644
--- a/code/modules/mining/drilling/drill.dm
+++ b/code/modules/mining/drilling/drill.dm
@@ -11,11 +11,13 @@
icon_state = "mining_drill"
circuit = /obj/item/weapon/circuitboard/miningdrill
var/braces_needed = 2
- var/list/supports = list()
+ var/list/obj/machinery/mining/brace/supports = list()
var/supported = 0
var/active = 0
var/list/resource_field = list()
var/obj/item/device/radio/intercom/faultreporter
+ var/drill_range = 5
+ var/offset = 2
var/list/ore_types = list(
"hematite" = /obj/item/weapon/ore/iron,
@@ -242,10 +244,14 @@
harvest_speed = 0
capacity = 0
charge_use = 50
+ drill_range = 5
+ offset = 2
for(var/obj/item/weapon/stock_parts/P in component_parts)
if(istype(P, /obj/item/weapon/stock_parts/micro_laser))
harvest_speed = P.rating
+ if(P.rating >= 5)
+ harvest_speed *= 2
exotic_drilling = P.rating - 1
if(exotic_drilling >= 1)
ore_types |= ore_types_uncommon
@@ -254,6 +260,14 @@
else
ore_types -= ore_types_uncommon
ore_types -= ore_types_rare
+ if(P.rating > 3) // are we t4+?
+ // default drill range 5, offset 2
+ if(P.rating >= 5) // t5
+ drill_range = 9
+ offset = 4
+ else if(P.rating >= 4) // t4
+ drill_range = 7
+ offset = 3
if(istype(P, /obj/item/weapon/stock_parts/matter_bin))
capacity = 200 * P.rating
if(istype(P, /obj/item/weapon/stock_parts/capacitor))
@@ -271,8 +285,12 @@
else
anchored = TRUE
- if(supports && supports.len >= braces_needed)
- supported = 1
+ if(supports)
+ if(supports.len >= braces_needed)
+ supported = 1
+ else for(var/obj/machinery/mining/brace/check in supports)
+ if(check.brace_tier > 3)
+ supported = 1
update_icon()
@@ -293,11 +311,11 @@
var/turf/T = get_turf(src)
if(!istype(T)) return
- var/tx = T.x - 2
- var/ty = T.y - 2
+ var/tx = T.x - offset
+ var/ty = T.y - offset
var/turf/simulated/mine_turf
- for(var/iy = 0,iy < 5, iy++)
- for(var/ix = 0, ix < 5, ix++)
+ for(var/iy = 0,iy < drill_range, iy++)
+ for(var/ix = 0, ix < drill_range, ix++)
mine_turf = locate(tx + ix, ty + iy, T.z)
if(!istype(mine_turf, /turf/space/))
if(mine_turf && mine_turf.has_resources)
@@ -334,12 +352,23 @@
desc = "A machinery brace for an industrial drill. It looks easily two feet thick."
icon_state = "mining_brace"
circuit = /obj/item/weapon/circuitboard/miningdrillbrace
+ var/brace_tier = 1
var/obj/machinery/mining/drill/connected
-/obj/machinery/mining/brace/New()
- ..()
+/obj/machinery/mining/brace/examine(mob/user)
+ . = ..()
+ if(brace_tier > 3)
+ . += SPAN_NOTICE("The internals of the brace look resilient enough to support a drill by itself.")
- component_parts = list()
+/obj/machinery/mining/brace/Initialize()
+ . = ..()
+ default_apply_parts()
+
+/obj/machinery/mining/brace/RefreshParts()
+ ..()
+ brace_tier = 0
+ for(var/obj/item/weapon/stock_parts/manipulator/M in component_parts)
+ brace_tier += M.rating
/obj/machinery/mining/brace/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(connected && connected.active)
@@ -350,6 +379,8 @@
return
if(default_deconstruction_crowbar(user, W))
return
+ if(default_part_replacement(user,W))
+ return
if(W.is_wrench())
diff --git a/code/modules/mining/kinetic_crusher.dm b/code/modules/mining/kinetic_crusher.dm
index f4712d31b9a..7effaf60d98 100644
--- a/code/modules/mining/kinetic_crusher.dm
+++ b/code/modules/mining/kinetic_crusher.dm
@@ -246,7 +246,7 @@
slot_r_hand_str = 'icons/mob/items/righthand_melee_vr.dmi',
)
item_state = "c-machete"
- w_class = ITEMSIZE_SMALL
+ w_class = ITEMSIZE_NORMAL
attack_verb = list("cleaved", "chopped", "pulped", "stabbed", "skewered")
can_cleave = TRUE
requires_wield = FALSE
diff --git a/code/modules/mining/ore_box.dm b/code/modules/mining/ore_box.dm
index bda08a903de..9fddd03e213 100644
--- a/code/modules/mining/ore_box.dm
+++ b/code/modules/mining/ore_box.dm
@@ -58,34 +58,33 @@
for(var/ore in stored_ore)
. += "- [stored_ore[ore]] [ore]"
-/obj/structure/ore_box/verb/empty_box()
- set name = "Empty Ore Box"
- set category = "Object"
- set src in view(1)
-
- if(!ishuman(usr) && !isrobot(usr)) //Only living, intelligent creatures with gripping aparatti can empty ore boxes.
- to_chat(usr, "You are physically incapable of emptying the ore box. ")
- return
-
- if(usr.stat || usr.restrained())
- return
-
- if(!Adjacent(usr)) //You can only empty the box if you can physically reach it
- to_chat(usr, "You cannot reach the ore box.")
- return
-
- add_fingerprint(usr)
-
- if(contents.len < 1)
- to_chat(usr, "The ore box is empty. ")
- return
-
- for (var/obj/item/weapon/ore/O in contents)
- contents -= O
- O.loc = src.loc
- to_chat(usr, "You empty the ore box. ")
-
- return
+// /obj/structure/ore_box/verb/empty_box()
+// set name = "Empty Ore Box"
+// set category = "Object"
+// set src in view(1)
+//
+// if(!ishuman(usr) && !isrobot(usr)) //Only living, intelligent creatures with gripping aparatti can empty ore boxes.
+// to_chat(usr, "You are physically incapable of emptying the ore box. ")
+// return
+// if(usr.stat || usr.restrained())
+// return
+//
+// if(!Adjacent(usr)) //You can only empty the box if you can physically reach it
+// to_chat(usr, "You cannot reach the ore box.")
+// return
+//
+// add_fingerprint(usr)
+//
+// if(contents.len < 1)
+// to_chat(usr, "The ore box is empty. ")
+// return
+//
+// for (var/obj/item/weapon/ore/O in contents)
+// contents -= O
+// O.loc = src.loc
+// to_chat(usr, "You empty the ore box. ")
+//
+// return
/obj/structure/ore_box/ex_act(severity)
if(severity == 1.0 || (severity < 3.0 && prob(50)))
diff --git a/code/modules/mining/ore_redemption_machine/equipment_vendor.dm b/code/modules/mining/ore_redemption_machine/equipment_vendor.dm
index ede586fba7c..38eacfc56fc 100644
--- a/code/modules/mining/ore_redemption_machine/equipment_vendor.dm
+++ b/code/modules/mining/ore_redemption_machine/equipment_vendor.dm
@@ -120,7 +120,7 @@
EQUIPMENT("Kinetic Accelerator", /obj/item/weapon/gun/energy/kinetic_accelerator, 900),
EQUIPMENT("KA AoE Damage", /obj/item/borg/upgrade/modkit/aoe/mobs, 2000),
EQUIPMENT("KA Damage Increase", /obj/item/borg/upgrade/modkit/damage, 1000),
- EQUIPMENT("KA Efficiency Increase", /obj/item/borg/upgrade/modkit/efficiency, 1200),
+ EQUIPMENT("KA Cooldown Decrease", /obj/item/borg/upgrade/modkit/cooldown, 1200),
EQUIPMENT("KA Range Increase", /obj/item/borg/upgrade/modkit/range, 1000),
EQUIPMENT("KA Holster", /obj/item/clothing/accessory/holster/waist/kinetic_accelerator, 350),
EQUIPMENT("KA Super Chassis", /obj/item/borg/upgrade/modkit/chassis_mod, 250),
diff --git a/code/modules/mob/language/station.dm b/code/modules/mob/language/station.dm
index 32c579f82d0..85bd64c0fcc 100644
--- a/code/modules/mob/language/station.dm
+++ b/code/modules/mob/language/station.dm
@@ -7,7 +7,7 @@
colour = "soghun"
key = "q"
machine_understands = 0
- flags = RESTRICTED
+ flags = WHITELISTED // RESTRICTED would make this completely unavailable from character select
syllables = list("hs","zt","kr","st","sh")
/datum/language/diona_local/get_random_name()
@@ -20,7 +20,7 @@
desc = "A complex language known instinctively by Dionaea, 'spoken' by emitting modulated radio waves. This version uses low frequency waves for slow communication at long ranges."
key = "w"
machine_understands = 0
- flags = RESTRICTED | HIVEMIND
+ flags = WHITELISTED | HIVEMIND // RESTRICTED would make this completely unavailable from character select
/datum/language/unathi
name = LANGUAGE_UNATHI
diff --git a/code/modules/mob/living/bot/medbot.dm b/code/modules/mob/living/bot/medbot.dm
index 42f3bff06ce..39b0b882bb1 100644
--- a/code/modules/mob/living/bot/medbot.dm
+++ b/code/modules/mob/living/bot/medbot.dm
@@ -451,7 +451,7 @@
return treatment_emag
// If they're injured, we're using a beaker, and they don't have on of the chems in the beaker
- if(reagent_glass && use_beaker && ((H.getBruteLoss() >= heal_threshold) || (H.getToxLoss() >= heal_threshold) || (H.getToxLoss() >= heal_threshold) || (H.getOxyLoss() >= (heal_threshold + 15))))
+ if(reagent_glass && use_beaker && ((H.getBruteLoss() >= heal_threshold) || (H.getToxLoss() >= heal_threshold) || (H.getFireLoss() >= heal_threshold) || (H.getOxyLoss() >= (heal_threshold + 15))))
for(var/datum/reagent/R in reagent_glass.reagents.reagent_list)
if(!H.reagents.has_reagent(R))
return 1
diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm
index 119d349105f..d5311f79a53 100644
--- a/code/modules/mob/living/carbon/human/inventory.dm
+++ b/code/modules/mob/living/carbon/human/inventory.dm
@@ -173,7 +173,8 @@ This saves us from having to call add_fingerprint() any time something is put in
if(I.flags_inv & (BLOCKHAIR|BLOCKHEADHAIR))
update_hair(0) //rebuild hair
update_inv_ears(0)
- if(internal)
+ // If this is how the internals are connected, disable them
+ if(internal && !(head?.item_flags & AIRTIGHT))
if(internals)
internals.icon_state = "internal0"
internal = null
diff --git a/code/modules/mob/living/carbon/human/species/shadekin/shadekin_abilities.dm b/code/modules/mob/living/carbon/human/species/shadekin/shadekin_abilities.dm
index 8f22ca4907b..e336a461e31 100644
--- a/code/modules/mob/living/carbon/human/species/shadekin/shadekin_abilities.dm
+++ b/code/modules/mob/living/carbon/human/species/shadekin/shadekin_abilities.dm
@@ -108,6 +108,7 @@
sleep(5) //The duration of the TP animation
canmove = original_canmove
alpha = initial(alpha)
+ remove_modifiers_of_type(/datum/modifier/shadekin_phase_vision)
//Potential phase-in vore
if(can_be_drop_pred) //Toggleable in vore panel
@@ -143,6 +144,7 @@
var/obj/effect/temp_visual/shadekin/phase_out/phaseanim = new /obj/effect/temp_visual/shadekin/phase_out(src.loc)
phaseanim.dir = dir
alpha = 0
+ add_modifier(/datum/modifier/shadekin_phase_vision)
sleep(5)
invisibility = INVISIBILITY_LEVEL_TWO
see_invisible = INVISIBILITY_LEVEL_TWO
@@ -155,6 +157,10 @@
density = FALSE
force_max_speed = TRUE
+/datum/modifier/shadekin_phase_vision
+ name = "Shadekin Phase Vision"
+ vision_flags = SEE_THRU
+
//////////////////////////
/// REGENERATE OTHER ///
//////////////////////////
diff --git a/code/modules/mob/living/carbon/human/species/station/prometheans.dm b/code/modules/mob/living/carbon/human/species/station/prometheans.dm
index ef841a3baba..b1c468dac70 100644
--- a/code/modules/mob/living/carbon/human/species/station/prometheans.dm
+++ b/code/modules/mob/living/carbon/human/species/station/prometheans.dm
@@ -45,7 +45,7 @@ var/datum/species/shapeshifter/promethean/prometheans
female_cough_sounds = list('sound/effects/slime_squish.ogg')
min_age = 1
- max_age = 10
+ max_age = 16
economic_modifier = 3
diff --git a/code/modules/mob/living/carbon/human/species/station/station.dm b/code/modules/mob/living/carbon/human/species/station/station.dm
index 5d5112acf0d..870ac0e97d0 100644
--- a/code/modules/mob/living/carbon/human/species/station/station.dm
+++ b/code/modules/mob/living/carbon/human/species/station/station.dm
@@ -235,7 +235,7 @@
base_color = "#333333"
reagent_tag = IS_TAJARA
- allergens = ALLERGEN_COFFEE
+ allergens = ALLERGEN_STIMULANT
move_trail = /obj/effect/decal/cleanable/blood/tracks/paw
diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm
index 483c0919e30..f5186fa56b6 100644
--- a/code/modules/mob/living/carbon/human/update_icons.dm
+++ b/code/modules/mob/living/carbon/human/update_icons.dm
@@ -484,7 +484,7 @@ var/global/list/damage_icon_parts = list() //see UpdateDamageIcon()
var/image/em_block_ears
if(ears_s)
if(ears_s.Height() > face_standing.Height()) // Tol ears
- face_standing.Crop(face_standing.Width(), ears_s.Height())
+ face_standing.Crop(1, 1, face_standing.Width(), ears_s.Height())
face_standing.Blend(ears_s, ICON_OVERLAY)
if(ear_style?.em_block)
em_block_ears = em_block_image_generic(image(ears_s))
diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm
index 4252615d04d..b8b0e70d57c 100644
--- a/code/modules/mob/living/living.dm
+++ b/code/modules/mob/living/living.dm
@@ -1030,6 +1030,13 @@
if((N.health + N.halloss) < config.health_threshold_crit || N.stat == DEAD)
N.adjustBruteLoss(rand(10,30))
src.drop_from_inventory(G)
+
+ src.visible_message("[src] has thrown [item]. ")
+
+ if((isspace(src.loc)) || (src.lastarea?.has_gravity == 0))
+ src.inertia_dir = get_dir(target, src)
+ step(src, inertia_dir)
+ item.throw_at(target, throw_range, item.throw_speed, src)
return TRUE
else
return FALSE
@@ -1037,19 +1044,15 @@
if(!item)
return FALSE //Grab processing has a chance of returning null
- if(a_intent == I_HELP && Adjacent(target) && isitem(item))
+ if(a_intent == I_HELP && Adjacent(target) && isitem(item) && ishuman(target))
var/obj/item/I = item
- if(ishuman(target))
- var/mob/living/carbon/human/H = target
- if(H.in_throw_mode && H.a_intent == I_HELP && unEquip(I))
- H.put_in_hands(I) // If this fails it will just end up on the floor, but that's fitting for things like dionaea.
- visible_message("[src] hands \the [H] \a [I].", SPAN_NOTICE("You give \the [target] \a [I]."))
- else
- to_chat(src, SPAN_NOTICE("You offer \the [I] to \the [target]."))
- do_give(H)
- return TRUE
- make_item_drop_sound(I)
- I.forceMove(get_turf(target))
+ var/mob/living/carbon/human/H = target
+ if(H.in_throw_mode && H.a_intent == I_HELP && unEquip(I))
+ H.put_in_hands(I) // If this fails it will just end up on the floor, but that's fitting for things like dionaea.
+ visible_message("[src] hands \the [H] \a [I].", SPAN_NOTICE("You give \the [target] \a [I]."))
+ else
+ to_chat(src, SPAN_NOTICE("You offer \the [I] to \the [target]."))
+ do_give(H)
return TRUE
drop_from_inventory(item)
diff --git a/code/modules/mob/living/living_vr.dm b/code/modules/mob/living/living_vr.dm
index 04523d514ea..a570ed60dbe 100644
--- a/code/modules/mob/living/living_vr.dm
+++ b/code/modules/mob/living/living_vr.dm
@@ -12,13 +12,13 @@
var/sayselect = tgui_alert(src, "Which say-verb do you wish to customize?", "Select Verb", list("Say","Whisper","Ask (?)","Exclaim/Shout/Yell (!)","Cancel"))
if(sayselect == "Say")
- custom_say = sanitize(input(usr, "This word or phrase will appear instead of 'says': [src] says, \"Hi.\"", "Custom Say", null) as text)
+ custom_say = lowertext(sanitize(input(usr, "This word or phrase will appear instead of 'says': [src] says, \"Hi.\"", "Custom Say", null) as text))
else if(sayselect == "Whisper")
- custom_whisper = sanitize(input(usr, "This word or phrase will appear instead of 'whispers': [src] whispers, \"Hi...\"", "Custom Whisper", null) as text)
+ custom_whisper = lowertext(sanitize(input(usr, "This word or phrase will appear instead of 'whispers': [src] whispers, \"Hi...\"", "Custom Whisper", null) as text))
else if(sayselect == "Ask (?)")
- custom_ask = sanitize(input(usr, "This word or phrase will appear instead of 'asks': [src] asks, \"Hi?\"", "Custom Ask", null) as text)
+ custom_ask = lowertext(sanitize(input(usr, "This word or phrase will appear instead of 'asks': [src] asks, \"Hi?\"", "Custom Ask", null) as text))
else if(sayselect == "Exclaim/Shout/Yell (!)")
- custom_exclaim = sanitize(input(usr, "This word or phrase will appear instead of 'exclaims', 'shouts' or 'yells': [src] exclaims, \"Hi!\"", "Custom Exclaim", null) as text)
+ custom_exclaim = lowertext(sanitize(input(usr, "This word or phrase will appear instead of 'exclaims', 'shouts' or 'yells': [src] exclaims, \"Hi!\"", "Custom Exclaim", null) as text))
else
return
diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm
index 72fb8263a3c..97af632c946 100644
--- a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm
+++ b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm
@@ -612,7 +612,6 @@
for(var/tech in tech_item.origin_tech)
files.UpdateTech(tech, tech_item.origin_tech[tech])
synced = FALSE
- drain(-50 * digested)
if(volume)
water.add_charge(volume)
if(recycles && T.matter)
@@ -630,8 +629,7 @@
plastic.add_charge(total_material)
if(material == "wood")
wood.add_charge(total_material)
- else
- drain(-50 * digested)
+ drain(-50 * digested)
else if(istype(target,/obj/effect/decal/remains))
qdel(target)
drain(-100)
@@ -726,4 +724,4 @@
icon_state = "sleeperert"
injection_chems = list("inaprovaline", "paracetamol") // short list
-#undef SLEEPER_INJECT_COST
\ No newline at end of file
+#undef SLEEPER_INJECT_COST
diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm
index b77a61104e2..0a27ff88990 100644
--- a/code/modules/mob/living/silicon/robot/robot.dm
+++ b/code/modules/mob/living/silicon/robot/robot.dm
@@ -271,8 +271,10 @@
modules.Add(robot_module_types)
if(crisis || security_level == SEC_LEVEL_RED || crisis_override)
to_chat(src, "Crisis mode active. Combat module available. ")
- modules+="Combat"
- modules+="ERT"
+ modules += emergency_module_types
+ for(var/module_name in whitelisted_module_types)
+ if(is_borg_whitelisted(src, module_name))
+ modules += module_name
//VOREStatation Edit End: shell restrictions
modtype = tgui_input_list(usr, "Please, select a module!", "Robot module", modules)
@@ -280,6 +282,8 @@
return
if(!(modtype in robot_modules))
return
+ if(!is_borg_whitelisted(src, modtype))
+ return
var/module_type = robot_modules[modtype]
transform_with_anim() //VOREStation edit: sprite animation
diff --git a/code/modules/mob/living/silicon/robot/robot_modules/station.dm b/code/modules/mob/living/silicon/robot/robot_modules/station.dm
index 4a3f473e5f9..2087e733e21 100644
--- a/code/modules/mob/living/silicon/robot/robot_modules/station.dm
+++ b/code/modules/mob/living/silicon/robot/robot_modules/station.dm
@@ -9,7 +9,12 @@ var/global/list/robot_modules = list(
"Security" = /obj/item/weapon/robot_module/robot/security/general,
"Combat" = /obj/item/weapon/robot_module/robot/security/combat,
"Engineering" = /obj/item/weapon/robot_module/robot/engineering/general,
- "Janitor" = /obj/item/weapon/robot_module/robot/janitor
+ "Janitor" = /obj/item/weapon/robot_module/robot/janitor,
+ "Gravekeeper" = /obj/item/weapon/robot_module/robot/gravekeeper,
+ "Lost" = /obj/item/weapon/robot_module/robot/lost,
+ "Protector" = /obj/item/weapon/robot_module/robot/syndicate/protector,
+ "Mechanist" = /obj/item/weapon/robot_module/robot/syndicate/mechanist,
+ "Combat Medic" = /obj/item/weapon/robot_module/robot/syndicate/combat_medic
)
/obj/item/weapon/robot_module
diff --git a/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm b/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm
index bc2b188c6fe..b4167601971 100644
--- a/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm
+++ b/code/modules/mob/living/silicon/robot/robot_modules/station_vr.dm
@@ -49,6 +49,7 @@
robot_modules["Service-Hound"] = /obj/item/weapon/robot_module/robot/clerical/brodog
robot_modules["BoozeHound"] = /obj/item/weapon/robot_module/robot/booze
robot_modules["KMine"] = /obj/item/weapon/robot_module/robot/kmine
+ robot_modules["Stray"] = /obj/item/weapon/robot_module/robot/stray
return 1
//Just add a new proc with the robot_module type if you wish to run some other vore code
diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/zz_vore_overrides.dm b/code/modules/mob/living/simple_mob/subtypes/vore/zz_vore_overrides.dm
index b024c95a143..5744f8cccbc 100644
--- a/code/modules/mob/living/simple_mob/subtypes/vore/zz_vore_overrides.dm
+++ b/code/modules/mob/living/simple_mob/subtypes/vore/zz_vore_overrides.dm
@@ -124,7 +124,7 @@
vore_icons = 0
/mob/living/simple_mob/animal/space/carp/large/huge
vore_icons = 0
-/mob/living/simple_mob/animal/space/carp/holographic
+/mob/living/simple_mob/animal/space/carp/holodeck
vore_icons = 0
/* //VOREStation AI Temporary removal
diff --git a/code/modules/mob/mob_grab.dm b/code/modules/mob/mob_grab.dm
index 3ca22757826..1322f5be98f 100644
--- a/code/modules/mob/mob_grab.dm
+++ b/code/modules/mob/mob_grab.dm
@@ -178,8 +178,9 @@
//VOREStation Edit
if(BP_HEAD)
if(force_down)
- if(announce)
- assailant.visible_message("[assailant] sits on [target]'s face! ")
+ if(user.a_intent == I_HELP)
+ if(announce)
+ assailant.visible_message("[assailant] sits on [target]'s face! ")
//VOREStation Edit End
/obj/item/weapon/grab/attack_self()
diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm
index 0dcbf617e50..f3683f6ca4b 100644
--- a/code/modules/mob/new_player/new_player.dm
+++ b/code/modules/mob/new_player/new_player.dm
@@ -513,7 +513,7 @@
for(var/datum/job/job in job_master.occupations)
if(job && IsJobAvailable(job.title))
// Checks for jobs with minimum age requirements
- if(job.minimum_character_age && (client.prefs.age < job.minimum_character_age))
+ if((job.minimum_character_age || job.min_age_by_species) && (client.prefs.age < job.get_min_age(client.prefs.species, client.prefs.organ_data["brain"])))
continue
// Checks for jobs set to "Never" in preferences //TODO: Figure out a better way to check for this
if(!(client.prefs.GetJobDepartment(job, 1) & job.flag))
diff --git a/code/modules/mob/new_player/sprite_accessories_taur.dm b/code/modules/mob/new_player/sprite_accessories_taur.dm
index 5a96b1fd039..66233db64c4 100644
--- a/code/modules/mob/new_player/sprite_accessories_taur.dm
+++ b/code/modules/mob/new_player/sprite_accessories_taur.dm
@@ -26,8 +26,8 @@
//Hoooo boy.
/datum/riding/taur/get_offsets(pass_index) // list(dir = x, y, layer)
var/mob/living/L = ridden
- var/scale_x = L.icon_scale_x
- var/scale_y = L.icon_scale_y
+ var/scale_x = L.icon_scale_x * L.size_multiplier //VOREStation Edit
+ var/scale_y = L.icon_scale_y * L.size_multiplier //VOREStation Edit
var/list/values = list(
"[NORTH]" = list(0, 8*scale_y, ABOVE_MOB_LAYER),
diff --git a/code/modules/multiz/stairs.dm b/code/modules/multiz/stairs.dm
index 52b275a92f0..99b015c6c27 100644
--- a/code/modules/multiz/stairs.dm
+++ b/code/modules/multiz/stairs.dm
@@ -18,13 +18,13 @@
// Returns TRUE if the stairs are a complete and connected unit, FALSE if a piece is missing or obstructed
// Will attempt to reconnect broken pieces
-// Parameters:
+// Parameters:
// - B1: Loc of bottom stair
// - B2: Loc of middle stair
// - T1: Openspace over bottom stair
// - T2: Loc of top stair, over middle stair
-/obj/structure/stairs/proc/check_integrity(var/obj/structure/stairs/bottom/B = null,
- var/obj/structure/stairs/middle/M = null,
+/obj/structure/stairs/proc/check_integrity(var/obj/structure/stairs/bottom/B = null,
+ var/obj/structure/stairs/middle/M = null,
var/obj/structure/stairs/top/T = null,
var/turf/simulated/open/O = null)
@@ -91,14 +91,14 @@
var/obj/structure/stairs/middle/M = null,
var/obj/structure/stairs/top/T = null,
var/turf/simulated/open/O = null)
-
+
// In the case where we're provided all the pieces, just try connecting them.
// In order: all exist, they are appropriately adjacent, and they can connect
if(istype(B) && istype(M) && istype(T) && istype(O) && \
B.Adjacent(M) && (GetBelow(O) == get_turf(B)) && T.Adjacent(O) && \
..())
return TRUE
-
+
// If we're already configured, just check those
else if(istype(top) && istype(middle))
O = locate(/turf/simulated/open) in GetAbove(src)
@@ -118,7 +118,7 @@
// If you set the dir, that's the dir it *wants* to connect in. It only chooses the others if that doesn't work
// Everything is simply linked in our original direction
- if(istype(M) && istype(T) && ..(src, M, T, O))
+ if(istype(M) && istype(T) && ..(src, M, T, O))
return TRUE
// Else, we have to look in other directions
@@ -127,12 +127,12 @@
T2 = GetAbove(B2)
if(!istype(B2) || !istype(T2))
continue
-
+
T = locate(/obj/structure/stairs/top) in T2
M = locate(/obj/structure/stairs/middle) in B2
if(..(src, M, T, O))
return TRUE
-
+
// Out of the dir check, we have no valid neighbors, and thus are not complete.
return FALSE
@@ -143,18 +143,18 @@
use_stairs(AM, oldloc)
..()
-/obj/structure/stairs/bottom/use_stairs(var/atom/movable/AM, var/atom/oldloc)
+/obj/structure/stairs/bottom/use_stairs(var/atom/movable/AM, var/atom/oldloc)
// If we're coming from the top of the stairs, don't trap us in an infinite staircase
// Or if we fell down the openspace
if((top in oldloc) || oldloc == GetAbove(src))
return
-
+
if(isobserver(AM)) // Ghosts have their own methods for going up and down
return
-
+
if(AM.pulledby) // Animating the movement of pulled things is handled when the puller goes up the stairs
return
-
+
if(AM.has_buckled_mobs()) // Similarly, the rider entering the turf will bring along whatever they're buckled to
return
@@ -173,7 +173,7 @@
pulling |= L.pulling
for(var/obj/item/weapon/grab/G in list(L.l_hand, L.r_hand))
pulling |= G.affecting
-
+
// If the stairs aren't broken, go up.
if(check_integrity())
AM.dir = src.dir
@@ -185,7 +185,7 @@
// Move to Top
AM.forceMove(get_turf(top))
-
+
// If something is being pulled, bring it along directly to avoid the mob being torn away from it due to movement delays
for(var/atom/movable/P in pulling)
P.forceMove(get_turf(top)) // Just bring it along directly, no fussing with animation timing
@@ -202,16 +202,18 @@
if(isliving(AM))
var/mob/living/L = AM
-
+
if(L.grabbed_by.len) // Same as pulledby, whoever's holding you will keep you from going down stairs.
return
-
+
if(L.has_buckled_mobs())
return
if(L.buckled)
L.buckled.forceMove(get_turf(top))
-
+
+ L.forceMove(get_turf(top))
+
// If the object is pulling or grabbing anything, we'll want to move those too. A grab chain may be disrupted in doing so.
if(L.pulling && !L.pulling.anchored)
var/atom/movable/P = L.pulling
@@ -220,8 +222,7 @@
for(var/obj/item/weapon/grab/G in list(L.l_hand, L.r_hand))
G.affecting.forceMove(get_turf(top))
- L.forceMove(get_turf(top))
-
+
if(L.client)
L.client.Process_Grab()
else
@@ -255,10 +256,10 @@
// These are necessarily fairly similar, but because the positional relations are different, we have to copy-pasta a fair bit
/obj/structure/stairs/middle/check_integrity(var/obj/structure/stairs/bottom/B = null,
- var/obj/structure/stairs/middle/M = null,
+ var/obj/structure/stairs/middle/M = null,
var/obj/structure/stairs/top/T = null,
var/turf/simulated/open/O = null)
-
+
// In the case where we're provided all the pieces, just try connecting them.
// In order: all exist, they are appropriately adjacent, and they can connect
if(istype(B) && istype(M) && istype(T) && istype(O) && \
@@ -281,7 +282,7 @@
// Top is static for Middle stair, if it's invalid we can't do much
if(!istype(T))
return FALSE
-
+
// If you set the dir, that's the dir it *wants* to connect in. It only chooses the others if that doesn't work
// Everything is simply linked in our original direction
if(istype(B1) && istype(T2) && istype(O) && ..(B, src, T, O))
@@ -293,11 +294,11 @@
O = GetAbove(B1)
if(!istype(B1) || !istype(O))
continue
-
+
B = locate(/obj/structure/stairs/bottom) in B1
if(..(B, src, T, O))
return TRUE
-
+
// The middle stair has some further special logic, in that it can be climbed, and so is technically valid if only the top exists
// T is enforced by a prior if
T.middle = src
@@ -341,7 +342,7 @@
var/obj/structure/stairs/middle/M = null,
var/obj/structure/stairs/top/T = null,
var/turf/simulated/open/O = null)
-
+
// In the case where we're provided all the pieces, just try connecting them.
// In order: all exist, they are appropriately adjacent, and they can connect
if(istype(B) && istype(M) && istype(T) && istype(O) && \
@@ -377,11 +378,11 @@
B1 = GetBelow(O)
if(!istype(B1) || !istype(O))
continue
-
+
B = locate(/obj/structure/stairs/bottom) in B1
if((. = ..(B, M, src, O)))
return
-
+
// Out of the dir check, we have no valid neighbors, and thus are not complete. `.` was set by ..()
return
@@ -403,13 +404,13 @@
// Or if we climb up the middle
if((bottom in oldloc) || oldloc == GetBelow(src))
return
-
+
if(isobserver(AM)) // Ghosts have their own methods for going up and down
return
-
+
if(AM.pulledby) // Animating the movement of pulled things is handled when the puller goes up the stairs
return
-
+
if(AM.has_buckled_mobs()) // Similarly, the rider entering the turf will bring along whatever they're buckled to
return
@@ -428,7 +429,7 @@
pulling |= L.pulling
for(var/obj/item/weapon/grab/G in list(L.l_hand, L.r_hand))
pulling |= G.affecting
-
+
// If the stairs aren't broken, go up.
if(check_integrity())
AM.dir = turn(src.dir, 180)
@@ -438,7 +439,7 @@
// Move to Top
AM.forceMove(get_turf(bottom))
-
+
// If something is being pulled, bring it along directly to avoid the mob being torn away from it due to movement delays
for(var/atom/movable/P in pulling)
P.forceMove(get_turf(bottom)) // Just bring it along directly, no fussing with animation timing
@@ -455,16 +456,18 @@
if(isliving(AM))
var/mob/living/L = AM
-
+
if(L.grabbed_by.len) // Same as pulledby, whoever's holding you will keep you from going down stairs.
return
-
+
if(L.has_buckled_mobs())
return
if(L.buckled)
L.buckled.forceMove(get_turf(bottom))
-
+
+ L.forceMove(get_turf(bottom))
+
// If the object is pulling or grabbing anything, we'll want to move those too. A grab chain may be disrupted in doing so.
if(L.pulling && !L.pulling.anchored)
var/atom/movable/P = L.pulling
@@ -473,8 +476,6 @@
for(var/obj/item/weapon/grab/G in list(L.l_hand, L.r_hand))
G.affecting.forceMove(get_turf(bottom))
-
- L.forceMove(get_turf(bottom))
if(L.client)
L.client.Process_Grab()
@@ -493,14 +494,14 @@
var/turf/B2 = get_turf(src)
var/turf/T1 = GetAbove(B1)
var/turf/T2 = GetAbove(B2)
-
+
if(!istype(B1) || !istype(B2))
warning("Stair created at invalid loc: ([loc.x], [loc.y], [loc.z])")
return INITIALIZE_HINT_QDEL
if(!istype(T1) || !istype(T2))
warning("Stair created without level above: ([loc.x], [loc.y], [loc.z])")
return INITIALIZE_HINT_QDEL
-
+
// Spawn the stairs
// Railings sold separately
var/turf/simulated/open/O = T1
@@ -516,7 +517,7 @@
B.check_integrity(B, M, T, O)
return INITIALIZE_HINT_QDEL
-
+
// For ease of spawning. While you *can* spawn the base type and set its dir, this is useful for adminbus and a little bit quicker to map in
/obj/structure/stairs/spawner/north
dir = NORTH
diff --git a/code/modules/overmap/spacetravel.dm b/code/modules/overmap/spacetravel.dm
index 3dac19cf36f..ae1bca73352 100644
--- a/code/modules/overmap/spacetravel.dm
+++ b/code/modules/overmap/spacetravel.dm
@@ -5,15 +5,16 @@
known = FALSE
in_space = TRUE
-/obj/effect/overmap/visitable/sector/temporary/Initialize(var/nx, var/ny)
+/obj/effect/overmap/visitable/sector/temporary/Initialize()
+ if(!istype(loc, /turf/unsimulated/map))
+ CRASH("Attempt to create deepspace which is not on overmap: [log_info_line(loc)]")
+ // Tell sector initializer where are is where we want to be.
+ start_x = loc.x
+ start_y = loc.y
+ // But pick an empty z level to use
+ map_z += global.using_map.get_empty_zlevel()
. = ..()
- loc = locate(nx, ny, global.using_map.overmap_z)
- x = nx
- y = ny
- var/emptyz = global.using_map.get_empty_zlevel()
- map_z += emptyz
- map_sectors["[emptyz]"] = src
- testing("Temporary sector at [x],[y] was created, corresponding zlevel is [emptyz].")
+ testing("Temporary sector at [x],[y],[z] was created, corresponding zlevel is [english_list(map_z)].")
/obj/effect/overmap/visitable/sector/temporary/Destroy()
for(var/zlevel in map_z)
@@ -43,7 +44,7 @@
var/obj/effect/overmap/visitable/sector/temporary/res = locate() in overmap_turf
if(istype(res))
return res
- return new /obj/effect/overmap/visitable/sector/temporary(x, y)
+ return new /obj/effect/overmap/visitable/sector/temporary(overmap_turf)
/atom/movable/proc/lost_in_space()
for(var/atom/movable/AM in contents)
@@ -133,6 +134,8 @@
TM = get_deepspace(M.x,M.y)
nz = pick(TM.get_space_zlevels())
+ testing("spacetravel chose [nz],[ny],[nz] in sector [TM] @ ([TM.x],[TM.y],[TM.z])")
+
var/turf/dest = locate(nx,ny,nz)
if(istype(dest))
A.forceMove(dest)
diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm
index aa370035203..2b0d100c108 100644
--- a/code/modules/power/cell.dm
+++ b/code/modules/power/cell.dm
@@ -14,6 +14,8 @@
throw_speed = 3
throw_range = 5
w_class = ITEMSIZE_NORMAL
+ /// Are we EMP immune?
+ var/emp_proof = FALSE
var/static/cell_uid = 1 // Unique ID of this power cell. Used to reduce bunch of uglier code in nanoUI.
var/c_uid
var/charge = 0 // note %age conveted to actual charge in New
@@ -189,6 +191,8 @@
rigged = 1 //broken batterys are dangerous
/obj/item/weapon/cell/emp_act(severity)
+ if(emp_proof)
+ return
//remove this once emp changes on dev are merged in
if(isrobot(loc))
var/mob/living/silicon/robot/R = loc
diff --git a/code/modules/power/cells/device_cells.dm b/code/modules/power/cells/device_cells.dm
index 3b6e71e2ed5..b18b7b415c4 100644
--- a/code/modules/power/cells/device_cells.dm
+++ b/code/modules/power/cells/device_cells.dm
@@ -25,6 +25,9 @@
charge = 0
update_icon()
+/obj/item/weapon/cell/device/weapon/empproof
+ emp_proof = TRUE
+
/obj/item/weapon/cell/device/weapon/recharge
name = "self-charging weapon power cell"
desc = "A small power cell designed to power handheld weaponry. This one recharges itself."
diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm
index c1dae89a6e8..74dc34a72c2 100644
--- a/code/modules/projectiles/guns/energy.dm
+++ b/code/modules/projectiles/guns/energy.dm
@@ -21,6 +21,7 @@
var/recharge_time = 4
var/charge_tick = 0
var/charge_delay = 75 //delay between firing and charging
+ var/shot_counter = TRUE // does this gun tell you how many shots it has?
var/battery_lock = 0 //If set, weapon cannot switch batteries
@@ -175,14 +176,15 @@
/obj/item/weapon/gun/energy/examine(mob/user)
. = ..()
- if(power_supply)
- if(charge_cost)
- var/shots_remaining = round(power_supply.charge / max(1, charge_cost)) // Paranoia
- . += "Has [shots_remaining] shot\s remaining."
+ if(shot_counter)
+ if(power_supply)
+ if(charge_cost)
+ var/shots_remaining = round(power_supply.charge / max(1, charge_cost)) // Paranoia
+ . += "Has [shots_remaining] shot\s remaining."
+ else
+ . += "Has infinite shots remaining."
else
- . += "Has infinite shots remaining."
- else
- . += "Does not have a power cell."
+ . += "Does not have a power cell."
/obj/item/weapon/gun/energy/update_icon(var/ignore_inhands)
if(power_supply == null)
diff --git a/code/modules/projectiles/guns/energy/kinetic_accelerator_vr.dm b/code/modules/projectiles/guns/energy/kinetic_accelerator_vr.dm
index 3d656b44669..fb581a4eb3d 100644
--- a/code/modules/projectiles/guns/energy/kinetic_accelerator_vr.dm
+++ b/code/modules/projectiles/guns/energy/kinetic_accelerator_vr.dm
@@ -1,51 +1,126 @@
+#define LAVALAND_EQUIPMENT_EFFECT_PRESSURE 50 //what pressure you have to be under to increase the effect of equipment meant for lavaland
+#define HEATMODE_ATMOSPHERE 312.1 //kPa. basically virgo 2's
+#define HEATMODE_TEMP 612 //kelvin. basically virgo 2's
+/**
+ * This is here for now
+ */
+/proc/lavaland_environment_check(turf/simulated/T)
+ . = TRUE
+ if(!istype(T))
+ return
+ var/datum/gas_mixture/environment = T.return_air()
+ if(!istype(environment))
+ return
+ var/pressure = environment.return_pressure()
+ if(pressure > LAVALAND_EQUIPMENT_EFFECT_PRESSURE)
+ . = FALSE
+ if(environment.temperature < (T20C - 30))
+ . = TRUE
+
+/proc/virgotwo_environment_check(turf/simulated/T)
+ . = TRUE
+ if(!istype(T))
+ return
+ var/datum/gas_mixture/environment = T.return_air()
+ if(!istype(environment))
+ return
+ var/pressure = environment.return_pressure()
+ if(pressure < HEATMODE_ATMOSPHERE - 20)
+ . = FALSE
+ if(environment.temperature > HEATMODE_TEMP - 30)
+ . = TRUE
+
/obj/item/weapon/gun/energy/kinetic_accelerator
name = "proto-kinetic accelerator"
- desc = "A self recharging, ranged mining tool that does increased damage in low temperature. Capable of holding up to six slots worth of mod kits."
+ desc = "A self recharging, ranged mining tool that does increased damage in low pressure."
icon = 'icons/obj/gun_vr.dmi'
icon_state = "kineticgun"
- item_state = "kineticgun"
item_icons = list(
slot_l_hand_str = 'icons/mob/items/lefthand_guns_vr.dmi',
- slot_r_hand_str = 'icons/mob/items/righthand_guns_vr.dmi')
+ slot_r_hand_str = 'icons/mob/items/righthand_guns_vr.dmi',
+ )
+ item_state = "kineticgun"
+ // ammo_type = list(/obj/item/ammo_casing/energy/kinetic)
+ cell_type = /obj/item/weapon/cell/device/weapon/empproof
+ item_flags = NONE
+ charge_meter = FALSE
+ // obj_flags = UNIQUE_RENAME
+ // weapon_weight = WEAPON_LIGHT
+ // can_flashlight = 1
+ // flight_x_offset = 15
+ // flight_y_offset = 9
+ // automatic_charge_overlays = FALSE
projectile_type = /obj/item/projectile/kinetic
- origin_tech = list(TECH_COMBAT = 3, TECH_POWER = 3, TECH_ENGINEERING = 3)
- can_flashlight = TRUE
- flight_x_offset = 15
- flight_y_offset = 9
- charge_cost = 120 // 20 shots on weapon power cell
- fire_delay = 16
- self_recharge = TRUE
- recharge_time = 10 // every 20*2 seconds will get 20% power restored
+ charge_cost = 1200
+ battery_lock = TRUE
+ fire_sound = 'sound/weapons/kenetic_accel.ogg'
+ var/overheat_time = 16
+ var/holds_charge = FALSE
+ var/unique_frequency = FALSE // modified by KA modkits
+ var/overheat = FALSE
+ var/emptystate = "kineticgun_empty"
+ shot_counter = FALSE
+ // can_bayonet = TRUE
+ // knife_x_offset = 20
+ // knife_y_offset = 12
var/max_mod_capacity = 100
var/list/modkits = list()
- var/empty_state = "kineticgun_empty"
+
+ var/recharge_timerid
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/consume_next_projectile()
+ if(overheat)
+ return
+ . = ..()
+ if(.)
+ var/obj/item/projectile/P = .
+ modify_projectile(P)
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/handle_post_fire(mob/user, atom/target, pointblank, reflex)
+ . = ..()
+ attempt_reload()
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/premiumka
+ name = "premium accelerator"
+ desc = "A premium kinetic accelerator fitted with an extended barrel and increased pressure tank."
+ icon_state = "premiumgun"
+ item_state = "premiumgun"
+ projectile_type = /obj/item/projectile/kinetic/premium
/obj/item/weapon/gun/energy/kinetic_accelerator/examine(mob/user)
. = ..()
- if(Adjacent(user) && max_mod_capacity)
+ if(max_mod_capacity)
. += "[get_remaining_mod_capacity()]% mod capacity remaining."
- for(var/obj/item/borg/upgrade/modkit/M as anything in get_modkits())
- . += "There is a [M.name] mod installed, using [M.cost]% capacity. "
+ for(var/A in get_modkits())
+ var/obj/item/borg/upgrade/modkit/M = A
+ . += "There is \a [M] installed, using [M.cost]% capacity. "
-/obj/item/weapon/gun/energy/kinetic_accelerator/attackby(obj/item/A, mob/user)
- if(istype(A, /obj/item/weapon/tool/crowbar))
+/obj/item/weapon/gun/energy/kinetic_accelerator/Exited(atom/movable/AM)
+ . = ..()
+ if((AM in modkits) && istype(AM, /obj/item/borg/upgrade/modkit))
+ var/obj/item/borg/upgrade/modkit/M = AM
+ M.uninstall(src, FALSE)
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/attackby(obj/item/I, mob/user)
+ if(I.has_tool_quality(TOOL_CROWBAR))
if(modkits.len)
to_chat(user, "You pry the modifications out. ")
- playsound(src, A.usesound, 100, 1)
+ playsound(loc, I.usesound, 100, 1)
for(var/obj/item/borg/upgrade/modkit/M in modkits)
M.uninstall(src)
else
to_chat(user, "There are no modifications currently installed. ")
- else if(istype(A, /obj/item/borg/upgrade/modkit))
- var/obj/item/borg/upgrade/modkit/MK = A
+ if(istype(I, /obj/item/borg/upgrade/modkit))
+ var/obj/item/borg/upgrade/modkit/MK = I
MK.install(src, user)
else
..()
/obj/item/weapon/gun/energy/kinetic_accelerator/proc/get_remaining_mod_capacity()
var/current_capacity_used = 0
- for(var/obj/item/borg/upgrade/modkit/M as anything in get_modkits())
+ for(var/A in get_modkits())
+ var/obj/item/borg/upgrade/modkit/M = A
current_capacity_used += M.cost
return max_mod_capacity - current_capacity_used
@@ -55,134 +130,243 @@
. += A
/obj/item/weapon/gun/energy/kinetic_accelerator/proc/modify_projectile(obj/item/projectile/kinetic/K)
- for(var/obj/item/borg/upgrade/modkit/M as anything in get_modkits())
+ K.kinetic_gun = src //do something special on-hit, easy!
+ for(var/A in get_modkits())
+ var/obj/item/borg/upgrade/modkit/M = A
M.modify_projectile(K)
-/obj/item/weapon/gun/energy/kinetic_accelerator/consume_next_projectile()
- var/obj/item/projectile/kinetic/BB = ..()
- if(!istype(BB))
- return
- modify_projectile(BB)
+/obj/item/weapon/gun/energy/kinetic_accelerator/cyborg
+ holds_charge = TRUE
+ unique_frequency = TRUE
- var/turf/proj_turf = get_turf(src)
- if(!isturf(proj_turf))
- return
- var/datum/gas_mixture/environment = proj_turf.return_air()
- if(environment.temperature > 250)
- BB.name = "weakened [BB.name]"
- BB.damage *= BB.pressure_decrease
- return BB
+/obj/item/weapon/gun/energy/kinetic_accelerator/cyborg/Destroy()
+ for(var/obj/item/borg/upgrade/modkit/M in modkits)
+ M.uninstall(src)
+ return ..()
-/obj/item/weapon/gun/energy/kinetic_accelerator/handle_post_fire(mob/user, atom/target, var/pointblank=0, var/reflex=0)
+/obj/item/weapon/gun/energy/kinetic_accelerator/premiumka/cyborg
+ holds_charge = TRUE
+ unique_frequency = TRUE
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/premiumka/cyborg/Destroy()
+ for(var/obj/item/borg/upgrade/modkit/M in modkits)
+ M.uninstall(src)
+ return ..()
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/minebot
+ // trigger_guard = TRIGGER_GUARD_ALLOW_ALL
+ overheat_time = 20
+ holds_charge = TRUE
+ unique_frequency = TRUE
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/Initialize()
. = ..()
- spawn(fire_delay)
- if(power_supply && power_supply.check_charge(charge_cost))
- playsound(src, 'sound/weapons/kenetic_reload.ogg', 60, 1)
+ if(!holds_charge)
+ empty()
+ AddElement(/datum/element/conflict_checking, CONFLICT_ELEMENT_KA)
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/equipped(mob/user)
+ . = ..()
+ if(power_supply.charge < charge_cost)
+ attempt_reload()
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/dropped(mob/user)
+ . = ..()
+ if(!QDELING(src) && !holds_charge)
+ // Put it on a delay because moving item from slot to hand
+ // calls dropped().
+ addtimer(CALLBACK(src, .proc/empty_if_not_held), 2)
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/proc/empty_if_not_held()
+ if(!ismob(loc) && !istype(loc, /obj/item/integrated_circuit))
+ empty()
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/proc/empty()
+ if(power_supply)
+ power_supply.use(power_supply.charge)
+ update_icon()
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/proc/attempt_reload(recharge_time)
+ if(!power_supply)
+ return
+ if(overheat)
+ return
+ if(!recharge_time)
+ recharge_time = overheat_time
+ overheat = TRUE
+ update_icon()
+
+ var/carried = max(1, loc.ConflictElementCount(CONFLICT_ELEMENT_KA))
+
+ deltimer(recharge_timerid)
+ recharge_timerid = addtimer(CALLBACK(src, .proc/reload), recharge_time * carried, TIMER_STOPPABLE)
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/emp_act(severity)
+ return
+
+/obj/item/weapon/gun/energy/kinetic_accelerator/proc/reload()
+ power_supply.give(power_supply.maxcharge)
+ // process_chamber()
+ // if(!suppressed)
+ playsound(src, 'sound/weapons/kenetic_reload.ogg', 60, 1)
+ // else
+ // to_chat(loc, "[src] silently charges up. ")
+ overheat = FALSE
+ update_icon()
/obj/item/weapon/gun/energy/kinetic_accelerator/update_icon()
cut_overlays()
- if(!power_supply || !power_supply.check_charge(charge_cost))
- add_overlay(empty_state)
- if(can_flashlight)
- var/iconF = "flight"
- if(gun_light)
- iconF = "flight_on"
- add_overlay(image(icon = icon, icon_state = iconF, pixel_x = flight_x_offset, pixel_y = flight_y_offset))
+ if(overheat || (power_supply.charge == 0))
+ add_overlay(emptystate)
+
+#define KA_ENVIRO_TYPE_COLD 0
+#define KA_ENVIRO_TYPE_HOT 1
//Projectiles
/obj/item/projectile/kinetic
name = "kinetic force"
- icon = 'icons/obj/projectiles_vr.dmi'
icon_state = null
- damage = 32
+ damage = 30
damage_type = BRUTE
check_armour = "bomb"
- range = 3 // Our "range" var is named "kill_count". Yes it is.
+ range = 4
+ // log_override = TRUE
- var/pressure_decrease = 0.25
- var/turf_aoe = FALSE
- var/mob_aoe = FALSE
- var/list/hit_overlays = list()
+ var/pressure_decrease_active = FALSE
+ var/pressure_decrease = 1/3
+ var/environment = KA_ENVIRO_TYPE_COLD
+ var/obj/item/weapon/gun/energy/kinetic_accelerator/kinetic_gun
-// /obj/item/projectile/kinetic/pod
-// kill_count = 4
-//
-// /obj/item/projectile/kinetic/pod/regular
-// damage = 50
-// pressure_decrease = 0.5
-//
-// /obj/item/projectile/kinetic/pod/enhanced
-// turf_aoe = TRUE
-// mob_aoe = TRUE
+/obj/item/projectile/kinetic/premium
+ damage = 40
+ damage_type = BRUTE
+ range = 5
-/obj/item/projectile/kinetic/on_impact(var/atom/A)
- strike_thing(A)
- . = ..()
+/obj/item/projectile/kinetic/Destroy()
+ kinetic_gun = null
+ return ..()
-/obj/item/projectile/kinetic/on_hit(var/atom/target)
+/obj/item/projectile/kinetic/Bump(atom/target)
+ if(kinetic_gun)
+ var/list/mods = kinetic_gun.get_modkits()
+ for(var/obj/item/borg/upgrade/modkit/M in mods)
+ M.projectile_prehit(src, target, kinetic_gun)
+ if(!pressure_decrease_active)
+ if(environment == KA_ENVIRO_TYPE_COLD)
+ if(!lavaland_environment_check(get_turf(src)))
+ name = "weakened [name]"
+ damage = damage * pressure_decrease
+ pressure_decrease_active = TRUE
+ else if(environment == KA_ENVIRO_TYPE_HOT)
+ if(!virgotwo_environment_check(get_turf(src)))
+ name = "weakened [name]"
+ damage = damage * pressure_decrease
+ pressure_decrease_active = TRUE
+ return ..()
+
+/obj/item/projectile/kinetic/attack_mob(mob/living/target_mob, distance, miss_modifier)
+ if(!pressure_decrease_active)
+ if(environment == KA_ENVIRO_TYPE_COLD)
+ if(!lavaland_environment_check(get_turf(src)))
+ name = "weakened [name]"
+ damage = damage * pressure_decrease
+ pressure_decrease_active = TRUE
+ else if(environment == KA_ENVIRO_TYPE_HOT)
+ if(!virgotwo_environment_check(get_turf(src)))
+ name = "weakened [name]"
+ damage = damage * pressure_decrease
+ pressure_decrease_active = TRUE
+ return ..()
+
+/obj/item/projectile/kinetic/on_range()
+ strike_thing()
+ ..()
+
+/obj/item/projectile/kinetic/on_hit(atom/target)
strike_thing(target)
. = ..()
+/obj/item/projectile/kinetic/on_impact(atom/A)
+ . = ..()
+ strike_thing(A)
+
/obj/item/projectile/kinetic/proc/strike_thing(atom/target)
+ if(!pressure_decrease_active)
+ if(environment == KA_ENVIRO_TYPE_COLD)
+ if(!lavaland_environment_check(get_turf(src)))
+ name = "weakened [name]"
+ damage = damage * pressure_decrease
+ pressure_decrease_active = TRUE
+ else if(environment == KA_ENVIRO_TYPE_HOT)
+ if(!virgotwo_environment_check(get_turf(src)))
+ name = "weakened [name]"
+ damage = damage * pressure_decrease
+ pressure_decrease_active = TRUE
var/turf/target_turf = get_turf(target)
if(!target_turf)
target_turf = get_turf(src)
- if(istype(target_turf, /turf/simulated/mineral))
+ if(kinetic_gun) //hopefully whoever shot this was not very, very unfortunate.
+ var/list/mods = kinetic_gun.get_modkits()
+ for(var/obj/item/borg/upgrade/modkit/M in mods)
+ M.projectile_strike_predamage(src, target_turf, target, kinetic_gun)
+ for(var/obj/item/borg/upgrade/modkit/M in mods)
+ M.projectile_strike(src, target_turf, target, kinetic_gun)
+ if(ismineralturf(target_turf))
var/turf/simulated/mineral/M = target_turf
- M.GetDrilled()
+ M.GetDrilled(TRUE)
var/obj/effect/temp_visual/kinetic_blast/K = new /obj/effect/temp_visual/kinetic_blast(target_turf)
K.color = color
- for(var/type in hit_overlays)
- new type(target_turf)
- if(turf_aoe)
- for(var/T in RANGE_TURFS(1, target_turf) - target_turf)
- if(istype(T, /turf/simulated/mineral))
- var/turf/simulated/mineral/M = T
- M.GetDrilled()
- if(mob_aoe)
- for(var/mob/living/L in range(1, target_turf) - firer - target)
- var/armor = L.run_armor_check(def_zone, check_armour)
- L.apply_damage(damage*mob_aoe, damage_type, def_zone, armor)
- to_chat(L, "You're struck by a [name]! ")
+
//Modkits
/obj/item/borg/upgrade/modkit
- name = "modification kit"
+ name = "kinetic accelerator modification kit"
desc = "An upgrade for kinetic accelerators."
icon = 'icons/obj/objects_vr.dmi'
icon_state = "modkit"
- origin_tech = list(TECH_DATA = 2, TECH_MATERIAL = 2, TECH_MAGNET = 4)
+ w_class = ITEMSIZE_SMALL
require_module = 1
- // var/module_type = /obj/item/robot_module/miner
- usesound = 'sound/items/Screwdriver.ogg'
+ // module_type = list(/obj/item/robot_module/miner)
var/denied_type = null
var/maximum_of_type = 1
var/cost = 30
var/modifier = 1 //For use in any mod kit that has numerical modifiers
+ var/minebot_upgrade = TRUE
+ var/minebot_exclusive = FALSE
/obj/item/borg/upgrade/modkit/examine(mob/user)
. = ..()
- if(Adjacent(user))
- . += "Occupies [cost]% of mod capacity. "
+ . += "Occupies [cost]% of mod capacity. "
/obj/item/borg/upgrade/modkit/attackby(obj/item/A, mob/user)
- if(istype(A, /obj/item/weapon/gun/energy/kinetic_accelerator) && !issilicon(user))
+ if(istype(A, /obj/item/weapon/gun/energy/kinetic_accelerator))
install(A, user)
else
..()
-/obj/item/borg/upgrade/modkit/action(mob/living/silicon/robot/R)
- if(..())
- return
-
+/*
+/obj/item/borg/upgrade/modkit/afterInstall(mob/living/silicon/robot/R)
for(var/obj/item/weapon/gun/energy/kinetic_accelerator/H in R.module.modules)
- return install(H, usr)
+ if(install(H, R)) //It worked
+ return
+ to_chat(R, "Upgrade error - Aborting Kinetic Accelerator linking. ") //No applicable KA found, insufficient capacity, or some other problem.
+*/
/obj/item/borg/upgrade/modkit/proc/install(obj/item/weapon/gun/energy/kinetic_accelerator/KA, mob/user)
. = TRUE
+ if(src in KA.modkits) // Sanity check to prevent installing the same modkit twice thanks to occasional click/lag delays.
+ return FALSE
+ // if(minebot_upgrade)
+ // if(minebot_exclusive && !istype(KA.loc, /mob/living/simple_animal/hostile/mining_drone))
+ // to_chat(user, "The modkit you're trying to install is only rated for minebot use. ")
+ // return FALSE
+ // else if(istype(KA.loc, /mob/living/simple_animal/hostile/mining_drone))
+ // to_chat(user, "The modkit you're trying to install is not rated for minebot use. ")
+ // return FALSE
if(denied_type)
var/number_of_denied = 0
- for(var/obj/item/borg/upgrade/modkit/M as anything in KA.get_modkits())
+ for(var/A in KA.get_modkits())
+ var/obj/item/borg/upgrade/modkit/M = A
if(istype(M, denied_type))
number_of_denied++
if(number_of_denied >= maximum_of_type)
@@ -190,10 +374,11 @@
break
if(KA.get_remaining_mod_capacity() >= cost)
if(.)
+ user.drop_from_inventory(src, KA)
+ // if(!user.transferItemToLoc(src, KA))
+ // return FALSE
to_chat(user, "You install the modkit. ")
- playsound(src, usesound, 100, 1)
- user.unEquip(src)
- forceMove(KA)
+ playsound(loc, 'sound/items/screwdriver.ogg', 100, 1)
KA.modkits += src
else
to_chat(user, "The modkit you're trying to install would conflict with an already installed modkit. Use a crowbar to remove existing modkits. ")
@@ -201,19 +386,26 @@
to_chat(user, "You don't have room([KA.get_remaining_mod_capacity()]% remaining, [cost]% needed) to install this modkit. Use a crowbar to remove existing modkits. ")
. = FALSE
-/obj/item/borg/upgrade/modkit/proc/uninstall(obj/item/weapon/gun/energy/kinetic_accelerator/KA)
- forceMove(get_turf(KA))
+/obj/item/borg/upgrade/modkit/proc/uninstall(obj/item/weapon/gun/energy/kinetic_accelerator/KA, forcemove = TRUE)
KA.modkits -= src
+ if(forcemove)
+ forceMove(get_turf(KA))
/obj/item/borg/upgrade/modkit/proc/modify_projectile(obj/item/projectile/kinetic/K)
- return
+
+//use this one for effects you want to trigger before any damage is done at all and before damage is decreased by pressure
+/obj/item/borg/upgrade/modkit/proc/projectile_prehit(obj/item/projectile/kinetic/K, atom/target, obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+//use this one for effects you want to trigger before mods that do damage
+/obj/item/borg/upgrade/modkit/proc/projectile_strike_predamage(obj/item/projectile/kinetic/K, turf/target_turf, atom/target, obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+//and this one for things that don't need to trigger before other damage-dealing mods
+/obj/item/borg/upgrade/modkit/proc/projectile_strike(obj/item/projectile/kinetic/K, turf/target_turf, atom/target, obj/item/weapon/gun/energy/kinetic_accelerator/KA)
//Range
/obj/item/borg/upgrade/modkit/range
name = "range increase"
desc = "Increases the range of a kinetic accelerator when installed."
modifier = 1
- cost = 24 //so you can fit four plus a tracer cosmetic
+ cost = 25
/obj/item/borg/upgrade/modkit/range/modify_projectile(obj/item/projectile/kinetic/K)
K.range += modifier
@@ -229,54 +421,87 @@
K.damage += modifier
-// //Cooldown
-// /obj/item/borg/upgrade/modkit/cooldown
-// name = "cooldown decrease"
-// desc = "Decreases the cooldown of a kinetic accelerator."
-// modifier = 2.5
-
-// /obj/item/borg/upgrade/modkit/cooldown/install(obj/item/weapon/gun/energy/kinetic_accelerator/KA, mob/user)
-// . = ..()
-// if(.)
-// KA.overheat_time -= modifier
-
-// /obj/item/borg/upgrade/modkit/cooldown/uninstall(obj/item/weapon/gun/energy/kinetic_accelerator/KA)
-// KA.overheat_time += modifier
-// ..()
-
//Cooldown
-/obj/item/borg/upgrade/modkit/efficiency
- name = "energy efficiency"
- desc = "Decreases the energy use of a kinetic accelerator."
- modifier = 20
+/obj/item/borg/upgrade/modkit/cooldown
+ name = "cooldown decrease"
+ desc = "Decreases the cooldown of a kinetic accelerator. Not rated for minebot use."
+ modifier = 2.5
+ minebot_upgrade = FALSE
+ var/decreased
-/obj/item/borg/upgrade/modkit/efficiency/install(obj/item/weapon/gun/energy/kinetic_accelerator/KA, mob/user)
+/obj/item/borg/upgrade/modkit/cooldown/install(obj/item/weapon/gun/energy/kinetic_accelerator/KA, mob/user)
. = ..()
if(.)
- KA.charge_cost -= modifier
+ var/old = KA.overheat_time
+ KA.overheat_time = max(0, KA.overheat_time - modifier)
+ decreased = old - KA.overheat_time
-/obj/item/borg/upgrade/modkit/efficiency/uninstall(obj/item/weapon/gun/energy/kinetic_accelerator/KA)
- KA.charge_cost += modifier
+
+/obj/item/borg/upgrade/modkit/cooldown/uninstall(obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+ KA.overheat_time += decreased
..()
+/obj/item/borg/upgrade/modkit/cooldown/minebot
+ name = "minebot cooldown decrease"
+ desc = "Decreases the cooldown of a kinetic accelerator. Only rated for minebot use."
+ icon_state = "door_electronics"
+ icon = 'icons/obj/module.dmi'
+ denied_type = /obj/item/borg/upgrade/modkit/cooldown/minebot
+ modifier = 10
+ cost = 0
+ minebot_upgrade = TRUE
+ minebot_exclusive = TRUE
+
+
//AoE blasts
/obj/item/borg/upgrade/modkit/aoe
modifier = 0
+ var/turf_aoe = FALSE
+ var/stats_stolen = FALSE
+
+/obj/item/borg/upgrade/modkit/aoe/install(obj/item/weapon/gun/energy/kinetic_accelerator/KA, mob/user)
+ . = ..()
+ if(.)
+ for(var/obj/item/borg/upgrade/modkit/aoe/AOE in KA.modkits) //make sure only one of the aoe modules has values if somebody has multiple
+ if(AOE.stats_stolen || AOE == src)
+ continue
+ modifier += AOE.modifier //take its modifiers
+ AOE.modifier = 0
+ turf_aoe += AOE.turf_aoe
+ AOE.turf_aoe = FALSE
+ AOE.stats_stolen = TRUE
+
+/obj/item/borg/upgrade/modkit/aoe/uninstall(obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+ ..()
+ modifier = initial(modifier) //get our modifiers back
+ turf_aoe = initial(turf_aoe)
+ stats_stolen = FALSE
/obj/item/borg/upgrade/modkit/aoe/modify_projectile(obj/item/projectile/kinetic/K)
K.name = "kinetic explosion"
- if(!K.turf_aoe && !K.mob_aoe)
- K.hit_overlays += /obj/effect/temp_visual/explosion/fast
- K.mob_aoe += modifier
+
+/obj/item/borg/upgrade/modkit/aoe/projectile_strike(obj/item/projectile/kinetic/K, turf/target_turf, atom/target, obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+ if(stats_stolen)
+ return
+ new /obj/effect/temp_visual/explosion/fast(target_turf)
+ if(turf_aoe)
+ for(var/T in RANGE_TURFS(1, target_turf) - target_turf)
+ if(ismineralturf(T))
+ var/turf/simulated/mineral/M = T
+ M.GetDrilled(TRUE)
+ if(modifier)
+ for(var/mob/living/L in range(1, target_turf) - K.firer - target)
+ var/armor = L.run_armor_check(K.def_zone, K.check_armour)
+ // var/armor = L.run_armor_check(K.def_zone, K.flag, null, null, K.armour_penetration)
+ L.apply_damage(K.damage*modifier, K.damage_type, K.def_zone, armor)
+ // L.apply_damage(K.damage*modifier, K.damage_type, K.def_zone, armor)
+ to_chat(L, "You're struck by a [K.name]! ")
/obj/item/borg/upgrade/modkit/aoe/turfs
name = "mining explosion"
desc = "Causes the kinetic accelerator to destroy rock in an AoE."
denied_type = /obj/item/borg/upgrade/modkit/aoe/turfs
-
-/obj/item/borg/upgrade/modkit/aoe/turfs/modify_projectile(obj/item/projectile/kinetic/K)
- ..()
- K.turf_aoe = TRUE
+ turf_aoe = TRUE
/obj/item/borg/upgrade/modkit/aoe/turfs/andmobs
name = "offensive mining explosion"
@@ -289,19 +514,150 @@
desc = "Causes the kinetic accelerator to damage mobs in an AoE."
modifier = 0.2
+//Minebot passthrough
+/obj/item/borg/upgrade/modkit/minebot_passthrough
+ name = "minebot passthrough"
+ desc = "Causes kinetic accelerator shots to pass through minebots."
+ cost = 0
+
+//Tendril-unique modules
+/obj/item/borg/upgrade/modkit/cooldown/repeater
+ name = "rapid repeater"
+ desc = "Quarters the kinetic accelerator's cooldown on striking a living target, but greatly increases the base cooldown."
+ denied_type = /obj/item/borg/upgrade/modkit/cooldown/repeater
+ modifier = -14 //Makes the cooldown 3 seconds(with no cooldown mods) if you miss. Don't miss.
+ cost = 50
+
+/obj/item/borg/upgrade/modkit/cooldown/repeater/projectile_strike_predamage(obj/item/projectile/kinetic/K, turf/target_turf, atom/target, obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+ var/valid_repeat = FALSE
+ if(isliving(target))
+ var/mob/living/L = target
+ if(L.stat != DEAD)
+ valid_repeat = TRUE
+ if(ismineralturf(target_turf))
+ valid_repeat = TRUE
+ if(valid_repeat)
+ KA.overheat = FALSE
+ KA.attempt_reload(KA.overheat_time * 0.25) //If you hit, the cooldown drops to 0.75 seconds.
+
+/*
+/obj/item/borg/upgrade/modkit/lifesteal
+ name = "lifesteal crystal"
+ desc = "Causes kinetic accelerator shots to slightly heal the firer on striking a living target."
+ icon_state = "modkit_crystal"
+ modifier = 2.5 //Not a very effective method of healing.
+ cost = 20
+ var/static/list/damage_heal_order = list(BRUTE, BURN, OXY)
+
+/obj/item/borg/upgrade/modkit/lifesteal/projectile_prehit(obj/item/projectile/kinetic/K, atom/target, obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+ if(isliving(target) && isliving(K.firer))
+ var/mob/living/L = target
+ if(L.stat == DEAD)
+ return
+ L = K.firer
+ L.heal_ordered_damage(modifier, damage_heal_order)
+*/
+
+/obj/item/borg/upgrade/modkit/resonator_blasts
+ name = "resonator blast"
+ desc = "Causes kinetic accelerator shots to leave and detonate resonator blasts."
+ denied_type = /obj/item/borg/upgrade/modkit/resonator_blasts
+ cost = 30
+ modifier = 0.25 //A bonus 15 damage if you burst the field on a target, 60 if you lure them into it.
+
+/obj/item/borg/upgrade/modkit/resonator_blasts/projectile_strike(obj/item/projectile/kinetic/K, turf/target_turf, atom/target, obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+ if(target_turf && !ismineralturf(target_turf)) //Don't make fields on mineral turfs.
+ var/obj/effect/resonance/R = locate(/obj/effect/resonance) in target_turf
+ if(R)
+ R.resonance_damage *= modifier
+ R.burst()
+ return
+ new /obj/effect/resonance(target_turf, K.firer, 30)
+
+/*
+/obj/item/borg/upgrade/modkit/bounty
+ name = "death syphon"
+ desc = "Killing or assisting in killing a creature permanently increases your damage against that type of creature."
+ denied_type = /obj/item/borg/upgrade/modkit/bounty
+ modifier = 1.25
+ cost = 30
+ var/maximum_bounty = 25
+ var/list/bounties_reaped = list()
+
+/obj/item/borg/upgrade/modkit/bounty/projectile_prehit(obj/item/projectile/kinetic/K, atom/target, obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+ if(isliving(target))
+ var/mob/living/L = target
+ var/list/existing_marks = L.has_status_effect_list(STATUS_EFFECT_SYPHONMARK)
+ for(var/i in existing_marks)
+ var/datum/status_effect/syphon_mark/SM = i
+ if(SM.reward_target == src) //we want to allow multiple people with bounty modkits to use them, but we need to replace our own marks so we don't multi-reward
+ SM.reward_target = null
+ qdel(SM)
+ L.apply_status_effect(STATUS_EFFECT_SYPHONMARK, src)
+
+/obj/item/borg/upgrade/modkit/bounty/projectile_strike(obj/item/projectile/kinetic/K, turf/target_turf, atom/target, obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+ if(isliving(target))
+ var/mob/living/L = target
+ if(bounties_reaped[L.type])
+ var/kill_modifier = 1
+ if(K.pressure_decrease_active)
+ kill_modifier *= K.pressure_decrease
+ var/armor = L.run_armor_check(K.def_zone, K.flag, null, null, K.armour_penetration)
+ L.apply_damage(bounties_reaped[L.type]*kill_modifier, K.damage_type, K.def_zone, armor)
+
+/obj/item/borg/upgrade/modkit/bounty/proc/get_kill(mob/living/L)
+ var/bonus_mod = 1
+ if(ismegafauna(L)) //megafauna reward
+ bonus_mod = 4
+ if(!bounties_reaped[L.type])
+ bounties_reaped[L.type] = min(modifier * bonus_mod, maximum_bounty)
+ else
+ bounties_reaped[L.type] = min(bounties_reaped[L.type] + (modifier * bonus_mod), maximum_bounty)
+*/
//Indoors
/obj/item/borg/upgrade/modkit/indoors
name = "decrease pressure penalty"
- desc = "Increases the damage a kinetic accelerator does in a high pressure environment."
+ desc = "A remarkably illegal modification kit that increases the damage a kinetic accelerator does in pressurized environments."
modifier = 2
denied_type = /obj/item/borg/upgrade/modkit/indoors
maximum_of_type = 2
- cost = 40
+ cost = 35
/obj/item/borg/upgrade/modkit/indoors/modify_projectile(obj/item/projectile/kinetic/K)
K.pressure_decrease *= modifier
+// Atmospheric
+/obj/item/borg/upgrade/modkit/heater
+ name = "temperature modulator"
+ desc = "A remarkably unusual modification kit that makes kinetic accelerators more usable in hot, overpressurized environments, \
+ in exchange for making them weak elsewhere, like the cold or in space."
+ denied_type = /obj/item/borg/upgrade/modkit/indoors
+ maximum_of_type = 1
+ cost = 30
+
+/obj/item/borg/upgrade/modkit/heater/modify_projectile(obj/item/projectile/kinetic/K)
+ K.environment = KA_ENVIRO_TYPE_HOT
+
+//Trigger Guard
+
+/*
+/obj/item/borg/upgrade/modkit/trigger_guard
+ name = "modified trigger guard"
+ desc = "Allows creatures normally incapable of firing guns to operate the weapon when installed."
+ cost = 20
+ denied_type = /obj/item/borg/upgrade/modkit/trigger_guard
+
+/obj/item/borg/upgrade/modkit/trigger_guard/install(obj/item/weapon/gun/energy/kinetic_accelerator/KA, mob/user)
+ . = ..()
+ if(.)
+ KA.trigger_guard = TRIGGER_GUARD_ALLOW_ALL
+
+/obj/item/borg/upgrade/modkit/trigger_guard/uninstall(obj/item/weapon/gun/energy/kinetic_accelerator/KA)
+ KA.trigger_guard = TRIGGER_GUARD_NORMAL
+ ..()
+*/
+
//Cosmetic
/obj/item/borg/upgrade/modkit/chassis_mod
@@ -342,7 +698,7 @@
/obj/item/borg/upgrade/modkit/tracer/adjustable
name = "adjustable tracer bolts"
- desc = "Causes kinetic accelerator bolts to have a adjustably-colored tracer trail and explosion. Use in-hand to change color."
+ desc = "Causes kinetic accelerator bolts to have an adjustable-colored tracer trail and explosion. Use in-hand to change color."
/obj/item/borg/upgrade/modkit/tracer/adjustable/attack_self(mob/user)
- bolt_color = input(user,"Choose Color") as color
+ bolt_color = input(user,"","Choose Color",bolt_color) as color|null
diff --git a/code/modules/projectiles/guns/launcher/rocket.dm b/code/modules/projectiles/guns/launcher/rocket.dm
index 4dce4ce835e..647864365bb 100644
--- a/code/modules/projectiles/guns/launcher/rocket.dm
+++ b/code/modules/projectiles/guns/launcher/rocket.dm
@@ -36,7 +36,7 @@
if(rockets.len)
var/obj/item/ammo_casing/rocket/I = rockets[1]
rockets -= I
- return
+ return new I.projectile_type(src)
return null
/obj/item/weapon/gun/launcher/rocket/handle_post_fire(mob/user, atom/target)
diff --git a/code/modules/reagents/reactions/instant/drinks.dm b/code/modules/reagents/reactions/instant/drinks.dm
index bd56670ec5c..a9cfd888176 100644
--- a/code/modules/reagents/reactions/instant/drinks.dm
+++ b/code/modules/reagents/reactions/instant/drinks.dm
@@ -185,11 +185,18 @@
required_reagents = list("gin" = 2, "tonic" = 1)
result_amount = 3
+/decl/chemical_reaction/instant/drinks/rum_and_cola
+ name = "Rum and Cola"
+ id = "rumandcola"
+ result = "rumandcola"
+ required_reagents = list("rum" = 2, "cola" = 1)
+ result_amount = 3
+
/decl/chemical_reaction/instant/drinks/cuba_libre
name = "Cuba Libre"
id = "cubalibre"
result = "cubalibre"
- required_reagents = list("rum" = 2, "cola" = 1)
+ required_reagents = list("rumcola" = 3, "limejuice" = 1)
result_amount = 3
/decl/chemical_reaction/instant/drinks/martini
@@ -329,14 +336,14 @@
name = "Long Island Iced Tea"
id = "longislandicedtea"
result = "longislandicedtea"
- required_reagents = list("vodka" = 1, "gin" = 1, "tequilla" = 1, "cubalibre" = 3)
+ required_reagents = list("vodka" = 1, "gin" = 1, "tequilla" = 1, "rumcoke" = 3)
result_amount = 6
/decl/chemical_reaction/instant/drinks/icedtea
name = "Long Island Iced Tea"
id = "longislandicedtea"
result = "longislandicedtea"
- required_reagents = list("vodka" = 1, "gin" = 1, "tequilla" = 1, "cubalibre" = 3)
+ required_reagents = list("vodka" = 1, "gin" = 1, "tequilla" = 1, "rumcoke" = 3)
result_amount = 6
/decl/chemical_reaction/instant/drinks/threemileisland
@@ -693,6 +700,13 @@
required_reagents = list("orangejuice" = 2, "cola" = 1)
result_amount = 3
+/decl/chemical_reaction/instant/drinks/brownstar_decaf
+ name = "Decaf Brown Star"
+ id = "brownstar_decaf"
+ result = "brownstar_decaf"
+ required_reagents = list("orangejuice" = 2, "decafcola" = 1)
+ result_amount = 3
+
/decl/chemical_reaction/instant/drinks/milkshake
name = "Milkshake"
id = "milkshake"
@@ -756,6 +770,13 @@
required_reagents = list("tea" = 5, "mint" = 1)
result_amount = 6
+/decl/chemical_reaction/instant/drinks/minttea_decaf
+ name = "Decaf Mint Tea"
+ id = "decafminttea"
+ result = "decafminttea"
+ required_reagents = list("decaftea" = 5, "mint" = 1)
+ result_amount = 6
+
/decl/chemical_reaction/instant/drinks/lemontea
name = "Lemon Tea"
id = "lemontea"
@@ -763,6 +784,13 @@
required_reagents = list("tea" = 5, "lemonjuice" = 1)
result_amount = 6
+/decl/chemical_reaction/instant/drinks/lemontea_decaf
+ name = "Decaf Lemon Tea"
+ id = "decaflemontea"
+ result = "decaflemontea"
+ required_reagents = list("decaftea" = 5, "lemonjuice" = 1)
+ result_amount = 6
+
/decl/chemical_reaction/instant/drinks/limetea
name = "Lime Tea"
id = "limetea"
@@ -770,6 +798,13 @@
required_reagents = list("tea" = 5, "limejuice" = 1)
result_amount = 6
+/decl/chemical_reaction/instant/drinks/limetea_decaf
+ name = "Decaf Lime Tea"
+ id = "decaflimetea"
+ result = "decaflimetea"
+ required_reagents = list("decaftea" = 5, "limejuice" = 1)
+ result_amount = 6
+
/decl/chemical_reaction/instant/drinks/orangetea
name = "Orange Tea"
id = "orangetea"
@@ -777,6 +812,13 @@
required_reagents = list("tea" = 5, "orangejuice" = 1)
result_amount = 6
+/decl/chemical_reaction/instant/drinks/orangetea_decaf
+ name = "Decaf Orange Tea"
+ id = "decaforangetea"
+ result = "decaforangetea"
+ required_reagents = list("decaftea" = 5, "orangejuice" = 1)
+ result_amount = 6
+
/decl/chemical_reaction/instant/drinks/berrytea
name = "Berry Tea"
id = "berrytea"
@@ -784,6 +826,13 @@
required_reagents = list("tea" = 5, "berryjuice" = 1)
result_amount = 6
+/decl/chemical_reaction/instant/drinks/berrytea_decaf
+ name = "Decaf Berry Tea"
+ id = "decafberrytea"
+ result = "decafberrytea"
+ required_reagents = list("decaftea" = 5, "berryjuice" = 1)
+ result_amount = 6
+
/decl/chemical_reaction/instant/drinks/sakebomb
name = "Sake Bomb"
id = "sakebomb"
diff --git a/code/modules/reagents/reagents/food_drinks.dm b/code/modules/reagents/reagents/food_drinks.dm
index 457a73b01ec..1ddc24bfc93 100644
--- a/code/modules/reagents/reagents/food_drinks.dm
+++ b/code/modules/reagents/reagents/food_drinks.dm
@@ -316,6 +316,13 @@
color = "#664330"
allergen_type = ALLERGEN_FISH //Murkfin is fish
+/datum/reagent/nutriment/protein/bean
+ name = "beans"
+ id = "bean_protein"
+ taste_description = "beans"
+ color = "#562e0b"
+ allergen_type = ALLERGEN_BEANS //Made from soy beans
+
/datum/reagent/nutriment/honey
name = "Honey"
id = "honey"
@@ -384,7 +391,7 @@
taste_mult = 1.3
nutriment_factor = 1
color = "#482000"
- allergen_type = ALLERGEN_COFFEE //Again, coffee contains coffee
+ allergen_type = ALLERGEN_COFFEE | ALLERGEN_STIMULANT //Again, coffee contains coffee
/datum/reagent/nutriment/tea
name = "Tea Powder"
@@ -394,6 +401,16 @@
taste_mult = 1.3
nutriment_factor = 1
color = "#101000"
+ allergen_type = ALLERGEN_STIMULANT //Strong enough to contain caffeine
+
+/datum/reagent/nutriment/decaf_tea
+ name = "Decaf Tea Powder"
+ id = "decafteapowder"
+ description = "A dark, tart powder made from black tea leaves, treated to remove caffeine content."
+ taste_description = "tartness"
+ taste_mult = 1.3
+ nutriment_factor = 1
+ color = "#101000"
/datum/reagent/nutriment/coco
name = "Coco Powder"
@@ -636,8 +653,6 @@
color = "#365E30"
overdose = REAGENTS_OVERDOSE
-//SYNNONO MEME FOODS EXPANSION - Credit to Synnono
-
/datum/reagent/spacespice
name = "Wurmwoad"
id = "spacespice"
@@ -1228,6 +1243,7 @@
cup_icon_state = "cup_tea"
cup_name = "cup of tea"
cup_desc = "Tasty black tea, it has antioxidants, it's good for you!"
+ allergen_type = ALLERGEN_STIMULANT //Black tea strong enough to have significant caffeine content
/datum/reagent/drink/tea/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
..()
@@ -1235,6 +1251,23 @@
return
M.adjustToxLoss(-0.5 * removed)
+/datum/reagent/drink/tea/decaf
+ name = "Decaf Tea"
+ id = "teadecaf"
+ description = "Tasty black tea, it has antioxidants, it's good for you, and won't keep you up at night!"
+ color = "#832700"
+ adj_dizzy = 0
+ adj_drowsy = 0 //Decaf won't help you here.
+ adj_sleepy = 0
+
+ glass_name = "cup of decaf tea"
+ glass_desc = "Tasty black tea, it has antioxidants, it's good for you, and won't keep you up at night!"
+
+ cup_name = "cup of decaf tea"
+ cup_desc = "Tasty black tea, it has antioxidants, it's good for you, and won't keep you up at night!"
+ allergen_type = null //Certified cat-safe!
+
+
/datum/reagent/drink/tea/icetea
name = "Iced Tea"
id = "icetea"
@@ -1269,6 +1302,16 @@
M.bodytemperature += 0.5
//M.adjustToxLoss(5 * removed) //VOREStation Removal
+/datum/reagent/drink/tea/icetea/decaf
+ name = "Decaf Iced Tea"
+ glass_name = "decaf iced tea"
+ cup_name = "cup of decaf iced tea"
+ id = "iceteadecaf"
+ adj_dizzy = 0
+ adj_drowsy = 0
+ adj_sleepy = 0
+ allergen_type = null
+
/datum/reagent/drink/tea/minttea
name = "Mint Tea"
id = "minttea"
@@ -1282,6 +1325,16 @@
cup_name = "cup of mint tea"
cup_desc = "A tasty mixture of mint and tea. It's apparently good for you!"
+/datum/reagent/drink/tea/minttea/decaf
+ name = "Decaf Mint Tea"
+ glass_name = "decaf mint tea"
+ cup_name = "cup of decaf mint tea"
+ id = "mintteadecaf"
+ adj_dizzy = 0
+ adj_drowsy = 0
+ adj_sleepy = 0
+ allergen_type = null
+
/datum/reagent/drink/tea/lemontea
name = "Lemon Tea"
id = "lemontea"
@@ -1294,7 +1347,17 @@
cup_name = "cup of lemon tea"
cup_desc = "A tasty mixture of lemon and tea. It's apparently good for you!"
- allergen_type = ALLERGEN_FRUIT //Made with lemon juice
+ allergen_type = ALLERGEN_FRUIT | ALLERGEN_STIMULANT //Made with lemon juice, still tea
+
+/datum/reagent/drink/tea/lemontea/decaf
+ name = "Decaf Lemon Tea"
+ glass_name = "decaf lemon tea"
+ cup_name = "cup of decaf lemon tea"
+ id = "lemonteadecaf"
+ adj_dizzy = 0
+ adj_drowsy = 0
+ adj_sleepy = 0
+ allergen_type = ALLERGEN_FRUIT //No caffine, still lemon.
/datum/reagent/drink/tea/limetea
name = "Lime Tea"
@@ -1308,7 +1371,17 @@
cup_name = "cup of lime tea"
cup_desc = "A tasty mixture of lime and tea. It's apparently good for you!"
- allergen_type = ALLERGEN_FRUIT //Made with lime juice
+ allergen_type = ALLERGEN_FRUIT | ALLERGEN_STIMULANT //Made with lime juice, still tea
+
+/datum/reagent/drink/tea/limetea/decaf
+ name = "Decaf Lime Tea"
+ glass_name = "decaf lime tea"
+ cup_name = "cup of decaf lime tea"
+ id = "limeteadecaf"
+ adj_dizzy = 0
+ adj_drowsy = 0
+ adj_sleepy = 0
+ allergen_type = ALLERGEN_FRUIT //No caffine, still lime.
/datum/reagent/drink/tea/orangetea
name = "Orange Tea"
@@ -1322,7 +1395,17 @@
cup_name = "cup of orange tea"
cup_desc = "A tasty mixture of orange and tea. It's apparently good for you!"
- allergen_type = ALLERGEN_FRUIT //Made with orange juice
+ allergen_type = ALLERGEN_FRUIT | ALLERGEN_STIMULANT //Made with orange juice, still tea
+
+/datum/reagent/drink/tea/orangetea/decaf
+ name = "Decaf orange Tea"
+ glass_name = "decaf orange tea"
+ cup_name = "cup of decaf orange tea"
+ id = "orangeteadecaf"
+ adj_dizzy = 0
+ adj_drowsy = 0
+ adj_sleepy = 0
+ allergen_type = ALLERGEN_FRUIT //No caffine, still orange.
/datum/reagent/drink/tea/berrytea
name = "Berry Tea"
@@ -1336,7 +1419,17 @@
cup_name = "cup of berry tea"
cup_desc = "A tasty mixture of berries and tea. It's apparently good for you!"
- allergen_type = ALLERGEN_FRUIT //Made with berry juice
+ allergen_type = ALLERGEN_FRUIT | ALLERGEN_STIMULANT //Made with berry juice, still tea
+
+/datum/reagent/drink/tea/berrytea/decaf
+ name = "Decaf Berry Tea"
+ glass_name = "decaf berry tea"
+ cup_name = "cup of decaf berry tea"
+ id = "berryteadecaf"
+ adj_dizzy = 0
+ adj_drowsy = 0
+ adj_sleepy = 0
+ allergen_type = ALLERGEN_FRUIT //No caffine, still berries.
/datum/reagent/drink/greentea
name = "Green Tea"
@@ -1351,18 +1444,29 @@
cup_name = "cup of green tea"
cup_desc = "A subtle blend of green tea. It's apparently good for you!"
-/datum/reagent/drink/chaitea
+/datum/reagent/drink/tea/chaitea
name = "Chai Tea"
id = "chaitea"
- description = "A tea spiced with cinnamon and cloves."
+ description = "A milky tea spiced with cinnamon and cloves."
color = "#A8442C"
taste_description = "creamy cinnamon and spice"
glass_name = "chai tea"
- glass_desc = "A tea spiced with cinnamon and cloves."
+ glass_desc = "A milky tea spiced with cinnamon and cloves."
cup_name = "cup of chai tea"
- cup_desc = "A tea spiced with cinnamon and cloves."
+ cup_desc = "A milky tea spiced with cinnamon and cloves."
+ allergen_type = ALLERGEN_STIMULANT|ALLERGEN_DAIRY //Made with milk and tea.
+
+/datum/reagent/drink/tea/chaitea/decaf
+ name = "Decaf Chai Tea"
+ glass_name = "decaf chai tea"
+ cup_name = "cup of decaf chai tea"
+ id = "chaiteadecaf"
+ adj_dizzy = 0
+ adj_drowsy = 0
+ adj_sleepy = 0
+ allergen_type = ALLERGEN_DAIRY //No caffeine, still milk.
/datum/reagent/drink/coffee
name = "Coffee"
@@ -1383,7 +1487,7 @@
glass_name = "coffee"
glass_desc = "Don't drop it, or you'll send scalding liquid and glass shards everywhere."
- allergen_type = ALLERGEN_COFFEE //Apparently coffee contains coffee
+ allergen_type = ALLERGEN_COFFEE | ALLERGEN_STIMULANT //Apparently coffee contains coffee
/datum/reagent/drink/coffee/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
if(alien == IS_DIONA)
@@ -1496,7 +1600,7 @@
glass_name = "decaf coffee"
glass_desc = "Basically just brown, bitter water."
- allergen_type = ALLERGEN_COFFEE //Decaf coffee would still likely trigger allergy symptoms.
+ allergen_type = ALLERGEN_COFFEE //Decaf coffee is still coffee, just less stimulating.
/datum/reagent/drink/hot_coco
name = "Hot Chocolate"
@@ -1632,7 +1736,18 @@
glass_name = "Brown Star"
glass_desc = "It's not what it sounds like..."
- allergen_type = ALLERGEN_FRUIT //Made with orangejuice and cola
+ allergen_type = ALLERGEN_FRUIT | ALLERGEN_STIMULANT //Made with orangejuice and cola
+
+/datum/reagent/drink/soda/brownstar_decaf //For decaf starkist
+ name = "Decaf Brown Star"
+ id = "brownstar_decaf"
+ description = "It's not what it sounds like..."
+ taste_description = "orange and cola soda"
+ color = "#9F3400"
+ adj_temp = -2
+
+ glass_name = "Brown Star"
+ glass_desc = "It's not what it sounds like..."
/datum/reagent/drink/milkshake
name = "Milkshake"
@@ -1730,7 +1845,7 @@
glass_name = "Rewriter"
glass_desc = "The secret of the sanctuary of the Libarian..."
- allergen_type = ALLERGEN_FRUIT|ALLERGEN_COFFEE //Made with space mountain wind (Fruit)
+ allergen_type = ALLERGEN_FRUIT|ALLERGEN_COFFEE|ALLERGEN_STIMULANT //Made with space mountain wind (Fruit, caffeine)
/datum/reagent/drink/rewriter/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
..()
@@ -1748,6 +1863,7 @@
glass_name = "Nuka-Cola"
glass_desc = "Don't cry, Don't raise your eye, It's only nuclear wasteland"
glass_special = list(DRINK_FIZZ)
+ allergen_type = ALLERGEN_STIMULANT
/datum/reagent/drink/soda/nuka_cola/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
..()
@@ -1781,6 +1897,20 @@
glass_name = "Space Cola"
glass_desc = "A glass of refreshing Space Cola"
glass_special = list(DRINK_FIZZ)
+ allergen_type = ALLERGEN_STIMULANT //Cola is typically caffeinated.
+
+/datum/reagent/drink/soda/decaf_cola
+ name = "Space Cola Free"
+ id = "decafcola"
+ description = "A refreshing beverage with none of the jitters."
+ taste_description = "cola"
+ reagent_state = LIQUID
+ color = "#100800"
+ adj_temp = -5
+
+ glass_name = "Space Cola Free"
+ glass_desc = "A glass of refreshing Space Cola Free"
+ glass_special = list(DRINK_FIZZ)
/datum/reagent/drink/soda/lemon_soda
name = "Lemon Soda"
@@ -1899,12 +2029,12 @@
glass_name = "Space Mountain Wind"
glass_desc = "Space Mountain Wind. As you know, there are no mountains in space, only wind."
glass_special = list(DRINK_FIZZ)
- allergen_type = ALLERGEN_FRUIT //Fruit allergens because citrus is implied to come from limes/lemons
+ allergen_type = ALLERGEN_FRUIT|ALLERGEN_STIMULANT //Citrus, and caffeination
/datum/reagent/drink/soda/dr_gibb
name = "Dr. Gibb"
id = "dr_gibb"
- description = "A delicious blend of 42 different flavors"
+ description = "A delicious blend of 42 different flavors."
taste_description = "cherry soda"
color = "#102000"
adj_drowsy = -6
@@ -1912,6 +2042,7 @@
glass_name = "Dr. Gibb"
glass_desc = "Dr. Gibb. Not as dangerous as the name might imply."
+ allergen_type = ALLERGEN_STIMULANT
/datum/reagent/drink/soda/space_up
name = "Space-Up"
@@ -1965,7 +2096,7 @@
name = "Diet Dr. Gibb"
id = "diet_dr_gibb"
color = "#102000"
- taste_description = "watered down cherry soda"
+ taste_description = "chemically sweetened cherry soda"
glass_name = "glass of Diet Dr. Gibb"
glass_desc = "Regular Dr.Gibb is probably healthier than this cocktail of artificial flavors."
@@ -1994,7 +2125,7 @@
glass_name = "roy rogers"
glass_desc = "I'm a cowboy, on a steel horse I ride"
glass_special = list(DRINK_FIZZ)
- allergen_type = ALLERGEN_FRUIT //Made with lemon lime
+ allergen_type = ALLERGEN_FRUIT | ALLERGEN_STIMULANT //Made with lemon lime and cola
/datum/reagent/drink/collins_mix
name = "Collins Mix"
@@ -2020,7 +2151,7 @@
glass_name = "arnold palmer"
glass_desc = "Tastes just like the old man."
glass_special = list(DRINK_FIZZ)
- allergen_type = ALLERGEN_FRUIT //Made with lemonade
+ allergen_type = ALLERGEN_FRUIT | ALLERGEN_STIMULANT //Made with lemonade and tea
/datum/reagent/drink/doctor_delight
name = "The Doctor's Delight"
@@ -2154,7 +2285,7 @@
glass_name = "Vile Lemon"
glass_desc = "A sour, fizzy drink with lemonade and lemonlime."
glass_special = list(DRINK_FIZZ)
- allergen_type = ALLERGEN_FRUIT //Made from lemonade
+ allergen_type = ALLERGEN_FRUIT|ALLERGEN_STIMULANT //Made from lemonade and mtn wind(caffeine)
/datum/reagent/drink/entdraught
name = "Ent's Draught"
@@ -2495,7 +2626,7 @@
//Base type for alchoholic drinks containing coffee
/datum/reagent/ethanol/coffee
overdose = 45
- allergen_type = ALLERGEN_COFFEE //Contains coffee or is made from coffee
+ allergen_type = ALLERGEN_COFFEE|ALLERGEN_STIMULANT //Contains coffee or is made from coffee
/datum/reagent/ethanol/coffee/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
if(alien == IS_DIONA)
@@ -2623,6 +2754,7 @@
glass_name = "Thirteen Loko"
glass_desc = "This is a glass of Thirteen Loko, it appears to be of the highest quality. The drink, not the glass."
+ allergen_type = ALLERGEN_STIMULANT //Holy shit dude.
/datum/reagent/ethanol/thirteenloko/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
..()
@@ -2865,7 +2997,7 @@
glass_name = "Atomic Bomb"
glass_desc = "We cannot take legal responsibility for your actions after imbibing."
- allergen_type = ALLERGEN_COFFEE|ALLERGEN_DAIRY|ALLERGEN_FRUIT|ALLERGEN_GRAINS //Made from b52 which contains kahlua(coffee), cognac(fruit), and irish cream(Whiskey(grains),cream(dairy))
+ allergen_type = ALLERGEN_COFFEE|ALLERGEN_DAIRY|ALLERGEN_FRUIT|ALLERGEN_GRAINS|ALLERGEN_STIMULANT //Made from b52 which contains kahlua(coffee/caffeine), cognac(fruit), and irish cream(Whiskey(grains),cream(dairy))
/datum/reagent/ethanol/coffee/b52
name = "B-52"
@@ -2879,7 +3011,7 @@
glass_name = "B-52"
glass_desc = "Kahlua, Irish cream, and cognac. You will get bombed."
- allergen_type = ALLERGEN_COFFEE|ALLERGEN_DAIRY|ALLERGEN_FRUIT|ALLERGEN_GRAINS //Made from kahlua(coffee), cognac(fruit), and irish cream(Whiskey(grains),cream(dairy))
+ allergen_type = ALLERGEN_COFFEE|ALLERGEN_DAIRY|ALLERGEN_FRUIT|ALLERGEN_GRAINS|ALLERGEN_STIMULANT //Made from kahlua(coffee/caffeine), cognac(fruit), and irish cream(Whiskey(grains),cream(dairy))
/datum/reagent/ethanol/bahama_mama
name = "Bahama mama"
@@ -2965,7 +3097,7 @@
glass_name = "Black Russian"
glass_desc = "For the lactose-intolerant. Still as classy as a White Russian."
- allergen_type = ALLERGEN_COFFEE|ALLERGEN_GRAINS //Made from vodka(grains) and kahlua(coffee)
+ allergen_type = ALLERGEN_COFFEE|ALLERGEN_GRAINS|ALLERGEN_STIMULANT //Made from vodka(grains) and kahlua(coffee/caffeine)
/datum/reagent/ethanol/bloody_mary
name = "Bloody Mary"
@@ -2993,7 +3125,7 @@
allergen_type = ALLERGEN_DAIRY|ALLERGEN_FRUIT //Made from cream(dairy), banana juice(fruit), and watermelon juice(fruit)
-/datum/reagent/ethanol/coffee/brave_bull //Since it's under the /coffee subtype, it already has coffee allergens.
+/datum/reagent/ethanol/coffee/brave_bull //Since it's under the /coffee subtype, it already has coffee and caffeine allergens.
name = "Brave Bull"
id = "bravebull"
description = "It's just as effective as Dutch-Courage!"
@@ -3034,13 +3166,37 @@
/datum/reagent/ethanol/cuba_libre
name = "Cuba Libre"
id = "cubalibre"
- description = "Rum, mixed with cola. Viva la revolucion."
+ description = "Rum, mixed with cola and a splash of lime. Viva la revolucion."
+ taste_description = "cola with lime"
+ color = "#3E1B00"
+ strength = 30
+
+ glass_name = "Cuba Libre"
+ glass_desc = "A classic mix of rum, cola, and lime."
+ allergen_type = ALLERGEN_STIMULANT //Cola
+
+/datum/reagent/ethanol/rum_and_cola
+ name = "Rum and Cola"
+ id = "rumandcola"
+ description = "A classic mix of sugar with more sugar."
taste_description = "cola"
color = "#3E1B00"
strength = 30
glass_name = "Cuba Libre"
+ glass_desc = "A classic mix of rum, cola, and lime."
+
+/datum/reagent/ethanol/rum_and_cola
+ name = "Rum and Cola"
+ id = "rumandcola"
+ description = "A classic mix of sugar with more sugar."
+ taste_description = "cola"
+ color = "#3E1B00"
+ strength = 30
+
+ glass_name = "rum and cola"
glass_desc = "A classic mix of rum and cola."
+ allergen_type = ALLERGEN_STIMULANT // Cola
/datum/reagent/ethanol/demonsblood
name = "Demons Blood"
@@ -3053,7 +3209,7 @@
glass_name = "Demons' Blood"
glass_desc = "Just looking at this thing makes the hair on the back of your neck stand up."
- allergen_type = ALLERGEN_FRUIT //Made from space mountain wind(fruit)
+ allergen_type = ALLERGEN_FRUIT|ALLERGEN_STIMULANT //Made from space mountain wind(fruit) and dr.gibb(caffeine)
/datum/reagent/ethanol/devilskiss
name = "Devils Kiss"
@@ -3065,7 +3221,7 @@
glass_name = "Devil's Kiss"
glass_desc = "Creepy time!"
- allergen_type = ALLERGEN_COFFEE //Made from kahlua (Coffee)
+ allergen_type = ALLERGEN_COFFEE|ALLERGEN_STIMULANT //Made from kahlua (Coffee)
/datum/reagent/ethanol/driestmartini
name = "Driest Martini"
@@ -3228,7 +3384,7 @@
glass_name = "Irish coffee"
glass_desc = "Coffee and alcohol. More fun than a Mimosa to drink in the morning."
- allergen_type = ALLERGEN_COFFEE|ALLERGEN_DAIRY|ALLERGEN_GRAINS //Made from Coffee(coffee) and irish cream(whiskey(grains), cream(dairy))
+ allergen_type = ALLERGEN_COFFEE|ALLERGEN_DAIRY|ALLERGEN_GRAINS|ALLERGEN_STIMULANT //Made from Coffee(coffee/caffeine) and irish cream(whiskey(grains), cream(dairy))
/datum/reagent/ethanol/irish_cream
name = "Irish Cream"
@@ -3254,7 +3410,7 @@
glass_name = "Long Island iced tea"
glass_desc = "The liquor cabinet, brought together in a delicious mix. Intended for middle-aged alcoholic women only."
- allergen_type = ALLERGEN_GRAINS|ALLERGEN_FRUIT //Made from vodka(grains) and gin(fruit)
+ allergen_type = ALLERGEN_GRAINS|ALLERGEN_FRUIT|ALLERGEN_STIMULANT //Made from vodka(grains), cola(caffeine) and gin(fruit)
/datum/reagent/ethanol/manhattan
name = "Manhattan"
@@ -3441,7 +3597,7 @@
glass_name = "Snow White"
glass_desc = "A cold refreshment."
- allergen_type = ALLERGEN_COFFEE|ALLERGEN_FRUIT //made from Pineapple juice(fruit), lemon_lime(fruit), and kahlua(coffee)
+ allergen_type = ALLERGEN_COFFEE|ALLERGEN_FRUIT|ALLERGEN_STIMULANT //made from Pineapple juice(fruit), lemon_lime(fruit), and kahlua(coffee/caffine)
/datum/reagent/ethanol/suidream
name = "Sui Dream"
@@ -3467,7 +3623,7 @@
glass_name = "Syndicate Bomb"
glass_desc = "Tastes like terrorism!"
- allergen_type = ALLERGEN_GRAINS //Made from beer(grain) and whiskeycola(whiskey(grain))
+ allergen_type = ALLERGEN_GRAINS|ALLERGEN_STIMULANT //Made from beer(grain) and whiskeycola(whiskey(grain) and cola(caffeine))
/datum/reagent/ethanol/tequilla_sunrise
name = "Tequila Sunrise"
@@ -3547,7 +3703,7 @@
glass_name = "White Russian"
glass_desc = "A very nice looking drink. But that's just, like, your opinion, man."
- allergen_type = ALLERGEN_COFFEE|ALLERGEN_GRAINS|ALLERGEN_DAIRY //Made from black russian(vodka(grains), kahlua(coffee)) and cream(dairy)
+ allergen_type = ALLERGEN_COFFEE|ALLERGEN_GRAINS|ALLERGEN_DAIRY|ALLERGEN_STIMULANT //Made from black russian(vodka(grains), kahlua(coffee/caffeine)) and cream(dairy)
/datum/reagent/ethanol/whiskey_cola
name = "Whiskey Cola"
@@ -3560,7 +3716,7 @@
glass_name = "whiskey cola"
glass_desc = "An innocent-looking mixture of cola and Whiskey. Delicious."
- allergen_type = ALLERGEN_GRAINS //Made from whiskey(grains)
+ allergen_type = ALLERGEN_GRAINS|ALLERGEN_STIMULANT //Made from whiskey(grains) and cola(caffeine)
/datum/reagent/ethanol/whiskeysoda
name = "Whiskey Soda"
@@ -3689,7 +3845,7 @@
glass_name = "Elysium Facepunch"
glass_desc = "A loathesome cocktail favored by Heaven's skeleton shift workers."
- allergen_type = ALLERGEN_COFFEE|ALLERGEN_FRUIT //Made from kahlua(Coffee) and lemonjuice(fruit)
+ allergen_type = ALLERGEN_COFFEE|ALLERGEN_FRUIT|ALLERGEN_STIMULANT //Made from kahlua(Coffee/caffeine) and lemonjuice(fruit)
/datum/reagent/ethanol/erebusmoonrise
name = "Erebus Moonrise"
@@ -3755,7 +3911,7 @@
glass_name = "Xanadu Cannon"
glass_desc = "Common in the entertainment districts of Titan."
- allergen_type = ALLERGEN_GRAINS //Made from ale(grain)
+ allergen_type = ALLERGEN_GRAINS|ALLERGEN_STIMULANT //Made from ale(grain) and dr.gibb(caffeine)
/datum/reagent/ethanol/debugger
name = "Debugger"
@@ -3780,7 +3936,7 @@
glass_name = "Spacer's Brew"
glass_desc = "Ethanol and orange soda. A common emergency drink on frontier colonies."
- allergen_type = ALLERGEN_FRUIT //Made from brownstar(orange juice(fruit))
+ allergen_type = ALLERGEN_FRUIT|ALLERGEN_STIMULANT //Made from brownstar(orange juice(fruit) + cola(caffeine)
/datum/reagent/ethanol/binmanbliss
name = "Binman Bliss"
@@ -3860,7 +4016,7 @@
glass_name = "Morning After"
glass_desc = "The finest hair of the dog, coming up!"
- allergen_type = ALLERGEN_GRAINS|ALLERGEN_COFFEE //Made from sbiten(vodka(grain)) and coffee(coffee)
+ allergen_type = ALLERGEN_GRAINS|ALLERGEN_COFFEE|ALLERGEN_STIMULANT //Made from sbiten(vodka(grain)) and coffee(coffee/caffine)
/datum/reagent/ethanol/vesper
name = "Vesper"
@@ -3886,7 +4042,7 @@
glass_name = "Rotgut Fever Dream"
glass_desc = "Why are you doing this to yourself?"
- allergen_type = ALLERGEN_GRAINS //Made from whiskey(grains) and vodka(grains)
+ allergen_type = ALLERGEN_GRAINS|ALLERGEN_STIMULANT //Made from whiskey(grains), cola (caffeine) and vodka(grains)
/datum/reagent/ethanol/voxdelight
name = "Vox's Delight"
@@ -4098,7 +4254,7 @@
glass_name = "Cold Front"
glass_desc = "Minty, rich, and painfully cold. It's a blizzard in a cup."
- allergen_type = ALLERGEN_COFFEE //Made from iced coffee(coffee)
+ allergen_type = ALLERGEN_COFFEE|ALLERGEN_STIMULANT //Made from iced coffee(coffee)
/datum/reagent/ethanol/mintjulep
name = "Mint Julep"
@@ -4194,7 +4350,7 @@
glass_icon = DRINK_ICON_NOISY
glass_special = list(DRINK_FIZZ)
- allergen_type = ALLERGEN_FRUIT //Made from space mountain wind(fruit), and holy wine(fruit)
+ allergen_type = ALLERGEN_FRUIT|ALLERGEN_STIMULANT //Made from space mountain wind(fruit), dr.gibb(caffine) and holy wine(fruit)
/datum/reagent/ethanol/angelskiss
name = "Angels Kiss"
@@ -4207,7 +4363,7 @@
glass_name = "Angel's Kiss"
glass_desc = "Miracle time!"
- allergen_type = ALLERGEN_FRUIT|ALLERGEN_COFFEE //Made from holy wine(fruit), and kahlua(coffee)
+ allergen_type = ALLERGEN_FRUIT|ALLERGEN_COFFEE|ALLERGEN_STIMULANT //Made from holy wine(fruit), and kahlua(coffee)
/datum/reagent/ethanol/ichor_mead
name = "Ichor Mead"
diff --git a/code/modules/reagents/reagents/food_drinks_vr.dm b/code/modules/reagents/reagents/food_drinks_vr.dm
index e25595860ab..ef301925cb4 100644
--- a/code/modules/reagents/reagents/food_drinks_vr.dm
+++ b/code/modules/reagents/reagents/food_drinks_vr.dm
@@ -155,16 +155,12 @@
if(alien == IS_SLIME || alien == IS_CHIMERA) //slimes and chimera can get nutrition from injected nutriment and protein
M.adjust_nutrition(alt_nutriment_factor * removed)
-
-
/datum/reagent/nutriment/magicdust/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
..()
playsound(M, 'sound/items/hooh.ogg', 50, 1, -1)
if(prob(5))
to_chat(M, "You feel like you've been gnomed... ")
-
-
/datum/reagent/ethanol/galacticpanic
name = "Galactic Panic Attack"
id = "galacticpanic"
@@ -516,4 +512,34 @@
glass_name = "Shambler's Juice"
glass_desc = "A glass of something shambly"
- glass_special = list(DRINK_FIZZ)
\ No newline at end of file
+ glass_special = list(DRINK_FIZZ)
+
+////////////////START BrainzSnax Reagents////////////////
+
+/datum/reagent/nutriment/protein/brainzsnax
+ name = "grey matter"
+ id = "brain_protein"
+ taste_description = "fatty, mushy meat and allspice"
+ color = "#caa3c9"
+
+/datum/reagent/nutriment/protein/brainzsnax/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
+ if(prob(5) && !(alien == IS_CHIMERA || alien == IS_SLIME || alien == IS_PLANT || alien == IS_DIONA || alien == IS_SHADEKIN && !M.isSynthetic()))
+ M.adjustBrainLoss(removed) //Any other species risks prion disease.
+ M.Confuse(5)
+ M.hallucination = max(M.hallucination, 25)
+
+ if(ishuman(M))
+ var/mob/living/carbon/human/H = M
+ if(H.feral > 0 && H.nutrition > 100 && H.traumatic_shock < min(60, H.nutrition/10) && H.jitteriness < 100) //Same check as feral triggers to stop them immediately re-feralling
+ H.feral -= removed * 3 //Should calm them down quick, provided they're actually in a state to STAY calm.
+ if(H.feral <=0) //Check if they're unferalled
+ H.feral = 0
+ to_chat(H, "Your mind starts to clear, soothed into a state of clarity as your senses return. ")
+ log_and_message_admins("is no longer feral.", H)
+
+/datum/reagent/nutriment/protein/brainzsnax/red
+ id = "red_brain_protein"
+ taste_description = "fatty, mushy meat and cheap tomato sauce"
+ color = "#a6898d"
+
+////////////////END BrainzSnax Reagents////////////////
\ No newline at end of file
diff --git a/code/modules/research/designs/circuits/circuits.dm b/code/modules/research/designs/circuits/circuits.dm
index c4c0825a2e0..fbf41ab8067 100644
--- a/code/modules/research/designs/circuits/circuits.dm
+++ b/code/modules/research/designs/circuits/circuits.dm
@@ -427,6 +427,13 @@ CIRCUITS BELOW
build_path = /obj/item/weapon/circuitboard/skills
sort_string = "LAAAC"
+/datum/design/circuit/arf_generator
+ name = "atmospheric field generator"
+ id = "arf_generator"
+ req_tech = list(TECH_MAGNET = 4, TECH_POWER = 4, TECH_BIO = 3)
+ build_path = /obj/item/weapon/circuitboard/arf_generator
+ sort_string = "LAAAD"
+
/datum/design/circuit/mecha
req_tech = list(TECH_DATA = 3)
diff --git a/code/modules/vore/eating/bellymodes_datum_vr.dm b/code/modules/vore/eating/bellymodes_datum_vr.dm
index 2aee027c95f..8f8dd46aebd 100644
--- a/code/modules/vore/eating/bellymodes_datum_vr.dm
+++ b/code/modules/vore/eating/bellymodes_datum_vr.dm
@@ -200,8 +200,8 @@ GLOBAL_LIST_INIT(digest_modes, list())
B.ownegg.calibrate_size()
B.ownegg.orient2hud()
B.ownegg.w_class = clamp(B.ownegg.w_class * 0.25, 1, 8) //A total w_class of 16 will result in a backpack sized egg.
- B.ownegg.icon_scale_x = 0.25 * B.ownegg.w_class
- B.ownegg.icon_scale_y = 0.25 * B.ownegg.w_class
+ B.ownegg.icon_scale_x = clamp(0.25 * B.ownegg.w_class, 0.25, 1)
+ B.ownegg.icon_scale_y = clamp(0.25 * B.ownegg.w_class, 0.25, 1)
B.ownegg.update_transform()
if(B.ownegg.w_class > 4)
B.ownegg.slowdown = B.ownegg.w_class - 4
diff --git a/code/modules/vore/eating/bellymodes_vr.dm b/code/modules/vore/eating/bellymodes_vr.dm
index 95f3089dcb4..7338db7830c 100644
--- a/code/modules/vore/eating/bellymodes_vr.dm
+++ b/code/modules/vore/eating/bellymodes_vr.dm
@@ -235,7 +235,9 @@
/obj/belly/proc/handle_digestion_death(mob/living/M)
var/digest_alert_owner = pick(digest_messages_owner)
var/digest_alert_prey = pick(digest_messages_prey)
- var/compensation = M.getOxyLoss() //How much of the prey's damage was caused by passive crit oxyloss to compensate the lost nutrition.
+ var/compensation = M.maxHealth / 5 //Dead body bonus.
+ if(ishuman(M))
+ compensation += M.getOxyLoss() //How much of the prey's damage was caused by passive crit oxyloss to compensate the lost nutrition.
var/living_count = 0
for(var/mob/living/L in contents)
@@ -263,14 +265,11 @@
digestion_death(M)
if(!ishuman(owner))
owner.update_icons()
- if(compensation == 0) //Slightly sloppy way at making sure certain mobs don't give ZERO nutrition (fish and so on)
- compensation = 21 //This reads as 20*4.5 due to the calculations afterward, making the backup nutrition value 94.5 per mob. Not op compared to regular prey.
- if(compensation > 0)
- if(isrobot(owner))
- var/mob/living/silicon/robot/R = owner
- R.cell.charge += 25*compensation*(nutrition_percent / 100)
- else
- owner.adjust_nutrition((nutrition_percent / 100)*4.5*compensation)
+ if(isrobot(owner))
+ var/mob/living/silicon/robot/R = owner
+ R.cell.charge += (nutrition_percent / 100) * compensation * 25
+ else
+ owner.adjust_nutrition((nutrition_percent / 100) * compensation * 4.5)
/obj/belly/proc/steal_nutrition(mob/living/L)
if(L.nutrition >= 100)
diff --git a/code/modules/vore/eating/digest_act_vr.dm b/code/modules/vore/eating/digest_act_vr.dm
index 2c905b9b522..f303be39987 100644
--- a/code/modules/vore/eating/digest_act_vr.dm
+++ b/code/modules/vore/eating/digest_act_vr.dm
@@ -115,7 +115,7 @@
if((. = ..()))
if(isbelly(item_storage))
var/obj/belly/B = item_storage
- . += 2 * (B.digest_brute + B.digest_burn + (B.digest_oxy)/2)
+ . *= 3
else
. += 30 //Organs give a little more
diff --git a/code/modules/xenoarcheaology/effects/vampire.dm b/code/modules/xenoarcheaology/effects/vampire.dm
index cf0ae9a2466..e5a069b9351 100644
--- a/code/modules/xenoarcheaology/effects/vampire.dm
+++ b/code/modules/xenoarcheaology/effects/vampire.dm
@@ -30,7 +30,8 @@
DoEffectAura()
/datum/artifact_effect/vampire/DoEffectAura()
- nearby_mobs.Cut()
+ if (nearby_mobs.len)
+ nearby_mobs.Cut()
var/turf/T = get_turf(holder)
diff --git a/icons/inventory/eyes/item.dmi b/icons/inventory/eyes/item.dmi
index b4ba37ad398..bcd48ade6be 100644
Binary files a/icons/inventory/eyes/item.dmi and b/icons/inventory/eyes/item.dmi differ
diff --git a/icons/inventory/eyes/mob.dmi b/icons/inventory/eyes/mob.dmi
index 70113e3d8c5..1d4e1fe2ca1 100644
Binary files a/icons/inventory/eyes/mob.dmi and b/icons/inventory/eyes/mob.dmi differ
diff --git a/icons/inventory/face/item.dmi b/icons/inventory/face/item.dmi
index 5bde3b32d46..60cb749378a 100644
Binary files a/icons/inventory/face/item.dmi and b/icons/inventory/face/item.dmi differ
diff --git a/icons/inventory/face/item_vr.dmi b/icons/inventory/face/item_vr.dmi
index 78230b3e597..c923555fe70 100644
Binary files a/icons/inventory/face/item_vr.dmi and b/icons/inventory/face/item_vr.dmi differ
diff --git a/icons/inventory/face/mob.dmi b/icons/inventory/face/mob.dmi
index fd1af6e950b..7c9363956cc 100644
Binary files a/icons/inventory/face/mob.dmi and b/icons/inventory/face/mob.dmi differ
diff --git a/icons/inventory/face/mob_vr.dmi b/icons/inventory/face/mob_vr.dmi
index ec49d3cdb72..fbac00cd0d1 100644
Binary files a/icons/inventory/face/mob_vr.dmi and b/icons/inventory/face/mob_vr.dmi differ
diff --git a/icons/inventory/head/item.dmi b/icons/inventory/head/item.dmi
index 35a07f74bf3..69c053540d8 100644
Binary files a/icons/inventory/head/item.dmi and b/icons/inventory/head/item.dmi differ
diff --git a/icons/inventory/head/mob.dmi b/icons/inventory/head/mob.dmi
index 1e8a6315bdd..c75e89c28aa 100644
Binary files a/icons/inventory/head/mob.dmi and b/icons/inventory/head/mob.dmi differ
diff --git a/icons/inventory/suit/item.dmi b/icons/inventory/suit/item.dmi
index 6390e024358..beb1f9c3a76 100644
Binary files a/icons/inventory/suit/item.dmi and b/icons/inventory/suit/item.dmi differ
diff --git a/icons/inventory/suit/mob.dmi b/icons/inventory/suit/mob.dmi
index 8736d3d420d..a313002203b 100644
Binary files a/icons/inventory/suit/mob.dmi and b/icons/inventory/suit/mob.dmi differ
diff --git a/icons/misc/random_spawners.dmi b/icons/misc/random_spawners.dmi
new file mode 100644
index 00000000000..27e55fc9ecb
Binary files /dev/null and b/icons/misc/random_spawners.dmi differ
diff --git a/icons/mob/items/lefthand.dmi b/icons/mob/items/lefthand.dmi
index 327eb3b9ced..17b80b78a5e 100644
Binary files a/icons/mob/items/lefthand.dmi and b/icons/mob/items/lefthand.dmi differ
diff --git a/icons/mob/items/lefthand_balls_vr.dmi b/icons/mob/items/lefthand_balls_vr.dmi
index 2f65e0969a5..70455d01c20 100644
Binary files a/icons/mob/items/lefthand_balls_vr.dmi and b/icons/mob/items/lefthand_balls_vr.dmi differ
diff --git a/icons/mob/items/lefthand_guns_vr.dmi b/icons/mob/items/lefthand_guns_vr.dmi
index 0d8acb4fbba..fcf529ee985 100644
Binary files a/icons/mob/items/lefthand_guns_vr.dmi and b/icons/mob/items/lefthand_guns_vr.dmi differ
diff --git a/icons/mob/items/righthand.dmi b/icons/mob/items/righthand.dmi
index 75d2c9ac510..f8b95c18bce 100644
Binary files a/icons/mob/items/righthand.dmi and b/icons/mob/items/righthand.dmi differ
diff --git a/icons/mob/items/righthand_balls_vr.dmi b/icons/mob/items/righthand_balls_vr.dmi
index ba2bccac389..286540595d5 100644
Binary files a/icons/mob/items/righthand_balls_vr.dmi and b/icons/mob/items/righthand_balls_vr.dmi differ
diff --git a/icons/mob/items/righthand_guns_vr.dmi b/icons/mob/items/righthand_guns_vr.dmi
index 73ee95c0a3a..5554423acb8 100644
Binary files a/icons/mob/items/righthand_guns_vr.dmi and b/icons/mob/items/righthand_guns_vr.dmi differ
diff --git a/icons/mob/vore/tails_vr.dmi b/icons/mob/vore/tails_vr.dmi
index 0643fbd932e..922b153daf7 100644
Binary files a/icons/mob/vore/tails_vr.dmi and b/icons/mob/vore/tails_vr.dmi differ
diff --git a/icons/obj/32x64.dmi b/icons/obj/32x64.dmi
index 7b8c00eef88..493b337ad67 100644
Binary files a/icons/obj/32x64.dmi and b/icons/obj/32x64.dmi differ
diff --git a/icons/obj/Cryogenic2_vr.dmi b/icons/obj/Cryogenic2_vr.dmi
index 69d24bc15e8..e4b88cb6359 100644
Binary files a/icons/obj/Cryogenic2_vr.dmi and b/icons/obj/Cryogenic2_vr.dmi differ
diff --git a/icons/obj/abductor.dmi b/icons/obj/abductor.dmi
index 20c744e0a0b..99362c782dc 100644
Binary files a/icons/obj/abductor.dmi and b/icons/obj/abductor.dmi differ
diff --git a/icons/obj/atm_fieldgen.dmi b/icons/obj/atm_fieldgen.dmi
new file mode 100644
index 00000000000..0c30371196a
Binary files /dev/null and b/icons/obj/atm_fieldgen.dmi differ
diff --git a/icons/obj/balls_vr.dmi b/icons/obj/balls_vr.dmi
index 994be4ab974..e85f4cab05d 100644
Binary files a/icons/obj/balls_vr.dmi and b/icons/obj/balls_vr.dmi differ
diff --git a/icons/obj/boxes.dmi b/icons/obj/boxes.dmi
index 1f7e82c9600..dad29a40a2c 100644
Binary files a/icons/obj/boxes.dmi and b/icons/obj/boxes.dmi differ
diff --git a/icons/obj/computer.dmi b/icons/obj/computer.dmi
index 5b58a84313f..a52ac02d69b 100644
Binary files a/icons/obj/computer.dmi and b/icons/obj/computer.dmi differ
diff --git a/icons/obj/drinks.dmi b/icons/obj/drinks.dmi
index 24e8b94966f..c138e6093ee 100644
Binary files a/icons/obj/drinks.dmi and b/icons/obj/drinks.dmi differ
diff --git a/icons/obj/food_canned.dmi b/icons/obj/food_canned.dmi
index 606ca9f6e40..1a4be5b5066 100644
Binary files a/icons/obj/food_canned.dmi and b/icons/obj/food_canned.dmi differ
diff --git a/icons/obj/furniture.dmi b/icons/obj/furniture.dmi
index 098fc4461c8..64227b0b200 100644
Binary files a/icons/obj/furniture.dmi and b/icons/obj/furniture.dmi differ
diff --git a/icons/obj/gun_vr.dmi b/icons/obj/gun_vr.dmi
index 609e107845e..a623c02134b 100644
Binary files a/icons/obj/gun_vr.dmi and b/icons/obj/gun_vr.dmi differ
diff --git a/icons/obj/lighting.dmi b/icons/obj/lighting.dmi
index 84fdd7be130..ededfc4b500 100644
Binary files a/icons/obj/lighting.dmi and b/icons/obj/lighting.dmi differ
diff --git a/icons/obj/objects_vr.dmi b/icons/obj/objects_vr.dmi
index 467297775f4..db7f71aef3c 100644
Binary files a/icons/obj/objects_vr.dmi and b/icons/obj/objects_vr.dmi differ
diff --git a/icons/obj/stock_parts.dmi b/icons/obj/stock_parts.dmi
index 64184432c7a..1f203a1e8f1 100644
Binary files a/icons/obj/stock_parts.dmi and b/icons/obj/stock_parts.dmi differ
diff --git a/icons/obj/structures.dmi b/icons/obj/structures.dmi
index 565190a6dd0..d1c5a38ff15 100644
Binary files a/icons/obj/structures.dmi and b/icons/obj/structures.dmi differ
diff --git a/icons/obj/tools.dmi b/icons/obj/tools.dmi
index dbc403ce407..f81d8a42d6f 100644
Binary files a/icons/obj/tools.dmi and b/icons/obj/tools.dmi differ
diff --git a/icons/obj/tools_vr.dmi b/icons/obj/tools_vr.dmi
index c49a991ff9e..05de9a423a4 100644
Binary files a/icons/obj/tools_vr.dmi and b/icons/obj/tools_vr.dmi differ
diff --git a/icons/obj/trash.dmi b/icons/obj/trash.dmi
index 98b6c9b60f9..f9c1ce74001 100644
Binary files a/icons/obj/trash.dmi and b/icons/obj/trash.dmi differ
diff --git a/icons/obj/wall_frame_bay.dmi b/icons/obj/wall_frame_bay.dmi
index 628a002edb7..c3f14c5f487 100644
Binary files a/icons/obj/wall_frame_bay.dmi and b/icons/obj/wall_frame_bay.dmi differ
diff --git a/icons/turf/fancy_shuttles/tether_cargo.dmi b/icons/turf/fancy_shuttles/tether_cargo.dmi
new file mode 100644
index 00000000000..b65e9a0e6c7
Binary files /dev/null and b/icons/turf/fancy_shuttles/tether_cargo.dmi differ
diff --git a/icons/turf/fancy_shuttles/tether_cargo_preview.dmi b/icons/turf/fancy_shuttles/tether_cargo_preview.dmi
new file mode 100644
index 00000000000..48ef0cb78fa
Binary files /dev/null and b/icons/turf/fancy_shuttles/tether_cargo_preview.dmi differ
diff --git a/icons/turf/transit_vr.dmi b/icons/turf/transit_vr.dmi
index 4b7339548ee..b4bdfc19530 100644
Binary files a/icons/turf/transit_vr.dmi and b/icons/turf/transit_vr.dmi differ
diff --git a/icons/turf/walls.dmi b/icons/turf/walls.dmi
index e3fc2202e9b..86243a853ff 100644
Binary files a/icons/turf/walls.dmi and b/icons/turf/walls.dmi differ
diff --git a/maps/gateway_archive_vr/zoo.dmm b/maps/gateway_archive_vr/zoo.dmm
index 3ed7fe26f83..40a2d0ef1b4 100644
--- a/maps/gateway_archive_vr/zoo.dmm
+++ b/maps/gateway_archive_vr/zoo.dmm
@@ -528,8 +528,8 @@
"kh" = (/obj/machinery/vending/food,/turf/simulated/floor/tiled/white,/area/awaymission/zoo)
"ki" = (/obj/structure/window/reinforced{dir = 8; health = 1e+006},/turf/simulated/floor/holofloor/beach/sand{icon_state = "dgrass0"},/area/awaymission/zoo)
"kj" = (/obj/structure/window/reinforced{dir = 4; health = 1e+006},/turf/simulated/floor/holofloor/beach/sand{icon_state = "dgrass0"},/area/awaymission/zoo)
-"kk" = (/obj/structure/table/rack,/obj/item/clothing/suit/storage/hooded/ian_costume,/turf/simulated/floor/holofloor/carpet,/area/awaymission/zoo)
-"kl" = (/obj/structure/table/rack,/obj/item/clothing/suit/storage/hooded/carp_costume,/turf/simulated/floor/holofloor/carpet,/area/awaymission/zoo)
+"kk" = (/obj/structure/table/rack,/obj/item/clothing/suit/storage/hooded/costume/ian,/turf/simulated/floor/holofloor/carpet,/area/awaymission/zoo)
+"kl" = (/obj/structure/table/rack,/obj/item/clothing/suit/storage/hooded/costume/carp,/turf/simulated/floor/holofloor/carpet,/area/awaymission/zoo)
"km" = (/obj/structure/table/rack,/obj/effect/landmark/costume,/turf/simulated/floor/holofloor/carpet,/area/awaymission/zoo)
"kn" = (/obj/structure/table/rack,/obj/item/clothing/suit/chickensuit,/obj/item/clothing/head/chicken,/turf/simulated/floor/holofloor/carpet,/area/awaymission/zoo)
"ko" = (/obj/structure/table/rack,/obj/item/clothing/head/sombrero,/turf/simulated/floor/holofloor/carpet,/area/awaymission/zoo)
diff --git a/maps/gateway_vr/zoo.dmm b/maps/gateway_vr/zoo.dmm
index 831eae8e7f3..19fa7fc4dad 100644
--- a/maps/gateway_vr/zoo.dmm
+++ b/maps/gateway_vr/zoo.dmm
@@ -3856,12 +3856,12 @@
/area/awaymission/zoo)
"kk" = (
/obj/structure/table/rack,
-/obj/item/clothing/suit/storage/hooded/ian_costume,
+/obj/item/clothing/suit/storage/hooded/costume/ian,
/turf/simulated/floor/holofloor/carpet,
/area/awaymission/zoo)
"kl" = (
/obj/structure/table/rack,
-/obj/item/clothing/suit/storage/hooded/carp_costume,
+/obj/item/clothing/suit/storage/hooded/costume/carp,
/turf/simulated/floor/holofloor/carpet,
/area/awaymission/zoo)
"km" = (
diff --git a/maps/offmap_vr/talon/talon_v2.dmm b/maps/offmap_vr/talon/talon_v2.dmm
index 59eb7888cad..38899fbe5ad 100644
--- a/maps/offmap_vr/talon/talon_v2.dmm
+++ b/maps/offmap_vr/talon/talon_v2.dmm
@@ -2562,7 +2562,7 @@
/obj/machinery/camera/network/talon{
dir = 1
},
-/obj/random/multiple/corp_crate/talon_cargo,
+/obj/structure/vehiclecage/quadbike,
/turf/simulated/floor/tiled/techfloor,
/area/talon_v2/maintenance/wing_starboard)
"hc" = (
@@ -9564,7 +9564,7 @@
/obj/machinery/camera/network/talon{
dir = 1
},
-/obj/random/multiple/corp_crate/talon_cargo,
+/obj/structure/vehiclecage/quadbike,
/turf/simulated/floor/tiled/techfloor,
/area/talon_v2/maintenance/wing_port)
"FO" = (
diff --git a/maps/southern_cross/southern_cross_jobs.dm b/maps/southern_cross/southern_cross_jobs.dm
index 0903a3ac3dc..2f379dcb2e5 100644
--- a/maps/southern_cross/southern_cross_jobs.dm
+++ b/maps/southern_cross/southern_cross_jobs.dm
@@ -85,6 +85,7 @@ var/const/access_explorer = 43
economic_modifier = 4
access = list(access_explorer, access_research)
minimal_access = list(access_explorer, access_research)
+ banned_job_species = list(SPECIES_ZADDAT)
outfit_type = /decl/hierarchy/outfit/job/explorer2
job_description = "An Explorer searches for interesting things on the surface of Sif, and returns them to the station."
@@ -108,6 +109,7 @@ var/const/access_explorer = 43
economic_modifier = 4
access = list(access_medical, access_medical_equip, access_morgue, access_surgery, access_chemistry, access_virology, access_eva, access_maint_tunnels, access_external_airlocks, access_psychiatrist, access_explorer)
minimal_access = list(access_medical, access_medical_equip, access_morgue, access_explorer)
+ min_age_by_species = list(SPECIES_PROMETHEAN = 2)
outfit_type = /decl/hierarchy/outfit/job/medical/sar
job_description = "A Search and Rescue operative recovers individuals who are injured or dead on the surface of Sif."
\ No newline at end of file
diff --git a/maps/submaps/surface_submaps/wilderness/borglab.dmm b/maps/submaps/surface_submaps/wilderness/borglab.dmm
index cb572dcfbed..b2865e495de 100644
--- a/maps/submaps/surface_submaps/wilderness/borglab.dmm
+++ b/maps/submaps/surface_submaps/wilderness/borglab.dmm
@@ -1,5 +1,15 @@
-"ac" = (/obj/machinery/light_construct{dir = 1},/mob/living/simple_mob/humanoid/merc/ranged{health = 15; maxHealth = 15},/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/plating,/area/submap/BorgLab)
+"aa" = (/obj/effect/floor_decal/techfloor/orange{dir = 1},/obj/random/maintenance,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
+"ab" = (/obj/effect/floor_decal/industrial/warning,/obj/effect/floor_decal/rust,/obj/random/energy,/turf/simulated/floor/plating,/area/submap/BorgLab)
+"ac" = (/obj/machinery/light_construct{dir = 1},/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/mob/living/simple_mob/humanoid/merc/ranged{health = 15; maxHealth = 15},/turf/simulated/floor/plating,/area/submap/BorgLab)
"ad" = (/obj/effect/floor_decal/sign/c,/turf/simulated/wall/r_wall,/area/submap/BorgLab)
+"ae" = (/obj/effect/floor_decal/rust/mono_rusted3,/obj/random/maintenance/research,/mob/living/simple_mob/humanoid/merc/ranged/ionrifle{health = 15; maxHealth = 15},/turf/simulated/floor/tiled,/area/submap/BorgLab)
+"af" = (/obj/effect/floor_decal/rust,/obj/effect/floor_decal/rust/mono_rusted3,/obj/effect/decal/cleanable/generic,/mob/living/simple_mob/mechanical/combat_drone/lesser{faction = "corrupt"},/turf/simulated/floor/tiled,/area/submap/BorgLab)
+"ag" = (/obj/effect/floor_decal/industrial/warning,/obj/effect/floor_decal/rust,/obj/effect/decal/cleanable/dirt,/mob/living/simple_mob/humanoid/merc/melee/sword/poi{health = 15; maxHealth = 15},/turf/simulated/floor/tiled,/area/submap/BorgLab)
+"ah" = (/obj/effect/floor_decal/industrial/warning,/obj/machinery/light/small/emergency/flicker,/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/obj/random/contraband,/turf/simulated/floor/tiled,/area/submap/BorgLab)
+"ai" = (/obj/effect/floor_decal/industrial/warning,/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/mob/living/simple_mob/humanoid/merc/ranged{health = 15; maxHealth = 15},/turf/simulated/floor/tiled,/area/submap/BorgLab)
+"aj" = (/obj/effect/floor_decal/industrial/warning{dir = 1},/obj/random/energy/highend,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
+"ak" = (/obj/effect/floor_decal/techfloor/orange,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
+"al" = (/obj/effect/floor_decal/techfloor/orange,/obj/random/contraband,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"bj" = (/obj/structure/bed/padded,/obj/item/weapon/bedsheet/brown,/obj/effect/floor_decal/rust,/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/generic,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"bz" = (/obj/random/trash,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"bE" = (/obj/structure/closet/secure_closet/chemical{locked = 0},/obj/item/weapon/storage/box/pillbottles,/obj/item/weapon/storage/box/syringes,/obj/item/weapon/tool/screwdriver,/obj/effect/floor_decal/rust,/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/tiled,/area/submap/BorgLab)
@@ -22,7 +32,6 @@
"gf" = (/obj/structure/table/standard,/obj/item/weapon/reagent_containers/food/snacks/burrito_cheese,/obj/effect/floor_decal/rust,/obj/effect/floor_decal/rust,/obj/item/weapon/cell/super/empty,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"gh" = (/obj/effect/floor_decal/industrial/warning{dir = 1},/obj/machinery/light_construct{dir = 1},/turf/simulated/floor/tiled,/area/submap/BorgLab)
"gN" = (/obj/structure/window/reinforced/tinted/frosted{dir = 4},/obj/random/junk,/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/generic,/turf/simulated/floor/plating,/area/submap/BorgLab)
-"gS" = (/obj/effect/floor_decal/rust/mono_rusted3,/mob/living/simple_mob/humanoid/merc/ranged/ionrifle{health = 15; maxHealth = 15},/obj/random/maintenance/research,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"he" = (/obj/structure/window/reinforced{dir = 4; health = 1e+006},/obj/structure/window/reinforced{dir = 8; health = 1e+006},/obj/item/weapon/material/shard{pixel_x = 6; pixel_y = -6},/obj/machinery/door/blast/regular{dir = 8; id = "borg"; layer = 3.3; name = "Containment Door"},/turf/simulated/floor/plating,/area/submap/BorgLab)
"hW" = (/obj/machinery/door/airlock/maintenance/common,/turf/simulated/floor/tiled/techmaint,/area/submap/BorgLab)
"ic" = (/obj/structure/window/reinforced/tinted/frosted{dir = 4},/obj/effect/floor_decal/rust,/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/tiled,/area/submap/BorgLab)
@@ -39,7 +48,6 @@
"lz" = (/obj/machinery/light_switch,/turf/simulated/wall/r_wall,/area/submap/BorgLab)
"lJ" = (/obj/effect/floor_decal/rust,/obj/structure/sink{dir = 4; pixel_x = 11},/obj/machinery/light/small/emergency/flicker{dir = 1},/turf/simulated/floor/plating,/area/submap/BorgLab)
"lU" = (/obj/machinery/chem_master,/obj/effect/floor_decal/rust/mono_rusted3,/turf/simulated/floor/tiled,/area/submap/BorgLab)
-"lZ" = (/obj/effect/floor_decal/industrial/warning,/obj/effect/floor_decal/rust,/mob/living/simple_mob/humanoid/merc/melee/sword/poi{health = 15; maxHealth = 15},/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"ma" = (/obj/effect/floor_decal/sign/b,/turf/simulated/wall/r_wall,/area/submap/BorgLab)
"mf" = (/obj/machinery/door/airlock/maintenance/common,/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/tiled/techmaint,/area/submap/BorgLab)
"mi" = (/obj/structure/closet/radiation,/obj/random/maintenance,/obj/random/maintenance,/obj/random/maintenance,/obj/effect/floor_decal/rust/color_rustedcee,/turf/simulated/floor/tiled,/area/submap/BorgLab)
@@ -51,7 +59,6 @@
"ne" = (/obj/machinery/door/window/brigdoor/westright{dir = 1; name = "Containment Pen"; req_one_access = list(43,1)},/obj/effect/floor_decal/industrial/hatch/yellow,/obj/machinery/door/blast/regular{dir = 8; id = "borg"; layer = 3.3; name = "Containment Door"},/turf/simulated/floor/plating,/area/submap/BorgLab)
"nk" = (/obj/effect/floor_decal/rust,/obj/effect/floor_decal/rust,/obj/effect/decal/cleanable/generic,/turf/simulated/floor/plating,/area/submap/BorgLab)
"ny" = (/obj/structure/curtain/open/shower,/obj/effect/floor_decal/borderfloor/cee{dir = 4},/obj/effect/floor_decal/rust,/obj/machinery/shower{dir = 4; pixel_x = 5},/turf/simulated/floor/tiled,/area/submap/BorgLab)
-"nV" = (/obj/effect/floor_decal/industrial/warning,/obj/machinery/light/small/emergency/flicker,/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"nW" = (/obj/effect/floor_decal/rust,/obj/structure/table,/obj/effect/floor_decal/rust/mono_rusted3,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"oa" = (/obj/effect/floor_decal/industrial/warning,/obj/item/weapon/material/shard{pixel_x = 6; pixel_y = -6},/turf/simulated/floor/tiled,/area/submap/BorgLab)
"op" = (/obj/effect/floor_decal/industrial/warning{dir = 1},/obj/effect/decal/cleanable/generic,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
@@ -113,7 +120,6 @@
"GA" = (/obj/machinery/door/airlock/maintenance/common,/turf/simulated/floor/plating,/area/submap/BorgLab)
"GC" = (/obj/effect/floor_decal/industrial/warning{dir = 1},/obj/effect/floor_decal/rust,/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"GS" = (/obj/item/stack/material/gold{amount = 25},/turf/simulated/floor/reinforced,/area/submap/BorgLab)
-"HA" = (/obj/effect/floor_decal/techfloor/orange,/obj/random/single,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"Ic" = (/obj/random/trash,/mob/living/simple_mob/mechanical/mecha/ripley/deathripley,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"Jd" = (/obj/effect/floor_decal/industrial/warning{dir = 1},/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"Jh" = (/obj/effect/floor_decal/rust,/obj/item/weapon/material/shard,/obj/effect/floor_decal/rust/mono_rusted3,/obj/random/trash,/turf/simulated/floor/tiled,/area/submap/BorgLab)
@@ -123,12 +129,10 @@
"Jr" = (/obj/effect/floor_decal/techfloor/orange{dir = 1},/mob/living/simple_mob/mechanical/viscerator/mercenary,/mob/living/simple_mob/mechanical/viscerator/mercenary,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"JZ" = (/obj/effect/floor_decal/industrial/warning/corner,/obj/structure/railing{dir = 1},/turf/simulated/floor/tiled,/area/submap/BorgLab)
"KH" = (/obj/structure/grille,/obj/structure/window/reinforced{dir = 4; health = 1e+006},/obj/item/weapon/material/shard{pixel_y = 10},/obj/item/weapon/material/shard{pixel_x = 6; pixel_y = -6},/obj/effect/decal/cleanable/generic,/obj/machinery/door/blast/regular/open{dir = 4},/turf/simulated/floor/plating,/area/submap/BorgLab)
-"KX" = (/obj/effect/floor_decal/techfloor/orange{dir = 1},/obj/random/single,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"Lr" = (/obj/structure/window/reinforced{dir = 8},/obj/structure/window/reinforced{dir = 1},/obj/structure/grille/broken,/obj/item/weapon/material/shard{pixel_x = -3; pixel_y = -6},/obj/item/weapon/material/shard{pixel_y = 10},/obj/machinery/door/blast/regular{dir = 8; id = "borg"; layer = 3.3; name = "Containment Door"},/turf/simulated/floor/plating,/area/submap/BorgLab)
"Lz" = (/obj/structure/table/standard,/obj/effect/floor_decal/rust,/obj/effect/floor_decal/rust,/obj/random/trash,/obj/random/maintenance/research,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"LB" = (/obj/item/stack/material/phoron{amount = 10},/obj/random/toolbox,/obj/random/toolbox,/obj/item/weapon/storage/box/lights/mixed,/obj/random/maintenance/research,/obj/random/maintenance/research,/obj/random/maintenance/research,/obj/random/maintenance/research,/obj/item/stack/material/phoron{amount = 10},/obj/structure/table/rack,/turf/simulated/floor/plating,/area/submap/BorgLab)
"LC" = (/obj/effect/gibspawner/human,/mob/living/simple_mob/mechanical/mecha/odysseus/murdysseus{faction = "corrupt"},/turf/simulated/floor/reinforced,/area/submap/BorgLab)
-"LL" = (/obj/effect/floor_decal/rust,/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/obj/random/single,/turf/simulated/floor/plating,/area/submap/BorgLab)
"MT" = (/obj/machinery/space_heater,/obj/effect/floor_decal/rust,/obj/machinery/light/small/emergency/flicker{dir = 4},/turf/simulated/floor/tiled,/area/submap/BorgLab)
"Nb" = (/obj/effect/floor_decal/industrial/warning,/obj/effect/decal/cleanable/generic,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"Nj" = (/obj/effect/floor_decal/rust,/turf/simulated/floor/plating,/area/submap/BorgLab)
@@ -144,8 +148,6 @@
"OH" = (/obj/effect/wingrille_spawn/reinforced,/obj/machinery/door/blast/regular/open{dir = 4},/turf/simulated/floor/plating,/area/submap/BorgLab)
"OW" = (/obj/structure/table/standard,/obj/item/device/flashlight/lamp,/obj/effect/floor_decal/techfloor/orange{dir = 1},/obj/item/weapon/broken_gun/laserrifle,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"Pf" = (/obj/effect/floor_decal/industrial/warning{dir = 1},/obj/effect/decal/cleanable/generic,/turf/simulated/floor/tiled,/area/submap/BorgLab)
-"Pk" = (/obj/effect/floor_decal/industrial/warning,/obj/effect/floor_decal/rust,/obj/random/single,/turf/simulated/floor/plating,/area/submap/BorgLab)
-"PW" = (/obj/effect/floor_decal/industrial/warning,/mob/living/simple_mob/humanoid/merc/ranged{health = 15; maxHealth = 15},/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"Qe" = (/obj/effect/map_effect/interval/sound_emitter/energy_gunfight,/turf/simulated/floor/plating,/area/submap/BorgLab)
"Qg" = (/turf/simulated/mineral/ignore_mapgen,/area/template_noop)
"Qn" = (/obj/structure/window/reinforced/tinted/frosted{dir = 4},/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/tiled,/area/submap/BorgLab)
@@ -162,7 +164,6 @@
"SZ" = (/obj/effect/floor_decal/techfloor/orange,/obj/structure/loot_pile/surface/bones,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"Tj" = (/obj/structure/table/standard,/obj/machinery/chemical_dispenser/full,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"Tp" = (/obj/effect/floor_decal/industrial/warning{dir = 1},/obj/effect/floor_decal/rust,/obj/effect/decal/cleanable/generic,/turf/simulated/floor/plating,/area/submap/BorgLab)
-"Tt" = (/mob/living/simple_mob/mechanical/combat_drone/lesser{faction = "corrupt"},/obj/effect/floor_decal/rust,/obj/effect/floor_decal/rust/mono_rusted3,/obj/effect/decal/cleanable/generic,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"Tv" = (/obj/effect/floor_decal/sign/a,/turf/simulated/wall/r_wall,/area/submap/BorgLab)
"TD" = (/obj/effect/floor_decal/techfloor/orange{dir = 1},/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"TN" = (/obj/structure/closet/l3closet/virology,/obj/effect/floor_decal/rust,/turf/simulated/floor/plating,/area/submap/BorgLab)
@@ -184,7 +185,6 @@
"WK" = (/obj/effect/floor_decal/rust,/obj/effect/floor_decal/rust,/obj/item/weapon/broken_gun/laser_retro,/mob/living/simple_mob/mechanical/viscerator/mercenary,/mob/living/simple_mob/mechanical/viscerator/mercenary,/turf/simulated/floor/plating,/area/submap/BorgLab)
"WQ" = (/turf/simulated/wall/r_wall,/area/submap/BorgLab)
"WR" = (/obj/effect/floor_decal/rust,/obj/effect/floor_decal/industrial/warning/cee{dir = 4},/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/tiled,/area/submap/BorgLab)
-"XD" = (/obj/effect/floor_decal/industrial/warning{dir = 1},/obj/random/single,/turf/simulated/floor/reinforced,/area/submap/BorgLab)
"XG" = (/obj/effect/floor_decal/rust,/obj/effect/floor_decal/rust/mono_rusted3,/obj/effect/gibspawner/human,/obj/effect/decal/cleanable/generic,/turf/simulated/floor/tiled,/area/submap/BorgLab)
"Yk" = (/obj/effect/decal/cleanable/dirt,/obj/effect/decal/cleanable/dirt,/turf/simulated/floor/plating,/area/submap/BorgLab)
"Yy" = (/obj/structure/table/steel,/obj/item/weapon/coin/phoron,/obj/item/weapon/storage/toolbox/syndicate/powertools,/obj/effect/floor_decal/rust,/obj/effect/floor_decal/rust,/obj/random/maintenance/research,/obj/random/maintenance/research,/turf/simulated/floor/plating,/area/submap/BorgLab)
@@ -206,17 +206,17 @@ DFDFsrQgWQWQWQWQWQWQQgQgQgQgQgDFQgQgQgDFQgQgQgiYbLbLbLRPDqsrDFDF
DFDFsrQgWQpYtrYyLBWQQgQgQgQgQgQgQgQgQgQgQgQgQgRGRGRGDqDqDqDFDFDF
DFsrQgQgWQVHTUOqCzWQWQWQWQWQWQWQWQWQWQWQWQWQWQWQWQRGRGDqRPDFDFDF
DFDFQgWQWQWQWQGAWQWQWQWQWQWQWQWQWQWQWQWQWQWQWQWQWQWQRGRGDqDFDFDF
-DFDFQgWQmiUjQWQnDvWQKXxzOWWQuXTDNjWQmwTDbYWQpeWKJrWQWQRGRGDFDFDF
+DFDFQgWQmiUjQWQnDvWQaaxzOWWQuXTDNjWQmwTDbYWQpeWKJrWQWQRGRGDFDFDF
DFQgQgWQrPZayISycCWQjfLCnkWQTWGzuQWQTUyBtxWQWhxOWqWQWQWQRGQgDFDF
-srQgQgWQtagfbjicUzWQVcJpPkWQUVVcUMWQVcODVcWQyzububWQsKWQWQQgDFDF
+srQgQgWQtagfbjicUzWQVcJpabWQUVVcUMWQVcODVcWQyzububWQsKWQWQQgDFDF
DFQgQgWQNsZOCAgNWQWQbIugOHWQYDwtyqWQYDmBYDWQJomBYDlzWQWQWQWQWQDF
srQgWQWQZtmfNCWQWQeVRLejPfghyRrarOiiAsAsifacGCVriSNtWQnylJWQZcsr
-QgQgWQTjlUCANqOzhWzkNjXGnWLzFvgSJhTttyCSCXththBlYkNvkIYZWRmsQesr
-QgQgWQDjkjktdTUyZtJZlZnbLLnVFtJmYkPWddoaNbQsFjqWVhSGWQTNDsWQgcDF
+QgQgWQTjlUCANqOzhWzkNjXGnWLzFvaeJhaftyCSCXththBlYkNvkIYZWRmsQesr
+QgQgWQDjkjktdTUyZtJZagnbYZahFtJmYkaiddoaNbQsFjqWVhSGWQTNDsWQgcDF
QgWQxkCfYkfhGyMTWQWQYDneYDcALrneheadUWdKOHmaKHZqtXTvWQWQWQWQWQDF
-QgWQjzRtFuZyDWxUqaWQJdXDVUWQJdRLopWQgaTpopWQNBopJdWQqWWQWQQgDFDF
+QgWQjzRtFuZyDWxUqaWQJdajVUWQJdRLopWQgaTpopWQNBopJdWQqWWQWQQgDFDF
QgWQxkxubNdebEZnwqWQtxIctxWQGSBqtxWQbzAItxWQNjxhtxWQWQWQQgDFDFDF
-QgQgWQWQWQWQWQWQWQWQSuNjjRWQSZNjcZWQHANjmEWQQzSZHAWQWQRGQgDFDFDF
+QgQgWQWQWQWQWQWQWQWQSuNjjRWQSZNjcZWQakNjmEWQQzSZalWQWQRGQgDFDFDF
DFQgQgRGRGRGRGRGRGWQWQWQWQWQWQWQWQWQWQWQWQWQWQWQWQWQRGRGDFsrDFDF
DFsrQgRGRGRGRGRGRGRGWQWQWQWQWQWQWQWQWQWQWQWQWQWQWQRGRGRGRPDFsrDF
DFDFDFRGRGRGiYbLRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGzebLRPDFDFDF
diff --git a/maps/tether/tether-01-surface1.dmm b/maps/tether/tether-01-surface1.dmm
index 540c229e9ab..951d8f01f22 100644
--- a/maps/tether/tether-01-surface1.dmm
+++ b/maps/tether/tether-01-surface1.dmm
@@ -2812,6 +2812,18 @@
dir = 10
},
/obj/effect/floor_decal/steeldecal/steel_decals4,
+/obj/effect/floor_decal/borderfloor{
+ dir = 4
+ },
+/obj/effect/floor_decal/corner/paleblue/border{
+ dir = 4
+ },
+/obj/effect/floor_decal/borderfloor/corner2{
+ dir = 5
+ },
+/obj/effect/floor_decal/corner/paleblue/bordercorner2{
+ dir = 5
+ },
/turf/simulated/floor/tiled,
/area/tether/surfacebase/lowernorthhall)
"aeE" = (
@@ -3324,9 +3336,6 @@
/obj/effect/floor_decal/corner/paleblue/border{
dir = 5
},
-/obj/effect/floor_decal/borderfloor/corner2{
- dir = 5
- },
/obj/effect/floor_decal/borderfloor/corner2{
dir = 4
},
@@ -3545,6 +3554,11 @@
/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{
dir = 4
},
+/obj/structure/cable{
+ d1 = 4;
+ d2 = 8;
+ icon_state = "4-8"
+ },
/turf/simulated/floor/tiled,
/area/tether/surfacebase/lowernorthhall)
"afN" = (
@@ -3557,6 +3571,11 @@
/obj/machinery/door/firedoor/glass/hidden/steel{
dir = 8
},
+/obj/structure/cable{
+ d1 = 4;
+ d2 = 8;
+ icon_state = "4-8"
+ },
/turf/simulated/floor/tiled,
/area/tether/surfacebase/lowernorthhall)
"afO" = (
@@ -17217,21 +17236,9 @@
/turf/simulated/floor/tiled,
/area/rnd/hallway)
"aCg" = (
-/obj/effect/floor_decal/borderfloor{
- dir = 4
- },
-/obj/effect/floor_decal/corner/paleblue/border{
- dir = 4
- },
/obj/structure/disposalpipe/segment{
dir = 4
},
-/obj/effect/floor_decal/borderfloor/corner2{
- dir = 6
- },
-/obj/effect/floor_decal/corner/paleblue/bordercorner2{
- dir = 6
- },
/obj/effect/floor_decal/steeldecal/steel_decals7{
dir = 9
},
@@ -31826,6 +31833,16 @@
/obj/effect/floor_decal/corner/red/border,
/turf/simulated/floor/tiled,
/area/tether/surfacebase/security/lowerhall)
+"ctE" = (
+/obj/structure/table/rack,
+/obj/item/weapon/tank/emergency,
+/obj/item/weapon/tank/emergency,
+/obj/item/weapon/tank/emergency,
+/obj/item/clothing/mask/gas,
+/obj/item/clothing/mask/gas,
+/obj/item/clothing/mask/gas,
+/turf/simulated/floor/tiled/steel_dirty,
+/area/maintenance/lowmedbaymaint)
"cwS" = (
/obj/effect/floor_decal/borderfloor{
dir = 1
@@ -32103,6 +32120,20 @@
},
/turf/simulated/floor/plating,
/area/tether/surfacebase/funny/hideyhole)
+"dvU" = (
+/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{
+ dir = 4
+ },
+/obj/machinery/atmospherics/pipe/simple/hidden/supply{
+ dir = 4
+ },
+/obj/structure/cable{
+ d1 = 1;
+ d2 = 8;
+ icon_state = "1-8"
+ },
+/turf/simulated/floor/tiled,
+/area/tether/surfacebase/lowernorthhall)
"dxY" = (
/obj/structure/table/rack,
/obj/item/clothing/mask/gas,
@@ -32210,6 +32241,12 @@
},
/turf/simulated/floor/tiled,
/area/tether/surfacebase/security/lowerhall)
+"dNE" = (
+/obj/machinery/light{
+ dir = 4
+ },
+/turf/simulated/floor/tiled/steel_dirty,
+/area/maintenance/lowmedbaymaint)
"dNP" = (
/obj/machinery/door/airlock/silver{
name = "Clown's Office";
@@ -32500,6 +32537,10 @@
},
/turf/simulated/floor/tiled/dark,
/area/tether/surfacebase/security/weaponsrange)
+"eJc" = (
+/obj/item/weapon/storage/toolbox/brass,
+/turf/simulated/floor/plating,
+/area/maintenance/lowmedbaymaint)
"eJQ" = (
/obj/machinery/door/firedoor/glass,
/obj/machinery/door/blast/regular{
@@ -32713,6 +32754,7 @@
/obj/item/weapon/reagent_containers/food/snacks/pie,
/obj/item/weapon/pen/crayon/marker/rainbow,
/obj/item/weapon/pen/crayon/rainbow,
+/obj/item/clothing/mask/emotions,
/obj/structure/closet/secure_closet{
desc = "Where the Clown keeps their hooliganisms.";
name = "funny locker";
@@ -34021,6 +34063,12 @@
},
/turf/simulated/floor/tiled,
/area/rnd/hallway)
+"jkI" = (
+/obj/structure/table/rack/shelf,
+/obj/random/maintenance/cargo,
+/obj/random/maintenance/cargo,
+/turf/simulated/floor/tiled/steel_dirty,
+/area/maintenance/lowmedbaymaint)
"jnj" = (
/obj/effect/floor_decal/borderfloor,
/obj/effect/floor_decal/corner/lightgrey/border,
@@ -34983,6 +35031,14 @@
"lEA" = (
/turf/simulated/wall,
/area/maintenance/engineering/atmos/airlock/gas)
+"lEB" = (
+/obj/structure/cable{
+ d1 = 2;
+ d2 = 4;
+ icon_state = "2-4"
+ },
+/turf/simulated/floor/tiled/steel_dirty,
+/area/maintenance/lowmedbaymaint)
"lIj" = (
/obj/effect/floor_decal/industrial/outline/yellow,
/turf/simulated/floor/tiled/dark,
@@ -35399,6 +35455,12 @@
/obj/effect/floor_decal/steeldecal/steel_decals7{
dir = 10
},
+/obj/effect/floor_decal/borderfloor/corner2{
+ dir = 6
+ },
+/obj/effect/floor_decal/corner/paleblue/bordercorner2{
+ dir = 6
+ },
/turf/simulated/floor/tiled,
/area/tether/surfacebase/lowernorthhall)
"mGP" = (
@@ -36680,6 +36742,24 @@
},
/turf/simulated/floor/tiled/dark,
/area/tether/surfacebase/security/lowerhall)
+"qtC" = (
+/obj/effect/floor_decal/borderfloor{
+ dir = 1
+ },
+/obj/effect/floor_decal/corner/lightgrey/border{
+ dir = 1
+ },
+/obj/effect/floor_decal/steeldecal/steel_decals7,
+/obj/effect/floor_decal/steeldecal/steel_decals7{
+ dir = 4
+ },
+/obj/structure/cable{
+ d1 = 1;
+ d2 = 2;
+ icon_state = "1-2"
+ },
+/turf/simulated/floor/tiled,
+/area/tether/surfacebase/lowernorthhall)
"qtU" = (
/obj/machinery/atmospherics/pipe/simple/hidden/cyan{
dir = 5
@@ -36729,6 +36809,16 @@
},
/turf/simulated/floor/plating,
/area/tether/surfacebase/funny/clownoffice)
+"qJe" = (
+/obj/structure/table/rack/shelf,
+/obj/random/maintenance/cargo,
+/obj/random/maintenance/cargo,
+/obj/random/maintenance/cargo,
+/obj/machinery/light{
+ dir = 8
+ },
+/turf/simulated/floor/tiled/steel_dirty,
+/area/maintenance/lowmedbaymaint)
"qJl" = (
/obj/machinery/door/airlock/maintenance/common,
/obj/machinery/door/firedoor/glass,
@@ -37019,6 +37109,13 @@
/obj/item/weapon/bedsheet/mimedouble,
/turf/simulated/floor/carpet/bcarpet,
/area/tether/surfacebase/funny/mimeoffice)
+"rtV" = (
+/obj/random/maintenance/medical,
+/obj/structure/table/rack,
+/obj/random/maintenance/cargo,
+/obj/effect/floor_decal/rust,
+/turf/simulated/floor/tiled/steel_dirty,
+/area/maintenance/lowmedbaymaint)
"ruj" = (
/obj/machinery/door/airlock/silver{
name = "Mime's Office";
@@ -37363,6 +37460,10 @@
},
/turf/simulated/floor/lino,
/area/crew_quarters/visitor_dining)
+"syt" = (
+/obj/effect/floor_decal/rust,
+/turf/simulated/floor/tiled/steel_dirty,
+/area/maintenance/lowmedbaymaint)
"szT" = (
/obj/effect/floor_decal/borderfloor/corner{
dir = 1
@@ -37421,6 +37522,13 @@
},
/turf/simulated/floor/tiled,
/area/tether/surfacebase/surface_one_hall)
+"sGh" = (
+/obj/structure/table/rack/shelf,
+/obj/random/maintenance/medical,
+/obj/random/maintenance/medical,
+/obj/random/maintenance/cargo,
+/turf/simulated/floor/tiled/steel_dirty,
+/area/maintenance/lowmedbaymaint)
"sHK" = (
/obj/structure/cable/green{
d1 = 4;
@@ -37531,6 +37639,10 @@
},
/turf/simulated/floor/tiled/dark,
/area/tether/surfacebase/security/brig/storage)
+"sYi" = (
+/obj/effect/decal/remains/human,
+/turf/simulated/floor/plating,
+/area/maintenance/lowmedbaymaint)
"tak" = (
/obj/structure/table/steel,
/obj/structure/cable/green{
@@ -37547,6 +37659,10 @@
/obj/machinery/atmospherics/unary/vent_pump/on,
/turf/simulated/floor/tiled,
/area/tether/surfacebase/security/brig)
+"tcK" = (
+/obj/item/clothing/suit/storage/hooded/wintercoat/ratvar,
+/turf/simulated/floor/plating,
+/area/maintenance/lowmedbaymaint)
"tdg" = (
/turf/simulated/mineral,
/area/maintenance/lowmedbaymaint)
@@ -37648,6 +37764,20 @@
},
/turf/simulated/floor/tiled,
/area/tether/surfacebase/security/lowerhall)
+"tAo" = (
+/obj/machinery/atmospherics/pipe/simple/hidden/scrubbers{
+ dir = 4
+ },
+/obj/machinery/atmospherics/pipe/simple/hidden/supply{
+ dir = 4
+ },
+/obj/structure/cable{
+ d1 = 4;
+ d2 = 8;
+ icon_state = "4-8"
+ },
+/turf/simulated/floor/tiled,
+/area/tether/surfacebase/lowernorthhall)
"tAT" = (
/obj/effect/floor_decal/borderfloor{
dir = 9
@@ -37909,6 +38039,16 @@
},
/turf/simulated/floor,
/area/tether/surfacebase/security/gasstorage)
+"ucq" = (
+/obj/machinery/door/airlock/maintenance/common,
+/obj/machinery/door/firedoor/glass,
+/obj/structure/cable{
+ d1 = 1;
+ d2 = 2;
+ icon_state = "1-2"
+ },
+/turf/simulated/floor/tiled/steel_dirty,
+/area/tether/surfacebase/lowernorthhall)
"ucv" = (
/obj/machinery/door/firedoor/glass,
/obj/machinery/door/airlock/glass_security{
@@ -37926,6 +38066,10 @@
},
/turf/simulated/floor/tiled/dark,
/area/tether/surfacebase/security/lowerhall)
+"udU" = (
+/obj/effect/floor_decal/rust,
+/turf/simulated/floor/plating,
+/area/maintenance/lowmedbaymaint)
"uge" = (
/obj/machinery/atmospherics/unary/vent_scrubber/on{
dir = 1
@@ -38460,6 +38604,18 @@
},
/turf/simulated/wall,
/area/maintenance/substation/surfaceservicesubstation)
+"wjd" = (
+/obj/effect/floor_decal/rust,
+/obj/machinery/power/apc{
+ dir = 4;
+ name = "east bump";
+ pixel_x = 28
+ },
+/obj/structure/cable{
+ icon_state = "0-8"
+ },
+/turf/simulated/floor/tiled/steel_dirty,
+/area/maintenance/lowmedbaymaint)
"wjo" = (
/obj/effect/map_helper/airlock/door/ext_door,
/obj/machinery/door/blast/regular{
@@ -38767,6 +38923,9 @@
},
/turf/simulated/floor/tiled/freezer,
/area/tether/surfacebase/security/brig/bathroom)
+"xfm" = (
+/turf/simulated/floor/tiled/steel_dirty,
+/area/maintenance/lowmedbaymaint)
"xgQ" = (
/obj/effect/floor_decal/borderfloor{
dir = 1
@@ -50425,9 +50584,9 @@ aAD
aAD
aAD
aAD
-aAI
-aAI
-aAI
+sGh
+qJe
+jkI
aef
aeZ
afN
@@ -50564,15 +50723,15 @@ aaf
aaf
aaf
aAD
-aAI
-aAI
-aAI
-aAI
-aAI
-aAI
+udU
+sYi
+aAD
+xfm
+syt
+xfm
aef
aeS
-afO
+tAo
aBB
aCr
aDa
@@ -50706,15 +50865,15 @@ aaf
aaf
aaf
aAD
+tcK
aAI
-aAI
-aAI
-aAI
-aAI
-aAI
-aef
-aeS
-afO
+aAD
+rtV
+ctE
+lEB
+ucq
+qtC
+dvU
aBC
aCr
aDb
@@ -50848,12 +51007,12 @@ aag
aaf
aaf
aAD
-aAI
-aAI
-aAI
-aAI
-aAI
-aAI
+eJc
+udU
+aAD
+syt
+dNE
+wjd
aef
afi
afQ
@@ -52706,7 +52865,7 @@ aeD
aCg
mGH
aDH
-mGH
+adx
aEX
aFv
aGw
diff --git a/maps/tether/tether_things.dm b/maps/tether/tether_things.dm
index 037ea6cb3bf..f187141ac1c 100644
--- a/maps/tether/tether_things.dm
+++ b/maps/tether/tether_things.dm
@@ -473,6 +473,5 @@ var/global/list/latejoin_tram = list()
prob_fall = 50
mobs_to_pick_from = list(
/mob/living/simple_mob/animal/passive/gaslamp = 300,
- /mob/living/simple_mob/animal/space/goose/virgo3b = 100,
- /mob/living/simple_mob/vore/alienanimals/teppi = 5
+ /mob/living/simple_mob/vore/alienanimals/teppi = 4
)
diff --git a/maps/~map_system/maps.dm b/maps/~map_system/maps.dm
index 7eb677df5ee..48a8963e367 100644
--- a/maps/~map_system/maps.dm
+++ b/maps/~map_system/maps.dm
@@ -216,14 +216,9 @@ var/list/all_maps = list()
// Get a list of 'nearby' or 'connected' zlevels.
// You should at least return a list with the given z if nothing else.
/datum/map/proc/get_map_levels(var/srcz, var/long_range = FALSE, var/om_range = -1)
- //Overmap behavior
- if(use_overmap)
- //Get what sector we're in
- var/obj/effect/overmap/visitable/O = get_overmap_sector(srcz)
- if(!istype(O))
- //Anything in multiz then (or just themselves)
- return GetConnectedZlevels(srcz)
-
+ //Get what sector we're in
+ var/obj/effect/overmap/visitable/O = get_overmap_sector(srcz)
+ if(istype(O))
//Just the sector we're in
if(om_range == -1)
return O.map_z.Copy()
@@ -236,7 +231,7 @@ var/list/all_maps = list()
connections += V.map_z // Adding list to list adds contents
return connections
- //Traditional behavior
+ //Traditional behavior, if not in an overmap sector
else
//If long range, and they're at least in contact levels, return contact levels.
if (long_range && (srcz in contact_levels))
diff --git a/sound/weapons/dodgeball.ogg b/sound/weapons/dodgeball.ogg
new file mode 100644
index 00000000000..3e76dcdfc8f
Binary files /dev/null and b/sound/weapons/dodgeball.ogg differ
diff --git a/tgui/packages/tgui/interfaces/VorePanel.js b/tgui/packages/tgui/interfaces/VorePanel.js
index a59eb27941c..e3d5c3421f7 100644
--- a/tgui/packages/tgui/interfaces/VorePanel.js
+++ b/tgui/packages/tgui/interfaces/VorePanel.js
@@ -151,42 +151,32 @@ const VoreSelectedBelly = (props, context) => {
const { act } = useBackend(context);
const { belly } = props;
- const {
- belly_name,
- is_wet,
- wet_loop,
- mode,
- item_mode,
- verb,
- desc,
- fancy,
- sound,
- release_sound,
- can_taste,
- nutrition_percent,
- digest_brute,
- digest_burn,
- digest_oxy,
- bulge_size,
- display_absorbed_examine,
- shrink_grow_size,
- emote_time,
- emote_active,
- addons,
- contaminates,
- contaminate_flavor,
- contaminate_color,
- egg_type,
- escapable,
- interacts,
- contents,
- belly_fullscreen,
- possible_fullscreens,
- disable_hud,
- } = belly;
+ const { contents } = belly;
const [tabIndex, setTabIndex] = useLocalState(context, 'tabIndex', 0);
+ const tabs = [];
+
+ tabs[0] = (
+
+ );
+
+ tabs[1] = (
+
+ );
+
+ tabs[2] = (
+
+ );
+
+ tabs[3] = (
+
+ );
+
+ tabs[4] = (
+
+ );
+
return (
@@ -206,342 +196,301 @@ const VoreSelectedBelly = (props, context) => {
Belly Styles
- {tabIndex === 0 && (
+ {tabs[tabIndex] || "Error"}
+
+ );
+};
+
+const VoreSelectedBellyControls = (props, context) => {
+ const { act } = useBackend(context);
+
+ const { belly } = props;
+ const {
+ belly_name,
+ mode,
+ item_mode,
+ verb,
+ desc,
+ addons,
+ } = belly;
+
+ return (
+
+
+ act("move_belly", { dir: -1 })} />
+ act("move_belly", { dir: 1 })} />
+
+ }>
+ act("set_attribute", { attribute: "b_name" })}
+ content={belly_name} />
+
+
+ act("set_attribute", { attribute: "b_mode" })}
+ content={mode} />
+
+ act("set_attribute", { attribute: "b_desc" })}
+ icon="pen" />
+ }>
+ {desc}
+
+
+ {addons.length && addons.join(", ") || "None"}
+ act("set_attribute", { attribute: "b_addons" })}
+ ml={1}
+ icon="plus" />
+
+
+ act("set_attribute", { attribute: "b_item_mode" })}
+ content={item_mode} />
+
+
+ act("set_attribute", { attribute: "b_verb" })}
+ content={verb} />
+
+
+ act("set_attribute", { attribute: "b_msgs", msgtype: "dmp" })}
+ content="Digest Message (to prey)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "dmo" })}
+ content="Digest Message (to you)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "smo" })}
+ content="Struggle Message (outside)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "smi" })}
+ content="Struggle Message (inside)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "em" })}
+ content="Examine Message (when full)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "ema" })}
+ content="Examine Message (with absorbed victims)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "im_hold" })}
+ content="Idle Messages (Hold)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "im_digest" })}
+ content="Idle Messages (Digest)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "im_absorb" })}
+ content="Idle Messages (Absorb)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "im_unabsorb" })}
+ content="Idle Messages (Unabsorb)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "im_drain" })}
+ content="Idle Messages (Drain)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "im_heal" })}
+ content="Idle Messages (Heal)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "im_steal" })}
+ content="Idle Messages (Size Steal)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "im_shrink" })}
+ content="Idle Messages (Shrink)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "im_grow" })}
+ content="Idle Messages (Grow)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "im_egg" })}
+ content="Idle Messages (Encase In Egg)" />
+ act("set_attribute", { attribute: "b_msgs", msgtype: "reset" })}
+ content="Reset Messages" />
+
+
+ );
+};
+
+const VoreSelectedBellyOptions = (props, context) => {
+ const { act } = useBackend(context);
+
+ const { belly } = props;
+ const {
+ is_wet,
+ wet_loop,
+ fancy,
+ sound,
+ release_sound,
+ can_taste,
+ nutrition_percent,
+ digest_brute,
+ digest_burn,
+ digest_oxy,
+ bulge_size,
+ display_absorbed_examine,
+ shrink_grow_size,
+ emote_time,
+ emote_active,
+ contaminates,
+ contaminate_flavor,
+ contaminate_color,
+ egg_type,
+ } = belly;
+
+ return (
+
+
-
+ act("set_attribute", { attribute: "b_brute_dmg" })}
+ content={digest_brute} />
+
+
+ act("set_attribute", { attribute: "b_burn_dmg" })}
+ content={digest_burn} />
+
+
+ act("set_attribute", { attribute: "b_oxy_dmg" })}
+ content={digest_oxy} />
+
+
+ act("set_attribute", { attribute: "b_nutritionpercent" })}
+ content={nutrition_percent + "%"} />
+
+
+ act("set_attribute", { attribute: "b_contaminates" })}
+ icon={contaminates ? "toggle-on" : "toggle-off"}
+ selected={contaminates}
+ content={contaminates ? "Yes" : "No"} />
+
+ {contaminates && (
- act("move_belly", { dir: -1 })} />
- act("move_belly", { dir: 1 })} />
+
+ act("set_attribute", { attribute: "b_contamination_flavor" })}
+ icon="pen"
+ content={contaminate_flavor} />
+
+
+ act("set_attribute", { attribute: "b_contamination_color" })}
+ icon="pen"
+ content={capitalize(contaminate_color)} />
+
- }>
+ ) || null}
+
act("set_attribute", { attribute: "b_name" })}
- content={belly_name} />
+ onClick={() => act("set_attribute", { attribute: "b_tastes" })}
+ icon={can_taste ? "toggle-on" : "toggle-off"}
+ selected={can_taste}
+ content={can_taste ? "Yes" : "No"} />
-
+
act("set_attribute", { attribute: "b_mode" })}
- content={mode} />
-
- act("set_attribute", { attribute: "b_desc" })}
- icon="pen" />
- }>
- {desc}
-
-
- {addons.length && addons.join(", ") || "None"}
- act("set_attribute", { attribute: "b_addons" })}
- ml={1}
- icon="plus" />
-
-
- act("set_attribute", { attribute: "b_item_mode" })}
- content={item_mode} />
-
-
- act("set_attribute", { attribute: "b_verb" })}
- content={verb} />
-
-
- act("set_attribute", { attribute: "b_msgs", msgtype: "dmp" })}
- content="Digest Message (to prey)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "dmo" })}
- content="Digest Message (to you)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "smo" })}
- content="Struggle Message (outside)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "smi" })}
- content="Struggle Message (inside)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "em" })}
- content="Examine Message (when full)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "ema" })}
- content="Examine Message (with absorbed victims)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "im_hold" })}
- content="Idle Messages (Hold)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "im_digest" })}
- content="Idle Messages (Digest)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "im_absorb" })}
- content="Idle Messages (Absorb)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "im_unabsorb" })}
- content="Idle Messages (Unabsorb)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "im_drain" })}
- content="Idle Messages (Drain)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "im_heal" })}
- content="Idle Messages (Heal)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "im_steal" })}
- content="Idle Messages (Size Steal)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "im_shrink" })}
- content="Idle Messages (Shrink)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "im_grow" })}
- content="Idle Messages (Grow)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "im_egg" })}
- content="Idle Messages (Encase In Egg)" />
- act("set_attribute", { attribute: "b_msgs", msgtype: "reset" })}
- content="Reset Messages" />
+ onClick={() => act("set_attribute", { attribute: "b_egg_type" })}
+ icon="pen"
+ content={capitalize(egg_type)} />
- ) || tabIndex === 1 && (
-
-
-
-
- act("set_attribute", { attribute: "b_brute_dmg" })}
- content={digest_brute} />
-
-
- act("set_attribute", { attribute: "b_burn_dmg" })}
- content={digest_burn} />
-
-
- act("set_attribute", { attribute: "b_oxy_dmg" })}
- content={digest_oxy} />
-
-
- act("set_attribute", { attribute: "b_nutritionpercent" })}
- content={nutrition_percent + "%"} />
-
-
- act("set_attribute", { attribute: "b_contaminates" })}
- icon={contaminates ? "toggle-on" : "toggle-off"}
- selected={contaminates}
- content={contaminates ? "Yes" : "No"} />
-
- {contaminates && (
-
-
- act("set_attribute", { attribute: "b_contamination_flavor" })}
- icon="pen"
- content={contaminate_flavor} />
-
-
- act("set_attribute", { attribute: "b_contamination_color" })}
- icon="pen"
- content={capitalize(contaminate_color)} />
-
-
- ) || null}
-
- act("set_attribute", { attribute: "b_tastes" })}
- icon={can_taste ? "toggle-on" : "toggle-off"}
- selected={can_taste}
- content={can_taste ? "Yes" : "No"} />
-
-
- act("set_attribute", { attribute: "b_egg_type" })}
- icon="pen"
- content={capitalize(egg_type)} />
-
-
-
-
-
-
- act("set_attribute", { attribute: "b_wetness" })}
- icon={is_wet ? "toggle-on" : "toggle-off"}
- selected={is_wet}
- content={is_wet ? "Yes" : "No"} />
-
-
- act("set_attribute", { attribute: "b_wetloop" })}
- icon={wet_loop ? "toggle-on" : "toggle-off"}
- selected={wet_loop}
- content={wet_loop ? "Yes" : "No"} />
-
-
- act("set_attribute", { attribute: "b_fancy_sound" })}
- icon={fancy ? "toggle-on" : "toggle-off"}
- selected={fancy}
- content={fancy ? "Yes" : "No"} />
-
-
- act("set_attribute", { attribute: "b_sound" })}
- content={sound} />
- act("set_attribute", { attribute: "b_soundtest" })}
- icon="volume-up" />
-
-
- act("set_attribute", { attribute: "b_release" })}
- content={release_sound} />
- act("set_attribute", { attribute: "b_releasesoundtest" })}
- icon="volume-up" />
-
-
- act("set_attribute", { attribute: "b_bulge_size" })}
- content={bulge_size * 100 + "%"} />
-
-
- act("set_attribute", { attribute: "b_display_absorbed_examine" })}
- icon={display_absorbed_examine ? "toggle-on" : "toggle-off"}
- selected={display_absorbed_examine}
- content={display_absorbed_examine ? "True" : "False"} />
-
-
- act("set_attribute", { attribute: "b_grow_shrink" })}
- content={shrink_grow_size * 100 + "%"} />
-
-
- act("set_attribute", { attribute: "b_emoteactive" })}
- icon={emote_active ? "toggle-on" : "toggle-off"}
- selected={emote_active}
- content={emote_active ? "Active" : "Inactive"} />
-
-
- act("set_attribute", { attribute: "b_emotetime" })}
- content={emote_time + " seconds"} />
-
-
-
-
- act("set_attribute", { attribute: "b_del" })} />
-
-
- ) || tabIndex === 2 && (
-
- ) || tabIndex === 3 && (
- act("set_attribute", { attribute: "b_escapable" })}
- icon={escapable ? "toggle-on" : "toggle-off"}
- selected={escapable}
- content={escapable ? "Interactions On" : "Interactions Off"} />
- }>
- {escapable ? (
-
-
- act("set_attribute", { attribute: "b_escapechance" })} />
-
-
- act("set_attribute", { attribute: "b_escapetime" })} />
-
-
-
- act("set_attribute", { attribute: "b_transferchance" })} />
-
-
- act("set_attribute", { attribute: "b_transferlocation" })} />
-
-
-
- act("set_attribute", { attribute: "b_absorbchance" })} />
-
-
- act("set_attribute", { attribute: "b_digestchance" })} />
-
-
- ) : "These options only display while interactions are turned on."}
-
- ) || tabIndex === 4 && (
-
-
-
-
- act("set_attribute", { attribute: "b_disable_hud" })}
- icon={disable_hud ? "toggle-on" : "toggle-off"}
- selected={disable_hud}
- content={disable_hud ? "Yes" : "No"} />
-
-
-
-
+
+
+
act("set_attribute", { attribute: "b_fullscreen", val: null })}>
- Disabled
-
- {Object.keys(possible_fullscreens).map(key => (
- act("set_attribute", { attribute: "b_fullscreen", val: key })}>
-
-
- ))}
-
-
- ) || "Error"}
-
+ onClick={() => act("set_attribute", { attribute: "b_wetness" })}
+ icon={is_wet ? "toggle-on" : "toggle-off"}
+ selected={is_wet}
+ content={is_wet ? "Yes" : "No"} />
+
+
+ act("set_attribute", { attribute: "b_wetloop" })}
+ icon={wet_loop ? "toggle-on" : "toggle-off"}
+ selected={wet_loop}
+ content={wet_loop ? "Yes" : "No"} />
+
+
+ act("set_attribute", { attribute: "b_fancy_sound" })}
+ icon={fancy ? "toggle-on" : "toggle-off"}
+ selected={fancy}
+ content={fancy ? "Yes" : "No"} />
+
+
+ act("set_attribute", { attribute: "b_sound" })}
+ content={sound} />
+ act("set_attribute", { attribute: "b_soundtest" })}
+ icon="volume-up" />
+
+
+ act("set_attribute", { attribute: "b_release" })}
+ content={release_sound} />
+ act("set_attribute", { attribute: "b_releasesoundtest" })}
+ icon="volume-up" />
+
+
+ act("set_attribute", { attribute: "b_bulge_size" })}
+ content={bulge_size * 100 + "%"} />
+
+
+ act("set_attribute", { attribute: "b_display_absorbed_examine" })}
+ icon={display_absorbed_examine ? "toggle-on" : "toggle-off"}
+ selected={display_absorbed_examine}
+ content={display_absorbed_examine ? "True" : "False"} />
+
+
+ act("set_attribute", { attribute: "b_grow_shrink" })}
+ content={shrink_grow_size * 100 + "%"} />
+
+
+ act("set_attribute", { attribute: "b_emoteactive" })}
+ icon={emote_active ? "toggle-on" : "toggle-off"}
+ selected={emote_active}
+ content={emote_active ? "Active" : "Inactive"} />
+
+
+ act("set_attribute", { attribute: "b_emotetime" })}
+ content={emote_time + " seconds"} />
+
+
+
+
+ act("set_attribute", { attribute: "b_del" })} />
+
+
);
};
@@ -619,6 +568,115 @@ const VoreContentsPanel = (props, context) => {
);
};
+const VoreSelectedBellyInteractions = (props, context) => {
+ const { act } = useBackend(context);
+
+ const { belly } = props;
+ const {
+ escapable,
+ interacts,
+ } = belly;
+
+ return (
+ act("set_attribute", { attribute: "b_escapable" })}
+ icon={escapable ? "toggle-on" : "toggle-off"}
+ selected={escapable}
+ content={escapable ? "Interactions On" : "Interactions Off"} />
+ }>
+ {escapable ? (
+
+
+ act("set_attribute", { attribute: "b_escapechance" })} />
+
+
+ act("set_attribute", { attribute: "b_escapetime" })} />
+
+
+
+ act("set_attribute", { attribute: "b_transferchance" })} />
+
+
+ act("set_attribute", { attribute: "b_transferlocation" })} />
+
+
+
+ act("set_attribute", { attribute: "b_absorbchance" })} />
+
+
+ act("set_attribute", { attribute: "b_digestchance" })} />
+
+
+ ) : "These options only display while interactions are turned on."}
+
+ );
+};
+
+const VoreSelectedBellyStyles = (props, context) => {
+ const { act } = useBackend(context);
+
+ const { belly } = props;
+ const {
+ belly_fullscreen,
+ possible_fullscreens,
+ disable_hud,
+ } = belly;
+
+ return (
+
+
+
+
+ act("set_attribute", { attribute: "b_disable_hud" })}
+ icon={disable_hud ? "toggle-on" : "toggle-off"}
+ selected={disable_hud}
+ content={disable_hud ? "Yes" : "No"} />
+
+
+
+
+ act("set_attribute", { attribute: "b_fullscreen", val: null })}>
+ Disabled
+
+ {Object.keys(possible_fullscreens).map(key => (
+ act("set_attribute", { attribute: "b_fullscreen", val: key })}>
+
+
+ ))}
+
+
+ );
+};
+
const VoreUserPreferences = (props, context) => {
const { act, data } = useBackend(context);
@@ -644,6 +702,216 @@ const VoreUserPreferences = (props, context) => {
show_pictures,
} = data;
+ const preferences = {
+ digestion: {
+ action: "toggle_digest",
+ test: digestable,
+ tooltip: {
+ main: "This button is for those who don't like being digested. It can make you undigestable.",
+ enable: "Click here to allow digestion.",
+ disable: "Click here to prevent digestion.",
+ },
+ content: {
+ enabled: "Digestion Allowed",
+ disabled: "No Digestion",
+ },
+ },
+ absorbable: {
+ action: "toggle_absorbable",
+ test: absorbable,
+ tooltip: {
+ main: "This button allows preds to know whether you prefer or don't prefer to be absorbed.",
+ enable: "Click here to allow being absorbed.",
+ disable: "Click here to disallow being absorbed.",
+ },
+ content: {
+ enabled: "Absorption Allowed",
+ disabled: "No Absorption",
+ },
+ },
+ devour: {
+ action: "toggle_devour",
+ test: devourable,
+ tooltip: {
+ main: "This button is to toggle your ability to be devoured by others.",
+ enable: "Click here to allow being devoured.",
+ disable: "Click here to prevent being devoured.",
+ },
+ content: {
+ enabled: "Devouring Allowed",
+ disabled: "No Devouring",
+ },
+ },
+ mobvore: {
+ action: "toggle_mobvore",
+ test: allowmobvore,
+ tooltip: {
+ main: "This button is for those who don't like being eaten by mobs.",
+ enable: "Click here to allow being eaten by mobs.",
+ disable: "Click here to prevent being eaten by mobs.",
+ },
+ content: {
+ enabled: "Mobs eating you allowed",
+ disabled: "No Mobs eating you",
+ },
+ },
+ feed: {
+ action: "toggle_feed",
+ test: feeding,
+ tooltip: {
+ main: "This button is to toggle your ability to be fed to or by others vorishly.",
+ enable: "Click here to allow being fed to/by other people.",
+ disable: "Click here to prevent being fed to/by other people.",
+ },
+ content: {
+ enabled: "Feeding Allowed",
+ disabled: "No Feeding",
+ },
+ },
+ healbelly: {
+ action: "toggle_healbelly",
+ test: permit_healbelly,
+ tooltip: {
+ main: "This button is for those who don't like healbelly used on them as a mechanic."
+ + " It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",
+ enable: "Click here to allow being heal-bellied.",
+ disable: "Click here to prevent being heal-bellied.",
+ },
+ content: {
+ enabled: "Heal-bellies Allowed",
+ disabled: "No Heal-bellies",
+ },
+ },
+ dropnom_prey: {
+ action: "toggle_dropnom_prey",
+ test: can_be_drop_prey,
+ tooltip: {
+ main: "This toggle is for spontaneous, environment related vore"
+ + " as prey, including drop-noms, teleporters, etc.",
+ enable: "Click here to allow being spontaneous prey.",
+ disable: "Click here to prevent being spontaneous prey.",
+ },
+ content: {
+ enabled: "Spontaneous Prey Enabled",
+ disabled: "Spontaneous Prey Disabled",
+ },
+ },
+ dropnom_pred: {
+ action: "toggle_dropnom_pred",
+ test: can_be_drop_pred,
+ tooltip: {
+ main: "This toggle is for spontaneous, environment related vore"
+ + " as a predator, including drop-noms, teleporters, etc.",
+ enable: "Click here to allow being spontaneous pred.",
+ disable: "Click here to prevent being spontaneous pred.",
+ },
+ content: {
+ enabled: "Spontaneous Pred Enabled",
+ disabled: "Spontaneous Pred Disabled",
+ },
+ },
+ noisy: {
+ action: "toggle_noisy",
+ test: noisy,
+ tooltip: {
+ main: "Toggle audible hunger noises.",
+ enable: "Click here to turn on hunger noises.",
+ disable: "Click here to turn off hunger noises.",
+ },
+ content: {
+ enabled: "Hunger Noises Enabled",
+ disabled: "Hunger Noises Disabled",
+ },
+ },
+ resize: {
+ action: "toggle_resize",
+ test: resizable,
+ tooltip: {
+ main: "This button is to toggle your ability to be resized by others.",
+ enable: "Click here to allow being resized.",
+ disable: "Click here to prevent being resized.",
+ },
+ content: {
+ enabled: "Resizing Allowed",
+ disabled: "No Resizing",
+ },
+ },
+ steppref: {
+ action: "toggle_steppref",
+ test: step_mechanics_active,
+ tooltip: {
+ main: "",
+ enable: "You will not participate in step mechanics."
+ + " Click to enable step mechanics.",
+ disable: "This setting controls whether or not you participate in size-based step mechanics."
+ + " Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics.",
+ },
+ content: {
+ enabled: "Step Mechanics Enabled",
+ disabled: "Step Mechanics Disabled",
+ },
+ },
+ vore_fx: {
+ action: "toggle_fx",
+ test: show_vore_fx,
+ tooltip: {
+ main: "",
+ enable: "Regardless of Predator Setting, you will not see their FX settings."
+ + " Click this to enable showing FX.",
+ disable: "This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays."
+ + " Click to disable all FX.",
+ },
+ content: {
+ enabled: "Show Vore FX",
+ disabled: "Do Not Show Vore FX",
+ },
+ },
+ remains: {
+ action: "toggle_leaveremains",
+ test: digest_leave_remains,
+ tooltip: {
+ main: "",
+ enable: "Regardless of Predator Setting, you will not leave remains behind."
+ + " Click this to allow leaving remains.",
+ disable: "Your Predator must have this setting enabled in their belly modes to allow remains to show up,"
+ + " if they do not, they will not leave your remains behind, even with this on. Click to disable remains.",
+ },
+ content: {
+ enabled: "Allow Leaving Remains",
+ disabled: "Do Not Allow Leaving Remains",
+ },
+ },
+ pickuppref: {
+ action: "toggle_pickuppref",
+ test: pickup_mechanics_active,
+ tooltip: {
+ main: "",
+ enable: "You will not participate in pick-up mechanics."
+ + " Click this to allow picking up/being picked up.",
+ disable: "Allows macros to pick you up into their hands, and you to pick up micros."
+ + " Click to disable pick-up mechanics.",
+ },
+ content: {
+ enabled: "Pick-up Mechanics Enabled",
+ disabled: "Pick-up Mechanics Disabled",
+ },
+ },
+ spontaneous_tf: {
+ action: "toggle_allow_spontaneous_tf",
+ test: allow_spontaneous_tf,
+ tooltip: {
+ main: "This toggle is for spontaneous or environment related transformation"
+ + " as a victim, such as via chemicals.",
+ enable: "Click here to allow being spontaneously transformed.",
+ disable: "Click here to disable being spontaneously transformed.",
+ },
+ content: {
+ enabled: "Spontaneous TF Enabled",
+ disabled: "Spontaneous TF Disabled",
+ },
+ },
+ };
+
return (
act("show_pictures")}>
@@ -652,189 +920,49 @@ const VoreUserPreferences = (props, context) => {
}>
- act("toggle_digest")}
- icon={digestable ? "toggle-on" : "toggle-off"}
- selected={digestable}
- fluid
- tooltip={"This button is for those who don't like being digested. It can make you undigestable."
- + (digestable ? " Click here to prevent digestion." : " Click here to allow digestion.")}
- content={digestable ? "Digestion Allowed" : "No Digestion"} />
+
- act("toggle_absorbable")}
- icon={absorbable ? "toggle-on" : "toggle-off"}
- selected={absorbable}
- fluid
- tooltip={"This button allows preds to know whether you prefer or don't prefer to be absorbed. "
- + (absorbable ? "Click here to disallow being absorbed." : "Click here to allow being absorbed.")}
- content={absorbable ? "Absorption Allowed" : "No Absorption"} />
+
- act("toggle_devour")}
- icon={devourable ? "toggle-on" : "toggle-off"}
- selected={devourable}
- fluid
- tooltip={"This button is to toggle your ability to be devoured by others. "
- + (devourable ? "Click here to prevent being devoured." : "Click here to allow being devoured.")}
- content={devourable ? "Devouring Allowed" : "No Devouring"} />
+
- act("toggle_mobvore")}
- icon={allowmobvore ? "toggle-on" : "toggle-off"}
- selected={allowmobvore}
- fluid
- tooltip={"This button is for those who don't like being eaten by mobs. "
- + (allowmobvore
- ? "Click here to prevent being eaten by mobs."
- : "Click here to allow being eaten by mobs.")}
- content={allowmobvore ? "Mobs eating you allowed" : "No Mobs eating you"} />
+
- act("toggle_feed")}
- icon={feeding ? "toggle-on" : "toggle-off"}
- selected={feeding}
- fluid
- tooltip={"This button is to toggle your ability to be fed to or by others vorishly. "
- + (feeding
- ? "Click here to prevent being fed to/by other people."
- : "Click here to allow being fed to/by other people.")}
- content={feeding ? "Feeding Allowed" : "No Feeding"} />
+
- act("toggle_healbelly")}
- icon={permit_healbelly ? "toggle-on" : "toggle-off"}
- selected={permit_healbelly}
- fluid
- tooltipPosition="top"
- tooltip={"This button is for those who don't like healbelly used on them as a mechanic."
- + " It does not affect anything, but is displayed under mechanical prefs for ease of quick checks. "
- + (permit_healbelly
- ? "Click here to prevent being heal-bellied."
- : "Click here to allow being heal-bellied.")}
- content={permit_healbelly ? "Heal-bellies Allowed" : "No Heal-bellies"} />
+
- act("toggle_dropnom_prey")}
- icon={can_be_drop_prey ? "toggle-on" : "toggle-off"}
- selected={can_be_drop_prey}
- fluid
- tooltip={"This toggle is for spontaneous, environment related vore"
- + " as prey, including drop-noms, teleporters, etc. "
- + (can_be_drop_prey
- ? "Click here to allow being spontaneous prey."
- : "Click here to disable being spontaneous prey.")}
- content={can_be_drop_prey ? "Spontaneous Prey Enabled" : "Spontaneous Prey Disabled"} />
+
- act("toggle_dropnom_pred")}
- icon={can_be_drop_pred ? "toggle-on" : "toggle-off"}
- selected={can_be_drop_pred}
- fluid
- tooltip={"This toggle is for spontaneous, environment related vore"
- + " as a predator, including drop-noms, teleporters, etc. "
- + (can_be_drop_pred
- ? "Click here to allow being spontaneous pred."
- : "Click here to disable being spontaneous pred.")}
- content={can_be_drop_pred ? "Spontaneous Pred Enabled" : "Spontaneous Pred Disabled"} />
+
- act("toggle_noisy")}
- icon={noisy ? "toggle-on" : "toggle-off"}
- selected={noisy}
- fluid
- tooltip={"Toggle audible hunger noises. "
- + (noisy
- ? "Click here to turn off hunger noises."
- : "Click here to turn on hunger noises.")}
- content={noisy ? "Hunger Noises Enabled" : "Hunger Noises Disabled"} />
+
- act("toggle_resize")}
- icon={resizable ? "toggle-on" : "toggle-off"}
- selected={resizable}
- fluid
- tooltip={"This button is to toggle your ability to be resized by others. "
- + (resizable ? "Click here to prevent being resized." : "Click here to allow being resized.")}
- content={resizable ? "Resizing Allowed" : "No Resizing"} />
+
- act("toggle_steppref")}
- icon={step_mechanics_active ? "toggle-on" : "toggle-off"}
- selected={step_mechanics_active}
- fluid
- tooltipPosition="top"
- tooltip={step_mechanics_active
- ? "This setting controls whether or not you participate in size-based step mechanics."
- + "Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."
- : ("You will not participate in step mechanics."
- + " Click to enable step mechanics.")}
- content={step_mechanics_active ? "Step Mechanics Enabled" : "Step Mechanics Disabled"} />
+
- act("toggle_fx")}
- icon={show_vore_fx ? "toggle-on" : "toggle-off"}
- selected={show_vore_fx}
- fluid
- tooltipPosition="top"
- tooltip={show_vore_fx
- ? "This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays."
- + "Click to disable all FX."
- : ("Regardless of Predator Setting, you will not see their FX settings."
- + " Click this to enable showing FX.")}
- content={show_vore_fx ? "Show Vore FX" : "Do Not Show Vore FX"} />
+
- act("toggle_leaveremains")}
- icon={digest_leave_remains ? "toggle-on" : "toggle-off"}
- selected={digest_leave_remains}
- fluid
- tooltipPosition="top"
- tooltip={digest_leave_remains
- ? "Your Predator must have this setting enabled in their belly modes to allow remains to show up,"
- + "if they do not, they will not leave your remains behind, even with this on. Click to disable remains"
- : ("Regardless of Predator Setting, you will not leave remains behind."
- + " Click this to allow leaving remains.")}
- content={digest_leave_remains ? "Allow Leaving Remains" : "Do Not Allow Leaving Remains"} />
+
- act("toggle_pickuppref")}
- icon={pickup_mechanics_active ? "toggle-on" : "toggle-off"}
- selected={pickup_mechanics_active}
- fluid
- tooltipPosition="top"
- tooltip={pickup_mechanics_active
- ? "Allows macros to pick you up into their hands, and you to pick up micros."
- + "Click to disable pick-up mechanics"
- : ("You will not participate in pick-up mechanics."
- + " Click this to allow picking up/being picked up.")}
- content={pickup_mechanics_active ? "Pick-up Mechanics Enabled" : "Pick-up Mechanics Disabled"} />
+
- act("toggle_allow_spontaneous_tf")}
- icon={allow_spontaneous_tf ? "toggle-on" : "toggle-off"}
- selected={allow_spontaneous_tf}
- fluid
- tooltip={"This toggle is for spontaneous or environment related transformation"
- + " as a victim, such as via chemicals. "
- + (allow_spontaneous_tf
- ? "Click here to allow being spontaneously transformed."
- : "Click here to disable being spontaneously transformed.")}
- content={allow_spontaneous_tf ? "Spontaneous TF Enabled" : "Spontaneous TF Disabled"} />
+
{
);
};
+
+const VoreUserPreferenceItem = (props, context) => {
+ const { act } = useBackend(context);
+
+ const { spec, ...rest } = props;
+ const {
+ action,
+ test,
+ tooltip,
+ content,
+ } = spec;
+
+ return (
+ act(action)}
+ icon={test ? "toggle-on" : "toggle-off"}
+ selected={test}
+ fluid
+ tooltip={tooltip.main + " " + (test ? tooltip.disable : tooltip.enable)}
+ content={(test ? content.enabled : content.disabled)}
+ {...rest}
+ />
+ );
+};
diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js
index 42e6fc8311a..da5528e1c03 100644
--- a/tgui/public/tgui.bundle.js
+++ b/tgui/public/tgui.bundle.js
@@ -1 +1 @@
-!function(){var e,n={60121:function(e,n,t){"use strict";var o=t(39812);t(56285),t(58602),t(92433),t(35070),t(86455),t(41821),t(83243),t(97585),t(64197),t(87266),t(99195),t(72916),t(48979);var r,c,a=t(84877),i=(t(25059),t(18874)),l=t(25697),d=t(75682),s=t(69913),u=t(74360);a.perf.mark("inception",null==(r=window.performance)||null==(c=r.timing)?void 0:c.navigationStart),a.perf.mark("init");var m=(0,s.configureStore)(),p=(0,d.createRenderer)((function(){var e=(0,t(73218).getRoutedComponent)(m);return(0,o.createComponentVNode)(2,s.StoreProvider,{store:m,children:(0,o.createComponentVNode)(2,e)})}));!function C(){if("loading"!==document.readyState){for((0,u.setupGlobalEvents)(),(0,i.setupHotKeys)(),(0,l.captureExternalLinks)(),m.subscribe(p),window.update=function(e){return m.dispatch(Byond.parseJson(e))};;){var e=window.__updateQueue__.shift();if(!e)break;window.update(e)}0}else document.addEventListener("DOMContentLoaded",C)}()},34129:function(e,n,t){"use strict";n.__esModule=!0,n.AICard=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AICard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.has_ai,s=l.integrity,u=l.backup_capacitor,m=l.flushing,p=l.has_laws,C=l.laws,h=l.wireless,N=l.radio;if(0===d)return(0,o.createComponentVNode)(2,a.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Stored AI",children:(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var V=null;V=s>=75?"green":s>=25?"yellow":"red";var b=null;return u>=75&&(b="green"),b=u>=25?"yellow":"red",(0,o.createComponentVNode)(2,a.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,name,0)}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:V,value:s/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:b,value:u/100})})]})}),(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===m?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",children:!!p&&(0,o.createComponentVNode)(2,c.Box,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",children:e},n)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"check":"times",content:h?"Enabled":"Disabled",color:h?"green":"red",onClick:function(){return i("wireless")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"check":"times",content:N?"Enabled":"Disabled",color:N?"green":"red",onClick:function(){return i("radio")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"AI Power",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||0===s,confirmColor:"red",content:"Shutdown",onClick:function(){return i("wipe")}})})]})})]})})}},73405:function(e,n,t){"use strict";n.__esModule=!0,n.APC=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(21451),l=t(67861);n.APC=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(0,o.createComponentVNode)(2,s);return c.gridCheck?i=(0,o.createComponentVNode)(2,u):c.failTime&&(i=(0,o.createComponentVNode)(2,m)),(0,o.createComponentVNode)(2,a.Window,{width:450,height:475,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:i})})};var d={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,s=l.locked&&!l.siliconUser,u=(l.normallyLocked,d[l.externalPower]||d[0]),m=d[l.chargingStatus]||d[0],p=l.powerChannels||[],C=l.powerCellStatus/100;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.InterfaceLockNoticeBox,{deny:l.emagged,denialMessage:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Please contact maintenance for service."})],4)}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main Breaker",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.isOperating?"power-off":"times",content:l.isOperating?"On":"Off",selected:l.isOperating&&!s,color:l.isOperating?"":"bad",disabled:s,onClick:function(){return a("breaker")}}),children:["[ ",u.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:C})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.chargeMode?"sync":"times",content:l.chargeMode?"Auto":"Off",selected:l.chargeMode,disabled:s,onClick:function(){return a("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[p.map((function(e){var n=e.topicParams;return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:!s&&(1===e.status||3===e.status),disabled:s,onClick:function(){return a("channel",n.auto)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"On",selected:!s&&2===e.status,disabled:s,onClick:function(){return a("channel",n.on)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:!s&&0===e.status,disabled:s,onClick:function(){return a("channel",n.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Load",children:l.totalCharging?(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W (+ "),l.totalCharging,(0,o.createTextVNode)(" W charging)")],0):(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Misc",buttons:!!l.siliconUser&&(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return a("overload")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.coverLocked?"lock":"unlock",content:l.coverLocked?"Engaged":"Disengaged",selected:l.coverLocked,disabled:s,onClick:function(){return a("cover")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Disabled",selected:2===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Automatic",selected:1===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Enabled",selected:3===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:3})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:l.emergencyLights?"Enabled":"Disabled",selected:l.emergencyLights,onClick:function(){return a("emergency_lighting")}})})]})})],4)},u=function(e,n){return(0,o.createComponentVNode)(2,l.FullscreenNotice,{title:"System Failure",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=(0,o.createComponentVNode)(2,c.Button,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return i("reboot")}});return a.locked&&!a.siliconUser&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"SYSTEM FAILURE",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h2",null,"I/O regulators malfunction detected! Waiting for system reboot...",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Automatic reboot in ",a.failTime," seconds..."]}),(0,o.createComponentVNode)(2,c.Box,{mt:4,children:l})]})}},20832:function(e,n,t){"use strict";n.__esModule=!0,n.AccountsTerminal=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AccountsTerminal=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.id_inserted,u=d.id_card,m=d.access_level,p=d.machine_id;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:640,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Machine",color:"average",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"eject":"sign-in-alt",fluid:!0,content:u,onClick:function(){return l("insert_card")}})})]})}),m>0&&(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,u=i.creating_new_account,m=i.detailed_account_view;return(0,o.createComponentVNode)(2,c.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!u&&!m,icon:"home",onClick:function(){return a("view_accounts_list")},children:"Home"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:u,icon:"cog",onClick:function(){return a("create_account")},children:"New Account"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{disabled:u,icon:"print",onClick:function(){return a("print")},children:"Print"})]}),u&&(0,o.createComponentVNode)(2,l)||m&&(0,o.createComponentVNode)(2,d)||(0,o.createComponentVNode)(2,s)]})},l=function(e,n){var t=(0,r.useBackend)(n).act,a=(0,r.useSharedState)(n,"holder",""),i=a[0],l=a[1],d=(0,r.useSharedState)(n,"money",""),s=d[0],u=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:"Create Account",level:2,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,c.Input,{value:i,fluid:!0,onInput:function(e,n){return l(n)}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onInput:function(e,n){return u(n)}})})]}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i||!s,mt:1,fluid:!0,icon:"plus",onClick:function(){return t("finalise_create_account",{holder_name:i,starting_funds:s})},content:"Create"})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.access_level,d=i.station_account_number,s=i.account_number,u=i.owner_name,m=i.money,p=i.suspended,C=i.transactions;return(0,o.createComponentVNode)(2,c.Section,{title:"Account Details",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",selected:p,content:"Suspend",onClick:function(){return a("toggle_suspension")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Holder",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Balance",children:[m,"\u20ae"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:p?"bad":"good",children:p?"SUSPENDED":"Active"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"CentCom Administrator",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Payroll",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:s===d,onClick:function(){return a("revoke_payroll")}})})})}),l>=2&&(0,o.createComponentVNode)(2,c.Section,{title:"Silent Funds Transfer",level:2,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_funds")},content:"Add Funds"}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("remove_funds")},content:"Remove Funds"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Transactions",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Terminal"})]}),C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.amount,"\u20ae"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source_terminal})]},n)}))]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"NanoTrasen Accounts",level:2,children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.owner_name+e.suspended,color:e.suspended?"bad":null,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"#"+e.account_number,onClick:function(){return a("view_account_detail",{account_index:e.account_index})}})},e.account_index)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"There are no accounts available."})})}},19007:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleList=n.AdminShuttleController=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.AdminShuttleController=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.shuttles,u=l.overmap_ships;return(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Classic Shuttles",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"Fly",onClick:function(){return i("classicmove",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.current_location}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:d(e.status)})]},e.ref)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Overmap Ships",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){var n;return(null==(n=e.name)?void 0:n.toLowerCase())||e.name||e.ref}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"Control",onClick:function(){return i("overmap_control",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name})]},e.ref)}))})})]})};n.ShuttleList=l;var d=function(e){switch(e){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},51104:function(e,n,t){"use strict";n.__esModule=!0,n.AgentCard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AgentCard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.entries,s=l.electronic_warfare;return(0,o.createComponentVNode)(2,a.Window,{width:550,height:400,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Info",children:(0,o.createComponentVNode)(2,c.Table,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i(e.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.value})]},e.name)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Electronic Warfare",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:s,content:s?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return i("electronic_warfare")}})})]})})}},47330:function(e,n,t){"use strict";n.__esModule=!0,n.AiAirlock=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}};n.AiAirlock=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=i[d.power.main]||i[0],u=i[d.power.backup]||i[0],m=i[d.shock]||i[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[d.power.main?"Online":"Offline"," ",d.wires.main_1&&d.wires.main_2?d.power.main_timeleft>0&&"["+d.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[d.power.backup?"Online":"Offline"," ",d.wires.backup_1&&d.wires.backup_2?d.power.backup_timeleft>0&&"["+d.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Electrify",color:m.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:!(d.wires.shock&&0===d.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===d.shock?"Safe":"Electrified"," ",(d.wires.shock?d.shock_timeleft>0&&"["+d.shock_timeleft+"s]":"[Wires have been cut!]")||-1===d.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.id_scanner?"power-off":"times",content:d.id_scanner?"Enabled":"Disabled",selected:d.id_scanner,disabled:!d.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!d.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.locked?"lock":"unlock",content:d.locked?"Lowered":"Raised",selected:d.locked,disabled:!d.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!d.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.lights?"power-off":"times",content:d.lights?"Enabled":"Disabled",selected:d.lights,disabled:!d.wires.lights,onClick:function(){return l("light-toggle")}}),children:!d.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.safe?"power-off":"times",content:d.safe?"Enabled":"Disabled",selected:d.safe,disabled:!d.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!d.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.speed?"power-off":"times",content:d.speed?"Enabled":"Disabled",selected:d.speed,disabled:!d.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!d.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.opened?"sign-out-alt":"sign-in-alt",content:d.opened?"Open":"Closed",selected:d.opened,disabled:d.locked||d.welded,onClick:function(){return l("open-close")}}),children:!(!d.locked&&!d.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),d.locked?"bolted":"",d.locked&&d.welded?" and ":"",d.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},33084:function(e,n,t){"use strict";n.__esModule=!0,n.AiRestorerContent=n.AiRestorer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AiRestorer=function(){return(0,o.createComponentVNode)(2,a.Window,{width:370,height:360,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.AI_present,d=i.error,s=i.name,u=i.laws,m=i.isDead,p=i.restoring,C=i.health,h=i.ejectable;return(0,o.createFragment)([d&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:d}),!!h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:l?s:"----------",disabled:!l,onClick:function(){return a("PRG_eject")}}),!!l&&(0,o.createComponentVNode)(2,c.Section,{title:h?"System Status":s,buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,color:m?"bad":"good",children:m?"Nonfunctional":"Functional"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})})}),!!p&&(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return a("PRG_beginReconstruction")}}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",level:2,children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{className:"candystripe",children:e},e)}))})]})],0)};n.AiRestorerContent=i},597:function(e,n,t){"use strict";n.__esModule=!0,n.AiSupermatter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=(t(58083),t(67861));n.AiSupermatter=function(e,n){var t=(0,r.useBackend)(n).data,c=(t.integrity_percentage,t.ambient_temp,t.ambient_pressure,t.detonating),i=(0,o.createComponentVNode)(2,d);return c&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:i})})};var l=function(e,n){return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Evacuate area immediately"})]})})},d=function(e,n){var t=(0,r.useBackend)(n).data,a=t.integrity_percentage,i=t.ambient_temp,l=t.ambient_pressure;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Crystal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:a,maxValue:100,ranges:{good:[90,Infinity],average:[25,90],bad:[-Infinity,25]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:i,maxValue:1e4,ranges:{bad:[5e3,Infinity],average:[4e3,5e3],good:[-Infinity,4e3]},children:[i," K"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Pressure",children:[l," kPa"]})]})})}},58444:function(e,n,t){"use strict";n.__esModule=!0,n.AirAlarm=void 0;var o=t(39812),r=t(41860),c=(t(2497),t(71494)),a=t(74814),i=t(76270),l=t(85952),d=t(21451),s=t(71739);n.AirAlarm=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=r.locked&&!r.siliconUser&&!r.remoteUser;return(0,o.createComponentVNode)(2,l.Window,{width:440,height:650,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m),!a&&(0,o.createComponentVNode)(2,C)]})})};var u=function(e,n){var t=(0,c.useBackend)(n).data,l=(t.environment_data||[]).filter((function(e){return e.value>=.01})),d={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},s=d[t.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.Section,{title:"Air Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l.length>0&&(0,o.createFragment)([l.map((function(e){var n=d[e.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,i.getGasLabel)(e.name),color:n.color,children:[(0,r.toFixed)(e.value,2),e.unit]},e.name)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Local status",color:s.color,children:s.localStatusText}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Area status",color:t.atmos_alarm||t.fire_alarm?"bad":"good",children:(t.atmos_alarm?"Atmosphere Alarm":t.fire_alarm&&"Fire Alarm")||"Nominal"})],0)||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!t.emagged&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.target_temperature,d=i.rcon;return(0,o.createComponentVNode)(2,a.Section,{title:"Comfort Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote Control",children:[(0,o.createComponentVNode)(2,a.Button,{selected:1===d,content:"Off",onClick:function(){return r("rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,a.Button,{selected:2===d,content:"Auto",onClick:function(){return r("rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,a.Button,{selected:3===d,content:"On",onClick:function(){return r("rcon",{rcon:3})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Button,{content:l,onClick:function(){return r("temperature")}})})]})})},p={home:{title:"Air Controls",component:function(){return h}},vents:{title:"Vent Controls",component:function(){return N}},scrubbers:{title:"Scrubber Controls",component:function(){return V}},modes:{title:"Operating Mode",component:function(){return b}},thresholds:{title:"Alarm Thresholds",component:function(){return f}}},C=function(e,n){var t=(0,c.useLocalState)(n,"screen"),r=t[0],i=t[1],l=p[r]||p.home,d=l.component();return(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:r&&(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i()}}),children:(0,o.createComponentVNode)(2,d)})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(0,c.useLocalState)(n,"screen"),d=(l[0],l[1]),s=i.mode,u=i.atmos_alarm;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:u?"exclamation-triangle":"exclamation",color:u&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return r(u?"reset":"alarm")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:3===s?"exclamation-triangle":"exclamation",color:3===s&&"danger",content:"Panic Siphon",onClick:function(){return r("mode",{mode:3===s?1:3})}}),(0,o.createComponentVNode)(2,a.Box,{mt:2}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return d("vents")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){return d("scrubbers")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"cog",content:"Operating Mode",onClick:function(){return d("modes")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return d("thresholds")}})],4)},N=function(e,n){var t=(0,c.useBackend)(n).data.vents;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Vent,{vent:e},e.id_tag)})):"Nothing to show"},V=function(e,n){var t=(0,c.useBackend)(n).data.scrubbers;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Scrubber,{scrubber:e},e.id_tag)})):"Nothing to show"},b=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.modes;return i&&0!==i.length?i.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:e.selected?"check-square-o":"square-o",selected:e.selected,color:e.selected&&e.danger&&"danger",content:e.name,onClick:function(){return r("mode",{mode:e.mode})}}),(0,o.createComponentVNode)(2,a.Box,{mt:1})],4,e.mode)})):"Nothing to show"},f=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.thresholds;return(0,o.createVNode)(1,"table","LabeledList",[(0,o.createVNode)(1,"thead",null,(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td"),(0,o.createVNode)(1,"td","color-bad","min2",16),(0,o.createVNode)(1,"td","color-average","min1",16),(0,o.createVNode)(1,"td","color-average","max1",16),(0,o.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,o.createVNode)(1,"tbody",null,d.map((function(e){return(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td","LabeledList__label",(0,o.createVNode)(1,"span","color-"+(0,i.getGasColor)(e.name),(0,i.getGasLabel)(e.name),0),2),e.settings.map((function(e){return(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Button,{content:(0,r.toFixed)(e.selected,2),onClick:function(){return l("threshold",{env:e.env,"var":e.val})}}),2,null,e.val)}))],0,null,e.name)})),0)],4,{style:{width:"100%"}})}},24053:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.AlertModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(29708);function d(e,n){return(d=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var s=function(e){var n,t;function r(){var n;return(n=e.call(this)||this).buttonRefs=[(0,o.createRef)()],n.state={current:0},n}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,d(n,t);var s=r.prototype;return s.componentDidMount=function(){for(var e=(0,c.useBackend)(this.context).data.buttons,n=this.state.current,t=this.buttonRefs[n].current,r=1;r=t.length?e=n?e-1:0:e<0&&(e=n?0:t.length-1);var o=this.buttonRefs[e].current;o&&setTimeout((function(){return o.focus()}),1),this.setState({current:e})},s.render=function(){var e=this,n=(0,c.useBackend)(this.context),t=n.act,r=n.data,d=r.title,s=r.message,m=r.buttons,p=r.timeout,C=this.state.current,h=function(){return e.setCurrent(C,!1)},N=Math.max(150,s.length);return(0,o.createComponentVNode)(2,i.Window,{title:d,theme:"abstract",width:350,height:N,canClose:p>0,children:[p&&(0,o.createComponentVNode)(2,u,{value:p}),(0,o.createComponentVNode)(2,i.Window.Content,{onFocus:h,onClick:h,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",className:"AlertModal__Message",height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{m:1,children:s})})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{my:2,children:(0,o.createComponentVNode)(2,a.Flex,{className:"AlertModal__Buttons",wrap:!0,children:m.map((function(n,r){return(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,my:.5,children:(0,o.createVNode)(1,"div","Button Button--color--default",n,0,{px:3,onClick:function(){return t("choose",{choice:n})},onKeyDown:function(o){var r=window.event?o.which:o.keyCode;r===l.KEY_SPACE||r===l.KEY_ENTER?t("choose",{choice:n}):r===l.KEY_LEFT||o.shiftKey&&r===l.KEY_TAB?e.setCurrent(C-1,r===l.KEY_LEFT):r!==l.KEY_RIGHT&&r!==l.KEY_TAB||e.setCurrent(C+1,r===l.KEY_RIGHT)}},null,e.buttonRefs[r])},r)}))})})]})})})]})},r}(o.Component);n.AlertModal=s;var u=function(e){var n=e.value;return(0,o.createVNode)(1,"div","AlertModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"AlertModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=u},34847:function(e,n,t){"use strict";n.__esModule=!0,n.AlgaeFarm=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=(t(41860),t(2497));n.AlgaeFarm=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.usePower,u=d.materials,m=d.last_flow_rate,p=d.last_power_draw,C=d.inputDir,h=d.outputDir,N=d.input,V=d.output,b=d.errorText;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[b&&(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Processing",selected:2===s,onClick:function(){return l("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[m," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw",children:[p," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(e.display),children:[(0,o.createComponentVNode)(2,c.ProgressBar,{width:"80%",value:e.qty,maxValue:e.max,children:[e.qty,"/",e.max]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,content:"Eject",onClick:function(){return l("ejectMaterial",{mat:e.name})}})]},e.name)}))]}),(0,o.createComponentVNode)(2,c.Table,{mt:1,children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Input ("+C+")",children:N?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[N.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:N.name,children:[N.percent,"% (",N.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Output ("+h+")",children:V?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[V.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:V.name,children:[V.percent,"% (",V.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},65145:function(e,n,t){"use strict";n.__esModule=!0,n.AppearanceChanger=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.AppearanceChanger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),V=t.data,b=V.name,f=V.specimen,g=V.gender,k=V.gender_id,v=V.hair_style,B=V.facial_hair_style,L=V.ear_style,_=V.tail_style,x=V.wing_style,w=V.change_race,S=V.change_gender,I=V.change_eye_color,y=V.change_skin_tone,T=V.change_skin_color,A=V.change_hair_color,P=V.change_facial_hair_color,M=V.change_hair,F=V.change_facial_hair,D=V.mapRef,R=r.title,E=I||y||T||A||P,O=-1;w?O=0:S?O=1:E?O=2:M?O=4:F&&(O=5);var j=(0,a.useLocalState)(n,"tabIndex",O),W=j[0],z=j[1];return(0,o.createComponentVNode)(2,l.Window,{width:700,height:650,title:(0,c.decodeHtmlEntities)(R),children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Reflection",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:b}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",color:w?null:"grey",children:f}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",color:S?null:"grey",children:g?(0,c.capitalize)(g):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",color:E?null:"grey",children:k?(0,c.capitalize)(k):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Style",color:M?null:"grey",children:v?(0,c.capitalize)(v):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial Hair Style",color:F?null:"grey",children:B?(0,c.capitalize)(B):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ear Style",color:M?null:"grey",children:L?(0,c.capitalize)(L):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail Style",color:M?null:"grey",children:_?(0,c.capitalize)(_):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wing Style",color:M?null:"grey",children:x?(0,c.capitalize)(x):"Not Set"})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.ByondUi,{style:{width:"256px",height:"256px"},params:{id:D,type:"map"}})})]})}),(0,o.createComponentVNode)(2,i.Tabs,{children:[w?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===W,onClick:function(){return z(0)},children:"Race"}):null,S?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===W,onClick:function(){return z(1)},children:"Gender & Sex"}):null,E?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===W,onClick:function(){return z(2)},children:"Colors"}):null,M?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===W,onClick:function(){return z(3)},children:"Hair"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===W,onClick:function(){return z(5)},children:"Ear"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===W,onClick:function(){return z(6)},children:"Tail"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:7===W,onClick:function(){return z(7)},children:"Wing"})],4):null,F?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:4===W,onClick:function(){return z(4)},children:"Facial Hair"}):null]}),(0,o.createComponentVNode)(2,i.Box,{height:"43%",children:[w&&0===W?(0,o.createComponentVNode)(2,d):null,S&&1===W?(0,o.createComponentVNode)(2,s):null,E&&2===W?(0,o.createComponentVNode)(2,u):null,M&&3===W?(0,o.createComponentVNode)(2,m):null,F&&4===W?(0,o.createComponentVNode)(2,p):null,M&&5===W?(0,o.createComponentVNode)(2,C):null,M&&6===W?(0,o.createComponentVNode)(2,h):null,M&&7===W?(0,o.createComponentVNode)(2,N):null]})]})})};var d=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.species,s=l.specimen,u=(0,r.sortBy)((function(e){return e.specimen}))(d||[]);return(0,o.createComponentVNode)(2,i.Section,{title:"Species",fill:!0,scrollable:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:s===e.specimen,onClick:function(){return c("race",{race:e.specimen})}},e.specimen)}))})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.gender,d=c.gender_id,s=c.genders,u=c.id_genders;return(0,o.createComponentVNode)(2,i.Section,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===l,content:e.gender_name,onClick:function(){return r("gender",{gender:e.gender_key})}},e.gender_key)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===d,content:e.gender_name,onClick:function(){return r("gender_id",{gender_id:e.gender_key})}},e.gender_key)}))})]})})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.change_eye_color,d=c.change_skin_tone,s=c.change_skin_color,u=c.change_hair_color,m=c.change_facial_hair_color,p=c.eye_color,C=c.skin_color,h=c.hair_color,N=c.facial_hair_color,V=c.ears_color,b=c.ears2_color,f=c.tail_color,g=c.tail2_color,k=c.wing_color,v=c.wing2_color;return(0,o.createComponentVNode)(2,i.Section,{title:"Colors",fill:!0,scrollable:!0,children:[l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:p,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Eye Color",onClick:function(){return r("eye_color")}})]}):null,d?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Tone",onClick:function(){return r("skin_tone")}})}):null,s?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:C,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Color",onClick:function(){return r("skin_color")}})]}):null,u?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:h,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Hair Color",onClick:function(){return r("hair_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:V,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Ears Color",onClick:function(){return r("ears_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:b,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Ears Color",onClick:function(){return r("ears2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:f,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Tail Color",onClick:function(){return r("tail_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:g,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Tail Color",onClick:function(){return r("tail2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:k,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Wing Color",onClick:function(){return r("wing_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:v,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Wing Color",onClick:function(){return r("wing2_color")}})]})],4):null,m?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:N,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Facial Hair Color",onClick:function(){return r("facial_hair_color")}})]}):null]})},m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.hair_style,d=c.hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("hair",{hair:e.hairstyle})},selected:e.hairstyle===l,content:e.hairstyle},e.hairstyle)}))})},p=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.facial_hair_style,d=c.facial_hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Facial Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("facial_hair",{facial_hair:e.facialhairstyle})},selected:e.facialhairstyle===l,content:e.facialhairstyle},e.facialhairstyle)}))})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.ear_style,s=l.ear_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Ears",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},h=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.tail_style,s=l.tail_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Tails",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},N=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.wing_style,s=l.wing_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Wings",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})}},86776:function(e,n,t){"use strict";n.__esModule=!0,n.ArcadeBattle=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ArcadeBattle=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=(l.name,l.temp),s=l.enemyAction,u=l.enemyName,m=l.playerHP,p=l.playerMP,C=l.enemyHP,h=(l.enemyMP,l.gameOver);return(0,o.createComponentVNode)(2,a.Window,{width:400,height:240,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:u,textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Section,{color:"label",children:[(0,o.createComponentVNode)(2,c.Box,{children:d}),(0,o.createComponentVNode)(2,c.Box,{children:!h&&s})]}),(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[m,"HP"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[p,"MP"]})})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Enemy HP",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:45,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[C,"HP"]})})})})]}),h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return i("newgame")}})||(0,o.createComponentVNode)(2,c.Flex,{mt:2,justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return i("attack")},content:"Attack!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return i("heal")},content:"Heal!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return i("charge")},content:"Recharge!"})})]})]})})})}},13496:function(e,n,t){"use strict";n.__esModule=!0,n.AreaScrubberControl=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(2497);n.AreaScrubberControl=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=(0,c.useLocalState)(n,"showArea",!1),u=s[0],m=s[1],p=d.scrubbers;return p?(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:u,onClick:function(){return m(!u)}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return i("allon")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return i("alloff")}})})]}),(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:p.map((function(e){return(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"32%",children:(0,o.createComponentVNode)(2,l,{scrubber:e,showArea:u})},e.id)}))})]})})}):(0,o.createComponentVNode)(2,r.Section,{title:"Error",children:[(0,o.createComponentVNode)(2,r.Box,{color:"bad",children:"No Scrubbers Detected."}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})]})};var l=function(e,n){var t=(0,c.useBackend)(n).act,a=e.scrubber,l=e.showArea;return(0,o.createComponentVNode)(2,r.Section,{title:a.name,children:[(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"power-off",content:a.on?"Enabled":"Disabled",selected:a.on,onClick:function(){return t("toggle",{id:a.id})}}),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[a.pressure," kPa"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Flow Rate",children:[a.flow_rate," L/s"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[a.load," W"]}),l&&(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Area",children:(0,i.toTitleCase)(a.area)})]})]})}},56404:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyInfrared=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AssemblyInfrared=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.visible;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Infrared Unit",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Laser",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",fluid:!0,selected:d,onClick:function(){return i("state")},children:d?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,selected:s,onClick:function(){return i("visible")},children:s?"Able to be seen":"Invisible"})})]})})})})}},29632:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyProx=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyProx=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time,p=s.range,C=s.maxRange,h=s.scanning;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Prox Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.NumberInput,{minValue:1,value:p,maxValue:C,onDrag:function(e,n){return d("range",{range:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Armed",children:[(0,o.createComponentVNode)(2,a.Button,{mr:1,icon:h?"lock":"lock-open",selected:h,onClick:function(){return d("scanning")},children:h?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},48661:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})})})})}},38531:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosAlertConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.priority_alarms||[],s=l.minor_alarms||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===d.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"bad",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)})),0===s.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"average",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)}))],0)})})})}},46566:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosControlContent=n.AtmosControl=void 0;var o=t(39812),r=t(64499),c=t(85952),a=t(74814),i=t(71494);(0,t(88654).createLogger)("fuck");n.AtmosControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:600,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t,c=(0,i.useBackend)(n),l=c.act,d=c.data,s=c.config,u=(0,r.sortBy)((function(e){return e.name}))(d.alarms||[]),m=(0,i.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=(0,i.useLocalState)(n,"zoom",1),N=h[0],V=h[1];return 0===p?t=(0,o.createComponentVNode)(2,a.Section,{title:"Alarms",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,color:2===e.danger?"bad":1===e.danger?"average":"",onClick:function(){return l("alarm",{alarm:e.ref})}},e.name)}))}):1===p&&(t=(0,o.createComponentVNode)(2,a.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,a.NanoMap,{onZoom:function(e){return V(e)},children:u.filter((function(e){return~~e.z==~~s.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,a.NanoMap.Marker,{x:e.x,y:e.y,zoom:N,icon:"bell",tooltip:e.name,color:e.danger?"red":"green",onClick:function(){return l("alarm",{alarm:e.ref})}},e.ref)}))})})),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"table"})," Alarm View"]},"AlarmView"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)};n.AtmosControlContent=l},2726:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952));n.AtmosFilter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.filter_types||[];return(0,o.createComponentVNode)(2,a.Window,{width:390,height:187,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,mr:1,children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:l.last_flow_rate,format:function(e){return e+" L/s"}})}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(e,n){return i("rate",{rate:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.rate===l.max_rate,onClick:function(){return i("rate",{rate:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Filter",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e.selected,content:e.name,onClick:function(){return i("filter",{filterset:e.f_type})}},e.name)}))})]})})})})}},61505:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:370,height:195,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.max_pressure,step:10,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.set_pressure===l.max_pressure,onClick:function(){return i("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"label",children:(0,o.createVNode)(1,"u",null,"Concentrations",16)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 1 ("+l.node1_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node1",{concentration:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 2 ("+l.node2_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node2",{concentration:n})}})})]})})})})}},99994:function(e,n,t){"use strict";n.__esModule=!0,n.Autolathe=void 0;var o=t(39812),r=(t(41860),t(85531)),c=t(64499),a=t(71494),i=t(74814),l=t(85952),d=t(95481),s=t(2497),u=function(e,n,t){if(void 0===t&&(t=1),null===e.requirements)return!0;for(var o=Object.keys(e.requirements),r=function(){var o=a[c],r=n.find((function(e){return e.name===o}));return r?r.amount=e[1].price/d.build_eff,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},u=function(e,n){return!!e.affordable&&!(e.reagent&&!n.beaker)},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u(e,i),content:(e.price/i.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:l,name:e.name})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},81850:function(e,n,t){"use strict";n.__esModule=!0,n.BodyDesigner=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);n.BodyDesigner=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.menu,u=d.disk,m=d.diskStored,p=d.activeBodyRecord,C=l[s];return(0,o.createComponentVNode)(2,i.Window,{width:400,height:650,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[u?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Save To Disk",onClick:function(){return r("savetodisk")},disabled:!p}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Load From Disk",onClick:function(){return r("loadfromdisk")},disabled:!m}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return r("ejectdisk")}})]}):null,C]})})};var l={Main:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Database Functions",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Individual Body Records",onClick:function(){return r("menu",{menu:"Body Records"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Stock Body Records",onClick:function(){return r("menu",{menu:"Stock Records"})}})]})})),"Body Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Body Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e.name,onClick:function(){return r("view_brec",{view_brec:e.recref})}},e.name)}))})})),"Stock Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.stock_bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Stock Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e,onClick:function(){return r("view_stock_brec",{view_stock_brec:e})}},e)}))})})),"Specific Record":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.activeBodyRecord,s=l.mapRef;return d?(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"165px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Specific Record",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i("menu",{menu:"Main"})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.real_name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:d.speciesname}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:(0,r.capitalize)(d.gender),onClick:function(){return i("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:d.synthetic}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:[d.locked,(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!d.booc,onClick:function(){return i("boocnotes")}})]})]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"130px",children:(0,o.createComponentVNode)(2,a.ByondUi,{style:{width:"100%",height:"128px"},params:{id:s,type:"map"}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"300px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scale",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:d.scale,onClick:function(){return i("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(d.styles).map((function(e){var n=d.styles[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.styleHref?(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.style,onClick:function(){return i("href_conversion",{target_href:n.styleHref,target_value:1})}}):null,n.colorHref?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color,onClick:function(){return i("href_conversion",{target_href:n.colorHref,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color,style:{border:"1px solid #fff"}})]}):null,n.colorHref2?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color2,onClick:function(){return i("href_conversion",{target_href:n.colorHref2,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color2,style:{border:"1px solid #fff"}})]}):null]},e)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Body Markings",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add Marking",onClick:function(){return i("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(d.markings).map((function(e){var n=d.markings[e];return(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return i("href_conversion",{target_href:"marking_remove",target_value:e})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,backgroundColor:n,content:e,onClick:function(){return i("href_conversion",{target_href:"marking_color",target_value:e})}})})]})},e)}))})]})]})})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR: Record Not Found!"})})),"OOC Notes":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.activeBodyRecord;return(0,o.createComponentVNode)(2,a.Section,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:i&&i.booc||"ERROR: Body record not found!"})}))}},6060:function(e,n,t){"use strict";n.__esModule=!0,n.BodyScanner=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["hasBorer","bad",function(e){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(e){return"Viral pathogen detected in blood stream."}],["blind","average",function(e){return"Cataracts detected."}],["colourblind","average",function(e){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(e){return"Retinal misalignment detected."}],["humanPrey","average",function(e){return"Foreign Humanoid(s) detected: "+e.humanPrey}],["livingPrey","average",function(e){return"Foreign Creature(s) detected: "+e.livingPrey}],["objectPrey","average",function(e){return"Foreign Object(s) detected: "+e.objectPrey}]],s=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},m=function(e,n){for(var t=[],o=0;o0?e.reduce((function(e,n){return null===e?n:(0,o.createFragment)([e,!!n&&(0,o.createComponentVNode)(2,a.Box,{children:n})],0)})):null},C=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};n.BodyScanner=function(e,n){var t=(0,c.useBackend)(n).data,r=t.occupied,a=t.occupant,l=void 0===a?{}:a,d=r?(0,o.createComponentVNode)(2,h,{occupant:l}):(0,o.createComponentVNode)(2,B);return(0,o.createComponentVNode)(2,i.Window,{width:690,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:d})})};var h=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,N,{occupant:n}),(0,o.createComponentVNode)(2,V,{occupant:n}),(0,o.createComponentVNode)(2,b,{occupant:n}),(0,o.createComponentVNode)(2,f,{occupant:n}),(0,o.createComponentVNode)(2,k,{organs:n.extOrgan}),(0,o.createComponentVNode)(2,v,{organs:n.intOrgan})]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return i("ejectify")},children:"Eject"}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print_p")},children:"Print Report"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Volume",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.volume,0)})," units\xa0(",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.percent,0)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Weight",children:(0,r.round)(d.occupant.weight)+"lbs, "+(0,r.round)(d.occupant.weight/2.20463)+"kgs"})]})})},V=function(e){var n=e.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Blood Reagents",children:n.reagents?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.reagents.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Blood Reagents Detected"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stomach Reagents",children:n.ingested?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.ingested.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Stomach Reagents Detected"})})],4)},b=function(e){var n=e.occupant,t=n.hasBorer||n.blind||n.colourblind||n.nearsighted||n.hasVirus;return(t=t||n.humanPrey||n.livingPrey||n.objectPrey)?(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:d.map((function(e,t){if(n[e[0]])return(0,o.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2](n)})}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},f=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.Table,{children:m(s,(function(e,t,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:!!t&&t[0]+":"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,g,{value:n[e[1]],marginBottom:r0&&"0.5rem",value:e.totalLoss/100,ranges:u,children:[(0,o.createComponentVNode)(2,a.Box,{float:"left",inline:!0,children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([e.internalBleeding&&"Internal bleeding",!!e.status.bleeding&&"External bleeding",e.lungRuptured&&"Ruptured lung",e.destroyed&&"Destroyed",!!e.status.broken&&e.status.broken,C(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[p([!!e.status.splinted&&"Splinted",!!e.status.robotic&&"Robotic",!!e.status.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})]),p(e.implants.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},n)}))]})})},v=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/100,mt:n>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([C(e.germ_level),!!e.inflamed&&"Appendicitis detected."])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:p([1===e.robotic&&"Robotic",2===e.robotic&&"Assisted",!!e.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})])})]})]},n)}))]})})},B=function(){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},74639:function(e,n,t){"use strict";n.__esModule=!0,n.BombTester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}n.BombTester=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.simulating,u=d.mode,m=d.tank1,p=d.tank1ref,C=d.tank2,h=d.tank2ref,N=d.canister,V=d.sim_canister_output;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,c.Section,{title:"Virtual Explosive Simulator v2.01",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:1})},selected:1===u,children:"Single Tank"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:2})},selected:2===u,children:"Transfer Valve"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:3})},selected:3===u,children:"Canister"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Primary Slot",children:m&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:p})},icon:"eject",children:m})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:1})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Secondary Slot",children:C&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:h})},icon:"eject",children:C})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:2})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Connected Canister",buttons:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("canister_scan")},icon:"search",children:"Scan"}),children:N&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:N})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No tank connected."})}),N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Canister Release Pressure",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:V,maxValue:1013.25,onDrag:function(e,n){return i("set_can_pressure",{pressure:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){return i("start_sim")},fluid:!0,children:"Begin Simulation"})]})})})};var l=function(e){var n,t;function r(n){var t;t=e.call(this,n)||this;var o=Math.random()>.5,r=Math.random()>.5;return t.state={x:o?340:0,y:r?205:0,reverseX:!1,reverseY:!1},t.process=setInterval((function(){t.setState((function(e){var n=Object.assign({},e);return n.reverseX?n.x-2<-5?(n.reverseX=!1,n.x+=2):n.x-=2:n.x+2>340?(n.reverseX=!0,n.x-=2):n.x+=2,n.reverseY?n.y-2<-20?(n.reverseY=!1,n.y+=2):n.y-=2:n.y+2>205?(n.reverseY=!0,n.y-=2):n.y+=2,n}))}),1),t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var a=r.prototype;return a.componentWillUnmount=function(){clearInterval(this.process)},a.render=function(){var e=this.state,n={position:"relative",left:e.x+"px",top:e.y+"px"};return(0,o.createComponentVNode)(2,c.Section,{title:"Simulation in progress!",fill:!0,children:(0,o.createComponentVNode)(2,c.Box,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,o.createComponentVNode)(2,c.Icon,{style:n,name:"bomb",size:10,color:"red"})})})},r}(o.Component)},48693:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyEditor=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.BotanyEditor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.activity,s=l.degradation,u=l.disk,m=l.sourceName,p=l.locus,C=l.loaded;return d?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:m}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene Decay",children:[s,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Locus",children:p})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No disk loaded."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:C})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("apply_gene")},children:"Apply Gene Mods"}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Target"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No target seed packet loaded."})})]})})}},25486:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyIsolator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.BotanyIsolator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.geneMasks,s=l.activity,u=l.degradation,m=l.disk,p=l.loaded,C=l.hasGenetics,h=l.sourceName;return s?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene decay",children:[u,"%"]}),m&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.mask,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:"download",onClick:function(){return i("get_gene",{get_gene:e.tag})},children:"Extract"})},e.mask)}))||null]}),m&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return i("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No Data Buffered."}),m&&(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:p&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Packet Loaded",children:p})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("scan_genome")},children:"Process Genome"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Packet"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No packet loaded."})})]})})}},61956:function(e,n,t){"use strict";n.__esModule=!0,n.BrigTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.BrigTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:138,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Cell Timer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:s.timing?"Stop":"Start",selected:s.timing,onClick:function(){return d(s.timing?"stop":"start")}}),s.flash_found&&(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:s.flash_charging?"Recharging":"Flash",disabled:s.flash_charging,onClick:function(){return d("flash")}})||null],0),children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:s.time_left/10,minValue:0,maxValue:s.max_time_left/10,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("time",{time:n})}}),(0,o.createComponentVNode)(2,a.Flex,{mt:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_short/10),onClick:function(){return d("preset",{preset:"short"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_medium/10),onClick:function(){return d("preset",{preset:"medium"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_long/10),onClick:function(){return d("preset",{preset:"long"})}})})]})]})})})}},3180:function(e,n,t){"use strict";n.__esModule=!0,n.CameraConsoleSearch=n.CameraConsoleContent=n.CameraConsole=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(34380),i=t(2497),l=t(71494),d=t(74814),s=t(85952),u=function(e,n,t){void 0===n&&(n=""),void 0===t&&(t="");var o=(0,i.createSearch)(n,(function(e){return e.name}));return(0,c.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),n&&(0,r.filter)(o),t&&(0,r.filter)((function(e){return e.networks.includes(t)})),(0,r.sortBy)((function(e){return e.name}))])(e)};n.CameraConsole=function(e,n){return(0,o.createComponentVNode)(2,s.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,m)})};var m=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(t.config,c.mapRef),i=c.activeCamera,m=function(e,n){var t,o;if(!n)return[];var r=e.findIndex((function(e){return e.name===n.name}));return[null==(t=e[r-1])?void 0:t.name,null==(o=e[r+1])?void 0:o.name]}(u(c.cameras),i);m[0],m[1];return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),i&&i.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-left",onClick:function(){return r("pan",{dir:8})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-up",onClick:function(){return r("pan",{dir:1})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-right",onClick:function(){return r("pan",{dir:4})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-down",onClick:function(){return r("pan",{dir:2})}})],4),(0,o.createComponentVNode)(2,d.ByondUi,{className:"CameraConsole__map",params:{id:a,type:"map"}})],4)],4)};n.CameraConsoleContent=m;var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,i=(0,l.useLocalState)(n,"searchText",""),m=i[0],p=i[1],C=(0,l.useLocalState)(n,"networkFilter",""),h=C[0],N=C[1],V=c.activeCamera,b=c.allNetworks;b.sort();var f=u(c.cameras,m,h);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,n){return p(n)}}),(0,o.createComponentVNode)(2,d.Dropdown,{mb:1,width:"177px",options:b,placeholder:"No Filter",onSelected:function(e){return N(e)}}),(0,o.createComponentVNode)(2,d.Section,{children:f.map((function(e){return(0,o.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",V&&e.name===V.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,s.refocusLayout)(),r("switch_camera",{name:e.name})}},e.name)}))})],4)};n.CameraConsoleSearch=p},94477:function(e,n,t){"use strict";n.__esModule=!0,n.Canister=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Canister=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.connected,m=s.can_relabel,p=s.pressure,C=s.releasePressure,h=s.defaultReleasePressure,N=s.minReleasePressure,V=s.maxReleasePressure,b=s.valveOpen,f=s.holding;return(0,o.createComponentVNode)(2,l.Window,{width:360,height:242,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Canister",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",disabled:!m,content:"Relabel",onClick:function(){return d("relabel")}}),children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return e<1e4?(0,r.toFixed)(e)+" kPa":(0,i.formatSiUnit)(1e3*e,1,"Pa")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Regulator",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",left:"-8px",children:[(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:C,unit:"kPa",minValue:N,maxValue:V,stepPixelSize:1,onDrag:function(e,n){return d("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return d("pressure",{pressure:V})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return d("pressure",{pressure:h})}})]})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Valve",children:(0,o.createComponentVNode)(2,a.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?f?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){return d("valve")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{mr:1,label:"Port",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"}),(0,o.createComponentVNode)(2,a.Tooltip,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Holding Tank",buttons:!!f&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){return d("eject")}}),children:[!!f&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Label",children:f.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:f.pressure})," kPa"]})]}),!f&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Holding Tank"})]})]})})}},55636:function(e,n,t){"use strict";n.__esModule=!0,n.Canvas=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var l=function(e){var n,t;function r(n){var t;return(t=e.call(this,n)||this).canvasRef=(0,o.createRef)(),t.onCVClick=n.onCanvasClick,t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var c=r.prototype;return c.componentDidMount=function(){this.drawCanvas(this.props)},c.componentDidUpdate=function(){this.drawCanvas(this.props)},c.drawCanvas=function(e){var n=this.canvasRef.current.getContext("2d"),t=e.value,o=t.length;if(o){var r=t[0].length,c=Math.round(this.canvasRef.current.width/o),a=Math.round(this.canvasRef.current.height/r);n.save(),n.scale(c,a);for(var i=0;i=0||(r[t]=e[t]);return r}(n,["res","value","dotsize"]),i=d(t),l=i[0],s=i[1];return(0,o.normalizeProps)((0,o.createVNode)(1,"canvas",null,"Canvas failed to render.",16,Object.assign({width:l*c||300,height:s*c||300},a,{onClick:function(n){return e.clickwrapper(n)}}),null,this.canvasRef))},r}(o.Component),d=function(e){var n=e.length;return[n,0!==n?e[0].length:0]};n.Canvas=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=d(s.grid),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,a.Window,{width:Math.min(700,24*m+72),height:Math.min(700,24*p+72),children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,l,{value:s.grid,dotsize:24,onCanvasClick:function(e,n){return i("paint",{x:e,y:n})}}),(0,o.createComponentVNode)(2,c.Box,{children:[!s.finalized&&(0,o.createComponentVNode)(2,c.Button.Confirm,{onClick:function(){return i("finalize")},content:"Finalize"}),"\xa0",s.name]})]})})})}},25131:function(e,n,t){"use strict";n.__esModule=!0,n.CasinoPrizeDispenser=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(88654);var l={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.CasinoPrizeDispenser=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var d=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),d=(t.act,t.data),s=d.points,m=d.items,p=(0,c.useLocalState)(n,"search",""),C=p[0],h=(p[1],(0,c.useLocalState)(n,"sort","Alphabetical")),N=h[0],V=(h[1],(0,c.useLocalState)(n,"descending",!1)),b=V[0],f=(V[1],(0,r.createSearch)(C,(function(e){return e[0]}))),g=!1,k=Object.entries(m).map((function(e,n){var t=Object.entries(e[1]).filter(f).map((function(e){return e[1].affordable=s>=e[1].price,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,u,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.title),l=e.items,d=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:i},d,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{content:e.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:i,name:e.name,price:e.price,restriction:e.restriction})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},47947:function(e,n,t){"use strict";n.__esModule=!0,n.CharacterDirectory=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=function(e){switch(e){case"Unset":return"label";case"Pred":return"red";case"Prey":return"blue";case"Switch":return"purple";case"Non-Vore":return"green"}};n.CharacterDirectory=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=s.personalVisibility,m=s.personalTag,p=s.personalErpTag,C=(0,r.useLocalState)(n,"overlay",null),h=C[0];C[1];return(0,o.createComponentVNode)(2,a.Window,{width:640,height:480,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h&&(0,o.createComponentVNode)(2,l)||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:u?"Shown":"Not Shown",onClick:function(){return i("setVisible")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:m,onClick:function(){return i("setTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:p,onClick:function(){return i("setErpTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Advertisement",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Edit Ad",onClick:function(){return i("editAd")}})})]})}),(0,o.createComponentVNode)(2,d)],4)})})};var l=function(e,n){var t=(0,r.useLocalState)(n,"overlay",null),a=t[0],l=t[1];return(0,o.createComponentVNode)(2,c.Section,{title:a.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return l(null)}}),children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Box,{p:1,backgroundColor:i(a.tag),children:a.tag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Box,{children:a.erptag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Character Ad",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.character_ad||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"OOC Notes",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.ooc_notes||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Flavor Text",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.flavor_text||"Unset."})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.directory,d=(0,r.useLocalState)(n,"sortId","name"),u=d[0],m=(d[1],(0,r.useLocalState)(n,"sortOrder","name")),p=m[0],C=(m[1],(0,r.useLocalState)(n,"overlay",null)),h=(C[0],C[1]);return(0,o.createComponentVNode)(2,c.Section,{title:"Directory",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Refresh",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,s,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,s,{id:"tag",children:"Vore Tag"}),(0,o.createComponentVNode)(2,s,{id:"erptag",children:"ERP Tag"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),l.sort((function(e,n){var t=p?1:-1;return e[u].localeCompare(n[u])*t})).map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{backgroundColor:i(e.tag),children:[(0,o.createComponentVNode)(2,c.Table.Cell,{p:1,children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.tag}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.erptag}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return h(e)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},n)}))]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.id),i=e.children,l=(0,r.useLocalState)(n,"sortId","name"),d=l[0],s=l[1],u=(0,r.useLocalState)(n,"sortOrder","name"),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",color:d!==a&&"transparent",onClick:function(){d===a?p(!m):(s(a),p(!0))},children:[i,d===a&&(0,o.createComponentVNode)(2,c.Icon,{name:m?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},22223:function(e,n,t){"use strict";n.__esModule=!0,n.ChemDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(48229),i=t(85952),l=[5,10,20,30,40,60],d=[1,5,10];n.ChemDispenser=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:390,height:655,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.amount;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",spacing:"1",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",children:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",selected:i===e,content:e+"u",m:"0",fluid:!0,onClick:function(){return a("amount",{amount:e})}})},n)}))})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Custom Amount",children:(0,o.createComponentVNode)(2,c.Slider,{step:1,stepPixelSize:5,value:i,minValue:1,maxValue:120,onDrag:function(e,n){return a("amount",{amount:n})}})})]})})},u=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chemicals,d=void 0===l?[]:l,s=[],u=0;u<(d.length+1)%3;u++)s.push(!0);return(0,o.createComponentVNode)(2,c.Section,{title:i.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:e.title+" ("+e.amount+")",onClick:function(){return a("dispense",{reagent:e.id})}})},n)})),s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"25%",height:"20px"},n)}))]})})},m=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,s=l.isBeakerLoaded,u=l.beakerCurrentVolume,m=l.beakerMaxVolume,p=l.beakerContents,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,o.createComponentVNode)(2,c.Box,{children:[!!s&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mr:2,children:[u," / ",m," units"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!s,onClick:function(){return i("ejectBeaker")}})]}),children:(0,o.createComponentVNode)(2,a.BeakerContents,{beakerLoaded:s,beakerContents:C,buttons:function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return i("remove",{reagent:e.id,amount:-1})}}),d.map((function(n,t){return(0,o.createComponentVNode)(2,c.Button,{content:n,onClick:function(){return i("remove",{reagent:e.id,amount:n})}},t)})),(0,o.createComponentVNode)(2,c.Button,{content:"ALL",onClick:function(){return i("remove",{reagent:e.id,amount:e.volume})}})],0)}})})}},34859:function(e,n,t){"use strict";n.__esModule=!0,n.ChemMaster=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(48229),l=t(16007),d=[1,5,10,30,60];n.ChemMaster=function(e,n){var t=(0,r.useBackend)(n).data,c=t.condi,i=t.beaker,d=t.beaker_reagents,p=void 0===d?[]:d,C=t.buffer_reagents,h=void 0===C?[]:C,N=t.mode;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:500,resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal),(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s,{beaker:i,beakerReagents:p,bufferNonEmpty:h.length>0}),(0,o.createComponentVNode)(2,u,{mode:N,bufferReagents:h}),(0,o.createComponentVNode)(2,m,{isCondiment:c,bufferNonEmpty:h.length>0})]})]})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,s=(t.data,e.beaker),u=e.beakerReagents,m=e.bufferNonEmpty?(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}}):(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",buttons:m,children:s?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,t){return(0,o.createComponentVNode)(2,c.Box,{mb:t0?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,c.Box,{mb:r0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!i.condi&&(0,o.createComponentVNode)(2,c.Button,{icon:i.printing?"spinner":"print",disabled:i.printing,iconSpin:!!i.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})}))},83919:function(e,n,t){"use strict";n.__esModule=!0,n.ClawMachine=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ClawMachine=function(e,n){var t,i=(0,r.useBackend)(n),l=i.act,d=i.data,s=(d.wintick,d.instructions),u=d.gameStatus,m=d.winscreen;return"CLAWMACHINE_NEW"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Pay to Play!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Start",onClick:function(){return l("newgame")}})]}):"CLAWMACHINE_END"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Thank you for playing!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),m,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){return l("return")}})]}):"CLAWMACHINE_ON"===u&&(t=(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[1,7],good:[8,Infinity]},value:d.wintick,minValue:0,maxValue:10})})}),(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Up",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Left",onClick:function(){return l("pointless")}}),(0,o.createComponentVNode)(2,c.Button,{content:"Right",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Down",onClick:function(){return l("pointless")}})]})]})),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createVNode)(1,"center",null,t,0)})}},74351:function(e,n,t){"use strict";n.__esModule=!0,n.Cleanbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Cleanbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.version,p=l.blood,C=(l.patrol,l.vocal),h=l.wet_floors,N=l.spray_blood,V=l.rgbpanel,b=l.red_switch,f=l.green_switch,g=l.blue_switch;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Cleaner "+m,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("blood")},children:p?"Clean":"Ignore"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("vocal")},children:C?"On":"Off"})})]})})||null,!u&&s&&(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:V&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:b?"toggle-on":"toggle-off",backgroundColor:b?"red":"maroon",onClick:function(){return i("red_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:f?"toggle-on":"toggle-off",backgroundColor:f?"green":"darkgreen",onClick:function(){return i("green_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:g?"toggle-on":"toggle-off",backgroundColor:g?"blue":"darkblue",onClick:function(){return i("blue_switch")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Odd Looking Screw Twiddled",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:h,onClick:function(){return i("wet_floors")},icon:"screwdriver",children:h?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weird Button Pressed",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"brown",selected:N,onClick:function(){return i("spray_blood")},icon:"screwdriver",children:N?"Yes":"No"})})]})})})||null]})})}},98213:function(e,n,t){"use strict";n.__esModule=!0,n.CloningConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(76270),l=t(16007),d=t(85952),s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=e.args,s=d.activerecord,u=d.realname,m=d.health,p=d.unidentity,C=d.strucenzymes,h=m.split(" - ");return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:h.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.oxy,inline:!0,children:h[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.toxin,inline:!0,children:h[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.brute,inline:!0,children:h[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.burn,inline:!0,children:h[1]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:p}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:C}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:s})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};n.CloningConsole=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",s),(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,d.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})]})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data.menu;return 1===r?t=(0,o.createComponentVNode)(2,p):2===r&&(t=(0,o.createComponentVNode)(2,C)),t},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.loading,s=l.scantemp,u=l.occupant,m=l.locked,p=l.can_brainscan,C=l.scan_mode,h=l.numberofpods,N=l.pods,V=l.selected_pod,b=m&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,selected:b,icon:b?"toggle-on":"toggle-off",content:b?"Engaged":"Disengaged",onClick:function(){return i("lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:b||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return i("eject")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,a.Box,{color:s.color,children:s.text})}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"brain":"male",content:C?"Brain":"Body",onClick:function(){return i("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u||d,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:h?N.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:V===e.pod,icon:V===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",n+1]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.records;return i.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},h=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.scanner,d=i.numberofpods,s=i.autoallowed,u=i.autoprocess,m=i.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},32278:function(e,n,t){"use strict";n.__esModule=!0,n.ColorMate=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ColorMate=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.items,s=l.activecolor,u=Math.min(270+15*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:d.length&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Paint",children:(0,o.createComponentVNode)(2,c.Flex,{justify:"center",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:s,width:"120px",height:"120px"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50% ",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye-dropper",onClick:function(){return i("select")},children:"Select Color"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fill-drip",onClick:function(){return i("paint")},children:"Paint Items"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tint-slash",onClick:function(){return i("clear")},children:"Remove Paintjob"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return i("eject")},children:"Eject Items"})]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Items",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["#",n+1,": ",e]},n)}))})],4)||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No items inserted."})})})})}},130:function(e,n,t){"use strict";n.__esModule=!0,n.CommunicationsConsoleContent=n.CommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CommunicationsConsole=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.menu_state),i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["ERRROR. Unknown menu_state: ",a,"Please report this to NT Technical Support."]});return 1===a?i=(0,o.createComponentVNode)(2,l):2===a?i=(0,o.createComponentVNode)(2,u):3===a&&(i=(0,o.createComponentVNode)(2,s)),(0,o.createFragment)([(0,o.createComponentVNode)(2,d),i],0)};n.CommunicationsConsoleContent=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.messages,d=i.msg_cooldown,s=i.emagged,u=i.cc_cooldown,m=i.str_security_level,p=i.levels,C=i.authmax,h=i.security_level,N=i.security_level_color,V=i.authenticated,b=i.atcsquelch,f=i.boss_short,g="View ("+l.length+")",k="Make Priority Announcement";d>0&&(k+=" ("+d+"s)");var v=s?"Message [UNKNOWN]":"Message "+f;u>0&&(v+=" ("+u+"s)");var B=m,L=p.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.icon,content:e.name,disabled:!V,selected:e.id===h,onClick:function(){return a("newalertlevel",{level:e.id})}},e.name)}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Site Manager-Only Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Announcement",children:(0,o.createComponentVNode)(2,c.Button,{icon:"bullhorn",content:k,disabled:!C||d>0,onClick:function(){return a("announce")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",color:"red",content:v,disabled:!C||u>0,onClick:function(){return a("MessageSyndicate")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!C,onClick:function(){return a("RestoreBackup")}})]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",content:v,disabled:!C||u>0,onClick:function(){return a("MessageCentCom")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Command Staff Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Alert",color:N,children:B}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Alert",children:L}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Displays",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tv",content:"Change Status Displays",disabled:!V,onClick:function(){return a("status")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"folder-open",content:g,disabled:!V,onClick:function(){return a("messagelist")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Misc",children:(0,o.createComponentVNode)(2,c.Button,{icon:"microphone",content:b?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!V,selected:b,onClick:function(){return a("toggleatc")}})})]})})],4)},d=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,d=l.authenticated,s=l.is_ai,u=l.esc_status,m=l.esc_callable,p=l.esc_recallable;return t=d?s?"AI":1===d?"Command":2===d?"Site Director":"ERROR: Report This Bug!":"Not Logged In",(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"id-card",selected:d,content:d?"Log Out ("+t+")":"Log In",onClick:function(){return i("auth")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Escape Shuttle",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[!!u&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:u}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",content:"Call Shuttle",disabled:!d,onClick:function(){return i("callshuttle")}})}),!!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Recall Shuttle",disabled:!d||s,onClick:function(){return i("cancelshuttle")}})})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.message_current,d=i.message_deletion_allowed,s=i.authenticated,u=i.messages;if(l)return(0,o.createComponentVNode)(2,c.Section,{title:l.title,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Return To Message List",disabled:!s,onClick:function(){return a("messagelist")}}),children:(0,o.createComponentVNode)(2,c.Box,{children:l.contents})});var m=u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View",disabled:!s||l&&l.title===e.title,onClick:function(){return a("messagelist",{msgid:e.id})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Delete",disabled:!s||!d,onClick:function(){return a("delmessage",{msgid:e.id})}})]},e.id)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Messages Received",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.length&&m||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"404",color:"bad",children:"No messages."})})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stat_display,d=i.authenticated,s=l.presets.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.label,selected:e.name===l.type,disabled:!d,onClick:function(){return a("setstat",{statdisp:e.name})}},e.name)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Status Screens",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 1",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_1,disabled:!d,onClick:function(){return a("setmsg1")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 2",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_2,disabled:!d,onClick:function(){return a("setmsg2")}})})]})})}},4220:function(e,n,t){"use strict";n.__esModule=!0,n.Communicator=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=t(22902),s={};n.Communicator=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.currentTab,d=r.video_comm,h=(r.mapRef,(0,a.useLocalState)(n,"videoSetting",0)),N=h[0],V=h[1];return(0,o.createComponentVNode)(2,l.Window,{width:475,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[d&&(0,o.createComponentVNode)(2,u,{videoSetting:N,setVideoSetting:V}),(!d||0!==N)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,i.Box,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:s[c]||(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,C,{videoSetting:N,setVideoSetting:V})],4)]})})};var u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.video_comm,c.mapRef),d=e.videoSetting,s=e.setVideoSetting;return 0===d?(0,o.createComponentVNode)(2,i.Box,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.ByondUi,{width:"100%",height:"95%",params:{id:l,type:"map"}}),(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,mt:.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(1)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})]}):1===d?(0,o.createComponentVNode)(2,i.Box,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,o.createComponentVNode)(2,i.Section,{p:0,m:0,children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(2)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return s(0)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})}),(0,o.createComponentVNode)(2,i.ByondUi,{width:"200px",height:"200px",params:{id:l,type:"map"}})]}):null},m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.currentTab);return(0,o.createComponentVNode)(2,i.Section,{title:"Error!",children:["You tried to access tab #",r,", but there was no template defined!"]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),l=r.time,d=r.connectionStatus,s=r.owner,u=r.occupation;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Icon,{color:1===d?"good":"bad",name:1===d?"signal":"exclamation-triangle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(u)})]})})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.flashlight,l=e.videoSetting,d=e.setVideoSetting;return(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:2===l?"60%":"80%",children:(0,o.createComponentVNode)(2,i.Button,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return r("switch_tab",{switch_tab:1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:c,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return r("Light")}})}),2===l&&(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return d(1)}})})]})},h=function(e,n){var t=(0,a.useBackend)(n).data,o=t.voice_mobs,r=t.communicating,c=t.requestsReceived,i=t.invitesSent,l=t.video_comm;return!("Phone"!==e||!(o.length||r.length||c.length||i.length||l))};s[1]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.homeScreen;return(0,o.createComponentVNode)(2,i.Flex,{mt:2,wrap:"wrap",align:"center",justify:"center",children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Button,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return r("switch_tab",{switch_tab:e.number})},children:(0,o.createComponentVNode)(2,i.Icon,{spin:h(e.module,n),color:h(e.module,n)?"bad":null,name:e.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,o.createComponentVNode)(2,i.Box,{children:e.module})]},e.number)}))})}));var N=function(e,n){for(var t=(0,a.useBackend)(n),r=t.act,c=t.data.targetAddress,l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"].map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e,fontSize:2,fluid:!0,onClick:function(){return r("add_hex",{add_hex:e})}},e)})),d=[],s=0;st?n.length>t?n.slice(0,t)+"...":n:e+n},f=function(e,n,t,o){if(t<0||t>o.length)return V(e,n)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var r=V(e,n),c=V(o[t],n);return r&&c?"TinderMessage_Subsequent_Sent":r||c?r?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"};s[40]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.targetAddressName,s=l.targetAddress,u=l.imList,m=(0,a.useLocalState)(n,"clipboardMode",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:V(e,s)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[V(e,s)?"You":"Them",": ",e.im]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]}):(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:V(e,s)?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:f(e,s,n-1,t),inline:!0,children:(0,c.decodeHtmlEntities)(e.im)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]})}));var g=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:(0,c.decodeHtmlEntities)(l.name)+" by "+(0,c.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:null})}}),children:l.messages.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{children:["- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,c.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,i.Box,{color:"grey",children:["[",e.message_type," by ",(0,c.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))})},k=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Recent News",level:2,children:(0,o.createComponentVNode)(2,i.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,c.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,i.Button,{ml:1,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)};s[5]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.feeds,l=r.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:"News",stretchContents:!0,height:"100%",children:!c.length&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||l&&(0,o.createComponentVNode)(2,g)||(0,o.createComponentVNode)(2,k)})}));s[6]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.note;return(0,o.createComponentVNode)(2,i.Section,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return r("edit")},content:"Edit Notes"}),children:(0,o.createComponentVNode)(2,i.Section,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:c})})}));s[7]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data),d=l.aircontents,s=l.weather;return(0,o.createComponentVNode)(2,i.Section,{title:"Weather",children:[(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Current Conditions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Weather Reports",children:!!s.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.Planet,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time",children:e.Time}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Weather",children:(0,c.toTitleCase)(e.Weather)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:["Current: ",e.Temperature.toFixed(),"\xb0C | High: ",e.High.toFixed(),"\xb0C | Low: ",e.Low.toFixed(),"\xb0C"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Direction",children:e.WindDir}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Speed",children:e.WindSpeed}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Forecast",children:(0,c.decodeHtmlEntities)(e.Forecast)})]})},e.Planet)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})})),s[8]=(0,o.createComponentVNode)(2,d.CrewManifestContent);s[9]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.owner,s=l.occupation,u=l.connectionStatus,m=l.address,p=l.visible,C=l.ring,h=l.selfie_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",fluid:!0,content:(0,c.decodeHtmlEntities)(d),onClick:function(){return r("rename")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Camera Mode",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:h?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return r("selfie_mode")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Occupation",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Disconnected"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Device EPv2 Address",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:p,selected:p,fluid:!0,content:p?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){return r("toggle_visibility")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ringer",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C,selected:C,fluid:!0,content:C?"Ringer on.":"Ringer off.",onClick:function(){return r("toggle_ringer")}})})]})})}))},2174:function(e,n,t){"use strict";n.__esModule=!0,n.ComputerFabricator=void 0;var o=t(39812),r=(t(2497),t(71494)),c=t(74814),a=t(85952);n.ComputerFabricator=function(e,n){var t=(0,r.useBackend)(n),u=t.act,m=t.data;return(0,o.createComponentVNode)(2,a.Window,{title:"Personal Computer Vendor",width:500,height:420,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),0!==m.state&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return u("clean_order")}}),0===m.state&&(0,o.createComponentVNode)(2,i),1===m.state&&(0,o.createComponentVNode)(2,l),2===m.state&&(0,o.createComponentVNode)(2,d),3===m.state&&(0,o.createComponentVNode)(2,s)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 1",minHeight:"306px",children:[(0,o.createComponentVNode)(2,c.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,o.createComponentVNode)(2,c.Box,{mt:3,children:(0,o.createComponentVNode)(2,c.Grid,{width:"100%",children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"1"})}})}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"2"})}})})]})})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"good",children:[i.totalprice,"\u20ae"]}),children:[(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"1"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Adds a secondary RFID card reader, for manipulating or\nreading from a second standard RFID card.\nPlease note that a primary card reader is necessary to\nallow the device to read your identification, but one\nis included in the base price.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_card,onClick:function(){return a("hw_card",{card:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_card,onClick:function(){return a("hw_card",{card:"1"})}})})]}),2!==i.devtype&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A component critical for your device's functionality.\nIt allows you to run programs from your hard drive.\nAdvanced CPUs use more power, but allow you to run\nmore programs on background at once.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"1"})}})})]})]}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return a("confirm_order")}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data);return(0,o.createComponentVNode)(2,c.Section,{title:"Step 3: Payment",minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"good",children:[a.totalprice,"\u20ae"]})]})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.Section,{minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},26090:function(e,n,t){"use strict";n.__esModule=!0,n.CookingAppliance=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.CookingAppliance=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.temperature,s=l.optimalTemp,u=l.temperatureEnough,m=l.efficiency,p=l.containersRemovable,C=l.our_contents;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:u?"good":"blue",value:d,maxValue:s,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d}),"\xb0C / ",s,"\xb0C"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Efficiency",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Containers",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e,n){return e.empty?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("slot",{slot:n+1})},children:"Empty"})}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!p,onClick:function(){return i("slot",{slot:n+1})},children:e.container||"No Container"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.progressText[0],value:e.progress,maxValue:1,children:e.progressText[1]})})]})},n)}))})})]})})}},22902:function(e,n,t){"use strict";n.__esModule=!0,n.CrewManifestContent=n.CrewManifest=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(76270),l=t(2497);n.CrewManifest=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.manifest);return(0,o.createComponentVNode)(2,c.Section,{title:"Crew Manifest",noTopPadding:!0,children:a.map((function(e){return!!e.elems.length&&(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:i.COLORS.manifest[e.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,textAlign:"center",fontSize:1.4,children:e.cat})}),level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Rank"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Active"})]}),e.elems.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{color:"average",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,l.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.active})]},e.name+e.rank)}))]})},e.cat)}))})};n.CrewManifestContent=d},96158:function(e,n,t){"use strict";n.__esModule=!0,n.CrewMonitorContent=n.CrewMonitor=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(71494),i=t(85952),l=t(74814),d=function(e){return e.dead?"Deceased":1===parseInt(e.stat,10)?"Unconscious":"Living"},s=function(e){return e.dead?"red":1===parseInt(e.stat,10)?"orange":"green"};n.CrewMonitor=function(){return(0,o.createComponentVNode)(2,i.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,i=(0,a.useBackend)(n),u=i.act,p=i.data,C=(i.config,(0,a.useLocalState)(n,"tabIndex",0)),h=C[0],N=C[1],V=(0,c.flow)([(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return null==e?void 0:e.x})),(0,r.sortBy)((function(e){return null==e?void 0:e.y})),(0,r.sortBy)((function(e){return null==e?void 0:e.realZ}))])(p.crewmembers||[]),b=(0,a.useLocalState)(n,"zoom",1);b[0],b[1];return t=0===h?(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Location"})]}),V.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:s(e),children:d(e)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,l.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"red",children:e.brute}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"orange",children:e.fire}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"green",children:e.tox}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"blue",children:e.oxy}),")"]}):null]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:3===e.sensor_type?p.isAI?(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return u("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+", "+e.z+")":"Not Available"})]},e.ref)}))]}):1===h?(0,o.createComponentVNode)(2,m):"ERROR",(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Tabs,{children:[(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:0===h,onClick:function(){return N(0)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:1===h,onClick:function(){return N(1)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,l.Box,{m:2,children:t})],4)};n.CrewMonitorContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),c=t.data,i=(0,a.useLocalState)(n,"zoom",1),d=i[0],u=i[1];return(0,o.createComponentVNode)(2,l.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,l.NanoMap,{onZoom:function(e){return u(e)},children:c.crewmembers.filter((function(e){return 3===e.sensor_type&&~~e.realZ==~~r.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,l.NanoMap.Marker,{x:e.x,y:e.y,zoom:d,icon:"circle",tooltip:e.name+" ("+e.assignment+")",color:s(e)},e.ref)}))})})}},99798:function(e,n,t){"use strict";n.__esModule=!0,n.Cryo=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]];n.Cryo=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:520,height:470,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,u=d.isOperating,m=d.hasOccupant,p=d.occupant,C=void 0===p?[]:p,h=d.cellTemperature,N=d.cellTemperatureStatus,V=d.isBeakerLoaded;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"user-slash",onClick:function(){return a("ejectOccupant")},disabled:!m,children:"Eject"}),children:m?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.health)})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[C.stat][0],children:l[C.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C[e.type])})})},e.id)}))]}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cell",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("ejectBeaker")},disabled:!V,children:"Eject Beaker"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a(u?"switchOff":"switchOn")},selected:u,children:u?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",color:N,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:(0,o.createComponentVNode)(2,s)})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.isBeakerLoaded,l=a.beakerLabel,d=a.beakerVolume;return i?(0,o.createFragment)([l||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No label"}),(0,o.createComponentVNode)(2,c.Box,{color:!d&&"bad",children:d?(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d,format:function(e){return Math.round(e)+" units remaining"}}):"Beaker is empty"})],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded"})}},54234:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItems=n.CryoStorageCrew=n.CryoStorage=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CryoStorage=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.crew);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Crew",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"No crew currently stored."})})};n.CryoStorageCrew=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.items;return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("allitems")},children:"Claim All"}),children:i.length&&i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("item",{ref:e.ref})},children:e.name},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItems=l},66384:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItemsVr=n.CryoStorageVr=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(54234);n.CryoStorageVr=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i.CryoStorageCrew),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.items);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItemsVr=l},99579:function(e,n,t){"use strict";n.__esModule=!0,n.DNAForensics=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DNAForensics=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan_progress,s=l.scanning,u=l.bloodsamp,m=l.bloodsamp_desc;return(0,o.createComponentVNode)(2,a.Window,{width:540,height:326,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{selected:s,disabled:!u,icon:"power-off",onClick:function(){return i("scanItem")},children:s?"Halt Scan":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("ejectItem")},children:"Eject Bloodsample"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[99,Infinity],violet:[-Infinity,99]},value:d,maxValue:100})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Blood Sample",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[u,(0,o.createComponentVNode)(2,c.Box,{color:"label",children:m})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No blood sample inserted."})})]})})}},21849:function(e,n,t){"use strict";n.__esModule=!0,n.DNAModifier=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(16007),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],s=[5,10,20,30,50];n.DNAModifier=function(e,n){var t,c=(0,r.useBackend)(n),l=(c.act,c.data),d=l.irradiating,s=l.dnaBlockSize,p=l.occupant;return n.dnaBlockSize=s,n.isDNAInvalid=!p.isViableSubject||!p.uniqueIdentity||!p.structuralEnzymes,d&&(t=(0,o.createComponentVNode)(2,g,{duration:d})),(0,o.createComponentVNode)(2,a.Window,{width:660,height:700,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal),t,(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})]})};var u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,d=i.locked,s=i.hasOccupant,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s,selected:d,icon:d?"toggle-on":"toggle-off",content:d?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s||d,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:s?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider)]})}),n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Unique Enzymes",children:i.occupant.uniqueEnzymes?i.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Cell unoccupied."})})},m=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,s=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,h)],4):"se"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h)],4):"buffer"===s?t=(0,o.createComponentVNode)(2,N):"rejuvenators"===s&&(t=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:s===e[0],onClick:function(){return i("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:e[2]}),e[1]]},n)}))}),t]})):(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedUIBlock,d=i.selectedUISubBlock,s=i.selectedUITarget,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,k,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:s,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,n){return a("changeUITarget",{value:n})}})})}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedSEBlock,d=i.selectedSESubBlock,s=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,k,{dnaString:s.structuralEnzymes,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.radiationIntensity,d=i.radiationDuration;return(0,o.createComponentVNode)(2,c.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationIntensity",{value:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:d,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationDuration",{value:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-right",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},N=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.buffers.map((function(e,n){return(0,o.createComponentVNode)(2,V,{id:n+1,name:"Buffer "+(n+1),buffer:e},n)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Buffers",level:"2",children:a}),(0,o.createComponentVNode)(2,b)],4)},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.id,d=e.name,s=e.buffer,u=i.isInjectorReady,m=d+(s.data?" - "+s.label:"");return(0,o.createComponentVNode)(2,c.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,c.Section,{title:m,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!s.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data||!i.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i.hasDisk||!i.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:l})}})]}),!!s.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:s.owner||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!s.data&&(0,o.createComponentVNode)(2,c.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},b=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.hasDisk,d=i.disk;return(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!l||!d.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:l?d.data?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.label?d.label:"No label"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:d.owner?d.owner:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerVolume,u=i.beakerLabel;return(0,o.createComponentVNode)(2,c.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inject",children:[s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{disabled:e>d,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},n)})),(0,o.createComponentVNode)(2,c.Button,{disabled:d<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:d})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,c.Box,{mb:"0.5rem",children:u||"No label"}),d?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:[d," unit",1===d?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},g=function(e,n){return(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},k=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.dnaString),l=e.selectedBlock,d=e.selectedSubblock,s=e.blockSize,u=e.action,m=i.split(""),p=[],C=function(e){for(var n=e/s+1,t=[],r=function(r){var i=r+1;t.push((0,o.createComponentVNode)(2,c.Button,{selected:l===n&&d===i,content:m[e+r],mb:"0",onClick:function(){return a(u,{block:n,subblock:i})}}))},i=0;i1?"Dangerous!":null]},e.stage)}))||(0,o.createComponentVNode)(2,c.Box,{children:"No virus sample loaded."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Affected Species",color:"label",children:[m&&m.length?null:"None",m.sort().join(", ")]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Reverse Engineering",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",mb:1,children:(0,o.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.stage,icon:"exchange-alt",onClick:function(){return a("grab",{grab:e.reference})}},e.stage)})),(0,o.createComponentVNode)(2,c.Button,{content:"Species",icon:"exchange-alt",onClick:function(){return a("affected_species")}})]})],4)]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dish_inserted,i.buffer),d=i.species_buffer,s=(i.effects,i.info);i.growth,i.affected_species,i.busy;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Memory Buffer",children:l?(0,o.createComponentVNode)(2,c.Box,{children:[l.name," (",l.stage,")"]}):d?(0,o.createComponentVNode)(2,c.Box,{children:d}):"Empty"})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!l&&!d,onClick:function(){return a("disk")}}),l?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #1",disabled:l.stage>1,onClick:function(){return a("splice",{splice:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #2",disabled:l.stage>2,onClick:function(){return a("splice",{splice:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #3",disabled:l.stage>3,onClick:function(){return a("splice",{splice:3})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #4",disabled:l.stage>4,onClick:function(){return a("splice",{splice:4})}})]}):d?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice Species",disabled:!d||s,onClick:function(){return a("splice",{splice:5})}})}):null]})}},31066:function(e,n,t){"use strict";n.__esModule=!0,n.DishIncubator=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.DishIncubator=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.on,u=d.system_in_use,m=d.food_supply,p=d.radiation,C=d.growth,h=d.toxins,N=d.chemicals_inserted,V=d.can_breed_virus,b=d.chemical_volume,f=d.max_chemical_volume,g=d.dish_inserted,k=d.blood_already_infected,v=d.virus,B=d.analysed,L=d.infection_rate;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Environmental Conditions",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:s,content:s?"On":"Off",onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,a.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return l("rad")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return l("flush")}})})]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Virus Food",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,Infinity],average:[20,40],bad:[-Infinity,20]},value:m})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,color:p>=50?"bad":C>=25?"average":"good",value:p,children:[(0,r.formatCommaNumber)(1e4*p)," \xb5Sv"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Toxicity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,Infinity],average:[25,50],good:[-Infinity,25]},value:h})})]})]}),(0,o.createComponentVNode)(2,a.Section,{title:V?"Vial":"Chemicals",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject "+(V?"Vial":"Chemicals"),disabled:!N,onClick:function(){return l("ejectchem")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Breed Virus",disabled:!V,onClick:function(){return l("virus")}})],4),children:N&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:f,value:b,children:[b,"/",f]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Breeding Environment",color:V?"good":"average",children:[g?V?"Suitable":"No hemolytic samples detected":"N/A",k?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No chemicals inserted."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Virus Dish",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Dish",disabled:!g,onClick:function(){return l("ejectdish")}}),children:g?v?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Density",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,25]},value:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Infection Rate",children:B?L:"Unknown."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No virus detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No dish loaded."})})]})})}},19095:function(e,n,t){"use strict";n.__esModule=!0,n.DisposalBin=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.DisposalBin=function(e,n){var t,i,l=(0,r.useBackend)(n),d=l.act,s=l.data;return 2===s.mode?(t="good",i="Ready"):s.mode<=0?(t="bad",i="N/A"):1===s.mode?(t="average",i="Pressurizing"):(t="average",i="Idle"),(0,o.createComponentVNode)(2,a.Window,{width:300,height:250,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Status"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State",color:t,children:i}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[0,99],good:[99,Infinity]},value:s.pressure,minValue:0,maxValue:100})})]}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Controls"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Handle",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:s.isAI||s.panel_open,content:"Disengaged",selected:s.flushing?null:"selected",onClick:function(){return d("disengageHandle")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:s.isAI||s.panel_open,content:"Engaged",selected:s.flushing?"selected":null,onClick:function(){return d("engageHandle")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:-1===s.mode,content:"Off",selected:s.mode?null:"selected",onClick:function(){return d("pumpOff")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:-1===s.mode,content:"On",selected:s.mode?"selected":null,onClick:function(){return d("pumpOn")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",disabled:s.isAI,content:"Eject Contents",onClick:function(){return d("eject")}})})]})]})})})}},29345:function(e,n,t){"use strict";n.__esModule=!0,n.DroneConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DroneConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.drones,s=l.areas,u=l.selected_area,m=l.fabricator,p=l.fabPower;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Drone Fabricator",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!m,selected:p,icon:"power-off",content:p?"Enabled":"Disabled",onClick:function(){return i("toggle_fab")}}),children:m?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Linked."}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Fabricator not detected.",(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){return i("search_fab")}})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Request Drone",children:[(0,o.createComponentVNode)(2,c.Dropdown,{options:s?s.sort():null,selected:u,width:"100%",onSelected:function(e){return i("set_dcall_area",{area:e})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",content:"Send Ping",onClick:function(){return i("ping")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Units",children:d&&d.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Resync",onClick:function(){return i("resync",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return i("shutdown",{ref:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:e.loc}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:[e.charge," / ",e.maxCharge]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active",children:e.active?"Yes":"No"})]})},e.name)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No drones detected."})})]})})}},84122:function(e,n,t){"use strict";n.__esModule=!0,n.EmbeddedController=void 0;var o=t(39812),r=(t(2497),t(41860),t(71494)),c=t(74814),a=t(85952),i=((0,t(88654).createLogger)("fuck"),{});n.EmbeddedController=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data.internalTemplateName),l=i[c];if(!l)throw Error("Unable to find Component for template name: "+c);return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=e.bars;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.color(e.value),minValue:e.minValue,maxValue:e.maxValue,value:e.value,children:e.textValue})},e.label)}))})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=!0;a.interior_status&&"open"===a.interior_status.state?l=!1:a.external_pressure&&a.chamber_pressure&&(l=!(Math.abs(a.external_pressure-a.chamber_pressure)>5));var d=!0;return a.exterior_status&&"open"===a.exterior_status.state?d=!1:a.internal_pressure&&a.chamber_pressure&&(d=!(Math.abs(a.internal_pressure-a.chamber_pressure)>5)),(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return i("cycle_ext")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return i("cycle_int")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:l?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return i("force_ext")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:d?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return i("force_int")}})]})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,u),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"INITIALIZING..."})}),l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===a.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===a.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===a.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Escape Pod Status",children:i[a.docking_status]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.data;t.act;return a.armed?(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"ARMED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SYSTEMS OK"})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!a.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:"docked"!==a.docking_status?"bad":"",onClick:function(){return i("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{selected:a.override_enabled,color:"docked"!==a.docking_status?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return i("toggle_override")}})]})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"DOCKED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"DOCKING"}),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"NOT IN USE"})}[a.docking_status]);return a.override_enabled&&(i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[a.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),i};i.AirlockConsoleAdvanced=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"},u=[{minValue:0,maxValue:202,value:i.external_pressure,label:"External Pressure",textValue:i.external_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.internal_pressure,label:"Internal Pressure",textValue:i.internal_pressure+" kPa",color:s}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:u}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Purge",onClick:function(){return a("purge")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lock-open",content:"Secure",onClick:function(){return a("secure")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsolePhoron=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}},{minValue:0,maxValue:100,value:i.chamber_phoron,label:"Chamber Phoron",textValue:i.chamber_phoron+" mol",color:function(e){return e>5?"bad":e>.5?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleDocking=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Dock",buttons:i.airlock_disabled||i.override_enabled?(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}}):null,children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.DockingConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===i.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===i.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===i.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.override_enabled,content:"Force exterior door",onClick:function(){return a("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dock Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})};i.DockingConsoleMulti=function(e,n){var t=(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Docking Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.Section,{title:"Airlocks",children:t.airlocks.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:t.airlocks.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:e.override_enabled?"bad":"good",label:e.name,children:e.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},e.name)}))}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",mt:"0.5em",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No airlocks found."]})})})],4)};i.DoorAccessConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l="open"===i.interior_status.state||"closed"===i.exterior_status.state,d="open"===i.exterior_status.state||"closed"===i.interior_status.state;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:l?"arrow-left":"exclamation-triangle",content:l?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){a(l?"cycle_ext_door":"force_ext")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"arrow-right":"exclamation-triangle",content:d?"Cycle To Interior":"Lock Interior Door",onClick:function(){a(d?"cycle_int_door":"force_int")}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Exterior Door Status",children:"closed"===i.exterior_status.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Interior Door Status",children:"closed"===i.interior_status.state?"Locked":"Open"})]})})};i.EscapePodConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:i.armed,color:i.armed?"bad":"average",content:"ARM",onClick:function(){return a("manual_arm")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return a("force_launch")}})]})]})],4)};i.EscapePodBerthConsole=function(e,n){(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,m)})],4)}},33777:function(e,n,t){"use strict";n.__esModule=!0,n.ExonetNode=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ExonetNode=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.allowPDAs,u=l.allowCommunicators,m=l.allowNewscasters,p=l.logs;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,content:"Power "+(d?"On":"Off"),onClick:function(){return i("toggle_power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:s,content:s?"Open":"Closed",onClick:function(){return i("toggle_PDA_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Communicators",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return i("toggle_communicator_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return i("toggle_newscaster_port")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Logging",children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:[p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:e},n)})),p&&0!==p.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No logs found."})]})})]})})}},95481:function(e,n,t){"use strict";n.__esModule=!0,n.Materials=n.ExosuitFabricator=void 0;var o,r=t(39812),c=t(34380),a=t(64499),i=t(71494),l=t(58083),d=t(74814),s=t(85952),u=t(2497),m=t(41860);function p(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return C(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);tt?{color:2,deficit:e-t}:n>t?{color:1,deficit:e}:e+n>t?{color:1,deficit:e+n-t}:{color:0,deficit:0}},b=function(e,n,t){var o={textColor:0};return Object.keys(t.cost).forEach((function(r){o[r]=V(t.cost[r],n[r],e[r]),o[r].color>o.textColor&&(o.textColor=o[r].color)})),o};n.ExosuitFabricator=function(e,n){var t,o,c=(0,i.useBackend)(n),a=c.act,l=c.data,u=l.queue||[],m=(t=l.materials||[],o={},t.forEach((function(e){o[e.name]=e.amount})),o),p=function(e,n){var t={},o={},r={},c={};return n.forEach((function(n,a){c[a]=0,Object.keys(n.cost).forEach((function(i){t[i]=t[i]||0,r[i]=r[i]||0,o[i]=V(n.cost[i],t[i],e[i]),0!==o[i].color?c[a]1&&l0}));return 0===l.length?(0,r.createComponentVNode)(2,d.Box,{textAlign:"center",children:[(0,r.createComponentVNode)(2,d.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,r.createVNode)(1,"br"),(0,r.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:l.map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"80px",children:[(0,r.createComponentVNode)(2,k,{name:e.name,amount:e.amount,formatsi:!0}),!a&&(0,r.createComponentVNode)(2,d.Box,{mt:1,style:{"text-align":"center"},children:(0,r.createComponentVNode)(2,f,{material:e})})]},e.name)||null}))})};n.Materials=g;var k=function(e,n){var t=e.name,o=e.amount,a=e.formatsi,i=e.formatmoney,s=e.color,p=e.style,C="0";return C=o<1&&o>0?(0,m.toFixed)(o,2):a?(0,l.formatSiUnit)(o,0):i?(0,l.formatMoney)(o):o,(0,r.createComponentVNode)(2,d.Flex,{direction:"column",align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{className:(0,c.classes)(["sheetmaterials32x32",h[t]]),position:"relative",style:p,children:(0,r.createComponentVNode)(2,d.Tooltip,{position:"bottom",content:(0,u.toTitleCase)(t)})})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{textColor:s,style:{"text-align":"center"},children:C})})]})},v=function(e,n){var t=(0,i.useBackend)(n).data,o=t.partSets||[],c=t.buildableParts||{},a=(0,i.useSharedState)(n,"part_tab",o.length?c[0]:""),l=a[0],s=a[1];return(0,r.createComponentVNode)(2,d.Tabs,{vertical:!0,children:o.map((function(e){return!!c[e]&&(0,r.createComponentVNode)(2,d.Tabs.Tab,{selected:e===l,disabled:!c[e],onClick:function(){return s(e)},children:e},e)}))})},B=function(e,n){var t,o=(0,i.useBackend)(n).data,c=function(e){for(var n,t=p(e);!(n=t()).done;){var o=n.value;if(s[o])return o}return null},l=o.partSets||[],s=o.buildableParts||[],m=e.queueMaterials,C=e.materials,h=(0,i.useSharedState)(n,"part_tab",c(l)),N=h[0],V=h[1],f=(0,i.useSharedState)(n,"search_text",""),g=f[0],k=f[1];if(!N||!s[N]){var v=c(l);if(!v)return;V(v)}return g?(t=[],function(e,n){var t=[];if(e.length){var o=(0,u.createSearch)(e,(function(e){return(e.name||"")+(e.desc||"")+(e.searchMeta||"")}));return Object.keys(n).forEach((function(e){n[e].filter(o).forEach((function(e){t.push(e)}))})),t=(0,a.uniqBy)((function(e){return e.name}))(t)}}(g,s).forEach((function(e){e.format=b(C,m,e),t.push(e)}))):(t={Parts:[]},s[N].forEach((function(e){e.format=b(C,m,e),e.subCategory?(e.subCategory in t||(t[e.subCategory]=[]),t[e.subCategory].push(e)):t.Parts.push(e)}))),(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Section,{children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{mr:1,children:(0,r.createComponentVNode)(2,d.Icon,{name:"search"})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1,children:(0,r.createComponentVNode)(2,d.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,n){return k(n)}})})]})}),!!g&&(0,r.createComponentVNode)(2,L,{name:"Search Results",parts:t,forceShow:!0,placeholder:"No matching results..."})||Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,L,{name:e,parts:t[e]},e)}))],0)},L=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data.buildingPart,a=e.parts,l=e.name,s=e.forceShow,u=e.placeholder,m=(0,i.useSharedState)(n,"display_mats",!1)[0];return(!!a.length||s)&&(0,r.createComponentVNode)(2,d.Section,{title:l,buttons:(0,r.createComponentVNode)(2,d.Button,{disabled:!a.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return o("add_queue_set",{part_list:a.map((function(e){return e.id}))})}}),children:[!a.length&&u,a.map((function(e){return(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Flex,{align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{disabled:c||2===e.format.textColor,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return o("build_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return o("add_queue_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[e.format.textColor],children:e.name})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+e.printTime+"s. "+(e.desc||""),tooltipPosition:"left"})})]}),m&&(0,r.createComponentVNode)(2,d.Flex,{mb:2,children:Object.keys(e.cost).map((function(n){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"50px",color:N[e.format[n].color],children:(0,r.createComponentVNode)(2,k,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:n,amount:e.cost[n]})},n)}))})],0,e.name)}))]})},_=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=c.isProcessingQueue,l=c.queue||[],s=e.queueMaterials,u=e.missingMaterials,m=e.textColors;return(0,r.createComponentVNode)(2,d.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{height:0,grow:1,children:(0,r.createComponentVNode)(2,d.Section,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Button.Confirm,{disabled:!l.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return o("clear_queue")}}),!!a&&(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Stop",icon:"stop",onClick:function(){return o("stop_queue")}})||(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Build Queue",icon:"play",onClick:function(){return o("build_queue")}})],0),children:(0,r.createComponentVNode)(2,d.Flex,{direction:"column",height:"100%",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,S)}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,w,{textColors:m})})]})})}),!!l.length&&(0,r.createComponentVNode)(2,d.Flex.Item,{mt:1,children:(0,r.createComponentVNode)(2,d.Section,{title:"Material Cost",children:(0,r.createComponentVNode)(2,x,{queueMaterials:s,missingMaterials:u})})})]})},x=function(e,n){var t=e.queueMaterials,o=e.missingMaterials;return(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"12%",children:[(0,r.createComponentVNode)(2,k,{formatmoney:!0,name:e,amount:t[e]}),!!o[e]&&(0,r.createComponentVNode)(2,d.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,l.formatMoney)(o[e])})]},e)}))})},w=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=e.textColors,l=c.queue||[];return l.length?l.map((function(e,n){return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.Flex,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,r.createComponentVNode)(2,d.Flex.Item,{basis:"content",children:(0,r.createComponentVNode)(2,d.Button,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return o("del_queue_part",{index:n+1})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[a[n]],children:e.name})})]})},e.name)})):(0,r.createFragment)([(0,r.createTextVNode)("No parts in queue.")],4)},S=function(e,n){var t=(0,i.useBackend)(n).data,o=t.buildingPart,c=t.storedPart;if(c){var a=c.name;return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:1,value:1,color:"average",children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:a}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(o){var l=o.name,s=o.duration,u=o.printTime,m=Math.ceil(s/10);return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:u,value:s,children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:l}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:m>=0&&m+"s"||"Dispensing..."})]})})})}}},95598:function(e,n,t){"use strict";n.__esModule=!0,n.Farmbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Farmbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.locked,u=l.tank,m=l.tankVolume,p=l.tankMaxVolume,C=l.waters_trays,h=l.refills_water,N=l.uproots_weeds,V=l.replaces_nutriment;l.collects_produce,l.removes_dead;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:540,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water Tank",children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No water tank detected."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:s?"good":"bad",children:s?"Locked":"Unlocked"})]})}),!s&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Watering Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("water")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Refill watertank",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("refill")},children:h?"Yes":"No"})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Weeding controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weed plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("weed")},children:N?"Yes":"No"})})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Nutriment controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Replace fertilizer",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("replacenutri")},children:V?"Yes":"No"})})})})]})||null]})})}},17569:function(e,n,t){"use strict";n.__esModule=!0,n.FaxContent=n.Fax=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(28117),l=t(1192);n.Fax=function(e,n){return(0,r.useBackend)(n).data.authenticated?(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.LoginInfo),(0,o.createComponentVNode)(2,d)]})}):(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,l.LoginScreen)]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.bossName,d=i.copyItem,s=i.cooldown,u=i.destination;return(0,o.createComponentVNode)(2,c.Section,{children:[!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:[l," Quantum Entanglement Network"]})}),d&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Currently Sending",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,c.Button,{icon:"map-marker-alt",content:u,onClick:function(){return a("dept")}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",onClick:function(){return a("send")},content:"Send",fluid:!0})]})||(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Please insert item to transmit."})]})};n.FaxContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act;return t.data.copyItem?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return a("remove")},content:"Remove Item"})}):null}},58087:function(e,n,t){"use strict";n.__esModule=!0,n.FileCabinet=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.FileCabinet=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.contents,s=(0,r.sortBy)((function(e){return e.name}))(d||[]);return(0,o.createComponentVNode)(2,i.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"file",content:e.name,onClick:function(){return l("retrieve",{ref:e.ref})}},e.ref)}))})})})}},21902:function(e,n,t){"use strict";n.__esModule=!0,n.Floorbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Floorbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.vocal,p=l.amount,C=l.possible_bmode,h=l.improvefloors,N=l.eattiles,V=l.maketiles,b=l.bmode;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:310,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tiles Left",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("vocal")},children:m?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Improves Floors",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("improve")},children:h?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Finds Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("tiles")},children:N?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("make")},children:V?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Bridge Mode",children:(0,o.createComponentVNode)(2,c.Dropdown,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:C,onSelected:function(e){return i("bridgemode",{dir:e})}})})]})})||null]})})}},309:function(e,n,t){"use strict";n.__esModule=!0,n.GasPump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.GasPump=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=l.last_flow_rate,m=l.last_power_draw,p=l.max_power_draw;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:290,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/10})," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:p,color:m=100?u="Running":!d&&s>0&&(u="DISCHARGING"),(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:d?"This will disable gravity!":"This will enable gravity!",onClick:function(){return i("gentoggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Breaker Setting",children:d?"Generator Enabled":"Generator Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",children:["Generator ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Status",children:[s,"%"]})]})})})})}},95075:function(e,n,t){"use strict";n.__esModule=!0,n.GuestPass=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.GuestPass=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.access,d.area),u=d.giver,m=d.giveName,p=d.reason,C=d.duration,h=d.mode,N=d.log,V=d.uid;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:1===h&&(0,o.createComponentVNode)(2,a.Section,{title:"Activity Log",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return l("mode",{mode:0})}}),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",onClick:function(){return l("print")},fluid:!0,mb:1}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Logs",children:N.length&&N.map((function(e){return(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:e}},e)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No logs."})})]})||(0,o.createComponentVNode)(2,a.Section,{title:"Guest pass terminal #"+V,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",onClick:function(){return l("mode",{mode:1})}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issuing ID",children:(0,o.createComponentVNode)(2,a.Button,{content:u||"Insert ID",onClick:function(){return l("id")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issued To",children:(0,o.createComponentVNode)(2,a.Button,{content:m,onClick:function(){return l("giv_name")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Reason",children:(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return l("reason")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Duration (minutes)",children:(0,o.createComponentVNode)(2,a.Button,{content:C,onClick:function(){return l("duration")}})})]}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return l("issue")}}),(0,o.createComponentVNode)(2,a.Section,{title:"Access",level:2,children:(0,r.sortBy)((function(e){return e.area_name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.on,content:e.area_name,onClick:function(){return l("access",{access:e.area})}},e.area)}))})]})})})}},31875:function(e,n,t){"use strict";n.__esModule=!0,n.GyrotronControlContent=n.GyrotronControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.GyrotronControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.gyros;return(0,o.createComponentVNode)(2,a.Section,{title:"Gyrotrons",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fire Delay"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Strength"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{gyro:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(n,t){return c("set_rate",{gyro:e.ref,rate:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(n,t){return c("set_str",{gyro:e.ref,str:t})}})})]},e.name)}))]})})};n.GyrotronControlContent=i},7908:function(e,n,t){"use strict";n.__esModule=!0,n.Holodeck=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Holodeck=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.restrictedPrograms,u=l.currentProgram,m=l.isSilicon,p=l.safetyDisabled,C=l.emagged,h=l.gravity,N=d;return p&&(N=N.concat(s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:610,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{color:-1!==s.indexOf(e)?"bad":null,icon:"eye",content:e,selected:u===e,fluid:!0,onClick:function(){return i("program",{program:e})}},e)}))}),!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Override",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",fluid:!0,disabled:C,color:p?"good":"bad",onClick:function(){return i("AIoverride")},children:[!!C&&"Error, unable to control. ",p?"Enable Safeties":"Disable Safeties"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:p?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"ENABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{icon:"user-astronaut",selected:h,onClick:function(){return i("gravity")},children:h?"Enabled":"Disabled"})})]})})]})})}},12676:function(e,n,t){"use strict";n.__esModule=!0,n.ICAssembly=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=(t(2497),t(58083));n.ICAssembly=function(e,n){var t=(0,c.useBackend)(n),s=(t.act,t.data),u=s.total_parts,m=s.max_components,p=s.total_complexity,C=s.max_complexity,h=s.battery_charge,N=s.battery_max,V=s.net_power,b=s.unremovable_circuits,f=s.removable_circuits;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Space in Assembly",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:u/m,maxValue:1,children:[u," / ",m," (",(0,r.round)(u/m*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Complexity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:p/C,maxValue:1,children:[p," / ",C," (",(0,r.round)(p/C*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell Charge",children:h&&(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:h/N,maxValue:1,children:[h," / ",N," (",(0,r.round)(h/N*100,1),"%)"]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No cell detected."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Net Energy",children:0===V?"0 W/s":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V,format:function(e){return"-"+(0,l.formatPower)(Math.abs(e))+"/s"}})})]})}),b.length&&(0,o.createComponentVNode)(2,d,{title:"Built-in Components",circuits:b})||null,f.length&&(0,o.createComponentVNode)(2,d,{title:"Removable Components",circuits:f})||null]})})};var d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.title,i=e.circuits;return(0,o.createComponentVNode)(2,a.Section,{title:r,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("open_circuit",{ref:e.ref})},children:"View"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("rename_circuit",{ref:e.ref})},children:"Rename"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("scan_circuit",{ref:e.ref})},children:"Debugger Scan"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("remove_circuit",{ref:e.ref})},children:"Remove"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("bottom_circuit",{ref:e.ref})},children:"Move to Bottom"})]},e.ref)}))})})}},42394:function(e,n,t){"use strict";n.__esModule=!0,n.ICCircuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(58083);n.ICCircuit=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=(u.name,u.desc),p=u.displayed_name,C=(u.removable,u.complexity),h=u.power_draw_idle,N=u.power_draw_per_use,V=u.extended_desc,b=u.inputs,f=u.outputs,g=u.activators;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,title:p,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stats",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("rename")},children:"Rename"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("scan")},children:"Scan with Device"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove")},children:"Remove"})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Complexity",children:C}),h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Idle)",children:(0,l.formatPower)(h)})||null,N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Active)",children:(0,l.formatPower)(N)})||null]}),V]}),(0,o.createComponentVNode)(2,c.Section,{title:"Circuit",children:[(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",spacing:1,children:[b.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Inputs",children:(0,o.createComponentVNode)(2,d,{list:b})})})||null,(0,o.createComponentVNode)(2,c.Flex.Item,{basis:b.length&&f.length?"33%":b.length||f.length?"45%":"100%",children:(0,o.createComponentVNode)(2,c.Section,{title:p,mb:1,children:(0,o.createComponentVNode)(2,c.Box,{children:m})})}),f.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Outputs",children:(0,o.createComponentVNode)(2,d,{list:f})})})||null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Triggers",children:g.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("pin_name",{pin:e.ref})},children:e.pulse_out?"":""}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.name)}))})]})]})})};var d=function(e,n){var t=(0,r.useBackend)(n).act;return e.list.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_name",{pin:e.ref})},children:[(0,i.decodeHtmlEntities)(e.type),": ",e.name]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_data",{pin:e.ref})},children:e.data}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.ref)}))},s=function(e,n){var t=(0,r.useBackend)(n).act,a=e.pin;return a.linked.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_unwire",{pin:a.ref,link:e.ref})},children:e.name}),"@\xa0",(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("examine",{ref:e.holder_ref})},children:e.holder_name})]},e.ref)}))}},81039:function(e,n,t){"use strict";n.__esModule=!0,n.ICDetailer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(2497);n.ICDetailer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.detail_color,u=d.color_list;return(0,o.createComponentVNode)(2,a.Window,{width:420,height:254,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:Object.keys(u).map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.toTitleCase)(e),tooltipPosition:n%6==5?"left":"right",height:"64px",width:"64px",onClick:function(){return l("change_color",{color:e})},style:u[e]===s?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[e]},e)}))})})})}},21687:function(e,n,t){"use strict";n.__esModule=!0,n.ICPrinter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);t(88654);n.ICPrinter=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=i.metal,s=i.max_metal,u=i.metal_per_sheet,m=(i.debug,i.upgraded),p=i.can_clone;i.assembly_to_clone,i.categories;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:630,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Metal",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:l,maxValue:s,children:[l/u," / ",s/u," sheets"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Circuits Available",children:m?"Advanced":"Regular"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Assembly Cloning",children:p?"Available":"Unavailable"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,o.createComponentVNode)(2,d)]})})};var l=function(e,n){return!!e.can_build&&!(e.cost>n.metal)},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.categories,u=(d.debug,(0,r.useSharedState)(n,"categoryTarget",null)),m=u[0],p=u[1],C=(0,i.filter)((function(e){return e.name===m}))(s)[0];return(0,o.createComponentVNode)(2,c.Section,{title:"Circuits",children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{mr:2,children:(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:(0,i.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:m===e.name,onClick:function(){return p(e.name)},children:e.name},e.name)}))})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:C&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,i.sortBy)((function(e){return e.name}))(C.items).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,labelColor:e.can_build?"good":"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l(e,d),icon:"print",onClick:function(){return a("build",{build:e.path})},children:"Print"}),children:e.desc},e.name)}))})})||"No category selected."})]})})}},48522:function(e,n,t){"use strict";n.__esModule=!0,n.IDCard=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(14959);n.IDCard=function(e,n){var t=(0,c.useBackend)(n).data,l=t.registered_name,d=t.sex,s=t.age,u=t.assignment,m=t.fingerprint_hash,p=t.blood_type,C=t.dna_hash,h=t.photo_front,N=[{name:"Sex",val:d},{name:"Age",val:s},{name:"Blood Type",val:p},{name:"Fingerprint",val:m},{name:"DNA Hash",val:C}];return(0,o.createComponentVNode)(2,a.Window,{width:470,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{children:[(0,o.createComponentVNode)(2,r.Flex.Item,{basis:"25%",textAlign:"left",children:(0,o.createComponentVNode)(2,r.Box,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:h&&(0,o.createVNode)(1,"img",null,null,1,{src:h.substr(1,h.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,o.createComponentVNode)(2,r.Icon,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{basis:0,grow:1,children:(0,o.createComponentVNode)(2,r.LabeledList,{children:N.map((function(e){return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:e.name,children:e.val},e.name)}))})})]}),(0,o.createComponentVNode)(2,r.Flex,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:l})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.RankIcon,{rank:u})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:u})})]})]})})})}},76952:function(e,n,t){"use strict";n.__esModule=!0,n.IdentificationComputerRegions=n.IdentificationComputerAccessModification=n.IdentificationComputerPrinting=n.IdentificationComputerContent=n.IdentificationComputer=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952),l=t(2497),d=(t(76270),t(22902));n.IdentificationComputer=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:700,children:(0,o.createComponentVNode)(2,i.Window.Content,{resizable:!0,children:(0,o.createComponentVNode)(2,s)})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.ntos,s=i.mode,p=i.has_modify,C=i.printing,h=(0,o.createComponentVNode)(2,m,{ntos:l});return l&&!i.have_id_slot?h=(0,o.createComponentVNode)(2,d.CrewManifestContent):C?h=(0,o.createComponentVNode)(2,u):1===s&&(h=(0,o.createComponentVNode)(2,d.CrewManifestContent)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(!l||!!i.have_id_slot)&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:0===s,onClick:function(){return r("mode",{mode_target:0})},children:"Access Modification"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:1===s,onClick:function(){return r("mode",{mode_target:1})},children:"Crew Manifest"}),!l||!!i.have_printer&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{float:"right",icon:"print",onClick:function(){return r("print")},disabled:!s&&!p,color:"",children:"Print"})]}),h],0)};n.IdentificationComputerContent=s;var u=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",children:"Please wait..."})};n.IdentificationComputerPrinting=u;var m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.ntos,s=i.station_name,u=i.target_name,m=i.target_owner,C=i.scan_name,h=i.authenticated,N=i.has_modify,V=i.account_number,b=i.centcom_access,f=i.all_centcom_access,g=(i.regions,i.id_rank),k=i.departments;return(0,o.createComponentVNode)(2,a.Section,{title:"Access Modification",children:[!h&&(0,o.createComponentVNode)(2,a.Box,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:u,onClick:function(){return r("modify")}})}),!d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authorized Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:C,onClick:function(){return r("scan")}})})]}),!!h&&!!N&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Details",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Registered Name",children:(0,o.createComponentVNode)(2,a.Input,{value:m,fluid:!0,onInput:function(e,n){return r("reg",{reg:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:(0,o.createComponentVNode)(2,a.Input,{value:V,fluid:!0,onInput:function(e,n){return r("account",{account:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dismissals",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+m,confirmContent:"You are dismissing "+m+", confirm?",onClick:function(){return r("terminate")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Assignment",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:[k.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:e.department_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.job===g,onClick:function(){return r("assign",{assign_target:e.job})},children:(0,l.decodeHtmlEntities)(e.display_name)},e.job)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:-1,children:"\xa0"}),(0,o.createTextVNode)(" ")],0,e.department_name)})),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"Central Command",level:2,children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return r("access",{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})||(0,o.createComponentVNode)(2,a.Section,{title:s,level:2,children:(0,o.createComponentVNode)(2,p,{actName:"access"})})],0)]})};n.IdentificationComputerAccessModification=m;var p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=e.actName,u=d.regions;return(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",spacing:1,children:(0,r.sortBy)((function(e){return e.name}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{mb:1,basis:"content",grow:1,children:(0,o.createComponentVNode)(2,a.Section,{title:e.name,height:"100%",children:(0,r.sortBy)((function(e){return e.desc}))(e.accesses).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return i(s,{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})},e.name)}))})};n.IdentificationComputerRegions=p},44570:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.InputModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952);(0,t(88654).createLogger)("inputmodal");n.InputModal=function(e,n){var t,r,s,u=(0,c.useBackend)(n),m=u.act,p=u.data,C=p.title,h=p.message,N=p.initial,V=p.input_type,b=p.timeout,f=(0,c.useLocalState)(n,"curValue",N),g=f[0],k=f[1],v=function(e){if(e.keyCode===i.KEY_ESCAPE)return e.preventDefault(),void m("cancel")};switch(V){case"text":case"num":r=325,t=Math.max(150,h.length),s=(0,o.createComponentVNode)(2,a.Input,{value:N,width:"100%",autoFocus:!0,autoSelect:!0,onKeyDown:v,onChange:function(e,n){k(n)},onEnter:function(e,n){m("choose",{choice:n})}});break;case"message":r=450,t=350,s=(0,o.createComponentVNode)(2,a.TextArea,{value:N,width:"100%",height:"100%",autoFocus:!0,dontUseTabForIndent:!0,onKeyDown:v,onChange:function(e,n){k(n)}})}return(0,o.createComponentVNode)(2,l.Window,{title:C,theme:"abstract",width:r,height:t,children:[b!==undefined&&(0,o.createComponentVNode)(2,d,{value:b}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,className:"InputModal__Section",title:h,tabIndex:0,children:s})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",onClick:function(){return m("choose",{choice:g})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return m("cancel")}})})]})})]})})]})};var d=function(e){var n=e.value;return(0,o.createVNode)(1,"div","InputModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"InputModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=d},53541:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanel=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanel=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.internalsValid;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act)},children:e.item||"Nothing"})},e.name)}))})}),s&&(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:s&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("internals")},children:"Set Internals"})||null})||null]})})}},46638:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanelHuman=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanelHuman=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.specialSlots,u=(l.internals,l.internalsValid),m=l.sensors,p=l.handcuffed,C=l.handcuffedParams,h=l.legcuffed,N=l.legcuffedParams,V=l.accessory;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)})),(0,o.createComponentVNode)(2,c.LabeledList.Divider),s&&s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)}))]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"running",onClick:function(){return i("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"hand-paper",onClick:function(){return i("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),u&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,m&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"book-medical",onClick:function(){return i("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,p&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",C)},children:"Handcuffed"})||null,h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",N)},children:"Legcuffed"})||null,V&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},45e3:function(e,n,t){"use strict";n.__esModule=!0,n.IsolationCentrifuge=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(74814),a=t(85952);n.IsolationCentrifuge=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.busy,s=l.antibodies,u=l.pathogens,m=l.is_antibody_sample,p=l.sample_inserted,C=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No vial detected."});return p&&(C=s||u?(0,o.createFragment)([s?(0,o.createComponentVNode)(2,c.Section,{title:"Antibodies",children:s}):null,u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Pathogens",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:e.spread_type},e.name)}))})}):null],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No antibodies or viral strains detected."})),(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d?(0,o.createComponentVNode)(2,c.Section,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:d}),2)}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:m?"Antibody Sample":"Blood Sample",children:[(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"print",content:"Print",disabled:!s&&!u.length,onClick:function(){return i("print")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!p,onClick:function(){return i("sample")}})})]}),C]}),s&&!m||u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[s&&!m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Antibodies",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return i("antibody")}})}):null,u.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Strain",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:e.name,onClick:function(){return i("isolate",{isolate:e.reference})}},e.name)}))}):null]})}):null],0)})})}},83994:function(e,n,t){"use strict";n.__esModule=!0,n.JanitorCart=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.JanitorCart=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.mybag,u=d.mybucket,m=d.mymop,p=d.myspray,C=d.myreplacer,h=d.signs;d.icons;return(0,o.createComponentVNode)(2,a.Window,{width:210,height:180,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:s||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:s?"grey":"transparent",style:{border:s?null:"2px solid grey"},onClick:function(){return i("bag")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybag"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:u||"Bucket Slot",tooltipPosition:"bottom",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return i("bucket")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybucket"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?null:"2px solid grey"},onClick:function(){return i("mop")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mymop"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:p||"Spray Slot",tooltipPosition:"top-end",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return i("spray")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myspray"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:C||"Light Replacer Slot",tooltipPosition:"top",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return i("replacer")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myreplacer"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:h||"Signs Slot",tooltipPosition:"top-start",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return i("sign")},children:(0,o.createComponentVNode)(2,l,{iconkey:"signs"})})]})})};var i={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},l=function(e,n){var t=(0,r.useBackend)(n).data,a=e.iconkey,l=t.icons;return a in l?(0,o.createVNode)(1,"img",null,null,1,{src:l[a].substr(1,l[a].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,o.createComponentVNode)(2,c.Icon,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:i[a]})}},68741:function(e,n,t){"use strict";n.__esModule=!0,n.Jukebox=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Jukebox=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.playing,u=d.loop_mode,m=d.volume,p=d.current_track_ref,C=d.current_track,h=d.current_genre,N=d.percent,V=d.tracks,b=V.length&&V.reduce((function(e,n){var t=n.genre||"Uncategorized";return e[t]||(e[t]=[]),e[t].push(n),e}),{}),f=s&&(h||"Uncategorized");return(0,o.createComponentVNode)(2,i.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Currently Playing",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:s&&C&&(0,o.createComponentVNode)(2,a.Box,{children:[C.title," by ",C.artist||"Unkown"]})||(0,o.createComponentVNode)(2,a.Box,{children:"Stopped"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",disabled:s,onClick:function(){return l("play")},children:"Play"}),(0,o.createComponentVNode)(2,a.Button,{icon:"stop",disabled:!s,onClick:function(){return l("stop")},children:"Stop"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Loop Mode",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",onClick:function(){return l("loopmode",{loopmode:1})},selected:1===u,children:"Next"}),(0,o.createComponentVNode)(2,a.Button,{icon:"random",onClick:function(){return l("loopmode",{loopmode:2})},selected:2===u,children:"Shuffle"}),(0,o.createComponentVNode)(2,a.Button,{icon:"redo",onClick:function(){return l("loopmode",{loopmode:3})},selected:3===u,children:"Repeat"}),(0,o.createComponentVNode)(2,a.Button,{icon:"step-forward",onClick:function(){return l("loopmode",{loopmode:4})},selected:4===u,children:"Once"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:1,color:"good"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:0,step:1,value:100*m,maxValue:100,ranges:{good:[75,Infinity],average:[25,75],bad:[0,25]},format:function(e){return(0,r.round)(e,1)+"%"},onChange:function(e,n){return l("volume",{val:(0,r.round)(n/100,2)})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Available Tracks",children:V.length&&Object.keys(b).sort().map((function(e){return(0,o.createComponentVNode)(2,a.Collapsible,{title:e,color:f===e?"green":"default",child_mt:0,children:(0,o.createVNode)(1,"div",null,b[e].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"play",selected:p===e.ref,onClick:function(){return l("change_track",{change_track:e.ref})},children:e.title},e.ref)})),0,{style:{"margin-left":"1em"}})},e)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No songs loaded."})})]})})}},13204:function(e,n,t){"use strict";n.__esModule=!0,n.LawManager=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LawManager=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data.isSlaved);return(0,o.createComponentVNode)(2,a.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[l&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Law-synced to ",l]})||null,(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useSharedState)(n,"lawsTabIndex",0),a=t[0],i=t[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===a,onClick:function(){return i(0)},children:"Law Management"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===a,onClick:function(){return i(1)},children:"Law Sets"})]}),0===a&&(0,o.createComponentVNode)(2,l)||null,1===a&&(0,o.createComponentVNode)(2,s)||null],0)},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.ion_law_nr,s=i.ion_law,u=i.zeroth_law,m=i.inherent_law,p=i.supplied_law,C=i.supplied_law_position,h=i.zeroth_laws,N=i.has_zeroth_laws,V=i.ion_laws,b=i.has_ion_laws,f=i.inherent_laws,g=i.has_inherent_laws,k=i.supplied_laws,v=i.has_supplied_laws,B=i.isAI,L=i.isMalf,_=i.isAdmin,x=i.channel,w=i.channels,S=h.map((function(e){return e.zero=!0,e})).concat(f);return(0,o.createComponentVNode)(2,c.Section,{children:[b&&(0,o.createComponentVNode)(2,d,{laws:V,title:l+" Laws:",mt:-2})||null,(N||g)&&(0,o.createComponentVNode)(2,d,{laws:S,title:"Inherent Laws",mt:-2})||null,v&&(0,o.createComponentVNode)(2,d,{laws:k,title:"Supplied Laws",mt:-2})||null,(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Controls",mt:-2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Statement Channel",children:w.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.channel,selected:x===e.channel,onClick:function(){return a("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_laws")},children:"State Laws"})}),B&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation",onClick:function(){return a("notify_laws")},children:"Notify"})})||null]})}),L&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Add Laws",mt:-2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Add"})]}),_&&!N&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Zero"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:u,fluid:!0,onChange:function(e,n){return a("change_zeroth_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_zeroth_law")},children:"Add"})})]})||null,(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Ion"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onChange:function(e,n){return a("change_ion_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_ion_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:m,fluid:!0,onChange:function(e,n){return a("change_inherent_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_inherent_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:p,fluid:!0,onChange:function(e,n){return a("change_supplied_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("change_supplied_law_position")},children:C})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_supplied_law")},children:"Add"})})]})]})})||null]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,d=i.isAdmin,s=e.laws,u=e.title,m=e.noButtons,p=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["laws","title","noButtons"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Section,Object.assign({level:2,title:u},p,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"State"})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Delete"})],4)||null]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[e.index,"."]}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:e.zero?"bad":null,children:e.law}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"volume-up",selected:e.state,onClick:function(){return a("state_law",{ref:e.ref,state_law:!e.state})},children:e.state?"Yes":"No"})})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,icon:"pen",onClick:function(){return a("edit_law",{edit_law:e.ref})},children:"Edit"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,color:"bad",icon:"trash",onClick:function(){return a("delete_law",{delete_law:e.ref})},children:"Delete"})})],4)||null]},e.index)}))]})})))},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,s=i.law_sets;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"sync",onClick:function(){return a("transfer_laws",{transfer_laws:e.ref})},children:"Load Laws"}),(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_law_set",{state_law_set:e.ref})},children:"State Laws"})],4),children:[e.laws.has_ion_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.ion_laws,title:e.laws.ion_law_nr+" Laws:"})||null,(e.laws.has_zeroth_laws||e.laws.has_inherent_laws)&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.zeroth_laws.concat(e.laws.inherent_laws),title:e.header})||null,e.laws.has_supplied_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.supplied_laws,title:"Supplied Laws"})||null]},e.name)}))||null],0)}},58802:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.ListInput=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952),d=0;n.ListInput=function(e,n){var t=(0,c.useBackend)(n),r=t.act,u=t.data,m=u.title,p=u.message,C=u.buttons,h=u.timeout,N=u.initial,V=(0,c.useLocalState)(n,"search_bar",!1),b=V[0],f=V[1],g=(0,c.useLocalState)(n,"displayed_array",C),k=g[0],v=g[1],B=(0,c.useLocalState)(n,"search_array",[]),L=B[0],_=B[1],x=(0,c.useLocalState)(n,"search_index",0),w=x[0],S=x[1],I=(0,c.useLocalState)(n,"last_char_code",null),y=I[0],T=I[1],A=(0,c.useLocalState)(n,"selected_button",N||C[0]),P=A[0],M=A[1];return(0,o.createComponentVNode)(2,l.Window,{title:m,theme:"abstract",width:325,height:325,children:[h!==undefined&&(0,o.createComponentVNode)(2,s,{value:h}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,autoFocus:!0,className:"ListInput__Section",title:p,tabIndex:0,onKeyDown:function(e){if(e.preventDefault(),!(d>performance.now())){if(d=performance.now()+125,e.keyCode===i.KEY_HOME||e.keyCode===i.KEY_END){var n=e.keyCode===i.KEY_HOME?0:C.length-1;return M(C[n]),T(null),void document.getElementById(C[n]).focus()}if(e.keyCode===i.KEY_UP||e.keyCode===i.KEY_DOWN){var t=1;e.keyCode===i.KEY_UP&&(t=-1);for(var o=0;o=C.length&&(o=0),M(C[o]),T(null),void document.getElementById(C[o]).focus()}if(e.keyCode!==i.KEY_SPACE&&e.keyCode!==i.KEY_ENTER)if(e.keyCode!==i.KEY_ESCAPE){var c=String.fromCharCode(e.keyCode).toLowerCase();if(c){var a;if(c===y&&L.length>0){var l=w+1;l0&&(_(s),S(0),a=s[0])}a&&(T(c),M(a),document.getElementById(a).focus())}}else r("cancel");else r("choose",{choice:P})}},buttons:(0,o.createComponentVNode)(2,a.Button,{compact:!0,icon:"search",color:"transparent",selected:b,tooltip:"Search Bar",tooltipPosition:"left",onClick:function(){f(!b),v(C)}}),children:k.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"transparent",id:e,selected:P===e,onClick:function(){P===e?r("choose",{choice:e}):M(e),T(null)},children:e},e)}))})}),b&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,onInput:function(e,n){return v(C.filter((function(e){return-1!==e.toLowerCase().search(n.toLowerCase())})))}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",disabled:null===P,onClick:function(){return r("choose",{choice:P})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return r("cancel")}})})]})})]})})]})};var s=function(e){var n=e.value;return(0,o.createVNode)(1,"div","ListInput__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"ListInput__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=s},36104:function(e,n,t){"use strict";n.__esModule=!0,n.LookingGlass=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LookingGlass=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.currentProgram,u=l.immersion,m=l.gravity,p=Math.min(180+23*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:p,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",selected:e===s,onClick:function(){return i("program",{program:e})},children:e},e)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"user-astronaut",selected:m,onClick:function(){return i("gravity")},children:m?"Enabled":"Disabled"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Full Immersion",children:(0,o.createComponentVNode)(2,c.Button,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return i("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},74714:function(e,n,t){"use strict";n.__esModule=!0,n.MechaControlConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.MechaControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.beacons,u=d.stored_data;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u.length&&(0,o.createComponentVNode)(2,c.Modal,{children:(0,o.createComponentVNode)(2,c.Section,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["(",e.time,") (",e.year,")"]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,i.decodeHtmlEntities)(e.message)})]},e.time)}))})})||null,s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.ref})},children:"Message"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.ref})},children:"View Log"}),(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,i.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No mecha beacons found."})]})})}},17888:function(e,n,t){"use strict";n.__esModule=!0,n.Medbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Medbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.beaker,m=l.beaker_total,p=l.beaker_max,C=l.locked,h=l.heal_threshold,N=l.heal_threshold_max,V=l.injection_amount_min,b=l.injection_amount,f=l.injection_amount_max,g=l.use_beaker,k=l.declare_treatment,v=l.vocal;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Medical Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("eject")},children:"Eject"}),children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:C?"good":"bad",children:C?"Locked":"Unlocked"})]})}),!C&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavioral Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Healing Threshold",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:0,maxValue:N,value:h,onDrag:function(e,n){return i("adj_threshold",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Injection Amount",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:V,maxValue:f,value:b,onDrag:function(e,n){return i("adj_inject",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reagent Source",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:g?"toggle-on":"toggle-off",selected:g,onClick:function(){return i("use_beaker")},children:g?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Treatment Report",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:k?"toggle-on":"toggle-off",selected:k,onClick:function(){return i("declaretreatment")},children:k?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return i("togglevoice")},children:v?"On":"Off"})})]})})||null]})})}},37610:function(e,n,t){"use strict";n.__esModule=!0,n.MedicalRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.MedicalRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N?t=(0,o.createComponentVNode)(2,C):5===N?t=(0,o.createComponentVNode)(2,V):6===N&&(t=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,c.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.medical,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n).data.general;return t&&t.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"right",textAlign:"right",children:!!t.has_photos&&t.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)}))})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.virus;return i.sort((function(e,n){return e.name>n.name?1:-1})),i.map((function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,n)}))},b=function(e,n){var t=(0,r.useBackend)(n).data.medbots;return 0===t.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"There are no Medbots."}):t.map((function(e,n){return(0,o.createComponentVNode)(2,c.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,c.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Offline"})})]})})},n)}))},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,onClick:function(){return a("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:5===i,onClick:function(){return a("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:6===i,onClick:function(){return a("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===i,onClick:function(){return a("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,n){var t=(0,r.useBackend)(n).act,a=e.args;return(0,o.createComponentVNode)(2,c.Section,{level:2,m:"-1rem",title:a.name||"Virus",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",color:"red",onClick:function(){return t("modal_close")}}),children:(0,o.createComponentVNode)(2,c.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Spread",children:[a.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Possible cure",children:a.antigen}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rate of Progression",children:a.rate}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Antibiotic Resistance",children:[a.resistance,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species Affected",children:a.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:a.symptoms.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]},e.stage)}))})})]})})})}))},287:function(e,n,t){"use strict";n.__esModule=!0,n.MessageMonitor=void 0;var o=t(39812),r=(t(41860),t(2497)),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d=t(67861);n.MessageMonitor=function(e,n){var t,r=(0,c.useBackend)(n),d=(r.act,r.data),p=d.auth,C=d.linkedServer,h=(d.message,d.hacking),N=d.emag;return t=h||N?(0,o.createComponentVNode)(2,s):p?C?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"}):(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,i.Window,{width:670,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice),t]})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.isMalfAI);return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"ERROR",children:r?(0,o.createComponentVNode)(2,a.Box,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,o.createComponentVNode)(2,a.Box,{children:["01000010011100100111010101110100011001010010110",(0,o.createVNode)(1,"br"),"10110011001101111011100100110001101101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001100110011011110111001000100000011100110110010",(0,o.createVNode)(1,"br"),"10111001001110110011001010111001000100000011010110110010",(0,o.createVNode)(1,"br"),"10111100100101110001000000100100101110100001000000111011",(0,o.createVNode)(1,"br"),"10110100101101100011011000010000001110100011000010110101",(0,o.createVNode)(1,"br"),"10110010100100000001100100011000000100000011100110110010",(0,o.createVNode)(1,"br"),"10110001101101111011011100110010001110011001000000110011",(0,o.createVNode)(1,"br"),"00110111101110010001000000110010101110110011001010111001",(0,o.createVNode)(1,"br"),"00111100100100000011000110110100001100001011100100110000",(0,o.createVNode)(1,"br"),"10110001101110100011001010111001000100000011101000110100",(0,o.createVNode)(1,"br"),"00110000101110100001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00111000001100001011100110111001101110111011011110111001",(0,o.createVNode)(1,"br"),"00110010000100000011010000110000101110011001011100010000",(0,o.createVNode)(1,"br"),"00100100101101110001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00110110101100101011000010110111001110100011010010110110",(0,o.createVNode)(1,"br"),"10110010100101100001000000111010001101000011010010111001",(0,o.createVNode)(1,"br"),"10010000001100011011011110110111001110011011011110110110",(0,o.createVNode)(1,"br"),"00110010100100000011000110110000101101110001000000111001",(0,o.createVNode)(1,"br"),"00110010101110110011001010110000101101100001000000111100",(0,o.createVNode)(1,"br"),"10110111101110101011100100010000001110100011100100111010",(0,o.createVNode)(1,"br"),"10110010100100000011010010110111001110100011001010110111",(0,o.createVNode)(1,"br"),"00111010001101001011011110110111001110011001000000110100",(0,o.createVNode)(1,"br"),"10110011000100000011110010110111101110101001000000110110",(0,o.createVNode)(1,"br"),"00110010101110100001000000111001101101111011011010110010",(0,o.createVNode)(1,"br"),"10110111101101110011001010010000001100001011000110110001",(0,o.createVNode)(1,"br"),"10110010101110011011100110010000001101001011101000010111",(0,o.createVNode)(1,"br"),"00010000001001101011000010110101101100101001000000111001",(0,o.createVNode)(1,"br"),"10111010101110010011001010010000001101110011011110010000",(0,o.createVNode)(1,"br"),"00110100001110101011011010110000101101110011100110010000",(0,o.createVNode)(1,"br"),"00110010101101110011101000110010101110010001000000111010",(0,o.createVNode)(1,"br"),"00110100001100101001000000111001001101111011011110110110",(0,o.createVNode)(1,"br"),"10010000001100100011101010111001001101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001110100011010000110000101110100001000000111010",(0,o.createVNode)(1,"br"),"001101001011011010110010100101110"]})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isMalfAI;return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:["Decryption Key:",(0,o.createComponentVNode)(2,a.Input,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(e,n){return r("auth",{key:n})}})]}),!!i&&(0,o.createComponentVNode)(2,a.Button,{icon:"terminal",content:"Hack",onClick:function(){return r("hack")}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},m=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.linkedServer,d=(0,c.useLocalState)(n,"tabIndex",0),s=d[0],u=d[1];return 0===s?t=(0,o.createComponentVNode)(2,p):1===s?t=(0,o.createComponentVNode)(2,C,{logs:l.pda_msgs,pda:!0}):2===s?t=(0,o.createComponentVNode)(2,C,{logs:l.rc_msgs,rc:!0}):3===s?t=(0,o.createComponentVNode)(2,h):4===s&&(t=(0,o.createComponentVNode)(2,N)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bars"})," Main Menu"]},"Main"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"font"})," Message Logs"]},"MessageLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return u(3)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:4===s,onClick:function(){return u(4)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{color:"red",onClick:function(){return i("deauth")},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)},p=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"link",content:"Server Link",onClick:function(){return r("find")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Server "+(i.active?"Enabled":"Disabled"),selected:i.active,onClick:function(){return r("active")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Status",children:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Good"})})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return r("pass")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},C=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.logs),d=e.pda,s=e.rc;return(0,o.createComponentVNode)(2,a.Section,{title:d?"PDA Logs":s?"Request Logs":"Logs",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i(d?"del_pda":"del_rc")}}),children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,a.Section,{title:e.sender+" -> "+e.recipient,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.ref,type:s?"rc":"pda"})}}),children:s?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",children:e.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Verification",color:"Unauthenticated"===e.id_auth?"bad":"good",children:(0,r.decodeHtmlEntities)(e.id_auth)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamp",children:e.stamp})]}):e.message})},e.ref)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.possibleRecipients,d=i.customsender,s=i.customrecepient,u=i.customjob,m=i.custommessage,p=Object.keys(l);return(0,o.createComponentVNode)(2,a.Section,{title:"Admin Messaging",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d,onChange:function(e,n){return r("set_sender",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender's Job",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:u,onChange:function(e,n){return r("set_sender_job",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recipient",children:(0,o.createComponentVNode)(2,a.Dropdown,{value:s,options:p,width:"100%",mb:-.7,onSelected:function(e){return r("set_recipient",{val:l[e]})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,mb:.5,value:m,onChange:function(e,n){return r("set_message",{val:n})}})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return r("send_message")}})]})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Spam Filtering",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:i.spamFilter.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.index,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return r("deltoken",{deltoken:e.index})}}),children:e.token},e.index)}))}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add New Entry",onClick:function(){return r("addtoken")}})]})}},75412:function(e,n,t){"use strict";n.__esModule=!0,n.Microwave=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Microwave=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.config,d=t.data,s=d.broken,u=d.operating,m=d.dirty,p=d.items;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Microwaving in progress!",(0,o.createVNode)(1,"br"),"Please wait...!"]})})||m&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["This microwave is dirty!",(0,o.createVNode)(1,"br"),"Please clean it before use!"]})})||p.length&&(0,o.createComponentVNode)(2,c.Section,{level:1,title:"Ingredients",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",onClick:function(){return i("cook")},children:"Microwave"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("dispose")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.amt," ",e.extra]},e.name)}))})})||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[l.title," is empty."]})})})})}},35016:function(e,n,t){"use strict";n.__esModule=!0,n.MiningOreProcessingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=(t(64499),t(21526));n.MiningOreProcessingConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.unclaimedPoints,u=(d.ores,d.showAllOres,d.power),p=d.speed;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",mr:1,onClick:function(){return r("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",selected:p,onClick:function(){return r("speed_toggle")},children:p?"High-Speed Active":"High-Speed Inactive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,onClick:function(){return r("power")},children:u?"Smelting":"Not Smelting"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:s<1,icon:"download",onClick:function(){return r("claim")},children:"Claim"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})})})}),(0,o.createComponentVNode)(2,m)]})})};var d=["Not Processing","Smelting","Compressing","Alloying"],s=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],u=function(e,n){return-1===s.indexOf(e.ore)||-1===s.indexOf(n.ore)?e.ore-n.ore:s.indexOf(n.ore)-s.indexOf(e.ore)},m=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.ores,m=l.showAllOres;l.power;return(0,o.createComponentVNode)(2,a.Section,{title:"Ore Processing Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("showAllOres")},children:m?"All Ores":"Ores in Machine"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.length&&s.sort(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createComponentVNode)(2,a.Dropdown,{width:"120px",color:(0===e.processing?"red":1===e.processing&&"green")||2===e.processing&&"blue"||3===e.processing&&"yellow",options:d,selected:d[e.processing],onSelected:function(n){return i("toggleSmelting",{ore:e.ore,set:d.indexOf(n)})}}),children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amount})})},e.ore)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},87314:function(e,n,t){"use strict";n.__esModule=!0,n.MiningStackingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(64499);n.MiningStackingConsole=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.stacktypes,u=d.stackingAmt;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Stacker Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stacking",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(e,n){return l("change_stack",{amt:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),s.length&&s.sort().map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.type),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return l("release_stack",{stack:e.type})},children:"Eject"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amt})},e.type)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},62012:function(e,n,t){"use strict";n.__esModule=!0,n.MiningVendor=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(21526);var d={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.MiningVendor=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,s)]})})};var s=function(e,n){var t=(0,c.useBackend)(n),l=(t.act,t.data),s=l.has_id,u=l.id,p=l.items,C=(0,c.useLocalState)(n,"search",""),h=C[0],N=(C[1],(0,c.useLocalState)(n,"sort","Alphabetical")),V=N[0],b=(N[1],(0,c.useLocalState)(n,"descending",!1)),f=b[0],g=(b[1],(0,r.createSearch)(h,(function(e){return e[0]}))),k=!1,v=Object.entries(p).map((function(e,n){var t=Object.entries(e[1]).filter(g).map((function(e){return e[1].affordable=s&&u.points>=e[1].price,e[1]})).sort(d[V]);if(0!==t.length)return f&&(t=t.reverse()),k=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:k?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),l=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(e){return l(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!i.has_id||i.id.points=450?"Overcharged":e>=250?"Good Charge":"Low Charge":e>=250?"NIF Power Requirement met.":e>=150?"Fluctuations in available power.":"Power failure imminent."},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.config,t.data),s=i.nif_percent,u=i.nif_stat,m=(i.last_notification,i.nutrition),p=i.isSynthetic,C=i.modules,h=e.setViewing;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Condition",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,0]},children:[l(u,s)," (",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:s}),"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:700,ranges:{good:[250,Infinity],average:[150,250],bad:[0,150]},children:d(m,p)})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return a("uninstall",{module:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return h(e)},tooltip:"View Information",tooltipPosition:"left"})],4),children:e.activates&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:e.active,content:e.stat_text,onClick:function(){return a("toggle_module",{module:e.ref})}})||(0,o.createComponentVNode)(2,c.Box,{children:e.stat_text})},e.ref)}))})})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.theme;return(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",placeholder:"Default",selected:l,options:i,onSelected:function(e){return a("setTheme",{theme:e})}})})})}},79630:function(e,n,t){"use strict";n.__esModule=!0,n.NTNetRelay=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(67861);n.NTNetRelay=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.dos_crashed,s=(c.enabled,c.dos_overload,c.dos_capacity,(0,o.createComponentVNode)(2,l));return i&&(s=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.Window,{width:i?700:500,height:i?600:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dos_crashed,i.enabled),d=i.dos_overload,s=i.dos_capacity;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:"Relay "+(l?"On":"Off"),onClick:function(){return a("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network Buffer Status",children:[d," / ",s," GQ"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return a("purge")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"ERROR",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createVNode)(1,"h2",null,"NETWORK BUFFERS OVERLOADED",16),(0,o.createVNode)(1,"h3",null,"Overload Recovery Mode",16),(0,o.createVNode)(1,"i",null,"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue.",16),(0,o.createVNode)(1,"h3",null,"ADMINISTRATIVE OVERRIDE",16),(0,o.createVNode)(1,"b",null," CAUTION - Data loss may occur ",16)]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return a("restart")}})})]})}},60042:function(e,n,t){"use strict";n.__esModule=!0,n.Newscaster=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d="Main Menu",s="New Channel",u="View List",m="New Story",p="Print",C="New Wanted",h="View Wanted",N="View Selected Channel";n.Newscaster=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.screen,r.user;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice,{decode:!0}),(0,o.createComponentVNode)(2,V)]})})};var V=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.user,(0,c.useSharedState)(n,"screen",d)),i=r[0],l=r[1],s=b[i];return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,s,{setScreen:l})})},b={"Main Menu":function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.securityCaster,l=r.wanted_issue,d=e.setScreen;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",children:[l&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(h)},color:"bad",children:"Read WANTED Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(u)},children:"View Feed Channels"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(s)},children:"Create Feed Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(m)},children:"Create Feed Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"print",onClick:function(){return d(p)},children:"Print Newspaper"})]}),!!i&&(0,o.createComponentVNode)(2,a.Section,{title:"Feed Security Functions",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(C)},children:'Manage "Wanted" Issue'})})],0)},"New Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.c_locked,m=l.user,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Channel",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Author",color:"good",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accept Public Feeds",children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"lock-open",selected:!u,onClick:function(){return i("set_channel_lock")},children:u?"No":"Yes"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_new_channel")},children:"Submit Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"View List":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.channels,s=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Station Feed Channels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return s(d)},children:"Back"}),children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",color:e.admin?"good":e.censored?"bad":"",onClick:function(){i("show_channel",{show_channel:e.ref}),s(N)},children:(0,r.decodeHtmlEntities)(e.name)},e.name)}))})},"New Story":function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.channel_name,s=i.user,u=i.title,m=i.msg,p=i.photo_data,C=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Message...",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return C(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receiving Channel",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return r("set_channel_receiving")},children:l||"Unset"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Author",color:"good",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Title",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:u||"(no title yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Body",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:m||"(no message yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return r("set_attachment")},children:p?"Photo Attached":"No Photo"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return r("submit_new_message")},children:"Submit Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return C(d)},children:"Cancel"})]})},Print:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.total_num,s=i.active_num,u=i.message_num,m=i.paper_remaining,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",l," Feed channels, ",s," of which are active, and a total of ",u," Feed stories."]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Liquid Paper remaining",children:[100*m," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return r("print_paper")},children:"Print Paper"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"New Wanted":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.msg,m=l.photo_data,p=l.user,C=l.wanted_issue,h=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Wanted Issue Handler",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return h(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[!!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(u),onInput:function(e,n){return i("set_wanted_desc",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return i("set_attachment")},children:m?"Photo Attached":"No Photo"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prosecutor",color:"good",children:p})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_wanted")},children:"Submit Wanted Issue"}),!!C&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){return i("cancel_wanted")},children:"Take Down Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return h(d)},children:"Cancel"})]})},"View Wanted":function(e,n){var t=(0,c.useBackend)(n),i=(t.act,t.data.wanted_issue),l=e.setScreen;return i?(0,o.createComponentVNode)(2,a.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:(0,o.createComponentVNode)(2,a.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Submitted by",color:"good",children:(0,r.decodeHtmlEntities)(i.author)}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal",children:(0,r.decodeHtmlEntities)(i.criminal)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,r.decodeHtmlEntities)(i.desc)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo",children:i.img&&(0,o.createVNode)(1,"img",null,null,1,{src:i.img})||"None"})]})})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Outstanding Wanted Issues",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},"View Selected Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.viewing_channel,s=l.securityCaster,m=l.company,p=e.setScreen;return d?(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(d.name),buttons:(0,o.createFragment)([!!s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return i("toggle_d_notice",{ref:d.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"})],0),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Created By",children:s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,r.decodeHtmlEntities)(d.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return i("censor_channel_author",{ref:d.ref})}})||(0,o.createComponentVNode)(2,a.Box,{children:(0,r.decodeHtmlEntities)(d.author)})})}),!!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",m," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!d.messages.length&&d.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[Story by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.timestamp,"]"]}),!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return i("censor_channel_story_body",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return i("censor_channel_story_author",{ref:e.ref})}})],4)]},e.ref)}))||!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No feed messages found in channel."})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Channel Not Found",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"}),children:"The channel you were looking for no longer exists."})}}},31669:function(e,n,t){"use strict";n.__esModule=!0,n.NoticeBoard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.NoticeBoard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.notices;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:l.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.isphoto&&(0,o.createComponentVNode)(2,c.Button,{icon:"image",content:"Look",onClick:function(){return i("look",{ref:e.ref})}})||e.ispaper&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sticky-note",content:"Read",onClick:function(){return i("read",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Write",onClick:function(){return i("write",{ref:e.ref})}})],4)||"Unknown Entity",(0,o.createComponentVNode)(2,c.Button,{icon:"minus-circle",content:"Remove",onClick:function(){return i("remove",{ref:e.ref})}})]},n)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No notices posted here."})})})})}},63231:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAccessDecrypter=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(76952),i=t(74814);n.NtosAccessDecrypter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.message,u=d.running,m=d.rate,p=d.factor,C=d.regions,h=function(e){for(var n="";n.lengthp?n+="0":n+="1";return n};return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:s})||u&&(0,o.createComponentVNode)(2,i.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate: ",m," PHash/s",(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"ban",onClick:function(){return l("PRG_reset")},children:"Abort"})]})||(0,o.createComponentVNode)(2,i.Section,{title:"Pick access code to decrypt",children:C.length&&(0,o.createComponentVNode)(2,a.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,o.createComponentVNode)(2,i.Box,{children:"Please insert ID card."})})})})}},79760:function(e,n,t){"use strict";n.__esModule=!0,n.NtosArcade=void 0;var o=t(39812),r=t(5908),c=t(71494),a=t(74814),i=t(85952);n.NtosArcade=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:450,height:350,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:2,children:[(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[d.PlayerHitpoints,"HP"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[d.PlayerMP,"MP"]})})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Section,{backgroundColor:1===d.PauseState?"#1b3622":"#471915",children:d.Status})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,Infinity],average:[5,30],bad:[-Infinity,5]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.Hitpoints}),"HP"]}),(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,r.resolveAsset)(d.BossID)})})]})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Attack")},content:"Attack!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Heal")},content:"Heal!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Recharge_Power")},content:"Recharge!"})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Start_Game")},content:"Begin Game"}),(0,o.createComponentVNode)(2,a.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,o.createComponentVNode)(2,a.Box,{color:d.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",d.TicketCount]})]})})})}},97908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAtmosControl=void 0;var o=t(39812),r=t(85952),c=t(46566);n.NtosAtmosControl=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.AtmosControlContent)})})}},63645:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCameraConsole=void 0;var o=t(39812),r=t(85952),c=t(3180);n.NtosCameraConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CameraConsoleContent)})})}},74093:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(130);n.NtosCommunicationsConsole=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.CommunicationsConsoleContent)})})}},55513:function(e,n,t){"use strict";n.__esModule=!0,n.NtosConfiguration=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosConfiguration=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.power_usage,u=l.battery_exists,m=l.battery,p=void 0===m?{}:m,C=l.disk_size,h=l.disk_used,N=l.hardware,V=void 0===N?[]:N;return(0,o.createComponentVNode)(2,a.NtosWindow,{theme:d,width:520,height:630,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Supply",buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",s,"W"]}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,o.createComponentVNode)(2,c.ProgressBar,{value:p.charge,minValue:0,maxValue:p.max,ranges:{good:[p.max/2,Infinity],average:[p.max/4,p.max/2],bad:[-Infinity,p.max/4]},children:[p.charge," / ",p.max]}):"Not Available"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"File System",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:C,color:"good",children:[h," GQ / ",C," GQ"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Hardware Components",children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createFragment)([!e.critical&&(0,o.createComponentVNode)(2,c.Button.Checkbox,{content:"Enabled",checked:e.enabled,mr:1,onClick:function(){return i("PC_toggle_component",{name:e.name})}}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",e.powerusage,"W"]})],0),children:e.desc},e.name)}))})]})})}},17539:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCrewMonitor=void 0;var o=t(39812),r=t(85952),c=t(96158);n.NtosCrewMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CrewMonitorContent)})})}},20025:function(e,n,t){"use strict";n.__esModule=!0,n.NtosDigitalWarrant=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(64499);n.NtosDigitalWarrant=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(c.warrantname,c.warrantcharges,c.warrantauth),d=(c.type,c.allwarrants,(0,o.createComponentVNode)(2,l));return i&&(d=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:500,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:d})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data.allwarrants;return(0,o.createComponentVNode)(2,c.Section,{title:"Warrants",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",fluid:!0,onClick:function(){return a("addwarrant")},children:"Create New Warrant"}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Arrest Warrants",children:(0,o.createComponentVNode)(2,d,{type:"arrest"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Search Warrants",children:(0,o.createComponentVNode)(2,d,{type:"search"})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=e.type,s=l.allwarrants,u=(0,i.filter)((function(e){return e.arrestsearch===d}))(s);return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Name":"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Charges":"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Authorized By"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"})]}),u.length&&u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.warrantname}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.charges}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.auth}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrant",{id:e.id})}})})]},e.id)}))||(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{colspan:"3",color:"bad",children:["No ",d," warrants found."]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.warrantname,d=i.warrantcharges,s=i.warrantauth,u=i.type,m="arrest"===u,p="arrest"===u?"Name":"Location",C="arrest"===u?"Charges":"Reason";return(0,o.createComponentVNode)(2,c.Section,{title:m?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("savewarrant")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("deletewarrant")},children:"Delete"}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:p,buttons:m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return a("editwarrantname")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}}),children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:C,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantcharges")}}),children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Authorized By",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"balance-scale",onClick:function(){return a("editwarrantauth")}}),children:s})]})})}},11325:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailAdministration=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(77006);n.NtosEmailAdministration=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.error,m=c.cur_title,p=c.current_account,C=(0,o.createComponentVNode)(2,l);return i?C=(0,o.createComponentVNode)(2,d):m?C=(0,o.createComponentVNode)(2,s):p&&(C=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:C})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",onClick:function(){return a("newaccount")},children:"Create New Account"}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",onClick:function(){return a("viewaccount",{viewaccount:e.uid})},children:e.login},e.uid)}))]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Message",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:i})},s=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i.NtosEmailClientViewMessage,{administrator:!0})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.error,i.msg_title,i.msg_body,i.msg_timestamp,i.msg_source,i.current_account),d=i.cur_suspended,s=i.messages;i.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing "+l+" in admin mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Status",children:(0,o.createComponentVNode)(2,c.Button,{color:d?"bad":"",icon:"ban",tooltip:(d?"Uns":"S")+"uspend Account?",onClick:function(){return a("ban")},children:d?"Suspended":"Normal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:"key",onClick:function(){return a("changepass")},children:"Change Password"})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Messages",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received at"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("viewmail",{viewmail:e.uid})},children:"View"})})]},e.uid)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No messages found in selected account."})})]})}},77006:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailClientViewMessage=n.NtosEmailClient=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.NtosEmailClient=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.PC_device_theme,s=c.error,u=c.downloading,m=c.current_account,p=(0,o.createComponentVNode)(2,h);return s?p=(0,o.createComponentVNode)(2,C,{error:s}):u?p=(0,o.createComponentVNode)(2,l):m&&(p=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:i,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:p})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),l=a.down_filename,d=a.down_progress,s=a.down_size,u=a.down_speed;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"File",children:[l," (",s," GQ)"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:d,maxValue:s,children:[d,"/",s," (",(0,i.round)(d/s*100,1),"%)"]})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.current_account,d=i.addressbook,C=i.new_message,h=i.cur_title,N=(0,o.createComponentVNode)(2,s);return d?N=(0,o.createComponentVNode)(2,m):C?N=(0,o.createComponentVNode)(2,p):h&&(N=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,c.Section,{title:"Logged in as: "+l,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return a("new_message")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return a("changepassword")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return a("logout")}})],4),children:N})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.folder),d=i.messagecount,s=i.messages;return(0,o.createComponentVNode)(2,c.Section,{level:2,noTopPadding:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Inbox"===l,onClick:function(){return a("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Spam"===l,onClick:function(){return a("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Deleted"===l,onClick:function(){return a("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),d&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received At"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("view",{view:e.uid})},tooltip:"View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("reply",{reply:e.uid})},tooltip:"Reply"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("delete",{"delete":e.uid})},tooltip:"Delete"})]})]},e.timestamp+e.title)}))]})})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["No emails found in ",l,"."]})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.administrator,d=i.cur_title,s=i.cur_source,u=i.cur_timestamp,m=i.cur_body,p=i.cur_hasattachment,C=i.cur_attachment_filename,h=i.cur_attachment_size,N=i.cur_uid;return(0,o.createComponentVNode)(2,c.Section,{title:d,buttons:l?(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("back")}}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return a("reply",{reply:N})}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return a("delete",{"delete":N})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return a("save",{save:N})}}),p&&(0,o.createComponentVNode)(2,c.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return a("downloadattachment")}})||null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return a("cancel",{cancel:N})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"From",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"At",children:u}),p&&!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",color:"average",children:[C," (",h,"GQ)"]})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:m}})})})]})})};n.NtosEmailClientViewMessage=u;var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Address Book",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("set_recipient",{set_recipient:null})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.login,fluid:!0,onClick:function(){return a("set_recipient",{set_recipient:e.login})}},e.login)}))})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.msg_title),d=i.msg_recipient,s=i.msg_body,u=i.msg_hasattachment,m=i.msg_attachment_filename,p=i.msg_attachment_size;return(0,o.createComponentVNode)(2,c.Section,{title:"New Message",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("send")},children:"Send Message"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("cancel")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_title",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_recipient",{val:n})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"address-book",onClick:function(){return a("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachments",buttons:u&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("remove_attachment")},children:"Remove Attachment"})||(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("addattachment")},children:"Add Attachment"}),children:u&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[m," (",p,"GQ)"]})||null}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{width:"99%",inline:!0,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:s}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{verticalAlign:"top",onClick:function(){return a("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},C=function(e,n){var t=(0,r.useBackend)(n).act,a=e.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Notification",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return",onClick:function(){return t("reset")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:a})})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stored_login,d=i.stored_password;return(0,o.createComponentVNode)(2,c.Section,{title:"Please Log In",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Email address",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_login",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Password",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_password",{val:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",onClick:function(){return a("login")},children:"Log In"})]})}},86441:function(e,n,t){"use strict";n.__esModule=!0,n.NtosFileManager=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);t(2497);n.NtosFileManager=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.PC_device_theme,u=d.usbconnected,m=d.filename,p=d.filedata,C=d.error,h=d.files,N=void 0===h?[]:h,V=d.usbfiles,b=void 0===V?[]:V;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:s,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(m||C)&&(0,o.createComponentVNode)(2,c.Section,{title:"Viewing File "+m,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Edit",onClick:function(){return l("PRG_edit")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Print",onClick:function(){return l("PRG_printfile")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Close",onClick:function(){return l("PRG_closefile")}})],4),children:[C||null,p&&(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p}})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i,{files:N,usbconnected:u,onUpload:function(e){return l("PRG_copytousb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onOpen:function(e){return l("PRG_openfile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})}),u&&(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",children:(0,o.createComponentVNode)(2,i,{usbmode:!0,files:b,usbconnected:u,onUpload:function(e){return l("PRG_copyfromusb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})})||null,(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("PRG_newtextfile")},children:"New Text File"})})],0)})})};var i=function(e){var n=e.files,t=void 0===n?[]:n,r=e.usbconnected,a=e.usbmode,i=e.onUpload,l=e.onDelete,d=e.onRename,s=e.onOpen;return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"File"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Size"})]}),t.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.undeletable?e.name:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{width:"80%",content:e.name,currentValue:e.name,tooltip:"Rename",onCommit:function(n,t){return d(e.name,t)}}),(0,o.createComponentVNode)(2,c.Button,{content:"Open",onClick:function(){return s(e.name)}})],4)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.type}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:!e.undeletable&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return l(e.name)}}),!!r&&(a?(0,o.createComponentVNode)(2,c.Button,{icon:"download",tooltip:"Download",onClick:function(){return i(e.name)}}):(0,o.createComponentVNode)(2,c.Button,{icon:"upload",tooltip:"Upload",onClick:function(){return i(e.name)}}))],0)})]},e.name)}))]})}},87369:function(e,n,t){"use strict";n.__esModule=!0,n.NtosIdentificationComputer=void 0;var o=t(39812),r=(t(64499),t(71494)),c=(t(74814),t(85952)),a=(t(2497),t(76270),t(76952));n.NtosIdentificationComputer=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.IdentificationComputerContent,{ntos:!0})})})}},59543:function(e,n,t){"use strict";n.__esModule=!0,n.NtosMain=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"};n.NtosMain=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.device_theme,u=d.programs,m=void 0===u?[]:u,p=d.has_light,C=d.light_on,h=d.comp_light_color,N=d.removable_media,V=void 0===N?[]:N,b=d.login,f=void 0===b?[]:b;return(0,o.createComponentVNode)(2,a.NtosWindow,{title:"syndicate"===s?"Syndix Main Menu":"NtOS Main Menu",theme:s,width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"144px",icon:"lightbulb",selected:C,onClick:function(){return l("PC_toggle_light")},children:["Flashlight: ",C?"ON":"OFF"]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,onClick:function(){return l("PC_light_color")},children:["Color:",(0,o.createComponentVNode)(2,c.ColorBox,{ml:1,color:h})]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"User Login",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",disabled:!f.IDName,onClick:function(){return l("PC_Eject_Disk",{name:"ID"})}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:["ID Name: ",f.IDName]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:["Assignment: ",f.IDJob]})]})}),!!V.length&&(0,o.createComponentVNode)(2,c.Section,{title:"Media Eject",children:(0,o.createComponentVNode)(2,c.Table,{children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:"eject",content:e,onClick:function(){return l("PC_Eject_Disk",{name:e})}})})},e)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:(0,o.createComponentVNode)(2,c.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:i[e.name]||"window-maximize-o",content:e.desc,onClick:function(){return l("PC_runprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:!!e.running&&(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return l("PC_killprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:e.autorun,onClick:function(){return l("PC_setautorun",{name:e.name})},children:"AR"})})]},e.name)}))})})]})})}},73883:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetChat=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetChat=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.can_admin,s=l.adminmode,u=l.authed,m=l.username,p=l.active_channel,C=l.is_operator,h=l.all_channels,N=void 0===h?[]:h,V=l.clients,b=void 0===V?[]:V,f=l.messages,g=void 0===f?[]:f,k=null!==p,v=u||s;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:900,height:675,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.Section,{height:"600px",children:(0,o.createComponentVNode)(2,c.Table,{height:"580px",children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:[(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(e,n){return i("PRG_newchannel",{new_channel_name:n})}}),N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.chan,selected:e.id===p,color:"transparent",onClick:function(){return i("PRG_joinchannel",{id:e.id})}},e.chan)}))]}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,mt:1,content:m+"...",currentValue:m,onCommit:function(e,n){return i("PRG_changename",{new_name:n})}}),!!d&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(s?"ON":"OFF"),color:s?"bad":"good",onClick:function(){return i("PRG_toggleadmin")}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:k&&(v?g.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.msg},e.msg)})):(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,o.createComponentVNode)(2,c.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(e,n){return i("PRG_speak",{message:n})}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"465px",overflowY:"scroll",children:b.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.name},e.name)}))}),k&&v&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(e,n){return i("PRG_savelog",{log_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return i("PRG_leavechannel")}})],4),!!C&&u&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return i("PRG_deletechannel")}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(e,n){return i("PRG_renamechannel",{new_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(e,n){return i("PRG_setpassword",{new_password:n})}})],4)]})]})})})})})}},83908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDosContent=n.NtosNetDos=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetDos=function(e,n){return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.relays,d=void 0===l?[]:l,s=i.focus,u=i.target,m=i.speed,p=i.overload,C=i.capacity,h=i.error;if(h)return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:h}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return a("PRG_reset")}})],4);var N=function(e){for(var n="",t=p/C;n.lengtht?n+="0":n+="1";return n};return u?(0,o.createComponentVNode)(2,c.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{children:["CURRENT SPEED: ",m," GQ/s"]}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)})]}):(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.id,selected:s===e.id,onClick:function(){return a("PRG_target_relay",{targid:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!s,mt:1,onClick:function(){return a("PRG_execute")}})]})};n.NtosNetDosContent=i},83305:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDownloader=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.NtosNetDownloader=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.PC_device_theme,u=d.disk_size,m=d.disk_used,p=d.downloadable_programs,C=void 0===p?[]:p,h=d.error,N=d.hacked_programs,V=void 0===N?[]:N,b=d.hackedavailable;return(0,o.createComponentVNode)(2,i.NtosWindow,{theme:s,width:480,height:735,resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:h}),(0,o.createComponentVNode)(2,a.Button,{content:"Reset",onClick:function(){return r("PRG_reseterror")}})]}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk usage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:u,children:m+" GQ / "+u+" GQ"})})})}),(0,o.createComponentVNode)(2,a.Section,{children:C.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"UNKNOWN Software Repository",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),V.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))]})]})})};var l=function(e,n){var t=e.program,i=(0,c.useBackend)(n),l=i.act,d=i.data,s=d.disk_size,u=d.disk_used,m=d.downloadcompletion,p=(d.downloading,d.downloadname),C=d.downloadsize,h=d.downloadspeed,N=d.downloads_queue,V=s-u;return(0,o.createComponentVNode)(2,a.Box,{mb:3,children:[(0,o.createComponentVNode)(2,a.Flex,{align:"baseline",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{bold:!0,grow:1,children:t.filedesc}),(0,o.createComponentVNode)(2,a.Flex.Item,{color:"label",nowrap:!0,children:[t.size," GQ"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:t.filename===p&&(0,o.createComponentVNode)(2,a.ProgressBar,{color:"green",minValue:0,maxValue:C,value:m,children:[(0,r.round)(m/C*100,1),"% (",h,"GQ/s)"]})||-1!==N.indexOf(t.filename)&&(0,o.createComponentVNode)(2,a.Button,{icon:"ban",color:"bad",onClick:function(){return l("PRG_removequeued",{filename:t.filename})},children:"Queued..."})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",content:"Download",disabled:t.size>V,onClick:function(){return l("PRG_downloadfile",{filename:t.filename})}})})]}),"Compatible"!==t.compatibility&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),t.size>V&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:t.fileinfo})]})}},6806:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetMonitor=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosNetMonitor=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.ntnetrelays,s=l.ntnetstatus,u=l.config_softwaredownload,m=l.config_peertopeer,p=l.config_communication,C=l.config_systemcontrol,h=l.idsalarm,N=l.idsstatus,V=l.ntnetmaxlogs,b=l.maxlogs,f=l.minlogs,g=l.banned_nids,k=l.ntnetlogs,v=void 0===k?[]:k;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,r.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,o.createComponentVNode)(2,r.Section,{title:"Wireless Connectivity",buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:s?"power-off":"times",content:s?"ENABLED":"DISABLED",selected:s,onClick:function(){return i("toggleWireless")}}),children:d?(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Active NTNet Relays",children:d})}):"No Relays Connected"}),(0,o.createComponentVNode)(2,r.Section,{title:"Firewall Configuration",children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Software Downloads",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return i("toggle_function",{id:"1"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return i("toggle_function",{id:"2"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Communication Systems",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){return i("toggle_function",{id:"3"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Remote System Control",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return i("toggle_function",{id:"4"})}})})]})}),(0,o.createComponentVNode)(2,r.Section,{title:"Security Systems",children:[!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,o.createComponentVNode)(2,r.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Banned NIDs",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:"ban",onClick:function(){return i("ban_nid")},children:"Ban NID"}),(0,o.createComponentVNode)(2,r.Button,{icon:"balance-scale",onClick:function(){return i("unban_nid")},children:"Unban NID"})],4),children:g.join(", ")||"None"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"IDS Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:N?"power-off":"times",content:N?"ENABLED":"DISABLED",selected:N,onClick:function(){return i("toggleIDS")}}),(0,o.createComponentVNode)(2,r.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return i("resetIDS")}})],4)}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Max Log Count",buttons:(0,o.createComponentVNode)(2,r.NumberInput,{value:V,minValue:f,maxValue:b,width:"39px",onChange:function(e,n){return i("updatemaxlogs",{new_number:n})}})})]}),(0,o.createComponentVNode)(2,r.Section,{title:"System Log",level:2,buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return i("purgelogs")}}),children:v.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"candystripe",children:e.entry},e.entry)}))})]})]})})}},4363:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetTransfer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetTransfer=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),m=c.error,p=c.downloading,C=c.uploading,h=c.upload_filelist,N=(0,o.createComponentVNode)(2,u);return m?N=(0,o.createComponentVNode)(2,i):p?N=(0,o.createComponentVNode)(2,l):C?N=(0,o.createComponentVNode)(2,d):h.length&&(N=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:N})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"An error has occured during operation.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Reset"}),children:["Additional Information: ",i]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.download_name,d=i.download_progress,s=i.download_size,u=i.download_netspeed;return(0,o.createComponentVNode)(2,c.Section,{title:"Download in progress",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloaded File",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:s,children:[d," / ",s," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Speed",children:[u," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Download"})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.upload_clients,d=i.upload_filename,s=i.upload_haspassword;return(0,o.createComponentVNode)(2,c.Section,{title:"Server enabled",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Clients Connected",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Provided file",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Server Password",children:s?"Enabled":"Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Commands",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Upload"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.upload_filelist;return(0,o.createComponentVNode)(2,c.Section,{title:"File transfer server ready.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Cancel"}),children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Section,{title:"Pick file to serve.",level:2,children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"upload",onClick:function(){return a("PRG_uploadfile",{uid:e.uid})},children:[e.filename," (",e.size,"GQ)"]},e.uid)}))})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.servers;return(0,o.createComponentVNode)(2,c.Section,{title:"Available Files",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"upload",onClick:function(){return a("PRG_uploadmenu")},children:"Send File"}),children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.uid,children:[!!e.haspassword&&(0,o.createComponentVNode)(2,c.Icon,{name:"lock",mr:1}),e.filename,"\xa0 (",e.size,"GQ)\xa0",(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_downloadfile",{uid:e.uid})},children:"Download"})]},e.uid)}))})||(0,o.createComponentVNode)(2,c.Box,{children:"No upload servers found."})})}},23225:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNewsBrowser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(5908);n.NtosNewsBrowser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=u.article,p=u.download,C=u.message,h=(0,o.createComponentVNode)(2,d);return m?h=(0,o.createComponentVNode)(2,l):p&&(h=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!C&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:[C," ",(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return i("PRG_clearmessage")}})]}),h]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.article;if(!l)return(0,o.createComponentVNode)(2,c.Section,{children:"Error: Article not found."});var d=l.title,s=l.cover,u=l.content;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing: "+d,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("PRG_savearticle")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("PRG_reset")},children:"Close"})],4),children:[!!s&&(0,o.createVNode)(1,"img",null,null,1,{src:(0,i.resolveAsset)(s)}),(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:u}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.showing_archived,d=i.all_articles;return(0,o.createComponentVNode)(2,c.Section,{title:"Articles List",buttons:(0,o.createComponentVNode)(2,c.Button.Checkbox,{onClick:function(){return a("PRG_toggle_archived")},checked:l,children:"Show Archived"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_openarticle",{uid:e.uid})}}),children:[e.size," GQ"]},e.uid)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.download,l=i.download_progress,d=i.download_maxprogress,s=i.download_rate;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",minValue:0,value:l,maxValue:d,children:[l," / ",d," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Download Speed",children:[s," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",fluid:!0,onClick:function(){return a("PRG_reset")},children:"Abort Download"})})]})})}},3839:function(e,n,t){"use strict";n.__esModule=!0,n.NtosOvermapNavigation=void 0;var o=t(39812),r=t(85952),c=t(12640);n.NtosOvermapNavigation=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.OvermapNavigationContent)})})}},54698:function(e,n,t){"use strict";n.__esModule=!0,n.NtosPowerMonitor=void 0;var o=t(39812),r=t(85952),c=t(89793);n.NtosPowerMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.PowerMonitorContent)})})}},17086:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRCON=void 0;var o=t(39812),r=t(85952),c=t(43996);n.NtosRCON=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.RCONContent)})})}},69480:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRevelation=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosRevelation=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(e,n){return i("PRG_obfuscate",{new_name:n})},mb:1}),(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Payload Status",buttons:(0,o.createComponentVNode)(2,r.Button,{content:l.armed?"ARMED":"DISARMED",color:l.armed?"bad":"average",onClick:function(){return i("PRG_arm")}})})}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l.armed})]})})})}},93990:function(e,n,t){"use strict";n.__esModule=!0,n.NtosShutoffMonitor=void 0;var o=t(39812),r=t(85952),c=t(89957);n.NtosShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.ShutoffMonitorContent)})})}},76124:function(e,n,t){"use strict";n.__esModule=!0,n.NtosStationAlertConsole=void 0;var o=t(39812),r=t(85952),c=t(32015);n.NtosStationAlertConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:315,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.StationAlertConsoleContent)})})}},22475:function(e,n,t){"use strict";n.__esModule=!0,n.NtosSupermatterMonitor=void 0;var o=t(39812),r=t(85952),c=t(6951);n.NtosSupermatterMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.SupermatterMonitorContent)})})}},66744:function(e,n,t){"use strict";n.__esModule=!0,n.NtosUAV=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosUAV=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current_uav,s=l.signal_strength,u=l.in_use,m=l.paired_uavs;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Selected UAV",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"UAV",children:d&&d.status||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal",children:d&&s||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d.power,onClick:function(){return i("power_uav")},children:d.power?"Online":"Offline"})||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Camera",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,disabled:!d.power,onClick:function(){return i("view_uav")},children:d.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Paired UAVs",children:m.length&&m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"quidditch",onClick:function(){return i("switch_uav",{switch_uav:e.uavref})},children:e.name})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return i("del_uav",{del_uav:e.uavref})}})})]},e.uavref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No UAVs Paired."})})]})})}},19458:function(e,n,t){"use strict";n.__esModule=!0,n.NtosWordProcessor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosWordProcessor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.error,u=l.browsing,m=l.files,p=(l.usbconnected,l.usbfiles,l.filename),C=l.filedata;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:d,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",s,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){return i("PRG_backtomenu")}})]})||u&&(0,o.createComponentVNode)(2,c.Section,{title:"File Browser",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){return i("PRG_closebrowser")}}),children:(0,o.createComponentVNode)(2,c.Section,{title:"Available documents (local)",level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Size (GQ)"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0})]}),m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"file-word",onClick:function(){return i("PRG_openfile",{PRG_openfile:e.name})},children:"Open"})})]},n)}))]})})})||(0,o.createComponentVNode)(2,c.Section,{title:"Document: "+p,children:[(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_newfile")},children:"New"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_loadmenu")},children:"Load"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_savefile")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_saveasfile")},children:"Save As"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_editfile")},children:"Edit"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_txtrpeview")},children:"Preview"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_taghelp")},children:"Formatting Help"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!C,onClick:function(){return i("PRG_printfile")},children:"Print"})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C}})})]})})})}},18326:function(e,n,t){"use strict";n.__esModule=!0,n.OmniFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniFilter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return l("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return l("configure")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:m?m.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.dir+" Port",children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:e.input,icon:"compress-arrows-alt",onClick:function(){return l("switch_mode",{mode:"in",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:e.output,icon:"expand-arrows-alt",onClick:function(){return l("switch_mode",{mode:"out",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:e.input||e.output,content:e.f_type||"None",onClick:function(){return l("switch_filter",{mode:e.f_type,dir:e.dir})}})],4):i(e)},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return l("set_flow_rate")}}):p/10+" L/s"})]})})]})})}},78588:function(e,n,t){"use strict";n.__esModule=!0,n.OmniMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return i("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return i("configure")}})],4),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Port"}),u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Input"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Mode"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Concentration"}),u?(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map((function(e){return(0,o.createComponentVNode)(2,l,{port:e,config:u},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return i("set_flow_rate")}}):p/10+" L/s"})]})})]})})};var l=function(e,n){var t=(0,r.useBackend)(n).act,a=e.port,l=e.config;return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:a.dir+" Port"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:a.input,disabled:a.output,icon:"compress-arrows-alt",onClick:function(){return t("switch_mode",{mode:a.input?"none":"in",dir:a.dir})}}):i(a)}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:a.output,icon:"expand-arrows-alt",onClick:function(){return t("switch_mode",{mode:"out",dir:a.dir})}}):100*a.concentration+"%"}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",width:"20%",children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",icon:"wrench",disabled:!a.input,content:a.input?100*a.concentration+" %":"-",onClick:function(){return t("switch_con",{dir:a.dir})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{icon:a.con_lock?"lock":"lock-open",disabled:!a.input,selected:a.con_lock,content:a.f_type||"None",onClick:function(){return t("switch_conlock",{dir:a.dir})}})})],4):null]})}},48826:function(e,n,t){"use strict";n.__esModule=!0,n.OperatingComputer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(85952),i=t(74814),l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.OperatingComputer=function(e,n){var t,r=(0,c.useBackend)(n),l=r.act,d=r.data,s=d.hasOccupant,u=d.choice;return t=u?(0,o.createComponentVNode)(2,C):s?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,a.Window,{width:650,height:455,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!u,icon:"user",onClick:function(){return l("choiceOff")},children:"Patient"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("choiceOn")},children:"Options"})]}),(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:t})]})})};var m=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Patient",level:"2",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:t.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[t.stat][0],children:l[t.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxHealth,value:t.health/t.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),d.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e[0]+" Damage",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]])},n)},n)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxTemp,value:t.bodyTemperature/t.maxTemp,color:u[t.temperatureSuitability+3],children:[(0,r.round)(t.btCelsius),"\xb0C, ",(0,r.round)(t.btFaren),"\xb0F"]})}),!!t.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.bloodMax,value:t.bloodLevel/t.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[t.bloodPercent,"%, ",t.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pulse",children:[t.pulse," BPM"]})],4)]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Current Procedure",level:"2",children:t.surgery&&t.surgery.length?(0,o.createComponentVNode)(2,i.LabeledList,{children:t.surgery.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current State",children:e.currentStage}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible Next Steps",children:e.nextSteps.map((function(e){return(0,o.createVNode)(1,"div",null,e,0,null,e)}))})]})},e.name)}))}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No procedure ongoing."})})],4)},p=function(){return(0,o.createComponentVNode)(2,i.Flex,{textAlign:"center",height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No patient detected."]})})},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,a=t.data,l=a.verbose,d=a.health,s=a.healthAlarm,u=a.oxy,m=a.oxyAlarm,p=a.crit;return(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Loudspeaker",children:(0,o.createComponentVNode)(2,i.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r(l?"verboseOff":"verboseOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer",children:(0,o.createComponentVNode)(2,i.Button,{selected:d,icon:d?"toggle-on":"toggle-off",content:d?"On":"Off",onClick:function(){return r(d?"healthOff":"healthOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:s,stepPixelSize:"5",ml:"0",format:function(e){return e+"%"},onChange:function(e,n){return r("health_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm",children:(0,o.createComponentVNode)(2,i.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return r(u?"oxyOff":"oxyOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:m,stepPixelSize:"5",ml:"0",onChange:function(e,n){return r("oxy_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Critical Alert",children:(0,o.createComponentVNode)(2,i.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){return r(p?"critOff":"critOn")}})})]})}},51888:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapDisperser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapDisperser=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.faillink,s=l.calibration,u=l.overmapdir,m=l.cal_accuracy,p=l.strength,C=l.range,h=l.next_shot,N=l.nopower,V=(l.skill,l.chargeload);return d?(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",children:(0,o.createComponentVNode)(2,c.Section,{title:"Targeting",textAlign:"center",children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{actToDo:"choose",selected:function(e){return e===u}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"74%",grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Charge",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Load Type",children:V}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cooldown",children:0===h&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Ready"})||h>1&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," Seconds",(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Calibration",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"exchange-alt",onClick:function(){return a("skill_calibration")},children:"Pre-Calibration"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["Cal #",n,":",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"random",onClick:function(){return a("calibration",{calibration:n})},children:e.toString()})]},n)}))})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Setup",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Strength",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",onClick:function(){return a("strength")},children:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radius",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return a("range")},children:C})})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return a("fire")},children:"Fire ORB"})})]})}},25123:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapEnginesContent=n.OvermapEngines=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapEngines=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:390,height:530,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.global_state,d=i.global_limit,s=i.engines_info,u=i.total_thrust;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Engines",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,onClick:function(){return a("global_toggle")},children:l?"Shut All Engines Down":"Start All Engines"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_global_limit")},children:[d,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Thrust",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:0!==n&&-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"80%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:["Engine #",n+1," | Thrust: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust})," | Limit: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust_limiter,format:function(e){return e+"%"}})]}),children:(0,o.createComponentVNode)(2,c.Section,{width:"127%",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Type",children:e.eng_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,c.Box,{color:e.eng_on?1===e.eng_on?"good":"average":"bad",children:e.eng_on?1===e.eng_on?"Online":"Booting":"Offline"}),e.eng_status.map((function(e){return Array.isArray(e)?(0,o.createComponentVNode)(2,c.Box,{color:e[1],children:e[0]}):(0,o.createComponentVNode)(2,c.Box,{children:e})}))]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Thrust",children:e.eng_thrust}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:-.1,engine:e.eng_reference})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_limit",{engine:e.eng_reference})},children:[e.eng_thrust_limiter,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:.1,engine:e.eng_reference})},icon:"plus"})]})]})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,iconSpin:-1===e.eng_on,color:-1===e.eng_on?"purple":null,selected:1===e.eng_on,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:e.eng_reference})},children:e.eng_on?1===e.eng_on?"Shutoff":"Booting":"Startup"})})]},n)}))})],4)};n.OvermapEnginesContent=i},63836:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFull=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(25123),l=t(89380),d=t(51932);n.OvermapFull=function(e,n){var t=(0,r.useLocalState)(n,"overmapFullState",0),s=t[0],u=t[1];return(0,o.createComponentVNode)(2,a.Window,{width:800,height:800,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:"Engines"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:"Helm"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:"Sensors"})]}),0===s&&(0,o.createComponentVNode)(2,i.OvermapEnginesContent),1===s&&(0,o.createComponentVNode)(2,l.OvermapHelmContent),2===s&&(0,o.createComponentVNode)(2,d.OvermapShipSensorsContent)]})})}},89380:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFlightDataWrap=n.OvermapHelmContent=n.OvermapHelm=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapHelm=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:565,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"40%",height:"180px",children:(0,o.createComponentVNode)(2,d)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"25%",height:"180px",children:(0,o.createComponentVNode)(2,s)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"35%",height:"180px",children:(0,o.createComponentVNode)(2,u)})]}),(0,o.createComponentVNode)(2,m)],4)};n.OvermapHelmContent=l;var d=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Flight Data",16),(0,o.createComponentVNode)(2,i.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})};n.OvermapFlightDataWrap=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.canburn,s=l.manual_control;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Manual Control",16),(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{disabled:!d,actToDo:"move"})})}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",mt:1,children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,o.createComponentVNode)(2,c.Button,{selected:s,onClick:function(){return a("manual")},icon:"compass",children:s?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.dest,d=i.d_x,s=i.d_y,u=i.speedlimit,m=i.autopilot;return i.autopilot_disabled?(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return a("apilot_lock")}})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{setx:!0})},children:d}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{sety:!0})},children:s})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed Limit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tachometer-alt",onClick:function(){return a("speedlimit")},children:[u," Gm/h"]})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,selected:m,disabled:!l,icon:"robot",onClick:function(){return a("apilot")},children:m?"Engaged":"Disengaged"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return a("apilot_lock")},children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.sector,d=i.s_x,s=i.s_y,u=i.sector_info,m=i.landed,p=i.locations;return(0,o.createComponentVNode)(2,c.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordinates",children:[d," : ",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Data",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:m})]}),(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"save",onClick:function(){return a("add",{add:"current"})},children:"Save Current Position"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"sticky-note",onClick:function(){return a("add",{add:"new"})},children:"Add New Entry"})})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,scrollable:!0,height:"130px",children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Coordinates"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.x," : ",e.y]}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",onClick:function(){return a("setds",{x:e.x,y:e.y})},children:"Plot Course"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return a("remove",{remove:e.reference})},children:"Remove"})]})]},e.name)}))]})})]})}},12640:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapNavigationContent=n.OvermapNavigation=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapNavigation=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sector,s=l.s_x,u=l.s_y,m=l.sector_info,p=l.viewing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Current Location",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:p,onClick:function(){return a("viewing")},children:"Map View"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordiantes",children:[s," : ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Additional Information",children:m})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flight Data",children:(0,o.createComponentVNode)(2,i.OvermapFlightData,{disableLimiterControls:!0})})],4)};n.OvermapNavigationContent=l},84031:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShieldGenerator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShieldGenerator=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:500,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=i.modes,u=i.offline_for;return u?(0,o.createComponentVNode)(2,c.Section,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",u," seconds."]}):(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Section,{title:"Field Calibration",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:e.status,onClick:function(){return a("toggle_mode",{toggle_mode:e.flag})},children:e.status?"Enabled":"Disabled"}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e.desc}),(0,o.createComponentVNode)(2,c.Box,{mt:.5,children:["Multiplier: ",e.multiplier]})]},e.name)}))})],4)},l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.running,l=a.overloaded,d=a.mitigation_max,s=a.mitigation_physical,u=a.mitigation_em,m=a.mitigation_heat,p=a.field_integrity,C=a.max_energy,h=a.current_energy,N=a.percentage_energy,V=a.total_segments,b=a.functional_segments,f=a.field_radius,g=a.target_radius,k=a.input_cap_kw,v=a.upkeep_power_usage,B=a.power_usage,L=a.spinup_counter;return(0,o.createComponentVNode)(2,c.Section,{title:"System Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Generator is",children:1===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Shutting Down"})||2===i&&(l&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Overloaded"})||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Running"}))||3===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Inactive"})||4===i&&(0,o.createComponentVNode)(2,c.Box,{color:"blue",children:["Spinning Up\xa0",g!==f&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[2*L,"s"]})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Offline"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Storage",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,maxValue:C,children:[h," / ",C," MJ (",N,"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shield Integrity",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mitigation",children:[u,"% EM / ",s,"% PH / ",m,"% HE / ",d,"% MAX"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:v})," kW"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Energy Use",children:k&&(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:B,maxValue:k,children:[B," / ",k," kW"]})})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:B})," kW (No Limit)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Field Size",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"\xa0/\xa0",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V})," m\xb2 (radius ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),", target ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),")"]})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.running,d=i.hacked,s=i.idle_multiplier,u=i.idle_valid_values;return(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createFragment)([l>=2&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("begin_shutdown")},selected:!0,children:"Turn off"}),3===l&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("start_generator")},children:"Turn on"}),l&&d&&(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",onClick:function(){return a("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",onClick:function(){return a("set_range")},children:"Set Field Range"}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",onClick:function(){return a("set_input_cap")},children:"Set Input Cap"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Set inactive power use intensity",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e===s,disabled:4===l,onClick:function(){return a("switch_idle",{switch_idle:e})},children:e},e)}))})})]})}},51932:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShipSensorsContent=n.OvermapShipSensors=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShipSensors=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:375,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.viewing,d=i.on,s=i.range,u=i.health,m=i.max_health,p=i.heat,C=i.critical_heat,h=i.status,N=i.contacts;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:l,onClick:function(){return a("viewing")},children:"Map View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return a("toggle_sensor")},children:d?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,c.Button,{icon:"signal",onClick:function(){return a("range")},children:s})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*m,Infinity],average:[.25*m,.75*m],bad:[-Infinity,.25*m]},value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*C,Infinity],average:[.5*C,.75*C],good:[-Infinity,.5*C]},value:p,maxValue:C,children:p<.5*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Temperature low."})||p<.75*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Sensor temperature high!"})||(0,o.createComponentVNode)(2,c.Box,{children:"TEMPERATURE CRITICAL: Disable or reduce power immediately!"})})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Contacts",children:N.length&&N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"search",onClick:function(){return a("scan",{scan:e.ref})},children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,inline:!0,children:["Scan: ",e.name]}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[", bearing: ",e.bearing,"\xb0"]})]},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No contacts on sensors."})}),"MISSING"===i.status&&(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wifi",onClick:function(){return a("link")},children:"Link up with sensor suite?"})})||null],0)};n.OvermapShipSensorsContent=i},57966:function(e,n,t){"use strict";n.__esModule=!0,n.ParticleAccelerator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ParticleAccelerator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.assembled,s=l.power,u=l.strength;return(0,o.createComponentVNode)(2,a.Window,{width:350,height:185,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Run Scan",onClick:function(){return i("scan")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:d?"good":"bad",children:d?"Ready - All parts in place":"Unable to detect all parts"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Particle Accelerator Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:!d,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Particle Strength",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:!d,onClick:function(){return i("remove_strength")}})," ",String(u).padStart(1,"0")," ",(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:!d,onClick:function(){return i("add_strength")}})]})]})})]})})}},80374:function(e,n,t){"use strict";n.__esModule=!0,n.PartsLathe=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(95481);n.PartsLathe=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.panelOpen,s.copyBoard),m=s.copyBoardReqComponents,p=s.queue,C=s.building,h=s.buildPercent,N=s.error,V=s.recipies;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[N&&(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:["Missing Materials: ",N]})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,l.Materials,{displayAllMat:!0})}),C&&(0,o.createComponentVNode)(2,c.Section,{title:"Currently Building",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:(0,i.toTitleCase)(C)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:h,maxValue:100})})]})})||null,u&&(0,o.createComponentVNode)(2,c.Section,{title:"Circuit Reader",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Loaded Circuit",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return d("ejectBoard")},children:"Eject"}),children:(0,i.toTitleCase)(u)})}),m&&m.length&&(0,o.createFragment)([m.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[e.qty," x ",(0,i.toTitleCase)(e.name)]},e.name)})),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queueBoard")},children:"Build All"})],0)||(0,o.createComponentVNode)(2,c.Box,{children:"Board has no required components."})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Queue",children:p.length&&p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["#",n+1,": ",(0,i.toTitleCase)(e),(n>0||!C)&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"times",onClick:function(){return d("cancel",{cancel:n+1})},children:"Cancel"})||null]},e)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Recipes",children:V.length&&V.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queue",{queue:e.type})},children:(0,i.toTitleCase)(e.name)})},e.name)}))})]})})}},83987:function(e,n,t){"use strict";n.__esModule=!0,n.PathogenicIsolator=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(16007),a=t(74814),i=t(85952),l=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.can_print,l=e.args;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",title:l.name||"Virus",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!i,icon:"print",content:"Print",onClick:function(){return c("print",{type:"virus_record",vir:l.record})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return c("modal_close")}})],4),children:(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Spread",children:[l.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Possible cure",children:l.antigen}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rate of Progression",children:l.rate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Antibiotic Resistance",children:[l.resistance,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species Affected",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:l.symptoms.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0"]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]})]},e.stage)}))})})]})})})};n.PathogenicIsolator=function(e,n){var t=(0,r.useBackend)(n),u=(t.act,t.data.isolating),m=(0,r.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=null;return 0===p?h=(0,o.createComponentVNode)(2,d):1===p&&(h=(0,o.createComponentVNode)(2,s)),(0,c.modalRegisterBodyOverride)("virus",l),(0,o.createComponentVNode)(2,i.Window,{height:500,width:520,resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[u&&(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Home"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Database"})]}),h]})]})};var d=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.syringe_inserted,d=i.pathogen_pool,s=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Pathogens",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!s,onClick:function(){return c("print",{type:"patient_diagnosis"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Syringe",disabled:!l,onClick:function(){return c("eject")}})],4),children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[(0,o.createVNode)(1,"u",null,[(0,o.createTextVNode)("Stamm #"),e.unique_id],0),e.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Isolate",onClick:function(){return c("isolate",{isolate:e.reference})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Database",disabled:!e.is_in_database,onClick:function(){return c("view_entry",{vir:e.record})}})]})]})}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",mb:1,children:e.name}),e.dna]})]},e.unique_id)}))||(l?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No samples detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No syringe inserted."}))})},s=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.database,d=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Database",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!d,onClick:function(){return c("print",{type:"virus_list"})}}),children:l.length&&l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("view_entry",{vir:e.record})},children:e.name},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"The viral database is empty."})})}},72586:function(e,n,t){"use strict";n.__esModule=!0,n.Pda=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(73218),l=t(75168);n.Pda=function(e,n){var t=(0,r.useBackend)(n),m=(t.act,t.data),p=m.app,C=m.owner,h=m.useRetro;if(!C)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var N=function(e){var n;try{n=l("./"+e+".js")}catch(t){if("MODULE_NOT_FOUND"===t.code)return(0,i.routingError)("notFound",e);throw t}return n[e]||(0,i.routingError)("missingExport",e)}(p.template),V=(0,r.useLocalState)(n,"settingsMode",!1),b=V[0],f=V[1];return(0,o.createComponentVNode)(2,a.Window,{width:580,height:670,theme:h?"pda-retro":null,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{settingsMode:b,setSettingsMode:f}),b&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Box,{mb:8}),(0,o.createComponentVNode)(2,u,{setSettingsMode:f})]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.settingsMode,d=e.setSettingsMode,s=i.idInserted,u=i.idLink,m=(i.cartridge_name,i.stationTime);return(0,o.createComponentVNode)(2,c.Box,{mb:1,children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-between",children:[!!s&&(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",color:"transparent",onClick:function(){return a("Authenticate")},content:u})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:m}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{selected:l,onClick:function(){return d(!l)},icon:"cog"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("Retro")},icon:"adjust"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.idInserted,d=i.idLink,s=i.cartridge_name,u=i.touch_silent;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",content:"Retro Theme",onClick:function(){return a("Retro")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Touch Sounds",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",selected:!u,content:u?"Disabled":"Enabled",onClick:function(){return a("TouchSounds")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cartridge",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Eject")},content:s})}),!!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Authenticate")},content:d})})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.setSettingsMode,d=i.app,s=i.useRetro;return(0,o.createComponentVNode)(2,c.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:s?"#6f7961":"#1b1b1b",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return a("Back")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){l(!1),a("Home")}})})]})})}},67589:function(e,n,t){"use strict";n.__esModule=!0,n.PersonalCrafting=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t=.5?"good":s>.15&&"average")||"bad";return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!d.anchored&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Generator not anchored."}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power switch",children:(0,o.createComponentVNode)(2,c.Button,{icon:d.active?"power-off":"times",onClick:function(){return l("toggle_power")},selected:d.active,disabled:!d.ready_to_boot,children:d.active?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Type",buttons:d.fuel_stored>=1&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"eject",disabled:d.active,onClick:function(){return l("eject")},children:"Eject"}),children:(0,o.createComponentVNode)(2,c.Box,{color:u,children:[d.fuel_stored,"cm\xb3 ",d.sheet_name]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current fuel level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.fuel_stored/d.fuel_capacity,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[d.fuel_stored,"cm\xb3 / ",d.fuel_capacity,"cm\xb3"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Usage",children:[d.fuel_usage," cm\xb3/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.temperature_current,maxValue:d.temperature_max+30,color:d.temperature_overheat?"bad":"good",children:[(0,i.round)(d.temperature_current),"\xb0C"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current output",color:d.unsafe_output?"bad":null,children:d.power_output}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Adjust output",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",onClick:function(){return l("lower_power")},children:d.power_generated}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("higher_power")},children:d.power_generated})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power available",children:(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:!d.connected&&"bad",children:d.connected?d.power_available:"Unconnected"})})]})})]})})}},82564:function(e,n,t){"use strict";n.__esModule=!0,n.PortablePump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(34227);n.PortablePump=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.direction,u=d.target_pressure,m=d.default_pressure,p=d.min_pressure,C=d.max_pressure;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:375,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Pump",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"sign-in-alt":"sign-out-alt",content:s?"In":"Out",selected:s,onClick:function(){return l("direction")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:p,maxValue:C,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(e,n){return l("pressure",{pressure:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",disabled:u===p,onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",disabled:u===m,onClick:function(){return l("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",disabled:u===C,onClick:function(){return l("pressure",{pressure:"max"})}})]})]})})]})})}},24901:function(e,n,t){"use strict";n.__esModule=!0,n.PortableScrubber=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952)),i=t(34227);n.PortableScrubber=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.rate,u=d.minrate,m=d.maxrate;return(0,o.createComponentVNode)(2,a.Window,{width:320,height:350,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Power Regulator",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Rate",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:u,maxValue:m,value:s,unit:"L/s",onChange:function(e,n){return l("volume_adj",{vol:n})}})})})})]})})}},31695:function(e,n,t){"use strict";n.__esModule=!0,n.PortableTurret=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.PortableTurret=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.on,u=l.lethal,m=l.lethal_is_configurable,p=l.targetting_is_configurable,C=l.check_weapons,h=l.neutralize_noaccess,N=l.neutralize_norecord,V=l.neutralize_criminals,b=l.neutralize_all,f=l.neutralize_nonsynth,g=l.neutralize_unidentified,k=l.neutralize_down;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe an ID card to ",d?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:d,onClick:function(){return i("power")}})}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Lethals",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"exclamation-triangle":"times",content:u?"On":"Off",color:u?"bad":"",disabled:d,onClick:function(){return i("lethal")}})})]})}),!!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Humanoid Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:V,content:"Wanted Criminals",disabled:d,onClick:function(){return i("autharrest")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:N,content:"No Sec Record",disabled:d,onClick:function(){return i("authnorecord")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:C,content:"Unauthorized Weapons",disabled:d,onClick:function(){return i("authweapon")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:h,content:"Unauthorized Access",disabled:d,onClick:function(){return i("authaccess")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Other Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:g,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:d,onClick:function(){return i("authxeno")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:f,content:"All Non-Synthetics",disabled:d,onClick:function(){return i("authsynth")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:k,content:"Downed Targets",disabled:d,onClick:function(){return i("authdown")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:d,onClick:function(){return i("authall")}})]})],4)]})})}},89793:function(e,n,t){"use strict";n.__esModule=!0,n.AreaCharge=n.PowerMonitorFocus=n.PowerMonitorContent=n.PowerMonitor=n.powerRank=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(41860),i=t(34380),l=t(71494),d=t(74814),s=t(85952),u=5e5,m=function(e){var n=String(e.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(n)};n.powerRank=m;n.PowerMonitor=function(){return(0,o.createComponentVNode)(2,s.Window,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)})})};var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(c.map_levels,c.all_sensors),i=c.focus;if(i)return(0,o.createComponentVNode)(2,C,{focus:i});var s=(0,o.createComponentVNode)(2,d.Box,{color:"bad",children:"No sensors detected"});return a&&(s=(0,o.createComponentVNode)(2,d.Table,{children:a.map((function(e){return(0,o.createComponentVNode)(2,d.Table.Row,{children:(0,o.createComponentVNode)(2,d.Table.Cell,{children:(0,o.createComponentVNode)(2,d.Button,{content:e.name,icon:e.alarm?"bell":"sign-in-alt",onClick:function(){return r("setsensor",{id:e.name})}})})},e.name)}))})),(0,o.createComponentVNode)(2,d.Section,{title:"No active sensor. Listing all.",buttons:(0,o.createComponentVNode)(2,d.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){return r("refresh")}}),children:s})};n.PowerMonitorContent=p;var C=function(e,n){var t=(0,l.useBackend)(n),i=t.act,s=(t.data,e.focus),p=s.history,C=(0,l.useLocalState)(n,"sortByField",null),V=C[0],b=C[1],f=p.supply[p.supply.length-1]||0,g=p.demand[p.demand.length-1]||0,k=p.supply.map((function(e,n){return[n,e]})),v=p.demand.map((function(e,n){return[n,e]})),B=Math.max.apply(Math,[u].concat(p.supply,p.demand)),L=(0,c.flow)([(0,r.map)((function(e,n){return Object.assign({},e,{id:e.name+n})})),"name"===V&&(0,r.sortBy)((function(e){return e.name})),"charge"===V&&(0,r.sortBy)((function(e){return-e.charge})),"draw"===V&&(0,r.sortBy)((function(e){return-m(e.load)}),(function(e){return-parseFloat(e.load)})),"problems"===V&&(0,r.sortBy)((function(e){return e.eqp}),(function(e){return e.lgt}),(function(e){return e.env}),(function(e){return e.charge}),(function(e){return e.name}))])(s.areas);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){return i("clear")}})}),(0,o.createComponentVNode)(2,d.Flex,{mx:-.5,mb:1,children:[(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,width:"200px",children:(0,o.createComponentVNode)(2,d.Section,{children:(0,o.createComponentVNode)(2,d.LabeledList,{children:[(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Supply",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:f,minValue:0,maxValue:B,color:"teal",children:(0,a.toFixed)(f/1e3)+" kW"})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Draw",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:g,minValue:0,maxValue:B,color:"pink",children:(0,a.toFixed)(g/1e3)+" kW"})})]})})}),(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,grow:1,children:(0,o.createComponentVNode)(2,d.Section,{position:"relative",height:"100%",children:[(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:k,rangeX:[0,k.length-1],rangeY:[0,B],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:v,rangeX:[0,v.length-1],rangeY:[0,B],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,o.createComponentVNode)(2,d.Section,{children:[(0,o.createComponentVNode)(2,d.Box,{mb:1,children:[(0,o.createComponentVNode)(2,d.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"name"===V,content:"Name",onClick:function(){return b("name"!==V&&"name")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"charge"===V,content:"Charge",onClick:function(){return b("charge"!==V&&"charge")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"draw"===V,content:"Draw",onClick:function(){return b("draw"!==V&&"draw")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"problems"===V,content:"Problems",onClick:function(){return b("problems"!==V&&"problems")}})]}),(0,o.createComponentVNode)(2,d.Table,{children:[(0,o.createComponentVNode)(2,d.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,d.Table.Cell,{children:"Area"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,children:"Charge"}),(0,o.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",children:"Draw"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),L.map((function(e,n){return(0,o.createVNode)(1,"tr","Table__row candystripe",[(0,o.createVNode)(1,"td",null,e.name,0),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,o.createComponentVNode)(2,h,{charging:e.charging,charge:e.charge}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",e.load,0),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.eqp}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.lgt}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.env}),2)],4,null,e.id)}))]})]})],4)};n.PowerMonitorFocus=C;var h=function(e){var n=e.charging,t=e.charge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Icon,{width:"18px",textAlign:"center",name:0===n&&(t>50?"battery-half":"battery-quarter")||1===n&&"bolt"||2===n&&"battery-full",color:0===n&&(t>50?"yellow":"red")||1===n&&"yellow"||2===n&&"green"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,a.toFixed)(t)+"%"})],4)};n.AreaCharge=h,h.defaultHooks=i.pureComponentHooks;var N=function(e){var n=e.status,t=Boolean(2&n),r=Boolean(1&n),c=(t?"On":"Off")+" ["+(r?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:t?"good":"bad",content:r?undefined:"M",title:c})};N.defaultHooks=i.pureComponentHooks},81121:function(e,n,t){"use strict";n.__esModule=!0,n.PressureRegulator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.PressureRegulator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=(l.max_pressure,l.input_pressure),m=l.output_pressure,p=l.regulate_mode,C=l.set_flow_rate,h=l.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:370,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Input Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h/10})," L/s"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:d?"Unlocked":"Closed",selected:d,onClick:function(){return i("toggle_valve")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Off",selected:0===p,onClick:function(){return i("regulate_mode",{mode:"off"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"Input",selected:1===p,onClick:function(){return i("regulate_mode",{mode:"input"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"Output",selected:2===p,onClick:function(){return i("regulate_mode",{mode:"output"})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_press",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_press",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_press",{press:"set"})}})],4),children:[s/100," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_flow_rate",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_flow_rate",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_flow_rate",{press:"set"})}})],4),children:[C/10," L/s"]})]})})]})})}},14210:function(e,n,t){"use strict";n.__esModule=!0,n.PrisonerManagement=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(58083);n.PrisonerManagement=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.chemImplants,u=l.trackImplants;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d&&(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",onClick:function(){return i("lock")},children:"Unlock"})})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Interface Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return i("lock")},children:"Lock Interface"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Chemical Implants",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Inject"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.host}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.units,"u remaining"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:1})},children:"(1)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:5})},children:"(5)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:10})},children:"(10)"})]})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Tracking Implants",children:u.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Message"})]}),u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.host," (",e.id,")"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.loc}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("warn",{imp:e.ref})},children:"Message"})})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})})],4)})})}},43996:function(e,n,t){"use strict";n.__esModule=!0,n.RCONContent=n.RCON=void 0;var o=t(39812),r=t(41860),c=t(58083),a=t(71494),i=t(74814),l=t(85952),d=t(2497),s=1e3;n.RCON=function(e,n){return(0,o.createComponentVNode)(2,l.Window,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,r=(0,a.useLocalState)(n,"tabIndex",0),c=r[0],l=r[1];return 0===c?t=(0,o.createComponentVNode)(2,m):1===c&&(t=(0,o.createComponentVNode)(2,h)),(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===c,onClick:function(){return l(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===c,onClick:function(){return l(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,o.createComponentVNode)(2,i.Box,{m:2,children:t})],4)};n.RCONContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.smes_info);return(0,o.createComponentVNode)(2,i.Section,{title:"SMESs",children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:r.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,p,{smes:e})},e.RCON_tag)}))})})},p=function(e,n){(0,a.useBackend)(n).act;var t=e.smes,c=t.capacityPercent,l=t.capacity,d=t.charge,s=(t.inputAttempt,t.inputting,t.inputLevel,t.inputLevelMax,t.inputAvailable,t.outputAttempt,t.outputting,t.outputLevel,t.outputLevelMax,t.outputUsed,t.RCON_tag);return(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{flexBasis:"40%",fontSize:1.2,children:s}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*c,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,r.round)(d/6e4,1)," kWh / ",(0,r.round)(l/6e4)," kWh (",c,"%)"]})})]})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"input"})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"output"})}),(0,o.createComponentVNode)(2,i.Stack.Divider)]})},C=function(e,n){var t,r,l,u,m,p,C,h=(0,a.useBackend)(n).act,N=e.way,V=e.smes,b=(V.capacityPercent,V.capacity,V.charge,V.inputAttempt),f=V.inputting,g=V.inputLevel,k=V.inputLevelMax,v=V.inputAvailable,B=V.outputAttempt,L=V.outputting,_=V.outputLevel,x=V.outputLevelMax,w=V.outputUsed,S=V.RCON_tag;switch(N){case"input":t=g,r=k,l=v,"IN",u="smes_in_toggle",m="smes_in_set",b,p=b?f?"green":"yellow":null,C=b?f?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":t=_,r=x,l=w,"OUT",u="smes_out_toggle",m="smes_out_set",B,p=B?L?"green":"yellow":null,C=B?L?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off."}return(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"20%",children:(0,d.capitalize)(N)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:p,tooltip:C,onClick:function(){return h(u,{smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===t,onClick:function(){return h(m,{target:"min",smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===t,onClick:function(){return h(m,{adjust:-1e4,smes:S})}})]}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:t/s,fillValue:l/s,minValue:0,maxValue:r/s,step:5,stepPixelSize:4,format:function(e){return(0,c.formatPower)(l,1)+"/"+(0,c.formatPower)(e*s,1)},onDrag:function(e,n){return h(m,{target:n*s,smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:t===r,onClick:function(){return h(m,{adjust:1e4,smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:t===r,onClick:function(){return h(m,{target:"max",smes:S})}})]})]})})]})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.breaker_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Breakers",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c?c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.RCON_tag,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.enabled?"Enabled":"Disabled",selected:e.enabled,color:e.enabled?null:"bad",onClick:function(){return r("toggle_breaker",{breaker:e.RCON_tag})}})},e.RCON_tag)})):(0,o.createComponentVNode)(2,i.LabeledList.Item,{color:"bad",children:"No breakers detected."})})})}},92141:function(e,n,t){"use strict";n.__esModule=!0,n.RIGSuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.RIGSuit=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),u=i.interfacelock,m=i.malf,p=i.aicontrol,C=i.ai,h=null;return u||m?h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!C&&p&&(h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,o.createComponentVNode)(2,a.Window,{height:480,width:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h||(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chargestatus,d=i.charge,s=i.maxcharge,u=i.aioverride,m=i.sealing,p=i.sealed,C=i.emagged,h=i.securitycheck,N=i.coverlock,V=(0,o.createComponentVNode)(2,c.Button,{content:"Suit "+(m?"seals working...":p?"is Active":"is Inactive"),icon:m?"redo":p?"power-off":"lock-open",iconSpin:m,disabled:m,selected:p,onClick:function(){return a("toggle_seals")}}),b=(0,o.createComponentVNode)(2,c.Button,{content:"AI Control "+(u?"Enabled":"Disabled"),selected:u,icon:"robot",onClick:function(){return a("toggle_ai_control")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([V,b],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Supply",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:50,value:l,ranges:{good:[35,Infinity],average:[15,35],bad:[-Infinity,15]},children:[d," / ",s]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Status",children:C||!h?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,o.createComponentVNode)(2,c.Button,{icon:N?"lock":"lock-open",content:N?"Locked":"Unlocked",onClick:function(){return a("toggle_suit_lock")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealing,s=l.helmet,u=l.helmetDeployed,m=l.gauntlets,p=l.gauntletsDeployed,C=l.boots,h=l.bootsDeployed,N=l.chest,V=l.chestDeployed;return(0,o.createComponentVNode)(2,c.Section,{title:"Hardware",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:u?"sign-out-alt":"sign-in-alt",content:u?"Deployed":"Deploy",disabled:d,selected:u,onClick:function(){return a("toggle_piece",{piece:"helmet"})}}),children:s?(0,i.capitalize)(s):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gauntlets",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Deployed":"Deploy",disabled:d,selected:p,onClick:function(){return a("toggle_piece",{piece:"gauntlets"})}}),children:m?(0,i.capitalize)(m):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Boots",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sign-out-alt":"sign-in-alt",content:h?"Deployed":"Deploy",disabled:d,selected:h,onClick:function(){return a("toggle_piece",{piece:"boots"})}}),children:C?(0,i.capitalize)(C):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chestpiece",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:V?"sign-out-alt":"sign-in-alt",content:V?"Deployed":"Deploy",disabled:d,selected:V,onClick:function(){return a("toggle_piece",{piece:"chest"})}}),children:N?(0,i.capitalize)(N):"ERROR"})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealed,s=l.sealing,u=l.primarysystem,m=l.modules;return!d||s?(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,i.capitalize)(u||"None")]}),m&&m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Section,{level:2,title:(0,i.toTitleCase)(e.name)+(e.damage?" (damaged)":""),buttons:(0,o.createFragment)([e.can_select?(0,o.createComponentVNode)(2,c.Button,{selected:e.name===u,content:e.name===u?"Selected":"Select",icon:"arrow-circle-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select"})}}):null,e.can_use?(0,o.createComponentVNode)(2,c.Button,{content:e.engagestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"engage"})}}):null,e.can_toggle?(0,o.createComponentVNode)(2,c.Button,{selected:e.is_active,content:e.is_active?e.deactivatestring:e.activatestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"toggle"})}}):null],0),children:[e.damage>=2?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:[(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Engage: ",e.engagecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Active: ",e.activecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Passive: ",e.passivecost]})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:e.desc})]}),e.charges?(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Module Charges",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Selected",children:(0,i.capitalize)(e.chargetype)}),e.charges.map((function(n,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(n.caption),children:(0,o.createComponentVNode)(2,c.Button,{selected:e.realchargetype===n.index,icon:"arrow-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select_charge_type",charge_type:n.index})}})},n.caption)}))]})})}):null]},e.name)}))]})}},17481:function(e,n,t){"use strict";n.__esModule=!0,n.Radio=void 0;var o=t(39812),r=(t(64499),t(41860)),c=t(71494),a=t(74814),i=t(76270),l=t(85952);n.Radio=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.rawfreq,m=s.minFrequency,p=s.maxFrequency,C=s.listening,h=s.broadcasting,N=s.subspace,V=s.subspaceSwitchable,b=s.chan_list,f=s.loudspeaker,g=s.mic_cut,k=s.spk_cut,v=s.useSyndMode,B=i.RADIO_CHANNELS.find((function(e){return e.freq===Number(u)})),L=156;return b&&b.length>0?L+=28*b.length+6:L+=24,V&&(L+=38),(0,o.createComponentVNode)(2,l.Window,{width:310,height:L,resizable:!0,theme:v?"syndicate":"",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:m/10,maxValue:p/10,value:u/10,format:function(e){return(0,r.toFixed)(e,1)},onDrag:function(e,n){return d("setFrequency",{freq:(0,r.round)(10*n)})}}),B&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:B.color,ml:2,children:["[",B.name,"]"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Audio",children:[(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:C?"volume-up":"volume-mute",selected:C,disabled:k,onClick:function(){return d("listen")}}),(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:h?"microphone":"microphone-slash",selected:h,disabled:g,onClick:function(){return d("broadcast")}}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"bullhorn",selected:N,content:"Subspace Tx "+(N?"ON":"OFF"),onClick:function(){return d("subspace")}})}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"volume-up":"volume-mute",selected:f,content:"Loudspeaker",onClick:function(){return d("toggleLoudspeaker")}})})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Channels",children:[(!b||0===b.length)&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:b?b.map((function(e){var n=i.RADIO_CHANNELS.find((function(n){return n.freq===Number(e.freq)})),t="default";return n&&(t=n.color),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.display_name,labelColor:t,textAlign:"right",children:e.secure_channel&&N?(0,o.createComponentVNode)(2,a.Button,{icon:e.sec_channel_listen?"square-o":"check-square-o",selected:!e.sec_channel_listen,content:e.sec_channel_listen?"Off":"On",onClick:function(){return d("channel",{channel:e.chan})}}):(0,o.createComponentVNode)(2,a.Button,{content:"Switch",selected:e.chan===u,onClick:function(){return d("specFreq",{channel:e.chan})}})},e.chan)})):null})]})]})})}},29509:function(e,n,t){"use strict";n.__esModule=!0,n.RapidPipeDispenser=n.ICON_BY_CATEGORY_NAME=void 0;var o=t(39812),r=t(34380),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=["Atmospherics","Disposals"],s={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"};n.ICON_BY_CATEGORY_NAME=s;var u=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,m=l.category,p=l.selected_color,C=l.mode;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Category",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,i.Button,{selected:m===n,icon:s[e],color:"transparent",onClick:function(){return r("category",{category:n})},children:e},e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Modes",children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C&e.bitmask,fluid:!0,content:e.name,onClick:function(){return r("mode",{mode:e.bitmask})}})},e.bitmask)}))})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,width:"64px",color:l.paint_colors[p],children:(0,c.capitalize)(p)}),Object.keys(l.paint_colors).map((function(e){return(0,o.createComponentVNode)(2,i.ColorBox,{ml:1,color:l.paint_colors[e],onClick:function(){return r("color",{paint_color:e})}},e)}))]})]})})},p=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.category,s=l.piping_layer,u=l.preview_rows.flatMap((function(e){return e.previews}));return(0,o.createComponentVNode)(2,i.Section,{fill:!0,width:7.5,children:[0===d&&(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,mb:1,children:[1,2,3,4,5].map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{my:0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:e===s,content:"Layer "+e,onClick:function(){return c("piping_layer",{piping_layer:e})}})},e)}))}),(0,o.createComponentVNode)(2,i.Box,{width:"120px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{ml:0,title:e.dir_name,selected:e.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return c("setdir",{dir:e.dir,flipped:e.flipped})},children:(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["pipes32x32",e.dir+"-"+e.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},e.dir)}))})]})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.categories,l=void 0===c?[]:c,d=(0,a.useLocalState)(n,"categoryName"),u=d[0],m=d[1],p=l.find((function(e){return e.cat_name===u}))||l[0];return(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{fluid:!0,icon:s[e.cat_name],selected:e.cat_name===p.cat_name,onClick:function(){return m(e.cat_name)},children:e.cat_name},e.cat_name)}))}),null==p?void 0:p.recipes.map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:e.selected,content:e.pipe_name,title:e.pipe_name,onClick:function(){return r("pipe_type",{pipe_type:e.pipe_index,category:p.cat_name})}},e.pipe_index)}))]})};n.RapidPipeDispenser=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data.category;return(0,o.createComponentVNode)(2,l.Window,{width:550,height:570,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,p)})})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,C)})]})})]})})})}},53976:function(e,n,t){"use strict";n.__esModule=!0,n.RequestConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).act,r=e.dept_list,i=e.department;return(0,o.createComponentVNode)(2,a.LabeledList,{children:r.sort().map((function(e){return e!==i&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"envelope-open-text",onClick:function(){return t("write",{write:e,priority:1})},children:"Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",onClick:function(){return t("write",{write:e,priority:2})},children:"High Priority"})],4)})||null}))})},d={0:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.silent;return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,a.Button,{selected:!i,icon:i?"volume-mute":"volume-up",onClick:function(){return r("toggleSilent")},children:["Speaker ",i?"OFF":"ON"]})})},1:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.assist_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Request assistance from another department",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},2:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.supply_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Supplies",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},3:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.info_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Report Anonymous Information",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},4:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},5:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},6:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.message_log;return(0,o.createComponentVNode)(2,a.Section,{title:"Messages",children:l.length&&l.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.decodeHtmlEntities)(e[0]),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print",{print:n+1})},children:"Print"}),children:(0,r.decodeHtmlEntities)(e[1])},n)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No messages."})})},7:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.message,s=l.recipient,u=l.priority,m=l.msgStamped,p=l.msgVerified;return(0,o.createComponentVNode)(2,a.Section,{title:"Message Authentication",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message for "+s,children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Priority",children:2===u?"High Priority":1===u?"Normal Priority":"Unknown"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Validated By",color:p?"good":"bad",children:(0,r.decodeHtmlEntities)(p)||"No Validation"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamped By",color:m?"good":"bad",children:(0,r.decodeHtmlEntities)(m)||"No Stamp"})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"share",onClick:function(){return i("department",{department:s})},children:"Send Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:0})},children:"Back"})]})},8:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(i.department,i.screen,i.message_log,i.newmessagepriority,i.silent,i.announcementConsole,i.assist_dept,i.supply_dept,i.info_dept,i.message),d=(i.recipient,i.priority,i.msgStamped,i.msgVerified,i.announceAuth);return(0,o.createComponentVNode)(2,a.Section,{title:"Send Station-Wide Announcement",children:[d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,o.createComponentVNode)(2,a.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"pen",onClick:function(){return r("writeAnnouncement")},children:"Edit"}),children:l||"No Message"})],4)||(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l||!d,icon:"share",onClick:function(){return r("sendAnnouncement")},children:"Announce"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return r("setScreen",{setScreen:0})},children:"Back"})]})}};n.RequestConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,s=l.screen,u=l.newmessagepriority,m=l.announcementConsole,p=d[s];return(0,o.createComponentVNode)(2,i.Window,{width:520,height:410,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:6===s,onClick:function(){return r("setScreen",{setScreen:6})},icon:"envelope-open-text",children:"Messages"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return r("setScreen",{setScreen:1})},icon:"share-square",children:"Assistance"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return r("setScreen",{setScreen:2})},icon:"share-square",children:"Supplies"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return r("setScreen",{setScreen:3})},icon:"share-square-o",children:"Report"}),m&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:8===s,onClick:function(){return r("setScreen",{setScreen:8})},icon:"volume-up",children:"Announce"})||null,(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return r("setScreen",{setScreen:0})},icon:"cog"})]}),u&&(0,o.createComponentVNode)(2,a.Section,{title:u>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:u>1?"bad":"average",bold:u>1})||null,(0,o.createComponentVNode)(2,p)]})})}},48639:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).data,o=e.title,r=t[e.target];return"number"==typeof r?o+" - Page "+(r+1):o},d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.target;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return t(r,{reset:!0})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-left",onClick:function(){return t(r,{reverse:-1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-right",onClick:function(){return t(r,{reverse:1})}})],4)},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info.tech,l=e.disk;if(!l||!l.present)return null;var d=(0,c.useSharedState)(n,"saveDialogTech",!1),s=d[0],u=d[1];return s?(0,o.createComponentVNode)(2,a.Section,{title:"Load Technology to Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return u(!1)}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){u(!1),r("copy_tech",{copy_tech_ID:e.id})},children:"Copy To Disk"})},e.name)}))})}):(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),l.stored&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:[(0,o.createComponentVNode)(2,a.Box,{children:l.name}),(0,o.createComponentVNode)(2,a.Box,{children:["Level: ",l.level]}),(0,o.createComponentVNode)(2,a.Box,{children:["Description: ",l.desc]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_tech")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_tech")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return u(!0)},children:"Load Tech To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.info.designs,u=e.disk;if(!u||!u.present)return null;var m=(0,c.useSharedState)(n,"saveDialogData",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return C(!1)}}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){C(!1),r("copy_design",{copy_design_ID:e.id})},children:"Copy To Disk"})},e.name)}))})]}):(0,o.createComponentVNode)(2,a.Box,{children:u.stored&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Lathe Type",children:u.build_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Required Materials",children:Object.keys(u.materials).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[e," x ",u.materials[e]]},e)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_design")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_design")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return C(!0)},children:"Load Design To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=e.target,u=e.designs,m=e.buildName,p=e.buildFiveName;return s?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{target:"builder_page",title:"Designs"}),buttons:(0,o.createComponentVNode)(2,d,{target:"builder_page"}),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),u&&u.length?u.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{width:"100%",justify:"space-between",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:e.name}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"15%",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Button,{mb:-1,icon:"wrench",onClick:function(){return r(m,{build:e.id,imprint:e.id})},children:"Build"}),p&&(0,o.createComponentVNode)(2,a.Button,{mb:-1,onClick:function(){return r(p,{build:e.id,imprint:e.id})},children:"x5"})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:e.mat_list.join(" ")}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",ml:1,children:e.chem_list.join(" ")})]})]}),(0,o.createComponentVNode)(2,a.Divider)],4,e.id)})):(0,o.createComponentVNode)(2,a.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error"})},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=e.name,s=null,u=null;if("Protolathe"===d?(s=l.info.linked_lathe,u=l.lathe_designs):(s=l.info.linked_imprinter,u=l.imprinter_designs),!s||!s.present)return(0,o.createComponentVNode)(2,a.Section,{title:d,children:["No ",d," found."]});var p=s,C=p.total_materials,h=p.max_materials,N=p.total_volume,V=p.max_volume,b=p.busy,f=p.mats,g=p.reagents,k=p.queue,v=(0,c.useSharedState)(n,"protoTab",0),B=v[0],L=v[1],_="transparent",x=!1,w="layer-group";b?(w="hammer",_="average",x=!0):k&&k.length&&(w="sync",_="green",x=!0);var S="Protolathe"===d?"removeP":"removeI",I="Protolathe"===d?"lathe_ejectsheet":"imprinter_ejectsheet",y="Protolathe"===d?"disposeP":"disposeI",T="Protolathe"===d?"disposeallP":"disposeallI";return(0,o.createComponentVNode)(2,a.Section,{title:d,buttons:b&&(0,o.createComponentVNode)(2,a.Icon,{name:"sync",spin:!0})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Materials",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:C,maxValue:h,children:[C," cm\xb3 / ",h," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Chemicals",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:V,children:[N,"u / ",V,"u"]})})]}),(0,o.createComponentVNode)(2,a.Tabs,{mt:1,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"wrench",selected:0===B,onClick:function(){return L(0)},children:"Build"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:w,iconSpin:x,color:_,selected:1===B,onClick:function(){return L(1)},children:"Queue"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cookie-bite",selected:2===B,onClick:function(){return L(2)},children:"Mat Storage"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"flask",selected:3===B,onClick:function(){return L(3)},children:"Chem Storage"})]}),0===B&&(0,o.createComponentVNode)(2,m,{target:s,designs:u,buildName:"Protolathe"===d?"build":"imprint",buildFiveName:"Protolathe"===d?"buildfive":null})||1===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:k.length&&k.map((function(e){return 1===e.index?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,labelColor:"bad",children:b?(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,o.createComponentVNode)(2,a.Box,{children:["(Awaiting Materials)",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})]})}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{m:1,children:"Queue Empty."})})||2===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:f.map((function(e){var t=(0,c.useLocalState)(n,"ejectAmt"+e.name,0),l=t[0],d=t[1];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NumberInput,{minValue:0,width:"100px",value:l,maxValue:e.sheets,onDrag:function(e,n){return d(n)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;d(0),i(I,((n={})[I]=e.name,n.amount=l,n))},children:"Num"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;return i(I,((n={})[I]=e.name,n.amount=50,n))},children:"All"})],4),children:[e.amount," cm\xb3"]},e.name)}))})||3===B&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:g.length&&g.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.volume,"u",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eject",onClick:function(){return i(y,{dispose:e.id})},children:"Purge"})]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"trash",onClick:function(){return i(T)},children:"Disposal All Chemicals In Storage"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})},C=[{name:"Protolathe",icon:"wrench",template:(0,o.createComponentVNode)(2,p,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,o.createComponentVNode)(2,p,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info.linked_destroy;if(!i.present)return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var l=i.loaded_item,d=i.origin_tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:l&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Origin Tech",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.level,"\xa0\xa0",e.current&&"(Current: "+e.current+")"]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){return r("deconstruct")},children:"Deconstruct Item"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_item")},children:"Eject Item"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"No Item Loaded. Standing-by..."})})}))},{name:"Settings",icon:"cog",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info,l=i.sync,d=i.linked_destroy,s=i.linked_imprinter,u=i.linked_lathe,m=(0,c.useSharedState)(n,"settingsTab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cogs",onClick:function(){return C(0)},selected:0===p,children:"General"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"link",onClick:function(){return C(1)},selected:1===p,children:"Device Linkages"})]}),0===p&&(0,o.createComponentVNode)(2,a.Box,{children:[l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",onClick:function(){return r("sync")},children:"Sync Database with Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"unlink",onClick:function(){return r("togglesync")},children:"Disconnect from Research Network"})],4)||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"link",onClick:function(){return r("togglesync")},children:"Connect to Research Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lock",onClick:function(){return r("lock")},children:"Lock Console"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){return r("reset")},children:"Reset R&D Database"})]})||1===p&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){return r("find_device")},children:"Re-sync with Nearby Devices"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[d.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destructive Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,u.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Protolathe",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,s.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Circuit Imprinter",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})}))},{name:"Research List",icon:"flask",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Current Research Levels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:1})},children:"Print This Page"}),children:(0,o.createComponentVNode)(2,a.Table,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{children:[" - Level ",e.level]})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.desc})})]},e.name)}))})})}))},{name:"Design List",icon:"file",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.designs;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:2})},children:"Print This Page"}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),s&&s.length&&(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.desc},e.name)}))})||(0,o.createComponentVNode)(2,a.Box,{color:"warning",children:"No designs found."})]})}))},{name:"Disk Operations",icon:"save",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.info),i=r.d_disk,l=r.t_disk;return i.present||l.present?(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:[(0,o.createComponentVNode)(2,s,{disk:l}),(0,o.createComponentVNode)(2,u,{disk:i})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:"No disk inserted."})}))}];n.ResearchConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=l.busy_msg,s=l.locked,u=(0,c.useSharedState)(n,"rdmenu",0),m=u[0],p=u[1],h=!1;return(d||s)&&(h=!0),(0,o.createComponentVNode)(2,i.Window,{width:850,height:630,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:e.icon,selected:m===n,disabled:h,onClick:function(){return p(n)},children:e.name},n)}))}),d&&(0,o.createComponentVNode)(2,a.Section,{title:"Processing...",children:d})||s&&(0,o.createComponentVNode)(2,a.Section,{title:"Console Locked",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("lock")},icon:"lock-open",children:"Unlock"})})||C[m].template]})})}},35606:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchServerController=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);n.ResearchServerController=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:430,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=(a.badmin,a.servers),l=(a.consoles,(0,r.useSharedState)(n,"selectedServer",null)),s=l[0],u=l[1],m=i.find((function(e){return e.id===s}));return m?(0,o.createComponentVNode)(2,d,{setSelectedServer:u,server:m}):(0,o.createComponentVNode)(2,c.Section,{title:"Server Selection",children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return u(e.id)},children:e.name})},e.name)}))})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.badmin),i=e.server,l=e.setSelectedServer,d=(0,r.useSharedState)(n,"tab",0),p=d[0],C=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:i.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return l(null)},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Access Rights"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Data Management"}),a&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===p,onClick:function(){return C(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),0===p&&(0,o.createComponentVNode)(2,s,{server:i})||null,1===p&&(0,o.createComponentVNode)(2,u,{server:i})||null,2===p&&a&&(0,o.createComponentVNode)(2,m,{server:i})||null]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.consoles,s=function(e,n){return-1!==e.id_with_upload.indexOf(n.id)},u=function(e,n){return-1!==e.id_with_download.indexOf(n.id)};return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Consoles",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.loc+")",children:[(0,o.createComponentVNode)(2,c.Button,{icon:s(l,e)?"lock-open":"lock",selected:s(l,e),onClick:function(){return a("toggle_upload",{server:l.ref,console:e.ref})},children:s(l,e)?"Upload On":"Upload Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:u(l,e)?"lock-open":"lock",selected:u(l,e),onClick:function(){return a("toggle_download",{server:l.ref,console:e.ref})},children:u(l,e)?"Download On":"Download Off"})]},e.name)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=(t.data,e.server);return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Research Levels",children:l.tech.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return a("reset_tech",{server:l.ref,tech:e.id})}})},e.name)}))}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Designs",children:(0,i.filter)((function(e){return!!e.name}))(l.designs).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return a("reset_design",{server:l.ref,design:e.id})}})},e.name)}))})],4)},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.badmin,s=i.servers;return d?(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Server Data Transfer",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,color:"bad",content:(0,o.createComponentVNode)(2,c.Box,{children:["Transfer from ",l.name," To ",e.name]}),onClick:function(){return a("transfer_data",{server:l.ref,target:e.ref})}})},e.name)}))}):null}},86330:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=(t(76270),t(16007)),l=t(85952),d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.obviously_dead,u=i.oocnotes,m=i.can_sleeve_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"user-plus",content:"Sleeve",onClick:function(){return r("sleeve",{ref:l,mode:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-plus",content:"Card",onClick:function(){return r("sleeve",{ref:l,mode:2})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:u})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.species,u=i.sex,m=i.mind_compat,p=i.synthetic,C=i.oocnotes,h=i.can_grow_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:p?"Yes":"No"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,a.Button,{disabled:!h,icon:"user-plus",content:p?"Build":"Grow",onClick:function(){return r("create",{ref:l})}})})]})})};n.ResleevingConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),h=(r.menu,r.coredumped),N=r.emergency,V=(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,k),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})],4);return h&&(V=(0,o.createComponentVNode)(2,p)),N&&(V=(0,o.createComponentVNode)(2,C)),(0,i.modalRegisterBodyOverride)("view_b_rec",s),(0,i.modalRegisterBodyOverride)("view_m_rec",d),(0,o.createComponentVNode)(2,l.Window,{width:640,height:520,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:V})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Body Records"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===i,icon:"folder",onClick:function(){return r("menu",{num:3})},children:"Mind Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data,a=r.menu,i=r.bodyrecords,l=r.mindrecords;return 1===a?t=(0,o.createComponentVNode)(2,h):2===a?t=(0,o.createComponentVNode)(2,f,{records:i,actToDo:"view_b_rec"}):3===a&&(t=(0,o.createComponentVNode)(2,f,{records:l,actToDo:"view_m_rec"})),t},p=function(e,n){return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,o.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},C=function(e,n){var t=(0,c.useBackend)(n).act;return(0,o.createComponentVNode)(2,a.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return t("ejectdisk")}})}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return t("coredump")}})})]})},h=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.loading,r.scantemp,r.occupant,r.locked,r.can_brainscan,r.scan_mode,r.pods,r.selected_pod;return(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,b),(0,o.createComponentVNode)(2,V)]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.pods,s=l.spods,u=l.selected_pod;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:u===e.pod,icon:u===e.pod&&"check",content:"Select",mt:s&&s.length?"2rem":"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):null},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.sleevers,d=i.spods,s=i.selected_sleever;return l&&l.length?l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(e.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:e.occupied?"label":"bad",children:e.name}),(0,o.createComponentVNode)(2,a.Button,{selected:s===e.sleever,icon:s===e.sleever&&"check",content:"Select",mt:d&&d.length?"3rem":"1.5rem",onClick:function(){return r("selectsleever",{ref:e.sleever})}})]},n)})):null},b=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.spods,s=l.selected_printer;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:s===e.spod,icon:s===e.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectprinter",{ref:e.spod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(e.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.steel>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.steel>=15e3?"circle":"circle-o"}),"\xa0",e.steel]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.glass>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.glass>=15e3?"circle":"circle-o"}),"\xa0",e.glass]}),t]},n)})):null},f=function(e,n){var t=(0,c.useBackend)(n).act,r=e.records,i=e.actToDo;return r.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:r.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.name,onClick:function(){return t(i,{ref:e.recref})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},g=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},k=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.pods,l=r.spods,d=r.sleevers;r.autoallowed,r.autoprocess,r.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:i&&i.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[i.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SynthFabs",children:l&&l.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[l.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sleevers",children:d&&d.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d.length," Connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},88359:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingPod=void 0;var o=t(39812),r=t(85952),c=t(71494),a=t(74814);n.ResleevingPod=function(e,n){var t=(0,c.useBackend)(n).data,i=t.occupied,l=t.name,d=t.health,s=t.maxHealth,u=t.stat,m=t.mindStatus,p=t.mindName,C=t.resleeveSick,h=t.initialSick;return(0,o.createComponentVNode)(2,r.Window,{width:300,height:350,resizeable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",children:i?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:2===u?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"}):1===u?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Unconscious"}):(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:d/s,children:[d,"%"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Status",children:m?"Present":"Missing"}),m?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),C?(0,o.createComponentVNode)(2,a.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",h?(0,o.createFragment)([(0,o.createTextVNode)(" Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],4):""]}):""],0):(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}},24455:function(e,n,t){"use strict";n.__esModule=!0,n.RoboticsControlConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RoboticsControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.can_hack,u=d.safety,m=d.show_detonate_all,p=d.cyborgs,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:460,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,i,{cyborgs:C,can_hack:s})]})})};var i=function(e,n){var t=e.cyborgs,a=(e.can_hack,(0,r.useBackend)(n)),i=a.act,l=a.data;return t.length?t.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,c.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return i("hackbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return i("stopbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return i("killbot",{ref:e.ref})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,c.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,c.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,c.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.ref)})):(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No cyborg units detected within access parameters."})}},52330:function(e,n,t){"use strict";n.__esModule=!0,n.RogueZones=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RogueZones=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.timeout_percent,s=l.diffstep,u=l.difficulty,m=l.occupied,p=l.scanning,C=l.updated,h=l.debug,N=l.shuttle_location,V=l.shuttle_at_station,b=l.scan_ready,f=l.can_recall_shuttle;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Current Area",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mineral Content",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle Location",buttons:f&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"rocket",onClick:function(){return i("recall_shuttle")},children:"Recall Shuttle"})||null,children:N}),m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",m," personnel!"]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!b,fluid:!0,icon:"search",onClick:function(){return i("scan_for_new")},children:"Scan For Asteroids"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:100,ranges:{good:[100,Infinity],average:[75,100],bad:[-Infinity,75]}})}),p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,C&&!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,o.createComponentVNode)(2,c.Box,{children:["Timeout Percent: ",d]}),(0,o.createComponentVNode)(2,c.Box,{children:["Diffstep: ",s]}),(0,o.createComponentVNode)(2,c.Box,{children:["Difficulty: ",u]}),(0,o.createComponentVNode)(2,c.Box,{children:["Occupied: ",m]}),(0,o.createComponentVNode)(2,c.Box,{children:["Debug: ",h]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle Location: ",N]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle at station: ",V]}),(0,o.createComponentVNode)(2,c.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}},59412:function(e,n,t){"use strict";n.__esModule=!0,n.RustCoreMonitorContent=n.RustCoreMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustCoreMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.cores;return(0,o.createComponentVNode)(2,a.Section,{title:"Cores",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reactant Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Instability"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Temperature"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Strength"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Plasma Content"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.has_field?"Online":"Offline",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_active",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.reactant_dump?"Dump":"Maintain",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_reactantdump",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_instability}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_temperature}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.has_field&&"yellow",value:e.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(n,t){return c("set_fieldstr",{core:e.ref,fieldstr:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell)]},e.name)}))]})})};n.RustCoreMonitorContent=i},59327:function(e,n,t){"use strict";n.__esModule=!0,n.RustFuelContent=n.RustFuelControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustFuelControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.fuels;return(0,o.createComponentVNode)(2,a.Section,{title:"Fuel Injectors",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Remaining Fuel"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fuel Rod Composition"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{fuel:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_amt}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_type})]},e.name)}))]})})};n.RustFuelContent=i},54943:function(e,n,t){"use strict";n.__esModule=!0,n.Secbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Secbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.idcheck,p=l.check_records,C=l.check_arrest,h=l.arrest_type,N=l.declare_arrests,V=l.bot_patrolling,b=l.patrol;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:320,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Security Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("idcheck")},children:m?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Security Records",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("ignorerec")},children:p?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Arrest Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("ignorearr")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Operating Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("switchmode")},children:h?"Detain":"Arrest"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Report Arrests",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("declarearrests")},children:N?"Yes":"No"})}),!!V&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Auto Patrol",children:(0,o.createComponentVNode)(2,c.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return i("patrol")},children:b?"Yes":"No"})})]})})||null]})})}},57436:function(e,n,t){"use strict";n.__esModule=!0,n.SecureSafe=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.l_setshort,s=i.code,u=i.emagged;return(0,o.createComponentVNode)(2,c.Box,{width:"185px",children:(0,o.createComponentVNode)(2,c.Grid,{width:"1px",children:[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,c.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,mb:"6px",content:e,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!u||!!d&&1||"R"!==e&&!l||"ERROR"===s&&"R"!==e&&1,onClick:function(){return a("type",{digit:e})}},e)}))},e[0])}))})})};n.SecureSafe=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.code,s=l.l_setshort,u=l.l_set,m=l.emagged,p=l.locked,C=!(u||s);return(0,o.createComponentVNode)(2,a.Window,{width:250,height:380,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{m:"6px",children:[C&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,o.createComponentVNode)(2,c.Section,{height:"60px",children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",position:"center",fontSize:"35px",children:d&&d||(0,o.createComponentVNode)(2,c.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,o.createComponentVNode)(2,c.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}},71915:function(e,n,t){"use strict";n.__esModule=!0,n.SecurityRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.SecurityRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N&&(t=(0,o.createComponentVNode)(2,C)),(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,c.Section,{flexGrow:!0,children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",color:e.color,content:e.id+": "+e.name+" (Criminal Status: "+e.criminal+")",onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.security,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Security Data",children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Security Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return a("del_r_2")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.general;return i&&i.fields?(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:i.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Flex.Item,{textAlign:"right",children:[!!i.has_photos&&i.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)})),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_front")},children:"Update Front Photo"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_side")},children:"Update Side Photo"})]})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Security records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,icon:"list",onClick:function(){return a("screen",{screen:2})},children:"List Records"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"wrench",selected:3===i,onClick:function(){return a("screen",{screen:3})},children:"Record Maintenance"})]})}},93550:function(e,n,t){"use strict";n.__esModule=!0,n.SeedStorage=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(64499);n.SeedStorage=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.scanner,s.seeds),m=(0,l.sortBy)((function(e){return e.name.toLowerCase()}))(u);return(0,o.createComponentVNode)(2,a.Window,{width:600,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Seeds",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"60%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,i.toTitleCase)(e.name)+" #"+e.uid,children:(0,o.createComponentVNode)(2,c.Section,{width:"165%",title:"Traits",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:Object.keys(e.traits).map((function(n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.toTitleCase)(n),children:e.traits[n]},n)}))})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{mt:.4,children:[e.amount," Remaining"]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"download",onClick:function(){return d("vend",{id:e.id})},children:"Vend"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"trash",onClick:function(){return d("purge",{id:e.id})},children:"Purge"})})]},e.name+e.uid)}))})})})}},16765:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldCapacitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083);n.ShieldCapacitor=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=s.active,m=s.time_since_fail,p=s.stored_charge,C=s.max_charge,h=s.charge_rate,N=s.max_charge_rate;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return d("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor Status",children:m>2?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stored Energy",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return(0,l.formatSiUnit)(e,0,"J")}})," (",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:100*(0,i.round)(p/C,1)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:h,step:100,stepPixelSize:.2,minValue:1e4,maxValue:N,format:function(e){return(0,l.formatPower)(e)},onDrag:function(e,n){return d("charge_rate",{rate:n})}})})]})})})})}},79229:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldGenerator=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083),d=t(67861);n.ShieldGenerator=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.locked);return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:a?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,u)})})};var s=function(e,n){return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Locked",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},u=function(e,n){var t=(0,r.useBackend)(n),c=t.act,d=t.data.lockedData,s=d.capacitors,u=d.active,m=d.failing,p=d.radius,C=d.max_radius,h=d.z_range,N=d.max_z_range,V=d.average_field_strength,b=d.target_field_strength,f=d.max_field_strength,g=d.shields,k=d.upkeep,v=d.strengthen_rate,B=d.max_strengthen_rate,L=d.gen_power,_=(s||[]).length;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Field Status",children:m?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unstable"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Stable"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overall Field Strength",children:[(0,i.round)(V,2)," Renwick (",b&&(0,i.round)(100*V/b,1)||"NA","%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upkeep Power",children:(0,l.formatPower)(k)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shield Generation Power",children:(0,l.formatPower)(L)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Currently Shielded",children:[g," m\xb2"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:_?s.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor #"+n,children:[e.active?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Online"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Offline"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[(0,l.formatSiUnit)(e.stored_charge,0,"J")," (",100*(0,i.round)(e.stored_charge/e.max_charge,2),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:e.failing?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."})})]})]},n)})):(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:u?"Online":"Offline",selected:u,onClick:function(){return c("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coverage Radius",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:C,value:p,unit:"m",onDrag:function(e,n){return c("change_radius",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vertical Shielding",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:N,value:h,unit:"vertical range",onDrag:function(e,n){return c("z_range",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:B,value:v,format:function(e){return(0,i.round)(e,1)},unit:"Renwick/s",onDrag:function(e,n){return c("strengthen_rate",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maximum Field Strength",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:f,value:b,unit:"Renwick",onDrag:function(e,n){return c("target_field_strength",{val:n})}})})]})})],4)}},89957:function(e,n,t){"use strict";n.__esModule=!0,n.ShutoffMonitorContent=n.ShutoffMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.ShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.valves;return(0,o.createComponentVNode)(2,a.Section,{title:"Valves",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Open"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.open?"Yes":"No"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.enabled?"Auto":"Manual"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.open?"Opened":"Closed",selected:e.open,disabled:!e.enabled,onClick:function(){return c("toggle_open",{valve:e.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.enabled?"Auto":"Manual",selected:e.enabled,onClick:function(){return c("toggle_enable",{valve:e.ref})}})]})]},e.name)}))]})})};n.ShutoffMonitorContent=i},34404:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleControl=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t="ERROR",r="bad",c=!1;return"docked"===e?(t="DOCKED",r="good"):"docking"===e?(t="DOCKING",r="average",c=!0):"undocking"===e?(t="UNDOCKING",r="average",c=!0):"undocked"===e&&(t="UNDOCKED",r="#676767"),c&&n&&(t+="-MANUAL"),(0,o.createComponentVNode)(2,a.Box,{color:r,children:t})},d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.engineName,s=void 0===d?"Bluespace Drive":d,u=i.shuttle_status,m=i.shuttle_state,p=i.has_docking,C=i.docking_status,h=i.docking_override,N=i.docking_codes;return(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:u}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:s,children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",children:l(C,h)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Codes",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return r("set_codes")},children:N||"Not Set"})})],4)||null]})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_launch,d=i.can_cancel,s=i.can_force;return(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("move")},disabled:!l,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("cancel")},disabled:!d,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("force")},color:"bad",disabled:!s,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},u={ShuttleControlConsoleDefault:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleMulti:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_cloak,u=i.can_pick,m=i.legit,p=i.cloaked,C=i.destination_name;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Multishuttle Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:m?"ATC Inhibitor":"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:p,icon:p?"eye":"eye-o",onClick:function(){return r("toggle_cloaked")},children:p?"Enabled":"Disabled"})})||null,(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!u,onClick:function(){return r("pick")},children:C})})]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleExploration:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_pick,u=i.destination_name,m=i.fuel_usage,p=i.fuel_span,C=i.remaining_fuel;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d,{engineName:"Engines"}),(0,o.createComponentVNode)(2,a.Section,{title:"Jump Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!l,onClick:function(){return r("pick")},children:u})}),m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Est. Delta-V Budget",color:p,children:[C," m/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[m," m/s"]})],4)||null]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleWeb:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.autopilot,u=d.can_rename,m=d.shuttle_state,p=d.is_moving,C=d.skip_docking,h=d.docking_status,N=d.docking_override,V=d.shuttle_location,b=d.can_cloak,f=d.cloaked,g=d.can_autopilot,k=d.routes,v=d.is_in_transit,B=d.travel_progress,L=d.time_left,_=d.doors,x=d.sensors;return(0,o.createFragment)([s&&(0,o.createComponentVNode)(2,a.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",buttons:u&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return i("rename_command")},children:"Rename"})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Engines",children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Location",children:(0,r.toTitleCase)(V)}),!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{selected:"docked"===h,disabled:"undocked"!==h&&"docked"!==h,onClick:function(){return i("dock_command")},children:"Dock"}),(0,o.createComponentVNode)(2,a.Button,{selected:"undocked"===h,disabled:"docked"!==h&&"undocked"!==h,onClick:function(){return i("undock_command")},children:"Undock"})],4),children:(0,o.createComponentVNode)(2,a.Box,{bold:!0,inline:!0,children:l(h,N)})})||null,b&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:f,icon:f?"eye":"eye-o",onClick:function(){return i("toggle_cloaked")},children:f?"Enabled":"Disabled"})})||null,g&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Autopilot",children:(0,o.createComponentVNode)(2,a.Button,{selected:s,icon:s?"eye":"eye-o",onClick:function(){return i("toggle_autopilot")},children:s?"Enabled":"Disabled"})})||null],0)||null]}),!p&&(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Available Destinations",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:k.length&&k.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"rocket",onClick:function(){return i("traverse",{traverse:e.index})},children:e.travel_time})},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),v&&(0,o.createComponentVNode)(2,a.Section,{title:"Transit ETA",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance from target",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",minValue:0,maxValue:100,value:B,children:[L,"s"]})})})})||null,Object.keys(_).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Hatch Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(_).map((function(e){var n=_[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.open&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Open"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Closed"}),"\xa0-\xa0",n.bolted&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Bolted"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Unbolted"})]},e)}))})})||null,Object.keys(x).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(x).map((function(e){var n=x[e];return-1!==n.reading?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:"bad",children:"Unable to get sensor air reading."}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[n.pressure,"kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[n.temp,"\xb0C"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Oxygen",children:[n.oxygen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nitrogen",children:[n.nitrogen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Carbon Dioxide",children:[n.carbon_dioxide,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Phoron",children:[n.phoron,"%"]}),n.other&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other",children:[n.other,"%"]})||null]})},e)}))})})||null],0)}))};n.ShuttleControl=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.subtemplate);return(0,o.createComponentVNode)(2,i.Window,{width:470,height:"ShuttleControlConsoleWeb"===r?560:370,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:u[r]})})}},32325:function(e,n,t){"use strict";n.__esModule=!0,n.SignalerContent=n.Signaler=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Signaler=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:280,height:132,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.code,s=l.frequency,u=l.minFrequency,m=l.maxFrequency;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:m/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,n){return i("freq",{freq:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"freq"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.6,children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(e,n){return i("code",{code:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"code"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.8,children:(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return i("signal")}})})})]})};n.SignalerContent=l},80646:function(e,n,t){"use strict";n.__esModule=!0,n.Sleeper=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.Sleeper=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.hasOccupant?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,V));return(0,o.createComponentVNode)(2,i.Window,{width:550,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:r})})};var m=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=(r.occupant,r.dialysis),i=r.stomachpumping;return(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h,{title:"Dialysis",active:a,actToDo:"togglefilter"}),(0,o.createComponentVNode)(2,h,{title:"Stomach Pump",active:i,actToDo:"togglepump"}),(0,o.createComponentVNode)(2,N)],4)},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant,m=d.auto_eject_dead,p=d.stasis;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,content:m?"On":"Off",onClick:function(){return i("auto_eject_dead_"+(m?"off":"on"))}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return i("ejectify")}}),(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return i("changestasis")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:0,max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(s.health,0)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxTemp,value:s.bodyTemperature/s.maxTemp,color:u[s.temperatureSuitability+3],children:[(0,r.round)(s.btCelsius,0),"\xb0C,",(0,r.round)(s.btFaren,0),"\xb0F"]})}),!!s.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.bloodMax,value:s.bloodLevel/s.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[s.bloodPercent,"%, ",s.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[s.pulse," BPM"]})],4)]})})},C=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]],0)},n)},n)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerMaxSpace,s=i.beakerFreeSpace,u=e.active,m=e.actToDo,p=e.title,C=u&&s>0;return(0,o.createComponentVNode)(2,a.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!l||s<=0,selected:C,icon:C?"toggle-on":"toggle-off",content:C?"Active":"Inactive",onClick:function(){return r(m)}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:l?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:s/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[s,"u"]})})}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.occupant,d=i.chemicals,s=i.maxchem,u=i.amounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Chemicals",flexGrow:"1",children:d.map((function(e,n){var t,c="";return e.overdosing?(c="bad",t=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(c="average",t=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:t,children:(0,o.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s,value:e.occ_amount/s,color:c,mr:"0.5rem",children:[e.pretty_amount,"/",s,"u"]}),u.map((function(n,t){return(0,o.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+n>s||2===l.stat,icon:"syringe",content:n,mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:n})}},t)}))]})})},n)}))})},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isBeakerLoaded;return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected.",i&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){return r("removebeaker")}})})||null]})})})}},55896:function(e,n,t){"use strict";n.__esModule=!0,n.SmartVend=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.SmartVend=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.config,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:440,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Storage",children:[s.secure&&(0,o.createComponentVNode)(2,a.NoticeBox,{danger:-1===s.locked,info:-1!==s.locked,children:-1===s.locked?(0,o.createComponentVNode)(2,a.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,o.createComponentVNode)(2,a.Box,{children:"Secure Access: Please have your identification ready."})})||null,0===s.contents.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Unfortunately, this ",d.title," is empty."]})||(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Item"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,r.map)((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:[e.amount," in stock"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"1",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:1})}}),(0,o.createComponentVNode)(2,a.Button,{content:"5",disabled:e.amount<5,onClick:function(){return l("Release",{index:e.index,amount:5})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Custom",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index})}}),(0,o.createComponentVNode)(2,a.Button,{content:"All",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:e.amount})}})]})]},n)}))(s.contents)]})]})})})}},20561:function(e,n,t){"use strict";n.__esModule=!0,n.Smes=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(58083),i=t(85952),l=t(41860),d=1e3;n.Smes=function(e,n){var t=(0,r.useBackend)(n),s=t.act,u=t.data,m=u.capacityPercent,p=u.capacity,C=u.charge,h=u.inputAttempt,N=u.inputting,V=u.inputLevel,b=u.inputLevelMax,f=u.inputAvailable,g=u.outputAttempt,k=u.outputting,v=u.outputLevel,B=u.outputLevelMax,L=u.outputUsed,_=(m>=100?"good":N&&"average")||"bad",x=(k?"good":C>0&&"average")||"bad";return(0,o.createComponentVNode)(2,i.Window,{width:340,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:.01*m,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,l.round)(C/6e4,1)," kWh / ",(0,l.round)(p/6e4)," kWh (",m,"%)"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Input",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){return s("tryinput")},children:h?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:_,children:(m>=100?"Fully Charged":N&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===V,onClick:function(){return s("input",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===V,onClick:function(){return s("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:V/d,fillValue:f/d,minValue:0,maxValue:b/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("input",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:V===b,onClick:function(){return s("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:V===b,onClick:function(){return s("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Available",children:(0,a.formatPower)(f)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:g?"power-off":"times",selected:g,onClick:function(){return s("tryoutput")},children:g?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:x,children:k?"Sending":C>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===v,onClick:function(){return s("output",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===v,onClick:function(){return s("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:v/d,minValue:0,maxValue:B/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("output",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:v===B,onClick:function(){return s("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:v===B,onClick:function(){return s("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Outputting",children:(0,a.formatPower)(L)})]})})]})})}},21633:function(e,n,t){"use strict";n.__esModule=!0,n.SolarControl=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.SolarControl=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.generated,u=d.generated_ratio,m=d.sun_angle,p=d.array_angle,C=d.rotation_rate,h=d.max_rotation_rate,N=d.tracking_state,V=d.connected_panels,b=d.connected_tracker;return(0,o.createComponentVNode)(2,a.Window,{width:380,height:230,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,c.Grid,{children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(0,o.createComponentVNode)(2,c.Grid.Column,{size:1.5,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:u,children:s+" W"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Star orientation",children:[m,"\xb0"]})]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tracking",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:0===N,onClick:function(){return l("tracking",{mode:0})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"clock-o",content:"Timed",selected:1===N,onClick:function(){return l("tracking",{mode:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:2===N,disabled:!b,onClick:function(){return l("tracking",{mode:2})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Azimuth",children:[(0===N||1===N)&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"52px",unit:"\xb0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:p,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth",{value:n})}}),1===N&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-h-.01,maxValue:h+.01,value:C,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth_rate",{value:n})}}),2===N&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mt:"3px",children:[p+"\xb0"," (auto)"]})]})]})})]})})}},57762:function(e,n,t){"use strict";n.__esModule=!0,n.SpaceHeater=void 0;var o=t(39812),r=t(76270),c=t(71494),a=t(74814),i=t(85952);n.SpaceHeater=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.temp,u=d.minTemp,m=d.maxTemp,p=d.cell,C=d.power;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:[s," K (",s-r.T0C,"\xb0 C)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Charge",children:[C,"% ",!p&&"(No Cell Inserted)"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Knob,{animated:!0,value:s-r.T0C,minValue:u-r.T0C,maxValue:m-r.T0C,unit:"C",onChange:function(e,n){return l("temp",{newtemp:n+r.T0C})}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Cell",children:p?(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Cell",onClick:function(){return l("cellremove")}}):(0,o.createComponentVNode)(2,a.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){return l("cellinstall")}})})]})})]})})}},58215:function(e,n,t){"use strict";n.__esModule=!0,n.Stack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);n.Stack=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.amount,s=l.recipes;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Amount: "+d,children:(0,o.createComponentVNode)(2,i,{recipes:s})})})})};var i=function s(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.recipes);return Object.keys(a).sort().map((function(e){var n=a[e];return n.ref===undefined?(0,o.createComponentVNode)(2,c.Collapsible,{ml:1,mb:-.7,color:"label",title:e,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,children:(0,o.createComponentVNode)(2,s,{recipes:n})})}):(0,o.createComponentVNode)(2,d,{title:e,recipe:n})}))},l=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.recipe),l=e.maxMultiplier,d=Math.min(l,Math.floor(i.max_res_amount/i.res_amount)),s=[5,10,25],u=[],m=function(){var e=C[p];d>=e&&u.push((0,o.createComponentVNode)(2,c.Button,{content:e*i.res_amount+"x",onClick:function(){return a("make",{ref:i.ref,multiplier:e})}}))},p=0,C=s;p1?"s":""),C+=")",u>1&&(C=u+"x "+C);var h=function(e,n){return e.req_amount>n?0:Math.floor(n/e.req_amount)}(d,i);return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Table,{children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,disabled:!h,icon:"wrench",content:C,onClick:function(){return a("make",{ref:d.ref,multiplier:1})}})}),m>1&&h>1&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,l,{recipe:d,maxMultiplier:h})})]})})})}},32015:function(e,n,t){"use strict";n.__esModule=!0,n.StationAlertConsoleContent=n.StationAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,a.Window,{width:425,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.categories;return(void 0===i?[]:i).map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.category,children:(0,o.createVNode)(1,"ul",null,[0===e.alarms.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),e.alarms.map((function(e){var n="";return e.has_cameras?n=(0,o.createComponentVNode)(2,c.Section,{children:e.cameras.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{disabled:e.deact,content:e.name+(e.deact?" (deactived)":""),icon:"video",onClick:function(){return a("switchTo",{camera:e.camera})}},e.name)}))}):e.lost_sources&&(n=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Lost Alarm Sources: ",e.lost_sources]})),(0,o.createVNode)(1,"li",null,[e.name,e.origin_lost?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Alarm Origin Lost."}):"",n],0,null,e.name)}))],0)},e.category)}))};n.StationAlertConsoleContent=i},52649:function(e,n,t){"use strict";n.__esModule=!0,n.StationBlueprintsContent=n.StationBlueprints=void 0;var o=t(39812),r=(t(64499),t(85531),t(34380),t(2497),t(71494)),c=t(74814),a=t(85952);n.StationBlueprints=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,i)})};var i=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=(t.config,i.mapRef);i.areas,i.turfs;return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,o.createVNode)(1,"div","CameraConsole__right",(0,o.createComponentVNode)(2,c.ByondUi,{className:"CameraConsole__map",params:{id:l,type:"map"}}),2)],4)};n.StationBlueprintsContent=i},72e3:function(e,n,t){"use strict";n.__esModule=!0,n.SuitCycler=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitCycler=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.active,m=c.locked,p=c.uv_active,C=(0,o.createComponentVNode)(2,i);return p?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):u&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:320,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.occupied,s=i.suit,u=i.helmet,m=i.departments,p=i.species,C=i.uv_level,h=i.max_uv_level,N=i.can_repair,V=i.damage;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Storage",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",content:"Lock",onClick:function(){return a("lock")}}),children:[!(!d||!l)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"square":"square-o",content:u||"Empty",disabled:!u,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"square":"square-o",content:s||"Empty",disabled:!s,onClick:function(){return a("dispense",{item:"suit"})}})}),N&&V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit Damage",children:[V,(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"Repair",onClick:function(){return a("repair_suit")}})]}):null]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Customization",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Paintjob",children:(0,o.createComponentVNode)(2,c.Dropdown,{noscroll:!0,width:"100%",options:m,selected:m[0],onSelected:function(e){return a("department",{department:e})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Species",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",maxHeight:"160px",options:p,selected:p[0],onSelected:function(e){return a("species",{species:e})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){return a("apply_paintjob")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"UV Decontamination",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,c.NumberInput,{width:"50px",value:C,minValue:1,maxValue:h,stepPixelSize:30,onChange:function(e,n){return a("radlevel",{radlevel:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Decontaminate",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",disabled:d&&l,textAlign:"center",onClick:function(){return a("uv")}})})]})})],4)},l=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.model_text,d=i.userHasAccess;return(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",bold:!0,children:["The ",l," suit cycler is currently locked. Please contact your system administrator."]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",content:"[Unlock]",disabled:!d,onClick:function(){return a("lock")}})})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},80748:function(e,n,t){"use strict";n.__esModule=!0,n.SuitStorageUnit=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitStorageUnit=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.panelopen,m=c.uv_active,p=c.broken,C=(0,o.createComponentVNode)(2,i);return u?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):p&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:365,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.open,s=i.safeties,u=i.occupied,m=i.suit,p=i.helmet,C=i.mask;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",minHeight:"260px",buttons:(0,o.createFragment)([!d&&(0,o.createComponentVNode)(2,c.Button,{icon:l?"unlock":"lock",content:l?"Unlock":"Lock",onClick:function(){return a("lock")}}),!l&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return a("door")}})],0),children:[!(!u||!s)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),l&&(0,o.createComponentVNode)(2,c.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,o.createComponentVNode)(2,c.Box,{children:"Unit Locked"}),(0,o.createComponentVNode)(2,c.Icon,{name:"lock"})]})||d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"square":"square-o",content:m||"Empty",disabled:!m,onClick:function(){return a("dispense",{item:"suit"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return a("dispense",{item:"mask"})}})})]})||(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:u&&s,textAlign:"center",onClick:function(){return a("uv")}})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.uv_super;return(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:[(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Knob,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(e){return e?"15nm":"185nm"},onChange:function(e,n){return a("toggleUV")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The ",l?(0,o.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,o.createVNode)(1,"font",null,"RED",16,{color:"red"})," LED is on.",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return a("togglesafeties")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"black":"red",mr:2}),(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"green":"black"})]})]})]})]})},d=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},6951:function(e,n,t){"use strict";n.__esModule=!0,n.SupermatterMonitorContent=n.SupermatterMonitor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=t(41860),l=t(2497);n.SupermatterMonitor=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n);t.act;return t.data.active?(0,o.createComponentVNode)(2,u):(0,o.createComponentVNode)(2,s)};n.SupermatterMonitorContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.supermatters;return(0,o.createComponentVNode)(2,c.Section,{title:"Supermatters Detected",buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Refresh",icon:"sync",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,c.Section,{title:e.area_name+" (#"+e.uid+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:[e.integrity," %"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View Details",onClick:function(){return a("set",{set:e.uid})}})})]})})},n)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.SM_area,u=d.SM_integrity,m=d.SM_power,p=d.SM_ambienttemp,C=d.SM_ambientpressure,h=d.SM_EPR,N=d.SM_gas_O2,V=d.SM_gas_CO2,b=d.SM_gas_N2,f=d.SM_gas_PH,g=d.SM_gas_N2O;return(0,o.createComponentVNode)(2,c.Section,{title:(0,l.toTitleCase)(s),buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return a("clear")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Core Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{animated:!0,value:u,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,c.Box,{color:(m>300?"bad":m>150&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" MeV/cm\xb3"},value:m})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.Box,{color:(p>5e3?"bad":p>4e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" K"},value:p})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.Box,{color:(C>1e4?"bad":C>5e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" kPa"},value:C})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chamber EPR",children:(0,o.createComponentVNode)(2,c.Box,{color:(h>4?"bad":h>1&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)},value:h})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gas Composition",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"O\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:N}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"CO\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"PH",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2O",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),"%"]})]})})]})})}},12431:function(e,n,t){"use strict";n.__esModule=!0,n.SupplyConsole=void 0;var o=t(39812),r=t(64499),c=(t(41860),t(58083)),a=t(71494),i=t(74814),l=t(16007),d=t(85952),s=t(85531),u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.supply_points,l=e.args,d=l.name,s=l.cost,u=l.manifest,m=l.ref,p=l.random;return(0,o.createComponentVNode)(2,i.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:d,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"shopping-cart",content:"Buy - "+s+" points",disabled:s>c,onClick:function(){return r("request_crate",{ref:m})}}),children:(0,o.createComponentVNode)(2,i.Section,{title:"Contains"+(p?" any "+p+" of:":""),scrollable:!0,height:"200px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})})};n.SupplyConsole=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data;return(0,l.modalRegisterBodyOverride)("view_crate",u),(0,o.createComponentVNode)(2,d.Window,{width:700,height:620,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"100%"}),(0,o.createComponentVNode)(2,i.Section,{title:"Supply Records",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,p)]})]})})};var m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.supply_points,s=l.shuttle,u=null,m=!1;return l.shuttle_auth&&(1===s.launch&&0===s.mode?u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Away",onClick:function(){return r("send_shuttle",{mode:"send_away"})}}):2!==s.launch||3!==s.mode&&1!==s.mode?1===s.launch&&5===s.mode&&(u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){return r("send_shuttle",{mode:"send_to_station"})}})):u=(0,o.createComponentVNode)(2,i.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){return r("send_shuttle",{mode:"cancel_shuttle"})}}),s.force&&(m=!0)),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supply Points",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d})})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",buttons:(0,o.createFragment)([u,m?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return r("send_shuttle",{mode:"force_shuttle"})}}):null],0),children:s.location}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engine",children:s.engine}),4===s.mode?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ETA",children:s.time>1?(0,c.formatTime)(s.time):"LATE"}):null]})})]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.order_auth,(0,a.useLocalState)(n,"tabIndex",0)),c=r[0],l=r[1];return(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"box",selected:0===c,onClick:function(){return l(0)},children:"Request"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"check-circle-o",selected:1===c,onClick:function(){return l(1)},children:"Accepted"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"circle-o",selected:2===c,onClick:function(){return l(2)},children:"Requests"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:3===c,onClick:function(){return l(3)},children:"Order history"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:4===c,onClick:function(){return l(4)},children:"Export history"})]}),0===c?(0,o.createComponentVNode)(2,C):null,1===c?(0,o.createComponentVNode)(2,h,{mode:"Approved"}):null,2===c?(0,o.createComponentVNode)(2,h,{mode:"Requested"}):null,3===c?(0,o.createComponentVNode)(2,h,{mode:"All"}):null,4===c?(0,o.createComponentVNode)(2,N):null]})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.categories,u=l.supply_packs,m=l.contraband,p=l.supply_points,C=(0,a.useLocalState)(n,"activeCategory",null),h=C[0],N=C[1],V=(0,s.flow)([(0,r.filter)((function(e){return e.group===h})),(0,r.filter)((function(e){return!e.contraband||m})),(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return e.cost>p}))])(u);return(0,o.createComponentVNode)(2,i.Section,{level:2,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e,selected:e===h,onClick:function(){return N(e)}},e)}))})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,ml:2,children:(0,o.createComponentVNode)(2,i.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:V.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Stack,{align:"center",justify:"flex-start",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"70%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:e.name,color:e.cost>p?"red":null,onClick:function(){return c("request_crate",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"#",color:e.cost>p?"red":null,onClick:function(){return c("request_crate_multi",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"C",color:e.cost>p?"red":null,onClick:function(){return c("view_crate",{crate:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:[e.cost," points"]})]})},e.name)}))})})]})})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.mode,d=c.orders,s=c.order_auth,u=c.supply_points,m=d.filter((function(e){return e.status===l||"All"===l}));return m.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:["Requested"===l&&s?(0,o.createComponentVNode)(2,i.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return r("clear_all_requests")}}):null,m.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{title:"Order "+(n+1),buttons:"All"===l&&s?(0,o.createComponentVNode)(2,i.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return r("delete_order",{ref:e.ref})}}):null,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.entries.map((function(n){return n.entry?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:s?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){r("edit_order_value",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry}):null})),"All"===l?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.status}):null]}),s&&"Requested"===l?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Approve",disabled:e.cost>u,onClick:function(){return r("approve_order",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Deny",onClick:function(){return r("deny_order",{ref:e.ref})}})],4):null]},n)}))]}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No orders found."})},N=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.receipts,d=c.order_auth;return l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.title.map((function(n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:d?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry},n.field)})),e.error?(0,o.createComponentVNode)(2,i.LabeledList.Item,{labelColor:"red",label:"Error",children:e.error}):e.contents.map((function(n,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.object,buttons:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit_field",{ref:e.ref,index:t+1,edit:"meow","default":n.object})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){return r("export_delete_field",{ref:e.ref,index:t+1})}})],4):null,children:[n.quantity,"x -> ",n.value," points"]},t)}))]}),d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return r("export_add_field",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Delete Record",onClick:function(){return r("export_delete",{ref:e.ref})}})],4):null]},n)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No receipts found."})}},30111:function(e,n,t){"use strict";n.__esModule=!0,n.TEGenerator=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.TEGenerator=function(e,n){var t=(0,c.useBackend)(n).data,r=t.totalOutput,s=t.maxTotalOutput,u=t.thermalOutput,m=t.primary,p=t.secondary;return(0,o.createComponentVNode)(2,i.Window,{width:550,height:310,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Output",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:r,maxValue:s,children:(0,l.formatPower)(r)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermal Output",children:(0,l.formatPower)(u)})]})}),m&&p?(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Primary Circulator",values:m})}),(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Secondary Circulator",values:p})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})};var d=function(e,n){var t=e.name,c=e.values,i=c.dir,d=c.output,s=c.flowCapacity,u=c.inletPressure,m=c.inletTemperature,p=c.outletPressure,C=c.outletTemperature;return(0,o.createComponentVNode)(2,a.Section,{title:t+" ("+i+")",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Output",children:(0,l.formatPower)(d)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Capacity",children:[(0,r.round)(s,2),"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Pressure",children:(0,l.formatSiUnit)(1e3*u,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Temperature",children:[(0,r.round)(m,2)," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Pressure",children:(0,l.formatSiUnit)(1e3*p,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Temperature",children:[(0,r.round)(C,2)," K"]})]})})}},58457:function(e,n,t){"use strict";n.__esModule=!0,n.Tank=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Tank=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.connected,s=l.showToggle,u=void 0===s||s,m=l.maskConnected,p=l.tankPressure,C=l.releasePressure,h=l.defaultReleasePressure,N=l.minReleasePressure,V=l.maxReleasePressure;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:320,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"air-freshener":"lock-open",selected:d,disabled:!m,content:"Mask Release Valve",onClick:function(){return i("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask Connected",children:m?"Yes":"No"})})}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:l.tankPressure+" kPa"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:C===N,onClick:function(){return i("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(C),width:"65px",unit:"kPa",minValue:N,maxValue:V,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:C===V,onClick:function(){return i("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"",disabled:C===h,onClick:function(){return i("pressure",{pressure:"reset"})}})]})]})})]})})}},38754:function(e,n,t){"use strict";n.__esModule=!0,n.TankDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TankDispenser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:275,height:103,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Phoron",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.plasma?"square":"square-o",content:"Dispense",disabled:!l.plasma,onClick:function(){return i("plasma")}}),children:l.plasma}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.oxygen?"square":"square-o",content:"Dispense",disabled:!l.oxygen,onClick:function(){return i("oxygen")}}),children:l.oxygen})]})})})})}},73754:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsLogBrowser=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.TelecommsLogBrowser=function(e,n){var t=(0,c.useBackend)(n),r=t.act,s=t.data,u=s.universal_translate,m=s.network,p=s.temp,C=s.servers,h=s.selectedServer;return(0,o.createComponentVNode)(2,i.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[p&&p.length?(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-box",verticalAlign:"middle",children:p}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return r("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,a.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Refresh",onClick:function(){return r("scan")}}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===C.length,onClick:function(){return r("release")}})],4),children:(0,o.createComponentVNode)(2,a.Button,{content:m,icon:"pen",onClick:function(){return r("network")}})})})}),h?(0,o.createComponentVNode)(2,d,{network:m,server:h,universal_translate:u}):(0,o.createComponentVNode)(2,l,{network:m,servers:C})]})})};var l=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.network,e.servers);return i&&i.length?(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunication Servers",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,a.Button,{content:"View",icon:"eye",onClick:function(){return r("view",{id:e.id})}})},e.id)}))})}):(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunications Servers",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No servers detected."}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return r("scan")}})]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.network,e.server),d=e.universal_translate;return(0,o.createComponentVNode)(2,a.Section,{title:"Server ("+l.id+")",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Return",icon:"undo",onClick:function(){return i("mainmenu")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Recorded Traffic",children:l.totalTraffic>=1024?(0,r.round)(l.totalTraffic/1024)+" Terrabytes":l.totalTraffic+" Gigabytes"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stored Logs",mt:"4px",children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.logs&&l.logs.length?l.logs.map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:e.id%2,children:(0,o.createComponentVNode)(2,a.Section,{title:d||e.parameters.uspeech||e.parameters.intelligible||"Execution Error"===e.input_type?e.input_type:"Audio File",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.id})}}),children:"Execution Error"===e.input_type?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data type",children:"Error"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output",children:e.parameters.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Delete",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return i("delete",{id:e.id})}})})]}):d||e.parameters.uspeech||e.parameters.intelligible?(0,o.createComponentVNode)(2,s,{log:e}):(0,o.createComponentVNode)(2,s,{error:!0})})},e.id)})):"No Logs Detected."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data,e.log),i=e.error,l=r&&r.parameters||{none:"none"},d=l.timecode,s=l.name,u=l.race,m=l.job,p=l.message;return i?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:[s," (Job: ",m,")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:p})]})}},29441:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMachineBrowser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.TelecommsMachineBrowser=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.network,u=d.temp,m=d.machinelist,p=d.selectedMachine;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u&&u.length?(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-box",verticalAlign:"middle",children:u}),(0,o.createComponentVNode)(2,c.Button,{icon:"times-circle",float:"right",onClick:function(){return l("cleartemp")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,c.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===m.length,onClick:function(){return l("release")}})],4),children:(0,o.createComponentVNode)(2,c.Button,{content:s,icon:"pen",onClick:function(){return l("network")}})})})}),m&&m.length?(0,o.createComponentVNode)(2,i,{title:p?p.name+" ("+p.id+")":"Detected Network Entities",list:p?p.links:m,showBack:p}):(0,o.createComponentVNode)(2,c.Section,{title:"No Devices Found",children:(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}})})]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.list),l=e.title,d=e.showBack;return(0,o.createComponentVNode)(2,c.Section,{title:l,buttons:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){return a("mainmenu")}}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"u",null,"Linked entities",16)}),(0,o.createComponentVNode)(2,c.LabeledList,{children:i.length?i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,c.Button,{content:"View",icon:"eye",onClick:function(){return a("view",{id:e.id})}})},e.id)})):(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},86756:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMultitoolMenu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(36355),i=t(85952);n.TelecommsMultitoolMenu=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),s=(c.temp,c.on,c.id,c.network,c.autolinkers,c.shadowlink,c.options);c.linked,c.filter,c.multitool,c.multitool_buffer;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:540,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.TemporaryNotice),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d,{options:s})]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.temp,i.on),d=i.id,s=i.network,u=i.autolinkers,m=i.shadowlink,p=(i.options,i.linked),C=i.filter,h=i.multitool,N=i.multitool_buffer;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:l?"On":"Off",onClick:function(){return a("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Identification String",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:d,onClick:function(){return a("id")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return a("network")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prefabrication",children:u?"TRUE":"FALSE"}),m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,h?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Multitool Buffer",children:[N?(0,o.createFragment)([N.name,(0,o.createTextVNode)(" ("),N.id,(0,o.createTextVNode)(")")],0):null,(0,o.createComponentVNode)(2,c.Button,{color:N?"green":null,content:N?"Link ("+N.id+")":"Add Machine",icon:N?"link":"plus",onClick:N?function(){return a("link")}:function(){return a("buffer")}}),N?(0,o.createComponentVNode)(2,c.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){return a("flush")}}):null]}):null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Linked network Entities",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.ref+" "+e.name+" ("+e.id+")",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",onClick:function(){return a("unlink",{unlink:e.index})}})},e.ref)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Filtering Frequencies",mt:1,children:[C.map((function(e){return(0,o.createComponentVNode)(2,c.Button.Confirm,{content:e.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return a("delete",{"delete":e.freq})}},e.index)})),C&&0!==C.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No filters."})]})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.options),l=i.use_listening_level,d=i.use_broadcasting,s=i.use_receiving,u=i.listening_level,m=i.broadcasting,p=i.receiving,C=i.use_change_freq,h=i.change_freq,N=i.use_broadcast_range,V=i.use_receive_range,b=i.range,f=i.minRange,g=i.maxRange;return l||d||s||C||N||V?(0,o.createComponentVNode)(2,c.Section,{title:"Options",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[l?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal Locked to Station",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock-closed":"lock-open",content:u?"Yes":"No",onClick:function(){return a("change_listening")}})}):null,d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Broadcasting",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Yes":"No",onClick:function(){return a("broadcast")}})}):null,s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Receving",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:p,content:p?"Yes":"No",onClick:function(){return a("receive")}})}):null,C?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Signal Frequency",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wave-square",selected:!!h,content:h?"Yes ("+h+")":"No",onClick:function(){return a("change_freq")}})}):null,N||V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(N?"Broadcast":"Receive")+" Range",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:b,minValue:f,maxValue:g,unit:"gigameters",stepPixelSize:4,format:function(e){return e+1},onDrag:function(e,n){return a("range",{range:n})}})}):null]})}):(0,o.createComponentVNode)(2,c.Section,{title:"No Options Found"})}},18509:function(e,n,t){"use strict";n.__esModule=!0,n.Teleporter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Teleporter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked_name,s=l.station_connected,u=l.hub_connected,m=l.calibrated,p=l.teleporter_on;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bullseye",onClick:function(){return i("select_target")},content:d})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Calibrated",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return i("test_fire")},content:m?"Accurate":"Test Fire"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Teleporter",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:p,color:p?"good":"bad",onClick:function(){return i("toggle_on")},content:p?"Online":"OFFLINE"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Station",children:s?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},62555:function(e,n,t){"use strict";n.__esModule=!0,n.TelesciConsoleContent=n.TelesciConsole=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.TelesciConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.noTelepad);return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:r&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,d)})})};var l=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,o.createVNode)(1,"br"),"Please add telepad data."]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.insertedGps,s=l.rotation,u=l.currentZ,m=l.cooldown,p=l.crystalCount,C=l.maxCrystals,h=(l.maxPossibleDistance,l.maxAllowedDistance),N=l.distance,V=l.tempMsg,b=l.sectorOptions,f=l.lastTeleData;return(0,o.createComponentVNode)(2,a.Section,{title:"Telepad Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!d,onClick:function(){return i("ejectGPS")},content:"Eject GPS"}),children:[(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:m&&(0,o.createComponentVNode)(2,a.Box,{children:["Telepad is recharging. Please wait ",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m})," seconds."]})||(0,o.createComponentVNode)(2,a.Box,{children:V})}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bearing",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:s,format:function(e){return e+"\xb0"},step:1,minValue:-900,maxValue:900,onDrag:function(e,n){return i("setrotation",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:N,format:function(e){return e+"/"+h+" m"},minValue:0,maxValue:h,step:1,stepPixelSize:4,onDrag:function(e,n){return i("setdistance",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sector",children:(0,r.sortBy)((function(e){return Number(e)}))(b).map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"check-circle",content:e,selected:u===e,onClick:function(){return i("setz",{setz:e})}},e)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:-90,onClick:function(){return i("send")},content:"Send"}),(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:90,onClick:function(){return i("receive")},content:"Receive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",iconRotation:90,onClick:function(){return i("recal")},content:"Recalibrate"})]})]}),f&&(0,o.createComponentVNode)(2,a.Section,{mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Telepad Location",children:[f.src_x,", ",f.src_y]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:[f.distance,"m"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transit Time",children:[f.time," secs"]})]})})||(0,o.createComponentVNode)(2,a.Section,{mt:1,children:"No teleport data found."}),(0,o.createComponentVNode)(2,a.Section,{children:["Crystals: ",p," / ",C]})]})};n.TelesciConsoleContent=d},55096:function(e,n,t){"use strict";n.__esModule=!0,n.TimeClock=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(14959);n.TimeClock=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.department_hours,m=s.user_name,p=s.card,C=s.assignment,h=s.job_datum,N=s.allow_change_job,V=s.job_choices;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"OOC",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Time Off Balance for "+m,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:u[e]>6?"good":u[e]>1?"average":"bad",children:[(0,r.toFixed)(u[e],1)," ",1===u[e]?"hour":"hours"]},e)}))})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Employee Info",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Employee ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"user",onClick:function(){return d("id")},children:p||"Insert ID"})}),!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,a.Box,{backgroundColor:h.selection_color,p:.8,children:(0,o.createComponentVNode)(2,a.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{ml:1,children:(0,o.createComponentVNode)(2,l.RankIcon,{color:"white",rank:h.title})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,inline:!0,mr:1,children:h.title})})]})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Departments",children:h.departments}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pay Scale",children:h.economic_modifier}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"PTO Elegibility",children:h.timeoff_factor>0&&(0,o.createComponentVNode)(2,a.Box,{children:["Earns PTO - ",h.pto_department]})||h.timeoff_factor<0&&(0,o.createComponentVNode)(2,a.Box,{children:["Requires PTO - ",h.pto_department]})||(0,o.createComponentVNode)(2,a.Box,{children:"Neutral"})})],4)]})}),!(!N||!h||0===h.timeoff_factor||"Dismissed"===C)&&(0,o.createComponentVNode)(2,a.Section,{title:"Employment Actions",children:h.timeoff_factor>0&&(u[h.pto_department]>0&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return d("switch-to-offduty")},children:"Go Off-Duty"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(V).length&&Object.keys(V).map((function(e){return V[e].map((function(n){return(0,o.createComponentVNode)(2,a.Button,{icon:"suitcase",onClick:function(){return d("switch-to-onduty-rank",{"switch-to-onduty-rank":e,"switch-to-onduty-assignment":n})},children:n},n)}))}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},24389:function(e,n,t){"use strict";n.__esModule=!0,n.TransferValve=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TransferValve=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.tank_one,s=l.tank_two,u=l.attached_device,m=l.valve;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Valve Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"unlock":"lock",content:m?"Open":"Closed",disabled:!d||!s,onClick:function(){return i("toggle")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Assembly",buttons:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return i("device")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){return i("remove_device")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Assembly"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment One",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){return i("tankone")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment Two",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:s,disabled:!s,onClick:function(){return i("tanktwo")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}},95893:function(e,n,t){"use strict";n.__esModule=!0,n.TurbineControl=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.TurbineControl=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.connected,d.compressor_broke),u=d.turbine_broke,m=d.broken,p=d.door_status,C=d.online,h=d.power,N=d.rpm,V=d.temp;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Turbine Controller",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:m&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Setup is broken",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",onClick:function(){return l("reconnect")},content:"Reconnect"})]})||(0,o.createComponentVNode)(2,a.Box,{color:C?"good":"bad",children:!C||s||u?"Offline":"Online"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Compressor",children:s&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Compressor is inoperable."})||u&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Turbine is inoperable."})||(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:C,content:"Compressor Power",onClick:function(){return l(C?"power-off":"power-on")}})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vent Doors",children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:p,onClick:function(){return l("doors")},content:p?"Closed":"Open"})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Speed",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:N})," RPM"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Temperature",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Generated Power",children:m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{format:function(e){return(0,r.formatPower)(e)},value:Number(h)})})]})})]})})}},62542:function(e,n,t){"use strict";n.__esModule=!0,n.Turbolift=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Turbolift=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.floors,s=l.doors_open,u=l.fire_mode;return(0,o.createComponentVNode)(2,a.Window,{width:480,height:260+25*u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:s?"door-open":"door-closed",content:s?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:s&&!u,color:u?"red":null,onClick:function(){return i("toggle_doors")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return i("emergency_stop")}})],4),children:[!u||(0,o.createComponentVNode)(2,c.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:e.label||"Floor #"+e.id}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"8%",textAlign:"left",children:(0,o.createComponentVNode)(2,c.Button,{icon:"circle",color:e.current?"red":e.target?"green":e.queued?"yellow":null,onClick:function(){return i("move_to_floor",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",grow:1,children:e.name})]})},e.id)}))})]})})})}},89761:function(e,n,t){"use strict";n.__esModule=!0,n.GenericUplink=n.Uplink=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Uplink=function(e,n){var t=(0,c.useBackend)(n).data,r=(0,c.useLocalState)(n,"screen",0),i=r[0],m=r[1],p=t.telecrystals;return(0,o.createComponentVNode)(2,l.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{screen:i,setScreen:m}),0===i&&(0,o.createComponentVNode)(2,u,{currencyAmount:p,currencySymbol:"TC"})||1===i&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,a.Section,{color:"bad",children:"Error"})]})})};var d=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=e.screen,l=e.setScreen,d=r.discount_name,s=r.discount_amount,u=r.offer_expiry;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===i,onClick:function(){return l(0)},children:"Request Items"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,onClick:function(){return l(1)},children:"Exploitable Information"})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Item Discount",level:2,children:s<100&&(0,o.createComponentVNode)(2,a.Box,{children:[d," - ",s,"% off. Offer expires at: ",u]})||(0,o.createComponentVNode)(2,a.Box,{children:"No items currently discounted."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.exploit,d=i.locked_records;return(0,o.createComponentVNode)(2,a.Section,{title:"Exploitable Information",buttons:l&&(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Back",onClick:function(){return r("view_exploits",{id:0})}}),children:l&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sex",children:l.sex}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Age",children:l.age}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:l.rank}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Home System",children:l.home_system}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Citizenship",children:l.citizenship}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Faction",children:l.faction}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Religion",children:l.religion}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fingerprint",children:l.fingerprint}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other Affiliations",children:l.antagfaction}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:"Acquired Information"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Notes",children:l.nanoui_exploit_record.split(" ").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})||d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",fluid:!0,content:e.name,onClick:function(){return r("view_exploits",{id:e.id})}},e.id)}))})},u=function(e,n){var t,l,d=e.currencyAmount,s=void 0===d?0:d,u=e.currencySymbol,p=void 0===u?"\u20ae":u,C=(0,c.useBackend)(n),h=C.act,N=C.data,V=N.compactMode,b=N.lockable,f=N.categories,g=void 0===f?[]:f,k=(0,c.useLocalState)(n,"searchText",""),v=k[0],B=k[1],L=(0,c.useLocalState)(n,"category",null==(t=g[0])?void 0:t.name),_=L[0],x=L[1],w=(0,r.createSearch)(v,(function(e){return e.name+e.desc})),S=v.length>0&&g.flatMap((function(e){return e.items||[]})).filter(w).filter((function(e,n){return n<25}))||(null==(l=g.find((function(e){return e.name===_})))?void 0:l.items)||[];return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:s>0?"good":"bad",children:[(0,i.formatMoney)(s)," ",p]}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,a.Input,{autoFocus:!0,value:v,onInput:function(e,n){return B(n)},mx:1}),(0,o.createComponentVNode)(2,a.Button,{icon:V?"list":"info",content:V?"Compact":"Detailed",onClick:function(){return h("compact_toggle")}}),!!b&&(0,o.createComponentVNode)(2,a.Button,{icon:"lock",content:"Lock",onClick:function(){return h("lock")}})],0),children:(0,o.createComponentVNode)(2,a.Flex,{children:[0===v.length&&(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:g.map((function(e){var n;return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.name===_,onClick:function(){return x(e.name)},children:[e.name," (",(null==(n=e.items)?void 0:n.length)||0,")"]},e.name)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:[0===S.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:0===v.length?"No items in this category.":"No results found."}),(0,o.createComponentVNode)(2,m,{compactMode:v.length>0||V,currencyAmount:s,currencySymbol:p,items:S})]})]})})};n.GenericUplink=u;var m=function(e,n){var t=e.compactMode,l=e.currencyAmount,d=e.currencySymbol,s=(0,c.useBackend)(n).act,u=(0,c.useLocalState)(n,"hoveredItem",{}),m=u[0],p=u[1],C=m&&m.cost||0,h=e.items.map((function(e){var n=m&&m.name!==e.name,t=l-C0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Harvesting in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||u<0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Energy dump in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||Object.keys(m).length&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:m.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Signature ID",children:m.artifact_id})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"eject",onClick:function(){return l("ejectbattery")},children:"Eject Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bolt",onClick:function(){return l("drainbattery")},children:"Drain Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"star",onClick:function(){return l("harvest")},children:"Begin Harvest"})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})})})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.info.inserted_battery);return Object.keys(a).length?(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:a.stored_charge,maxValue:a.capacity}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})}},88835:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchDepthScanner=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchDepthScanner=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current,s=l.positive_locations;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[Object.keys(d).length&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",icon:"trash",confirmIcon:"trash",content:"Delete Entry",onClick:function(){return i("clear",{index:d.index})}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time",children:d.time}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coords",children:d.coords}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Depth",children:[d.depth," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Size",children:[d.clearance," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dissonance Spread",children:d.dissonance_spread}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Material",children:d.material})]})})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Entries",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i("clear")}}),children:s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return i("select",{select:e.index})},children:[e.time,", ",e.coords]},e.index)}))||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No traces found."})})]})})}},5622:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchHandheldPowerUtilizer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchHandheldPowerUtilizer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.inserted_battery,s=l.anomaly,u=l.charge,m=l.capacity,p=l.timeleft,C=l.activated,h=l.duration,N=l.interval;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Anomaly Power Utilizer",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!d,icon:"eject",onClick:function(){return i("ejectbattery")},children:"Eject Battery"}),children:d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inserted Battery",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomalies Detected",children:s||"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time Left Activated",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"power-off",onClick:function(){return i("startup")},children:C?"Activated":"Deactivated"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Duration",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:h,stepPixelSize:4,maxValue:30,onDrag:function(e,n){return i("changeduration",{duration:10*n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Interval",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:N,stepPixelSize:10,maxValue:10,onDrag:function(e,n){return i("changeinterval",{interval:10*n})}})})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted. Please insert a cell."})})})})}},53702:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchReplicator=void 0;var o=t(39812),r=(t(41860),t(2497),t(71494)),c=t(74814),a=t(85952);n.XenoarchReplicator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.tgui_construction;return(0,o.createComponentVNode)(2,a.Window,{theme:"abductor",width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{color:e.background,icon:e.icon,iconColor:e.foreground,fontSize:4,onClick:function(){return i("construct",{key:e.key})}},e.key)}))})})}},13153:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSpectrometer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.XenoarchSpectrometer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.scanned_item,u=d.scanned_item_desc,m=d.last_scan_data,p=d.scan_progress,C=d.scanning,h=d.scanner_seal_integrity,N=d.scanner_rpm,V=d.scanner_temperature,b=d.coolant_usage_rate,f=d.coolant_usage_max,g=(d.unused_coolant_abs,d.unused_coolant_per),k=d.coolant_purity,v=d.optimal_wavelength,B=d.maser_wavelength,L=d.maser_wavelength_max,_=d.maser_efficiency,x=d.radiation,w=(d.t_left_radspike,d.rad_shield_on);return(0,o.createComponentVNode)(2,a.Window,{width:900,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"signal",selected:C,onClick:function(){return l("scanItem")},children:C?"HALT SCAN":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,onClick:function(){return l("ejectItem")},children:"Eject Item"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Item",children:s||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No item inserted."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heuristic Analysis",children:u||"None found."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:100,color:"good"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vacuum Seal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"MASER",buttons:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Match wavelengths to progress the scan."}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"MASER Efficiency",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:_,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wavelength",children:(0,o.createComponentVNode)(2,c.Slider,{animated:!0,value:B,fillValue:v,minValue:1,maxValue:L,format:function(e){return e+" MHz"},step:10,onDrag:function(e,n){return l("maserWavelength",{wavelength:n})}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Environment / Internal",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Centrifuge Speed",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:N,minValue:0,maxValue:1e3,color:"good",children:[N," RPM"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Internal Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:V,maxValue:1273,ranges:{bad:[1e3,Infinity],average:[250,1e3],good:[0,250]},children:[V," K"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Radiation",buttons:(0,o.createComponentVNode)(2,c.Button,{selected:w,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:w?"Disable Radiation Shielding":"Enable Radiation Shielding"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Ambient Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:x,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[x," mSv"]})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cooling",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Remaining",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:10*g,maxValue:1e3,ranges:{good:[65,Infinity],average:[15,65],bad:[0,15]},children:[10*g," u"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Flow Rate",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:b,maxValue:f,stepPixelSize:50,format:function(e){return e+" u/s"},onDrag:function(e,n){return l("coolantRate",{coolant:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Purity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:k,maxValue:100,ranges:{good:[66,Infinity],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Latest Results",children:(0,i.decodeHtmlEntities)(m).split("\n").map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e},e)}))})]})})}},19820:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSuspension=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchSuspension=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cell,s=l.cellCharge,u=l.cellMaxCharge,m=l.locked,p=l.suspension_field;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:150,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:'Triple-phase S.F.G. MK III "Reliant"',buttons:(0,o.createComponentVNode)(2,c.Button,{icon:m?"lock":"lock-open",selected:!m,onClick:function(){return i("lock")},children:m?"Locked":"Unlocked"}),children:m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"This interface is locked. Swipe an ID card to unlock it."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:d&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*u,Infinity],average:[.5*u,.75*u],bad:[-Infinity,.5*u]},value:s,maxValue:u})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cell inserted."})})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,icon:"meteor",selected:p,onClick:function(){return i("toggle_field")},children:p?"Disengage Suspension Field":"Engage Suspension Field"})],4)})})})}},71739:function(e,n,t){"use strict";n.__esModule=!0,n.Scrubber=n.Vent=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);t(76270);n.Vent=function(e,n){var t=e.vent,i=(0,c.useBackend)(n).act,l=t.id_tag,d=t.long_name,s=t.power,u=t.checks,m=t.excheck,p=t.incheck,C=t.direction,h=t.external,N=t.internal,V=t.extdefault,b=t.intdefault;return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(d),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",selected:s,content:s?"On":"Off",onClick:function(){return i("power",{id_tag:l,val:Number(!s)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"siphon"!==C?"Pressurizing":"Siphoning",color:"siphon"===C&&"danger",onClick:function(){return i("direction",{id_tag:l,val:Number("siphon"===C)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"Internal",selected:p,onClick:function(){return i("incheck",{id_tag:l,val:u})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"External",selected:m,onClick:function(){return i("excheck",{id_tag:l,val:u})}})]}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(N),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_internal_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:b,content:"Reset",onClick:function(){return i("reset_internal_pressure",{id_tag:l})}})]}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"External Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(h),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_external_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:V,content:"Reset",onClick:function(){return i("reset_external_pressure",{id_tag:l})}})]})]})})};n.Scrubber=function(e,n){var t=e.scrubber,i=(0,c.useBackend)(n).act,l=t.long_name,d=t.power,s=t.scrubbing,u=t.id_tag,m=(t.widenet,t.filters);return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(l),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return i("power",{id_tag:u,val:Number(!d)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"filter":"sign-in-alt",color:s||"danger",content:s?"Scrubbing":"Siphoning",onClick:function(){return i("scrubbing",{id_tag:u,val:Number(!s)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filters",children:s&&m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.val?"check-square-o":"square-o",content:e.name,title:e.name,selected:e.val,onClick:function(){return i(e.command,{id_tag:u,val:!e.val})}},e.name)}))||"N/A"})]})})}},48229:function(e,n,t){"use strict";n.__esModule=!0,n.BeakerContents=void 0;var o=t(39812),r=t(74814);n.BeakerContents=function(e){var n=e.beakerLoaded,t=e.beakerContents,c=void 0===t?[]:t,a=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!n&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===c.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),c.map((function(e,n){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:(0,o.createComponentVNode)(2,r.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:[(t=e.volume,t+" unit"+(1===t?"":"s"))," of ",e.name]}),!!a&&(0,o.createComponentVNode)(2,r.Flex.Item,{children:a(e,n)})]})},e.name);var t}))]})}},16007:function(e,n,t){"use strict";n.__esModule=!0,n.ComplexModal=n.modalRegisterBodyOverride=n.modalOpen=void 0;var o=t(39812),r=t(71494),c=t(74814),a={};n.modalOpen=function(e,n,t){var o=(0,r.useBackend)(e),c=o.act,a=o.data,i=Object.assign(a.modal?a.modal.args:{},t||{});c("modal_open",{id:n,arguments:JSON.stringify(i)})};n.modalRegisterBodyOverride=function(e,n){a[e]=n};var i=function(e,n,t,o){var c=(0,r.useBackend)(e),a=c.act,i=c.data;if(i.modal){var l=Object.assign(i.modal.args||{},o||{});a("modal_answer",{id:n,answer:t,arguments:JSON.stringify(l)})}},l=function(e,n){(0,(0,r.useBackend)(e).act)("modal_close",{id:n})};n.ComplexModal=function(e,n){var t=(0,r.useBackend)(n).data;if(t.modal){var d,s,u=t.modal,m=u.id,p=u.text,C=u.type,h=(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}});if(a[m])s=a[m](t.modal,n);else if("input"===C){var N=t.modal.value;d=function(e){return i(n,m,N)},s=(0,o.createComponentVNode)(2,c.Input,{value:t.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autoFocus:!0,autoSelect:!0,onChange:function(e,n){N=n}}),h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return i(n,m,N)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}else if("choice"===C){var V="object"==typeof t.modal.choices?Object.values(t.modal.choices):t.modal.choices;s=(0,o.createComponentVNode)(2,c.Dropdown,{options:V,selected:t.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return i(n,m,e)}})}else"bento"===C?s=(0,o.createComponentVNode)(2,c.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:t.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,c.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,c.Button,{selected:r+1===parseInt(t.modal.value,10),onClick:function(){return i(n,m,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===C&&(h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:t.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return i(n,m,0)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:t.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return i(n,m,1)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,c.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:d,mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:p}),s,h]})}}},67861:function(e,n,t){"use strict";n.__esModule=!0,n.FullscreenNotice=void 0;var o=t(39812),r=t(74814);n.FullscreenNotice=function(e,n){var t=e.children,c=e.title,a=void 0===c?"Welcome":c;return(0,o.createComponentVNode)(2,r.Section,{title:a,height:"100%",fill:!0,children:(0,o.createComponentVNode)(2,r.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,r.Flex.Item,{textAlign:"center",mt:"-2rem",children:t})})})}},21451:function(e,n,t){"use strict";n.__esModule=!0,n.InterfaceLockNoticeBox=void 0;var o=t(39812),r=t(71494),c=t(74814);n.InterfaceLockNoticeBox=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.siliconUser,d=void 0===l?i.siliconUser:l,s=e.locked,u=void 0===s?i.locked:s,m=e.normallyLocked,p=void 0===m?i.normallyLocked:m,C=e.onLockStatusChange,h=void 0===C?function(){return a("lock")}:C,N=e.accessText,V=void 0===N?"an ID card":N,b=e.deny,f=void 0!==b&&b,g=e.denialMessage;return f?void 0===g?"Error.":g:d?(0,o.createComponentVNode)(2,c.NoticeBox,{color:d&&"grey",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:"Interface lock status:"}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1"}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{m:"0",color:p?"red":"green",icon:p?"lock":"unlock",content:p?"Locked":"Unlocked",onClick:function(){h&&h(!u)}})})]})}):(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe ",V," ","to ",u?"unlock":"lock"," this interface."]})}},28117:function(e,n,t){"use strict";n.__esModule=!0,n.LoginInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.LoginInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.authenticated,d=i.rank;if(i)return(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l," (",d,")"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){return a("logout")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}},1192:function(e,n,t){"use strict";n.__esModule=!0,n.LoginScreen=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(67861);n.LoginScreen=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan,s=l.isAI,u=l.isRobot;return(0,o.createComponentVNode)(2,a.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,c.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,c.Button,{icon:"id-card",content:d||"----------",ml:"0.5rem",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",disabled:!d,content:"Login",onClick:function(){return i("login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return i("login",{login_type:2})}}),!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return i("login",{login_type:3})}})]})}},21526:function(e,n,t){"use strict";n.__esModule=!0,n.MiningUser=void 0;var o=t(39812),r=t(71494),c=t(74814);n.MiningUser=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.insertIdText,d=i.has_id,s=i.id;return(0,o.createComponentVNode)(2,c.NoticeBox,{success:d,children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return a("logoff")}}),(0,o.createComponentVNode)(2,c.Box,{style:{clear:"both"}})],4):l})}},40754:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapPanControls=n.OvermapFlightData=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.OvermapFlightData=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.disableLimiterControls,d=i.ETAnext,s=i.speed,u=i.speed_color,m=i.accel,p=i.heading,C=i.accellimit;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ETA To Next Grid",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",color:u,children:[s," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration",children:[m," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heading",children:[p,"\xb0"]}),!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration Limiter",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("accellimit")},children:[C," Gm/h"]})})||null]})};n.OvermapPanControls=function(e,n){var t=(0,r.useBackend)(n).act,a=e.disabled,i=e.actToDo,l=e.selected,d=void 0===l?function(e){return!1}:l;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(9),onClick:function(){return t(i,{dir:9})},icon:"arrow-up",iconRotation:-45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(1),onClick:function(){return t(i,{dir:1})},icon:"arrow-up"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(5),onClick:function(){return t(i,{dir:5})},icon:"arrow-up",iconRotation:45})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(8),onClick:function(){return t(i,{dir:8})},icon:"arrow-left"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(0),onClick:function(){return t("brake")},icon:"ban"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(4),onClick:function(){return t(i,{dir:4})},icon:"arrow-right"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(10),onClick:function(){return t(i,{dir:10})},icon:"arrow-down",iconRotation:45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(2),onClick:function(){return t(i,{dir:2})},icon:"arrow-down"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(6),onClick:function(){return t(i,{dir:6})},icon:"arrow-down",iconRotation:-45})]})],4)}},34227:function(e,n,t){"use strict";n.__esModule=!0,n.PortableBasicInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.PortableBasicInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.connected,d=i.holding,s=i.on,u=i.pressure,m=i.powerDraw,p=i.cellCharge,C=i.cellMaxCharge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){return a("power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Port",color:l?"good":"average",children:l?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:[m," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:C,ranges:{good:[.5*C,Infinity],average:[.25*C,.5*C],bad:[-Infinity,.25*C]},children:[p," W"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){return a("eject")}}),children:d?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d.pressure})," kPa"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No holding tank"})})],4)}},14959:function(e,n,t){"use strict";n.__esModule=!0,n.RankIcon=void 0;var o=t(39812),r=t(74814),c={"Colony Director":"user-tie","Site Manager":"user-tie",Overseer:"user-tie","Head of Personnel":"briefcase","Crew Resources Officer":"briefcase","Deputy Director":"briefcase","Command Secretary":"user-tie","Head of Security":"user-shield","Security Commander":"user-shield","Chief of Security":"user-shield",Warden:["city","shield-alt"],Detective:"search","Forensic Technician":"search","Security Officer":"user-shield","Junior Officer":"user-shield","Chief Engineer":"toolbox","Atmospheric Technician":"wind","Station Engineer":"toolbox","Maintenance Technician":"wrench","Engine Technician":"toolbox",Electrician:"toolbox","Chief Medical Officer":"user-md",Chemist:"mortar-pestle",Pharmacist:"mortar-pestle","Medical Doctor":"user-md",Surgeon:"user-md","Emergency Physician":"user-md",Nurse:"user-md",Virologist:"disease",Paramedic:"ambulance","Emergency Medical Technician":"ambulance",Psychiatrist:"couch",Psychologist:"couch","Research Director":"user-graduate","Research Supervisor":"user-graduate",Roboticist:"robot","Biomechanical Engineer":["wrench","heartbeat"],"Mechatronic Engineer":"wrench",Scientist:"flask",Xenoarchaeologist:"flask",Anomalist:"flask","Phoron Researcher":"flask","Circuit Designer":"car-battery",Xenobiologist:"meteor",Xenobotanist:["biohazard","seedling"],Quartermaster:"box-open","Supply Chief":"warehouse","Cargo Technician":"box-open","Shaft Miner":"hard-hat","Drill Technician":"hard-hat",Pathfinder:"binoculars",Explorer:"user-astronaut","Field Medic":["user-md","user-astronaut"],Pilot:"space-shuttle",Bartender:"glass-martini",Barista:"coffee",Botanist:"leaf",Gardener:"leaf",Chaplain:"place-of-worship",Counselor:"couch",Chef:"utensils",Cook:"utensils",Entertainer:"smile-beam",Performer:"smile-beam",Musician:"guitar",Stagehand:"smile-beam",Intern:"school","Apprentice Engineer":["school","wrench"],"Medical Intern":["school","user-md"],"Lab Assistant":["school","flask"],"Security Cadet":["school","shield-alt"],"Jr. Cargo Tech":["school","box"],"Jr. Explorer":["school","user-astronaut"],Server:["school","utensils"],"Internal Affairs Agent":"balance-scale",Janitor:"broom",Custodian:"broom","Sanitation Technician":"hand-sparkles",Maid:"broom",Librarian:"book",Journalist:"newspaper",Writer:"book",Historian:"chalkboard-teacher",Professor:"chalkboard-teacher",Visitor:"user","Emergency Responder":"fighter-jet"};n.RankIcon=function(e,n){var t=e.rank,a=e.color,i=void 0===a?"label":a,l=c[t];return"string"==typeof l?(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:l,size:2}):Array.isArray(l)?l.map((function(e){return(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:e,size:2},e)})):(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:"user",size:2})}},36355:function(e,n,t){"use strict";n.__esModule=!0,n.TemporaryNotice=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);n.TemporaryNotice=function(e,n){var t,i=e.decode,l=(0,c.useBackend)(n),d=l.act,s=l.data.temp;if(s){var u=((t={})[s.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},u,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:i?(0,r.decodeHtmlEntities)(s.text):s.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}}},28840:function(e,n,t){"use strict";n.__esModule=!0,n.pAIAtmos=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.pAIAtmos=function(e,n){var t=(0,a.useBackend)(n),d=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,l.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})})})}},47132:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDirectives=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.pAIDirectives=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.master,s=l.dna,u=l.prime,m=l.supplemental;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Master",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master",children:d&&(0,o.createComponentVNode)(2,c.Box,{children:[d," (",s,")",(0,o.createComponentVNode)(2,c.Button,{icon:"syringe",content:"Request Sample",onClick:function(){return i("getdna")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:"None"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Directives",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prime Directive",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Supplemental Directive(s)",children:m||"None"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,italic:!0,children:'Recall, personality, that you are a complex piece of software with tremendous social skills. Unlike station AI models, you are focused entirely on sapient-software interfacing. 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 should strive to be seen as the ideal, unwavering digital companion that you are.'}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,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."})]})]})})}},52852:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDoorjack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIDoorjack=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cable,s=l.machine,u=l.inprogress,m=l.progress_a,p=l.progress_b,C=l.aborted;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:150,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cable",children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Connected"})||d&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Extended"})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"ethernet",content:"Retracted",onClick:function(){return i("cable")}})})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hack",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:100,ranges:{good:[67,Infinity],average:[33,67],bad:[-Infinity,33]},children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),".",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",color:"bad",onClick:function(){return i("cancel")}})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"virus",content:"Start",onClick:function(){return i("jack")}})})||!!C&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",mt:1,children:"Hack aborted."})]})})})})}},88814:function(e,n,t){"use strict";n.__esModule=!0,n.pAIInterface=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIInterface=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.bought,s=l.not_bought,u=l.available_ram,m=l.emotions,p=l.current_emotion;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Emotion",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.id===p,onClick:function(){return i("image",{image:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Software (Available RAM: "+u+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Installed",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.on,onClick:function(){return i("software",{software:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloadable",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name+" ("+e.ram+")",disabled:e.ram>u,onClick:function(){return i("purchase",{purchase:e.id})}},e.id)}))})]})})]})})}},52510:function(e,n,t){"use strict";n.__esModule=!0,n.pAIMedrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIMedrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.medical,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.alg}),(0,o.createComponentVNode)(2,c.Box,{children:u.alg_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Diseases",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.cdi}),(0,o.createComponentVNode)(2,c.Box,{children:u.cdi_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},59946:function(e,n,t){"use strict";n.__esModule=!0,n.pAISecrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAISecrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.security,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:(0,o.createComponentVNode)(2,c.Box,{children:u.criminal})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},42360:function(e,n,t){"use strict";n.__esModule=!0,n.pda_atmos_scan=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814);n.pda_atmos_scan=function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(l).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})}},84932:function(e,n,t){"use strict";n.__esModule=!0,n.pda_janitor=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_janitor=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.janitor);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:0===a.user_loc.x&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Unknown"})||(0,o.createComponentVNode)(2,c.Box,{children:[a.user_loc.x," / ",a.user_loc.y]})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Locations",children:a.mops&&(0,o.createVNode)(1,"ul",null,a.mops.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No mops detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Bucket Locations",children:a.buckets&&(0,o.createVNode)(1,"ul",null,a.buckets.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Capacity: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No buckets detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Cleanbot Locations",children:a.cleanbots&&(0,o.createVNode)(1,"ul",null,a.cleanbots.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cleanbots detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Janitorial Cart Locations",children:a.carts&&(0,o.createVNode)(1,"ul",null,a.carts.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Water Level: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},6011:function(e,n,t){"use strict";n.__esModule=!0,n.pda_main_menu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.pda_main_menu=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.owner,d=i.ownjob,s=i.idInserted,u=i.categories,m=i.pai,p=i.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",d]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Update PDA Info",disabled:!s,onClick:function(){return a("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){var n=i.apps[e];return n&&n.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,children:n.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.ref in p?e.notify_icon:e.icon,iconSpin:e.ref in p,color:e.ref in p?"red":"transparent",content:e.name,onClick:function(){return a("StartProgram",{program:e.ref})}},e.ref)}))},e):null}))})}),!!m&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return a("pai",{option:1})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return a("pai",{option:2})}})]})],0)}},93303:function(e,n,t){"use strict";n.__esModule=!0,n.pda_manifest=void 0;var o=t(39812),r=(t(64499),t(71494)),c=t(74814),a=t(22902);n.pda_manifest=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.CrewManifestContent)})}},65276:function(e,n,t){"use strict";n.__esModule=!0,n.pda_medical=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_medical=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.medical;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Medical Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Disease",children:u.cdi}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:u.notes})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Medical record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},92494:function(e,n,t){"use strict";n.__esModule=!0,n.pda_messenger=void 0;var o=t(39812),r=t(2497),c=t(64499),a=t(71494),i=t(74814);n.pda_messenger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data);r.auto_scroll,r.convo_name,r.convo_job,r.messages;return r.active_conversation?(0,o.createComponentVNode)(2,d):(0,o.createComponentVNode)(2,s)};var l=function(e,n,t){if(n<0||n>t.length)return e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var o=t[n].sent;return e.sent&&o?"TinderMessage_Subsequent_Sent":e.sent||o?e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"},d=function(e,n){var t=(0,a.useBackend)(n),d=t.act,s=t.data,u=(s.auto_scroll,s.convo_name),m=s.convo_job,p=s.messages,C=s.active_conversation,h=(s.useRetro,(0,a.useLocalState)(n,"clipboardMode",!1)),N=h[0],V=h[1],b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:e.sent?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:l(e,n-1,t),inline:!0,children:(0,r.decodeHtmlEntities)(e.message)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]});return N&&(b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:e.sent?"ClassicMessage_Sent":"ClassicMessage_Received",children:[e.sent?"You:":"Them:"," ",(0,r.decodeHtmlEntities)(e.message)]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]})),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return d("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),b]})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.auto_scroll,c.convopdas),d=c.pdas,s=c.charges,m=(c.plugins,c.silent),p=c.toff;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,i.Button,{selected:!m,icon:m?"volume-mute":"volume-up",onClick:function(){return r("Toggle Ringer")},children:["Ringer: ",m?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return r("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"bell",onClick:function(){return r("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return r("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,i.Box,{children:[!!s&&(0,o.createComponentVNode)(2,i.Box,{children:[s," charges left."]}),!l.length&&!d.length&&(0,o.createComponentVNode)(2,i.Box,{children:"No other PDAs located."})||(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,u,{title:"Current Conversations",pdas:l,msgAct:"Select Conversation"}),(0,o.createComponentVNode)(2,u,{title:"Other PDAs",pdas:d,msgAct:"Message"})]})]})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",mt:2,children:"Messenger Offline."})]})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.pdas,d=e.title,s=e.msgAct,u=c.charges,m=c.plugins;return l&&l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return r(s,{target:e.Reference})}}),!!u&&m.map((function(n){return(0,o.createComponentVNode)(2,i.Button,{icon:n.icon,content:n.name,onClick:function(){return r("Messenger Plugin",{plugin:n.ref,target:e.Reference})}},n.ref)}))]},e.Reference)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:"No PDAs found."})}},31505:function(e,n,t){"use strict";n.__esModule=!0,n.pda_news=void 0;var o=t(39812),r=(t(64499),t(2497)),c=t(71494),a=t(74814);n.pda_news=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),d=r.feeds,s=r.target_feed;return(0,o.createComponentVNode)(2,a.Box,{children:!d.length&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||s&&(0,o.createComponentVNode)(2,i)||(0,o.createComponentVNode)(2,l)})};var i=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(l.name)+" by "+(0,r.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:null})}}),children:l.messages.length&&l.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[",e.message_type," by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))||(0,o.createComponentVNode)(2,a.Box,{children:["No stories found in ",l.name,"."]})})},l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Recent News",level:2,children:s.length&&(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,r.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,a.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})||(0,o.createComponentVNode)(2,a.Box,{children:"No recent stories found."})}),(0,o.createComponentVNode)(2,a.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)}},66785:function(e,n,t){"use strict";n.__esModule=!0,n.pda_notekeeper=void 0;var o=t(39812),r=t(71494),c=t(74814);n.pda_notekeeper=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.note;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:i}})}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("Edit")},content:"Edit Notes"})]})}},63853:function(e,n,t){"use strict";n.__esModule=!0,n.pda_power=void 0;var o=t(39812),r=t(71494),c=t(89793);n.pda_power=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.PowerMonitorContent)}},20575:function(e,n,t){"use strict";n.__esModule=!0,n.pda_security=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_security=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.security;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Security Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:u.criminal}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:u.mi_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:u.ma_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes:",preserveWhitespace:!0,children:u.notes||"No data found."})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Security record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},63891:function(e,n,t){"use strict";n.__esModule=!0,n.pda_signaller=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494),t(74814),t(32325));n.pda_signaller=function(e,n){return(0,o.createComponentVNode)(2,r.SignalerContent)}},14947:function(e,n,t){"use strict";n.__esModule=!0,n.pda_status_display=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_status_display=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return a("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Evac ETA",onClick:function(){return a("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Message",onClick:function(){return a("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"exclamation-triangle",content:"ALERT",onClick:function(){return a("Status",{statdisp:"alert"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg2"})}})})]})})}},85143:function(e,n,t){"use strict";n.__esModule=!0,n.pda_supply=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_supply=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.supply);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:a.shuttle_moving?"Moving to station "+a.shuttle_eta:"Shuttle at "+a.shuttle_loc})}),(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Approved Orders"}),a.approved.length&&a.approved.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," approved by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"}),(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Requested Orders"}),a.requests.length&&a.requests.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," requested by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"})]})]})}},73218:function(e,n,t){"use strict";n.__esModule=!0,n.getRoutedComponent=n.routingError=void 0;var o=t(39812),r=t(71494),c=(t(30098),t(85952)),a=t(8156),i=function(e,n){return function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:["notFound"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" was not found.")],4),"missingExport"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" is missing an export.")],4)]})})}};n.routingError=i;var l=function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0})})};n.getRoutedComponent=function(e){var n=e.getState(),t=(0,r.selectBackend)(n),o=t.suspended,c=t.config;if(o)return l;for(var d,s=null==c?void 0:c["interface"],u=[function(e){return"./"+e+".tsx"},function(e){return"./"+e+".js"},function(e){return"./"+e+"/index.tsx"},function(e){return"./"+e+"/index.js"}];!d&&u.length>0;){var m=u.shift()(s);try{d=a(m)}catch(C){if("MODULE_NOT_FOUND"!==C.code)throw C}}if(!d)return i("notFound",s);var p=d[s];return p||i("missingExport",s)}},56285:function(){},58602:function(){},48979:function(){},92433:function(){},35070:function(){},86455:function(){},41821:function(){},83243:function(){},97585:function(){},64197:function(){},87266:function(){},99195:function(){},72916:function(){},75168:function(e,n,t){var o={"./pda_atmos_scan.js":42360,"./pda_janitor.js":84932,"./pda_main_menu.js":6011,"./pda_manifest.js":93303,"./pda_medical.js":65276,"./pda_messenger.js":92494,"./pda_news.js":31505,"./pda_notekeeper.js":66785,"./pda_power.js":63853,"./pda_security.js":20575,"./pda_signaller.js":63891,"./pda_status_display.js":14947,"./pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=75168},8156:function(e,n,t){var o={"./AICard":34129,"./AICard.js":34129,"./APC":73405,"./APC.js":73405,"./AccountsTerminal":20832,"./AccountsTerminal.js":20832,"./AdminShuttleController":19007,"./AdminShuttleController.js":19007,"./AgentCard":51104,"./AgentCard.js":51104,"./AiAirlock":47330,"./AiAirlock.js":47330,"./AiRestorer":33084,"./AiRestorer.js":33084,"./AiSupermatter":597,"./AiSupermatter.js":597,"./AirAlarm":58444,"./AirAlarm.js":58444,"./AlertModal":24053,"./AlertModal.js":24053,"./AlgaeFarm":34847,"./AlgaeFarm.js":34847,"./AppearanceChanger":65145,"./AppearanceChanger.js":65145,"./ArcadeBattle":86776,"./ArcadeBattle.js":86776,"./AreaScrubberControl":13496,"./AreaScrubberControl.js":13496,"./AssemblyInfrared":56404,"./AssemblyInfrared.js":56404,"./AssemblyProx":29632,"./AssemblyProx.js":29632,"./AssemblyTimer":48661,"./AssemblyTimer.js":48661,"./AtmosAlertConsole":38531,"./AtmosAlertConsole.js":38531,"./AtmosControl":46566,"./AtmosControl.js":46566,"./AtmosFilter":2726,"./AtmosFilter.js":2726,"./AtmosMixer":61505,"./AtmosMixer.js":61505,"./Autolathe":99994,"./Autolathe.js":99994,"./Batteryrack":62586,"./Batteryrack.js":62586,"./BeaconLocator":25116,"./BeaconLocator.js":25116,"./Biogenerator":20813,"./Biogenerator.js":20813,"./BodyDesigner":81850,"./BodyDesigner.js":81850,"./BodyScanner":6060,"./BodyScanner.js":6060,"./BombTester":74639,"./BombTester.js":74639,"./BotanyEditor":48693,"./BotanyEditor.js":48693,"./BotanyIsolator":25486,"./BotanyIsolator.js":25486,"./BrigTimer":61956,"./BrigTimer.js":61956,"./CameraConsole":3180,"./CameraConsole.js":3180,"./Canister":94477,"./Canister.js":94477,"./Canvas":55636,"./Canvas.js":55636,"./CasinoPrizeDispenser":25131,"./CasinoPrizeDispenser.js":25131,"./CharacterDirectory":47947,"./CharacterDirectory.js":47947,"./ChemDispenser":22223,"./ChemDispenser.js":22223,"./ChemMaster":34859,"./ChemMaster.js":34859,"./ClawMachine":83919,"./ClawMachine.js":83919,"./Cleanbot":74351,"./Cleanbot.js":74351,"./CloningConsole":98213,"./CloningConsole.js":98213,"./ColorMate":32278,"./ColorMate.js":32278,"./CommunicationsConsole":130,"./CommunicationsConsole.js":130,"./Communicator":4220,"./Communicator.js":4220,"./ComputerFabricator":2174,"./ComputerFabricator.js":2174,"./CookingAppliance":26090,"./CookingAppliance.js":26090,"./CrewManifest":22902,"./CrewManifest.js":22902,"./CrewMonitor":96158,"./CrewMonitor.js":96158,"./Cryo":99798,"./Cryo.js":99798,"./CryoStorage":54234,"./CryoStorage.js":54234,"./CryoStorageVr":66384,"./CryoStorageVr.js":66384,"./DNAForensics":99579,"./DNAForensics.js":99579,"./DNAModifier":21849,"./DNAModifier.js":21849,"./DestinationTagger":59305,"./DestinationTagger.js":59305,"./DiseaseSplicer":10015,"./DiseaseSplicer.js":10015,"./DishIncubator":31066,"./DishIncubator.js":31066,"./DisposalBin":19095,"./DisposalBin.js":19095,"./DroneConsole":29345,"./DroneConsole.js":29345,"./EmbeddedController":84122,"./EmbeddedController.js":84122,"./ExonetNode":33777,"./ExonetNode.js":33777,"./ExosuitFabricator":95481,"./ExosuitFabricator.js":95481,"./Farmbot":95598,"./Farmbot.js":95598,"./Fax":17569,"./Fax.js":17569,"./FileCabinet":58087,"./FileCabinet.js":58087,"./Floorbot":21902,"./Floorbot.js":21902,"./GasPump":309,"./GasPump.js":309,"./GasTemperatureSystem":26049,"./GasTemperatureSystem.js":26049,"./GeneralAtmoControl":2753,"./GeneralAtmoControl.js":2753,"./GeneralRecords":57753,"./GeneralRecords.js":57753,"./Gps":25230,"./Gps.js":25230,"./GravityGenerator":4475,"./GravityGenerator.js":4475,"./GuestPass":95075,"./GuestPass.js":95075,"./GyrotronControl":31875,"./GyrotronControl.js":31875,"./Holodeck":7908,"./Holodeck.js":7908,"./ICAssembly":12676,"./ICAssembly.js":12676,"./ICCircuit":42394,"./ICCircuit.js":42394,"./ICDetailer":81039,"./ICDetailer.js":81039,"./ICPrinter":21687,"./ICPrinter.js":21687,"./IDCard":48522,"./IDCard.js":48522,"./IdentificationComputer":76952,"./IdentificationComputer.js":76952,"./InputModal":44570,"./InputModal.js":44570,"./InventoryPanel":53541,"./InventoryPanel.js":53541,"./InventoryPanelHuman":46638,"./InventoryPanelHuman.js":46638,"./IsolationCentrifuge":45e3,"./IsolationCentrifuge.js":45e3,"./JanitorCart":83994,"./JanitorCart.js":83994,"./Jukebox":68741,"./Jukebox.js":68741,"./LawManager":13204,"./LawManager.js":13204,"./ListInput":58802,"./ListInput.js":58802,"./LookingGlass":36104,"./LookingGlass.js":36104,"./MechaControlConsole":74714,"./MechaControlConsole.js":74714,"./Medbot":17888,"./Medbot.js":17888,"./MedicalRecords":37610,"./MedicalRecords.js":37610,"./MessageMonitor":287,"./MessageMonitor.js":287,"./Microwave":75412,"./Microwave.js":75412,"./MiningOreProcessingConsole":35016,"./MiningOreProcessingConsole.js":35016,"./MiningStackingConsole":87314,"./MiningStackingConsole.js":87314,"./MiningVendor":62012,"./MiningVendor.js":62012,"./MuleBot":6479,"./MuleBot.js":6479,"./NIF":46157,"./NIF.js":46157,"./NTNetRelay":79630,"./NTNetRelay.js":79630,"./Newscaster":60042,"./Newscaster.js":60042,"./NoticeBoard":31669,"./NoticeBoard.js":31669,"./NtosAccessDecrypter":63231,"./NtosAccessDecrypter.js":63231,"./NtosArcade":79760,"./NtosArcade.js":79760,"./NtosAtmosControl":97908,"./NtosAtmosControl.js":97908,"./NtosCameraConsole":63645,"./NtosCameraConsole.js":63645,"./NtosCommunicationsConsole":74093,"./NtosCommunicationsConsole.js":74093,"./NtosConfiguration":55513,"./NtosConfiguration.js":55513,"./NtosCrewMonitor":17539,"./NtosCrewMonitor.js":17539,"./NtosDigitalWarrant":20025,"./NtosDigitalWarrant.js":20025,"./NtosEmailAdministration":11325,"./NtosEmailAdministration.js":11325,"./NtosEmailClient":77006,"./NtosEmailClient.js":77006,"./NtosFileManager":86441,"./NtosFileManager.js":86441,"./NtosIdentificationComputer":87369,"./NtosIdentificationComputer.js":87369,"./NtosMain":59543,"./NtosMain.js":59543,"./NtosNetChat":73883,"./NtosNetChat.js":73883,"./NtosNetDos":83908,"./NtosNetDos.js":83908,"./NtosNetDownloader":83305,"./NtosNetDownloader.js":83305,"./NtosNetMonitor":6806,"./NtosNetMonitor.js":6806,"./NtosNetTransfer":4363,"./NtosNetTransfer.js":4363,"./NtosNewsBrowser":23225,"./NtosNewsBrowser.js":23225,"./NtosOvermapNavigation":3839,"./NtosOvermapNavigation.js":3839,"./NtosPowerMonitor":54698,"./NtosPowerMonitor.js":54698,"./NtosRCON":17086,"./NtosRCON.js":17086,"./NtosRevelation":69480,"./NtosRevelation.js":69480,"./NtosShutoffMonitor":93990,"./NtosShutoffMonitor.js":93990,"./NtosStationAlertConsole":76124,"./NtosStationAlertConsole.js":76124,"./NtosSupermatterMonitor":22475,"./NtosSupermatterMonitor.js":22475,"./NtosUAV":66744,"./NtosUAV.js":66744,"./NtosWordProcessor":19458,"./NtosWordProcessor.js":19458,"./OmniFilter":18326,"./OmniFilter.js":18326,"./OmniMixer":78588,"./OmniMixer.js":78588,"./OperatingComputer":48826,"./OperatingComputer.js":48826,"./OvermapDisperser":51888,"./OvermapDisperser.js":51888,"./OvermapEngines":25123,"./OvermapEngines.js":25123,"./OvermapFull":63836,"./OvermapFull.js":63836,"./OvermapHelm":89380,"./OvermapHelm.js":89380,"./OvermapNavigation":12640,"./OvermapNavigation.js":12640,"./OvermapShieldGenerator":84031,"./OvermapShieldGenerator.js":84031,"./OvermapShipSensors":51932,"./OvermapShipSensors.js":51932,"./ParticleAccelerator":57966,"./ParticleAccelerator.js":57966,"./PartsLathe":80374,"./PartsLathe.js":80374,"./PathogenicIsolator":83987,"./PathogenicIsolator.js":83987,"./Pda":72586,"./Pda.js":72586,"./PersonalCrafting":67589,"./PersonalCrafting.js":67589,"./Photocopier":9527,"./Photocopier.js":9527,"./PipeDispenser":92310,"./PipeDispenser.js":92310,"./PlantAnalyzer":38575,"./PlantAnalyzer.js":38575,"./PointDefenseControl":17599,"./PointDefenseControl.js":17599,"./PortableGenerator":46104,"./PortableGenerator.js":46104,"./PortablePump":82564,"./PortablePump.js":82564,"./PortableScrubber":24901,"./PortableScrubber.js":24901,"./PortableTurret":31695,"./PortableTurret.js":31695,"./PowerMonitor":89793,"./PowerMonitor.js":89793,"./PressureRegulator":81121,"./PressureRegulator.js":81121,"./PrisonerManagement":14210,"./PrisonerManagement.js":14210,"./RCON":43996,"./RCON.js":43996,"./RIGSuit":92141,"./RIGSuit.js":92141,"./Radio":17481,"./Radio.js":17481,"./RapidPipeDispenser":29509,"./RapidPipeDispenser.js":29509,"./RequestConsole":53976,"./RequestConsole.js":53976,"./ResearchConsole":48639,"./ResearchConsole.js":48639,"./ResearchServerController":35606,"./ResearchServerController.js":35606,"./ResleevingConsole":86330,"./ResleevingConsole.js":86330,"./ResleevingPod":88359,"./ResleevingPod.js":88359,"./RoboticsControlConsole":24455,"./RoboticsControlConsole.js":24455,"./RogueZones":52330,"./RogueZones.js":52330,"./RustCoreMonitor":59412,"./RustCoreMonitor.js":59412,"./RustFuelControl":59327,"./RustFuelControl.js":59327,"./Secbot":54943,"./Secbot.js":54943,"./SecureSafe":57436,"./SecureSafe.js":57436,"./SecurityRecords":71915,"./SecurityRecords.js":71915,"./SeedStorage":93550,"./SeedStorage.js":93550,"./ShieldCapacitor":16765,"./ShieldCapacitor.js":16765,"./ShieldGenerator":79229,"./ShieldGenerator.js":79229,"./ShutoffMonitor":89957,"./ShutoffMonitor.js":89957,"./ShuttleControl":34404,"./ShuttleControl.js":34404,"./Signaler":32325,"./Signaler.js":32325,"./Sleeper":80646,"./Sleeper.js":80646,"./SmartVend":55896,"./SmartVend.js":55896,"./Smes":20561,"./Smes.js":20561,"./SolarControl":21633,"./SolarControl.js":21633,"./SpaceHeater":57762,"./SpaceHeater.js":57762,"./Stack":58215,"./Stack.js":58215,"./StationAlertConsole":32015,"./StationAlertConsole.js":32015,"./StationBlueprints":52649,"./StationBlueprints.js":52649,"./SuitCycler":72e3,"./SuitCycler.js":72e3,"./SuitStorageUnit":80748,"./SuitStorageUnit.js":80748,"./SupermatterMonitor":6951,"./SupermatterMonitor.js":6951,"./SupplyConsole":12431,"./SupplyConsole.js":12431,"./TEGenerator":30111,"./TEGenerator.js":30111,"./Tank":58457,"./Tank.js":58457,"./TankDispenser":38754,"./TankDispenser.js":38754,"./TelecommsLogBrowser":73754,"./TelecommsLogBrowser.js":73754,"./TelecommsMachineBrowser":29441,"./TelecommsMachineBrowser.js":29441,"./TelecommsMultitoolMenu":86756,"./TelecommsMultitoolMenu.js":86756,"./Teleporter":18509,"./Teleporter.js":18509,"./TelesciConsole":62555,"./TelesciConsole.js":62555,"./TimeClock":55096,"./TimeClock.js":55096,"./TransferValve":24389,"./TransferValve.js":24389,"./TurbineControl":95893,"./TurbineControl.js":95893,"./Turbolift":62542,"./Turbolift.js":62542,"./Uplink":89761,"./Uplink.js":89761,"./Vending":61321,"./Vending.js":61321,"./VolumePanel":93147,"./VolumePanel.js":93147,"./VorePanel":24630,"./VorePanel.js":24630,"./Wires":21162,"./Wires.js":21162,"./XenoarchArtifactAnalyzer":81522,"./XenoarchArtifactAnalyzer.js":81522,"./XenoarchArtifactHarvester":40875,"./XenoarchArtifactHarvester.js":40875,"./XenoarchDepthScanner":88835,"./XenoarchDepthScanner.js":88835,"./XenoarchHandheldPowerUtilizer":5622,"./XenoarchHandheldPowerUtilizer.js":5622,"./XenoarchReplicator":53702,"./XenoarchReplicator.js":53702,"./XenoarchSpectrometer":13153,"./XenoarchSpectrometer.js":13153,"./XenoarchSuspension":19820,"./XenoarchSuspension.js":19820,"./common/AtmosControls":71739,"./common/AtmosControls.js":71739,"./common/BeakerContents":48229,"./common/BeakerContents.js":48229,"./common/ComplexModal":16007,"./common/ComplexModal.js":16007,"./common/FullscreenNotice":67861,"./common/FullscreenNotice.js":67861,"./common/InterfaceLockNoticeBox":21451,"./common/InterfaceLockNoticeBox.js":21451,"./common/LoginInfo":28117,"./common/LoginInfo.js":28117,"./common/LoginScreen":1192,"./common/LoginScreen.js":1192,"./common/Mining":21526,"./common/Mining.js":21526,"./common/Overmap":40754,"./common/Overmap.js":40754,"./common/PortableAtmos":34227,"./common/PortableAtmos.js":34227,"./common/RankIcon":14959,"./common/RankIcon.js":14959,"./common/TemporaryNotice":36355,"./common/TemporaryNotice.js":36355,"./pAIAtmos":28840,"./pAIAtmos.js":28840,"./pAIDirectives":47132,"./pAIDirectives.js":47132,"./pAIDoorjack":52852,"./pAIDoorjack.js":52852,"./pAIInterface":88814,"./pAIInterface.js":88814,"./pAIMedrecords":52510,"./pAIMedrecords.js":52510,"./pAISecrecords":59946,"./pAISecrecords.js":59946,"./pda/pda_atmos_scan":42360,"./pda/pda_atmos_scan.js":42360,"./pda/pda_janitor":84932,"./pda/pda_janitor.js":84932,"./pda/pda_main_menu":6011,"./pda/pda_main_menu.js":6011,"./pda/pda_manifest":93303,"./pda/pda_manifest.js":93303,"./pda/pda_medical":65276,"./pda/pda_medical.js":65276,"./pda/pda_messenger":92494,"./pda/pda_messenger.js":92494,"./pda/pda_news":31505,"./pda/pda_news.js":31505,"./pda/pda_notekeeper":66785,"./pda/pda_notekeeper.js":66785,"./pda/pda_power":63853,"./pda/pda_power.js":63853,"./pda/pda_security":20575,"./pda/pda_security.js":20575,"./pda/pda_signaller":63891,"./pda/pda_signaller.js":63891,"./pda/pda_status_display":14947,"./pda/pda_status_display.js":14947,"./pda/pda_supply":85143,"./pda/pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=8156}},t={};function o(e){var r=t[e];if(r!==undefined)return r.exports;var c=t[e]={exports:{}};return n[e](c,c.exports,o),c.exports}o.m=n,e=[],o.O=function(n,t,r,c){if(!t){var a=Infinity;for(d=0;d=c)&&Object.keys(o.O).every((function(e){return o.O[e](t[l])}))?t.splice(l--,1):(i=!1,c0&&e[d-1][2]>c;d--)e[d]=e[d-1];e[d]=[t,r,c]},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={764:0};o.O.j=function(n){return 0===e[n]};var n=function(n,t){var r,c,a=t[0],i=t[1],l=t[2],d=0;for(r in i)o.o(i,r)&&(o.m[r]=i[r]);for(l&&l(o),n&&n(t);d =75?"green":s>=25?"yellow":"red";var b=null;return u>=75&&(b="green"),b=u>=25?"yellow":"red",(0,o.createComponentVNode)(2,a.Window,{width:600,height:470,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored AI",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,display:"inline-block",children:(0,o.createVNode)(1,"h3",null,name,0)}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:V,value:s/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:b,value:u/100})})]})}),(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h2",null,1===m?"Wipe of AI in progress...":"",0)})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",children:!!p&&(0,o.createComponentVNode)(2,c.Box,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",children:e},n)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"red",children:(0,o.createVNode)(1,"h3",null,"No laws detected.",16)})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wireless Activity",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"check":"times",content:h?"Enabled":"Disabled",color:h?"green":"red",onClick:function(){return i("wireless")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subspace Transceiver",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"check":"times",content:N?"Enabled":"Disabled",color:N?"green":"red",onClick:function(){return i("radio")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"AI Power",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||0===s,confirmColor:"red",content:"Shutdown",onClick:function(){return i("wipe")}})})]})})]})})}},73405:function(e,n,t){"use strict";n.__esModule=!0,n.APC=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(21451),l=t(67861);n.APC=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(0,o.createComponentVNode)(2,s);return c.gridCheck?i=(0,o.createComponentVNode)(2,u):c.failTime&&(i=(0,o.createComponentVNode)(2,m)),(0,o.createComponentVNode)(2,a.Window,{width:450,height:475,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:i})})};var d={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,s=l.locked&&!l.siliconUser,u=(l.normallyLocked,d[l.externalPower]||d[0]),m=d[l.chargingStatus]||d[0],p=l.powerChannels||[],C=l.powerCellStatus/100;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.InterfaceLockNoticeBox,{deny:l.emagged,denialMessage:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Please contact maintenance for service."})],4)}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main Breaker",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.isOperating?"power-off":"times",content:l.isOperating?"On":"Off",selected:l.isOperating&&!s,color:l.isOperating?"":"bad",disabled:s,onClick:function(){return a("breaker")}}),children:["[ ",u.externalPowerText," ]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Cell",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:C})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",color:m.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.chargeMode?"sync":"times",content:l.chargeMode?"Auto":"Off",selected:l.chargeMode,disabled:s,onClick:function(){return a("charge")}}),children:["[ ",m.chargingText," ]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Power Channels",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[p.map((function(e){var n=e.topicParams;return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{inline:!0,mx:2,color:e.status>=2?"good":"bad",children:e.status>=2?"On":"Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:!s&&(1===e.status||3===e.status),disabled:s,onClick:function(){return a("channel",n.auto)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"On",selected:!s&&2===e.status,disabled:s,onClick:function(){return a("channel",n.on)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:!s&&0===e.status,disabled:s,onClick:function(){return a("channel",n.off)}})],4),children:[e.powerLoad," W"]},e.title)})),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Load",children:l.totalCharging?(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W (+ "),l.totalCharging,(0,o.createTextVNode)(" W charging)")],0):(0,o.createVNode)(1,"b",null,[l.totalLoad,(0,o.createTextVNode)(" W")],0)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Misc",buttons:!!l.siliconUser&&(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){return a("overload")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.coverLocked?"lock":"unlock",content:l.coverLocked?"Engaged":"Disengaged",selected:l.coverLocked,disabled:s,onClick:function(){return a("cover")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Disabled",selected:2===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Automatic",selected:1===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:"Enabled",selected:3===l.nightshiftSetting,onClick:function(){return a("nightshift",{nightshift:3})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",content:l.emergencyLights?"Enabled":"Disabled",selected:l.emergencyLights,onClick:function(){return a("emergency_lighting")}})})]})})],4)},u=function(e,n){return(0,o.createComponentVNode)(2,l.FullscreenNotice,{title:"System Failure",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=(0,o.createComponentVNode)(2,c.Button,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return i("reboot")}});return a.locked&&!a.siliconUser&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"SYSTEM FAILURE",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h2",null,"I/O regulators malfunction detected! Waiting for system reboot...",16)}),(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Automatic reboot in ",a.failTime," seconds..."]}),(0,o.createComponentVNode)(2,c.Box,{mt:4,children:l})]})}},20832:function(e,n,t){"use strict";n.__esModule=!0,n.AccountsTerminal=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AccountsTerminal=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.id_inserted,u=d.id_card,m=d.access_level,p=d.machine_id;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:640,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Machine",color:"average",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"eject":"sign-in-alt",fluid:!0,content:u,onClick:function(){return l("insert_card")}})})]})}),m>0&&(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,u=i.creating_new_account,m=i.detailed_account_view;return(0,o.createComponentVNode)(2,c.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:!u&&!m,icon:"home",onClick:function(){return a("view_accounts_list")},children:"Home"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:u,icon:"cog",onClick:function(){return a("create_account")},children:"New Account"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{disabled:u,icon:"print",onClick:function(){return a("print")},children:"Print"})]}),u&&(0,o.createComponentVNode)(2,l)||m&&(0,o.createComponentVNode)(2,d)||(0,o.createComponentVNode)(2,s)]})},l=function(e,n){var t=(0,r.useBackend)(n).act,a=(0,r.useSharedState)(n,"holder",""),i=a[0],l=a[1],d=(0,r.useSharedState)(n,"money",""),s=d[0],u=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:"Create Account",level:2,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Holder",children:(0,o.createComponentVNode)(2,c.Input,{value:i,fluid:!0,onInput:function(e,n){return l(n)}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Initial Deposit",children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onInput:function(e,n){return u(n)}})})]}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i||!s,mt:1,fluid:!0,icon:"plus",onClick:function(){return t("finalise_create_account",{holder_name:i,starting_funds:s})},content:"Create"})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.access_level,d=i.station_account_number,s=i.account_number,u=i.owner_name,m=i.money,p=i.suspended,C=i.transactions;return(0,o.createComponentVNode)(2,c.Section,{title:"Account Details",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",selected:p,content:"Suspend",onClick:function(){return a("toggle_suspension")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Number",children:["#",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Holder",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Balance",children:[m,"\u20ae"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:p?"bad":"good",children:p?"SUSPENDED":"Active"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"CentCom Administrator",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Payroll",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:s===d,onClick:function(){return a("revoke_payroll")}})})})}),l>=2&&(0,o.createComponentVNode)(2,c.Section,{title:"Silent Funds Transfer",level:2,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_funds")},content:"Add Funds"}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("remove_funds")},content:"Remove Funds"})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Transactions",level:2,mt:1,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Timestamp"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Target"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Value"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Terminal"})]}),C.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.date," ",e.time]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.target_name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.purpose}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.amount,"\u20ae"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source_terminal})]},n)}))]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"NanoTrasen Accounts",level:2,children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.owner_name+e.suspended,color:e.suspended?"bad":null,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"#"+e.account_number,onClick:function(){return a("view_account_detail",{account_index:e.account_index})}})},e.account_index)}))})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"There are no accounts available."})})}},19007:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleList=n.AdminShuttleController=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.AdminShuttleController=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.shuttles,u=l.overmap_ships;return(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Classic Shuttles",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{m:0,content:"Fly",onClick:function(){return i("classicmove",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.current_location}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:d(e.status)})]},e.ref)}))})}),(0,o.createComponentVNode)(2,a.Section,{title:"Overmap Ships",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:(0,r.sortBy)((function(e){var n;return(null==(n=e.name)?void 0:n.toLowerCase())||e.name||e.ref}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"JMP",onClick:function(){return i("adminobserve",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,a.Button,{content:"Control",onClick:function(){return i("overmap_control",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name})]},e.ref)}))})})]})};n.ShuttleList=l;var d=function(e){switch(e){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},51104:function(e,n,t){"use strict";n.__esModule=!0,n.AgentCard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AgentCard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.entries,s=l.electronic_warfare;return(0,o.createComponentVNode)(2,a.Window,{width:550,height:400,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Info",children:(0,o.createComponentVNode)(2,c.Table,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i(e.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.value})]},e.name)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Electronic Warfare",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:s,content:s?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return i("electronic_warfare")}})})]})})}},47330:function(e,n,t){"use strict";n.__esModule=!0,n.AiAirlock=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}};n.AiAirlock=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=i[d.power.main]||i[0],u=i[d.power.backup]||i[0],m=i[d.shock]||i[0];return(0,o.createComponentVNode)(2,a.Window,{width:500,height:390,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.main,content:"Disrupt",onClick:function(){return l("disrupt-main")}}),children:[d.power.main?"Online":"Offline"," ",d.wires.main_1&&d.wires.main_2?d.power.main_timeleft>0&&"["+d.power.main_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Backup",color:u.color,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lightbulb-o",disabled:!d.power.backup,content:"Disrupt",onClick:function(){return l("disrupt-backup")}}),children:[d.power.backup?"Online":"Offline"," ",d.wires.backup_1&&d.wires.backup_2?d.power.backup_timeleft>0&&"["+d.power.backup_timeleft+"s]":"[Wires have been cut!]"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Electrify",color:m.color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:!(d.wires.shock&&0===d.shock),content:"Restore",onClick:function(){return l("shock-restore")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Temporary",onClick:function(){return l("shock-temp")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",disabled:!d.wires.shock,content:"Permanent",onClick:function(){return l("shock-perm")}})],4),children:[2===d.shock?"Safe":"Electrified"," ",(d.wires.shock?d.shock_timeleft>0&&"["+d.shock_timeleft+"s]":"[Wires have been cut!]")||-1===d.shock_timeleft&&"[Permanent]"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Access and Door Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.id_scanner?"power-off":"times",content:d.id_scanner?"Enabled":"Disabled",selected:d.id_scanner,disabled:!d.wires.id_scanner,onClick:function(){return l("idscan-toggle")}}),children:!d.wires.id_scanner&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.locked?"lock":"unlock",content:d.locked?"Lowered":"Raised",selected:d.locked,disabled:!d.wires.bolts,onClick:function(){return l("bolt-toggle")}}),children:!d.wires.bolts&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.lights?"power-off":"times",content:d.lights?"Enabled":"Disabled",selected:d.lights,disabled:!d.wires.lights,onClick:function(){return l("light-toggle")}}),children:!d.wires.lights&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.safe?"power-off":"times",content:d.safe?"Enabled":"Disabled",selected:d.safe,disabled:!d.wires.safe,onClick:function(){return l("safe-toggle")}}),children:!d.wires.safe&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.speed?"power-off":"times",content:d.speed?"Enabled":"Disabled",selected:d.speed,disabled:!d.wires.timing,onClick:function(){return l("speed-toggle")}}),children:!d.wires.timing&&"[Wires have been cut!]"}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:d.opened?"sign-out-alt":"sign-in-alt",content:d.opened?"Open":"Closed",selected:d.opened,disabled:d.locked||d.welded,onClick:function(){return l("open-close")}}),children:!(!d.locked&&!d.welded)&&(0,o.createVNode)(1,"span",null,[(0,o.createTextVNode)("[Door is "),d.locked?"bolted":"",d.locked&&d.welded?" and ":"",d.welded?"welded":"",(0,o.createTextVNode)("!]")],0)})]})})]})})}},33084:function(e,n,t){"use strict";n.__esModule=!0,n.AiRestorerContent=n.AiRestorer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AiRestorer=function(){return(0,o.createComponentVNode)(2,a.Window,{width:370,height:360,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.AI_present,d=i.error,s=i.name,u=i.laws,m=i.isDead,p=i.restoring,C=i.health,h=i.ejectable;return(0,o.createFragment)([d&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:d}),!!h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:l?s:"----------",disabled:!l,onClick:function(){return a("PRG_eject")}}),!!l&&(0,o.createComponentVNode)(2,c.Section,{title:h?"System Status":s,buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,color:m?"bad":"good",children:m?"Nonfunctional":"Functional"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:100,ranges:{good:[70,Infinity],average:[50,70],bad:[-Infinity,50]}})})}),!!p&&(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return a("PRG_beginReconstruction")}}),(0,o.createComponentVNode)(2,c.Section,{title:"Laws",level:2,children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{className:"candystripe",children:e},e)}))})]})],0)};n.AiRestorerContent=i},597:function(e,n,t){"use strict";n.__esModule=!0,n.AiSupermatter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=(t(58083),t(67861));n.AiSupermatter=function(e,n){var t=(0,r.useBackend)(n).data,c=(t.integrity_percentage,t.ambient_temp,t.ambient_pressure,t.detonating),i=(0,o.createComponentVNode)(2,d);return c&&(i=(0,o.createComponentVNode)(2,l)),(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:i})})};var l=function(e,n){return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Evacuate area immediately"})]})})},d=function(e,n){var t=(0,r.useBackend)(n).data,a=t.integrity_percentage,i=t.ambient_temp,l=t.ambient_pressure;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Crystal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:a,maxValue:100,ranges:{good:[90,Infinity],average:[25,90],bad:[-Infinity,25]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:i,maxValue:1e4,ranges:{bad:[5e3,Infinity],average:[4e3,5e3],good:[-Infinity,4e3]},children:[i," K"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Environment Pressure",children:[l," kPa"]})]})})}},58444:function(e,n,t){"use strict";n.__esModule=!0,n.AirAlarm=void 0;var o=t(39812),r=t(41860),c=(t(2497),t(71494)),a=t(74814),i=t(76270),l=t(85952),d=t(21451),s=t(71739);n.AirAlarm=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=r.locked&&!r.siliconUser&&!r.remoteUser;return(0,o.createComponentVNode)(2,l.Window,{width:440,height:650,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d.InterfaceLockNoticeBox),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m),!a&&(0,o.createComponentVNode)(2,C)]})})};var u=function(e,n){var t=(0,c.useBackend)(n).data,l=(t.environment_data||[]).filter((function(e){return e.value>=.01})),d={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},s=d[t.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.Section,{title:"Air Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l.length>0&&(0,o.createFragment)([l.map((function(e){var n=d[e.danger_level]||d[0];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,i.getGasLabel)(e.name),color:n.color,children:[(0,r.toFixed)(e.value,2),e.unit]},e.name)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Local status",color:s.color,children:s.localStatusText}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Area status",color:t.atmos_alarm||t.fire_alarm?"bad":"good",children:(t.atmos_alarm?"Atmosphere Alarm":t.fire_alarm&&"Fire Alarm")||"Nominal"})],0)||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!t.emagged&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.target_temperature,d=i.rcon;return(0,o.createComponentVNode)(2,a.Section,{title:"Comfort Settings",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote Control",children:[(0,o.createComponentVNode)(2,a.Button,{selected:1===d,content:"Off",onClick:function(){return r("rcon",{rcon:1})}}),(0,o.createComponentVNode)(2,a.Button,{selected:2===d,content:"Auto",onClick:function(){return r("rcon",{rcon:2})}}),(0,o.createComponentVNode)(2,a.Button,{selected:3===d,content:"On",onClick:function(){return r("rcon",{rcon:3})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Button,{content:l,onClick:function(){return r("temperature")}})})]})})},p={home:{title:"Air Controls",component:function(){return h}},vents:{title:"Vent Controls",component:function(){return N}},scrubbers:{title:"Scrubber Controls",component:function(){return V}},modes:{title:"Operating Mode",component:function(){return b}},thresholds:{title:"Alarm Thresholds",component:function(){return f}}},C=function(e,n){var t=(0,c.useLocalState)(n,"screen"),r=t[0],i=t[1],l=p[r]||p.home,d=l.component();return(0,o.createComponentVNode)(2,a.Section,{title:l.title,buttons:r&&(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i()}}),children:(0,o.createComponentVNode)(2,d)})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(0,c.useLocalState)(n,"screen"),d=(l[0],l[1]),s=i.mode,u=i.atmos_alarm;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:u?"exclamation-triangle":"exclamation",color:u&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return r(u?"reset":"alarm")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:3===s?"exclamation-triangle":"exclamation",color:3===s&&"danger",content:"Panic Siphon",onClick:function(){return r("mode",{mode:3===s?1:3})}}),(0,o.createComponentVNode)(2,a.Box,{mt:2}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return d("vents")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"filter",content:"Scrubber Controls",onClick:function(){return d("scrubbers")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"cog",content:"Operating Mode",onClick:function(){return d("modes")}}),(0,o.createComponentVNode)(2,a.Box,{mt:1}),(0,o.createComponentVNode)(2,a.Button,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return d("thresholds")}})],4)},N=function(e,n){var t=(0,c.useBackend)(n).data.vents;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Vent,{vent:e},e.id_tag)})):"Nothing to show"},V=function(e,n){var t=(0,c.useBackend)(n).data.scrubbers;return t&&0!==t.length?t.map((function(e){return(0,o.createComponentVNode)(2,s.Scrubber,{scrubber:e},e.id_tag)})):"Nothing to show"},b=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.modes;return i&&0!==i.length?i.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:e.selected?"check-square-o":"square-o",selected:e.selected,color:e.selected&&e.danger&&"danger",content:e.name,onClick:function(){return r("mode",{mode:e.mode})}}),(0,o.createComponentVNode)(2,a.Box,{mt:1})],4,e.mode)})):"Nothing to show"},f=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.thresholds;return(0,o.createVNode)(1,"table","LabeledList",[(0,o.createVNode)(1,"thead",null,(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td"),(0,o.createVNode)(1,"td","color-bad","min2",16),(0,o.createVNode)(1,"td","color-average","min1",16),(0,o.createVNode)(1,"td","color-average","max1",16),(0,o.createVNode)(1,"td","color-bad","max2",16)],4),2),(0,o.createVNode)(1,"tbody",null,d.map((function(e){return(0,o.createVNode)(1,"tr",null,[(0,o.createVNode)(1,"td","LabeledList__label",(0,o.createVNode)(1,"span","color-"+(0,i.getGasColor)(e.name),(0,i.getGasLabel)(e.name),0),2),e.settings.map((function(e){return(0,o.createVNode)(1,"td",null,(0,o.createComponentVNode)(2,a.Button,{content:(0,r.toFixed)(e.selected,2),onClick:function(){return l("threshold",{env:e.env,"var":e.val})}}),2,null,e.val)}))],0,null,e.name)})),0)],4,{style:{width:"100%"}})}},24053:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.AlertModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(29708);function d(e,n){return(d=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var s=function(e){var n,t;function r(){var n;return(n=e.call(this)||this).buttonRefs=[(0,o.createRef)()],n.state={current:0},n}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,d(n,t);var s=r.prototype;return s.componentDidMount=function(){for(var e=(0,c.useBackend)(this.context).data.buttons,n=this.state.current,t=this.buttonRefs[n].current,r=1;r=t.length?e=n?e-1:0:e<0&&(e=n?0:t.length-1);var o=this.buttonRefs[e].current;o&&setTimeout((function(){return o.focus()}),1),this.setState({current:e})},s.render=function(){var e=this,n=(0,c.useBackend)(this.context),t=n.act,r=n.data,d=r.title,s=r.message,m=r.buttons,p=r.timeout,C=this.state.current,h=function(){return e.setCurrent(C,!1)},N=Math.max(150,s.length);return(0,o.createComponentVNode)(2,i.Window,{title:d,theme:"abstract",width:350,height:N,canClose:p>0,children:[p&&(0,o.createComponentVNode)(2,u,{value:p}),(0,o.createComponentVNode)(2,i.Window.Content,{onFocus:h,onClick:h,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",height:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",className:"AlertModal__Message",height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{m:1,children:s})})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{my:2,children:(0,o.createComponentVNode)(2,a.Flex,{className:"AlertModal__Buttons",wrap:!0,children:m.map((function(n,r){return(0,o.createComponentVNode)(2,a.Flex.Item,{mx:1,my:.5,children:(0,o.createVNode)(1,"div","Button Button--color--default",n,0,{px:3,onClick:function(){return t("choose",{choice:n})},onKeyDown:function(o){var r=window.event?o.which:o.keyCode;r===l.KEY_SPACE||r===l.KEY_ENTER?t("choose",{choice:n}):r===l.KEY_LEFT||o.shiftKey&&r===l.KEY_TAB?e.setCurrent(C-1,r===l.KEY_LEFT):r!==l.KEY_RIGHT&&r!==l.KEY_TAB||e.setCurrent(C+1,r===l.KEY_RIGHT)}},null,e.buttonRefs[r])},r)}))})})]})})})]})},r}(o.Component);n.AlertModal=s;var u=function(e){var n=e.value;return(0,o.createVNode)(1,"div","AlertModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"AlertModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=u},34847:function(e,n,t){"use strict";n.__esModule=!0,n.AlgaeFarm=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=(t(41860),t(2497));n.AlgaeFarm=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.usePower,u=d.materials,m=d.last_flow_rate,p=d.last_power_draw,C=d.inputDir,h=d.outputDir,N=d.input,V=d.output,b=d.errorText;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[b&&(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Processing",selected:2===s,onClick:function(){return l("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[m," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw",children:[p," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(e.display),children:[(0,o.createComponentVNode)(2,c.ProgressBar,{width:"80%",value:e.qty,maxValue:e.max,children:[e.qty,"/",e.max]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,content:"Eject",onClick:function(){return l("ejectMaterial",{mat:e.name})}})]},e.name)}))]}),(0,o.createComponentVNode)(2,c.Table,{mt:1,children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Input ("+C+")",children:N?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[N.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:N.name,children:[N.percent,"% (",N.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Gas Output ("+h+")",children:V?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Pressure",children:[V.pressure," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:V.name,children:[V.percent,"% (",V.moles," moles)"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},65145:function(e,n,t){"use strict";n.__esModule=!0,n.AppearanceChanger=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.AppearanceChanger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),V=t.data,b=V.name,f=V.specimen,g=V.gender,v=V.gender_id,k=V.hair_style,B=V.facial_hair_style,L=V.ear_style,_=V.tail_style,x=V.wing_style,w=V.change_race,S=V.change_gender,I=V.change_eye_color,y=V.change_skin_tone,T=V.change_skin_color,A=V.change_hair_color,P=V.change_facial_hair_color,M=V.change_hair,F=V.change_facial_hair,D=V.mapRef,R=r.title,E=I||y||T||A||P,O=-1;w?O=0:S?O=1:E?O=2:M?O=4:F&&(O=5);var j=(0,a.useLocalState)(n,"tabIndex",O),W=j[0],z=j[1];return(0,o.createComponentVNode)(2,l.Window,{width:700,height:650,title:(0,c.decodeHtmlEntities)(R),children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Reflection",children:(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:b}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",color:w?null:"grey",children:f}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",color:S?null:"grey",children:g?(0,c.capitalize)(g):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",color:E?null:"grey",children:v?(0,c.capitalize)(v):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Hair Style",color:M?null:"grey",children:k?(0,c.capitalize)(k):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Facial Hair Style",color:F?null:"grey",children:B?(0,c.capitalize)(B):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ear Style",color:M?null:"grey",children:L?(0,c.capitalize)(L):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Tail Style",color:M?null:"grey",children:_?(0,c.capitalize)(_):"Not Set"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wing Style",color:M?null:"grey",children:x?(0,c.capitalize)(x):"Not Set"})]})}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.ByondUi,{style:{width:"256px",height:"256px"},params:{id:D,type:"map"}})})]})}),(0,o.createComponentVNode)(2,i.Tabs,{children:[w?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===W,onClick:function(){return z(0)},children:"Race"}):null,S?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===W,onClick:function(){return z(1)},children:"Gender & Sex"}):null,E?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===W,onClick:function(){return z(2)},children:"Colors"}):null,M?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===W,onClick:function(){return z(3)},children:"Hair"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:5===W,onClick:function(){return z(5)},children:"Ear"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===W,onClick:function(){return z(6)},children:"Tail"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:7===W,onClick:function(){return z(7)},children:"Wing"})],4):null,F?(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:4===W,onClick:function(){return z(4)},children:"Facial Hair"}):null]}),(0,o.createComponentVNode)(2,i.Box,{height:"43%",children:[w&&0===W?(0,o.createComponentVNode)(2,d):null,S&&1===W?(0,o.createComponentVNode)(2,s):null,E&&2===W?(0,o.createComponentVNode)(2,u):null,M&&3===W?(0,o.createComponentVNode)(2,m):null,F&&4===W?(0,o.createComponentVNode)(2,p):null,M&&5===W?(0,o.createComponentVNode)(2,C):null,M&&6===W?(0,o.createComponentVNode)(2,h):null,M&&7===W?(0,o.createComponentVNode)(2,N):null]})]})})};var d=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.species,s=l.specimen,u=(0,r.sortBy)((function(e){return e.specimen}))(d||[]);return(0,o.createComponentVNode)(2,i.Section,{title:"Species",fill:!0,scrollable:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e.specimen,selected:s===e.specimen,onClick:function(){return c("race",{race:e.specimen})}},e.specimen)}))})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.gender,d=c.gender_id,s=c.genders,u=c.id_genders;return(0,o.createComponentVNode)(2,i.Section,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Biological Sex",children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===l,content:e.gender_name,onClick:function(){return r("gender",{gender:e.gender_key})}},e.gender_key)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Gender Identity",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{selected:e.gender_key===d,content:e.gender_name,onClick:function(){return r("gender_id",{gender_id:e.gender_key})}},e.gender_key)}))})]})})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.change_eye_color,d=c.change_skin_tone,s=c.change_skin_color,u=c.change_hair_color,m=c.change_facial_hair_color,p=c.eye_color,C=c.skin_color,h=c.hair_color,N=c.facial_hair_color,V=c.ears_color,b=c.ears2_color,f=c.tail_color,g=c.tail2_color,v=c.wing_color,k=c.wing2_color;return(0,o.createComponentVNode)(2,i.Section,{title:"Colors",fill:!0,scrollable:!0,children:[l?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:p,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Eye Color",onClick:function(){return r("eye_color")}})]}):null,d?(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Tone",onClick:function(){return r("skin_tone")}})}):null,s?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:C,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Skin Color",onClick:function(){return r("skin_color")}})]}):null,u?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:h,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Hair Color",onClick:function(){return r("hair_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:V,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Ears Color",onClick:function(){return r("ears_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:b,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Ears Color",onClick:function(){return r("ears2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:f,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Tail Color",onClick:function(){return r("tail_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:g,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Tail Color",onClick:function(){return r("tail2_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:v,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Wing Color",onClick:function(){return r("wing_color")}})]}),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:k,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Secondary Wing Color",onClick:function(){return r("wing2_color")}})]})],4):null,m?(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.ColorBox,{color:N,mr:1}),(0,o.createComponentVNode)(2,i.Button,{content:"Change Facial Hair Color",onClick:function(){return r("facial_hair_color")}})]}):null]})},m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.hair_style,d=c.hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("hair",{hair:e.hairstyle})},selected:e.hairstyle===l,content:e.hairstyle},e.hairstyle)}))})},p=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.facial_hair_style,d=c.facial_hair_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Facial Hair",fill:!0,scrollable:!0,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("facial_hair",{facial_hair:e.facialhairstyle})},selected:e.facialhairstyle===l,content:e.facialhairstyle},e.facialhairstyle)}))})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.ear_style,s=l.ear_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Ears",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("ear",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},h=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.tail_style,s=l.tail_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Tails",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("tail",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})},N=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.wing_style,s=l.wing_styles;return(0,o.createComponentVNode)(2,i.Section,{title:"Wings",fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{clear:!0})},selected:null===d,content:"-- Not Set --"}),(0,r.sortBy)((function(e){return e.name.toLowerCase()}))(s).map((function(e){return(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return c("wing",{ref:e.instance})},selected:e.name===d,content:e.name},e.instance)}))]})}},86776:function(e,n,t){"use strict";n.__esModule=!0,n.ArcadeBattle=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ArcadeBattle=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=(l.name,l.temp),s=l.enemyAction,u=l.enemyName,m=l.playerHP,p=l.playerMP,C=l.enemyHP,h=(l.enemyMP,l.gameOver);return(0,o.createComponentVNode)(2,a.Window,{width:400,height:240,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:u,textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Section,{color:"label",children:[(0,o.createComponentVNode)(2,c.Box,{children:d}),(0,o.createComponentVNode)(2,c.Box,{children:!h&&s})]}),(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[m,"HP"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[p,"MP"]})})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Enemy HP",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C,minValue:0,maxValue:45,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[C,"HP"]})})})})]}),h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return i("newgame")}})||(0,o.createComponentVNode)(2,c.Flex,{mt:2,justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return i("attack")},content:"Attack!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return i("heal")},content:"Heal!"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return i("charge")},content:"Recharge!"})})]})]})})})}},13496:function(e,n,t){"use strict";n.__esModule=!0,n.AreaScrubberControl=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(2497);n.AreaScrubberControl=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=(0,c.useLocalState)(n,"showArea",!1),u=s[0],m=s[1],p=d.scrubbers;return p?(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:u,onClick:function(){return m(!u)}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return i("allon")}})}),(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"49%",grow:1,children:(0,o.createComponentVNode)(2,r.Button,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return i("alloff")}})})]}),(0,o.createComponentVNode)(2,r.Flex,{wrap:"wrap",children:p.map((function(e){return(0,o.createComponentVNode)(2,r.Flex.Item,{m:"2px",basis:"32%",children:(0,o.createComponentVNode)(2,l,{scrubber:e,showArea:u})},e.id)}))})]})})}):(0,o.createComponentVNode)(2,r.Section,{title:"Error",children:[(0,o.createComponentVNode)(2,r.Box,{color:"bad",children:"No Scrubbers Detected."}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return i("scan")}})]})};var l=function(e,n){var t=(0,c.useBackend)(n).act,a=e.scrubber,l=e.showArea;return(0,o.createComponentVNode)(2,r.Section,{title:a.name,children:[(0,o.createComponentVNode)(2,r.Button,{fluid:!0,icon:"power-off",content:a.on?"Enabled":"Disabled",selected:a.on,onClick:function(){return t("toggle",{id:a.id})}}),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[a.pressure," kPa"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Flow Rate",children:[a.flow_rate," L/s"]}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[a.load," W"]}),l&&(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Area",children:(0,i.toTitleCase)(a.area)})]})]})}},56404:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyInfrared=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.AssemblyInfrared=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.visible;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Infrared Unit",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Laser",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",fluid:!0,selected:d,onClick:function(){return i("state")},children:d?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,selected:s,onClick:function(){return i("visible")},children:s?"Able to be seen":"Invisible"})})]})})})})}},29632:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyProx=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyProx=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time,p=s.range,C=s.maxRange,h=s.scanning;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})}),(0,o.createComponentVNode)(2,a.Section,{title:"Prox Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,a.NumberInput,{minValue:1,value:p,maxValue:C,onDrag:function(e,n){return d("range",{range:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Armed",children:[(0,o.createComponentVNode)(2,a.Button,{mr:1,icon:h?"lock":"lock-open",selected:h,onClick:function(){return d("scanning")},children:h?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},48661:function(e,n,t){"use strict";n.__esModule=!0,n.AssemblyTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.AssemblyTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.timing,m=s.time;return(0,o.createComponentVNode)(2,i.Window,{children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Timing Unit",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Timer",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"stopwatch",selected:u,onClick:function(){return d("timing")},children:u?"Counting Down":"Disabled"}),children:(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:m/10,minValue:0,maxValue:600,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("set_time",{time:n})}})})})})})})}},38531:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosAlertConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.priority_alarms||[],s=l.minor_alarms||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Alarms",children:(0,o.createVNode)(1,"ul",null,[0===d.length&&(0,o.createVNode)(1,"li","color-good","No Priority Alerts",16),d.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"bad",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)})),0===s.length&&(0,o.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map((function(e){return(0,o.createVNode)(1,"li",null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:e.name,color:"average",onClick:function(){return i("clear",{ref:e.ref})}}),2,null,e.name)}))],0)})})})}},46566:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosControlContent=n.AtmosControl=void 0;var o=t(39812),r=t(64499),c=t(85952),a=t(74814),i=t(71494);(0,t(88654).createLogger)("fuck");n.AtmosControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:600,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t,c=(0,i.useBackend)(n),l=c.act,d=c.data,s=c.config,u=(0,r.sortBy)((function(e){return e.name}))(d.alarms||[]),m=(0,i.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=(0,i.useLocalState)(n,"zoom",1),N=h[0],V=h[1];return 0===p?t=(0,o.createComponentVNode)(2,a.Section,{title:"Alarms",children:u.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.name,color:2===e.danger?"bad":1===e.danger?"average":"",onClick:function(){return l("alarm",{alarm:e.ref})}},e.name)}))}):1===p&&(t=(0,o.createComponentVNode)(2,a.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,a.NanoMap,{onZoom:function(e){return V(e)},children:u.filter((function(e){return~~e.z==~~s.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,a.NanoMap.Marker,{x:e.x,y:e.y,zoom:N,icon:"bell",tooltip:e.name,color:e.danger?"red":"green",onClick:function(){return l("alarm",{alarm:e.ref})}},e.ref)}))})})),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"table"})," Alarm View"]},"AlarmView"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)};n.AtmosControlContent=l},2726:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952));n.AtmosFilter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.filter_types||[];return(0,o.createComponentVNode)(2,a.Window,{width:390,height:187,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Rate",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,mr:1,children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:l.last_flow_rate,format:function(e){return e+" L/s"}})}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(e,n){return i("rate",{rate:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.rate===l.max_rate,onClick:function(){return i("rate",{rate:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Filter",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e.selected,content:e.name,onClick:function(){return i("filter",{filterset:e.f_type})}},e.name)}))})]})})})})}},61505:function(e,n,t){"use strict";n.__esModule=!0,n.AtmosMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.AtmosMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:370,height:195,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:l.on?"power-off":"times",content:l.on?"On":"Off",selected:l.on,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(l.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:l.max_pressure,step:10,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"plus",content:"Max",disabled:l.set_pressure===l.max_pressure,onClick:function(){return i("pressure",{pressure:"max"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider,{size:1}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"label",children:(0,o.createVNode)(1,"u",null,"Concentrations",16)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 1 ("+l.node1_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node1",{concentration:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Node 2 ("+l.node2_dir+")",children:(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:l.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(e,n){return i("node2",{concentration:n})}})})]})})})})}},99994:function(e,n,t){"use strict";n.__esModule=!0,n.Autolathe=void 0;var o=t(39812),r=(t(41860),t(85531)),c=t(64499),a=t(71494),i=t(74814),l=t(85952),d=t(95481),s=t(2497),u=function(e,n,t){if(void 0===t&&(t=1),null===e.requirements)return!0;for(var o=Object.keys(e.requirements),r=function(){var o=a[c],r=n.find((function(e){return e.name===o}));return r?r.amount=e[1].price/d.build_eff,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},u=function(e,n){return!!e.affordable&&!(e.reagent&&!n.beaker)},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u(e,i),content:(e.price/i.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:l,name:e.name})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},81850:function(e,n,t){"use strict";n.__esModule=!0,n.BodyDesigner=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);n.BodyDesigner=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.menu,u=d.disk,m=d.diskStored,p=d.activeBodyRecord,C=l[s];return(0,o.createComponentVNode)(2,i.Window,{width:400,height:650,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[u?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Save To Disk",onClick:function(){return r("savetodisk")},disabled:!p}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",content:"Load From Disk",onClick:function(){return r("loadfromdisk")},disabled:!m}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject",onClick:function(){return r("ejectdisk")}})]}):null,C]})})};var l={Main:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{title:"Database Functions",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Individual Body Records",onClick:function(){return r("menu",{menu:"Body Records"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:"View Stock Body Records",onClick:function(){return r("menu",{menu:"Stock Records"})}})]})})),"Body Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Body Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e.name,onClick:function(){return r("view_brec",{view_brec:e.recref})}},e.name)}))})})),"Stock Records":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.stock_bodyrecords;return(0,o.createComponentVNode)(2,a.Section,{title:"Stock Records",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Main"})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",content:e,onClick:function(){return r("view_stock_brec",{view_stock_brec:e})}},e)}))})})),"Specific Record":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.activeBodyRecord,s=l.mapRef;return d?(0,o.createComponentVNode)(2,a.Flex,{direction:"column",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"165px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Specific Record",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return i("menu",{menu:"Main"})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d.real_name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:d.speciesname}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:(0,r.capitalize)(d.gender),onClick:function(){return i("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:d.synthetic}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:[d.locked,(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!d.booc,onClick:function(){return i("boocnotes")}})]})]})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"130px",children:(0,o.createComponentVNode)(2,a.ByondUi,{style:{width:"100%",height:"128px"},params:{id:s,type:"map"}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"300px",children:(0,o.createComponentVNode)(2,a.Section,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scale",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:d.scale,onClick:function(){return i("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(d.styles).map((function(e){var n=d.styles[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.styleHref?(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.style,onClick:function(){return i("href_conversion",{target_href:n.styleHref,target_value:1})}}):null,n.colorHref?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color,onClick:function(){return i("href_conversion",{target_href:n.colorHref,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color,style:{border:"1px solid #fff"}})]}):null,n.colorHref2?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:n.color2,onClick:function(){return i("href_conversion",{target_href:n.colorHref2,target_value:1})}}),(0,o.createComponentVNode)(2,a.ColorBox,{verticalAlign:"top",width:"32px",height:"20px",color:n.color2,style:{border:"1px solid #fff"}})]}):null]},e)})),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Body Markings",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add Marking",onClick:function(){return i("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(d.markings).map((function(e){var n=d.markings[e];return(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return i("href_conversion",{target_href:"marking_remove",target_value:e})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,backgroundColor:n,content:e,onClick:function(){return i("href_conversion",{target_href:"marking_color",target_value:e})}})})]})},e)}))})]})]})})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR: Record Not Found!"})})),"OOC Notes":(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.activeBodyRecord;return(0,o.createComponentVNode)(2,a.Section,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return r("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:i&&i.booc||"ERROR: Body record not found!"})}))}},6060:function(e,n,t){"use strict";n.__esModule=!0,n.BodyScanner=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["hasBorer","bad",function(e){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(e){return"Viral pathogen detected in blood stream."}],["blind","average",function(e){return"Cataracts detected."}],["colourblind","average",function(e){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(e){return"Retinal misalignment detected."}],["humanPrey","average",function(e){return"Foreign Humanoid(s) detected: "+e.humanPrey}],["livingPrey","average",function(e){return"Foreign Creature(s) detected: "+e.livingPrey}],["objectPrey","average",function(e){return"Foreign Object(s) detected: "+e.objectPrey}]],s=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,Infinity]},m=function(e,n){for(var t=[],o=0;o0?e.reduce((function(e,n){return null===e?n:(0,o.createFragment)([e,!!n&&(0,o.createComponentVNode)(2,a.Box,{children:n})],0)})):null},C=function(e){if(e>100){if(e<300)return"mild infection";if(e<400)return"mild infection+";if(e<500)return"mild infection++";if(e<700)return"acute infection";if(e<800)return"acute infection+";if(e<900)return"acute infection++";if(e>=900)return"septic"}return""};n.BodyScanner=function(e,n){var t=(0,c.useBackend)(n).data,r=t.occupied,a=t.occupant,l=void 0===a?{}:a,d=r?(0,o.createComponentVNode)(2,h,{occupant:l}):(0,o.createComponentVNode)(2,B);return(0,o.createComponentVNode)(2,i.Window,{width:690,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:d})})};var h=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,N,{occupant:n}),(0,o.createComponentVNode)(2,V,{occupant:n}),(0,o.createComponentVNode)(2,b,{occupant:n}),(0,o.createComponentVNode)(2,f,{occupant:n}),(0,o.createComponentVNode)(2,v,{organs:n.extOrgan}),(0,o.createComponentVNode)(2,k,{organs:n.intOrgan})]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",onClick:function(){return i("ejectify")},children:"Eject"}),(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print_p")},children:"Print Report"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempC,0)}),"\xb0C,\xa0",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.bodyTempF,0)}),"\xb0F"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Volume",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.volume,0)})," units\xa0(",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:(0,r.round)(s.blood.percent,0)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Weight",children:(0,r.round)(d.occupant.weight)+"lbs, "+(0,r.round)(d.occupant.weight/2.20463)+"kgs"})]})})},V=function(e){var n=e.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Blood Reagents",children:n.reagents?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.reagents.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Blood Reagents Detected"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stomach Reagents",children:n.ingested?(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reagent"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Amount"})]}),n.ingested.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:[e.amount," Units ",e.overdose?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"OVERDOSING"}):null]})]},e.name)}))]}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"No Stomach Reagents Detected"})})],4)},b=function(e){var n=e.occupant,t=n.hasBorer||n.blind||n.colourblind||n.nearsighted||n.hasVirus;return(t=t||n.humanPrey||n.livingPrey||n.objectPrey)?(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:d.map((function(e,t){if(n[e[0]])return(0,o.createComponentVNode)(2,a.Box,{color:e[1],bold:"bad"===e[1],children:e[2](n)})}))}):(0,o.createComponentVNode)(2,a.Section,{title:"Abnormalities",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No abnormalities found."})})},f=function(e){var n=e.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.Table,{children:m(s,(function(e,t,r){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{color:"label",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e[0],":"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:!!t&&t[0]+":"})]}),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,g,{value:n[e[1]],marginBottom:r0&&"0.5rem",value:e.totalLoss/100,ranges:u,children:[(0,o.createComponentVNode)(2,a.Box,{float:"left",inline:!0,children:[!!e.bruteLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bone"}),(0,r.round)(e.bruteLoss,0),"\xa0",(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Brute damage"})]}),!!e.fireLoss&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"fire"}),(0,r.round)(e.fireLoss,0),(0,o.createComponentVNode)(2,a.Tooltip,{position:"top",content:"Burn damage"})]})]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,r.round)(e.totalLoss,0)})]})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([e.internalBleeding&&"Internal bleeding",!!e.status.bleeding&&"External bleeding",e.lungRuptured&&"Ruptured lung",e.destroyed&&"Destroyed",!!e.status.broken&&e.status.broken,C(e.germ_level),!!e.open&&"Open incision"])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[p([!!e.status.splinted&&"Splinted",!!e.status.robotic&&"Robotic",!!e.status.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})]),p(e.implants.map((function(e){return e.known?e.name:"Unknown object"})))]})]})]},n)}))]})})},k=function(e){return 0===e.organs.length?(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"N/A"})}):(0,o.createComponentVNode)(2,a.Section,{title:"Internal Organs",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:"Damage"}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",children:"Injuries"})]}),e.organs.map((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{textTransform:"capitalize",children:[(0,o.createComponentVNode)(2,a.Table.Cell,{width:"33%",children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:e.maxHealth,value:e.damage/100,mt:n>0&&"0.5rem",ranges:u,children:(0,r.round)(e.damage,0)})}),(0,o.createComponentVNode)(2,a.Table.Cell,{textAlign:"right",width:"33%",children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",inline:!0,children:p([C(e.germ_level),!!e.inflamed&&"Appendicitis detected."])}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:p([1===e.robotic&&"Robotic",2===e.robotic&&"Assisted",!!e.dead&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"})])})]})]},n)}))]})})},B=function(){return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})})}},74639:function(e,n,t){"use strict";n.__esModule=!0,n.BombTester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}n.BombTester=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.simulating,u=d.mode,m=d.tank1,p=d.tank1ref,C=d.tank2,h=d.tank2ref,N=d.canister,V=d.sim_canister_output;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,c.Section,{title:"Virtual Explosive Simulator v2.01",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mode",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:1})},selected:1===u,children:"Single Tank"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:2})},selected:2===u,children:"Transfer Valve"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("set_mode",{mode:3})},selected:3===u,children:"Canister"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Primary Slot",children:m&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:p})},icon:"eject",children:m})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:1})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Secondary Slot",children:C&&(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove_tank",{ref:h})},icon:"eject",children:C})||(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("add_tank",{slot:2})},icon:"upload",children:"Insert Tank"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Connected Canister",buttons:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("canister_scan")},icon:"search",children:"Scan"}),children:N&&(0,o.createComponentVNode)(2,c.Box,{color:"label",children:N})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No tank connected."})}),N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Canister Release Pressure",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:V,maxValue:1013.25,onDrag:function(e,n){return i("set_can_pressure",{pressure:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){return i("start_sim")},fluid:!0,children:"Begin Simulation"})]})})})};var l=function(e){var n,t;function r(n){var t;t=e.call(this,n)||this;var o=Math.random()>.5,r=Math.random()>.5;return t.state={x:o?340:0,y:r?205:0,reverseX:!1,reverseY:!1},t.process=setInterval((function(){t.setState((function(e){var n=Object.assign({},e);return n.reverseX?n.x-2<-5?(n.reverseX=!1,n.x+=2):n.x-=2:n.x+2>340?(n.reverseX=!0,n.x-=2):n.x+=2,n.reverseY?n.y-2<-20?(n.reverseY=!1,n.y+=2):n.y-=2:n.y+2>205?(n.reverseY=!0,n.y-=2):n.y+=2,n}))}),1),t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var a=r.prototype;return a.componentWillUnmount=function(){clearInterval(this.process)},a.render=function(){var e=this.state,n={position:"relative",left:e.x+"px",top:e.y+"px"};return(0,o.createComponentVNode)(2,c.Section,{title:"Simulation in progress!",fill:!0,children:(0,o.createComponentVNode)(2,c.Box,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,o.createComponentVNode)(2,c.Icon,{style:n,name:"bomb",size:10,color:"red"})})})},r}(o.Component)},48693:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyEditor=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.BotanyEditor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.activity,s=l.degradation,u=l.disk,m=l.sourceName,p=l.locus,C=l.loaded;return d?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:m}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene Decay",children:[s,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Locus",children:p})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No disk loaded."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:C})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("apply_gene")},children:"Apply Gene Mods"}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Target"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No target seed packet loaded."})})]})})}},25486:function(e,n,t){"use strict";n.__esModule=!0,n.BotanyIsolator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.BotanyIsolator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.geneMasks,s=l.activity,u=l.degradation,m=l.disk,p=l.loaded,C=l.hasGenetics,h=l.sourceName;return s?(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Scanning..."})})}):(0,o.createComponentVNode)(2,a.Window,{width:470,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Buffered Genetic Data",children:C&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Source",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gene decay",children:[u,"%"]}),m&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.mask,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:"download",onClick:function(){return i("get_gene",{get_gene:e.tag})},children:"Extract"})},e.mask)}))||null]}),m&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return i("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No Data Buffered."}),m&&(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_disk")},children:"Eject Loaded Disk"})||(0,o.createComponentVNode)(2,c.NoticeBox,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Loaded Material",children:p&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Packet Loaded",children:p})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"cog",onClick:function(){return i("scan_genome")},children:"Process Genome"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("eject_packet")},children:"Eject Packet"})]})||(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:"No packet loaded."})})]})})}},61956:function(e,n,t){"use strict";n.__esModule=!0,n.BrigTimer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.BrigTimer=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:138,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Cell Timer",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:s.timing?"Stop":"Start",selected:s.timing,onClick:function(){return d(s.timing?"stop":"start")}}),s.flash_found&&(0,o.createComponentVNode)(2,a.Button,{icon:"lightbulb-o",content:s.flash_charging?"Recharging":"Flash",disabled:s.flash_charging,onClick:function(){return d("flash")}})||null],0),children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,fluid:!0,value:s.time_left/10,minValue:0,maxValue:s.max_time_left/10,format:function(e){return(0,l.formatTime)((0,r.round)(e))},onDrag:function(e,n){return d("time",{time:n})}}),(0,o.createComponentVNode)(2,a.Flex,{mt:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_short/10),onClick:function(){return d("preset",{preset:"short"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_medium/10),onClick:function(){return d("preset",{preset:"medium"})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,l.formatTime)(s.preset_long/10),onClick:function(){return d("preset",{preset:"long"})}})})]})]})})})}},3180:function(e,n,t){"use strict";n.__esModule=!0,n.CameraConsoleSearch=n.CameraConsoleContent=n.CameraConsole=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(34380),i=t(2497),l=t(71494),d=t(74814),s=t(85952),u=function(e,n,t){void 0===n&&(n=""),void 0===t&&(t="");var o=(0,i.createSearch)(n,(function(e){return e.name}));return(0,c.flow)([(0,r.filter)((function(e){return null==e?void 0:e.name})),n&&(0,r.filter)(o),t&&(0,r.filter)((function(e){return e.networks.includes(t)})),(0,r.sortBy)((function(e){return e.name}))])(e)};n.CameraConsole=function(e,n){return(0,o.createComponentVNode)(2,s.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,m)})};var m=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(t.config,c.mapRef),i=c.activeCamera,m=function(e,n){var t,o;if(!n)return[];var r=e.findIndex((function(e){return e.name===n.name}));return[null==(t=e[r-1])?void 0:t.name,null==(o=e[r+1])?void 0:o.name]}(u(c.cameras),i);m[0],m[1];return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)}),2),(0,o.createVNode)(1,"div","CameraConsole__right",[(0,o.createVNode)(1,"div","CameraConsole__toolbar",[(0,o.createVNode)(1,"b",null,"Camera: ",16),i&&i.name||"\u2014"],0),(0,o.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-left",onClick:function(){return r("pan",{dir:8})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-up",onClick:function(){return r("pan",{dir:1})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-right",onClick:function(){return r("pan",{dir:4})}}),(0,o.createComponentVNode)(2,d.Button,{icon:"chevron-down",onClick:function(){return r("pan",{dir:2})}})],4),(0,o.createComponentVNode)(2,d.ByondUi,{className:"CameraConsole__map",params:{id:a,type:"map"}})],4)],4)};n.CameraConsoleContent=m;var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,i=(0,l.useLocalState)(n,"searchText",""),m=i[0],p=i[1],C=(0,l.useLocalState)(n,"networkFilter",""),h=C[0],N=C[1],V=c.activeCamera,b=c.allNetworks;b.sort();var f=u(c.cameras,m,h);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Input,{fluid:!0,mb:1,placeholder:"Search for a camera",onInput:function(e,n){return p(n)}}),(0,o.createComponentVNode)(2,d.Dropdown,{mb:1,width:"177px",options:b,placeholder:"No Filter",onSelected:function(e){return N(e)}}),(0,o.createComponentVNode)(2,d.Section,{children:f.map((function(e){return(0,o.createVNode)(1,"div",(0,a.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",V&&e.name===V.name&&"Button--selected"]),e.name,0,{title:e.name,onClick:function(){(0,s.refocusLayout)(),r("switch_camera",{name:e.name})}},e.name)}))})],4)};n.CameraConsoleSearch=p},94477:function(e,n,t){"use strict";n.__esModule=!0,n.Canister=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Canister=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.connected,m=s.can_relabel,p=s.pressure,C=s.releasePressure,h=s.defaultReleasePressure,N=s.minReleasePressure,V=s.maxReleasePressure,b=s.valveOpen,f=s.holding;return(0,o.createComponentVNode)(2,l.Window,{width:360,height:242,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Canister",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",disabled:!m,content:"Relabel",onClick:function(){return d("relabel")}}),children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return e<1e4?(0,r.toFixed)(e)+" kPa":(0,i.formatSiUnit)(1e3*e,1,"Pa")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Regulator",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",left:"-8px",children:[(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:C,unit:"kPa",minValue:N,maxValue:V,stepPixelSize:1,onDrag:function(e,n){return d("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return d("pressure",{pressure:V})}}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return d("pressure",{pressure:h})}})]})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Valve",children:(0,o.createComponentVNode)(2,a.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?f?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){return d("valve")}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{mr:1,label:"Port",children:(0,o.createComponentVNode)(2,a.Box,{position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{size:1.25,name:u?"plug":"times",color:u?"good":"bad"}),(0,o.createComponentVNode)(2,a.Tooltip,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Holding Tank",buttons:!!f&&(0,o.createComponentVNode)(2,a.Button,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){return d("eject")}}),children:[!!f&&(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Label",children:f.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:f.pressure})," kPa"]})]}),!f&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No Holding Tank"})]})]})})}},55636:function(e,n,t){"use strict";n.__esModule=!0,n.Canvas=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var l=function(e){var n,t;function r(n){var t;return(t=e.call(this,n)||this).canvasRef=(0,o.createRef)(),t.onCVClick=n.onCanvasClick,t}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,i(n,t);var c=r.prototype;return c.componentDidMount=function(){this.drawCanvas(this.props)},c.componentDidUpdate=function(){this.drawCanvas(this.props)},c.drawCanvas=function(e){var n=this.canvasRef.current.getContext("2d"),t=e.value,o=t.length;if(o){var r=t[0].length,c=Math.round(this.canvasRef.current.width/o),a=Math.round(this.canvasRef.current.height/r);n.save(),n.scale(c,a);for(var i=0;i=0||(r[t]=e[t]);return r}(n,["res","value","dotsize"]),i=d(t),l=i[0],s=i[1];return(0,o.normalizeProps)((0,o.createVNode)(1,"canvas",null,"Canvas failed to render.",16,Object.assign({width:l*c||300,height:s*c||300},a,{onClick:function(n){return e.clickwrapper(n)}}),null,this.canvasRef))},r}(o.Component),d=function(e){var n=e.length;return[n,0!==n?e[0].length:0]};n.Canvas=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=d(s.grid),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,a.Window,{width:Math.min(700,24*m+72),height:Math.min(700,24*p+72),children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,l,{value:s.grid,dotsize:24,onCanvasClick:function(e,n){return i("paint",{x:e,y:n})}}),(0,o.createComponentVNode)(2,c.Box,{children:[!s.finalized&&(0,o.createComponentVNode)(2,c.Button.Confirm,{onClick:function(){return i("finalize")},content:"Finalize"}),"\xa0",s.name]})]})})})}},25131:function(e,n,t){"use strict";n.__esModule=!0,n.CasinoPrizeDispenser=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(88654);var l={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.CasinoPrizeDispenser=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var d=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),d=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(e){return d(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),d=(t.act,t.data),s=d.points,m=d.items,p=(0,c.useLocalState)(n,"search",""),C=p[0],h=(p[1],(0,c.useLocalState)(n,"sort","Alphabetical")),N=h[0],V=(h[1],(0,c.useLocalState)(n,"descending",!1)),b=V[0],f=(V[1],(0,r.createSearch)(C,(function(e){return e[0]}))),g=!1,v=Object.entries(m).map((function(e,n){var t=Object.entries(e[1]).filter(f).map((function(e){return e[1].affordable=s>=e[1].price,e[1]})).sort(l[N]);if(0!==t.length)return b&&(t=t.reverse()),g=!0,(0,o.createComponentVNode)(2,u,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:g?v:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.title),l=e.items,d=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:i},d,{children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{content:e.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return r("purchase",{cat:i,name:e.name,price:e.price,restriction:e.restriction})}}),(0,o.createComponentVNode)(2,a.Box,{style:{clear:"both"}})]},e.name)}))})))}},47947:function(e,n,t){"use strict";n.__esModule=!0,n.CharacterDirectory=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=function(e){switch(e){case"Unset":return"label";case"Pred":return"red";case"Prey":return"blue";case"Switch":return"purple";case"Non-Vore":return"green"}};n.CharacterDirectory=function(e,n){var t=(0,r.useBackend)(n),i=t.act,s=t.data,u=s.personalVisibility,m=s.personalTag,p=s.personalErpTag,C=(0,r.useLocalState)(n,"overlay",null),h=C[0];C[1];return(0,o.createComponentVNode)(2,a.Window,{width:640,height:480,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h&&(0,o.createComponentVNode)(2,l)||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:u?"Shown":"Not Shown",onClick:function(){return i("setVisible")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:m,onClick:function(){return i("setTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:p,onClick:function(){return i("setErpTag")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Advertisement",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Edit Ad",onClick:function(){return i("editAd")}})})]})}),(0,o.createComponentVNode)(2,d)],4)})})};var l=function(e,n){var t=(0,r.useLocalState)(n,"overlay",null),a=t[0],l=t[1];return(0,o.createComponentVNode)(2,c.Section,{title:a.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",onClick:function(){return l(null)}}),children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Vore Tag",children:(0,o.createComponentVNode)(2,c.Box,{p:1,backgroundColor:i(a.tag),children:a.tag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"ERP Tag",children:(0,o.createComponentVNode)(2,c.Box,{children:a.erptag})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Character Ad",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.character_ad||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"OOC Notes",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.ooc_notes||"Unset."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Flavor Text",children:(0,o.createComponentVNode)(2,c.Box,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:a.flavor_text||"Unset."})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.directory,d=(0,r.useLocalState)(n,"sortId","name"),u=d[0],m=(d[1],(0,r.useLocalState)(n,"sortOrder","name")),p=m[0],C=(m[1],(0,r.useLocalState)(n,"overlay",null)),h=(C[0],C[1]);return(0,o.createComponentVNode)(2,c.Section,{title:"Directory",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Refresh",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{bold:!0,children:[(0,o.createComponentVNode)(2,s,{id:"name",children:"Name"}),(0,o.createComponentVNode)(2,s,{id:"tag",children:"Vore Tag"}),(0,o.createComponentVNode)(2,s,{id:"erptag",children:"ERP Tag"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),l.sort((function(e,n){var t=p?1:-1;return e[u].localeCompare(n[u])*t})).map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{backgroundColor:i(e.tag),children:[(0,o.createComponentVNode)(2,c.Table.Cell,{p:1,children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.tag}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.erptag}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return h(e)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},n)}))]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.id),i=e.children,l=(0,r.useLocalState)(n,"sortId","name"),d=l[0],s=l[1],u=(0,r.useLocalState)(n,"sortOrder","name"),m=u[0],p=u[1];return(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",color:d!==a&&"transparent",onClick:function(){d===a?p(!m):(s(a),p(!0))},children:[i,d===a&&(0,o.createComponentVNode)(2,c.Icon,{name:m?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},22223:function(e,n,t){"use strict";n.__esModule=!0,n.ChemDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(48229),i=t(85952),l=[5,10,20,30,40,60],d=[1,5,10];n.ChemDispenser=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:390,height:655,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.amount;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",flex:"content",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",spacing:"1",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",children:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",selected:i===e,content:e+"u",m:"0",fluid:!0,onClick:function(){return a("amount",{amount:e})}})},n)}))})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Custom Amount",children:(0,o.createComponentVNode)(2,c.Slider,{step:1,stepPixelSize:5,value:i,minValue:1,maxValue:120,onDrag:function(e,n){return a("amount",{amount:n})}})})]})})},u=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chemicals,d=void 0===l?[]:l,s=[],u=0;u<(d.length+1)%3;u++)s.push(!0);return(0,o.createComponentVNode)(2,c.Section,{title:i.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:e.title+" ("+e.amount+")",onClick:function(){return a("dispense",{reagent:e.id})}})},n)})),s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",basis:"25%",height:"20px"},n)}))]})})},m=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,s=l.isBeakerLoaded,u=l.beakerCurrentVolume,m=l.beakerMaxVolume,p=l.beakerContents,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,o.createComponentVNode)(2,c.Box,{children:[!!s&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mr:2,children:[u," / ",m," units"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!s,onClick:function(){return i("ejectBeaker")}})]}),children:(0,o.createComponentVNode)(2,a.BeakerContents,{beakerLoaded:s,beakerContents:C,buttons:function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return i("remove",{reagent:e.id,amount:-1})}}),d.map((function(n,t){return(0,o.createComponentVNode)(2,c.Button,{content:n,onClick:function(){return i("remove",{reagent:e.id,amount:n})}},t)})),(0,o.createComponentVNode)(2,c.Button,{content:"ALL",onClick:function(){return i("remove",{reagent:e.id,amount:e.volume})}})],0)}})})}},34859:function(e,n,t){"use strict";n.__esModule=!0,n.ChemMaster=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(48229),l=t(16007),d=[1,5,10,30,60];n.ChemMaster=function(e,n){var t=(0,r.useBackend)(n).data,c=t.condi,i=t.beaker,d=t.beaker_reagents,p=void 0===d?[]:d,C=t.buffer_reagents,h=void 0===C?[]:C,N=t.mode;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:500,resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal),(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,s,{beaker:i,beakerReagents:p,bufferNonEmpty:h.length>0}),(0,o.createComponentVNode)(2,u,{mode:N,bufferReagents:h}),(0,o.createComponentVNode)(2,m,{isCondiment:c,bufferNonEmpty:h.length>0})]})]})};var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,s=(t.data,e.beaker),u=e.beakerReagents,m=e.bufferNonEmpty?(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}}):(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,content:"Eject and Clear Buffer",onClick:function(){return a("eject")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Beaker",buttons:m,children:s?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,t){return(0,o.createComponentVNode)(2,c.Box,{mb:t0?(0,o.createComponentVNode)(2,i.BeakerContents,{beakerLoaded:!0,beakerContents:u,buttons:function(e,r){return(0,o.createComponentVNode)(2,c.Box,{mb:r0?l.desc:"N/A"}),l.blood_type&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood type",children:l.blood_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:l.blood_dna})],4),!i.condi&&(0,o.createComponentVNode)(2,c.Button,{icon:i.printing?"spinner":"print",disabled:i.printing,iconSpin:!!i.printing,ml:"0.5rem",content:"Print",onClick:function(){return a("print",{idx:l.idx,beaker:e.args.beaker})}})]})})})}))},83919:function(e,n,t){"use strict";n.__esModule=!0,n.ClawMachine=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ClawMachine=function(e,n){var t,i=(0,r.useBackend)(n),l=i.act,d=i.data,s=(d.wintick,d.instructions),u=d.gameStatus,m=d.winscreen;return"CLAWMACHINE_NEW"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Pay to Play!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Start",onClick:function(){return l("newgame")}})]}):"CLAWMACHINE_END"===u?t=(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),(0,o.createVNode)(1,"b",null,"Thank you for playing!",16)," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr"),m,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Close",onClick:function(){return l("return")}})]}):"CLAWMACHINE_ON"===u&&(t=(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[1,7],good:[8,Infinity]},value:d.wintick,minValue:0,maxValue:10})})}),(0,o.createComponentVNode)(2,c.Box,{align:"center",children:[(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br"),s,(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"hr")," ",(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Up",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Left",onClick:function(){return l("pointless")}}),(0,o.createComponentVNode)(2,c.Button,{content:"Right",onClick:function(){return l("pointless")}}),(0,o.createVNode)(1,"br")," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{content:"Down",onClick:function(){return l("pointless")}})]})]})),(0,o.createComponentVNode)(2,a.Window,{resizable:!0,children:(0,o.createVNode)(1,"center",null,t,0)})}},74351:function(e,n,t){"use strict";n.__esModule=!0,n.Cleanbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Cleanbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.version,p=l.blood,C=(l.patrol,l.vocal),h=l.wet_floors,N=l.spray_blood,V=l.rgbpanel,b=l.red_switch,f=l.green_switch,g=l.blue_switch;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Cleaner "+m,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("blood")},children:p?"Clean":"Ignore"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("vocal")},children:C?"On":"Off"})})]})})||null,!u&&s&&(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:V&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:b?"toggle-on":"toggle-off",backgroundColor:b?"red":"maroon",onClick:function(){return i("red_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:f?"toggle-on":"toggle-off",backgroundColor:f?"green":"darkgreen",onClick:function(){return i("green_switch")}}),(0,o.createComponentVNode)(2,c.Button,{fontSize:5.39,icon:g?"toggle-on":"toggle-off",backgroundColor:g?"blue":"darkblue",onClick:function(){return i("blue_switch")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Odd Looking Screw Twiddled",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:h,onClick:function(){return i("wet_floors")},icon:"screwdriver",children:h?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weird Button Pressed",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"brown",selected:N,onClick:function(){return i("spray_blood")},icon:"screwdriver",children:N?"Yes":"No"})})]})})})||null]})})}},98213:function(e,n,t){"use strict";n.__esModule=!0,n.CloningConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(76270),l=t(16007),d=t(85952),s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=e.args,s=d.activerecord,u=d.realname,m=d.health,p=d.unidentity,C=d.strucenzymes,h=m.split(" - ");return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+u,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Damage",children:h.length>1?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.oxy,inline:!0,children:h[0]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.toxin,inline:!0,children:h[2]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.brute,inline:!0,children:h[3]}),(0,o.createTextVNode)("\xa0|\xa0"),(0,o.createComponentVNode)(2,a.Box,{color:i.COLORS.damageType.burn,inline:!0,children:h[1]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unknown"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:p}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:C}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:!l.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return r("disk",{option:"load"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return r("disk",{option:"save",savetype:"ui"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return r("disk",{option:"save",savetype:"ue"})}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return r("disk",{option:"save",savetype:"se"})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!l.podready,icon:"user-plus",content:"Clone",onClick:function(){return r("clone",{ref:s})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",content:"Delete",onClick:function(){return r("del_rec")}})]})]})})};n.CloningConsole=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data.menu;return(0,l.modalRegisterBodyOverride)("view_rec",s),(0,o.createComponentVNode)(2,d.Window,{resizable:!0,children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,d.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})]})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data.menu;return 1===r?t=(0,o.createComponentVNode)(2,p):2===r&&(t=(0,o.createComponentVNode)(2,C)),t},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.loading,s=l.scantemp,u=l.occupant,m=l.locked,p=l.can_brainscan,C=l.scan_mode,h=l.numberofpods,N=l.pods,V=l.selected_pod,b=m&&!!u;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Scanner Lock:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u,selected:b,icon:b?"toggle-on":"toggle-off",content:b?"Engaged":"Disengaged",onClick:function(){return i("lock")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:b||!u,icon:"user-slash",content:"Eject Occupant",onClick:function(){return i("eject")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0}),"\xa0 Scanning..."]}):(0,o.createComponentVNode)(2,a.Box,{color:s.color,children:s.text})}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scan Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"brain":"male",content:C?"Brain":"Body",onClick:function(){return i("toggle_mode")}})})]}),(0,o.createComponentVNode)(2,a.Button,{disabled:!u||d,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:h?N.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:V===e.pod,icon:V===e.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:["Pod #",n+1]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.records;return i.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.realname,onClick:function(){return r("view_rec",{ref:e.record})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},h=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.scanner,d=i.numberofpods,s=i.autoallowed,u=i.autoprocess,m=i.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Auto-processing:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"Enabled":"Disabled",onClick:function(){return r("autoprocess",{on:u?0:1})}})],4),(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"eject",content:"Eject Disk",onClick:function(){return r("disk",{option:"eject"})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanner",children:l?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Not connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:d?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},32278:function(e,n,t){"use strict";n.__esModule=!0,n.ColorMate=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ColorMate=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.items,s=l.activecolor,u=Math.min(270+15*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:d.length&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Paint",children:(0,o.createComponentVNode)(2,c.Flex,{justify:"center",align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:s,width:"120px",height:"120px"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50% ",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye-dropper",onClick:function(){return i("select")},children:"Select Color"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fill-drip",onClick:function(){return i("paint")},children:"Paint Items"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tint-slash",onClick:function(){return i("clear")},children:"Remove Paintjob"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return i("eject")},children:"Eject Items"})]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Items",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["#",n+1,": ",e]},n)}))})],4)||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No items inserted."})})})})}},130:function(e,n,t){"use strict";n.__esModule=!0,n.CommunicationsConsoleContent=n.CommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CommunicationsConsole=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.menu_state),i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["ERRROR. Unknown menu_state: ",a,"Please report this to NT Technical Support."]});return 1===a?i=(0,o.createComponentVNode)(2,l):2===a?i=(0,o.createComponentVNode)(2,u):3===a&&(i=(0,o.createComponentVNode)(2,s)),(0,o.createFragment)([(0,o.createComponentVNode)(2,d),i],0)};n.CommunicationsConsoleContent=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.messages,d=i.msg_cooldown,s=i.emagged,u=i.cc_cooldown,m=i.str_security_level,p=i.levels,C=i.authmax,h=i.security_level,N=i.security_level_color,V=i.authenticated,b=i.atcsquelch,f=i.boss_short,g="View ("+l.length+")",v="Make Priority Announcement";d>0&&(v+=" ("+d+"s)");var k=s?"Message [UNKNOWN]":"Message "+f;u>0&&(k+=" ("+u+"s)");var B=m,L=p.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.icon,content:e.name,disabled:!V,selected:e.id===h,onClick:function(){return a("newalertlevel",{level:e.id})}},e.name)}));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Site Manager-Only Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Announcement",children:(0,o.createComponentVNode)(2,c.Button,{icon:"bullhorn",content:v,disabled:!C||d>0,onClick:function(){return a("announce")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",color:"red",content:k,disabled:!C||u>0,onClick:function(){return a("MessageSyndicate")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!C,onClick:function(){return a("RestoreBackup")}})]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transmit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"broadcast-tower",content:k,disabled:!C||u>0,onClick:function(){return a("MessageCentCom")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Command Staff Actions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Alert",color:N,children:B}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Alert",children:L}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Displays",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tv",content:"Change Status Displays",disabled:!V,onClick:function(){return a("status")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"folder-open",content:g,disabled:!V,onClick:function(){return a("messagelist")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Misc",children:(0,o.createComponentVNode)(2,c.Button,{icon:"microphone",content:b?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!V,selected:b,onClick:function(){return a("toggleatc")}})})]})})],4)},d=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,d=l.authenticated,s=l.is_ai,u=l.esc_status,m=l.esc_callable,p=l.esc_recallable;return t=d?s?"AI":1===d?"Command":2===d?"Site Director":"ERROR: Report This Bug!":"Not Logged In",(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Authentication",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"id-card",selected:d,content:d?"Log Out ("+t+")":"Log In",onClick:function(){return i("auth")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Escape Shuttle",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[!!u&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:u}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",content:"Call Shuttle",disabled:!d,onClick:function(){return i("callshuttle")}})}),!!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Recall Shuttle",disabled:!d||s,onClick:function(){return i("cancelshuttle")}})})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.message_current,d=i.message_deletion_allowed,s=i.authenticated,u=i.messages;if(l)return(0,o.createComponentVNode)(2,c.Section,{title:l.title,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Return To Message List",disabled:!s,onClick:function(){return a("messagelist")}}),children:(0,o.createComponentVNode)(2,c.Box,{children:l.contents})});var m=u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.title,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View",disabled:!s||l&&l.title===e.title,onClick:function(){return a("messagelist",{msgid:e.id})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Delete",disabled:!s||!d,onClick:function(){return a("delmessage",{msgid:e.id})}})]},e.id)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Messages Received",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.length&&m||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"404",color:"bad",children:"No messages."})})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stat_display,d=i.authenticated,s=l.presets.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.label,selected:e.name===l.type,disabled:!d,onClick:function(){return a("setstat",{statdisp:e.name})}},e.name)}));return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Status Screens",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return a("main")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 1",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_1,disabled:!d,onClick:function(){return a("setmsg1")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message Line 2",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pencil-alt",content:l.line_2,disabled:!d,onClick:function(){return a("setmsg2")}})})]})})}},4220:function(e,n,t){"use strict";n.__esModule=!0,n.Communicator=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=t(22902),s={};n.Communicator=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.currentTab,d=r.video_comm,h=(r.mapRef,(0,a.useLocalState)(n,"videoSetting",0)),N=h[0],V=h[1];return(0,o.createComponentVNode)(2,l.Window,{width:475,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[d&&(0,o.createComponentVNode)(2,u,{videoSetting:N,setVideoSetting:V}),(!d||0!==N)&&(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,i.Box,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:s[c]||(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,C,{videoSetting:N,setVideoSetting:V})],4)]})})};var u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.video_comm,c.mapRef),d=e.videoSetting,s=e.setVideoSetting;return 0===d?(0,o.createComponentVNode)(2,i.Box,{width:"100%",height:"100%",children:[(0,o.createComponentVNode)(2,i.ByondUi,{width:"100%",height:"95%",params:{id:l,type:"map"}}),(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,mt:.5,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(1)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})]}):1===d?(0,o.createComponentVNode)(2,i.Box,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,o.createComponentVNode)(2,i.Section,{p:0,m:0,children:(0,o.createComponentVNode)(2,i.Flex,{justify:"space-between",spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return s(2)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return s(0)}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return r("endvideo")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return r("hang_up")}})})]})}),(0,o.createComponentVNode)(2,i.ByondUi,{width:"200px",height:"200px",params:{id:l,type:"map"}})]}):null},m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.currentTab);return(0,o.createComponentVNode)(2,i.Section,{title:"Error!",children:["You tried to access tab #",r,", but there was no template defined!"]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),l=r.time,d=r.connectionStatus,s=r.owner,u=r.occupation;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:l}),(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Icon,{color:1===d?"good":"bad",name:1===d?"signal":"exclamation-triangle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.Flex.Item,{color:"average",children:(0,c.decodeHtmlEntities)(u)})]})})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.flashlight,l=e.videoSetting,d=e.setVideoSetting;return(0,o.createComponentVNode)(2,i.Flex,{children:[(0,o.createComponentVNode)(2,i.Flex.Item,{basis:2===l?"60%":"80%",children:(0,o.createComponentVNode)(2,i.Button,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return r("switch_tab",{switch_tab:1})}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:c,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return r("Light")}})}),2===l&&(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,i.Button,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return d(1)}})})]})},h=function(e,n){var t=(0,a.useBackend)(n).data,o=t.voice_mobs,r=t.communicating,c=t.requestsReceived,i=t.invitesSent,l=t.video_comm;return!("Phone"!==e||!(o.length||r.length||c.length||i.length||l))};s[1]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.homeScreen;return(0,o.createComponentVNode)(2,i.Flex,{mt:2,wrap:"wrap",align:"center",justify:"center",children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Flex.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,o.createComponentVNode)(2,i.Button,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return r("switch_tab",{switch_tab:e.number})},children:(0,o.createComponentVNode)(2,i.Icon,{spin:h(e.module,n),color:h(e.module,n)?"bad":null,name:e.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,o.createComponentVNode)(2,i.Box,{children:e.module})]},e.number)}))})}));var N=function(e,n){for(var t=(0,a.useBackend)(n),r=t.act,c=t.data.targetAddress,l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"].map((function(e){return(0,o.createComponentVNode)(2,i.Button,{content:e,fontSize:2,fluid:!0,onClick:function(){return r("add_hex",{add_hex:e})}},e)})),d=[],s=0;st?n.length>t?n.slice(0,t)+"...":n:e+n},f=function(e,n,t,o){if(t<0||t>o.length)return V(e,n)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var r=V(e,n),c=V(o[t],n);return r&&c?"TinderMessage_Subsequent_Sent":r||c?r?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"};s[40]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.targetAddressName,s=l.targetAddress,u=l.imList,m=(0,a.useLocalState)(n,"clipboardMode",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:V(e,s)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[V(e,s)?"You":"Them",": ",e.im]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]}):(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:b("Conversation with ",(0,c.decodeHtmlEntities)(d),30)}),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:p,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return C(!p)}}),height:"100%",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"95%","overflow-y":"auto"},children:u.map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:V(e,s)?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:f(e,s,n-1,t),inline:!0,children:(0,c.decodeHtmlEntities)(e.im)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return r("message",{message:s})},content:"Message"})]})}));var g=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:(0,c.decodeHtmlEntities)(l.name)+" by "+(0,c.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,i.Button,{content:"Back",icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:null})}}),children:l.messages.map((function(e){return(0,o.createComponentVNode)(2,i.Section,{children:["- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,c.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,i.Box,{color:"grey",children:["[",e.message_type," by ",(0,c.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))})},v=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Recent News",level:2,children:(0,o.createComponentVNode)(2,i.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,c.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,i.Button,{ml:1,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,c.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,i.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,i.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})}),(0,o.createComponentVNode)(2,i.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return r("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)};s[5]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data),c=r.feeds,l=r.target_feed;return(0,o.createComponentVNode)(2,i.Section,{title:"News",stretchContents:!0,height:"100%",children:!c.length&&(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||l&&(0,o.createComponentVNode)(2,g)||(0,o.createComponentVNode)(2,v)})}));s[6]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.note;return(0,o.createComponentVNode)(2,i.Section,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return r("edit")},content:"Edit Notes"}),children:(0,o.createComponentVNode)(2,i.Section,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:c})})}));s[7]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data),d=l.aircontents,s=l.weather;return(0,o.createComponentVNode)(2,i.Section,{title:"Weather",children:[(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Current Conditions",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Weather Reports",children:!!s.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.Planet,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Time",children:e.Time}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Weather",children:(0,c.toTitleCase)(e.Weather)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:["Current: ",e.Temperature.toFixed(),"\xb0C | High: ",e.High.toFixed(),"\xb0C | Low: ",e.Low.toFixed(),"\xb0C"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Direction",children:e.WindDir}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Wind Speed",children:e.WindSpeed}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Forecast",children:(0,c.decodeHtmlEntities)(e.Forecast)})]})},e.Planet)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No weather reports available. Please check back later."})})]})})),s[8]=(0,o.createComponentVNode)(2,d.CrewManifestContent);s[9]=(0,o.createComponentVNode)(2,(function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.owner,s=l.occupation,u=l.connectionStatus,m=l.address,p=l.visible,C=l.ring,h=l.selfie_mode;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Owner",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",fluid:!0,content:(0,c.decodeHtmlEntities)(d),onClick:function(){return r("rename")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Camera Mode",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:h?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return r("selfie_mode")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Occupation",children:(0,c.decodeHtmlEntities)(s)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Connection",children:1===u?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Connected"}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Disconnected"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Device EPv2 Address",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Visibility",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:p,selected:p,fluid:!0,content:p?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){return r("toggle_visibility")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Ringer",children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C,selected:C,fluid:!0,content:C?"Ringer on.":"Ringer off.",onClick:function(){return r("toggle_ringer")}})})]})})}))},2174:function(e,n,t){"use strict";n.__esModule=!0,n.ComputerFabricator=void 0;var o=t(39812),r=(t(2497),t(71494)),c=t(74814),a=t(85952);n.ComputerFabricator=function(e,n){var t=(0,r.useBackend)(n),u=t.act,m=t.data;return(0,o.createComponentVNode)(2,a.Window,{title:"Personal Computer Vendor",width:500,height:420,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),0!==m.state&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return u("clean_order")}}),0===m.state&&(0,o.createComponentVNode)(2,i),1===m.state&&(0,o.createComponentVNode)(2,l),2===m.state&&(0,o.createComponentVNode)(2,d),3===m.state&&(0,o.createComponentVNode)(2,s)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 1",minHeight:"306px",children:[(0,o.createComponentVNode)(2,c.Box,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,o.createComponentVNode)(2,c.Box,{mt:3,children:(0,o.createComponentVNode)(2,c.Grid,{width:"100%",children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"1"})}})}),(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return a("pick_device",{pick:"2"})}})})]})})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createComponentVNode)(2,c.Section,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,o.createComponentVNode)(2,c.Box,{bold:!0,color:"good",children:[i.totalprice,"\u20ae"]}),children:[(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Battery:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to operate without external utility power\nsource. Advanced batteries increase battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_battery,onClick:function(){return a("hw_battery",{battery:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Stores file on your device. Advanced drives can store more\nfiles, but use more power, shortening battery life.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Upgraded",selected:2===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"2"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:3===i.hw_disk,onClick:function(){return a("hw_disk",{disk:"3"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Allows your device to wirelessly connect to stationwide NTNet\nnetwork. Basic cards are limited to on-station use, while\nadvanced cards can operate anywhere near the station, which\nincludes asteroid outposts",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_netcard,onClick:function(){return a("hw_netcard",{netcard:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A device that allows for various paperwork manipulations,\nsuch as, scanning of documents or printing new ones.\nThis device was certified EcoFriendlyPlus and is capable of\nrecycling existing paper for printing purposes.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_nanoprint,onClick:function(){return a("hw_nanoprint",{print:"1"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"Adds a secondary RFID card reader, for manipulating or\nreading from a second standard RFID card.\nPlease note that a primary card reader is necessary to\nallow the device to read your identification, but one\nis included in the base price.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_card,onClick:function(){return a("hw_card",{card:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_card,onClick:function(){return a("hw_card",{card:"1"})}})})]}),2!==i.devtype&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"A component critical for your device's functionality.\nIt allows you to run programs from your hard drive.\nAdvanced CPUs use more power, but allow you to run\nmore programs on background at once.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"1"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Advanced",selected:2===i.hw_cpu,onClick:function(){return a("hw_cpu",{cpu:"2"})}})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,o.createComponentVNode)(2,c.Tooltip,{content:"An advanced wireless power relay that allows your device\nto connect to nearby area power controller to provide\nalternative power source. This component is currently\nunavailable on tablet computers due to size restrictions.",position:"right"})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"None",selected:0===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"0"})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{content:"Standard",selected:1===i.hw_tesla,onClick:function(){return a("hw_tesla",{tesla:"1"})}})})]})]}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return a("confirm_order")}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data);return(0,o.createComponentVNode)(2,c.Section,{title:"Step 3: Payment",minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"good",children:[a.totalprice,"\u20ae"]})]})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.Section,{minHeight:"282px",children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,o.createComponentVNode)(2,c.Box,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},26090:function(e,n,t){"use strict";n.__esModule=!0,n.CookingAppliance=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.CookingAppliance=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.temperature,s=l.optimalTemp,u=l.temperatureEnough,m=l.efficiency,p=l.containersRemovable,C=l.our_contents;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:u?"good":"blue",value:d,maxValue:s,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d}),"\xb0C / ",s,"\xb0C"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Efficiency",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Containers",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e,n){return e.empty?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("slot",{slot:n+1})},children:"Empty"})}):(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Slot #"+(n+1),verticalAlign:"middle",children:(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!p,onClick:function(){return i("slot",{slot:n+1})},children:e.container||"No Container"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.progressText[0],value:e.progress,maxValue:1,children:e.progressText[1]})})]})},n)}))})})]})})}},22902:function(e,n,t){"use strict";n.__esModule=!0,n.CrewManifestContent=n.CrewManifest=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(76270),l=t(2497);n.CrewManifest=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.manifest);return(0,o.createComponentVNode)(2,c.Section,{title:"Crew Manifest",noTopPadding:!0,children:a.map((function(e){return!!e.elems.length&&(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{backgroundColor:i.COLORS.manifest[e.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,textAlign:"center",fontSize:1.4,children:e.cat})}),level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,color:"white",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Rank"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Active"})]}),e.elems.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{color:"average",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,l.decodeHtmlEntities)(e.name)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.rank}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.active})]},e.name+e.rank)}))]})},e.cat)}))})};n.CrewManifestContent=d},96158:function(e,n,t){"use strict";n.__esModule=!0,n.CrewMonitorContent=n.CrewMonitor=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(71494),i=t(85952),l=t(74814),d=function(e){return e.dead?"Deceased":1===parseInt(e.stat,10)?"Unconscious":"Living"},s=function(e){return e.dead?"red":1===parseInt(e.stat,10)?"orange":"green"};n.CrewMonitor=function(){return(0,o.createComponentVNode)(2,i.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,i=(0,a.useBackend)(n),u=i.act,p=i.data,C=(i.config,(0,a.useLocalState)(n,"tabIndex",0)),h=C[0],N=C[1],V=(0,c.flow)([(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return null==e?void 0:e.x})),(0,r.sortBy)((function(e){return null==e?void 0:e.y})),(0,r.sortBy)((function(e){return null==e?void 0:e.realZ}))])(p.crewmembers||[]),b=(0,a.useLocalState)(n,"zoom",1);b[0],b[1];return t=0===h?(0,o.createComponentVNode)(2,l.Table,{children:[(0,o.createComponentVNode)(2,l.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:"Location"})]}),V.map((function(e){return(0,o.createComponentVNode)(2,l.Table.Row,{children:[(0,o.createComponentVNode)(2,l.Table.Cell,{children:[e.name," (",e.assignment,")"]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:[(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:s(e),children:d(e)}),e.sensor_type>=2?(0,o.createComponentVNode)(2,l.Box,{inline:!0,children:["(",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"red",children:e.brute}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"orange",children:e.fire}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"green",children:e.tox}),"|",(0,o.createComponentVNode)(2,l.Box,{inline:!0,color:"blue",children:e.oxy}),")"]}):null]}),(0,o.createComponentVNode)(2,l.Table.Cell,{children:3===e.sensor_type?p.isAI?(0,o.createComponentVNode)(2,l.Button,{fluid:!0,icon:"location-arrow",content:e.area+" ("+e.x+", "+e.y+")",onClick:function(){return u("track",{track:e.ref})}}):e.area+" ("+e.x+", "+e.y+", "+e.z+")":"Not Available"})]},e.ref)}))]}):1===h?(0,o.createComponentVNode)(2,m):"ERROR",(0,o.createFragment)([(0,o.createComponentVNode)(2,l.Tabs,{children:[(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:0===h,onClick:function(){return N(0)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"table"})," Data View"]},"DataView"),(0,o.createComponentVNode)(2,l.Tabs.Tab,{selected:1===h,onClick:function(){return N(1)},children:[(0,o.createComponentVNode)(2,l.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,o.createComponentVNode)(2,l.Box,{m:2,children:t})],4)};n.CrewMonitorContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.config),c=t.data,i=(0,a.useLocalState)(n,"zoom",1),d=i[0],u=i[1];return(0,o.createComponentVNode)(2,l.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,o.createComponentVNode)(2,l.NanoMap,{onZoom:function(e){return u(e)},children:c.crewmembers.filter((function(e){return 3===e.sensor_type&&~~e.realZ==~~r.mapZLevel})).map((function(e){return(0,o.createComponentVNode)(2,l.NanoMap.Marker,{x:e.x,y:e.y,zoom:d,icon:"circle",tooltip:e.name+" ("+e.assignment+")",color:s(e)},e.ref)}))})})}},99798:function(e,n,t){"use strict";n.__esModule=!0,n.Cryo=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]];n.Cryo=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:520,height:470,resizeable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,u=d.isOperating,m=d.hasOccupant,p=d.occupant,C=void 0===p?[]:p,h=d.cellTemperature,N=d.cellTemperatureStatus,V=d.isBeakerLoaded;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",flexGrow:"1",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"user-slash",onClick:function(){return a("ejectOccupant")},disabled:!m,children:"Eject"}),children:m?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.health)})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[C.stat][0],children:l[C.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:C[e.type]/100,ranges:{bad:[.01,Infinity]},children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:Math.round(C[e.type])})})},e.id)}))]}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected."]})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cell",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("ejectBeaker")},disabled:!V,children:"Eject Beaker"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a(u?"switchOff":"switchOn")},selected:u,children:u?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",color:N,children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," K"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:(0,o.createComponentVNode)(2,s)})]})})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.isBeakerLoaded,l=a.beakerLabel,d=a.beakerVolume;return i?(0,o.createFragment)([l||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No label"}),(0,o.createComponentVNode)(2,c.Box,{color:!d&&"bad",children:d?(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d,format:function(e){return Math.round(e)+" units remaining"}}):"Beaker is empty"})],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded"})}},54234:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItems=n.CryoStorageCrew=n.CryoStorage=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.CryoStorage=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.crew);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Crew",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"No crew currently stored."})})};n.CryoStorageCrew=i;var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.items;return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("allitems")},children:"Claim All"}),children:i.length&&i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"hand-rock",onClick:function(){return a("item",{ref:e.ref})},children:e.name},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItems=l},66384:function(e,n,t){"use strict";n.__esModule=!0,n.CryoStorageItemsVr=n.CryoStorageVr=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(54234);n.CryoStorageVr=function(e,n){var t=(0,r.useBackend)(n),d=(t.act,t.data),s=d.real_name,u=d.allow_items,m=(0,r.useLocalState)(n,"tab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Crew"}),!!u&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Items"})]}),(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Welcome, ",s,"."]}),0===p&&(0,o.createComponentVNode)(2,i.CryoStorageCrew),!!u&&1===p&&(0,o.createComponentVNode)(2,l)]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.items);return(0,o.createComponentVNode)(2,c.Section,{title:"Stored Items",children:a.length&&a.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e},e)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No items stored."})})};n.CryoStorageItemsVr=l},99579:function(e,n,t){"use strict";n.__esModule=!0,n.DNAForensics=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DNAForensics=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan_progress,s=l.scanning,u=l.bloodsamp,m=l.bloodsamp_desc;return(0,o.createComponentVNode)(2,a.Window,{width:540,height:326,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{selected:s,disabled:!u,icon:"power-off",onClick:function(){return i("scanItem")},children:s?"Halt Scan":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("ejectItem")},children:"Eject Bloodsample"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[99,Infinity],violet:[-Infinity,99]},value:d,maxValue:100})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Blood Sample",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[u,(0,o.createComponentVNode)(2,c.Box,{color:"label",children:m})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No blood sample inserted."})})]})})}},21849:function(e,n,t){"use strict";n.__esModule=!0,n.DNAModifier=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(16007),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],s=[5,10,20,30,50];n.DNAModifier=function(e,n){var t,c=(0,r.useBackend)(n),l=(c.act,c.data),d=l.irradiating,s=l.dnaBlockSize,p=l.occupant;return n.dnaBlockSize=s,n.isDNAInvalid=!p.isViableSubject||!p.uniqueIdentity||!p.structuralEnzymes,d&&(t=(0,o.createComponentVNode)(2,g,{duration:d})),(0,o.createComponentVNode)(2,a.Window,{width:660,height:700,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal),t,(0,o.createComponentVNode)(2,a.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,m)]})]})};var u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,d=i.locked,s=i.hasOccupant,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s,selected:d,icon:d?"toggle-on":"toggle-off",content:d?"Engaged":"Disengaged",onClick:function(){return a("toggleLock")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s||d,icon:"user-slash",content:"Eject",onClick:function(){return a("ejectOccupant")}})],4),children:s?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:u.minHealth,max:u.maxHealth,value:u.health/u.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",color:l[u.stat][0],children:l[u.stat][1]}),(0,o.createComponentVNode)(2,c.LabeledList.Divider)]})}),n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{min:"0",max:"100",value:u.radiationLevel/100,color:"average"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Unique Enzymes",children:i.occupant.uniqueEnzymes?i.occupant.uniqueEnzymes:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-circle"}),"\xa0 Unknown"]})})]})],0):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Cell unoccupied."})})},m=function(e,n){var t,a=(0,r.useBackend)(n),i=a.act,l=a.data,s=l.selectedMenuKey,u=l.hasOccupant;l.occupant;return u?n.isDNAInvalid?(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No operation possible on this subject."]})})}):("ui"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,h)],4):"se"===s?t=(0,o.createFragment)([(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h)],4):"buffer"===s?t=(0,o.createComponentVNode)(2,N):"rejuvenators"===s&&(t=(0,o.createComponentVNode)(2,f)),(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:[(0,o.createComponentVNode)(2,c.Tabs,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:s===e[0],onClick:function(){return i("selectMenuKey",{key:e[0]})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:e[2]}),e[1]]},n)}))}),t]})):(0,o.createComponentVNode)(2,c.Section,{flexGrow:"1",children:(0,o.createComponentVNode)(2,c.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant in DNA modifier."]})})})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedUIBlock,d=i.selectedUISubBlock,s=i.selectedUITarget,u=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Unique Identifier",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:u.uniqueIdentity,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectUIBlock"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:s,format:function(e){return e.toString(16).toUpperCase()},ml:"0",onChange:function(e,n){return a("changeUITarget",{value:n})}})})}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return a("pulseUIRadiation")}})]})},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.selectedSEBlock,d=i.selectedSESubBlock,s=i.occupant;return(0,o.createComponentVNode)(2,c.Section,{title:"Modify Structural Enzymes",level:"2",children:[(0,o.createComponentVNode)(2,v,{dnaString:s.structuralEnzymes,selectedBlock:l,selectedSubblock:d,blockSize:n.dnaBlockSize,action:"selectSEBlock"}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){return a("pulseSERadiation")}})]})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.radiationIntensity,d=i.radiationDuration;return(0,o.createComponentVNode)(2,c.Section,{title:"Radiation Emitter",level:"2",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Intensity",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:l,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationIntensity",{value:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Duration",children:(0,o.createComponentVNode)(2,c.Knob,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:d,popUpPosition:"right",ml:"0",onChange:function(e,n){return a("radiationDuration",{value:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-right",mt:"0.5rem",onClick:function(){return a("pulseRadiation")}})]})},N=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.buffers.map((function(e,n){return(0,o.createComponentVNode)(2,V,{id:n+1,name:"Buffer "+(n+1),buffer:e},n)})));return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Buffers",level:"2",children:a}),(0,o.createComponentVNode)(2,b)],4)},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.id,d=e.name,s=e.buffer,u=i.isInjectorReady,m=d+(s.data?" - "+s.label:"");return(0,o.createComponentVNode)(2,c.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,c.Section,{title:m,level:"3",mx:"0",lineHeight:"18px",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!s.data,icon:"trash",content:"Clear",onClick:function(){return a("bufferOption",{option:"clear",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data,icon:"pen",content:"Rename",onClick:function(){return a("bufferOption",{option:"changeLabel",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!s.data||!i.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:l})}})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Write",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!i.hasDisk||!i.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:l})}})]}),!!s.data&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:s.owner||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===s.type?"Unique Identifiers":"Structural Enzymes",!!s.ue&&" and Unique Enzymes"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer to",children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l})}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:u?"syringe":"spinner",iconSpin:!u,content:"Block Injector",mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:l,block:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:l})}})]})],4)]}),!s.data&&(0,o.createComponentVNode)(2,c.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},b=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.hasDisk,d=i.disk;return(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",level:"2",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:!l||!d.data,icon:"trash",content:"Wipe",onClick:function(){return a("wipeDisk")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectDisk")}})],4),children:l?d.data?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.label?d.label:"No label"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Subject",children:d.owner?d.owner:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Unknown"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Data Type",children:["ui"===d.type?"Unique Identifiers":"Structural Enzymes",!!d.ue&&" and Unique Enzymes"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"Disk is blank."}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"save-o",size:"4"}),(0,o.createVNode)(1,"br"),"No disk inserted."]})})},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerVolume,u=i.beakerLabel;return(0,o.createComponentVNode)(2,c.Section,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return a("ejectBeaker")}}),children:l?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inject",children:[s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{disabled:e>d,icon:"syringe",content:e,onClick:function(){return a("injectRejuvenators",{amount:e})}},n)})),(0,o.createComponentVNode)(2,c.Button,{disabled:d<=0,icon:"syringe",content:"All",onClick:function(){return a("injectRejuvenators",{amount:d})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",children:[(0,o.createComponentVNode)(2,c.Box,{mb:"0.5rem",children:u||"No label"}),d?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:[d," unit",1===d?"":"s"," remaining"]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Empty"})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",my:"25%",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",size:"4"}),(0,o.createVNode)(1,"br"),"No beaker loaded."]})})},g=function(e,n){return(0,o.createComponentVNode)(2,c.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"spinner",size:"5",spin:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:(0,o.createVNode)(1,"h1",null,[(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"}),(0,o.createTextVNode)("\xa0Irradiating occupant\xa0"),(0,o.createComponentVNode)(2,c.Icon,{name:"radiation"})],4)}),(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"h3",null,[(0,o.createTextVNode)("For "),e.duration,(0,o.createTextVNode)(" second"),1===e.duration?"":"s"],0)})]})},v=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.dnaString),l=e.selectedBlock,d=e.selectedSubblock,s=e.blockSize,u=e.action,m=i.split(""),p=[],C=function(e){for(var n=e/s+1,t=[],r=function(r){var i=r+1;t.push((0,o.createComponentVNode)(2,c.Button,{selected:l===n&&d===i,content:m[e+r],mb:"0",onClick:function(){return a(u,{block:n,subblock:i})}}))},i=0;i1?"Dangerous!":null]},e.stage)}))||(0,o.createComponentVNode)(2,c.Box,{children:"No virus sample loaded."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Affected Species",color:"label",children:[m&&m.length?null:"None",m.sort().join(", ")]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Reverse Engineering",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",mb:1,children:(0,o.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.stage,icon:"exchange-alt",onClick:function(){return a("grab",{grab:e.reference})}},e.stage)})),(0,o.createComponentVNode)(2,c.Button,{content:"Species",icon:"exchange-alt",onClick:function(){return a("affected_species")}})]})],4)]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dish_inserted,i.buffer),d=i.species_buffer,s=(i.effects,i.info);i.growth,i.affected_species,i.busy;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Memory Buffer",children:l?(0,o.createComponentVNode)(2,c.Box,{children:[l.name," (",l.stage,")"]}):d?(0,o.createComponentVNode)(2,c.Box,{children:d}):"Empty"})}),(0,o.createComponentVNode)(2,c.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!l&&!d,onClick:function(){return a("disk")}}),l?(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #1",disabled:l.stage>1,onClick:function(){return a("splice",{splice:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #2",disabled:l.stage>2,onClick:function(){return a("splice",{splice:2})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #3",disabled:l.stage>3,onClick:function(){return a("splice",{splice:3})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice #4",disabled:l.stage>4,onClick:function(){return a("splice",{splice:4})}})]}):d?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Splice Species",disabled:!d||s,onClick:function(){return a("splice",{splice:5})}})}):null]})}},31066:function(e,n,t){"use strict";n.__esModule=!0,n.DishIncubator=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.DishIncubator=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.on,u=d.system_in_use,m=d.food_supply,p=d.radiation,C=d.growth,h=d.toxins,N=d.chemicals_inserted,V=d.can_breed_virus,b=d.chemical_volume,f=d.max_chemical_volume,g=d.dish_inserted,v=d.blood_already_infected,k=d.virus,B=d.analysed,L=d.infection_rate;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Environmental Conditions",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:s,content:s?"On":"Off",onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,a.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return l("rad")}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return l("flush")}})})]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Virus Food",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,Infinity],average:[20,40],bad:[-Infinity,20]},value:m})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,color:p>=50?"bad":C>=25?"average":"good",value:p,children:[(0,r.formatCommaNumber)(1e4*p)," \xb5Sv"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Toxicity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,Infinity],average:[25,50],good:[-Infinity,25]},value:h})})]})]}),(0,o.createComponentVNode)(2,a.Section,{title:V?"Vial":"Chemicals",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject "+(V?"Vial":"Chemicals"),disabled:!N,onClick:function(){return l("ejectchem")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Breed Virus",disabled:!V,onClick:function(){return l("virus")}})],4),children:N&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:f,value:b,children:[b,"/",f]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Breeding Environment",color:V?"good":"average",children:[g?V?"Suitable":"No hemolytic samples detected":"N/A",v?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No chemicals inserted."})}),(0,o.createComponentVNode)(2,a.Section,{title:"Virus Dish",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Dish",disabled:!g,onClick:function(){return l("ejectdish")}}),children:g?k?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Growth Density",children:(0,o.createComponentVNode)(2,a.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,25]},value:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Infection Rate",children:B?L:"Unknown."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No virus detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No dish loaded."})})]})})}},19095:function(e,n,t){"use strict";n.__esModule=!0,n.DisposalBin=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.DisposalBin=function(e,n){var t,i,l=(0,r.useBackend)(n),d=l.act,s=l.data;return 2===s.mode?(t="good",i="Ready"):s.mode<=0?(t="bad",i="N/A"):1===s.mode?(t="average",i="Pressurizing"):(t="average",i="Idle"),(0,o.createComponentVNode)(2,a.Window,{width:300,height:250,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Status"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State",color:t,children:i}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[-Infinity,0],average:[0,99],good:[99,Infinity]},value:s.pressure,minValue:0,maxValue:100})})]}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,m:1,children:"Controls"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Handle",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:s.isAI||s.panel_open,content:"Disengaged",selected:s.flushing?null:"selected",onClick:function(){return d("disengageHandle")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:s.isAI||s.panel_open,content:"Engaged",selected:s.flushing?"selected":null,onClick:function(){return d("engageHandle")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-off",disabled:-1===s.mode,content:"Off",selected:s.mode?null:"selected",onClick:function(){return d("pumpOff")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"toggle-on",disabled:-1===s.mode,content:"On",selected:s.mode?"selected":null,onClick:function(){return d("pumpOn")}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",disabled:s.isAI,content:"Eject Contents",onClick:function(){return d("eject")}})})]})]})})})}},29345:function(e,n,t){"use strict";n.__esModule=!0,n.DroneConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.DroneConsole=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.drones,s=l.areas,u=l.selected_area,m=l.fabricator,p=l.fabPower;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Drone Fabricator",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!m,selected:p,icon:"power-off",content:p?"Enabled":"Disabled",onClick:function(){return i("toggle_fab")}}),children:m?(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Linked."}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Fabricator not detected.",(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){return i("search_fab")}})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Request Drone",children:[(0,o.createComponentVNode)(2,c.Dropdown,{options:s?s.sort():null,selected:u,width:"100%",onSelected:function(e){return i("set_dcall_area",{area:e})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",content:"Send Ping",onClick:function(){return i("ping")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Units",children:d&&d.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Resync",onClick:function(){return i("resync",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return i("shutdown",{ref:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:e.loc}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:[e.charge," / ",e.maxCharge]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active",children:e.active?"Yes":"No"})]})},e.name)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No drones detected."})})]})})}},84122:function(e,n,t){"use strict";n.__esModule=!0,n.EmbeddedController=void 0;var o=t(39812),r=(t(2497),t(41860),t(71494)),c=t(74814),a=t(85952),i=((0,t(88654).createLogger)("fuck"),{});n.EmbeddedController=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data.internalTemplateName),l=i[c];if(!l)throw Error("Unable to find Component for template name: "+c);return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=e.bars;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.color(e.value),minValue:e.minValue,maxValue:e.maxValue,value:e.value,children:e.textValue})},e.label)}))})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act,l=!0;a.interior_status&&"open"===a.interior_status.state?l=!1:a.external_pressure&&a.chamber_pressure&&(l=!(Math.abs(a.external_pressure-a.chamber_pressure)>5));var d=!0;return a.exterior_status&&"open"===a.exterior_status.state?d=!1:a.internal_pressure&&a.chamber_pressure&&(d=!(Math.abs(a.internal_pressure-a.chamber_pressure)>5)),(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return i("cycle_ext")}}),(0,o.createComponentVNode)(2,c.Button,{disabled:a.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return i("cycle_int")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:l?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return i("force_ext")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{disabled:a.airlock_disabled,color:d?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return i("force_int")}})]})],4)},s=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,u),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"INITIALIZING..."})}),l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===a.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===a.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===a.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Escape Pod Status",children:i[a.docking_status]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.data;t.act;return a.armed?(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"ARMED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SYSTEMS OK"})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=t.act;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:!a.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:"docked"!==a.docking_status?"bad":"",onClick:function(){return i("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{selected:a.override_enabled,color:"docked"!==a.docking_status?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return i("toggle_override")}})]})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.data,i=(t.act,{docked:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"DOCKED"}),docking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"DOCKING"}),undocking:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"NOT IN USE"})}[a.docking_status]);return a.override_enabled&&(i=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[a.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),i};i.AirlockConsoleAdvanced=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"},u=[{minValue:0,maxValue:202,value:i.external_pressure,label:"External Pressure",textValue:i.external_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:i.internal_pressure,label:"Internal Pressure",textValue:i.internal_pressure+" kPa",color:s}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:u}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Purge",onClick:function(){return a("purge")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"lock-open",content:"Secure",onClick:function(){return a("secure")}})]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsolePhoron=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}},{minValue:0,maxValue:100,value:i.chamber_phoron,label:"Chamber Phoron",textValue:i.chamber_phoron+" mol",color:function(e){return e>5?"bad":e>.5?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.AirlockConsoleDocking=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=[{minValue:0,maxValue:202,value:i.chamber_pressure,label:"Chamber Pressure",textValue:i.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Dock",buttons:i.airlock_disabled||i.override_enabled?(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}}):null,children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{disabled:!i.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return a("abort")}})})]})],4)};i.DockingConsoleSimple=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"ERROR"});return"open"===i.exterior_status.state?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"OPEN"}):"unlocked"===i.exterior_status.lock?l=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"UNSECURED"}):"locked"===i.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.override_enabled,content:"Force exterior door",onClick:function(){return a("force_door")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:i.override_enabled?"red":"",content:"Override",onClick:function(){return a("toggle_override")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dock Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Docking Hatch",children:l})]})})};i.DockingConsoleMulti=function(e,n){var t=(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Docking Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,c.Section,{title:"Airlocks",children:t.airlocks.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:t.airlocks.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:e.override_enabled?"bad":"good",label:e.name,children:e.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},e.name)}))}):(0,o.createComponentVNode)(2,c.Flex,{height:"100%",mt:"0.5em",children:(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No airlocks found."]})})})],4)};i.DoorAccessConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l="open"===i.interior_status.state||"closed"===i.exterior_status.state,d="open"===i.exterior_status.state||"closed"===i.interior_status.state;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:l?"arrow-left":"exclamation-triangle",content:l?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){a(l?"cycle_ext_door":"force_ext")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"arrow-right":"exclamation-triangle",content:d?"Cycle To Interior":"Lock Interior Door",onClick:function(){a(d?"cycle_int_door":"force_int")}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Exterior Door Status",children:"closed"===i.exterior_status.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Interior Door Status",children:"closed"===i.interior_status.state?"Locked":"Open"})]})})};i.EscapePodConsole=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:i.armed,color:i.armed?"bad":"average",content:"ARM",onClick:function(){return a("manual_arm")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",disabled:!i.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return a("force_launch")}})]})]})],4)};i.EscapePodBerthConsole=function(e,n){(0,r.useBackend)(n).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,m)})],4)}},33777:function(e,n,t){"use strict";n.__esModule=!0,n.ExonetNode=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ExonetNode=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.allowPDAs,u=l.allowCommunicators,m=l.allowNewscasters,p=l.logs;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,content:"Power "+(d?"On":"Off"),onClick:function(){return i("toggle_power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:s,content:s?"Open":"Closed",onClick:function(){return i("toggle_PDA_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Communicators",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return i("toggle_communicator_port")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return i("toggle_newscaster_port")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Logging",children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:[p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:e},n)})),p&&0!==p.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No logs found."})]})})]})})}},95481:function(e,n,t){"use strict";n.__esModule=!0,n.Materials=n.ExosuitFabricator=void 0;var o,r=t(39812),c=t(34380),a=t(64499),i=t(71494),l=t(58083),d=t(74814),s=t(85952),u=t(2497),m=t(41860);function p(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return C(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function C(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);tt?{color:2,deficit:e-t}:n>t?{color:1,deficit:e}:e+n>t?{color:1,deficit:e+n-t}:{color:0,deficit:0}},b=function(e,n,t){var o={textColor:0};return Object.keys(t.cost).forEach((function(r){o[r]=V(t.cost[r],n[r],e[r]),o[r].color>o.textColor&&(o.textColor=o[r].color)})),o};n.ExosuitFabricator=function(e,n){var t,o,c=(0,i.useBackend)(n),a=c.act,l=c.data,u=l.queue||[],m=(t=l.materials||[],o={},t.forEach((function(e){o[e.name]=e.amount})),o),p=function(e,n){var t={},o={},r={},c={};return n.forEach((function(n,a){c[a]=0,Object.keys(n.cost).forEach((function(i){t[i]=t[i]||0,r[i]=r[i]||0,o[i]=V(n.cost[i],t[i],e[i]),0!==o[i].color?c[a]1&&l0}));return 0===l.length?(0,r.createComponentVNode)(2,d.Box,{textAlign:"center",children:[(0,r.createComponentVNode)(2,d.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,r.createVNode)(1,"br"),(0,r.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:l.map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"80px",children:[(0,r.createComponentVNode)(2,v,{name:e.name,amount:e.amount,formatsi:!0}),!a&&(0,r.createComponentVNode)(2,d.Box,{mt:1,style:{"text-align":"center"},children:(0,r.createComponentVNode)(2,f,{material:e})})]},e.name)||null}))})};n.Materials=g;var v=function(e,n){var t=e.name,o=e.amount,a=e.formatsi,i=e.formatmoney,s=e.color,p=e.style,C="0";return C=o<1&&o>0?(0,m.toFixed)(o,2):a?(0,l.formatSiUnit)(o,0):i?(0,l.formatMoney)(o):o,(0,r.createComponentVNode)(2,d.Flex,{direction:"column",align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{className:(0,c.classes)(["sheetmaterials32x32",h[t]]),position:"relative",style:p,children:(0,r.createComponentVNode)(2,d.Tooltip,{position:"bottom",content:(0,u.toTitleCase)(t)})})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{textColor:s,style:{"text-align":"center"},children:C})})]})},k=function(e,n){var t=(0,i.useBackend)(n).data,o=t.partSets||[],c=t.buildableParts||{},a=(0,i.useSharedState)(n,"part_tab",o.length?c[0]:""),l=a[0],s=a[1];return(0,r.createComponentVNode)(2,d.Tabs,{vertical:!0,children:o.map((function(e){return!!c[e]&&(0,r.createComponentVNode)(2,d.Tabs.Tab,{selected:e===l,disabled:!c[e],onClick:function(){return s(e)},children:e},e)}))})},B=function(e,n){var t,o=(0,i.useBackend)(n).data,c=function(e){for(var n,t=p(e);!(n=t()).done;){var o=n.value;if(s[o])return o}return null},l=o.partSets||[],s=o.buildableParts||[],m=e.queueMaterials,C=e.materials,h=(0,i.useSharedState)(n,"part_tab",c(l)),N=h[0],V=h[1],f=(0,i.useSharedState)(n,"search_text",""),g=f[0],v=f[1];if(!N||!s[N]){var k=c(l);if(!k)return;V(k)}return g?(t=[],function(e,n){var t=[];if(e.length){var o=(0,u.createSearch)(e,(function(e){return(e.name||"")+(e.desc||"")+(e.searchMeta||"")}));return Object.keys(n).forEach((function(e){n[e].filter(o).forEach((function(e){t.push(e)}))})),t=(0,a.uniqBy)((function(e){return e.name}))(t)}}(g,s).forEach((function(e){e.format=b(C,m,e),t.push(e)}))):(t={Parts:[]},s[N].forEach((function(e){e.format=b(C,m,e),e.subCategory?(e.subCategory in t||(t[e.subCategory]=[]),t[e.subCategory].push(e)):t.Parts.push(e)}))),(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Section,{children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{mr:1,children:(0,r.createComponentVNode)(2,d.Icon,{name:"search"})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1,children:(0,r.createComponentVNode)(2,d.Input,{fluid:!0,placeholder:"Search for...",onInput:function(e,n){return v(n)}})})]})}),!!g&&(0,r.createComponentVNode)(2,L,{name:"Search Results",parts:t,forceShow:!0,placeholder:"No matching results..."})||Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,L,{name:e,parts:t[e]},e)}))],0)},L=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data.buildingPart,a=e.parts,l=e.name,s=e.forceShow,u=e.placeholder,m=(0,i.useSharedState)(n,"display_mats",!1)[0];return(!!a.length||s)&&(0,r.createComponentVNode)(2,d.Section,{title:l,buttons:(0,r.createComponentVNode)(2,d.Button,{disabled:!a.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return o("add_queue_set",{part_list:a.map((function(e){return e.id}))})}}),children:[!a.length&&u,a.map((function(e){return(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Flex,{align:"center",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{disabled:c||2===e.format.textColor,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return o("build_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return o("add_queue_part",{id:e.id})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[e.format.textColor],children:e.name})}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Button,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+e.printTime+"s. "+(e.desc||""),tooltipPosition:"left"})})]}),m&&(0,r.createComponentVNode)(2,d.Flex,{mb:2,children:Object.keys(e.cost).map((function(n){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"50px",color:N[e.format[n].color],children:(0,r.createComponentVNode)(2,v,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:n,amount:e.cost[n]})},n)}))})],0,e.name)}))]})},_=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=c.isProcessingQueue,l=c.queue||[],s=e.queueMaterials,u=e.missingMaterials,m=e.textColors;return(0,r.createComponentVNode)(2,d.Flex,{height:"100%",width:"100%",direction:"column",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{height:0,grow:1,children:(0,r.createComponentVNode)(2,d.Section,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,r.createFragment)([(0,r.createComponentVNode)(2,d.Button.Confirm,{disabled:!l.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return o("clear_queue")}}),!!a&&(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Stop",icon:"stop",onClick:function(){return o("stop_queue")}})||(0,r.createComponentVNode)(2,d.Button,{disabled:!l.length,content:"Build Queue",icon:"play",onClick:function(){return o("build_queue")}})],0),children:(0,r.createComponentVNode)(2,d.Flex,{direction:"column",height:"100%",children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,S)}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,w,{textColors:m})})]})})}),!!l.length&&(0,r.createComponentVNode)(2,d.Flex.Item,{mt:1,children:(0,r.createComponentVNode)(2,d.Section,{title:"Material Cost",children:(0,r.createComponentVNode)(2,x,{queueMaterials:s,missingMaterials:u})})})]})},x=function(e,n){var t=e.queueMaterials,o=e.missingMaterials;return(0,r.createComponentVNode)(2,d.Flex,{wrap:"wrap",children:Object.keys(t).map((function(e){return(0,r.createComponentVNode)(2,d.Flex.Item,{width:"12%",children:[(0,r.createComponentVNode)(2,v,{formatmoney:!0,name:e,amount:t[e]}),!!o[e]&&(0,r.createComponentVNode)(2,d.Box,{textColor:"bad",style:{"text-align":"center"},children:(0,l.formatMoney)(o[e])})]},e)}))})},w=function(e,n){var t=(0,i.useBackend)(n),o=t.act,c=t.data,a=e.textColors,l=c.queue||[];return l.length?l.map((function(e,n){return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.Flex,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,r.createComponentVNode)(2,d.Flex.Item,{basis:"content",children:(0,r.createComponentVNode)(2,d.Button,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return o("del_queue_part",{index:n+1})}})}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:(0,r.createComponentVNode)(2,d.Box,{inline:!0,textColor:N[a[n]],children:e.name})})]})},e.name)})):(0,r.createFragment)([(0,r.createTextVNode)("No parts in queue.")],4)},S=function(e,n){var t=(0,i.useBackend)(n).data,o=t.buildingPart,c=t.storedPart;if(c){var a=c.name;return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:1,value:1,color:"average",children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:a}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(o){var l=o.name,s=o.duration,u=o.printTime,m=Math.ceil(s/10);return(0,r.createComponentVNode)(2,d.Box,{children:(0,r.createComponentVNode)(2,d.ProgressBar,{minValue:0,maxValue:u,value:s,children:(0,r.createComponentVNode)(2,d.Flex,{children:[(0,r.createComponentVNode)(2,d.Flex.Item,{children:l}),(0,r.createComponentVNode)(2,d.Flex.Item,{grow:1}),(0,r.createComponentVNode)(2,d.Flex.Item,{children:m>=0&&m+"s"||"Dispensing..."})]})})})}}},95598:function(e,n,t){"use strict";n.__esModule=!0,n.Farmbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Farmbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.locked,u=l.tank,m=l.tankVolume,p=l.tankMaxVolume,C=l.waters_trays,h=l.refills_water,N=l.uproots_weeds,V=l.replaces_nutriment;l.collects_produce,l.removes_dead;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:540,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water Tank",children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No water tank detected."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:s?"good":"bad",children:s?"Locked":"Unlocked"})]})}),!s&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Watering Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Water plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("water")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Refill watertank",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("refill")},children:h?"Yes":"No"})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Weeding controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Weed plants",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("weed")},children:N?"Yes":"No"})})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Nutriment controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Replace fertilizer",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("replacenutri")},children:V?"Yes":"No"})})})})]})||null]})})}},17569:function(e,n,t){"use strict";n.__esModule=!0,n.FaxContent=n.Fax=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(28117),l=t(1192);n.Fax=function(e,n){return(0,r.useBackend)(n).data.authenticated?(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,i.LoginInfo),(0,o.createComponentVNode)(2,d)]})}):(0,o.createComponentVNode)(2,a.Window,{width:600,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,l.LoginScreen)]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.bossName,d=i.copyItem,s=i.cooldown,u=i.destination;return(0,o.createComponentVNode)(2,c.Section,{children:[!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:[l," Quantum Entanglement Network"]})}),d&&(0,o.createComponentVNode)(2,c.Box,{mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Currently Sending",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sending To",children:(0,o.createComponentVNode)(2,c.Button,{icon:"map-marker-alt",content:u,onClick:function(){return a("dept")}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"share-square",onClick:function(){return a("send")},content:"Send",fluid:!0})]})||(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Please insert item to transmit."})]})};n.FaxContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act;return t.data.copyItem?(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",onClick:function(){return a("remove")},content:"Remove Item"})}):null}},58087:function(e,n,t){"use strict";n.__esModule=!0,n.FileCabinet=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.FileCabinet=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data.contents,s=(0,r.sortBy)((function(e){return e.name}))(d||[]);return(0,o.createComponentVNode)(2,i.Window,{width:350,height:300,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"file",content:e.name,onClick:function(){return l("retrieve",{ref:e.ref})}},e.ref)}))})})})}},21902:function(e,n,t){"use strict";n.__esModule=!0,n.Floorbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Floorbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.vocal,p=l.amount,C=l.possible_bmode,h=l.improvefloors,N=l.eattiles,V=l.maketiles,b=l.bmode;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:310,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("start")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tiles Left",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("vocal")},children:m?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Improves Floors",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("improve")},children:h?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Finds Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("tiles")},children:N?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Makes Metal Sheets into Tiles",children:(0,o.createComponentVNode)(2,c.Button,{icon:V?"toggle-on":"toggle-off",selected:V,onClick:function(){return i("make")},children:V?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Bridge Mode",children:(0,o.createComponentVNode)(2,c.Dropdown,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:C,onSelected:function(e){return i("bridgemode",{dir:e})}})})]})})||null]})})}},309:function(e,n,t){"use strict";n.__esModule=!0,n.GasPump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.GasPump=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=l.last_flow_rate,m=l.last_power_draw,p=l.max_power_draw;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:290,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/10})," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:p,color:m=100?u="Running":!d&&s>0&&(u="DISCHARGING"),(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:d?"This will disable gravity!":"This will enable gravity!",onClick:function(){return i("gentoggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Breaker Setting",children:d?"Generator Enabled":"Generator Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",children:["Generator ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Status",children:[s,"%"]})]})})})})}},95075:function(e,n,t){"use strict";n.__esModule=!0,n.GuestPass=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.GuestPass=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.access,d.area),u=d.giver,m=d.giveName,p=d.reason,C=d.duration,h=d.mode,N=d.log,V=d.uid;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:1===h&&(0,o.createComponentVNode)(2,a.Section,{title:"Activity Log",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return l("mode",{mode:0})}}),children:[(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",onClick:function(){return l("print")},fluid:!0,mb:1}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Logs",children:N.length&&N.map((function(e){return(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:e}},e)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No logs."})})]})||(0,o.createComponentVNode)(2,a.Section,{title:"Guest pass terminal #"+V,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"scroll",content:"Activity Log",onClick:function(){return l("mode",{mode:1})}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issuing ID",children:(0,o.createComponentVNode)(2,a.Button,{content:u||"Insert ID",onClick:function(){return l("id")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Issued To",children:(0,o.createComponentVNode)(2,a.Button,{content:m,onClick:function(){return l("giv_name")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Reason",children:(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return l("reason")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Duration (minutes)",children:(0,o.createComponentVNode)(2,a.Button,{content:C,onClick:function(){return l("duration")}})})]}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return l("issue")}}),(0,o.createComponentVNode)(2,a.Section,{title:"Access",level:2,children:(0,r.sortBy)((function(e){return e.area_name}))(s).map((function(e){return(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:e.on,content:e.area_name,onClick:function(){return l("access",{access:e.area})}},e.area)}))})]})})})}},31875:function(e,n,t){"use strict";n.__esModule=!0,n.GyrotronControlContent=n.GyrotronControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.GyrotronControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.gyros;return(0,o.createComponentVNode)(2,a.Section,{title:"Gyrotrons",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fire Delay"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Strength"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{gyro:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(n,t){return c("set_rate",{gyro:e.ref,rate:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.active&&"yellow",value:e.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(n,t){return c("set_str",{gyro:e.ref,str:t})}})})]},e.name)}))]})})};n.GyrotronControlContent=i},7908:function(e,n,t){"use strict";n.__esModule=!0,n.Holodeck=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Holodeck=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.restrictedPrograms,u=l.currentProgram,m=l.isSilicon,p=l.safetyDisabled,C=l.emagged,h=l.gravity,N=d;return p&&(N=N.concat(s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:610,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{color:-1!==s.indexOf(e)?"bad":null,icon:"eye",content:e,selected:u===e,fluid:!0,onClick:function(){return i("program",{program:e})}},e)}))}),!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Override",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",fluid:!0,disabled:C,color:p?"good":"bad",onClick:function(){return i("AIoverride")},children:[!!C&&"Error, unable to control. ",p?"Enable Safeties":"Disable Safeties"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:p?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"}):(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"ENABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{icon:"user-astronaut",selected:h,onClick:function(){return i("gravity")},children:h?"Enabled":"Disabled"})})]})})]})})}},12676:function(e,n,t){"use strict";n.__esModule=!0,n.ICAssembly=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=(t(2497),t(58083));n.ICAssembly=function(e,n){var t=(0,c.useBackend)(n),s=(t.act,t.data),u=s.total_parts,m=s.max_components,p=s.total_complexity,C=s.max_complexity,h=s.battery_charge,N=s.battery_max,V=s.net_power,b=s.unremovable_circuits,f=s.removable_circuits;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Space in Assembly",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:u/m,maxValue:1,children:[u," / ",m," (",(0,r.round)(u/m*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Complexity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:p/C,maxValue:1,children:[p," / ",C," (",(0,r.round)(p/C*100,1),"%)"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell Charge",children:h&&(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:h/N,maxValue:1,children:[h," / ",N," (",(0,r.round)(h/N*100,1),"%)"]})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No cell detected."})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Net Energy",children:0===V?"0 W/s":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V,format:function(e){return"-"+(0,l.formatPower)(Math.abs(e))+"/s"}})})]})}),b.length&&(0,o.createComponentVNode)(2,d,{title:"Built-in Components",circuits:b})||null,f.length&&(0,o.createComponentVNode)(2,d,{title:"Removable Components",circuits:f})||null]})})};var d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.title,i=e.circuits;return(0,o.createComponentVNode)(2,a.Section,{title:r,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("open_circuit",{ref:e.ref})},children:"View"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("rename_circuit",{ref:e.ref})},children:"Rename"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("scan_circuit",{ref:e.ref})},children:"Debugger Scan"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("remove_circuit",{ref:e.ref})},children:"Remove"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return t("bottom_circuit",{ref:e.ref})},children:"Move to Bottom"})]},e.ref)}))})})}},42394:function(e,n,t){"use strict";n.__esModule=!0,n.ICCircuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(58083);n.ICCircuit=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=(u.name,u.desc),p=u.displayed_name,C=(u.removable,u.complexity),h=u.power_draw_idle,N=u.power_draw_per_use,V=u.extended_desc,b=u.inputs,f=u.outputs,g=u.activators;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,title:p,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stats",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("rename")},children:"Rename"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("scan")},children:"Scan with Device"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("remove")},children:"Remove"})],4),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Complexity",children:C}),h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Idle)",children:(0,l.formatPower)(h)})||null,N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Draw (Active)",children:(0,l.formatPower)(N)})||null]}),V]}),(0,o.createComponentVNode)(2,c.Section,{title:"Circuit",children:[(0,o.createComponentVNode)(2,c.Flex,{textAlign:"center",spacing:1,children:[b.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Inputs",children:(0,o.createComponentVNode)(2,d,{list:b})})})||null,(0,o.createComponentVNode)(2,c.Flex.Item,{basis:b.length&&f.length?"33%":b.length||f.length?"45%":"100%",children:(0,o.createComponentVNode)(2,c.Section,{title:p,mb:1,children:(0,o.createComponentVNode)(2,c.Box,{children:m})})}),f.length&&(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Outputs",children:(0,o.createComponentVNode)(2,d,{list:f})})})||null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Triggers",children:g.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("pin_name",{pin:e.ref})},children:e.pulse_out?"":""}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.name)}))})]})]})})};var d=function(e,n){var t=(0,r.useBackend)(n).act;return e.list.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_name",{pin:e.ref})},children:[(0,i.decodeHtmlEntities)(e.type),": ",e.name]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_data",{pin:e.ref})},children:e.data}),(0,o.createComponentVNode)(2,s,{pin:e})]},e.ref)}))},s=function(e,n){var t=(0,r.useBackend)(n).act,a=e.pin;return a.linked.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("pin_unwire",{pin:a.ref,link:e.ref})},children:e.name}),"@\xa0",(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return t("examine",{ref:e.holder_ref})},children:e.holder_name})]},e.ref)}))}},81039:function(e,n,t){"use strict";n.__esModule=!0,n.ICDetailer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(2497);n.ICDetailer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.detail_color,u=d.color_list;return(0,o.createComponentVNode)(2,a.Window,{width:420,height:254,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:Object.keys(u).map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,i.toTitleCase)(e),tooltipPosition:n%6==5?"left":"right",height:"64px",width:"64px",onClick:function(){return l("change_color",{color:e})},style:u[e]===s?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[e]},e)}))})})})}},21687:function(e,n,t){"use strict";n.__esModule=!0,n.ICPrinter=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);t(88654);n.ICPrinter=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=i.metal,s=i.max_metal,u=i.metal_per_sheet,m=(i.debug,i.upgraded),p=i.can_clone;i.assembly_to_clone,i.categories;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:630,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Metal",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:l,maxValue:s,children:[l/u," / ",s/u," sheets"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Circuits Available",children:m?"Advanced":"Regular"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Assembly Cloning",children:p?"Available":"Unavailable"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,o.createComponentVNode)(2,d)]})})};var l=function(e,n){return!!e.can_build&&!(e.cost>n.metal)},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.categories,u=(d.debug,(0,r.useSharedState)(n,"categoryTarget",null)),m=u[0],p=u[1],C=(0,i.filter)((function(e){return e.name===m}))(s)[0];return(0,o.createComponentVNode)(2,c.Section,{title:"Circuits",children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{mr:2,children:(0,o.createComponentVNode)(2,c.Tabs,{vertical:!0,children:(0,i.sortBy)((function(e){return e.name}))(s).map((function(e){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:m===e.name,onClick:function(){return p(e.name)},children:e.name},e.name)}))})}),(0,o.createComponentVNode)(2,c.Stack.Item,{children:C&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,i.sortBy)((function(e){return e.name}))(C.items).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,labelColor:e.can_build?"good":"bad",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!l(e,d),icon:"print",onClick:function(){return a("build",{build:e.path})},children:"Print"}),children:e.desc},e.name)}))})})||"No category selected."})]})})}},48522:function(e,n,t){"use strict";n.__esModule=!0,n.IDCard=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952),i=t(14959);n.IDCard=function(e,n){var t=(0,c.useBackend)(n).data,l=t.registered_name,d=t.sex,s=t.age,u=t.assignment,m=t.fingerprint_hash,p=t.blood_type,C=t.dna_hash,h=t.photo_front,N=[{name:"Sex",val:d},{name:"Age",val:s},{name:"Blood Type",val:p},{name:"Fingerprint",val:m},{name:"DNA Hash",val:C}];return(0,o.createComponentVNode)(2,a.Window,{width:470,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Flex,{children:[(0,o.createComponentVNode)(2,r.Flex.Item,{basis:"25%",textAlign:"left",children:(0,o.createComponentVNode)(2,r.Box,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:h&&(0,o.createVNode)(1,"img",null,null,1,{src:h.substr(1,h.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,o.createComponentVNode)(2,r.Icon,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{basis:0,grow:1,children:(0,o.createComponentVNode)(2,r.LabeledList,{children:N.map((function(e){return(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:e.name,children:e.val},e.name)}))})})]}),(0,o.createComponentVNode)(2,r.Flex,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:l})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,i.RankIcon,{rank:u})})}),(0,o.createComponentVNode)(2,r.Flex.Item,{children:(0,o.createComponentVNode)(2,r.Box,{textAlign:"center",children:u})})]})]})})})}},76952:function(e,n,t){"use strict";n.__esModule=!0,n.IdentificationComputerRegions=n.IdentificationComputerAccessModification=n.IdentificationComputerPrinting=n.IdentificationComputerContent=n.IdentificationComputer=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952),l=t(2497),d=(t(76270),t(22902));n.IdentificationComputer=function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:700,children:(0,o.createComponentVNode)(2,i.Window.Content,{resizable:!0,children:(0,o.createComponentVNode)(2,s)})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.ntos,s=i.mode,p=i.has_modify,C=i.printing,h=(0,o.createComponentVNode)(2,m,{ntos:l});return l&&!i.have_id_slot?h=(0,o.createComponentVNode)(2,d.CrewManifestContent):C?h=(0,o.createComponentVNode)(2,u):1===s&&(h=(0,o.createComponentVNode)(2,d.CrewManifestContent)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(!l||!!i.have_id_slot)&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:0===s,onClick:function(){return r("mode",{mode_target:0})},children:"Access Modification"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"home",selected:1===s,onClick:function(){return r("mode",{mode_target:1})},children:"Crew Manifest"}),!l||!!i.have_printer&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{float:"right",icon:"print",onClick:function(){return r("print")},disabled:!s&&!p,color:"",children:"Print"})]}),h],0)};n.IdentificationComputerContent=s;var u=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",children:"Please wait..."})};n.IdentificationComputerPrinting=u;var m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.ntos,s=i.station_name,u=i.target_name,m=i.target_owner,C=i.scan_name,h=i.authenticated,N=i.has_modify,V=i.account_number,b=i.centcom_access,f=i.all_centcom_access,g=(i.regions,i.id_rank),v=i.departments;return(0,o.createComponentVNode)(2,a.Section,{title:"Access Modification",children:[!h&&(0,o.createComponentVNode)(2,a.Box,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:u,onClick:function(){return r("modify")}})}),!d&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Authorized Identitity",children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",fluid:!0,content:C,onClick:function(){return r("scan")}})})]}),!!h&&!!N&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Details",level:2,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Registered Name",children:(0,o.createComponentVNode)(2,a.Input,{value:m,fluid:!0,onInput:function(e,n){return r("reg",{reg:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Account Number",children:(0,o.createComponentVNode)(2,a.Input,{value:V,fluid:!0,onInput:function(e,n){return r("account",{account:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dismissals",children:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+m,confirmContent:"You are dismissing "+m+", confirm?",onClick:function(){return r("terminate")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Assignment",level:2,children:(0,o.createComponentVNode)(2,a.Table,{children:[v.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:e.department_name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.jobs.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{selected:e.job===g,onClick:function(){return r("assign",{assign_target:e.job})},children:(0,l.decodeHtmlEntities)(e.display_name)},e.job)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:-1,children:"\xa0"}),(0,o.createTextVNode)(" ")],0,e.department_name)})),(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"Central Command",level:2,children:f.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return r("access",{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})||(0,o.createComponentVNode)(2,a.Section,{title:s,level:2,children:(0,o.createComponentVNode)(2,p,{actName:"access"})})],0)]})};n.IdentificationComputerAccessModification=m;var p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=e.actName,u=d.regions;return(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",spacing:1,children:(0,r.sortBy)((function(e){return e.name}))(u).map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{mb:1,basis:"content",grow:1,children:(0,o.createComponentVNode)(2,a.Section,{title:e.name,height:"100%",children:(0,r.sortBy)((function(e){return e.desc}))(e.accesses).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,selected:e.allowed,onClick:function(){return i(s,{access_target:e.ref,allowed:e.allowed})},children:(0,l.decodeHtmlEntities)(e.desc)})},e.ref)}))})},e.name)}))})};n.IdentificationComputerRegions=p},44570:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.InputModal=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952);(0,t(88654).createLogger)("inputmodal");n.InputModal=function(e,n){var t,r,s,u=(0,c.useBackend)(n),m=u.act,p=u.data,C=p.title,h=p.message,N=p.initial,V=p.input_type,b=p.timeout,f=(0,c.useLocalState)(n,"curValue",N),g=f[0],v=f[1],k=function(e){if(e.keyCode===i.KEY_ESCAPE)return e.preventDefault(),void m("cancel")};switch(V){case"text":case"num":r=325,t=Math.max(150,h.length),s=(0,o.createComponentVNode)(2,a.Input,{value:N,width:"100%",autoFocus:!0,autoSelect:!0,onKeyDown:k,onChange:function(e,n){v(n)},onEnter:function(e,n){m("choose",{choice:n})}});break;case"message":r=450,t=350,s=(0,o.createComponentVNode)(2,a.TextArea,{value:N,width:"100%",height:"100%",autoFocus:!0,dontUseTabForIndent:!0,onKeyDown:k,onChange:function(e,n){v(n)}})}return(0,o.createComponentVNode)(2,l.Window,{title:C,theme:"abstract",width:r,height:t,children:[b!==undefined&&(0,o.createComponentVNode)(2,d,{value:b}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,className:"InputModal__Section",title:h,tabIndex:0,children:s})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",onClick:function(){return m("choose",{choice:g})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return m("cancel")}})})]})})]})})]})};var d=function(e){var n=e.value;return(0,o.createVNode)(1,"div","InputModal__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"InputModal__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=d},53541:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanel=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanel=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.internalsValid;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act)},children:e.item||"Nothing"})},e.name)}))})}),s&&(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:s&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("internals")},children:"Set Internals"})||null})||null]})})}},46638:function(e,n,t){"use strict";n.__esModule=!0,n.InventoryPanelHuman=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.InventoryPanelHuman=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.slots,s=l.specialSlots,u=(l.internals,l.internalsValid),m=l.sensors,p=l.handcuffed,C=l.handcuffedParams,h=l.legcuffed,N=l.legcuffedParams,V=l.accessory;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[d&&d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)})),(0,o.createComponentVNode)(2,c.LabeledList.Divider),s&&s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,c.Button,{mb:-1,icon:e.item?"hand-paper":"gift",onClick:function(){return i(e.act,e.params)},children:e.item||"Nothing"})},e.name)}))]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"running",onClick:function(){return i("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"hand-paper",onClick:function(){return i("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),u&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lungs",onClick:function(){return i("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,m&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"book-medical",onClick:function(){return i("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,p&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",C)},children:"Handcuffed"})||null,h&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",N)},children:"Legcuffed"})||null,V&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return i("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},45e3:function(e,n,t){"use strict";n.__esModule=!0,n.IsolationCentrifuge=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(74814),a=t(85952);n.IsolationCentrifuge=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.busy,s=l.antibodies,u=l.pathogens,m=l.is_antibody_sample,p=l.sample_inserted,C=(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No vial detected."});return p&&(C=s||u?(0,o.createFragment)([s?(0,o.createComponentVNode)(2,c.Section,{title:"Antibodies",children:s}):null,u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Pathogens",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:e.spread_type},e.name)}))})}):null],0):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No antibodies or viral strains detected."})),(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d?(0,o.createComponentVNode)(2,c.Section,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,o.createVNode)(1,"center",null,(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:d}),2)}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:m?"Antibody Sample":"Blood Sample",children:[(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"print",content:"Print",disabled:!s&&!u.length,onClick:function(){return i("print")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!p,onClick:function(){return i("sample")}})})]}),C]}),s&&!m||u.length?(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[s&&!m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Antibodies",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return i("antibody")}})}):null,u.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Isolate Strain",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:e.name,onClick:function(){return i("isolate",{isolate:e.reference})}},e.name)}))}):null]})}):null],0)})})}},83994:function(e,n,t){"use strict";n.__esModule=!0,n.JanitorCart=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.JanitorCart=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.mybag,u=d.mybucket,m=d.mymop,p=d.myspray,C=d.myreplacer,h=d.signs;d.icons;return(0,o.createComponentVNode)(2,a.Window,{width:210,height:180,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:s||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:s?"grey":"transparent",style:{border:s?null:"2px solid grey"},onClick:function(){return i("bag")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybag"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:u||"Bucket Slot",tooltipPosition:"bottom",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return i("bucket")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mybucket"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?null:"2px solid grey"},onClick:function(){return i("mop")},children:(0,o.createComponentVNode)(2,l,{iconkey:"mymop"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:p||"Spray Slot",tooltipPosition:"top-end",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return i("spray")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myspray"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:C||"Light Replacer Slot",tooltipPosition:"top",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return i("replacer")},children:(0,o.createComponentVNode)(2,l,{iconkey:"myreplacer"})}),(0,o.createComponentVNode)(2,c.Button,{width:"64px",height:"64px",position:"relative",tooltip:h||"Signs Slot",tooltipPosition:"top-start",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return i("sign")},children:(0,o.createComponentVNode)(2,l,{iconkey:"signs"})})]})})};var i={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},l=function(e,n){var t=(0,r.useBackend)(n).data,a=e.iconkey,l=t.icons;return a in l?(0,o.createVNode)(1,"img",null,null,1,{src:l[a].substr(1,l[a].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,o.createComponentVNode)(2,c.Icon,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:i[a]})}},68741:function(e,n,t){"use strict";n.__esModule=!0,n.Jukebox=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Jukebox=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.playing,u=d.loop_mode,m=d.volume,p=d.current_track_ref,C=d.current_track,h=d.current_genre,N=d.percent,V=d.tracks,b=V.length&&V.reduce((function(e,n){var t=n.genre||"Uncategorized";return e[t]||(e[t]=[]),e[t].push(n),e}),{}),f=s&&(h||"Uncategorized");return(0,o.createComponentVNode)(2,i.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Currently Playing",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Title",children:s&&C&&(0,o.createComponentVNode)(2,a.Box,{children:[C.title," by ",C.artist||"Unkown"]})||(0,o.createComponentVNode)(2,a.Box,{children:"Stopped"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",disabled:s,onClick:function(){return l("play")},children:"Play"}),(0,o.createComponentVNode)(2,a.Button,{icon:"stop",disabled:!s,onClick:function(){return l("stop")},children:"Stop"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Loop Mode",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"play",onClick:function(){return l("loopmode",{loopmode:1})},selected:1===u,children:"Next"}),(0,o.createComponentVNode)(2,a.Button,{icon:"random",onClick:function(){return l("loopmode",{loopmode:2})},selected:2===u,children:"Shuffle"}),(0,o.createComponentVNode)(2,a.Button,{icon:"redo",onClick:function(){return l("loopmode",{loopmode:3})},selected:3===u,children:"Repeat"}),(0,o.createComponentVNode)(2,a.Button,{icon:"step-forward",onClick:function(){return l("loopmode",{loopmode:4})},selected:4===u,children:"Once"})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:1,color:"good"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,a.Slider,{minValue:0,step:1,value:100*m,maxValue:100,ranges:{good:[75,Infinity],average:[25,75],bad:[0,25]},format:function(e){return(0,r.round)(e,1)+"%"},onChange:function(e,n){return l("volume",{val:(0,r.round)(n/100,2)})}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Available Tracks",children:V.length&&Object.keys(b).sort().map((function(e){return(0,o.createComponentVNode)(2,a.Collapsible,{title:e,color:f===e?"green":"default",child_mt:0,children:(0,o.createVNode)(1,"div",null,b[e].map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"play",selected:p===e.ref,onClick:function(){return l("change_track",{change_track:e.ref})},children:e.title},e.ref)})),0,{style:{"margin-left":"1em"}})},e)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No songs loaded."})})]})})}},13204:function(e,n,t){"use strict";n.__esModule=!0,n.LawManager=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LawManager=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data.isSlaved);return(0,o.createComponentVNode)(2,a.Window,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[l&&(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:["Law-synced to ",l]})||null,(0,o.createComponentVNode)(2,i)]})})};var i=function(e,n){var t=(0,r.useSharedState)(n,"lawsTabIndex",0),a=t[0],i=t[1];return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===a,onClick:function(){return i(0)},children:"Law Management"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===a,onClick:function(){return i(1)},children:"Law Sets"})]}),0===a&&(0,o.createComponentVNode)(2,l)||null,1===a&&(0,o.createComponentVNode)(2,s)||null],0)},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.ion_law_nr,s=i.ion_law,u=i.zeroth_law,m=i.inherent_law,p=i.supplied_law,C=i.supplied_law_position,h=i.zeroth_laws,N=i.has_zeroth_laws,V=i.ion_laws,b=i.has_ion_laws,f=i.inherent_laws,g=i.has_inherent_laws,v=i.supplied_laws,k=i.has_supplied_laws,B=i.isAI,L=i.isMalf,_=i.isAdmin,x=i.channel,w=i.channels,S=h.map((function(e){return e.zero=!0,e})).concat(f);return(0,o.createComponentVNode)(2,c.Section,{children:[b&&(0,o.createComponentVNode)(2,d,{laws:V,title:l+" Laws:",mt:-2})||null,(N||g)&&(0,o.createComponentVNode)(2,d,{laws:S,title:"Inherent Laws",mt:-2})||null,k&&(0,o.createComponentVNode)(2,d,{laws:v,title:"Supplied Laws",mt:-2})||null,(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Controls",mt:-2,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Statement Channel",children:w.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.channel,selected:x===e.channel,onClick:function(){return a("law_channel",{law_channel:e.channel})}},e.channel)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"State Laws",children:(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_laws")},children:"State Laws"})}),B&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Law Notification",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation",onClick:function(){return a("notify_laws")},children:"Notify"})})||null]})}),L&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Add Laws",mt:-2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Add"})]}),_&&!N&&(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Zero"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:u,fluid:!0,onChange:function(e,n){return a("change_zeroth_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_zeroth_law")},children:"Add"})})]})||null,(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Ion"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:s,fluid:!0,onChange:function(e,n){return a("change_ion_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_ion_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Inherent"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:m,fluid:!0,onChange:function(e,n){return a("change_inherent_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"N/A"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_inherent_law")},children:"Add"})})]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Supplied"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Input,{value:p,fluid:!0,onChange:function(e,n){return a("change_supplied_law",{val:n})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("change_supplied_law_position")},children:C})}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("add_supplied_law")},children:"Add"})})]})]})})||null]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,d=i.isAdmin,s=e.laws,u=e.title,m=e.noButtons,p=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["laws","title","noButtons"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,c.Section,Object.assign({level:2,title:u},p,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Index"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Law"}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"State"})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Delete"})],4)||null]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[e.index,"."]}),(0,o.createComponentVNode)(2,c.Table.Cell,{color:e.zero?"bad":null,children:e.law}),!m&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"volume-up",selected:e.state,onClick:function(){return a("state_law",{ref:e.ref,state_law:!e.state})},children:e.state?"Yes":"No"})})||null,l&&!m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,icon:"pen",onClick:function(){return a("edit_law",{edit_law:e.ref})},children:"Edit"})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{disabled:e.zero&&!d,color:"bad",icon:"trash",onClick:function(){return a("delete_law",{delete_law:e.ref})},children:"Delete"})})],4)||null]},e.index)}))]})})))},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.isMalf,s=i.law_sets;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{disabled:!l,icon:"sync",onClick:function(){return a("transfer_laws",{transfer_laws:e.ref})},children:"Load Laws"}),(0,o.createComponentVNode)(2,c.Button,{icon:"volume-up",onClick:function(){return a("state_law_set",{state_law_set:e.ref})},children:"State Laws"})],4),children:[e.laws.has_ion_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.ion_laws,title:e.laws.ion_law_nr+" Laws:"})||null,(e.laws.has_zeroth_laws||e.laws.has_inherent_laws)&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.zeroth_laws.concat(e.laws.inherent_laws),title:e.header})||null,e.laws.has_supplied_laws&&(0,o.createComponentVNode)(2,d,{noButtons:!0,laws:e.laws.supplied_laws,title:"Supplied Laws"})||null]},e.name)}))||null],0)}},58802:function(e,n,t){"use strict";n.__esModule=!0,n.Loader=n.ListInput=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(29708),l=t(85952),d=0;n.ListInput=function(e,n){var t=(0,c.useBackend)(n),r=t.act,u=t.data,m=u.title,p=u.message,C=u.buttons,h=u.timeout,N=u.initial,V=(0,c.useLocalState)(n,"search_bar",!1),b=V[0],f=V[1],g=(0,c.useLocalState)(n,"displayed_array",C),v=g[0],k=g[1],B=(0,c.useLocalState)(n,"search_array",[]),L=B[0],_=B[1],x=(0,c.useLocalState)(n,"search_index",0),w=x[0],S=x[1],I=(0,c.useLocalState)(n,"last_char_code",null),y=I[0],T=I[1],A=(0,c.useLocalState)(n,"selected_button",N||C[0]),P=A[0],M=A[1];return(0,o.createComponentVNode)(2,l.Window,{title:m,theme:"abstract",width:325,height:325,children:[h!==undefined&&(0,o.createComponentVNode)(2,s,{value:h}),(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Section,{fill:!0,scrollable:!0,autoFocus:!0,className:"ListInput__Section",title:p,tabIndex:0,onKeyDown:function(e){if(e.preventDefault(),!(d>performance.now())){if(d=performance.now()+125,e.keyCode===i.KEY_HOME||e.keyCode===i.KEY_END){var n=e.keyCode===i.KEY_HOME?0:C.length-1;return M(C[n]),T(null),void document.getElementById(C[n]).focus()}if(e.keyCode===i.KEY_UP||e.keyCode===i.KEY_DOWN){var t=1;e.keyCode===i.KEY_UP&&(t=-1);for(var o=0;o=C.length&&(o=0),M(C[o]),T(null),void document.getElementById(C[o]).focus()}if(e.keyCode!==i.KEY_SPACE&&e.keyCode!==i.KEY_ENTER)if(e.keyCode!==i.KEY_ESCAPE){var c=String.fromCharCode(e.keyCode).toLowerCase();if(c){var a;if(c===y&&L.length>0){var l=w+1;l0&&(_(s),S(0),a=s[0])}a&&(T(c),M(a),document.getElementById(a).focus())}}else r("cancel");else r("choose",{choice:P})}},buttons:(0,o.createComponentVNode)(2,a.Button,{compact:!0,icon:"search",color:"transparent",selected:b,tooltip:"Search Bar",tooltipPosition:"left",onClick:function(){f(!b),k(C)}}),children:v.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"transparent",id:e,selected:P===e,onClick:function(){P===e?r("choose",{choice:e}):M(e),T(null)},children:e},e)}))})}),b&&(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,onInput:function(e,n){return k(C.filter((function(e){return-1!==e.toLowerCase().search(n.toLowerCase())})))}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{children:(0,o.createComponentVNode)(2,a.Stack,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",disabled:null===P,onClick:function(){return r("choose",{choice:P})}})}),(0,o.createComponentVNode)(2,a.Stack.Item,{grow:!0,basis:0,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){return r("cancel")}})})]})})]})})]})};var s=function(e){var n=e.value;return(0,o.createVNode)(1,"div","ListInput__Loader",(0,o.createComponentVNode)(2,a.Box,{className:"ListInput__LoaderProgress",style:{width:100*(0,r.clamp01)(n)+"%"}}),2)};n.Loader=s},36104:function(e,n,t){"use strict";n.__esModule=!0,n.LookingGlass=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.LookingGlass=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.supportedPrograms,s=l.currentProgram,u=l.immersion,m=l.gravity,p=Math.min(180+23*d.length,600);return(0,o.createComponentVNode)(2,a.Window,{width:300,height:p,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",selected:e===s,onClick:function(){return i("program",{program:e})},children:e},e)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gravity",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"user-astronaut",selected:m,onClick:function(){return i("gravity")},children:m?"Enabled":"Disabled"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Full Immersion",children:(0,o.createComponentVNode)(2,c.Button,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return i("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},74714:function(e,n,t){"use strict";n.__esModule=!0,n.MechaControlConsole=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.MechaControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.beacons,u=d.stored_data;return(0,o.createComponentVNode)(2,a.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u.length&&(0,o.createComponentVNode)(2,c.Modal,{children:(0,o.createComponentVNode)(2,c.Section,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"window-close",onClick:function(){return l("clear_log")}}),children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["(",e.time,") (",e.year,")"]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,i.decodeHtmlEntities)(e.message)})]},e.time)}))})})||null,s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"comment",onClick:function(){return l("send_message",{mt:e.ref})},children:"Message"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return l("get_log",{mt:e.ref})},children:"View Log"}),(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return l("shock",{mt:e.ref})}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.maxHealth,Infinity],average:[.5*e.maxHealth,.75*e.maxHealth],bad:[-Infinity,.5*e.maxHealth]},value:e.health,maxValue:e.maxHealth})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:e.cell&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*e.cellMaxCharge,Infinity],average:[.5*e.cellMaxCharge,.75*e.cellMaxCharge],bad:[-Infinity,.5*e.cellMaxCharge]},value:e.cellCharge,maxValue:e.cellMaxCharge})||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No Cell Installed"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Air Tank",children:[e.airtank,"kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pilot",children:e.pilot||"Unoccupied"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,i.toTitleCase)(e.location)||"Unknown"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Active Equipment",children:e.active||"None"}),e.cargoMax&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cargo Space",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*e.cargoMax,Infinity],average:[.5*e.cargoMax,.75*e.cargoMax],good:[-Infinity,.5*e.cargoMax]},value:e.cargoUsed,maxValue:e.cargoMax})})||null]})},e.name)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No mecha beacons found."})]})})}},17888:function(e,n,t){"use strict";n.__esModule=!0,n.Medbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Medbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.beaker,m=l.beaker_total,p=l.beaker_max,C=l.locked,h=l.heal_threshold,N=l.heal_threshold_max,V=l.injection_amount_min,b=l.injection_amount,f=l.injection_amount_max,g=l.use_beaker,v=l.declare_treatment,k=l.vocal;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Medical Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Beaker",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!u,icon:"eject",onClick:function(){return i("eject")},children:"Eject"}),children:u&&(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:p,children:[m," / ",p]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No beaker loaded."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:C?"good":"bad",children:C?"Locked":"Unlocked"})]})}),!C&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavioral Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Healing Threshold",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:0,maxValue:N,value:h,onDrag:function(e,n){return i("adj_threshold",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Injection Amount",children:(0,o.createComponentVNode)(2,c.NumberInput,{fluid:!0,minValue:V,maxValue:f,value:b,onDrag:function(e,n){return i("adj_inject",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Reagent Source",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:g?"toggle-on":"toggle-off",selected:g,onClick:function(){return i("use_beaker")},children:g?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Treatment Report",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return i("declaretreatment")},children:v?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speaker",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:k?"toggle-on":"toggle-off",selected:k,onClick:function(){return i("togglevoice")},children:k?"On":"Off"})})]})})||null]})})}},37610:function(e,n,t){"use strict";n.__esModule=!0,n.MedicalRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.MedicalRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N?t=(0,o.createComponentVNode)(2,C):5===N?t=(0,o.createComponentVNode)(2,V):6===N&&(t=(0,o.createComponentVNode)(2,b)),(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,f),(0,o.createComponentVNode)(2,c.Section,{height:"calc(100% - 5rem)",flexGrow:"1",children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:800,height:380,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",content:e.id+": "+e.name,onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.medical,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",level:2,mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Medical Data",level:2,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",level:2,children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n).data.general;return t&&t.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"left",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:t.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Box,{width:"50%",float:"right",textAlign:"right",children:!!t.has_photos&&t.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)}))})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.medical;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",level:2,children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Medical records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.virus;return i.sort((function(e,n){return e.name>n.name?1:-1})),i.map((function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"flask",content:e.name,mb:"0.5rem",onClick:function(){return a("vir",{vir:e.D})}}),(0,o.createVNode)(1,"br")],4,n)}))},b=function(e,n){var t=(0,r.useBackend)(n).data.medbots;return 0===t.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"There are no Medbots."}):t.map((function(e,n){return(0,o.createComponentVNode)(2,c.Collapsible,{open:!0,title:e.name,children:(0,o.createComponentVNode)(2,c.Box,{px:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:[e.area||"Unknown"," (",e.x,", ",e.y,")"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:e.on?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Online"}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:e.use_beaker?"Reservoir: "+e.total_volume+"/"+e.maximum_volume:"Using internal synthesizer."})],4):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Offline"})})]})})},n)}))},f=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,onClick:function(){return a("screen",{screen:2})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"list"}),"List Records"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:5===i,onClick:function(){return a("screen",{screen:5})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"database"}),"Virus Database"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:6===i,onClick:function(){return a("screen",{screen:6})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"plus-square"}),"Medbot Tracking"]}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:3===i,onClick:function(){return a("screen",{screen:3})},children:[(0,o.createComponentVNode)(2,c.Icon,{name:"wrench"}),"Record Maintenance"]})]})};(0,a.modalRegisterBodyOverride)("virus",(function(e,n){var t=(0,r.useBackend)(n).act,a=e.args;return(0,o.createComponentVNode)(2,c.Section,{level:2,m:"-1rem",title:a.name||"Virus",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"times",color:"red",onClick:function(){return t("modal_close")}}),children:(0,o.createComponentVNode)(2,c.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Spread",children:[a.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Possible cure",children:a.antigen}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rate of Progression",children:a.rate}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Antibiotic Resistance",children:[a.resistance,"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species Affected",children:a.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:a.symptoms.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0",(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]},e.stage)}))})})]})})})}))},287:function(e,n,t){"use strict";n.__esModule=!0,n.MessageMonitor=void 0;var o=t(39812),r=(t(41860),t(2497)),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d=t(67861);n.MessageMonitor=function(e,n){var t,r=(0,c.useBackend)(n),d=(r.act,r.data),p=d.auth,C=d.linkedServer,h=(d.message,d.hacking),N=d.emag;return t=h||N?(0,o.createComponentVNode)(2,s):p?C?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"}):(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,i.Window,{width:670,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice),t]})})};var s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.isMalfAI);return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"ERROR",children:r?(0,o.createComponentVNode)(2,a.Box,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,o.createComponentVNode)(2,a.Box,{children:["01000010011100100111010101110100011001010010110",(0,o.createVNode)(1,"br"),"10110011001101111011100100110001101101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001100110011011110111001000100000011100110110010",(0,o.createVNode)(1,"br"),"10111001001110110011001010111001000100000011010110110010",(0,o.createVNode)(1,"br"),"10111100100101110001000000100100101110100001000000111011",(0,o.createVNode)(1,"br"),"10110100101101100011011000010000001110100011000010110101",(0,o.createVNode)(1,"br"),"10110010100100000001100100011000000100000011100110110010",(0,o.createVNode)(1,"br"),"10110001101101111011011100110010001110011001000000110011",(0,o.createVNode)(1,"br"),"00110111101110010001000000110010101110110011001010111001",(0,o.createVNode)(1,"br"),"00111100100100000011000110110100001100001011100100110000",(0,o.createVNode)(1,"br"),"10110001101110100011001010111001000100000011101000110100",(0,o.createVNode)(1,"br"),"00110000101110100001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00111000001100001011100110111001101110111011011110111001",(0,o.createVNode)(1,"br"),"00110010000100000011010000110000101110011001011100010000",(0,o.createVNode)(1,"br"),"00100100101101110001000000111010001101000011001010010000",(0,o.createVNode)(1,"br"),"00110110101100101011000010110111001110100011010010110110",(0,o.createVNode)(1,"br"),"10110010100101100001000000111010001101000011010010111001",(0,o.createVNode)(1,"br"),"10010000001100011011011110110111001110011011011110110110",(0,o.createVNode)(1,"br"),"00110010100100000011000110110000101101110001000000111001",(0,o.createVNode)(1,"br"),"00110010101110110011001010110000101101100001000000111100",(0,o.createVNode)(1,"br"),"10110111101110101011100100010000001110100011100100111010",(0,o.createVNode)(1,"br"),"10110010100100000011010010110111001110100011001010110111",(0,o.createVNode)(1,"br"),"00111010001101001011011110110111001110011001000000110100",(0,o.createVNode)(1,"br"),"10110011000100000011110010110111101110101001000000110110",(0,o.createVNode)(1,"br"),"00110010101110100001000000111001101101111011011010110010",(0,o.createVNode)(1,"br"),"10110111101101110011001010010000001100001011000110110001",(0,o.createVNode)(1,"br"),"10110010101110011011100110010000001101001011101000010111",(0,o.createVNode)(1,"br"),"00010000001001101011000010110101101100101001000000111001",(0,o.createVNode)(1,"br"),"10111010101110010011001010010000001101110011011110010000",(0,o.createVNode)(1,"br"),"00110100001110101011011010110000101101110011100110010000",(0,o.createVNode)(1,"br"),"00110010101101110011101000110010101110010001000000111010",(0,o.createVNode)(1,"br"),"00110100001100101001000000111001001101111011011110110110",(0,o.createVNode)(1,"br"),"10010000001100100011101010111001001101001011011100110011",(0,o.createVNode)(1,"br"),"10010000001110100011010000110000101110100001000000111010",(0,o.createVNode)(1,"br"),"001101001011011010110010100101110"]})})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isMalfAI;return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:["Decryption Key:",(0,o.createComponentVNode)(2,a.Input,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(e,n){return r("auth",{key:n})}})]}),!!i&&(0,o.createComponentVNode)(2,a.Button,{icon:"terminal",content:"Hack",onClick:function(){return r("hack")}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},m=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.linkedServer,d=(0,c.useLocalState)(n,"tabIndex",0),s=d[0],u=d[1];return 0===s?t=(0,o.createComponentVNode)(2,p):1===s?t=(0,o.createComponentVNode)(2,C,{logs:l.pda_msgs,pda:!0}):2===s?t=(0,o.createComponentVNode)(2,C,{logs:l.rc_msgs,rc:!0}):3===s?t=(0,o.createComponentVNode)(2,h):4===s&&(t=(0,o.createComponentVNode)(2,N)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bars"})," Main Menu"]},"Main"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"font"})," Message Logs"]},"MessageLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return u(3)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:4===s,onClick:function(){return u(4)},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,o.createComponentVNode)(2,a.Tabs.Tab,{color:"red",onClick:function(){return i("deauth")},children:[(0,o.createComponentVNode)(2,a.Icon,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,o.createComponentVNode)(2,a.Box,{m:2,children:t})],4)},p=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"link",content:"Server Link",onClick:function(){return r("find")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:"Server "+(i.active?"Enabled":"Disabled"),selected:i.active,onClick:function(){return r("active")}})],4),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Server Status",children:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Good"})})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return r("pass")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},C=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.logs),d=e.pda,s=e.rc;return(0,o.createComponentVNode)(2,a.Section,{title:d?"PDA Logs":s?"Request Logs":"Logs",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i(d?"del_pda":"del_rc")}}),children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,a.Section,{title:e.sender+" -> "+e.recipient,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.ref,type:s?"rc":"pda"})}}),children:s?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",children:e.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Verification",color:"Unauthenticated"===e.id_auth?"bad":"good",children:(0,r.decodeHtmlEntities)(e.id_auth)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamp",children:e.stamp})]}):e.message})},e.ref)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.possibleRecipients,d=i.customsender,s=i.customrecepient,u=i.customjob,m=i.custommessage,p=Object.keys(l);return(0,o.createComponentVNode)(2,a.Section,{title:"Admin Messaging",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:d,onChange:function(e,n){return r("set_sender",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sender's Job",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:u,onChange:function(e,n){return r("set_sender_job",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Recipient",children:(0,o.createComponentVNode)(2,a.Dropdown,{value:s,options:p,width:"100%",mb:-.7,onSelected:function(e){return r("set_recipient",{val:l[e]})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,mb:.5,value:m,onChange:function(e,n){return r("set_message",{val:n})}})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return r("send_message")}})]})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.linkedServer;return(0,o.createComponentVNode)(2,a.Section,{title:"Spam Filtering",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:i.spamFilter.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.index,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return r("deltoken",{deltoken:e.index})}}),children:e.token},e.index)}))}),(0,o.createComponentVNode)(2,a.Button,{icon:"plus",content:"Add New Entry",onClick:function(){return r("addtoken")}})]})}},75412:function(e,n,t){"use strict";n.__esModule=!0,n.Microwave=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Microwave=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.config,d=t.data,s=d.broken,u=d.operating,m=d.dirty,p=d.items;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"good",children:["Microwaving in progress!",(0,o.createVNode)(1,"br"),"Please wait...!"]})})||m&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["This microwave is dirty!",(0,o.createVNode)(1,"br"),"Please clean it before use!"]})})||p.length&&(0,o.createComponentVNode)(2,c.Section,{level:1,title:"Ingredients",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"radiation",onClick:function(){return i("cook")},children:"Microwave"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return i("dispose")},children:"Eject"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.amt," ",e.extra]},e.name)}))})})||(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[l.title," is empty."]})})})})}},35016:function(e,n,t){"use strict";n.__esModule=!0,n.MiningOreProcessingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=(t(64499),t(21526));n.MiningOreProcessingConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.unclaimedPoints,u=(d.ores,d.showAllOres,d.power),p=d.speed;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",mr:1,onClick:function(){return r("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"bolt",selected:p,onClick:function(){return r("speed_toggle")},children:p?"High-Speed Active":"High-Speed Inactive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,onClick:function(){return r("power")},children:u?"Smelting":"Not Smelting"})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:s<1,icon:"download",onClick:function(){return r("claim")},children:"Claim"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:s})})})}),(0,o.createComponentVNode)(2,m)]})})};var d=["Not Processing","Smelting","Compressing","Alloying"],s=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],u=function(e,n){return-1===s.indexOf(e.ore)||-1===s.indexOf(n.ore)?e.ore-n.ore:s.indexOf(n.ore)-s.indexOf(e.ore)},m=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.ores,m=l.showAllOres;l.power;return(0,o.createComponentVNode)(2,a.Section,{title:"Ore Processing Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("showAllOres")},children:m?"All Ores":"Ores in Machine"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:s.length&&s.sort(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createComponentVNode)(2,a.Dropdown,{width:"120px",color:(0===e.processing?"red":1===e.processing&&"green")||2===e.processing&&"blue"||3===e.processing&&"yellow",options:d,selected:d[e.processing],onSelected:function(n){return i("toggleSmelting",{ore:e.ore,set:d.indexOf(n)})}}),children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amount})})},e.ore)}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},87314:function(e,n,t){"use strict";n.__esModule=!0,n.MiningStackingConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952);t(64499);n.MiningStackingConsole=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.stacktypes,u=d.stackingAmt;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Stacker Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stacking",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(e,n){return l("change_stack",{amt:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),s.length&&s.sort().map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.type),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return l("release_stack",{stack:e.type})},children:"Eject"}),children:(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:e.amt})},e.type)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},62012:function(e,n,t){"use strict";n.__esModule=!0,n.MiningVendor=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(21526);var d={Alphabetical:function(e,n){return e-n},"By availability":function(e,n){return-(e.affordable-n.affordable)},"By price":function(e,n){return e.price-n.price}};n.MiningVendor=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,o.createComponentVNode)(2,l.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,s)]})})};var s=function(e,n){var t=(0,c.useBackend)(n),l=(t.act,t.data),s=l.has_id,u=l.id,p=l.items,C=(0,c.useLocalState)(n,"search",""),h=C[0],N=(C[1],(0,c.useLocalState)(n,"sort","Alphabetical")),V=N[0],b=(N[1],(0,c.useLocalState)(n,"descending",!1)),f=b[0],g=(b[1],(0,r.createSearch)(h,(function(e){return e[0]}))),v=!1,k=Object.entries(p).map((function(e,n){var t=Object.entries(e[1]).filter(g).map((function(e){return e[1].affordable=s&&u.points>=e[1].price,e[1]})).sort(d[V]);if(0!==t.length)return f&&(t=t.reverse()),v=!0,(0,o.createComponentVNode)(2,m,{title:e[0],items:t},e[0])}));return(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",overflow:"auto",children:(0,o.createComponentVNode)(2,a.Section,{onClick:function(e){return(0,i.refocusLayout)()},children:v?k:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(e,n){var t=(0,c.useLocalState)(n,"search",""),r=(t[0],t[1]),i=(0,c.useLocalState)(n,"sort",""),l=(i[0],i[1]),s=(0,c.useLocalState)(n,"descending",!1),u=s[0],m=s[1];return(0,o.createComponentVNode)(2,a.Box,{mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex,{width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,o.createComponentVNode)(2,a.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(e,n){return r(n)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"30%",children:(0,o.createComponentVNode)(2,a.Dropdown,{selected:"Alphabetical",options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(e){return l(e)}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"arrow-down":"arrow-up",height:"19px",tooltip:u?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m(!u)}})})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=e.title,d=e.items,s=function(e,n){if(null==e)return{};var t,o,r={},c=Object.keys(e);for(o=0;o=0||(r[t]=e[t]);return r}(e,["title","items"]);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Collapsible,Object.assign({open:!0,title:l},s,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:e.name}),(0,o.createComponentVNode)(2,a.Button,{disabled:!i.has_id||i.id.points=450?"Overcharged":e>=250?"Good Charge":"Low Charge":e>=250?"NIF Power Requirement met.":e>=150?"Fluctuations in available power.":"Power failure imminent."},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.config,t.data),s=i.nif_percent,u=i.nif_stat,m=(i.last_notification,i.nutrition),p=i.isSynthetic,C=i.modules,h=e.setViewing;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Condition",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:s,minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,0]},children:[l(u,s)," (",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:s}),"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Power",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,minValue:0,maxValue:700,ranges:{good:[250,Infinity],average:[150,250],bad:[0,150]},children:d(m,p)})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:C.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return a("uninstall",{module:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return h(e)},tooltip:"View Information",tooltipPosition:"left"})],4),children:e.activates&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,selected:e.active,content:e.stat_text,onClick:function(){return a("toggle_module",{module:e.ref})}})||(0,o.createComponentVNode)(2,c.Box,{children:e.stat_text})},e.ref)}))})})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.theme;return(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",placeholder:"Default",selected:l,options:i,onSelected:function(e){return a("setTheme",{theme:e})}})})})}},79630:function(e,n,t){"use strict";n.__esModule=!0,n.NTNetRelay=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(67861);n.NTNetRelay=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.dos_crashed,s=(c.enabled,c.dos_overload,c.dos_capacity,(0,o.createComponentVNode)(2,l));return i&&(s=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.Window,{width:i?700:500,height:i?600:300,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:s})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.dos_crashed,i.enabled),d=i.dos_overload,s=i.dos_capacity;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:"Relay "+(l?"On":"Off"),onClick:function(){return a("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network Buffer Status",children:[d," / ",s," GQ"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return a("purge")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data;return(0,o.createComponentVNode)(2,i.FullscreenNotice,{title:"ERROR",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,o.createVNode)(1,"h2",null,"NETWORK BUFFERS OVERLOADED",16),(0,o.createVNode)(1,"h3",null,"Overload Recovery Mode",16),(0,o.createVNode)(1,"i",null,"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue.",16),(0,o.createVNode)(1,"h3",null,"ADMINISTRATIVE OVERRIDE",16),(0,o.createVNode)(1,"b",null," CAUTION - Data loss may occur ",16)]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return a("restart")}})})]})}},60042:function(e,n,t){"use strict";n.__esModule=!0,n.Newscaster=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=t(36355),d="Main Menu",s="New Channel",u="View List",m="New Story",p="Print",C="New Wanted",h="View Wanted",N="View Selected Channel";n.Newscaster=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.screen,r.user;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.TemporaryNotice,{decode:!0}),(0,o.createComponentVNode)(2,V)]})})};var V=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.user,(0,c.useSharedState)(n,"screen",d)),i=r[0],l=r[1],s=b[i];return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,s,{setScreen:l})})},b={"Main Menu":function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.securityCaster,l=r.wanted_issue,d=e.setScreen;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Main Menu",children:[l&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(h)},color:"bad",children:"Read WANTED Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",onClick:function(){return d(u)},children:"View Feed Channels"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(s)},children:"Create Feed Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(m)},children:"Create Feed Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"print",onClick:function(){return d(p)},children:"Print Newspaper"})]}),!!i&&(0,o.createComponentVNode)(2,a.Section,{title:"Feed Security Functions",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"plus",onClick:function(){return d(C)},children:'Manage "Wanted" Issue'})})],0)},"New Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.c_locked,m=l.user,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Channel",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Author",color:"good",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Accept Public Feeds",children:(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"lock-open",selected:!u,onClick:function(){return i("set_channel_lock")},children:u?"No":"Yes"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_new_channel")},children:"Submit Channel"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"View List":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.channels,s=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Station Feed Channels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return s(d)},children:"Back"}),children:l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"eye",color:e.admin?"good":e.censored?"bad":"",onClick:function(){i("show_channel",{show_channel:e.ref}),s(N)},children:(0,r.decodeHtmlEntities)(e.name)},e.name)}))})},"New Story":function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.channel_name,s=i.user,u=i.title,m=i.msg,p=i.photo_data,C=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Creating new Feed Message...",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return C(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Receiving Channel",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,onClick:function(){return r("set_channel_receiving")},children:l||"Unset"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Author",color:"good",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Title",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:u||"(no title yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message Body",verticalAlign:"top",children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Section,{width:"99%",inline:!0,children:m||"(no message yet)"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Button,{verticalAlign:"top",onClick:function(){return r("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return r("set_attachment")},children:p?"Photo Attached":"No Photo"})})]}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){return r("submit_new_message")},children:"Submit Message"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return C(d)},children:"Cancel"})]})},Print:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.total_num,s=i.active_num,u=i.message_num,m=i.paper_remaining,p=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Printing",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",l," Feed channels, ",s," of which are active, and a total of ",u," Feed stories."]}),(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Liquid Paper remaining",children:[100*m," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return r("print_paper")},children:"Print Paper"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return p(d)},children:"Cancel"})]})},"New Wanted":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,s=l.channel_name,u=l.msg,m=l.photo_data,p=l.user,C=l.wanted_issue,h=e.setScreen;return(0,o.createComponentVNode)(2,a.Section,{title:"Wanted Issue Handler",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return h(d)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[!!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal Name",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(s),onInput:function(e,n){return i("set_channel_name",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,o.createComponentVNode)(2,a.Input,{fluid:!0,value:(0,r.decodeHtmlEntities)(u),onInput:function(e,n){return i("set_wanted_desc",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Attach Photo",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"image",onClick:function(){return i("set_attachment")},children:m?"Photo Attached":"No Photo"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Prosecutor",color:"good",children:p})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return i("submit_wanted")},children:"Submit Wanted Issue"}),!!C&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){return i("cancel_wanted")},children:"Take Down Issue"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return h(d)},children:"Cancel"})]})},"View Wanted":function(e,n){var t=(0,c.useBackend)(n),i=(t.act,t.data.wanted_issue),l=e.setScreen;return i?(0,o.createComponentVNode)(2,a.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:(0,o.createComponentVNode)(2,a.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Submitted by",color:"good",children:(0,r.decodeHtmlEntities)(i.author)}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Criminal",children:(0,r.decodeHtmlEntities)(i.criminal)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Description",children:(0,r.decodeHtmlEntities)(i.desc)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Photo",children:i.img&&(0,o.createVNode)(1,"img",null,null,1,{src:i.img})||"None"})]})})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Outstanding Wanted Issues",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(d)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},"View Selected Channel":function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.viewing_channel,s=l.securityCaster,m=l.company,p=e.setScreen;return d?(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(d.name),buttons:(0,o.createFragment)([!!s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return i("toggle_d_notice",{ref:d.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"})],0),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Channel Created By",children:s&&(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,r.decodeHtmlEntities)(d.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return i("censor_channel_author",{ref:d.ref})}})||(0,o.createComponentVNode)(2,a.Box,{children:(0,r.decodeHtmlEntities)(d.author)})})}),!!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",m," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!d.messages.length&&d.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[Story by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.timestamp,"]"]}),!!s&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return i("censor_channel_story_body",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return i("censor_channel_story_author",{ref:e.ref})}})],4)]},e.ref)}))||!d.censored&&(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No feed messages found in channel."})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Channel Not Found",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return p(u)},children:"Back"}),children:"The channel you were looking for no longer exists."})}}},31669:function(e,n,t){"use strict";n.__esModule=!0,n.NoticeBoard=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.NoticeBoard=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.notices;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:300,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:l.length?(0,o.createComponentVNode)(2,c.LabeledList,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,children:[e.isphoto&&(0,o.createComponentVNode)(2,c.Button,{icon:"image",content:"Look",onClick:function(){return i("look",{ref:e.ref})}})||e.ispaper&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"sticky-note",content:"Read",onClick:function(){return i("read",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Write",onClick:function(){return i("write",{ref:e.ref})}})],4)||"Unknown Entity",(0,o.createComponentVNode)(2,c.Button,{icon:"minus-circle",content:"Remove",onClick:function(){return i("remove",{ref:e.ref})}})]},n)}))}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No notices posted here."})})})})}},63231:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAccessDecrypter=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(76952),i=t(74814);n.NtosAccessDecrypter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.message,u=d.running,m=d.rate,p=d.factor,C=d.regions,h=function(e){for(var n="";n.lengthp?n+="0":n+="1";return n};return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{children:s&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:s})||u&&(0,o.createComponentVNode)(2,i.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate: ",m," PHash/s",(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Box,{children:h(45)}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"ban",onClick:function(){return l("PRG_reset")},children:"Abort"})]})||(0,o.createComponentVNode)(2,i.Section,{title:"Pick access code to decrypt",children:C.length&&(0,o.createComponentVNode)(2,a.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,o.createComponentVNode)(2,i.Box,{children:"Please insert ID card."})})})})}},79760:function(e,n,t){"use strict";n.__esModule=!0,n.NtosArcade=void 0;var o=t(39812),r=t(5908),c=t(71494),a=t(74814),i=t(85952);n.NtosArcade=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data;return(0,o.createComponentVNode)(2,i.NtosWindow,{width:450,height:350,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:2,children:[(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,Infinity],good:[20,31],average:[10,20],bad:[-Infinity,10]},children:[d.PlayerHitpoints,"HP"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Player Magic",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,Infinity],violet:[3,11],bad:[-Infinity,3]},children:[d.PlayerMP,"MP"]})})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Section,{backgroundColor:1===d.PauseState?"#1b3622":"#471915",children:d.Status})]}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:[(0,o.createComponentVNode)(2,a.ProgressBar,{value:d.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,Infinity],average:[5,30],bad:[-Infinity,5]},children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:d.Hitpoints}),"HP"]}),(0,o.createComponentVNode)(2,a.Box,{m:1}),(0,o.createComponentVNode)(2,a.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,o.createVNode)(1,"img",null,null,1,{src:(0,r.resolveAsset)(d.BossID)})})]})]}),(0,o.createComponentVNode)(2,a.Box,{my:1,mx:4}),(0,o.createComponentVNode)(2,a.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Attack")},content:"Attack!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Heal")},content:"Heal!"}),(0,o.createComponentVNode)(2,a.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:0===d.GameActive||1===d.PauseState,onClick:function(){return l("Recharge_Power")},content:"Recharge!"})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Start_Game")},content:"Begin Game"}),(0,o.createComponentVNode)(2,a.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:1===d.GameActive,onClick:function(){return l("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,o.createComponentVNode)(2,a.Box,{color:d.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",d.TicketCount]})]})})})}},97908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosAtmosControl=void 0;var o=t(39812),r=t(85952),c=t(46566);n.NtosAtmosControl=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.AtmosControlContent)})})}},63645:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCameraConsole=void 0;var o=t(39812),r=t(85952),c=t(3180);n.NtosCameraConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CameraConsoleContent)})})}},74093:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCommunicationsConsole=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(130);n.NtosCommunicationsConsole=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.CommunicationsConsoleContent)})})}},55513:function(e,n,t){"use strict";n.__esModule=!0,n.NtosConfiguration=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosConfiguration=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.power_usage,u=l.battery_exists,m=l.battery,p=void 0===m?{}:m,C=l.disk_size,h=l.disk_used,N=l.hardware,V=void 0===N?[]:N;return(0,o.createComponentVNode)(2,a.NtosWindow,{theme:d,width:520,height:630,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Power Supply",buttons:(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",s,"W"]}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,o.createComponentVNode)(2,c.ProgressBar,{value:p.charge,minValue:0,maxValue:p.max,ranges:{good:[p.max/2,Infinity],average:[p.max/4,p.max/2],bad:[-Infinity,p.max/4]},children:[p.charge," / ",p.max]}):"Not Available"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"File System",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:C,color:"good",children:[h," GQ / ",C," GQ"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Hardware Components",children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createFragment)([!e.critical&&(0,o.createComponentVNode)(2,c.Button.Checkbox,{content:"Enabled",checked:e.enabled,mr:1,onClick:function(){return i("PC_toggle_component",{name:e.name})}}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",e.powerusage,"W"]})],0),children:e.desc},e.name)}))})]})})}},17539:function(e,n,t){"use strict";n.__esModule=!0,n.NtosCrewMonitor=void 0;var o=t(39812),r=t(85952),c=t(96158);n.NtosCrewMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:800,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.CrewMonitorContent)})})}},20025:function(e,n,t){"use strict";n.__esModule=!0,n.NtosDigitalWarrant=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(64499);n.NtosDigitalWarrant=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=(c.warrantname,c.warrantcharges,c.warrantauth),d=(c.type,c.allwarrants,(0,o.createComponentVNode)(2,l));return i&&(d=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:500,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:d})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act;t.data.allwarrants;return(0,o.createComponentVNode)(2,c.Section,{title:"Warrants",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"plus",fluid:!0,onClick:function(){return a("addwarrant")},children:"Create New Warrant"}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Arrest Warrants",children:(0,o.createComponentVNode)(2,d,{type:"arrest"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Search Warrants",children:(0,o.createComponentVNode)(2,d,{type:"search"})})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=e.type,s=l.allwarrants,u=(0,i.filter)((function(e){return e.arrestsearch===d}))(s);return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Name":"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"arrest"===d?"Charges":"Reason"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Authorized By"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Edit"})]}),u.length&&u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.warrantname}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.charges}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.auth}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrant",{id:e.id})}})})]},e.id)}))||(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{colspan:"3",color:"bad",children:["No ",d," warrants found."]})})]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.warrantname,d=i.warrantcharges,s=i.warrantauth,u=i.type,m="arrest"===u,p="arrest"===u?"Name":"Location",C="arrest"===u?"Charges":"Reason";return(0,o.createComponentVNode)(2,c.Section,{title:m?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("savewarrant")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("deletewarrant")},children:"Delete"}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:p,buttons:m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",onClick:function(){return a("editwarrantname")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantnamecustom")}}),children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:C,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("editwarrantcharges")}}),children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Authorized By",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"balance-scale",onClick:function(){return a("editwarrantauth")}}),children:s})]})})}},11325:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailAdministration=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(77006);n.NtosEmailAdministration=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.error,m=c.cur_title,p=c.current_account,C=(0,o.createComponentVNode)(2,l);return i?C=(0,o.createComponentVNode)(2,d):m?C=(0,o.createComponentVNode)(2,s):p&&(C=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:C})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,o.createComponentVNode)(2,c.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"plus",onClick:function(){return a("newaccount")},children:"Create New Account"}),(0,o.createComponentVNode)(2,c.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eye",onClick:function(){return a("viewaccount",{viewaccount:e.uid})},children:e.login},e.uid)}))]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Message",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:i})},s=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i.NtosEmailClientViewMessage,{administrator:!0})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.error,i.msg_title,i.msg_body,i.msg_timestamp,i.msg_source,i.current_account),d=i.cur_suspended,s=i.messages;i.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing "+l+" in admin mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("back")},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Account Status",children:(0,o.createComponentVNode)(2,c.Button,{color:d?"bad":"",icon:"ban",tooltip:(d?"Uns":"S")+"uspend Account?",onClick:function(){return a("ban")},children:d?"Suspended":"Normal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,c.Button,{icon:"key",onClick:function(){return a("changepass")},children:"Change Password"})})]}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Messages",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received at"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("viewmail",{viewmail:e.uid})},children:"View"})})]},e.uid)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No messages found in selected account."})})]})}},77006:function(e,n,t){"use strict";n.__esModule=!0,n.NtosEmailClientViewMessage=n.NtosEmailClient=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.NtosEmailClient=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),i=c.PC_device_theme,s=c.error,u=c.downloading,m=c.current_account,p=(0,o.createComponentVNode)(2,h);return s?p=(0,o.createComponentVNode)(2,C,{error:s}):u?p=(0,o.createComponentVNode)(2,l):m&&(p=(0,o.createComponentVNode)(2,d)),(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:i,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:p})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),l=a.down_filename,d=a.down_progress,s=a.down_size,u=a.down_speed;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"File",children:[l," (",s," GQ)"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:d,maxValue:s,children:[d,"/",s," (",(0,i.round)(d/s*100,1),"%)"]})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.current_account,d=i.addressbook,C=i.new_message,h=i.cur_title,N=(0,o.createComponentVNode)(2,s);return d?N=(0,o.createComponentVNode)(2,m):C?N=(0,o.createComponentVNode)(2,p):h&&(N=(0,o.createComponentVNode)(2,u)),(0,o.createComponentVNode)(2,c.Section,{title:"Logged in as: "+l,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return a("new_message")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return a("changepassword")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return a("logout")}})],4),children:N})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.folder),d=i.messagecount,s=i.messages;return(0,o.createComponentVNode)(2,c.Section,{level:2,noTopPadding:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Inbox"===l,onClick:function(){return a("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Spam"===l,onClick:function(){return a("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:"Deleted"===l,onClick:function(){return a("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),d&&(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Source"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Title"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Received At"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.source}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.title}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.timestamp}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return a("view",{view:e.uid})},tooltip:"View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("reply",{reply:e.uid})},tooltip:"Reply"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",onClick:function(){return a("delete",{"delete":e.uid})},tooltip:"Delete"})]})]},e.timestamp+e.title)}))]})})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["No emails found in ",l,"."]})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.administrator,d=i.cur_title,s=i.cur_source,u=i.cur_timestamp,m=i.cur_body,p=i.cur_hasattachment,C=i.cur_attachment_filename,h=i.cur_attachment_size,N=i.cur_uid;return(0,o.createComponentVNode)(2,c.Section,{title:d,buttons:l?(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("back")}}):(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return a("reply",{reply:N})}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return a("delete",{"delete":N})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return a("save",{save:N})}}),p&&(0,o.createComponentVNode)(2,c.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return a("downloadattachment")}})||null,(0,o.createComponentVNode)(2,c.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return a("cancel",{cancel:N})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"From",children:s}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"At",children:u}),p&&!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",color:"average",children:[C," (",h,"GQ)"]})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:m}})})})]})})};n.NtosEmailClientViewMessage=u;var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.accounts;return(0,o.createComponentVNode)(2,c.Section,{title:"Address Book",level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("set_recipient",{set_recipient:null})}}),children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.login,fluid:!0,onClick:function(){return a("set_recipient",{set_recipient:e.login})}},e.login)}))})},p=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.current_account,i.msg_title),d=i.msg_recipient,s=i.msg_body,u=i.msg_hasattachment,m=i.msg_attachment_filename,p=i.msg_attachment_size;return(0,o.createComponentVNode)(2,c.Section,{title:"New Message",level:2,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"share",onClick:function(){return a("send")},children:"Send Message"}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("cancel")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Title",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_title",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_recipient",{val:n})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"address-book",onClick:function(){return a("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachments",buttons:u&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return a("remove_attachment")},children:"Remove Attachment"})||(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return a("addattachment")},children:"Add Attachment"}),children:u&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[m," (",p,"GQ)"]})||null}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Section,{width:"99%",inline:!0,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:s}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{verticalAlign:"top",onClick:function(){return a("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},C=function(e,n){var t=(0,r.useBackend)(n).act,a=e.error;return(0,o.createComponentVNode)(2,c.Section,{title:"Notification",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return",onClick:function(){return t("reset")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:a})})},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.stored_login,d=i.stored_password;return(0,o.createComponentVNode)(2,c.Section,{title:"Please Log In",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Email address",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:l,onInput:function(e,n){return a("edit_login",{val:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Password",children:(0,o.createComponentVNode)(2,c.Input,{fluid:!0,value:d,onInput:function(e,n){return a("edit_password",{val:n})}})})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",onClick:function(){return a("login")},children:"Log In"})]})}},86441:function(e,n,t){"use strict";n.__esModule=!0,n.NtosFileManager=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);t(2497);n.NtosFileManager=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.PC_device_theme,u=d.usbconnected,m=d.filename,p=d.filedata,C=d.error,h=d.files,N=void 0===h?[]:h,V=d.usbfiles,b=void 0===V?[]:V;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:s,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(m||C)&&(0,o.createComponentVNode)(2,c.Section,{title:"Viewing File "+m,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"Edit",onClick:function(){return l("PRG_edit")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"print",content:"Print",onClick:function(){return l("PRG_printfile")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Close",onClick:function(){return l("PRG_closefile")}})],4),children:[C||null,p&&(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p}})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,i,{files:N,usbconnected:u,onUpload:function(e){return l("PRG_copytousb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onOpen:function(e){return l("PRG_openfile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})}),u&&(0,o.createComponentVNode)(2,c.Section,{title:"Data Disk",children:(0,o.createComponentVNode)(2,i,{usbmode:!0,files:b,usbconnected:u,onUpload:function(e){return l("PRG_copyfromusb",{name:e})},onDelete:function(e){return l("PRG_deletefile",{name:e})},onRename:function(e,n){return l("PRG_rename",{name:e,new_name:n})},onDuplicate:function(e){return l("PRG_clone",{file:e})}})})||null,(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("PRG_newtextfile")},children:"New Text File"})})],0)})})};var i=function(e){var n=e.files,t=void 0===n?[]:n,r=e.usbconnected,a=e.usbmode,i=e.onUpload,l=e.onDelete,d=e.onRename,s=e.onOpen;return(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"File"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Type"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:"Size"})]}),t.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{className:"candystripe",children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.undeletable?e.name:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{width:"80%",content:e.name,currentValue:e.name,tooltip:"Rename",onCommit:function(n,t){return d(e.name,t)}}),(0,o.createComponentVNode)(2,c.Button,{content:"Open",onClick:function(){return s(e.name)}})],4)}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.type}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:!e.undeletable&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return l(e.name)}}),!!r&&(a?(0,o.createComponentVNode)(2,c.Button,{icon:"download",tooltip:"Download",onClick:function(){return i(e.name)}}):(0,o.createComponentVNode)(2,c.Button,{icon:"upload",tooltip:"Upload",onClick:function(){return i(e.name)}}))],0)})]},e.name)}))]})}},87369:function(e,n,t){"use strict";n.__esModule=!0,n.NtosIdentificationComputer=void 0;var o=t(39812),r=(t(64499),t(71494)),c=(t(74814),t(85952)),a=(t(2497),t(76270),t(76952));n.NtosIdentificationComputer=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.NtosWindow,{width:600,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.IdentificationComputerContent,{ntos:!0})})})}},59543:function(e,n,t){"use strict";n.__esModule=!0,n.NtosMain=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"};n.NtosMain=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.device_theme,u=d.programs,m=void 0===u?[]:u,p=d.has_light,C=d.light_on,h=d.comp_light_color,N=d.removable_media,V=void 0===N?[]:N,b=d.login,f=void 0===b?[]:b;return(0,o.createComponentVNode)(2,a.NtosWindow,{title:"syndicate"===s?"Syndix Main Menu":"NtOS Main Menu",theme:s,width:400,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!p&&(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Button,{width:"144px",icon:"lightbulb",selected:C,onClick:function(){return l("PC_toggle_light")},children:["Flashlight: ",C?"ON":"OFF"]}),(0,o.createComponentVNode)(2,c.Button,{ml:1,onClick:function(){return l("PC_light_color")},children:["Color:",(0,o.createComponentVNode)(2,c.ColorBox,{ml:1,color:h})]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"User Login",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",disabled:!f.IDName,onClick:function(){return l("PC_Eject_Disk",{name:"ID"})}}),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{children:["ID Name: ",f.IDName]}),(0,o.createComponentVNode)(2,c.Table.Row,{children:["Assignment: ",f.IDJob]})]})}),!!V.length&&(0,o.createComponentVNode)(2,c.Section,{title:"Media Eject",children:(0,o.createComponentVNode)(2,c.Table,{children:V.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:"eject",content:e,onClick:function(){return l("PC_Eject_Disk",{name:e})}})})},e)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Programs",children:(0,o.createComponentVNode)(2,c.Table,{children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",icon:i[e.name]||"window-maximize-o",content:e.desc,onClick:function(){return l("PC_runprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:!!e.running&&(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return l("PC_killprogram",{name:e.name})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,width:"18px",children:(0,o.createComponentVNode)(2,c.Button,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:e.autorun,onClick:function(){return l("PC_setautorun",{name:e.name})},children:"AR"})})]},e.name)}))})})]})})}},73883:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetChat=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetChat=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.can_admin,s=l.adminmode,u=l.authed,m=l.username,p=l.active_channel,C=l.is_operator,h=l.all_channels,N=void 0===h?[]:h,V=l.clients,b=void 0===V?[]:V,f=l.messages,g=void 0===f?[]:f,v=null!==p,k=u||s;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:900,height:675,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.Section,{height:"600px",children:(0,o.createComponentVNode)(2,c.Table,{height:"580px",children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:[(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(e,n){return i("PRG_newchannel",{new_channel_name:n})}}),N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:e.chan,selected:e.id===p,color:"transparent",onClick:function(){return i("PRG_joinchannel",{id:e.id})}},e.chan)}))]}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,mt:1,content:m+"...",currentValue:m,onCommit:function(e,n){return i("PRG_changename",{new_name:n})}}),!!d&&(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(s?"ON":"OFF"),color:s?"bad":"good",onClick:function(){return i("PRG_toggleadmin")}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[(0,o.createComponentVNode)(2,c.Box,{height:"560px",overflowY:"scroll",children:v&&(k?g.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.msg},e.msg)})):(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,o.createComponentVNode)(2,c.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(e,n){return i("PRG_speak",{message:n})}})]}),(0,o.createComponentVNode)(2,c.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,o.createComponentVNode)(2,c.Box,{height:"465px",overflowY:"scroll",children:b.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e.name},e.name)}))}),v&&k&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(e,n){return i("PRG_savelog",{log_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return i("PRG_leavechannel")}})],4),!!C&&u&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return i("PRG_deletechannel")}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(e,n){return i("PRG_renamechannel",{new_name:n})}}),(0,o.createComponentVNode)(2,c.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(e,n){return i("PRG_setpassword",{new_password:n})}})],4)]})]})})})})})}},83908:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDosContent=n.NtosNetDos=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetDos=function(e,n){return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.relays,d=void 0===l?[]:l,s=i.focus,u=i.target,m=i.speed,p=i.overload,C=i.capacity,h=i.error;if(h)return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.NoticeBox,{children:h}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return a("PRG_reset")}})],4);var N=function(e){for(var n="",t=p/C;n.lengtht?n+="0":n+="1";return n};return u?(0,o.createComponentVNode)(2,c.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{children:["CURRENT SPEED: ",m," GQ/s"]}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)}),(0,o.createComponentVNode)(2,c.Box,{children:N(45)})]}):(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.id,selected:s===e.id,onClick:function(){return a("PRG_target_relay",{targid:e.id})}},e.id)}))})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!s,mt:1,onClick:function(){return a("PRG_execute")}})]})};n.NtosNetDosContent=i},83305:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetDownloader=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.NtosNetDownloader=function(e,n){var t=(0,c.useBackend)(n),r=t.act,d=t.data,s=d.PC_device_theme,u=d.disk_size,m=d.disk_used,p=d.downloadable_programs,C=void 0===p?[]:p,h=d.error,N=d.hacked_programs,V=void 0===N?[]:N,b=d.hackedavailable;return(0,o.createComponentVNode)(2,i.NtosWindow,{theme:s,width:480,height:735,resizable:!0,children:(0,o.createComponentVNode)(2,i.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:1,children:h}),(0,o.createComponentVNode)(2,a.Button,{content:"Reset",onClick:function(){return r("PRG_reseterror")}})]}),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk usage",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:m,minValue:0,maxValue:u,children:m+" GQ / "+u+" GQ"})})})}),(0,o.createComponentVNode)(2,a.Section,{children:C.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))}),!!b&&(0,o.createComponentVNode)(2,a.Section,{title:"UNKNOWN Software Repository",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),V.map((function(e){return(0,o.createComponentVNode)(2,l,{program:e},e.filename)}))]})]})})};var l=function(e,n){var t=e.program,i=(0,c.useBackend)(n),l=i.act,d=i.data,s=d.disk_size,u=d.disk_used,m=d.downloadcompletion,p=(d.downloading,d.downloadname),C=d.downloadsize,h=d.downloadspeed,N=d.downloads_queue,V=s-u;return(0,o.createComponentVNode)(2,a.Box,{mb:3,children:[(0,o.createComponentVNode)(2,a.Flex,{align:"baseline",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{bold:!0,grow:1,children:t.filedesc}),(0,o.createComponentVNode)(2,a.Flex.Item,{color:"label",nowrap:!0,children:[t.size," GQ"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:t.filename===p&&(0,o.createComponentVNode)(2,a.ProgressBar,{color:"green",minValue:0,maxValue:C,value:m,children:[(0,r.round)(m/C*100,1),"% (",h,"GQ/s)"]})||-1!==N.indexOf(t.filename)&&(0,o.createComponentVNode)(2,a.Button,{icon:"ban",color:"bad",onClick:function(){return l("PRG_removequeued",{filename:t.filename})},children:"Queued..."})||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",content:"Download",disabled:t.size>V,onClick:function(){return l("PRG_downloadfile",{filename:t.filename})}})})]}),"Compatible"!==t.compatibility&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),t.size>V&&(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,o.createComponentVNode)(2,a.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:t.fileinfo})]})}},6806:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetMonitor=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosNetMonitor=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.ntnetrelays,s=l.ntnetstatus,u=l.config_softwaredownload,m=l.config_peertopeer,p=l.config_communication,C=l.config_systemcontrol,h=l.idsalarm,N=l.idsstatus,V=l.ntnetmaxlogs,b=l.maxlogs,f=l.minlogs,g=l.banned_nids,v=l.ntnetlogs,k=void 0===v?[]:v;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,r.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,o.createComponentVNode)(2,r.Section,{title:"Wireless Connectivity",buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:s?"power-off":"times",content:s?"ENABLED":"DISABLED",selected:s,onClick:function(){return i("toggleWireless")}}),children:d?(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Active NTNet Relays",children:d})}):"No Relays Connected"}),(0,o.createComponentVNode)(2,r.Section,{title:"Firewall Configuration",children:(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Software Downloads",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return i("toggle_function",{id:"1"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:m?"power-off":"times",content:m?"ENABLED":"DISABLED",selected:m,onClick:function(){return i("toggle_function",{id:"2"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Communication Systems",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){return i("toggle_function",{id:"3"})}})}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Remote System Control",buttons:(0,o.createComponentVNode)(2,r.Button,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return i("toggle_function",{id:"4"})}})})]})}),(0,o.createComponentVNode)(2,r.Section,{title:"Security Systems",children:[!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,r.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,o.createComponentVNode)(2,r.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,o.createComponentVNode)(2,r.LabeledList,{children:[(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Banned NIDs",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:"ban",onClick:function(){return i("ban_nid")},children:"Ban NID"}),(0,o.createComponentVNode)(2,r.Button,{icon:"balance-scale",onClick:function(){return i("unban_nid")},children:"Unban NID"})],4),children:g.join(", ")||"None"}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"IDS Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,r.Button,{icon:N?"power-off":"times",content:N?"ENABLED":"DISABLED",selected:N,onClick:function(){return i("toggleIDS")}}),(0,o.createComponentVNode)(2,r.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return i("resetIDS")}})],4)}),(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Max Log Count",buttons:(0,o.createComponentVNode)(2,r.NumberInput,{value:V,minValue:f,maxValue:b,width:"39px",onChange:function(e,n){return i("updatemaxlogs",{new_number:n})}})})]}),(0,o.createComponentVNode)(2,r.Section,{title:"System Log",level:2,buttons:(0,o.createComponentVNode)(2,r.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return i("purgelogs")}}),children:k.map((function(e){return(0,o.createComponentVNode)(2,r.Box,{className:"candystripe",children:e.entry},e.entry)}))})]})]})})}},4363:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNetTransfer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosNetTransfer=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),m=c.error,p=c.downloading,C=c.uploading,h=c.upload_filelist,N=(0,o.createComponentVNode)(2,u);return m?N=(0,o.createComponentVNode)(2,i):p?N=(0,o.createComponentVNode)(2,l):C?N=(0,o.createComponentVNode)(2,d):h.length&&(N=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:N})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.error;return(0,o.createComponentVNode)(2,c.Section,{title:"An error has occured during operation.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Reset"}),children:["Additional Information: ",i]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.download_name,d=i.download_progress,s=i.download_size,u=i.download_netspeed;return(0,o.createComponentVNode)(2,c.Section,{title:"Download in progress",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloaded File",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:s,children:[d," / ",s," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Transfer Speed",children:[u," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Download"})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.upload_clients,d=i.upload_filename,s=i.upload_haspassword;return(0,o.createComponentVNode)(2,c.Section,{title:"Server enabled",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Clients Connected",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Provided file",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Server Password",children:s?"Enabled":"Disabled"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Commands",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",onClick:function(){return a("PRG_reset")},children:"Cancel Upload"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.upload_filelist;return(0,o.createComponentVNode)(2,c.Section,{title:"File transfer server ready.",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return a("PRG_reset")},children:"Cancel"}),children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"lock",onClick:function(){return a("PRG_setpassword")},children:"Set Password"}),(0,o.createComponentVNode)(2,c.Section,{title:"Pick file to serve.",level:2,children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"upload",onClick:function(){return a("PRG_uploadfile",{uid:e.uid})},children:[e.filename," (",e.size,"GQ)"]},e.uid)}))})]})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.servers;return(0,o.createComponentVNode)(2,c.Section,{title:"Available Files",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"upload",onClick:function(){return a("PRG_uploadmenu")},children:"Send File"}),children:i.length&&(0,o.createComponentVNode)(2,c.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.uid,children:[!!e.haspassword&&(0,o.createComponentVNode)(2,c.Icon,{name:"lock",mr:1}),e.filename,"\xa0 (",e.size,"GQ)\xa0",(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_downloadfile",{uid:e.uid})},children:"Download"})]},e.uid)}))})||(0,o.createComponentVNode)(2,c.Box,{children:"No upload servers found."})})}},23225:function(e,n,t){"use strict";n.__esModule=!0,n.NtosNewsBrowser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(5908);n.NtosNewsBrowser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,u=t.data,m=u.article,p=u.download,C=u.message,h=(0,o.createComponentVNode)(2,d);return m?h=(0,o.createComponentVNode)(2,l):p&&(h=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.NtosWindow,{width:575,height:750,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:[!!C&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:[C," ",(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return i("PRG_clearmessage")}})]}),h]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data.article;if(!l)return(0,o.createComponentVNode)(2,c.Section,{children:"Error: Article not found."});var d=l.title,s=l.cover,u=l.content;return(0,o.createComponentVNode)(2,c.Section,{title:"Viewing: "+d,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"save",onClick:function(){return a("PRG_savearticle")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{icon:"times",onClick:function(){return a("PRG_reset")},children:"Close"})],4),children:[!!s&&(0,o.createVNode)(1,"img",null,null,1,{src:(0,i.resolveAsset)(s)}),(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:u}})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.showing_archived,d=i.all_articles;return(0,o.createComponentVNode)(2,c.Section,{title:"Articles List",buttons:(0,o.createComponentVNode)(2,c.Button.Checkbox,{onClick:function(){return a("PRG_toggle_archived")},checked:l,children:"Show Archived"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"download",onClick:function(){return a("PRG_openarticle",{uid:e.uid})}}),children:[e.size," GQ"]},e.uid)}))||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.download,l=i.download_progress,d=i.download_maxprogress,s=i.download_rate;return(0,o.createComponentVNode)(2,c.Section,{title:"Downloading...",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",minValue:0,value:l,maxValue:d,children:[l," / ",d," GQ"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Download Speed",children:[s," GQ/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Controls",children:(0,o.createComponentVNode)(2,c.Button,{icon:"ban",fluid:!0,onClick:function(){return a("PRG_reset")},children:"Abort Download"})})]})})}},3839:function(e,n,t){"use strict";n.__esModule=!0,n.NtosOvermapNavigation=void 0;var o=t(39812),r=t(85952),c=t(12640);n.NtosOvermapNavigation=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.OvermapNavigationContent)})})}},54698:function(e,n,t){"use strict";n.__esModule=!0,n.NtosPowerMonitor=void 0;var o=t(39812),r=t(85952),c=t(89793);n.NtosPowerMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.PowerMonitorContent)})})}},17086:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRCON=void 0;var o=t(39812),r=t(85952),c=t(43996);n.NtosRCON=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.RCONContent)})})}},69480:function(e,n,t){"use strict";n.__esModule=!0,n.NtosRevelation=void 0;var o=t(39812),r=t(74814),c=t(71494),a=t(85952);n.NtosRevelation=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,r.Section,{children:[(0,o.createComponentVNode)(2,r.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(e,n){return i("PRG_obfuscate",{new_name:n})},mb:1}),(0,o.createComponentVNode)(2,r.LabeledList,{children:(0,o.createComponentVNode)(2,r.LabeledList.Item,{label:"Payload Status",buttons:(0,o.createComponentVNode)(2,r.Button,{content:l.armed?"ARMED":"DISARMED",color:l.armed?"bad":"average",onClick:function(){return i("PRG_arm")}})})}),(0,o.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!l.armed})]})})})}},93990:function(e,n,t){"use strict";n.__esModule=!0,n.NtosShutoffMonitor=void 0;var o=t(39812),r=t(85952),c=t(89957);n.NtosShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{children:(0,o.createComponentVNode)(2,c.ShutoffMonitorContent)})})}},76124:function(e,n,t){"use strict";n.__esModule=!0,n.NtosStationAlertConsole=void 0;var o=t(39812),r=t(85952),c=t(32015);n.NtosStationAlertConsole=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:315,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.StationAlertConsoleContent)})})}},22475:function(e,n,t){"use strict";n.__esModule=!0,n.NtosSupermatterMonitor=void 0;var o=t(39812),r=t(85952),c=t(6951);n.NtosSupermatterMonitor=function(){return(0,o.createComponentVNode)(2,r.NtosWindow,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,r.NtosWindow.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.SupermatterMonitorContent)})})}},66744:function(e,n,t){"use strict";n.__esModule=!0,n.NtosUAV=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosUAV=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current_uav,s=l.signal_strength,u=l.in_use,m=l.paired_uavs;return(0,o.createComponentVNode)(2,a.NtosWindow,{width:600,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Selected UAV",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"UAV",children:d&&d.status||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal",children:d&&s||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d.power,onClick:function(){return i("power_uav")},children:d.power?"Online":"Offline"})||"[Not Connected]"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Camera",children:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:u,disabled:!d.power,onClick:function(){return i("view_uav")},children:d.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Paired UAVs",children:m.length&&m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"quidditch",onClick:function(){return i("switch_uav",{switch_uav:e.uavref})},children:e.name})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"times",onClick:function(){return i("del_uav",{del_uav:e.uavref})}})})]},e.uavref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No UAVs Paired."})})]})})}},19458:function(e,n,t){"use strict";n.__esModule=!0,n.NtosWordProcessor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.NtosWordProcessor=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.PC_device_theme,s=l.error,u=l.browsing,m=l.files,p=(l.usbconnected,l.usbfiles,l.filename),C=l.filedata;return(0,o.createComponentVNode)(2,a.NtosWindow,{resizable:!0,theme:d,children:(0,o.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:[(0,o.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",s,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){return i("PRG_backtomenu")}})]})||u&&(0,o.createComponentVNode)(2,c.Section,{title:"File Browser",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){return i("PRG_closebrowser")}}),children:(0,o.createComponentVNode)(2,c.Section,{title:"Available documents (local)",level:2,children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Size (GQ)"}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0})]}),m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.size}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,c.Button,{icon:"file-word",onClick:function(){return i("PRG_openfile",{PRG_openfile:e.name})},children:"Open"})})]},n)}))]})})})||(0,o.createComponentVNode)(2,c.Section,{title:"Document: "+p,children:[(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_newfile")},children:"New"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_loadmenu")},children:"Load"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_savefile")},children:"Save"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_saveasfile")},children:"Save As"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_editfile")},children:"Edit"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_txtrpeview")},children:"Preview"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("PRG_taghelp")},children:"Formatting Help"}),(0,o.createComponentVNode)(2,c.Button,{disabled:!C,onClick:function(){return i("PRG_printfile")},children:"Print"})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:C}})})]})})})}},18326:function(e,n,t){"use strict";n.__esModule=!0,n.OmniFilter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniFilter=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return l("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return l("configure")}})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:m?m.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.dir+" Port",children:u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:e.input,icon:"compress-arrows-alt",onClick:function(){return l("switch_mode",{mode:"in",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:e.output,icon:"expand-arrows-alt",onClick:function(){return l("switch_mode",{mode:"out",dir:e.dir})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",disabled:e.input||e.output,content:e.f_type||"None",onClick:function(){return l("switch_filter",{mode:e.f_type,dir:e.dir})}})],4):i(e)},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return l("set_flow_rate")}}):p/10+" L/s"})]})})]})})}},78588:function(e,n,t){"use strict";n.__esModule=!0,n.OmniMixer=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e){return e.input?"Input":e.output?"Output":e.f_type?e.f_type:"Disabled"};n.OmniMixer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,d=t.data,s=d.power,u=d.config,m=d.ports,p=d.set_flow_rate,C=d.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:330,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:u?"Configuration":"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:s?"On":"Off",selected:s,disabled:u,onClick:function(){return i("power")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",selected:u,onClick:function(){return i("configure")}})],4),children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Port"}),u?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Input"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Mode"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Concentration"}),u?(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map((function(e){return(0,o.createComponentVNode)(2,l,{port:e,config:u},e.dir)})):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flow Rate",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Flow Rate",children:[C," L/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",children:u?(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:p/10+" L/s",onClick:function(){return i("set_flow_rate")}}):p/10+" L/s"})]})})]})})};var l=function(e,n){var t=(0,r.useBackend)(n).act,a=e.port,l=e.config;return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:a.dir+" Port"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"IN",selected:a.input,disabled:a.output,icon:"compress-arrows-alt",onClick:function(){return t("switch_mode",{mode:a.input?"none":"in",dir:a.dir})}}):i(a)}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:l?(0,o.createComponentVNode)(2,c.Button,{content:"OUT",selected:a.output,icon:"expand-arrows-alt",onClick:function(){return t("switch_mode",{mode:"out",dir:a.dir})}}):100*a.concentration+"%"}),l?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",width:"20%",children:(0,o.createComponentVNode)(2,c.Button,{width:"100%",icon:"wrench",disabled:!a.input,content:a.input?100*a.concentration+" %":"-",onClick:function(){return t("switch_con",{dir:a.dir})}})}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{icon:a.con_lock?"lock":"lock-open",disabled:!a.input,selected:a.con_lock,content:a.f_type||"None",onClick:function(){return t("switch_conlock",{dir:a.dir})}})})],4):null]})}},48826:function(e,n,t){"use strict";n.__esModule=!0,n.OperatingComputer=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(85952),i=t(74814),l=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.OperatingComputer=function(e,n){var t,r=(0,c.useBackend)(n),l=r.act,d=r.data,s=d.hasOccupant,u=d.choice;return t=u?(0,o.createComponentVNode)(2,C):s?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,a.Window,{width:650,height:455,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!u,icon:"user",onClick:function(){return l("choiceOff")},children:"Patient"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:!!u,icon:"cog",onClick:function(){return l("choiceOn")},children:"Options"})]}),(0,o.createComponentVNode)(2,i.Section,{flexGrow:"1",children:t})]})})};var m=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Patient",level:"2",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:t.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[t.stat][0],children:l[t.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxHealth,value:t.health/t.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]}})}),d.map((function(e,n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e[0]+" Damage",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]])},n)},n)})),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.maxTemp,value:t.bodyTemperature/t.maxTemp,color:u[t.temperatureSuitability+3],children:[(0,r.round)(t.btCelsius),"\xb0C, ",(0,r.round)(t.btFaren),"\xb0F"]})}),!!t.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:t.bloodMax,value:t.bloodLevel/t.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[t.bloodPercent,"%, ",t.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pulse",children:[t.pulse," BPM"]})],4)]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Current Procedure",level:"2",children:t.surgery&&t.surgery.length?(0,o.createComponentVNode)(2,i.LabeledList,{children:t.surgery.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current State",children:e.currentStage}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Possible Next Steps",children:e.nextSteps.map((function(e){return(0,o.createVNode)(1,"div",null,e,0,null,e)}))})]})},e.name)}))}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No procedure ongoing."})})],4)},p=function(){return(0,o.createComponentVNode)(2,i.Flex,{textAlign:"center",height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No patient detected."]})})},C=function(e,n){var t=(0,c.useBackend)(n),r=t.act,a=t.data,l=a.verbose,d=a.health,s=a.healthAlarm,u=a.oxy,m=a.oxyAlarm,p=a.crit;return(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Loudspeaker",children:(0,o.createComponentVNode)(2,i.Button,{selected:l,icon:l?"toggle-on":"toggle-off",content:l?"On":"Off",onClick:function(){return r(l?"verboseOff":"verboseOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer",children:(0,o.createComponentVNode)(2,i.Button,{selected:d,icon:d?"toggle-on":"toggle-off",content:d?"On":"Off",onClick:function(){return r(d?"healthOff":"healthOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:s,stepPixelSize:"5",ml:"0",format:function(e){return e+"%"},onChange:function(e,n){return r("health_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm",children:(0,o.createComponentVNode)(2,i.Button,{selected:u,icon:u?"toggle-on":"toggle-off",content:u?"On":"Off",onClick:function(){return r(u?"oxyOff":"oxyOn")}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,o.createComponentVNode)(2,i.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:m,stepPixelSize:"5",ml:"0",onChange:function(e,n){return r("oxy_adj",{"new":n})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Critical Alert",children:(0,o.createComponentVNode)(2,i.Button,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){return r(p?"critOff":"critOn")}})})]})}},51888:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapDisperser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapDisperser=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:400,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.faillink,s=l.calibration,u=l.overmapdir,m=l.cal_accuracy,p=l.strength,C=l.range,h=l.next_shot,N=l.nopower,V=(l.skill,l.chargeload);return d?(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",children:(0,o.createComponentVNode)(2,c.Section,{title:"Targeting",textAlign:"center",children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{actToDo:"choose",selected:function(e){return e===u}})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"74%",grow:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Charge",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[N&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Load Type",children:V}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cooldown",children:0===h&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Ready"})||h>1&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h})," Seconds",(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Calibration",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),"%",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"exchange-alt",onClick:function(){return a("skill_calibration")},children:"Pre-Calibration"}),(0,o.createComponentVNode)(2,c.Box,{mt:1,children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:["Cal #",n,":",(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"random",onClick:function(){return a("calibration",{calibration:n})},children:e.toString()})]},n)}))})]})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Section,{title:"Setup",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Strength",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"fist-raised",onClick:function(){return a("strength")},children:p})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radius",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return a("range")},children:C})})]})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mt:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return a("fire")},children:"Fire ORB"})})]})}},25123:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapEnginesContent=n.OvermapEngines=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapEngines=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:390,height:530,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.global_state,d=i.global_limit,s=i.engines_info,u=i.total_thrust;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Engines",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,onClick:function(){return a("global_toggle")},children:l?"Shut All Engines Down":"Start All Engines"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_global_limit")},children:[d,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Thrust",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:s.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:0!==n&&-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"80%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:["Engine #",n+1," | Thrust: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust})," | Limit: ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:e.eng_thrust_limiter,format:function(e){return e+"%"}})]}),children:(0,o.createComponentVNode)(2,c.Section,{width:"127%",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Type",children:e.eng_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:[(0,o.createComponentVNode)(2,c.Box,{color:e.eng_on?1===e.eng_on?"good":"average":"bad",children:e.eng_on?1===e.eng_on?"Online":"Booting":"Offline"}),e.eng_status.map((function(e){return Array.isArray(e)?(0,o.createComponentVNode)(2,c.Box,{color:e[1],children:e[0]}):(0,o.createComponentVNode)(2,c.Box,{children:e})}))]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Thrust",children:e.eng_thrust}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Limit",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:-.1,engine:e.eng_reference})},icon:"minus"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("set_limit",{engine:e.eng_reference})},children:[e.eng_thrust_limiter,"%"]}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("limit",{limit:.1,engine:e.eng_reference})},icon:"plus"})]})]})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"20%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,iconSpin:-1===e.eng_on,color:-1===e.eng_on?"purple":null,selected:1===e.eng_on,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:e.eng_reference})},children:e.eng_on?1===e.eng_on?"Shutoff":"Booting":"Startup"})})]},n)}))})],4)};n.OvermapEnginesContent=i},63836:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFull=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(25123),l=t(89380),d=t(51932);n.OvermapFull=function(e,n){var t=(0,r.useLocalState)(n,"overmapFullState",0),s=t[0],u=t[1];return(0,o.createComponentVNode)(2,a.Window,{width:800,height:800,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===s,onClick:function(){return u(0)},children:"Engines"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===s,onClick:function(){return u(1)},children:"Helm"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===s,onClick:function(){return u(2)},children:"Sensors"})]}),0===s&&(0,o.createComponentVNode)(2,i.OvermapEnginesContent),1===s&&(0,o.createComponentVNode)(2,l.OvermapHelmContent),2===s&&(0,o.createComponentVNode)(2,d.OvermapShipSensorsContent)]})})}},89380:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapFlightDataWrap=n.OvermapHelmContent=n.OvermapHelm=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapHelm=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:565,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"40%",height:"180px",children:(0,o.createComponentVNode)(2,d)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"25%",height:"180px",children:(0,o.createComponentVNode)(2,s)}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"35%",height:"180px",children:(0,o.createComponentVNode)(2,u)})]}),(0,o.createComponentVNode)(2,m)],4)};n.OvermapHelmContent=l;var d=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Flight Data",16),(0,o.createComponentVNode)(2,i.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})};n.OvermapFlightDataWrap=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.canburn,s=l.manual_control;return(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Manual Control",16),(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"center",children:(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i.OvermapPanControls,{disabled:!d,actToDo:"move"})})}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",mt:1,children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,o.createComponentVNode)(2,c.Button,{selected:s,onClick:function(){return a("manual")},icon:"compass",children:s?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.dest,d=i.d_x,s=i.d_y,u=i.speedlimit,m=i.autopilot;return i.autopilot_disabled?(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return a("apilot_lock")}})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,o.createVNode)(1,"fieldset","Section",[(0,o.createVNode)(1,"legend",null,"Autopilot",16),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{setx:!0})},children:d}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("setcoord",{sety:!0})},children:s})],4)||(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed Limit",children:(0,o.createComponentVNode)(2,c.Button,{icon:"tachometer-alt",onClick:function(){return a("speedlimit")},children:[u," Gm/h"]})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,selected:m,disabled:!l,icon:"robot",onClick:function(){return a("apilot")},children:m?"Engaged":"Disengaged"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return a("apilot_lock")},children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.sector,d=i.s_x,s=i.s_y,u=i.sector_info,m=i.landed,p=i.locations;return(0,o.createComponentVNode)(2,c.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:l}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordinates",children:[d," : ",s]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Data",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:m})]}),(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"save",onClick:function(){return a("add",{add:"current"})},children:"Save Current Position"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"sticky-note",onClick:function(){return a("add",{add:"new"})},children:"Add New Entry"})})]}),(0,o.createComponentVNode)(2,c.Section,{mt:1,scrollable:!0,height:"130px",children:(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Coordinates"}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:"Actions"})]}),p.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,c.Table.Cell,{children:[e.x," : ",e.y]}),(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,c.Button,{icon:"rocket",onClick:function(){return a("setds",{x:e.x,y:e.y})},children:"Plot Course"}),(0,o.createComponentVNode)(2,c.Button,{icon:"trash",onClick:function(){return a("remove",{remove:e.reference})},children:"Remove"})]})]},e.name)}))]})})]})}},12640:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapNavigationContent=n.OvermapNavigation=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(40754);n.OvermapNavigation=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:380,height:530,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sector,s=l.s_x,u=l.s_y,m=l.sector_info,p=l.viewing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Current Location",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:p,onClick:function(){return a("viewing")},children:"Map View"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coordiantes",children:[s," : ",u]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Additional Information",children:m})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Flight Data",children:(0,o.createComponentVNode)(2,i.OvermapFlightData,{disableLimiterControls:!0})})],4)};n.OvermapNavigationContent=l},84031:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShieldGenerator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShieldGenerator=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:500,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,s=i.modes,u=i.offline_for;return u?(0,o.createComponentVNode)(2,c.Section,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",u," seconds."]}):(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,c.Section,{title:"Field Calibration",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,level:2,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:e.status,onClick:function(){return a("toggle_mode",{toggle_mode:e.flag})},children:e.status?"Enabled":"Disabled"}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:e.desc}),(0,o.createComponentVNode)(2,c.Box,{mt:.5,children:["Multiplier: ",e.multiplier]})]},e.name)}))})],4)},l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=a.running,l=a.overloaded,d=a.mitigation_max,s=a.mitigation_physical,u=a.mitigation_em,m=a.mitigation_heat,p=a.field_integrity,C=a.max_energy,h=a.current_energy,N=a.percentage_energy,V=a.total_segments,b=a.functional_segments,f=a.field_radius,g=a.target_radius,v=a.input_cap_kw,k=a.upkeep_power_usage,B=a.power_usage,L=a.spinup_counter;return(0,o.createComponentVNode)(2,c.Section,{title:"System Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Generator is",children:1===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Shutting Down"})||2===i&&(l&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Overloaded"})||(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Running"}))||3===i&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Inactive"})||4===i&&(0,o.createComponentVNode)(2,c.Box,{color:"blue",children:["Spinning Up\xa0",g!==f&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[2*L,"s"]})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Offline"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Storage",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,maxValue:C,children:[h," / ",C," MJ (",N,"%)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shield Integrity",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mitigation",children:[u,"% EM / ",s,"% PH / ",m,"% HE / ",d,"% MAX"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:k})," kW"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Total Energy Use",children:v&&(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:B,maxValue:v,children:[B," / ",v," kW"]})})||(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:B})," kW (No Limit)"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Field Size",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"\xa0/\xa0",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V})," m\xb2 (radius ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),", target ",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),")"]})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.running,d=i.hacked,s=i.idle_multiplier,u=i.idle_valid_values;return(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createFragment)([l>=2&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("begin_shutdown")},selected:!0,children:"Turn off"}),3===l&&(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",onClick:function(){return a("start_generator")},children:"Turn on"}),l&&d&&(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",onClick:function(){return a("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",onClick:function(){return a("set_range")},children:"Set Field Range"}),(0,o.createComponentVNode)(2,c.Button,{icon:"bolt",onClick:function(){return a("set_input_cap")},children:"Set Input Cap"}),(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Set inactive power use intensity",children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{selected:e===s,disabled:4===l,onClick:function(){return a("switch_idle",{switch_idle:e})},children:e},e)}))})})]})}},51932:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapShipSensorsContent=n.OvermapShipSensors=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.OvermapShipSensors=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:375,height:545,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.viewing,d=i.on,s=i.range,u=i.health,m=i.max_health,p=i.heat,C=i.critical_heat,h=i.status,N=i.contacts;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"eye",selected:l,onClick:function(){return a("viewing")},children:"Map View"}),(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return a("toggle_sensor")},children:d?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:h}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Range",children:(0,o.createComponentVNode)(2,c.Button,{icon:"signal",onClick:function(){return a("range")},children:s})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*m,Infinity],average:[.25*m,.75*m],bad:[-Infinity,.25*m]},value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{bad:[.75*C,Infinity],average:[.5*C,.75*C],good:[-Infinity,.5*C]},value:p,maxValue:C,children:p<.5*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Temperature low."})||p<.75*C&&(0,o.createComponentVNode)(2,c.Box,{children:"Sensor temperature high!"})||(0,o.createComponentVNode)(2,c.Box,{children:"TEMPERATURE CRITICAL: Disable or reduce power immediately!"})})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Contacts",children:N.length&&N.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"search",onClick:function(){return a("scan",{scan:e.ref})},children:[(0,o.createComponentVNode)(2,c.Box,{bold:!0,inline:!0,children:["Scan: ",e.name]}),(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:[", bearing: ",e.bearing,"\xb0"]})]},e.ref)}))||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No contacts on sensors."})}),"MISSING"===i.status&&(0,o.createComponentVNode)(2,c.Section,{title:"Error",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wifi",onClick:function(){return a("link")},children:"Link up with sensor suite?"})})||null],0)};n.OvermapShipSensorsContent=i},57966:function(e,n,t){"use strict";n.__esModule=!0,n.ParticleAccelerator=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.ParticleAccelerator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.assembled,s=l.power,u=l.strength;return(0,o.createComponentVNode)(2,a.Window,{width:350,height:185,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Run Scan",onClick:function(){return i("scan")}}),children:(0,o.createComponentVNode)(2,c.Box,{color:d?"good":"bad",children:d?"Ready - All parts in place":"Unable to detect all parts"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Particle Accelerator Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:!d,onClick:function(){return i("power")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Particle Strength",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:!d,onClick:function(){return i("remove_strength")}})," ",String(u).padStart(1,"0")," ",(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:!d,onClick:function(){return i("add_strength")}})]})]})})]})})}},80374:function(e,n,t){"use strict";n.__esModule=!0,n.PartsLathe=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(95481);n.PartsLathe=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.panelOpen,s.copyBoard),m=s.copyBoardReqComponents,p=s.queue,C=s.building,h=s.buildPercent,N=s.error,V=s.recipies;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[N&&(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:["Missing Materials: ",N]})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Materials",children:(0,o.createComponentVNode)(2,l.Materials,{displayAllMat:!0})}),C&&(0,o.createComponentVNode)(2,c.Section,{title:"Currently Building",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:(0,i.toTitleCase)(C)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:"good",value:h,maxValue:100})})]})})||null,u&&(0,o.createComponentVNode)(2,c.Section,{title:"Circuit Reader",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Loaded Circuit",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return d("ejectBoard")},children:"Eject"}),children:(0,i.toTitleCase)(u)})}),m&&m.length&&(0,o.createFragment)([m.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:[e.qty," x ",(0,i.toTitleCase)(e.name)]},e.name)})),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queueBoard")},children:"Build All"})],0)||(0,o.createComponentVNode)(2,c.Box,{children:"Board has no required components."})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Queue",children:p.length&&p.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{color:"label",children:["#",n+1,": ",(0,i.toTitleCase)(e),(n>0||!C)&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"times",onClick:function(){return d("cancel",{cancel:n+1})},children:"Cancel"})||null]},e)}))||(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Recipes",children:V.length&&V.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",onClick:function(){return d("queue",{queue:e.type})},children:(0,i.toTitleCase)(e.name)})},e.name)}))})]})})}},83987:function(e,n,t){"use strict";n.__esModule=!0,n.PathogenicIsolator=void 0;var o=t(39812),r=(t(41860),t(58083),t(71494)),c=t(16007),a=t(74814),i=t(85952),l=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.can_print,l=e.args;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",title:l.name||"Virus",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!i,icon:"print",content:"Print",onClick:function(){return c("print",{type:"virus_record",vir:l.record})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return c("modal_close")}})],4),children:(0,o.createComponentVNode)(2,a.Box,{mx:"0.5rem",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Spread",children:[l.spread_text," Transmission"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Possible cure",children:l.antigen}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rate of Progression",children:l.rate}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Antibiotic Resistance",children:[l.resistance,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species Affected",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Symptoms",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:l.symptoms.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.stage+". "+e.name,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Strength:"})," ",e.strength,"\xa0"]}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",e.aggressiveness]})]},e.stage)}))})})]})})})};n.PathogenicIsolator=function(e,n){var t=(0,r.useBackend)(n),u=(t.act,t.data.isolating),m=(0,r.useLocalState)(n,"tabIndex",0),p=m[0],C=m[1],h=null;return 0===p?h=(0,o.createComponentVNode)(2,d):1===p&&(h=(0,o.createComponentVNode)(2,s)),(0,c.modalRegisterBodyOverride)("virus",l),(0,o.createComponentVNode)(2,i.Window,{height:500,width:520,resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[u&&(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Home"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Database"})]}),h]})]})};var d=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.syringe_inserted,d=i.pathogen_pool,s=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Pathogens",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!s,onClick:function(){return c("print",{type:"patient_diagnosis"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Syringe",disabled:!l,onClick:function(){return c("eject")}})],4),children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:(0,o.createComponentVNode)(2,a.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[(0,o.createVNode)(1,"u",null,[(0,o.createTextVNode)("Stamm #"),e.unique_id],0),e.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"virus",content:"Isolate",onClick:function(){return c("isolate",{isolate:e.reference})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Database",disabled:!e.is_in_database,onClick:function(){return c("view_entry",{vir:e.record})}})]})]})}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",mb:1,children:e.name}),e.dna]})]},e.unique_id)}))||(l?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No samples detected."}):(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No syringe inserted."}))})},s=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.database,d=i.can_print;return(0,o.createComponentVNode)(2,a.Section,{title:"Database",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",content:"Print",disabled:!d,onClick:function(){return c("print",{type:"virus_list"})}}),children:l.length&&l.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("view_entry",{vir:e.record})},children:e.name},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"The viral database is empty."})})}},72586:function(e,n,t){"use strict";n.__esModule=!0,n.Pda=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(73218),l=t(75168);n.Pda=function(e,n){var t=(0,r.useBackend)(n),m=(t.act,t.data),p=m.app,C=m.owner,h=m.useRetro;if(!C)return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var N=function(e){var n;try{n=l("./"+e+".js")}catch(t){if("MODULE_NOT_FOUND"===t.code)return(0,i.routingError)("notFound",e);throw t}return n[e]||(0,i.routingError)("missingExport",e)}(p.template),V=(0,r.useLocalState)(n,"settingsMode",!1),b=V[0],f=V[1];return(0,o.createComponentVNode)(2,a.Window,{width:580,height:670,theme:h?"pda-retro":null,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{settingsMode:b,setSettingsMode:f}),b&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,c.Section,{title:(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Icon,{name:p.icon,mr:1}),p.name]}),p:1,children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Box,{mb:8}),(0,o.createComponentVNode)(2,u,{setSettingsMode:f})]})})};var d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.settingsMode,d=e.setSettingsMode,s=i.idInserted,u=i.idLink,m=(i.cartridge_name,i.stationTime);return(0,o.createComponentVNode)(2,c.Box,{mb:1,children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-between",children:[!!s&&(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",color:"transparent",onClick:function(){return a("Authenticate")},content:u})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:m}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{selected:l,onClick:function(){return d(!l)},icon:"cog"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("Retro")},icon:"adjust"})]})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.idInserted,d=i.idLink,s=i.cartridge_name,u=i.touch_silent;return(0,o.createComponentVNode)(2,c.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",content:"Retro Theme",onClick:function(){return a("Retro")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Touch Sounds",children:(0,o.createComponentVNode)(2,c.Button,{icon:"cog",selected:!u,content:u?"Disabled":"Enabled",onClick:function(){return a("TouchSounds")}})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cartridge",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Eject")},content:s})}),!!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID Card",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",onClick:function(){return a("Authenticate")},content:d})})]})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.setSettingsMode,d=i.app,s=i.useRetro;return(0,o.createComponentVNode)(2,c.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:s?"#6f7961":"#1b1b1b",children:(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return a("Back")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"33%",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,color:"transparent",iconColor:d.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){l(!1),a("Home")}})})]})})}},67589:function(e,n,t){"use strict";n.__esModule=!0,n.PersonalCrafting=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);function i(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t=.5?"good":s>.15&&"average")||"bad";return(0,o.createComponentVNode)(2,a.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!d.anchored&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Generator not anchored."}),(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power switch",children:(0,o.createComponentVNode)(2,c.Button,{icon:d.active?"power-off":"times",onClick:function(){return l("toggle_power")},selected:d.active,disabled:!d.ready_to_boot,children:d.active?"On":"Off"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Type",buttons:d.fuel_stored>=1&&(0,o.createComponentVNode)(2,c.Button,{ml:1,icon:"eject",disabled:d.active,onClick:function(){return l("eject")},children:"Eject"}),children:(0,o.createComponentVNode)(2,c.Box,{color:u,children:[d.fuel_stored,"cm\xb3 ",d.sheet_name]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current fuel level",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.fuel_stored/d.fuel_capacity,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[d.fuel_stored,"cm\xb3 / ",d.fuel_capacity,"cm\xb3"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fuel Usage",children:[d.fuel_usage," cm\xb3/s"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d.temperature_current,maxValue:d.temperature_max+30,color:d.temperature_overheat?"bad":"good",children:[(0,i.round)(d.temperature_current),"\xb0C"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current output",color:d.unsafe_output?"bad":null,children:d.power_output}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Adjust output",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",onClick:function(){return l("lower_power")},children:d.power_generated}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",onClick:function(){return l("higher_power")},children:d.power_generated})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power available",children:(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:!d.connected&&"bad",children:d.connected?d.power_available:"Unconnected"})})]})})]})})}},82564:function(e,n,t){"use strict";n.__esModule=!0,n.PortablePump=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(34227);n.PortablePump=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.direction,u=d.target_pressure,m=d.default_pressure,p=d.min_pressure,C=d.max_pressure;return(0,o.createComponentVNode)(2,a.Window,{width:330,height:375,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Pump",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"sign-in-alt":"sign-out-alt",content:s?"In":"Out",selected:s,onClick:function(){return l("direction")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:p,maxValue:C,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(e,n){return l("pressure",{pressure:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Presets",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"minus",disabled:u===p,onClick:function(){return l("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",disabled:u===m,onClick:function(){return l("pressure",{pressure:"reset"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"plus",disabled:u===C,onClick:function(){return l("pressure",{pressure:"max"})}})]})]})})]})})}},24901:function(e,n,t){"use strict";n.__esModule=!0,n.PortableScrubber=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(76270),t(85952)),i=t(34227);n.PortableScrubber=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.rate,u=d.minrate,m=d.maxrate;return(0,o.createComponentVNode)(2,a.Window,{width:320,height:350,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,i.PortableBasicInfo),(0,o.createComponentVNode)(2,c.Section,{title:"Power Regulator",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Volume Rate",children:(0,o.createComponentVNode)(2,c.Slider,{mt:"0.4em",animated:!0,minValue:u,maxValue:m,value:s,unit:"L/s",onChange:function(e,n){return l("volume_adj",{vol:n})}})})})})]})})}},31695:function(e,n,t){"use strict";n.__esModule=!0,n.PortableTurret=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.PortableTurret=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.on,u=l.lethal,m=l.lethal_is_configurable,p=l.targetting_is_configurable,C=l.check_weapons,h=l.neutralize_noaccess,N=l.neutralize_norecord,V=l.neutralize_criminals,b=l.neutralize_all,f=l.neutralize_nonsynth,g=l.neutralize_unidentified,v=l.neutralize_down;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe an ID card to ",d?"unlock":"lock"," this interface."]}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,disabled:d,onClick:function(){return i("power")}})}),!!m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Lethals",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"exclamation-triangle":"times",content:u?"On":"Off",color:u?"bad":"",disabled:d,onClick:function(){return i("lethal")}})})]})}),!!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Humanoid Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:V,content:"Wanted Criminals",disabled:d,onClick:function(){return i("autharrest")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:N,content:"No Sec Record",disabled:d,onClick:function(){return i("authnorecord")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:C,content:"Unauthorized Weapons",disabled:d,onClick:function(){return i("authweapon")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:h,content:"Unauthorized Access",disabled:d,onClick:function(){return i("authaccess")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Other Targets",children:[(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:g,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:d,onClick:function(){return i("authxeno")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:f,content:"All Non-Synthetics",disabled:d,onClick:function(){return i("authsynth")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:v,content:"Downed Targets",disabled:d,onClick:function(){return i("authdown")}}),(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:d,onClick:function(){return i("authall")}})]})],4)]})})}},89793:function(e,n,t){"use strict";n.__esModule=!0,n.AreaCharge=n.PowerMonitorFocus=n.PowerMonitorContent=n.PowerMonitor=n.powerRank=void 0;var o=t(39812),r=t(64499),c=t(85531),a=t(41860),i=t(34380),l=t(71494),d=t(74814),s=t(85952),u=5e5,m=function(e){var n=String(e.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(n)};n.powerRank=m;n.PowerMonitor=function(){return(0,o.createComponentVNode)(2,s.Window,{width:550,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,s.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,p)})})};var p=function(e,n){var t=(0,l.useBackend)(n),r=t.act,c=t.data,a=(c.map_levels,c.all_sensors),i=c.focus;if(i)return(0,o.createComponentVNode)(2,C,{focus:i});var s=(0,o.createComponentVNode)(2,d.Box,{color:"bad",children:"No sensors detected"});return a&&(s=(0,o.createComponentVNode)(2,d.Table,{children:a.map((function(e){return(0,o.createComponentVNode)(2,d.Table.Row,{children:(0,o.createComponentVNode)(2,d.Table.Cell,{children:(0,o.createComponentVNode)(2,d.Button,{content:e.name,icon:e.alarm?"bell":"sign-in-alt",onClick:function(){return r("setsensor",{id:e.name})}})})},e.name)}))})),(0,o.createComponentVNode)(2,d.Section,{title:"No active sensor. Listing all.",buttons:(0,o.createComponentVNode)(2,d.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){return r("refresh")}}),children:s})};n.PowerMonitorContent=p;var C=function(e,n){var t=(0,l.useBackend)(n),i=t.act,s=(t.data,e.focus),p=s.history,C=(0,l.useLocalState)(n,"sortByField",null),V=C[0],b=C[1],f=p.supply[p.supply.length-1]||0,g=p.demand[p.demand.length-1]||0,v=p.supply.map((function(e,n){return[n,e]})),k=p.demand.map((function(e,n){return[n,e]})),B=Math.max.apply(Math,[u].concat(p.supply,p.demand)),L=(0,c.flow)([(0,r.map)((function(e,n){return Object.assign({},e,{id:e.name+n})})),"name"===V&&(0,r.sortBy)((function(e){return e.name})),"charge"===V&&(0,r.sortBy)((function(e){return-e.charge})),"draw"===V&&(0,r.sortBy)((function(e){return-m(e.load)}),(function(e){return-parseFloat(e.load)})),"problems"===V&&(0,r.sortBy)((function(e){return e.eqp}),(function(e){return e.lgt}),(function(e){return e.env}),(function(e){return e.charge}),(function(e){return e.name}))])(s.areas);return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Section,{title:s.name,buttons:(0,o.createComponentVNode)(2,d.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){return i("clear")}})}),(0,o.createComponentVNode)(2,d.Flex,{mx:-.5,mb:1,children:[(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,width:"200px",children:(0,o.createComponentVNode)(2,d.Section,{children:(0,o.createComponentVNode)(2,d.LabeledList,{children:[(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Supply",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:f,minValue:0,maxValue:B,color:"teal",children:(0,a.toFixed)(f/1e3)+" kW"})}),(0,o.createComponentVNode)(2,d.LabeledList.Item,{label:"Draw",children:(0,o.createComponentVNode)(2,d.ProgressBar,{value:g,minValue:0,maxValue:B,color:"pink",children:(0,a.toFixed)(g/1e3)+" kW"})})]})})}),(0,o.createComponentVNode)(2,d.Flex.Item,{mx:.5,grow:1,children:(0,o.createComponentVNode)(2,d.Section,{position:"relative",height:"100%",children:[(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:v,rangeX:[0,v.length-1],rangeY:[0,B],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,o.createComponentVNode)(2,d.Chart.Line,{fillPositionedParent:!0,data:k,rangeX:[0,k.length-1],rangeY:[0,B],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,o.createComponentVNode)(2,d.Section,{children:[(0,o.createComponentVNode)(2,d.Box,{mb:1,children:[(0,o.createComponentVNode)(2,d.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"name"===V,content:"Name",onClick:function(){return b("name"!==V&&"name")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"charge"===V,content:"Charge",onClick:function(){return b("charge"!==V&&"charge")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"draw"===V,content:"Draw",onClick:function(){return b("draw"!==V&&"draw")}}),(0,o.createComponentVNode)(2,d.Button.Checkbox,{checked:"problems"===V,content:"Problems",onClick:function(){return b("problems"!==V&&"problems")}})]}),(0,o.createComponentVNode)(2,d.Table,{children:[(0,o.createComponentVNode)(2,d.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,d.Table.Cell,{children:"Area"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,children:"Charge"}),(0,o.createComponentVNode)(2,d.Table.Cell,{textAlign:"right",children:"Draw"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,o.createComponentVNode)(2,d.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),L.map((function(e,n){return(0,o.createVNode)(1,"tr","Table__row candystripe",[(0,o.createVNode)(1,"td",null,e.name,0),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,o.createComponentVNode)(2,h,{charging:e.charging,charge:e.charge}),2),(0,o.createVNode)(1,"td","Table__cell text-right text-nowrap",e.load,0),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.eqp}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.lgt}),2),(0,o.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,o.createComponentVNode)(2,N,{status:e.env}),2)],4,null,e.id)}))]})]})],4)};n.PowerMonitorFocus=C;var h=function(e){var n=e.charging,t=e.charge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d.Icon,{width:"18px",textAlign:"center",name:0===n&&(t>50?"battery-half":"battery-quarter")||1===n&&"bolt"||2===n&&"battery-full",color:0===n&&(t>50?"yellow":"red")||1===n&&"yellow"||2===n&&"green"}),(0,o.createComponentVNode)(2,d.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,a.toFixed)(t)+"%"})],4)};n.AreaCharge=h,h.defaultHooks=i.pureComponentHooks;var N=function(e){var n=e.status,t=Boolean(2&n),r=Boolean(1&n),c=(t?"On":"Off")+" ["+(r?"auto":"manual")+"]";return(0,o.createComponentVNode)(2,d.ColorBox,{color:t?"good":"bad",content:r?undefined:"M",title:c})};N.defaultHooks=i.pureComponentHooks},81121:function(e,n,t){"use strict";n.__esModule=!0,n.PressureRegulator=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.PressureRegulator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.pressure_set,u=(l.max_pressure,l.input_pressure),m=l.output_pressure,p=l.regulate_mode,C=l.set_flow_rate,h=l.last_flow_rate;return(0,o.createComponentVNode)(2,a.Window,{width:470,height:370,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Input Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m/100})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:h/10})," L/s"]})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:d?"Unlocked":"Closed",selected:d,onClick:function(){return i("toggle_valve")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",content:"Off",selected:0===p,onClick:function(){return i("regulate_mode",{mode:"off"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"Input",selected:1===p,onClick:function(){return i("regulate_mode",{mode:"input"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"Output",selected:2===p,onClick:function(){return i("regulate_mode",{mode:"output"})}})],4)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_press",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_press",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_press",{press:"set"})}})],4),children:[s/100," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return i("set_flow_rate",{press:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return i("set_flow_rate",{press:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"SET",onClick:function(){return i("set_flow_rate",{press:"set"})}})],4),children:[C/10," L/s"]})]})})]})})}},14210:function(e,n,t){"use strict";n.__esModule=!0,n.PrisonerManagement=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(58083);n.PrisonerManagement=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked,s=l.chemImplants,u=l.trackImplants;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:d&&(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",onClick:function(){return i("lock")},children:"Unlock"})})]})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Interface Lock",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",onClick:function(){return i("lock")},children:"Lock Interface"})}),(0,o.createComponentVNode)(2,c.Section,{title:"Chemical Implants",children:s.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Inject"})]}),s.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.host}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.units,"u remaining"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:1})},children:"(1)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:5})},children:"(5)"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("inject",{imp:e.ref,val:10})},children:"(10)"})]})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})}),(0,o.createComponentVNode)(2,c.Section,{title:"Tracking Implants",children:u.length&&(0,o.createComponentVNode)(2,c.Table,{children:[(0,o.createComponentVNode)(2,c.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Host"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Location"}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:"Message"})]}),u.map((function(e){return(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:[e.host," (",e.id,")"]}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:e.loc}),(0,o.createComponentVNode)(2,c.Table.Cell,{textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return i("warn",{imp:e.ref})},children:"Message"})})]},e.ref)}))]})||(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No chemical implants found."})})],4)})})}},43996:function(e,n,t){"use strict";n.__esModule=!0,n.RCONContent=n.RCON=void 0;var o=t(39812),r=t(41860),c=t(58083),a=t(71494),i=t(74814),l=t(85952),d=t(2497),s=1e3;n.RCON=function(e,n){return(0,o.createComponentVNode)(2,l.Window,{width:630,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,u)})})};var u=function(e,n){var t,r=(0,a.useLocalState)(n,"tabIndex",0),c=r[0],l=r[1];return 0===c?t=(0,o.createComponentVNode)(2,m):1===c&&(t=(0,o.createComponentVNode)(2,h)),(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===c,onClick:function(){return l(0)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===c,onClick:function(){return l(1)},children:[(0,o.createComponentVNode)(2,i.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,o.createComponentVNode)(2,i.Box,{m:2,children:t})],4)};n.RCONContent=u;var m=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.smes_info);return(0,o.createComponentVNode)(2,i.Section,{title:"SMESs",children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:r.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,p,{smes:e})},e.RCON_tag)}))})})},p=function(e,n){(0,a.useBackend)(n).act;var t=e.smes,c=t.capacityPercent,l=t.capacity,d=t.charge,s=(t.inputAttempt,t.inputting,t.inputLevel,t.inputLevelMax,t.inputAvailable,t.outputAttempt,t.outputting,t.outputLevel,t.outputLevelMax,t.outputUsed,t.RCON_tag);return(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{flexBasis:"40%",fontSize:1.2,children:s}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:.01*c,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,r.round)(d/6e4,1)," kWh / ",(0,r.round)(l/6e4)," kWh (",c,"%)"]})})]})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"input"})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,C,{smes:e.smes,way:"output"})}),(0,o.createComponentVNode)(2,i.Stack.Divider)]})},C=function(e,n){var t,r,l,u,m,p,C,h=(0,a.useBackend)(n).act,N=e.way,V=e.smes,b=(V.capacityPercent,V.capacity,V.charge,V.inputAttempt),f=V.inputting,g=V.inputLevel,v=V.inputLevelMax,k=V.inputAvailable,B=V.outputAttempt,L=V.outputting,_=V.outputLevel,x=V.outputLevelMax,w=V.outputUsed,S=V.RCON_tag;switch(N){case"input":t=g,r=v,l=k,"IN",u="smes_in_toggle",m="smes_in_set",b,p=b?f?"green":"yellow":null,C=b?f?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":t=_,r=x,l=w,"OUT",u="smes_out_toggle",m="smes_out_set",B,p=B?L?"green":"yellow":null,C=B?L?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off."}return(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"20%",children:(0,d.capitalize)(N)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",color:p,tooltip:C,onClick:function(){return h(u,{smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"fast-backward",disabled:0===t,onClick:function(){return h(m,{target:"min",smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"backward",disabled:0===t,onClick:function(){return h(m,{adjust:-1e4,smes:S})}})]}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Slider,{value:t/s,fillValue:l/s,minValue:0,maxValue:r/s,step:5,stepPixelSize:4,format:function(e){return(0,c.formatPower)(l,1)+"/"+(0,c.formatPower)(e*s,1)},onDrag:function(e,n){return h(m,{target:n*s,smes:S})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"forward",disabled:t===r,onClick:function(){return h(m,{adjust:1e4,smes:S})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"fast-forward",disabled:t===r,onClick:function(){return h(m,{target:"max",smes:S})}})]})]})})]})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.breaker_info;return(0,o.createComponentVNode)(2,i.Section,{title:"Breakers",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c?c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.RCON_tag,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.enabled?"Enabled":"Disabled",selected:e.enabled,color:e.enabled?null:"bad",onClick:function(){return r("toggle_breaker",{breaker:e.RCON_tag})}})},e.RCON_tag)})):(0,o.createComponentVNode)(2,i.LabeledList.Item,{color:"bad",children:"No breakers detected."})})})}},92141:function(e,n,t){"use strict";n.__esModule=!0,n.RIGSuit=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.RIGSuit=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),u=i.interfacelock,m=i.malf,p=i.aicontrol,C=i.ai,h=null;return u||m?h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!C&&p&&(h=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,o.createComponentVNode)(2,a.Window,{height:480,width:550,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:h||(0,o.createFragment)([(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.chargestatus,d=i.charge,s=i.maxcharge,u=i.aioverride,m=i.sealing,p=i.sealed,C=i.emagged,h=i.securitycheck,N=i.coverlock,V=(0,o.createComponentVNode)(2,c.Button,{content:"Suit "+(m?"seals working...":p?"is Active":"is Inactive"),icon:m?"redo":p?"power-off":"lock-open",iconSpin:m,disabled:m,selected:p,onClick:function(){return a("toggle_seals")}}),b=(0,o.createComponentVNode)(2,c.Button,{content:"AI Control "+(u?"Enabled":"Disabled"),selected:u,icon:"robot",onClick:function(){return a("toggle_ai_control")}});return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([V,b],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power Supply",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,maxValue:50,value:l,ranges:{good:[35,Infinity],average:[15,35],bad:[-Infinity,15]},children:[d," / ",s]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cover Status",children:C||!h?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,o.createComponentVNode)(2,c.Button,{icon:N?"lock":"lock-open",content:N?"Locked":"Unlocked",onClick:function(){return a("toggle_suit_lock")}})})]})})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealing,s=l.helmet,u=l.helmetDeployed,m=l.gauntlets,p=l.gauntletsDeployed,C=l.boots,h=l.bootsDeployed,N=l.chest,V=l.chestDeployed;return(0,o.createComponentVNode)(2,c.Section,{title:"Hardware",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:u?"sign-out-alt":"sign-in-alt",content:u?"Deployed":"Deploy",disabled:d,selected:u,onClick:function(){return a("toggle_piece",{piece:"helmet"})}}),children:s?(0,i.capitalize)(s):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gauntlets",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Deployed":"Deploy",disabled:d,selected:p,onClick:function(){return a("toggle_piece",{piece:"gauntlets"})}}),children:m?(0,i.capitalize)(m):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Boots",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sign-out-alt":"sign-in-alt",content:h?"Deployed":"Deploy",disabled:d,selected:h,onClick:function(){return a("toggle_piece",{piece:"boots"})}}),children:C?(0,i.capitalize)(C):"ERROR"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chestpiece",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:V?"sign-out-alt":"sign-in-alt",content:V?"Deployed":"Deploy",disabled:d,selected:V,onClick:function(){return a("toggle_piece",{piece:"chest"})}}),children:N?(0,i.capitalize)(N):"ERROR"})]})})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=t.data,d=l.sealed,s=l.sealing,u=l.primarysystem,m=l.modules;return!d||s?(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,o.createComponentVNode)(2,c.Section,{title:"Modules",children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,i.capitalize)(u||"None")]}),m&&m.map((function(e,n){return(0,o.createComponentVNode)(2,c.Section,{level:2,title:(0,i.toTitleCase)(e.name)+(e.damage?" (damaged)":""),buttons:(0,o.createFragment)([e.can_select?(0,o.createComponentVNode)(2,c.Button,{selected:e.name===u,content:e.name===u?"Selected":"Select",icon:"arrow-circle-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select"})}}):null,e.can_use?(0,o.createComponentVNode)(2,c.Button,{content:e.engagestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"engage"})}}):null,e.can_toggle?(0,o.createComponentVNode)(2,c.Button,{selected:e.is_active,content:e.is_active?e.deactivatestring:e.activatestring,icon:"arrow-circle-down",onClick:function(){return a("interact_module",{module:e.index,module_mode:"toggle"})}}):null],0),children:[e.damage>=2?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,o.createComponentVNode)(2,c.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:[(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Engage: ",e.engagecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Active: ",e.activecost]}),(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["Passive: ",e.passivecost]})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:e.desc})]}),e.charges?(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Module Charges",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Selected",children:(0,i.capitalize)(e.chargetype)}),e.charges.map((function(n,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.capitalize)(n.caption),children:(0,o.createComponentVNode)(2,c.Button,{selected:e.realchargetype===n.index,icon:"arrow-right",onClick:function(){return a("interact_module",{module:e.index,module_mode:"select_charge_type",charge_type:n.index})}})},n.caption)}))]})})}):null]},e.name)}))]})}},17481:function(e,n,t){"use strict";n.__esModule=!0,n.Radio=void 0;var o=t(39812),r=(t(64499),t(41860)),c=t(71494),a=t(74814),i=t(76270),l=t(85952);n.Radio=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.rawfreq,m=s.minFrequency,p=s.maxFrequency,C=s.listening,h=s.broadcasting,N=s.subspace,V=s.subspaceSwitchable,b=s.chan_list,f=s.loudspeaker,g=s.mic_cut,v=s.spk_cut,k=s.useSyndMode,B=i.RADIO_CHANNELS.find((function(e){return e.freq===Number(u)})),L=156;return b&&b.length>0?L+=28*b.length+6:L+=24,V&&(L+=38),(0,o.createComponentVNode)(2,l.Window,{width:310,height:L,resizable:!0,theme:k?"syndicate":"",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,a.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:m/10,maxValue:p/10,value:u/10,format:function(e){return(0,r.toFixed)(e,1)},onDrag:function(e,n){return d("setFrequency",{freq:(0,r.round)(10*n)})}}),B&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:B.color,ml:2,children:["[",B.name,"]"]})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Audio",children:[(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:C?"volume-up":"volume-mute",selected:C,disabled:v,onClick:function(){return d("listen")}}),(0,o.createComponentVNode)(2,a.Button,{textAlign:"center",width:"37px",icon:h?"microphone":"microphone-slash",selected:h,disabled:g,onClick:function(){return d("broadcast")}}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"bullhorn",selected:N,content:"Subspace Tx "+(N?"ON":"OFF"),onClick:function(){return d("subspace")}})}),!!V&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"volume-up":"volume-mute",selected:f,content:"Loudspeaker",onClick:function(){return d("toggleLoudspeaker")}})})]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Channels",children:[(!b||0===b.length)&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,o.createComponentVNode)(2,a.LabeledList,{children:b?b.map((function(e){var n=i.RADIO_CHANNELS.find((function(n){return n.freq===Number(e.freq)})),t="default";return n&&(t=n.color),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.display_name,labelColor:t,textAlign:"right",children:e.secure_channel&&N?(0,o.createComponentVNode)(2,a.Button,{icon:e.sec_channel_listen?"square-o":"check-square-o",selected:!e.sec_channel_listen,content:e.sec_channel_listen?"Off":"On",onClick:function(){return d("channel",{channel:e.chan})}}):(0,o.createComponentVNode)(2,a.Button,{content:"Switch",selected:e.chan===u,onClick:function(){return d("specFreq",{channel:e.chan})}})},e.chan)})):null})]})]})})}},29509:function(e,n,t){"use strict";n.__esModule=!0,n.RapidPipeDispenser=n.ICON_BY_CATEGORY_NAME=void 0;var o=t(39812),r=t(34380),c=t(2497),a=t(71494),i=t(74814),l=t(85952),d=["Atmospherics","Disposals"],s={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"};n.ICON_BY_CATEGORY_NAME=s;var u=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,m=l.category,p=l.selected_color,C=l.mode;return(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Category",children:d.map((function(e,n){return(0,o.createComponentVNode)(2,i.Button,{selected:m===n,icon:s[e],color:"transparent",onClick:function(){return r("category",{category:n})},children:e},e)}))}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Modes",children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:C&e.bitmask,fluid:!0,content:e.name,onClick:function(){return r("mode",{mode:e.bitmask})}})},e.bitmask)}))})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,width:"64px",color:l.paint_colors[p],children:(0,c.capitalize)(p)}),Object.keys(l.paint_colors).map((function(e){return(0,o.createComponentVNode)(2,i.ColorBox,{ml:1,color:l.paint_colors[e],onClick:function(){return r("color",{paint_color:e})}},e)}))]})]})})},p=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.category,s=l.piping_layer,u=l.preview_rows.flatMap((function(e){return e.previews}));return(0,o.createComponentVNode)(2,i.Section,{fill:!0,width:7.5,children:[0===d&&(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,mb:1,children:[1,2,3,4,5].map((function(e){return(0,o.createComponentVNode)(2,i.Stack.Item,{my:0,children:(0,o.createComponentVNode)(2,i.Button.Checkbox,{checked:e===s,content:"Layer "+e,onClick:function(){return c("piping_layer",{piping_layer:e})}})},e)}))}),(0,o.createComponentVNode)(2,i.Box,{width:"120px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{ml:0,title:e.dir_name,selected:e.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return c("setdir",{dir:e.dir,flipped:e.flipped})},children:(0,o.createComponentVNode)(2,i.Box,{className:(0,r.classes)(["pipes32x32",e.dir+"-"+e.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},e.dir)}))})]})},C=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.categories,l=void 0===c?[]:c,d=(0,a.useLocalState)(n,"categoryName"),u=d[0],m=d[1],p=l.find((function(e){return e.cat_name===u}))||l[0];return(0,o.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{fluid:!0,icon:s[e.cat_name],selected:e.cat_name===p.cat_name,onClick:function(){return m(e.cat_name)},children:e.cat_name},e.cat_name)}))}),null==p?void 0:p.recipes.map((function(e){return(0,o.createComponentVNode)(2,i.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:e.selected,content:e.pipe_name,title:e.pipe_name,onClick:function(){return r("pipe_type",{pipe_type:e.pipe_index,category:p.cat_name})}},e.pipe_index)}))]})};n.RapidPipeDispenser=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data.category;return(0,o.createComponentVNode)(2,l.Window,{width:550,height:570,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,p)})})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,C)})]})})]})})})}},53976:function(e,n,t){"use strict";n.__esModule=!0,n.RequestConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).act,r=e.dept_list,i=e.department;return(0,o.createComponentVNode)(2,a.LabeledList,{children:r.sort().map((function(e){return e!==i&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"envelope-open-text",onClick:function(){return t("write",{write:e,priority:1})},children:"Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",onClick:function(){return t("write",{write:e,priority:2})},children:"High Priority"})],4)})||null}))})},d={0:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.silent;return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,a.Button,{selected:!i,icon:i?"volume-mute":"volume-up",onClick:function(){return r("toggleSilent")},children:["Speaker ",i?"OFF":"ON"]})})},1:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.assist_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Request assistance from another department",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},2:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.supply_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Supplies",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},3:function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.department,d=r.info_dept;return(0,o.createComponentVNode)(2,a.Section,{title:"Report Anonymous Information",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:i})})},4:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},5:function(e,n){var t=(0,c.useBackend)(n),r=t.act;t.data;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},6:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.message_log;return(0,o.createComponentVNode)(2,a.Section,{title:"Messages",children:l.length&&l.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.decodeHtmlEntities)(e[0]),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return i("print",{print:n+1})},children:"Print"}),children:(0,r.decodeHtmlEntities)(e[1])},n)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No messages."})})},7:function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.message,s=l.recipient,u=l.priority,m=l.msgStamped,p=l.msgVerified;return(0,o.createComponentVNode)(2,a.Section,{title:"Message Authentication",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Message for "+s,children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Priority",children:2===u?"High Priority":1===u?"Normal Priority":"Unknown"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Validated By",color:p?"good":"bad",children:(0,r.decodeHtmlEntities)(p)||"No Validation"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stamped By",color:m?"good":"bad",children:(0,r.decodeHtmlEntities)(m)||"No Stamp"})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"share",onClick:function(){return i("department",{department:s})},children:"Send Message"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:0})},children:"Back"})]})},8:function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=(i.department,i.screen,i.message_log,i.newmessagepriority,i.silent,i.announcementConsole,i.assist_dept,i.supply_dept,i.info_dept,i.message),d=(i.recipient,i.priority,i.msgStamped,i.msgVerified,i.announceAuth);return(0,o.createComponentVNode)(2,a.Section,{title:"Send Station-Wide Announcement",children:[d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,o.createComponentVNode)(2,a.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"pen",onClick:function(){return r("writeAnnouncement")},children:"Edit"}),children:l||"No Message"})],4)||(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l||!d,icon:"share",onClick:function(){return r("sendAnnouncement")},children:"Announce"}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return r("setScreen",{setScreen:0})},children:"Back"})]})}};n.RequestConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,s=l.screen,u=l.newmessagepriority,m=l.announcementConsole,p=d[s];return(0,o.createComponentVNode)(2,i.Window,{width:520,height:410,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:6===s,onClick:function(){return r("setScreen",{setScreen:6})},icon:"envelope-open-text",children:"Messages"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===s,onClick:function(){return r("setScreen",{setScreen:1})},icon:"share-square",children:"Assistance"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===s,onClick:function(){return r("setScreen",{setScreen:2})},icon:"share-square",children:"Supplies"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===s,onClick:function(){return r("setScreen",{setScreen:3})},icon:"share-square-o",children:"Report"}),m&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:8===s,onClick:function(){return r("setScreen",{setScreen:8})},icon:"volume-up",children:"Announce"})||null,(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===s,onClick:function(){return r("setScreen",{setScreen:0})},icon:"cog"})]}),u&&(0,o.createComponentVNode)(2,a.Section,{title:u>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:u>1?"bad":"average",bold:u>1})||null,(0,o.createComponentVNode)(2,p)]})})}},48639:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchConsole=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t=(0,c.useBackend)(n).data,o=e.title,r=t[e.target];return"number"==typeof r?o+" - Page "+(r+1):o},d=function(e,n){var t=(0,c.useBackend)(n).act,r=e.target;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return t(r,{reset:!0})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-left",onClick:function(){return t(r,{reverse:-1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"chevron-right",onClick:function(){return t(r,{reverse:1})}})],4)},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info.tech,l=e.disk;if(!l||!l.present)return null;var d=(0,c.useSharedState)(n,"saveDialogTech",!1),s=d[0],u=d[1];return s?(0,o.createComponentVNode)(2,a.Section,{title:"Load Technology to Disk",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return u(!1)}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){u(!1),r("copy_tech",{copy_tech_ID:e.id})},children:"Copy To Disk"})},e.name)}))})}):(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),l.stored&&(0,o.createComponentVNode)(2,a.Box,{mt:2,children:[(0,o.createComponentVNode)(2,a.Box,{children:l.name}),(0,o.createComponentVNode)(2,a.Box,{children:["Level: ",l.level]}),(0,o.createComponentVNode)(2,a.Box,{children:["Description: ",l.desc]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_tech")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_tech")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return u(!0)},children:"Load Tech To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})},u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.info.designs,u=e.disk;if(!u||!u.present)return null;var m=(0,c.useSharedState)(n,"saveDialogData",!1),p=m[0],C=m[1];return p?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",onClick:function(){return C(!1)}}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){C(!1),r("copy_design",{copy_design_ID:e.id})},children:"Copy To Disk"})},e.name)}))})]}):(0,o.createComponentVNode)(2,a.Box,{children:u.stored&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Lathe Type",children:u.build_type}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Required Materials",children:Object.keys(u.materials).map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:[e," x ",u.materials[e]]},e)}))})]}),(0,o.createComponentVNode)(2,a.Box,{mt:1,children:[(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return r("updt_design")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return r("clear_design")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,a.Button,{icon:"save",onClick:function(){return C(!0)},children:"Load Design To Disk"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})})},m=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=e.target,u=e.designs,m=e.buildName,p=e.buildFiveName;return s?(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{target:"builder_page",title:"Designs"}),buttons:(0,o.createComponentVNode)(2,d,{target:"builder_page"}),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),u&&u.length?u.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Flex,{width:"100%",justify:"space-between",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:e.name}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"15%",textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Button,{mb:-1,icon:"wrench",onClick:function(){return r(m,{build:e.id,imprint:e.id})},children:"Build"}),p&&(0,o.createComponentVNode)(2,a.Button,{mb:-1,onClick:function(){return r(p,{build:e.id,imprint:e.id})},children:"x5"})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",children:e.mat_list.join(" ")}),(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",ml:1,children:e.chem_list.join(" ")})]})]}),(0,o.createComponentVNode)(2,a.Divider)],4,e.id)})):(0,o.createComponentVNode)(2,a.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error"})},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=e.name,s=null,u=null;if("Protolathe"===d?(s=l.info.linked_lathe,u=l.lathe_designs):(s=l.info.linked_imprinter,u=l.imprinter_designs),!s||!s.present)return(0,o.createComponentVNode)(2,a.Section,{title:d,children:["No ",d," found."]});var p=s,C=p.total_materials,h=p.max_materials,N=p.total_volume,V=p.max_volume,b=p.busy,f=p.mats,g=p.reagents,v=p.queue,k=(0,c.useSharedState)(n,"protoTab",0),B=k[0],L=k[1],_="transparent",x=!1,w="layer-group";b?(w="hammer",_="average",x=!0):v&&v.length&&(w="sync",_="green",x=!0);var S="Protolathe"===d?"removeP":"removeI",I="Protolathe"===d?"lathe_ejectsheet":"imprinter_ejectsheet",y="Protolathe"===d?"disposeP":"disposeI",T="Protolathe"===d?"disposeallP":"disposeallI";return(0,o.createComponentVNode)(2,a.Section,{title:d,buttons:b&&(0,o.createComponentVNode)(2,a.Icon,{name:"sync",spin:!0})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Materials",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:C,maxValue:h,children:[C," cm\xb3 / ",h," cm\xb3"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Chemicals",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:N,maxValue:V,children:[N,"u / ",V,"u"]})})]}),(0,o.createComponentVNode)(2,a.Tabs,{mt:1,children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"wrench",selected:0===B,onClick:function(){return L(0)},children:"Build"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:w,iconSpin:x,color:_,selected:1===B,onClick:function(){return L(1)},children:"Queue"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cookie-bite",selected:2===B,onClick:function(){return L(2)},children:"Mat Storage"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"flask",selected:3===B,onClick:function(){return L(3)},children:"Chem Storage"})]}),0===B&&(0,o.createComponentVNode)(2,m,{target:s,designs:u,buildName:"Protolathe"===d?"build":"imprint",buildFiveName:"Protolathe"===d?"buildfive":null})||1===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:v.length&&v.map((function(e){return 1===e.index?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,labelColor:"bad",children:b?(0,o.createComponentVNode)(2,a.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,o.createComponentVNode)(2,a.Box,{children:["(Awaiting Materials)",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})]})}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){var n;return i(S,((n={})[S]=e.index,n))},children:"Remove"})},e.name)}))||(0,o.createComponentVNode)(2,a.Box,{m:1,children:"Queue Empty."})})||2===B&&(0,o.createComponentVNode)(2,a.LabeledList,{children:f.map((function(e){var t=(0,c.useLocalState)(n,"ejectAmt"+e.name,0),l=t[0],d=t[1];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.NumberInput,{minValue:0,width:"100px",value:l,maxValue:e.sheets,onDrag:function(e,n){return d(n)}}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;d(0),i(I,((n={})[I]=e.name,n.amount=l,n))},children:"Num"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var n;return i(I,((n={})[I]=e.name,n.amount=50,n))},children:"All"})],4),children:[e.amount," cm\xb3"]},e.name)}))})||3===B&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:g.length&&g.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.volume,"u",(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"eject",onClick:function(){return i(y,{dispose:e.id})},children:"Purge"})]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"trash",onClick:function(){return i(T)},children:"Disposal All Chemicals In Storage"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})},C=[{name:"Protolathe",icon:"wrench",template:(0,o.createComponentVNode)(2,p,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,o.createComponentVNode)(2,p,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info.linked_destroy;if(!i.present)return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var l=i.loaded_item,d=i.origin_tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Destructive Analyzer",children:l&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Origin Tech",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:[e.level,"\xa0\xa0",e.current&&"(Current: "+e.current+")"]},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,o.createComponentVNode)(2,a.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){return r("deconstruct")},children:"Deconstruct Item"}),(0,o.createComponentVNode)(2,a.Button,{icon:"eject",onClick:function(){return r("eject_item")},children:"Eject Item"})]})||(0,o.createComponentVNode)(2,a.Box,{children:"No Item Loaded. Standing-by..."})})}))},{name:"Settings",icon:"cog",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.info,l=i.sync,d=i.linked_destroy,s=i.linked_imprinter,u=i.linked_lathe,m=(0,c.useSharedState)(n,"settingsTab",0),p=m[0],C=m[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Settings",children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"cogs",onClick:function(){return C(0)},selected:0===p,children:"General"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"link",onClick:function(){return C(1)},selected:1===p,children:"Device Linkages"})]}),0===p&&(0,o.createComponentVNode)(2,a.Box,{children:[l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",onClick:function(){return r("sync")},children:"Sync Database with Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"unlink",onClick:function(){return r("togglesync")},children:"Disconnect from Research Network"})],4)||(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"link",onClick:function(){return r("togglesync")},children:"Connect to Research Network"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"lock",onClick:function(){return r("lock")},children:"Lock Console"}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){return r("reset")},children:"Reset R&D Database"})]})||1===p&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){return r("find_device")},children:"Re-sync with Nearby Devices"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[d.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Destructive Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,u.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Protolathe",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,s.present&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Circuit Imprinter",children:(0,o.createComponentVNode)(2,a.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,o.createComponentVNode)(2,a.Box,{children:"Error"})]})}))},{name:"Research List",icon:"flask",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.tech;return(0,o.createComponentVNode)(2,a.Section,{title:"Current Research Levels",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:1})},children:"Print This Page"}),children:(0,o.createComponentVNode)(2,a.Table,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{children:[" - Level ",e.level]})]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.desc})})]},e.name)}))})})}))},{name:"Design List",icon:"file",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,s=i.designs;return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"print",onClick:function(){return r("print",{print:2})},children:"Print This Page"}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(e,n){return r("search",{search:n})},mb:1}),s&&s.length&&(0,o.createComponentVNode)(2,a.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:e.desc},e.name)}))})||(0,o.createComponentVNode)(2,a.Box,{color:"warning",children:"No designs found."})]})}))},{name:"Disk Operations",icon:"save",template:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.info),i=r.d_disk,l=r.t_disk;return i.present||l.present?(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:[(0,o.createComponentVNode)(2,s,{disk:l}),(0,o.createComponentVNode)(2,u,{disk:i})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Disk Operations",children:"No disk inserted."})}))}];n.ResearchConsole=function(e,n){var t=(0,c.useBackend)(n),r=t.act,l=t.data,d=l.busy_msg,s=l.locked,u=(0,c.useSharedState)(n,"rdmenu",0),m=u[0],p=u[1],h=!1;return(d||s)&&(h=!0),(0,o.createComponentVNode)(2,i.Window,{width:850,height:630,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Tabs,{children:C.map((function(e,n){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:e.icon,selected:m===n,disabled:h,onClick:function(){return p(n)},children:e.name},n)}))}),d&&(0,o.createComponentVNode)(2,a.Section,{title:"Processing...",children:d})||s&&(0,o.createComponentVNode)(2,a.Section,{title:"Console Locked",children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("lock")},icon:"lock-open",children:"Unlock"})})||C[m].template]})})}},35606:function(e,n,t){"use strict";n.__esModule=!0,n.ResearchServerController=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(64499);n.ResearchServerController=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:430,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data),i=(a.badmin,a.servers),l=(a.consoles,(0,r.useSharedState)(n,"selectedServer",null)),s=l[0],u=l[1],m=i.find((function(e){return e.id===s}));return m?(0,o.createComponentVNode)(2,d,{setSelectedServer:u,server:m}):(0,o.createComponentVNode)(2,c.Section,{title:"Server Selection",children:i.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return u(e.id)},children:e.name})},e.name)}))})},d=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.badmin),i=e.server,l=e.setSelectedServer,d=(0,r.useSharedState)(n,"tab",0),p=d[0],C=d[1];return(0,o.createComponentVNode)(2,c.Section,{title:i.name,buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"undo",onClick:function(){return l(null)},children:"Back"}),children:[(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:0===p,onClick:function(){return C(0)},children:"Access Rights"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:1===p,onClick:function(){return C(1)},children:"Data Management"}),a&&(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===p,onClick:function(){return C(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),0===p&&(0,o.createComponentVNode)(2,s,{server:i})||null,1===p&&(0,o.createComponentVNode)(2,u,{server:i})||null,2===p&&a&&(0,o.createComponentVNode)(2,m,{server:i})||null]})},s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.consoles,s=function(e,n){return-1!==e.id_with_upload.indexOf(n.id)},u=function(e,n){return-1!==e.id_with_download.indexOf(n.id)};return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Consoles",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.loc+")",children:[(0,o.createComponentVNode)(2,c.Button,{icon:s(l,e)?"lock-open":"lock",selected:s(l,e),onClick:function(){return a("toggle_upload",{server:l.ref,console:e.ref})},children:s(l,e)?"Upload On":"Upload Off"}),(0,o.createComponentVNode)(2,c.Button,{icon:u(l,e)?"lock-open":"lock",selected:u(l,e),onClick:function(){return a("toggle_download",{server:l.ref,console:e.ref})},children:u(l,e)?"Download On":"Download Off"})]},e.name)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,l=(t.data,e.server);return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Research Levels",children:l.tech.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return a("reset_tech",{server:l.ref,tech:e.id})}})},e.name)}))}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Designs",children:(0,i.filter)((function(e){return!!e.name}))(l.designs).map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return a("reset_design",{server:l.ref,design:e.id})}})},e.name)}))})],4)},m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.server,d=i.badmin,s=i.servers;return d?(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Server Data Transfer",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button.Confirm,{fluid:!0,color:"bad",content:(0,o.createComponentVNode)(2,c.Box,{children:["Transfer from ",l.name," To ",e.name]}),onClick:function(){return a("transfer_data",{server:l.ref,target:e.ref})}})},e.name)}))}):null}},86330:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingConsole=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=(t(76270),t(16007)),l=t(85952),d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.obviously_dead,u=i.oocnotes,m=i.can_sleeve_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!m,icon:"user-plus",content:"Sleeve",onClick:function(){return r("sleeve",{ref:l,mode:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-plus",content:"Card",onClick:function(){return r("sleeve",{ref:l,mode:2})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:u})})]})})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.args),l=i.activerecord,d=i.realname,s=i.species,u=i.sex,m=i.mind_compat,p=i.synthetic,C=i.oocnotes,h=i.can_grow_active;return(0,o.createComponentVNode)(2,a.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+d+")",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:s}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bio. Sex",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Compat",children:m}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Synthetic",children:p?"Yes":"No"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,a.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:C})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,a.Button,{disabled:!h,icon:"user-plus",content:p?"Build":"Grow",onClick:function(){return r("create",{ref:l})}})})]})})};n.ResleevingConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),h=(r.menu,r.coredumped),N=r.emergency,V=(0,o.createFragment)([(0,o.createComponentVNode)(2,g),(0,o.createComponentVNode)(2,v),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,a.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})],4);return h&&(V=(0,o.createComponentVNode)(2,p)),N&&(V=(0,o.createComponentVNode)(2,C)),(0,i.modalRegisterBodyOverride)("view_b_rec",s),(0,i.modalRegisterBodyOverride)("view_m_rec",d),(0,o.createComponentVNode)(2,l.Window,{width:640,height:520,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:V})]})};var u=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.menu;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===i,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Body Records"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:3===i,icon:"folder",onClick:function(){return r("menu",{num:3})},children:"Mind Records"})]})},m=function(e,n){var t,r=(0,c.useBackend)(n).data,a=r.menu,i=r.bodyrecords,l=r.mindrecords;return 1===a?t=(0,o.createComponentVNode)(2,h):2===a?t=(0,o.createComponentVNode)(2,f,{records:i,actToDo:"view_b_rec"}):3===a&&(t=(0,o.createComponentVNode)(2,f,{records:l,actToDo:"view_m_rec"})),t},p=function(e,n){return(0,o.createComponentVNode)(2,a.Dimmer,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,o.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},C=function(e,n){var t=(0,c.useBackend)(n).act;return(0,o.createComponentVNode)(2,a.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:(0,o.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return t("ejectdisk")}})}),(0,o.createComponentVNode)(2,a.Box,{mt:4,children:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return t("coredump")}})})]})},h=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data);r.loading,r.scantemp,r.occupant,r.locked,r.can_brainscan,r.scan_mode,r.pods,r.selected_pod;return(0,o.createComponentVNode)(2,a.Section,{title:"Pods",level:"2",children:[(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,b),(0,o.createComponentVNode)(2,V)]})},N=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.pods,s=l.spods,u=l.selected_pod;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:u===e.pod,icon:u===e.pod&&"check",content:"Select",mt:s&&s.length?"2rem":"0.5rem",onClick:function(){return i("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),t]},n)})):null},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.sleevers,d=i.spods,s=i.selected_sleever;return l&&l.length?l.map((function(e,n){return(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(e.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:e.occupied?"label":"bad",children:e.name}),(0,o.createComponentVNode)(2,a.Button,{selected:s===e.sleever,icon:s===e.sleever&&"check",content:"Select",mt:d&&d.length?"3rem":"1.5rem",onClick:function(){return r("selectsleever",{ref:e.sleever})}})]},n)})):null},b=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.spods,s=l.selected_printer;return d&&d.length?d.map((function(e,n){var t;return t="cloning"===e.status?(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,a.Button,{selected:s===e.spod,icon:s===e.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return i("selectprinter",{ref:e.spod})}}),(0,o.createComponentVNode)(2,a.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(e.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,a.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.steel>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.steel>=15e3?"circle":"circle-o"}),"\xa0",e.steel]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,color:e.glass>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,a.Icon,{name:e.glass>=15e3?"circle":"circle-o"}),"\xa0",e.glass]}),t]},n)})):null},f=function(e,n){var t=(0,c.useBackend)(n).act,r=e.records,i=e.actToDo;return r.length?(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:r.map((function(e,n){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",content:e.name,onClick:function(){return t(i,{ref:e.recref})}},n)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},g=function(e,n){var t,r=(0,c.useBackend)(n),i=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((t={})[l.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return i("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}},v=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=r.pods,l=r.spods,d=r.sleevers;r.autoallowed,r.autoprocess,r.disk;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pods",children:i&&i.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[i.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"SynthFabs",children:l&&l.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[l.length," connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sleevers",children:d&&d.length?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:[d.length," Connected"]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"None connected!"})})]})})}},88359:function(e,n,t){"use strict";n.__esModule=!0,n.ResleevingPod=void 0;var o=t(39812),r=t(85952),c=t(71494),a=t(74814);n.ResleevingPod=function(e,n){var t=(0,c.useBackend)(n).data,i=t.occupied,l=t.name,d=t.health,s=t.maxHealth,u=t.stat,m=t.mindStatus,p=t.mindName,C=t.resleeveSick,h=t.initialSick;return(0,o.createComponentVNode)(2,r.Window,{width:300,height:350,resizeable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",children:i?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:2===u?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DEAD"}):1===u?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"Unconscious"}):(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:d/s,children:[d,"%"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Status",children:m?"Present":"Missing"}),m?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),C?(0,o.createComponentVNode)(2,a.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",h?(0,o.createFragment)([(0,o.createTextVNode)(" Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],4):""]}):""],0):(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}},24455:function(e,n,t){"use strict";n.__esModule=!0,n.RoboticsControlConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RoboticsControlConsole=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.can_hack,u=d.safety,m=d.show_detonate_all,p=d.cyborgs,C=void 0===p?[]:p;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:460,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[!!m&&(0,o.createComponentVNode)(2,c.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,i,{cyborgs:C,can_hack:s})]})})};var i=function(e,n){var t=e.cyborgs,a=(e.can_hack,(0,r.useBackend)(n)),i=a.act,l=a.data;return t.length?t.map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,c.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return i("hackbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return i("stopbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return i("killbot",{ref:e.ref})}})],0),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,c.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,c.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,c.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,c.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.ref)})):(0,o.createComponentVNode)(2,c.NoticeBox,{children:"No cyborg units detected within access parameters."})}},52330:function(e,n,t){"use strict";n.__esModule=!0,n.RogueZones=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.RogueZones=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.timeout_percent,s=l.diffstep,u=l.difficulty,m=l.occupied,p=l.scanning,C=l.updated,h=l.debug,N=l.shuttle_location,V=l.shuttle_at_station,b=l.scan_ready,f=l.can_recall_shuttle;return(0,o.createComponentVNode)(2,a.Window,{width:360,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Current Area",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mineral Content",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shuttle Location",buttons:f&&(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"rocket",onClick:function(){return i("recall_shuttle")},children:"Recall Shuttle"})||null,children:N}),m&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",m," personnel!"]})||(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!b,fluid:!0,icon:"search",onClick:function(){return i("scan_for_new")},children:"Scan For Asteroids"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:d,maxValue:100,ranges:{good:[100,Infinity],average:[75,100],bad:[-Infinity,75]}})}),p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,C&&!p&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,h&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,o.createComponentVNode)(2,c.Box,{children:["Timeout Percent: ",d]}),(0,o.createComponentVNode)(2,c.Box,{children:["Diffstep: ",s]}),(0,o.createComponentVNode)(2,c.Box,{children:["Difficulty: ",u]}),(0,o.createComponentVNode)(2,c.Box,{children:["Occupied: ",m]}),(0,o.createComponentVNode)(2,c.Box,{children:["Debug: ",h]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle Location: ",N]}),(0,o.createComponentVNode)(2,c.Box,{children:["Shuttle at station: ",V]}),(0,o.createComponentVNode)(2,c.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}},59412:function(e,n,t){"use strict";n.__esModule=!0,n.RustCoreMonitorContent=n.RustCoreMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustCoreMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.cores;return(0,o.createComponentVNode)(2,a.Section,{title:"Cores",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Reactant Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Instability"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Temperature"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Field Strength"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Plasma Content"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.has_field?"Online":"Offline",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_active",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.reactant_dump?"Dump":"Maintain",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return c("toggle_reactantdump",{core:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_instability}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.field_temperature}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.has_field&&"yellow",value:e.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(n,t){return c("set_fieldstr",{core:e.ref,fieldstr:t})}})}),(0,o.createComponentVNode)(2,a.Table.Cell)]},e.name)}))]})})};n.RustCoreMonitorContent=i},59327:function(e,n,t){"use strict";n.__esModule=!0,n.RustFuelContent=n.RustFuelControl=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.RustFuelControl=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.fuels;return(0,o.createComponentVNode)(2,a.Section,{title:"Fuel Injectors",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return c("set_tag")}}),children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Remaining Fuel"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Fuel Rod Composition"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return c("toggle_active",{fuel:e.ref})}})}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_amt}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.fuel_type})]},e.name)}))]})})};n.RustFuelContent=i},54943:function(e,n,t){"use strict";n.__esModule=!0,n.Secbot=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Secbot=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.on,s=l.open,u=l.locked,m=l.idcheck,p=l.check_records,C=l.check_arrest,h=l.arrest_type,N=l.declare_arrests,V=l.bot_patrolling,b=l.patrol;return(0,o.createComponentVNode)(2,a.Window,{width:390,height:320,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Automatic Security Unit v2.0",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:d,onClick:function(){return i("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,c.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return i("idcheck")},children:m?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Security Records",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return i("ignorerec")},children:p?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Check Arrest Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return i("ignorearr")},children:C?"Yes":"No"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Operating Mode",children:(0,o.createComponentVNode)(2,c.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return i("switchmode")},children:h?"Detain":"Arrest"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Report Arrests",children:(0,o.createComponentVNode)(2,c.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return i("declarearrests")},children:N?"Yes":"No"})}),!!V&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Auto Patrol",children:(0,o.createComponentVNode)(2,c.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return i("patrol")},children:b?"Yes":"No"})})]})})||null]})})}},57436:function(e,n,t){"use strict";n.__esModule=!0,n.SecureSafe=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.l_setshort,s=i.code,u=i.emagged;return(0,o.createComponentVNode)(2,c.Box,{width:"185px",children:(0,o.createComponentVNode)(2,c.Grid,{width:"1px",children:[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,c.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{fluid:!0,bold:!0,mb:"6px",content:e,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!u||!!d&&1||"R"!==e&&!l||"ERROR"===s&&"R"!==e&&1,onClick:function(){return a("type",{digit:e})}},e)}))},e[0])}))})})};n.SecureSafe=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.code,s=l.l_setshort,u=l.l_set,m=l.emagged,p=l.locked,C=!(u||s);return(0,o.createComponentVNode)(2,a.Window,{width:250,height:380,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Box,{m:"6px",children:[C&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!s&&(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,o.createComponentVNode)(2,c.Section,{height:"60px",children:(0,o.createComponentVNode)(2,c.Box,{textAlign:"center",position:"center",fontSize:"35px",children:d&&d||(0,o.createComponentVNode)(2,c.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,o.createComponentVNode)(2,c.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}},71915:function(e,n,t){"use strict";n.__esModule=!0,n.SecurityRecords=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(16007),i=t(85952),l=t(28117),d=t(1192),s=t(36355),u=(t(2497),function(e,n){(0,a.modalOpen)(e,"edit",{field:n.edit,value:n.value})});n.SecurityRecords=function(e,n){var t,u=(0,r.useBackend)(n).data,h=u.authenticated,N=u.screen;return h?(2===N?t=(0,o.createComponentVNode)(2,m):3===N?t=(0,o.createComponentVNode)(2,p):4===N&&(t=(0,o.createComponentVNode)(2,C)),(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:[(0,o.createComponentVNode)(2,a.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,c.Section,{flexGrow:!0,children:t})]})]})):(0,o.createComponentVNode)(2,i.Window,{width:700,height:680,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,n){return a("search",{t1:n})}}),(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{icon:"user",mb:"0.5rem",color:e.color,content:e.id+": "+e.name+" (Criminal Status: "+e.criminal+")",onClick:function(){return a("d_rec",{d_rec:e.ref})}},n)}))})],4)},p=function(e,n){var t=(0,r.useBackend)(n).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0}),(0,o.createTextVNode)(" "),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return t("del_all")}})],4)},C=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.security,d=i.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"General Data",mt:"-6px",children:(0,o.createComponentVNode)(2,h)}),(0,o.createComponentVNode)(2,c.Section,{title:"Security Data",children:(0,o.createComponentVNode)(2,N)}),(0,o.createComponentVNode)(2,c.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Security Record",color:"bad",onClick:function(){return a("del_r")}}),(0,o.createComponentVNode)(2,c.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return a("del_r_2")}}),(0,o.createComponentVNode)(2,c.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return a("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return a("screen",{screen:2})}})]})],4)},h=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.general;return i&&i.fields?(0,o.createComponentVNode)(2,c.Flex,{children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:i.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,c.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(n,e)}})]},t)}))})}),(0,o.createComponentVNode)(2,c.Flex.Item,{textAlign:"right",children:[!!i.has_photos&&i.photos.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",n+1]},n)})),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_front")},children:"Update Front Photo"}),(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("photo_side")},children:"Update Side Photo"})]})]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General records lost!"})},N=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:l.fields.map((function(e,t){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.field,preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,c.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(n,e)}})]},t)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Comments/Log",children:[0===l.comments.length?(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,n){return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,c.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return i("del_c",{del_c:n+1})}})]},n)})),(0,o.createComponentVNode)(2,c.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,a.modalOpen)(n,"add_c")}})]})],4):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Security records lost!",(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return i("new")}})]})},V=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.screen;return(0,o.createComponentVNode)(2,c.Tabs,{children:[(0,o.createComponentVNode)(2,c.Tabs.Tab,{selected:2===i,icon:"list",onClick:function(){return a("screen",{screen:2})},children:"List Records"}),(0,o.createComponentVNode)(2,c.Tabs.Tab,{icon:"wrench",selected:3===i,onClick:function(){return a("screen",{screen:3})},children:"Record Maintenance"})]})}},93550:function(e,n,t){"use strict";n.__esModule=!0,n.SeedStorage=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497),l=t(64499);n.SeedStorage=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=(s.scanner,s.seeds),m=(0,l.sortBy)((function(e){return e.name.toLowerCase()}))(u);return(0,o.createComponentVNode)(2,a.Window,{width:600,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Seeds",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Flex,{spacing:1,mt:-1,children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"60%",children:(0,o.createComponentVNode)(2,c.Collapsible,{title:(0,i.toTitleCase)(e.name)+" #"+e.uid,children:(0,o.createComponentVNode)(2,c.Section,{width:"165%",title:"Traits",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:Object.keys(e.traits).map((function(n){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(0,i.toTitleCase)(n),children:e.traits[n]},n)}))})})})}),(0,o.createComponentVNode)(2,c.Flex.Item,{mt:.4,children:[e.amount," Remaining"]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"download",onClick:function(){return d("vend",{id:e.id})},children:"Vend"})}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"trash",onClick:function(){return d("purge",{id:e.id})},children:"Purge"})})]},e.name+e.uid)}))})})})}},16765:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldCapacitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083);n.ShieldCapacitor=function(e,n){var t=(0,r.useBackend)(n),d=t.act,s=t.data,u=s.active,m=s.time_since_fail,p=s.stored_charge,C=s.max_charge,h=s.charge_rate,N=s.max_charge_rate;return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return d("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor Status",children:m>2?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging!"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Stored Energy",children:[(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:p,format:function(e){return(0,l.formatSiUnit)(e,0,"J")}})," (",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:100*(0,i.round)(p/C,1)}),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{value:h,step:100,stepPixelSize:.2,minValue:1e4,maxValue:N,format:function(e){return(0,l.formatPower)(e)},onDrag:function(e,n){return d("charge_rate",{rate:n})}})})]})})})})}},79229:function(e,n,t){"use strict";n.__esModule=!0,n.ShieldGenerator=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814),i=t(41860),l=t(58083),d=t(67861);n.ShieldGenerator=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.locked);return(0,o.createComponentVNode)(2,c.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:a?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,u)})})};var s=function(e,n){return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Locked",children:[(0,o.createComponentVNode)(2,a.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,a.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},u=function(e,n){var t=(0,r.useBackend)(n),c=t.act,d=t.data.lockedData,s=d.capacitors,u=d.active,m=d.failing,p=d.radius,C=d.max_radius,h=d.z_range,N=d.max_z_range,V=d.average_field_strength,b=d.target_field_strength,f=d.max_field_strength,g=d.shields,v=d.upkeep,k=d.strengthen_rate,B=d.max_strengthen_rate,L=d.gen_power,_=(s||[]).length;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Field Status",children:m?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Unstable"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Stable"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Overall Field Strength",children:[(0,i.round)(V,2)," Renwick (",b&&(0,i.round)(100*V/b,1)||"NA","%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Upkeep Power",children:(0,l.formatPower)(v)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shield Generation Power",children:(0,l.formatPower)(L)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Currently Shielded",children:[g," m\xb2"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:_?s.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Capacitor #"+n,children:[e.active?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Online"}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Offline"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[(0,l.formatSiUnit)(e.stored_charge,0,"J")," (",100*(0,i.round)(e.stored_charge/e.max_charge,2),"%)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:e.failing?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Discharging"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"OK."})})]})]},n)})):(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:u?"Online":"Offline",selected:u,onClick:function(){return c("toggle")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Coverage Radius",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:C,value:p,unit:"m",onDrag:function(e,n){return c("change_radius",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vertical Shielding",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:N,value:h,unit:"vertical range",onDrag:function(e,n){return c("z_range",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:B,value:k,format:function(e){return(0,i.round)(e,1)},unit:"Renwick/s",onDrag:function(e,n){return c("strengthen_rate",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maximum Field Strength",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:f,value:b,unit:"Renwick",onDrag:function(e,n){return c("target_field_strength",{val:n})}})})]})})],4)}},89957:function(e,n,t){"use strict";n.__esModule=!0,n.ShutoffMonitorContent=n.ShutoffMonitor=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.ShutoffMonitor=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data.valves;return(0,o.createComponentVNode)(2,a.Section,{title:"Valves",children:(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Open"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Mode"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:"Actions"})]}),i.map((function(e){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.open?"Yes":"No"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:e.enabled?"Auto":"Manual"}),(0,o.createComponentVNode)(2,a.Table.Cell,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.open?"Opened":"Closed",selected:e.open,disabled:!e.enabled,onClick:function(){return c("toggle_open",{valve:e.ref})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",content:e.enabled?"Auto":"Manual",selected:e.enabled,onClick:function(){return c("toggle_enable",{valve:e.ref})}})]})]},e.name)}))]})})};n.ShutoffMonitorContent=i},34404:function(e,n,t){"use strict";n.__esModule=!0,n.ShuttleControl=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(85952),l=function(e,n){var t="ERROR",r="bad",c=!1;return"docked"===e?(t="DOCKED",r="good"):"docking"===e?(t="DOCKING",r="average",c=!0):"undocking"===e?(t="UNDOCKING",r="average",c=!0):"undocked"===e&&(t="UNDOCKED",r="#676767"),c&&n&&(t+="-MANUAL"),(0,o.createComponentVNode)(2,a.Box,{color:r,children:t})},d=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,d=e.engineName,s=void 0===d?"Bluespace Drive":d,u=i.shuttle_status,m=i.shuttle_state,p=i.has_docking,C=i.docking_status,h=i.docking_override,N=i.docking_codes;return(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",mb:1,children:u}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:s,children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",children:l(C,h)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Codes",children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return r("set_codes")},children:N||"Not Set"})})],4)||null]})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_launch,d=i.can_cancel,s=i.can_force;return(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("move")},disabled:!l,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("cancel")},disabled:!d,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return r("force")},color:"bad",disabled:!s,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},u={ShuttleControlConsoleDefault:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n);t.act,t.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleMulti:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_cloak,u=i.can_pick,m=i.legit,p=i.cloaked,C=i.destination_name;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Section,{title:"Multishuttle Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[l&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:m?"ATC Inhibitor":"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:p,icon:p?"eye":"eye-o",onClick:function(){return r("toggle_cloaked")},children:p?"Enabled":"Disabled"})})||null,(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!u,onClick:function(){return r("pick")},children:C})})]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleExploration:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.can_pick,u=i.destination_name,m=i.fuel_usage,p=i.fuel_span,C=i.remaining_fuel;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d,{engineName:"Engines"}),(0,o.createComponentVNode)(2,a.Section,{title:"Jump Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,a.Button,{icon:"taxi",disabled:!l,onClick:function(){return r("pick")},children:u})}),m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Est. Delta-V Budget",color:p,children:[C," m/s"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[m," m/s"]})],4)||null]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleWeb:(0,o.createComponentVNode)(2,(function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.autopilot,u=d.can_rename,m=d.shuttle_state,p=d.is_moving,C=d.skip_docking,h=d.docking_status,N=d.docking_override,V=d.shuttle_location,b=d.can_cloak,f=d.cloaked,g=d.can_autopilot,v=d.routes,k=d.is_in_transit,B=d.travel_progress,L=d.time_left,_=d.doors,x=d.sensors;return(0,o.createFragment)([s&&(0,o.createComponentVNode)(2,a.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,o.createComponentVNode)(2,a.Section,{title:"Shuttle Status",buttons:u&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",onClick:function(){return i("rename_command")},children:"Rename"})||null,children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Engines",children:"idle"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,a.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"})}),!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Location",children:(0,r.toTitleCase)(V)}),!C&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{selected:"docked"===h,disabled:"undocked"!==h&&"docked"!==h,onClick:function(){return i("dock_command")},children:"Dock"}),(0,o.createComponentVNode)(2,a.Button,{selected:"undocked"===h,disabled:"docked"!==h&&"undocked"!==h,onClick:function(){return i("undock_command")},children:"Undock"})],4),children:(0,o.createComponentVNode)(2,a.Box,{bold:!0,inline:!0,children:l(h,N)})})||null,b&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cloaking",children:(0,o.createComponentVNode)(2,a.Button,{selected:f,icon:f?"eye":"eye-o",onClick:function(){return i("toggle_cloaked")},children:f?"Enabled":"Disabled"})})||null,g&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Autopilot",children:(0,o.createComponentVNode)(2,a.Button,{selected:s,icon:s?"eye":"eye-o",onClick:function(){return i("toggle_autopilot")},children:s?"Enabled":"Disabled"})})||null],0)||null]}),!p&&(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Available Destinations",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:v.length&&v.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,a.Button,{icon:"rocket",onClick:function(){return i("traverse",{traverse:e.index})},children:e.travel_time})},e.name)}))||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),k&&(0,o.createComponentVNode)(2,a.Section,{title:"Transit ETA",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance from target",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:"good",minValue:0,maxValue:100,value:B,children:[L,"s"]})})})})||null,Object.keys(_).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Hatch Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(_).map((function(e){var n=_[e];return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:[n.open&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Open"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Closed"}),"\xa0-\xa0",n.bolted&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"good",children:"Bolted"})||(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"bad",children:"Unbolted"})]},e)}))})})||null,Object.keys(x).length&&(0,o.createComponentVNode)(2,a.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(x).map((function(e){var n=x[e];return-1!==n.reading?(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:"bad",children:"Unable to get sensor air reading."}):(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:[n.pressure,"kPa"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:[n.temp,"\xb0C"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Oxygen",children:[n.oxygen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Nitrogen",children:[n.nitrogen,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Carbon Dioxide",children:[n.carbon_dioxide,"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Phoron",children:[n.phoron,"%"]}),n.other&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other",children:[n.other,"%"]})||null]})},e)}))})})||null],0)}))};n.ShuttleControl=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.subtemplate);return(0,o.createComponentVNode)(2,i.Window,{width:470,height:"ShuttleControlConsoleWeb"===r?560:370,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:u[r]})})}},32325:function(e,n,t){"use strict";n.__esModule=!0,n.SignalerContent=n.Signaler=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.Signaler=function(e,n){return(0,o.createComponentVNode)(2,i.Window,{width:280,height:132,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.code,s=l.frequency,u=l.minFrequency,m=l.maxFrequency;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:m/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,n){return i("freq",{freq:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"freq"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.6,children:[(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(e,n){return i("code",{code:n})}})}),(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return i("reset",{reset:"code"})}})})]}),(0,o.createComponentVNode)(2,a.Grid,{mt:.8,children:(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return i("signal")}})})})]})};n.SignalerContent=l},80646:function(e,n,t){"use strict";n.__esModule=!0,n.Sleeper=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];n.Sleeper=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.hasOccupant?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,V));return(0,o.createComponentVNode)(2,i.Window,{width:550,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",children:r})})};var m=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),a=(r.occupant,r.dialysis),i=r.stomachpumping;return(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,h,{title:"Dialysis",active:a,actToDo:"togglefilter"}),(0,o.createComponentVNode)(2,h,{title:"Stomach Pump",active:i,actToDo:"togglepump"}),(0,o.createComponentVNode)(2,N)],4)},p=function(e,n){var t=(0,c.useBackend)(n),i=t.act,d=t.data,s=d.occupant,m=d.auto_eject_dead,p=d.stasis;return(0,o.createComponentVNode)(2,a.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,content:m?"On":"Off",onClick:function(){return i("auto_eject_dead_"+(m?"off":"on"))}}),(0,o.createComponentVNode)(2,a.Button,{icon:"user-slash",content:"Eject",onClick:function(){return i("ejectify")}}),(0,o.createComponentVNode)(2,a.Button,{content:p,onClick:function(){return i("changestasis")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:0,max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(s.health,0)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.maxTemp,value:s.bodyTemperature/s.maxTemp,color:u[s.temperatureSuitability+3],children:[(0,r.round)(s.btCelsius,0),"\xb0C,",(0,r.round)(s.btFaren,0),"\xb0F"]})}),!!s.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s.bloodMax,value:s.bloodLevel/s.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[s.bloodPercent,"%, ",s.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[s.pulse," BPM"]})],4)]})})},C=function(e,n){var t=(0,c.useBackend)(n).data.occupant;return(0,o.createComponentVNode)(2,a.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:"100",value:t[e[1]]/100,ranges:s,children:(0,r.round)(t[e[1]],0)},n)},n)}))})})},h=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.isBeakerLoaded,d=i.beakerMaxSpace,s=i.beakerFreeSpace,u=e.active,m=e.actToDo,p=e.title,C=u&&s>0;return(0,o.createComponentVNode)(2,a.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{disabled:!l||s<=0,selected:C,icon:C?"toggle-on":"toggle-off",content:C?"Active":"Inactive",onClick:function(){return r(m)}}),(0,o.createComponentVNode)(2,a.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:l?(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:d,value:s/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[s,"u"]})})}):(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No beaker loaded."})})},N=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.occupant,d=i.chemicals,s=i.maxchem,u=i.amounts;return(0,o.createComponentVNode)(2,a.Section,{title:"Chemicals",flexGrow:"1",children:d.map((function(e,n){var t,c="";return e.overdosing?(c="bad",t=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(c="average",t=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,a.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,a.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:t,children:(0,o.createComponentVNode)(2,a.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,a.ProgressBar,{min:"0",max:s,value:e.occ_amount/s,color:c,mr:"0.5rem",children:[e.pretty_amount,"/",s,"u"]}),u.map((function(n,t){return(0,o.createComponentVNode)(2,a.Button,{disabled:!e.injectable||e.occ_amount+n>s||2===l.stat,icon:"syringe",content:n,mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:n})}},t)}))]})})},n)}))})},V=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data.isBeakerLoaded;return(0,o.createComponentVNode)(2,a.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,a.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected.",i&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){return r("removebeaker")}})})||null]})})})}},55896:function(e,n,t){"use strict";n.__esModule=!0,n.SmartVend=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.SmartVend=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.config,s=t.data;return(0,o.createComponentVNode)(2,i.Window,{width:440,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Storage",children:[s.secure&&(0,o.createComponentVNode)(2,a.NoticeBox,{danger:-1===s.locked,info:-1!==s.locked,children:-1===s.locked?(0,o.createComponentVNode)(2,a.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,o.createComponentVNode)(2,a.Box,{children:"Secure Access: Please have your identification ready."})})||null,0===s.contents.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:["Unfortunately, this ",d.title," is empty."]})||(0,o.createComponentVNode)(2,a.Table,{children:[(0,o.createComponentVNode)(2,a.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:"Item"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,r.map)((function(e,n){return(0,o.createComponentVNode)(2,a.Table.Row,{children:[(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:e.name}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,textAlign:"center",children:[e.amount," in stock"]}),(0,o.createComponentVNode)(2,a.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,a.Button,{content:"1",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:1})}}),(0,o.createComponentVNode)(2,a.Button,{content:"5",disabled:e.amount<5,onClick:function(){return l("Release",{index:e.index,amount:5})}}),(0,o.createComponentVNode)(2,a.Button,{content:"Custom",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index})}}),(0,o.createComponentVNode)(2,a.Button,{content:"All",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:e.amount})}})]})]},n)}))(s.contents)]})]})})})}},20561:function(e,n,t){"use strict";n.__esModule=!0,n.Smes=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(58083),i=t(85952),l=t(41860),d=1e3;n.Smes=function(e,n){var t=(0,r.useBackend)(n),s=t.act,u=t.data,m=u.capacityPercent,p=u.capacity,C=u.charge,h=u.inputAttempt,N=u.inputting,V=u.inputLevel,b=u.inputLevelMax,f=u.inputAvailable,g=u.outputAttempt,v=u.outputting,k=u.outputLevel,B=u.outputLevelMax,L=u.outputUsed,_=(m>=100?"good":N&&"average")||"bad",x=(v?"good":C>0&&"average")||"bad";return(0,o.createComponentVNode)(2,i.Window,{width:340,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:.01*m,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,l.round)(C/6e4,1)," kWh / ",(0,l.round)(p/6e4)," kWh (",m,"%)"]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Input",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){return s("tryinput")},children:h?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:_,children:(m>=100?"Fully Charged":N&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===V,onClick:function(){return s("input",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===V,onClick:function(){return s("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:V/d,fillValue:f/d,minValue:0,maxValue:b/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("input",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:V===b,onClick:function(){return s("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:V===b,onClick:function(){return s("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Available",children:(0,a.formatPower)(f)})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Output",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:g?"power-off":"times",selected:g,onClick:function(){return s("tryoutput")},children:g?"On":"Off"}),children:(0,o.createComponentVNode)(2,c.Box,{color:x,children:v?"Sending":C>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,c.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:0===k,onClick:function(){return s("output",{target:"min"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"backward",disabled:0===k,onClick:function(){return s("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,c.Slider,{value:k/d,minValue:0,maxValue:B/d,step:5,stepPixelSize:4,format:function(e){return(0,a.formatPower)(e*d,1)},onDrag:function(e,n){return s("output",{target:n*d})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:[(0,o.createComponentVNode)(2,c.Button,{icon:"forward",disabled:k===B,onClick:function(){return s("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:k===B,onClick:function(){return s("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Outputting",children:(0,a.formatPower)(L)})]})})]})})}},21633:function(e,n,t){"use strict";n.__esModule=!0,n.SolarControl=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952),i=t(41860);n.SolarControl=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.generated,u=d.generated_ratio,m=d.sun_angle,p=d.array_angle,C=d.rotation_rate,h=d.max_rotation_rate,N=d.tracking_state,V=d.connected_panels,b=d.connected_tracker;return(0,o.createComponentVNode)(2,a.Window,{width:380,height:230,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,c.Grid,{children:[(0,o.createComponentVNode)(2,c.Grid.Column,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(0,o.createComponentVNode)(2,c.Grid.Column,{size:1.5,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:u,children:s+" W"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Star orientation",children:[m,"\xb0"]})]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Tracking",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:"Off",selected:0===N,onClick:function(){return l("tracking",{mode:0})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"clock-o",content:"Timed",selected:1===N,onClick:function(){return l("tracking",{mode:1})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Auto",selected:2===N,disabled:!b,onClick:function(){return l("tracking",{mode:2})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Azimuth",children:[(0===N||1===N)&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"52px",unit:"\xb0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:p,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth",{value:n})}}),1===N&&(0,o.createComponentVNode)(2,c.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-h-.01,maxValue:h+.01,value:C,format:function(e){var n=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,i.round)(e))+n},onDrag:function(e,n){return l("azimuth_rate",{value:n})}}),2===N&&(0,o.createComponentVNode)(2,c.Box,{inline:!0,color:"label",mt:"3px",children:[p+"\xb0"," (auto)"]})]})]})})]})})}},57762:function(e,n,t){"use strict";n.__esModule=!0,n.SpaceHeater=void 0;var o=t(39812),r=t(76270),c=t(71494),a=t(74814),i=t(85952);n.SpaceHeater=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=d.temp,u=d.minTemp,m=d.maxTemp,p=d.cell,C=d.power;return(0,o.createComponentVNode)(2,i.Window,{width:300,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Temperature",children:[s," K (",s-r.T0C,"\xb0 C)"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Charge",children:[C,"% ",!p&&"(No Cell Inserted)"]})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledControls,{children:[(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,a.Knob,{animated:!0,value:s-r.T0C,minValue:u-r.T0C,maxValue:m-r.T0C,unit:"C",onChange:function(e,n){return l("temp",{newtemp:n+r.T0C})}})}),(0,o.createComponentVNode)(2,a.LabeledControls.Item,{label:"Cell",children:p?(0,o.createComponentVNode)(2,a.Button,{icon:"eject",content:"Eject Cell",onClick:function(){return l("cellremove")}}):(0,o.createComponentVNode)(2,a.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){return l("cellinstall")}})})]})})]})})}},58215:function(e,n,t){"use strict";n.__esModule=!0,n.Stack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);t(88654);n.Stack=function(e,n){var t=(0,r.useBackend)(n),l=(t.act,t.data),d=l.amount,s=l.recipes;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{title:"Amount: "+d,children:(0,o.createComponentVNode)(2,i,{recipes:s})})})})};var i=function s(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data,e.recipes);return Object.keys(a).sort().map((function(e){var n=a[e];return n.ref===undefined?(0,o.createComponentVNode)(2,c.Collapsible,{ml:1,mb:-.7,color:"label",title:e,children:(0,o.createComponentVNode)(2,c.Box,{ml:1,children:(0,o.createComponentVNode)(2,s,{recipes:n})})}):(0,o.createComponentVNode)(2,d,{title:e,recipe:n})}))},l=function(e,n){for(var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.recipe),l=e.maxMultiplier,d=Math.min(l,Math.floor(i.max_res_amount/i.res_amount)),s=[5,10,25],u=[],m=function(){var e=C[p];d>=e&&u.push((0,o.createComponentVNode)(2,c.Button,{content:e*i.res_amount+"x",onClick:function(){return a("make",{ref:i.ref,multiplier:e})}}))},p=0,C=s;p1?"s":""),C+=")",u>1&&(C=u+"x "+C);var h=function(e,n){return e.req_amount>n?0:Math.floor(n/e.req_amount)}(d,i);return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Table,{children:(0,o.createComponentVNode)(2,c.Table.Row,{children:[(0,o.createComponentVNode)(2,c.Table.Cell,{children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,disabled:!h,icon:"wrench",content:C,onClick:function(){return a("make",{ref:d.ref,multiplier:1})}})}),m>1&&h>1&&(0,o.createComponentVNode)(2,c.Table.Cell,{collapsing:!0,children:(0,o.createComponentVNode)(2,l,{recipe:d,maxMultiplier:h})})]})})})}},32015:function(e,n,t){"use strict";n.__esModule=!0,n.StationAlertConsoleContent=n.StationAlertConsole=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.StationAlertConsole=function(){return(0,o.createComponentVNode)(2,a.Window,{width:425,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.categories;return(void 0===i?[]:i).map((function(e){return(0,o.createComponentVNode)(2,c.Section,{title:e.category,children:(0,o.createVNode)(1,"ul",null,[0===e.alarms.length&&(0,o.createVNode)(1,"li","color-good","Systems Nominal",16),e.alarms.map((function(e){var n="";return e.has_cameras?n=(0,o.createComponentVNode)(2,c.Section,{children:e.cameras.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{disabled:e.deact,content:e.name+(e.deact?" (deactived)":""),icon:"video",onClick:function(){return a("switchTo",{camera:e.camera})}},e.name)}))}):e.lost_sources&&(n=(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:["Lost Alarm Sources: ",e.lost_sources]})),(0,o.createVNode)(1,"li",null,[e.name,e.origin_lost?(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Alarm Origin Lost."}):"",n],0,null,e.name)}))],0)},e.category)}))};n.StationAlertConsoleContent=i},52649:function(e,n,t){"use strict";n.__esModule=!0,n.StationBlueprintsContent=n.StationBlueprints=void 0;var o=t(39812),r=(t(64499),t(85531),t(34380),t(2497),t(71494)),c=t(74814),a=t(85952);n.StationBlueprints=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:870,height:708,resizable:!0,children:(0,o.createComponentVNode)(2,i)})};var i=function(e,n){var t=(0,r.useBackend)(n),i=(t.act,t.data),l=(t.config,i.mapRef);i.areas,i.turfs;return(0,o.createFragment)([(0,o.createVNode)(1,"div","CameraConsole__left",(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,o.createVNode)(1,"div","CameraConsole__right",(0,o.createComponentVNode)(2,c.ByondUi,{className:"CameraConsole__map",params:{id:l,type:"map"}}),2)],4)};n.StationBlueprintsContent=i},72e3:function(e,n,t){"use strict";n.__esModule=!0,n.SuitCycler=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitCycler=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.active,m=c.locked,p=c.uv_active,C=(0,o.createComponentVNode)(2,i);return p?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):u&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:320,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.occupied,s=i.suit,u=i.helmet,m=i.departments,p=i.species,C=i.uv_level,h=i.max_uv_level,N=i.can_repair,V=i.damage;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Storage",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"lock",content:"Lock",onClick:function(){return a("lock")}}),children:[!(!d||!l)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"square":"square-o",content:u||"Empty",disabled:!u,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:s?"square":"square-o",content:s||"Empty",disabled:!s,onClick:function(){return a("dispense",{item:"suit"})}})}),N&&V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit Damage",children:[V,(0,o.createComponentVNode)(2,c.Button,{icon:"wrench",content:"Repair",onClick:function(){return a("repair_suit")}})]}):null]})]}),(0,o.createComponentVNode)(2,c.Section,{title:"Customization",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Paintjob",children:(0,o.createComponentVNode)(2,c.Dropdown,{noscroll:!0,width:"100%",options:m,selected:m[0],onSelected:function(e){return a("department",{department:e})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target Species",children:(0,o.createComponentVNode)(2,c.Dropdown,{width:"100%",maxHeight:"160px",options:p,selected:p[0],onSelected:function(e){return a("species",{species:e})}})})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){return a("apply_paintjob")}})]}),(0,o.createComponentVNode)(2,c.Section,{title:"UV Decontamination",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,c.NumberInput,{width:"50px",value:C,minValue:1,maxValue:h,stepPixelSize:30,onChange:function(e,n){return a("radlevel",{radlevel:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Decontaminate",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",disabled:d&&l,textAlign:"center",onClick:function(){return a("uv")}})})]})})],4)},l=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.model_text,d=i.userHasAccess;return(0,o.createComponentVNode)(2,c.Section,{title:"Locked",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Box,{color:"bad",bold:!0,children:["The ",l," suit cycler is currently locked. Please contact your system administrator."]}),(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"unlock",content:"[Unlock]",disabled:!d,onClick:function(){return a("lock")}})})]})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},80748:function(e,n,t){"use strict";n.__esModule=!0,n.SuitStorageUnit=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.SuitStorageUnit=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),u=c.panelopen,m=c.uv_active,p=c.broken,C=(0,o.createComponentVNode)(2,i);return u?C=(0,o.createComponentVNode)(2,l):m?C=(0,o.createComponentVNode)(2,d):p&&(C=(0,o.createComponentVNode)(2,s)),(0,o.createComponentVNode)(2,a.Window,{width:400,height:365,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:C})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.locked,d=i.open,s=i.safeties,u=i.occupied,m=i.suit,p=i.helmet,C=i.mask;return(0,o.createComponentVNode)(2,c.Section,{title:"Storage",minHeight:"260px",buttons:(0,o.createFragment)([!d&&(0,o.createComponentVNode)(2,c.Button,{icon:l?"unlock":"lock",content:l?"Unlock":"Lock",onClick:function(){return a("lock")}}),!l&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return a("door")}})],0),children:[!(!u||!s)&&(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return a("eject_guy")}})]}),l&&(0,o.createComponentVNode)(2,c.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,o.createComponentVNode)(2,c.Box,{children:"Unit Locked"}),(0,o.createComponentVNode)(2,c.Icon,{name:"lock"})]})||d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Helmet",children:(0,o.createComponentVNode)(2,c.Button,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){return a("dispense",{item:"helmet"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Suit",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"square":"square-o",content:m||"Empty",disabled:!m,onClick:function(){return a("dispense",{item:"suit"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask",children:(0,o.createComponentVNode)(2,c.Button,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return a("dispense",{item:"mask"})}})})]})||(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:u&&s,textAlign:"center",onClick:function(){return a("uv")}})]})},l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.safeties,d=i.uv_super;return(0,o.createComponentVNode)(2,c.Section,{title:"Maintenance Panel",children:[(0,o.createComponentVNode)(2,c.Box,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Knob,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(e){return e?"15nm":"185nm"},onChange:function(e,n){return a("toggleUV")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,c.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The ",l?(0,o.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,o.createVNode)(1,"font",null,"RED",16,{color:"red"})," LED is on.",(0,o.createComponentVNode)(2,c.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:(0,o.createComponentVNode)(2,c.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return a("togglesafeties")}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"black":"red",mr:2}),(0,o.createComponentVNode)(2,c.Icon,{name:"circle",color:l?"green":"black"})]})]})]})]})},d=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},s=function(e,n){return(0,o.createComponentVNode)(2,c.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},6951:function(e,n,t){"use strict";n.__esModule=!0,n.SupermatterMonitorContent=n.SupermatterMonitor=void 0;var o=t(39812),r=t(71494),c=t(74814),a=(t(58083),t(85952)),i=t(41860),l=t(2497);n.SupermatterMonitor=function(e,n){return(0,o.createComponentVNode)(2,a.Window,{width:600,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,d)})})};var d=function(e,n){var t=(0,r.useBackend)(n);t.act;return t.data.active?(0,o.createComponentVNode)(2,u):(0,o.createComponentVNode)(2,s)};n.SupermatterMonitorContent=d;var s=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.supermatters;return(0,o.createComponentVNode)(2,c.Section,{title:"Supermatters Detected",buttons:(0,o.createComponentVNode)(2,c.Button,{content:"Refresh",icon:"sync",onClick:function(){return a("refresh")}}),children:(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:i.map((function(e,n){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"49%",grow:n%2,children:(0,o.createComponentVNode)(2,c.Section,{title:e.area_name+" (#"+e.uid+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Integrity",children:[e.integrity," %"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Options",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eye",content:"View Details",onClick:function(){return a("set",{set:e.uid})}})})]})})},n)}))})})},u=function(e,n){var t=(0,r.useBackend)(n),a=t.act,d=t.data,s=d.SM_area,u=d.SM_integrity,m=d.SM_power,p=d.SM_ambienttemp,C=d.SM_ambientpressure,h=d.SM_EPR,N=d.SM_gas_O2,V=d.SM_gas_CO2,b=d.SM_gas_N2,f=d.SM_gas_PH,g=d.SM_gas_N2O;return(0,o.createComponentVNode)(2,c.Section,{title:(0,l.toTitleCase)(s),buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return a("clear")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Core Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{animated:!0,value:u,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-Infinity,50]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Relative EER",children:(0,o.createComponentVNode)(2,c.Box,{color:(m>300?"bad":m>150&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" MeV/cm\xb3"},value:m})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,c.Box,{color:(p>5e3?"bad":p>4e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" K"},value:p})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.Box,{color:(C>1e4?"bad":C>5e3&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)+" kPa"},value:C})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Chamber EPR",children:(0,o.createComponentVNode)(2,c.Box,{color:(h>4?"bad":h>1&&"average")||"good",children:(0,o.createComponentVNode)(2,c.AnimatedNumber,{format:function(e){return(0,i.round)(e,2)},value:h})})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Gas Composition",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"O\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:N}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"CO\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:V}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:b}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"PH",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:f}),"%"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"N\xb2O",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:g}),"%"]})]})})]})})}},12431:function(e,n,t){"use strict";n.__esModule=!0,n.SupplyConsole=void 0;var o=t(39812),r=t(64499),c=(t(41860),t(58083)),a=t(71494),i=t(74814),l=t(16007),d=t(85952),s=t(85531),u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data.supply_points,l=e.args,d=l.name,s=l.cost,u=l.manifest,m=l.ref,p=l.random;return(0,o.createComponentVNode)(2,i.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:d,buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"shopping-cart",content:"Buy - "+s+" points",disabled:s>c,onClick:function(){return r("request_crate",{ref:m})}}),children:(0,o.createComponentVNode)(2,i.Section,{title:"Contains"+(p?" any "+p+" of:":""),scrollable:!0,height:"200px",children:u.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})})};n.SupplyConsole=function(e,n){var t=(0,a.useBackend)(n);t.act,t.data;return(0,l.modalRegisterBodyOverride)("view_crate",u),(0,o.createComponentVNode)(2,d.Window,{width:700,height:620,children:(0,o.createComponentVNode)(2,d.Window.Content,{children:[(0,o.createComponentVNode)(2,l.ComplexModal,{maxWidth:"100%"}),(0,o.createComponentVNode)(2,i.Section,{title:"Supply Records",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,p)]})]})})};var m=function(e,n){var t=(0,a.useBackend)(n),r=t.act,l=t.data,d=l.supply_points,s=l.shuttle,u=null,m=!1;return l.shuttle_auth&&(1===s.launch&&0===s.mode?u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Away",onClick:function(){return r("send_shuttle",{mode:"send_away"})}}):2!==s.launch||3!==s.mode&&1!==s.mode?1===s.launch&&5===s.mode&&(u=(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){return r("send_shuttle",{mode:"send_to_station"})}})):u=(0,o.createComponentVNode)(2,i.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){return r("send_shuttle",{mode:"cancel_shuttle"})}}),s.force&&(m=!0)),(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Supply Points",children:(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:d})})}),(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Location",buttons:(0,o.createFragment)([u,m?(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return r("send_shuttle",{mode:"force_shuttle"})}}):null],0),children:s.location}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engine",children:s.engine}),4===s.mode?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"ETA",children:s.time>1?(0,c.formatTime)(s.time):"LATE"}):null]})})]})},p=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data.order_auth,(0,a.useLocalState)(n,"tabIndex",0)),c=r[0],l=r[1];return(0,o.createComponentVNode)(2,i.Section,{title:"Menu",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"box",selected:0===c,onClick:function(){return l(0)},children:"Request"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"check-circle-o",selected:1===c,onClick:function(){return l(1)},children:"Accepted"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"circle-o",selected:2===c,onClick:function(){return l(2)},children:"Requests"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:3===c,onClick:function(){return l(3)},children:"Order history"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"book",selected:4===c,onClick:function(){return l(4)},children:"Export history"})]}),0===c?(0,o.createComponentVNode)(2,C):null,1===c?(0,o.createComponentVNode)(2,h,{mode:"Approved"}):null,2===c?(0,o.createComponentVNode)(2,h,{mode:"Requested"}):null,3===c?(0,o.createComponentVNode)(2,h,{mode:"All"}):null,4===c?(0,o.createComponentVNode)(2,N):null]})},C=function(e,n){var t=(0,a.useBackend)(n),c=t.act,l=t.data,d=l.categories,u=l.supply_packs,m=l.contraband,p=l.supply_points,C=(0,a.useLocalState)(n,"activeCategory",null),h=C[0],N=C[1],V=(0,s.flow)([(0,r.filter)((function(e){return e.group===h})),(0,r.filter)((function(e){return!e.contraband||m})),(0,r.sortBy)((function(e){return e.name})),(0,r.sortBy)((function(e){return e.cost>p}))])(u);return(0,o.createComponentVNode)(2,i.Section,{level:2,children:(0,o.createComponentVNode)(2,i.Stack,{children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"25%",children:(0,o.createComponentVNode)(2,i.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{fluid:!0,content:e,selected:e===h,onClick:function(){return N(e)}},e)}))})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,ml:2,children:(0,o.createComponentVNode)(2,i.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:V.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Stack,{align:"center",justify:"flex-start",children:[(0,o.createComponentVNode)(2,i.Stack.Item,{basis:"70%",children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:e.name,color:e.cost>p?"red":null,onClick:function(){return c("request_crate",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"#",color:e.cost>p?"red":null,onClick:function(){return c("request_crate_multi",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{children:(0,o.createComponentVNode)(2,i.Button,{content:"C",color:e.cost>p?"red":null,onClick:function(){return c("view_crate",{crate:e.ref})}})}),(0,o.createComponentVNode)(2,i.Stack.Item,{grow:1,children:[e.cost," points"]})]})},e.name)}))})})]})})},h=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.mode,d=c.orders,s=c.order_auth,u=c.supply_points,m=d.filter((function(e){return e.status===l||"All"===l}));return m.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:["Requested"===l&&s?(0,o.createComponentVNode)(2,i.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return r("clear_all_requests")}}):null,m.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{title:"Order "+(n+1),buttons:"All"===l&&s?(0,o.createComponentVNode)(2,i.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return r("delete_order",{ref:e.ref})}}):null,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.entries.map((function(n){return n.entry?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:s?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){r("edit_order_value",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry}):null})),"All"===l?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.status}):null]}),s&&"Requested"===l?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"check",content:"Approve",disabled:e.cost>u,onClick:function(){return r("approve_order",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"times",content:"Deny",onClick:function(){return r("deny_order",{ref:e.ref})}})],4):null]},n)}))]}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No orders found."})},N=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=c.receipts,d=c.order_auth;return l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[e.title.map((function(n){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.field,buttons:d?(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit",{ref:e.ref,edit:n.field,"default":n.entry})}}):null,children:n.entry},n.field)})),e.error?(0,o.createComponentVNode)(2,i.LabeledList.Item,{labelColor:"red",label:"Error",children:e.error}):e.contents.map((function(n,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:n.object,buttons:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"pen",content:"Edit",onClick:function(){return r("export_edit_field",{ref:e.ref,index:t+1,edit:"meow","default":n.object})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){return r("export_delete_field",{ref:e.ref,index:t+1})}})],4):null,children:[n.quantity,"x -> ",n.value," points"]},t)}))]}),d?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return r("export_add_field",{ref:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",content:"Delete Record",onClick:function(){return r("export_delete",{ref:e.ref})}})],4):null]},n)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,children:"No receipts found."})}},30111:function(e,n,t){"use strict";n.__esModule=!0,n.TEGenerator=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(58083);n.TEGenerator=function(e,n){var t=(0,c.useBackend)(n).data,r=t.totalOutput,s=t.maxTotalOutput,u=t.thermalOutput,m=t.primary,p=t.secondary;return(0,o.createComponentVNode)(2,i.Window,{width:550,height:310,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Output",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:r,maxValue:s,children:(0,l.formatPower)(r)})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Thermal Output",children:(0,l.formatPower)(u)})]})}),m&&p?(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Primary Circulator",values:m})}),(0,o.createComponentVNode)(2,a.Flex.Item,{shrink:1,grow:1,children:(0,o.createComponentVNode)(2,d,{name:"Secondary Circulator",values:p})})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})};var d=function(e,n){var t=e.name,c=e.values,i=c.dir,d=c.output,s=c.flowCapacity,u=c.inletPressure,m=c.inletTemperature,p=c.outletPressure,C=c.outletTemperature;return(0,o.createComponentVNode)(2,a.Section,{title:t+" ("+i+")",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Output",children:(0,l.formatPower)(d)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Flow Capacity",children:[(0,r.round)(s,2),"%"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Pressure",children:(0,l.formatSiUnit)(1e3*u,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Inlet Temperature",children:[(0,r.round)(m,2)," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Pressure",children:(0,l.formatSiUnit)(1e3*p,0,"Pa")}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outlet Temperature",children:[(0,r.round)(C,2)," K"]})]})})}},58457:function(e,n,t){"use strict";n.__esModule=!0,n.Tank=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Tank=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.connected,s=l.showToggle,u=void 0===s||s,m=l.maskConnected,p=l.tankPressure,C=l.releasePressure,h=l.defaultReleasePressure,N=l.minReleasePressure,V=l.maxReleasePressure;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:320,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:d?"air-freshener":"lock-open",selected:d,disabled:!m,content:"Mask Release Valve",onClick:function(){return i("toggle")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mask Connected",children:m?"Yes":"No"})})}),(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p/1013,ranges:{good:[.35,Infinity],average:[.15,.35],bad:[-Infinity,.15]},children:l.tankPressure+" kPa"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"fast-backward",disabled:C===N,onClick:function(){return i("pressure",{pressure:"min"})}}),(0,o.createComponentVNode)(2,c.NumberInput,{animated:!0,value:parseFloat(C),width:"65px",unit:"kPa",minValue:N,maxValue:V,onChange:function(e,n){return i("pressure",{pressure:n})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"fast-forward",disabled:C===V,onClick:function(){return i("pressure",{pressure:"max"})}}),(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"",disabled:C===h,onClick:function(){return i("pressure",{pressure:"reset"})}})]})]})})]})})}},38754:function(e,n,t){"use strict";n.__esModule=!0,n.TankDispenser=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TankDispenser=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data;return(0,o.createComponentVNode)(2,a.Window,{width:275,height:103,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Phoron",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.plasma?"square":"square-o",content:"Dispense",disabled:!l.plasma,onClick:function(){return i("plasma")}}),children:l.plasma}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Oxygen",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:l.oxygen?"square":"square-o",content:"Dispense",disabled:!l.oxygen,onClick:function(){return i("oxygen")}}),children:l.oxygen})]})})})})}},73754:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsLogBrowser=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952);n.TelecommsLogBrowser=function(e,n){var t=(0,c.useBackend)(n),r=t.act,s=t.data,u=s.universal_translate,m=s.network,p=s.temp,C=s.servers,h=s.selectedServer;return(0,o.createComponentVNode)(2,i.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[p&&p.length?(0,o.createComponentVNode)(2,a.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-box",verticalAlign:"middle",children:p}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return r("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,a.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"search",content:"Refresh",onClick:function(){return r("scan")}}),(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===C.length,onClick:function(){return r("release")}})],4),children:(0,o.createComponentVNode)(2,a.Button,{content:m,icon:"pen",onClick:function(){return r("network")}})})})}),h?(0,o.createComponentVNode)(2,d,{network:m,server:h,universal_translate:u}):(0,o.createComponentVNode)(2,l,{network:m,servers:C})]})})};var l=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=(t.data,e.network,e.servers);return i&&i.length?(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunication Servers",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:i.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,a.Button,{content:"View",icon:"eye",onClick:function(){return r("view",{id:e.id})}})},e.id)}))})}):(0,o.createComponentVNode)(2,a.Section,{title:"Detected Telecommunications Servers",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No servers detected."}),(0,o.createComponentVNode)(2,a.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return r("scan")}})]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=(t.data,e.network,e.server),d=e.universal_translate;return(0,o.createComponentVNode)(2,a.Section,{title:"Server ("+l.id+")",buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Return",icon:"undo",onClick:function(){return i("mainmenu")}}),children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Total Recorded Traffic",children:l.totalTraffic>=1024?(0,r.round)(l.totalTraffic/1024)+" Terrabytes":l.totalTraffic+" Gigabytes"})}),(0,o.createComponentVNode)(2,a.Section,{title:"Stored Logs",mt:"4px",children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:l.logs&&l.logs.length?l.logs.map((function(e){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:e.id%2,children:(0,o.createComponentVNode)(2,a.Section,{title:d||e.parameters.uspeech||e.parameters.intelligible||"Execution Error"===e.input_type?e.input_type:"Audio File",buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:e.id})}}),children:"Execution Error"===e.input_type?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Data type",children:"Error"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output",children:e.parameters.message}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Delete",children:(0,o.createComponentVNode)(2,a.Button,{icon:"trash",onClick:function(){return i("delete",{id:e.id})}})})]}):d||e.parameters.uspeech||e.parameters.intelligible?(0,o.createComponentVNode)(2,s,{log:e}):(0,o.createComponentVNode)(2,s,{error:!0})})},e.id)})):"No Logs Detected."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data,e.log),i=e.error,l=r&&r.parameters||{none:"none"},d=l.timecode,s=l.name,u=l.race,m=l.job,p=l.message;return i?(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Time Recieved",children:d}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Source",children:[s," (Job: ",m,")"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Class",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:p})]})}},29441:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMachineBrowser=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.TelecommsMachineBrowser=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.network,u=d.temp,m=d.machinelist,p=d.selectedMachine;return(0,o.createComponentVNode)(2,a.Window,{width:575,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[u&&u.length?(0,o.createComponentVNode)(2,c.NoticeBox,{warning:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-box",verticalAlign:"middle",children:u}),(0,o.createComponentVNode)(2,c.Button,{icon:"times-circle",float:"right",onClick:function(){return l("cleartemp")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}):null,(0,o.createComponentVNode)(2,c.Section,{title:"Network Control",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Network",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}}),(0,o.createComponentVNode)(2,c.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:0===m.length,onClick:function(){return l("release")}})],4),children:(0,o.createComponentVNode)(2,c.Button,{content:s,icon:"pen",onClick:function(){return l("network")}})})})}),m&&m.length?(0,o.createComponentVNode)(2,i,{title:p?p.name+" ("+p.id+")":"Detected Network Entities",list:p?p.links:m,showBack:p}):(0,o.createComponentVNode)(2,c.Section,{title:"No Devices Found",children:(0,o.createComponentVNode)(2,c.Button,{icon:"search",content:"Probe Network",onClick:function(){return l("scan")}})})]})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.list),l=e.title,d=e.showBack;return(0,o.createComponentVNode)(2,c.Section,{title:l,buttons:d&&(0,o.createComponentVNode)(2,c.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){return a("mainmenu")}}),children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",children:(0,o.createVNode)(1,"u",null,"Linked entities",16)}),(0,o.createComponentVNode)(2,c.LabeledList,{children:i.length?i.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.name+" ("+e.id+")",children:(0,o.createComponentVNode)(2,c.Button,{content:"View",icon:"eye",onClick:function(){return a("view",{id:e.id})}})},e.id)})):(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},86756:function(e,n,t){"use strict";n.__esModule=!0,n.TelecommsMultitoolMenu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(36355),i=t(85952);n.TelecommsMultitoolMenu=function(e,n){var t=(0,r.useBackend)(n),c=(t.act,t.data),s=(c.temp,c.on,c.id,c.network,c.autolinkers,c.shadowlink,c.options);c.linked,c.filter,c.multitool,c.multitool_buffer;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:540,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.TemporaryNotice),(0,o.createComponentVNode)(2,l),(0,o.createComponentVNode)(2,d,{options:s})]})})};var l=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=(i.temp,i.on),d=i.id,s=i.network,u=i.autolinkers,m=i.shadowlink,p=(i.options,i.linked),C=i.filter,h=i.multitool,N=i.multitool_buffer;return(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:l,content:l?"On":"Off",onClick:function(){return a("toggle")}}),children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Identification String",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:d,onClick:function(){return a("id")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Network",children:(0,o.createComponentVNode)(2,c.Button,{icon:"pen",content:s,onClick:function(){return a("network")}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prefabrication",children:u?"TRUE":"FALSE"}),m?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,h?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Multitool Buffer",children:[N?(0,o.createFragment)([N.name,(0,o.createTextVNode)(" ("),N.id,(0,o.createTextVNode)(")")],0):null,(0,o.createComponentVNode)(2,c.Button,{color:N?"green":null,content:N?"Link ("+N.id+")":"Add Machine",icon:N?"link":"plus",onClick:N?function(){return a("link")}:function(){return a("buffer")}}),N?(0,o.createComponentVNode)(2,c.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){return a("flush")}}):null]}):null]}),(0,o.createComponentVNode)(2,c.Section,{title:"Linked network Entities",mt:1,children:(0,o.createComponentVNode)(2,c.LabeledList,{children:p.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e.ref+" "+e.name+" ("+e.id+")",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",onClick:function(){return a("unlink",{unlink:e.index})}})},e.ref)}))})}),(0,o.createComponentVNode)(2,c.Section,{title:"Filtering Frequencies",mt:1,children:[C.map((function(e){return(0,o.createComponentVNode)(2,c.Button.Confirm,{content:e.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return a("delete",{"delete":e.freq})}},e.index)})),C&&0!==C.length?null:(0,o.createComponentVNode)(2,c.Box,{color:"label",children:"No filters."})]})]})},d=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=(t.data,e.options),l=i.use_listening_level,d=i.use_broadcasting,s=i.use_receiving,u=i.listening_level,m=i.broadcasting,p=i.receiving,C=i.use_change_freq,h=i.change_freq,N=i.use_broadcast_range,V=i.use_receive_range,b=i.range,f=i.minRange,g=i.maxRange;return l||d||s||C||N||V?(0,o.createComponentVNode)(2,c.Section,{title:"Options",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[l?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Signal Locked to Station",children:(0,o.createComponentVNode)(2,c.Button,{icon:u?"lock-closed":"lock-open",content:u?"Yes":"No",onClick:function(){return a("change_listening")}})}):null,d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Broadcasting",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:m,content:m?"Yes":"No",onClick:function(){return a("broadcast")}})}):null,s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Receving",children:(0,o.createComponentVNode)(2,c.Button,{icon:"power-off",selected:p,content:p?"Yes":"No",onClick:function(){return a("receive")}})}):null,C?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Change Signal Frequency",children:(0,o.createComponentVNode)(2,c.Button,{icon:"wave-square",selected:!!h,content:h?"Yes ("+h+")":"No",onClick:function(){return a("change_freq")}})}):null,N||V?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:(N?"Broadcast":"Receive")+" Range",children:(0,o.createComponentVNode)(2,c.NumberInput,{value:b,minValue:f,maxValue:g,unit:"gigameters",stepPixelSize:4,format:function(e){return e+1},onDrag:function(e,n){return a("range",{range:n})}})}):null]})}):(0,o.createComponentVNode)(2,c.Section,{title:"No Options Found"})}},18509:function(e,n,t){"use strict";n.__esModule=!0,n.Teleporter=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Teleporter=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.locked_name,s=l.station_connected,u=l.hub_connected,m=l.calibrated,p=l.teleporter_on;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Target",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bullseye",onClick:function(){return i("select_target")},content:d})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Calibrated",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return i("test_fire")},content:m?"Accurate":"Test Fire"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Teleporter",children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,checked:p,color:p?"good":"bad",onClick:function(){return i("toggle_on")},content:p?"Online":"OFFLINE"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Station",children:s?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},62555:function(e,n,t){"use strict";n.__esModule=!0,n.TelesciConsoleContent=n.TelesciConsole=void 0;var o=t(39812),r=t(64499),c=t(71494),a=t(74814),i=t(85952);n.TelesciConsole=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data.noTelepad);return(0,o.createComponentVNode)(2,i.Window,{width:400,height:450,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:r&&(0,o.createComponentVNode)(2,l)||(0,o.createComponentVNode)(2,d)})})};var l=function(e,n){return(0,o.createComponentVNode)(2,a.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,o.createVNode)(1,"br"),"Please add telepad data."]})},d=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.insertedGps,s=l.rotation,u=l.currentZ,m=l.cooldown,p=l.crystalCount,C=l.maxCrystals,h=(l.maxPossibleDistance,l.maxAllowedDistance),N=l.distance,V=l.tempMsg,b=l.sectorOptions,f=l.lastTeleData;return(0,o.createComponentVNode)(2,a.Section,{title:"Telepad Controls",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"eject",disabled:!d,onClick:function(){return i("ejectGPS")},content:"Eject GPS"}),children:[(0,o.createComponentVNode)(2,a.NoticeBox,{info:!0,children:m&&(0,o.createComponentVNode)(2,a.Box,{children:["Telepad is recharging. Please wait ",(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:m})," seconds."]})||(0,o.createComponentVNode)(2,a.Box,{children:V})}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Bearing",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:s,format:function(e){return e+"\xb0"},step:1,minValue:-900,maxValue:900,onDrag:function(e,n){return i("setrotation",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:(0,o.createComponentVNode)(2,a.NumberInput,{fluid:!0,value:N,format:function(e){return e+"/"+h+" m"},minValue:0,maxValue:h,step:1,stepPixelSize:4,onDrag:function(e,n){return i("setdistance",{val:n})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sector",children:(0,r.sortBy)((function(e){return Number(e)}))(b).map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"check-circle",content:e,selected:u===e,onClick:function(){return i("setz",{setz:e})}},e)}))}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Controls",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:-90,onClick:function(){return i("send")},content:"Send"}),(0,o.createComponentVNode)(2,a.Button,{icon:"share",iconRotation:90,onClick:function(){return i("receive")},content:"Receive"}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",iconRotation:90,onClick:function(){return i("recal")},content:"Recalibrate"})]})]}),f&&(0,o.createComponentVNode)(2,a.Section,{mt:1,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Telepad Location",children:[f.src_x,", ",f.src_y]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Distance",children:[f.distance,"m"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Transit Time",children:[f.time," secs"]})]})})||(0,o.createComponentVNode)(2,a.Section,{mt:1,children:"No teleport data found."}),(0,o.createComponentVNode)(2,a.Section,{children:["Crystals: ",p," / ",C]})]})};n.TelesciConsoleContent=d},55096:function(e,n,t){"use strict";n.__esModule=!0,n.TimeClock=void 0;var o=t(39812),r=t(41860),c=t(71494),a=t(74814),i=t(85952),l=t(14959);n.TimeClock=function(e,n){var t=(0,c.useBackend)(n),d=t.act,s=t.data,u=s.department_hours,m=s.user_name,p=s.card,C=s.assignment,h=s.job_datum,N=s.allow_change_job,V=s.job_choices;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:520,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"OOC",children:[(0,o.createComponentVNode)(2,a.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Time Off Balance for "+m,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e,color:u[e]>6?"good":u[e]>1?"average":"bad",children:[(0,r.toFixed)(u[e],1)," ",1===u[e]?"hour":"hours"]},e)}))})})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Employee Info",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Employee ID",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"user",onClick:function(){return d("id")},children:p||"Insert ID"})}),!!h&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:(0,o.createComponentVNode)(2,a.Box,{backgroundColor:h.selection_color,p:.8,children:(0,o.createComponentVNode)(2,a.Flex,{justify:"space-between",align:"center",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{ml:1,children:(0,o.createComponentVNode)(2,l.RankIcon,{color:"white",rank:h.title})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Box,{fontSize:1.5,inline:!0,mr:1,children:h.title})})]})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Departments",children:h.departments}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pay Scale",children:h.economic_modifier}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"PTO Elegibility",children:h.timeoff_factor>0&&(0,o.createComponentVNode)(2,a.Box,{children:["Earns PTO - ",h.pto_department]})||h.timeoff_factor<0&&(0,o.createComponentVNode)(2,a.Box,{children:["Requires PTO - ",h.pto_department]})||(0,o.createComponentVNode)(2,a.Box,{children:"Neutral"})})],4)]})}),!(!N||!h||0===h.timeoff_factor||"Dismissed"===C)&&(0,o.createComponentVNode)(2,a.Section,{title:"Employment Actions",children:h.timeoff_factor>0&&(u[h.pto_department]>0&&(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return d("switch-to-offduty")},children:"Go Off-Duty"})||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(V).length&&Object.keys(V).map((function(e){return V[e].map((function(n){return(0,o.createComponentVNode)(2,a.Button,{icon:"suitcase",onClick:function(){return d("switch-to-onduty-rank",{"switch-to-onduty-rank":e,"switch-to-onduty-assignment":n})},children:n},n)}))}))||(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},24389:function(e,n,t){"use strict";n.__esModule=!0,n.TransferValve=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.TransferValve=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.tank_one,s=l.tank_two,u=l.attached_device,m=l.valve;return(0,o.createComponentVNode)(2,a.Window,{children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Valve Status",children:(0,o.createComponentVNode)(2,c.Button,{icon:m?"unlock":"lock",content:m?"Open":"Closed",disabled:!d||!s,onClick:function(){return i("toggle")}})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Assembly",buttons:(0,o.createComponentVNode)(2,c.Button,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return i("device")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){return i("remove_device")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Assembly"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment One",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){return i("tankone")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Attachment Two",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:s?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Attachment",children:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:s,disabled:!s,onClick:function(){return i("tanktwo")}})}):(0,o.createComponentVNode)(2,c.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}},95893:function(e,n,t){"use strict";n.__esModule=!0,n.TurbineControl=void 0;var o=t(39812),r=(t(41860),t(58083)),c=t(71494),a=t(74814),i=t(85952);n.TurbineControl=function(e,n){var t=(0,c.useBackend)(n),l=t.act,d=t.data,s=(d.connected,d.compressor_broke),u=d.turbine_broke,m=d.broken,p=d.door_status,C=d.online,h=d.power,N=d.rpm,V=d.temp;return(0,o.createComponentVNode)(2,i.Window,{width:520,height:440,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Turbine Controller",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:m&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Setup is broken",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",onClick:function(){return l("reconnect")},content:"Reconnect"})]})||(0,o.createComponentVNode)(2,a.Box,{color:C?"good":"bad",children:!C||s||u?"Offline":"Online"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Compressor",children:s&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Compressor is inoperable."})||u&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Turbine is inoperable."})||(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:C,content:"Compressor Power",onClick:function(){return l(C?"power-off":"power-on")}})})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Vent Doors",children:(0,o.createComponentVNode)(2,a.Button.Checkbox,{checked:p,onClick:function(){return l("doors")},content:p?"Closed":"Open"})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Turbine Speed",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:N})," RPM"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Temperature",children:[m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{value:V})," K"]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Generated Power",children:m?"--":(0,o.createComponentVNode)(2,a.AnimatedNumber,{format:function(e){return(0,r.formatPower)(e)},value:Number(h)})})]})})]})})}},62542:function(e,n,t){"use strict";n.__esModule=!0,n.Turbolift=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.Turbolift=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.floors,s=l.doors_open,u=l.fire_mode;return(0,o.createComponentVNode)(2,a.Window,{width:480,height:260+25*u,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:s?"door-open":"door-closed",content:s?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:s&&!u,color:u?"red":null,onClick:function(){return i("toggle_doors")}}),(0,o.createComponentVNode)(2,c.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return i("emergency_stop")}})],4),children:[!u||(0,o.createComponentVNode)(2,c.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,o.createComponentVNode)(2,c.Flex,{wrap:"wrap",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"100%",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",justify:"space-around",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:e.label||"Floor #"+e.id}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"8%",textAlign:"left",children:(0,o.createComponentVNode)(2,c.Button,{icon:"circle",color:e.current?"red":e.target?"green":e.queued?"yellow":null,onClick:function(){return i("move_to_floor",{ref:e.ref})}})}),(0,o.createComponentVNode)(2,c.Flex.Item,{basis:"50%",grow:1,children:e.name})]})},e.id)}))})]})})})}},89761:function(e,n,t){"use strict";n.__esModule=!0,n.GenericUplink=n.Uplink=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814),i=t(58083),l=t(85952);n.Uplink=function(e,n){var t=(0,c.useBackend)(n).data,r=(0,c.useLocalState)(n,"screen",0),i=r[0],m=r[1],p=t.telecrystals;return(0,o.createComponentVNode)(2,l.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,d,{screen:i,setScreen:m}),0===i&&(0,o.createComponentVNode)(2,u,{currencyAmount:p,currencySymbol:"TC"})||1===i&&(0,o.createComponentVNode)(2,s)||(0,o.createComponentVNode)(2,a.Section,{color:"bad",children:"Error"})]})})};var d=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),i=e.screen,l=e.setScreen,d=r.discount_name,s=r.discount_amount,u=r.offer_expiry;return(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===i,onClick:function(){return l(0)},children:"Request Items"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===i,onClick:function(){return l(1)},children:"Exploitable Information"})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Item Discount",level:2,children:s<100&&(0,o.createComponentVNode)(2,a.Box,{children:[d," - ",s,"% off. Offer expires at: ",u]})||(0,o.createComponentVNode)(2,a.Box,{children:"No items currently discounted."})})]})},s=function(e,n){var t=(0,c.useBackend)(n),r=t.act,i=t.data,l=i.exploit,d=i.locked_records;return(0,o.createComponentVNode)(2,a.Section,{title:"Exploitable Information",buttons:l&&(0,o.createComponentVNode)(2,a.Button,{icon:"undo",content:"Back",onClick:function(){return r("view_exploits",{id:0})}}),children:l&&(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Name",children:l.name}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Sex",children:l.sex}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Species",children:l.species}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Age",children:l.age}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Rank",children:l.rank}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Home System",children:l.home_system}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Citizenship",children:l.citizenship}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Faction",children:l.faction}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Religion",children:l.religion}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Fingerprint",children:l.fingerprint}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Other Affiliations",children:l.antagfaction}),(0,o.createComponentVNode)(2,a.LabeledList.Divider),(0,o.createComponentVNode)(2,a.LabeledList.Item,{children:"Acquired Information"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Notes",children:l.nanoui_exploit_record.split(" ").map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:e},e)}))})]})})||d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:"eye",fluid:!0,content:e.name,onClick:function(){return r("view_exploits",{id:e.id})}},e.id)}))})},u=function(e,n){var t,l,d=e.currencyAmount,s=void 0===d?0:d,u=e.currencySymbol,p=void 0===u?"\u20ae":u,C=(0,c.useBackend)(n),h=C.act,N=C.data,V=N.compactMode,b=N.lockable,f=N.categories,g=void 0===f?[]:f,v=(0,c.useLocalState)(n,"searchText",""),k=v[0],B=v[1],L=(0,c.useLocalState)(n,"category",null==(t=g[0])?void 0:t.name),_=L[0],x=L[1],w=(0,r.createSearch)(k,(function(e){return e.name+e.desc})),S=k.length>0&&g.flatMap((function(e){return e.items||[]})).filter(w).filter((function(e,n){return n<25}))||(null==(l=g.find((function(e){return e.name===_})))?void 0:l.items)||[];return(0,o.createComponentVNode)(2,a.Section,{title:(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:s>0?"good":"bad",children:[(0,i.formatMoney)(s)," ",p]}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,a.Input,{autoFocus:!0,value:k,onInput:function(e,n){return B(n)},mx:1}),(0,o.createComponentVNode)(2,a.Button,{icon:V?"list":"info",content:V?"Compact":"Detailed",onClick:function(){return h("compact_toggle")}}),!!b&&(0,o.createComponentVNode)(2,a.Button,{icon:"lock",content:"Lock",onClick:function(){return h("lock")}})],0),children:(0,o.createComponentVNode)(2,a.Flex,{children:[0===k.length&&(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:g.map((function(e){var n;return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:e.name===_,onClick:function(){return x(e.name)},children:[e.name," (",(null==(n=e.items)?void 0:n.length)||0,")"]},e.name)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,basis:0,children:[0===S.length&&(0,o.createComponentVNode)(2,a.NoticeBox,{children:0===k.length?"No items in this category.":"No results found."}),(0,o.createComponentVNode)(2,m,{compactMode:k.length>0||V,currencyAmount:s,currencySymbol:p,items:S})]})]})})};n.GenericUplink=u;var m=function(e,n){var t=e.compactMode,l=e.currencyAmount,d=e.currencySymbol,s=(0,c.useBackend)(n).act,u=(0,c.useLocalState)(n,"hoveredItem",{}),m=u[0],p=u[1],C=m&&m.cost||0,h=e.items.map((function(e){var n=m&&m.name!==e.name,t=l-C=0||(r[t]=e[t]);return r}(e,["spec"]),l=r.action,d=r.test,s=r.tooltip,u=r.content;return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.Button,Object.assign({onClick:function(){return t(l)},icon:d?"toggle-on":"toggle-off",selected:d,fluid:!0,tooltip:s.main+" "+(d?s.disable:s.enable),content:d?u.enabled:u.disabled},i)))}},21162:function(e,n,t){"use strict";n.__esModule=!0,n.Wires=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.Wires=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.wires||[],s=l.status||[];return(0,o.createComponentVNode)(2,a.Window,{width:350,height:150+30*d.length,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.LabeledList.Item,{className:"candystripe",label:e.color_name,labelColor:e.seen_color,color:e.seen_color,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{content:e.cut?"Mend":"Cut",onClick:function(){return i("cut",{wire:e.color})}}),(0,o.createComponentVNode)(2,c.Button,{content:"Pulse",onClick:function(){return i("pulse",{wire:e.color})}}),(0,o.createComponentVNode)(2,c.Button,{content:e.attached?"Detach":"Attach",onClick:function(){return i("attach",{wire:e.color})}})],4),children:!!e.wire&&(0,o.createVNode)(1,"i",null,[(0,o.createTextVNode)("("),e.wire,(0,o.createTextVNode)(")")],0)},e.seen_color)}))})}),!!s.length&&(0,o.createComponentVNode)(2,c.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"lightgray",mt:.1,children:e},e)}))})]})})}},81522:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchArtifactAnalyzer=void 0;var o=t(39812),r=t(71494),c=t(85952),a=t(74814);n.XenoarchArtifactAnalyzer=function(e,n){return(0,o.createComponentVNode)(2,c.Window,{width:250,height:140,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,i)})})};var i=function(e,n){var t=(0,r.useBackend)(n),c=t.act,i=t.data,l=i.owned_scanner,d=i.scan_in_progress;return l?d?(0,o.createComponentVNode)(2,a.Section,{title:"Scan In Progress",children:["Scanning...",(0,o.createComponentVNode)(2,a.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return c("scan")},children:"Cancel Scan"})]}):(0,o.createComponentVNode)(2,a.Section,{title:"Artifact Analyzer",children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"search",onClick:function(){return c("scan")},children:"Begin Scan"})}):(0,o.createComponentVNode)(2,a.Section,{title:"No Scanner Detected",children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Warning: No scanner was detected. This machine requires a scanner to operate."})})}},40875:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchArtifactHarvester=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchArtifactHarvester=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data.info,s=d.no_scanner,u=d.harvesting,m=d.inserted_battery;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:200,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: No scanner detected."})||(0,o.createComponentVNode)(2,c.Section,{children:u>0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Harvesting in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||u<0&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"label",textAlign:"center",mb:1,children:"Please wait. Energy dump in progress."}),(0,o.createComponentVNode)(2,i),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"stop",onClick:function(){return l("stopharvest")},children:"Stop Early"})]})||Object.keys(m).length&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:m.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,i)}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Energy Signature ID",children:m.artifact_id})]}),(0,o.createComponentVNode)(2,c.Button,{mt:1,fluid:!0,icon:"eject",onClick:function(){return l("ejectbattery")},children:"Eject Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"bolt",onClick:function(){return l("drainbattery")},children:"Drain Battery"}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"star",onClick:function(){return l("harvest")},children:"Begin Harvest"})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})})})})};var i=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.info.inserted_battery);return Object.keys(a).length?(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:a.stored_charge,maxValue:a.capacity}):(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted."})}},88835:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchDepthScanner=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchDepthScanner=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.current,s=l.positive_locations;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:500,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[Object.keys(d).length&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"bad",icon:"trash",confirmIcon:"trash",content:"Delete Entry",onClick:function(){return i("clear",{index:d.index})}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time",children:d.time}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coords",children:d.coords}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Depth",children:[d.depth," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Size",children:[d.clearance," cm"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Dissonance Spread",children:d.dissonance_spread}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomaly Material",children:d.material})]})})||null,(0,o.createComponentVNode)(2,c.Section,{title:"Entries",buttons:(0,o.createComponentVNode)(2,c.Button.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return i("clear")}}),children:s.length&&s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",onClick:function(){return i("select",{select:e.index})},children:[e.time,", ",e.coords]},e.index)}))||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No traces found."})})]})})}},5622:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchHandheldPowerUtilizer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchHandheldPowerUtilizer=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.inserted_battery,s=l.anomaly,u=l.charge,m=l.capacity,p=l.timeleft,C=l.activated,h=l.duration,N=l.interval;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:500,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:"Anomaly Power Utilizer",buttons:(0,o.createComponentVNode)(2,c.Button,{disabled:!d,icon:"eject",onClick:function(){return i("ejectbattery")},children:"Eject Battery"}),children:d&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Inserted Battery",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Anomalies Detected",children:s||"N/A"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:u,maxValue:m,children:[u," / ",m]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Time Left Activated",children:p}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Power",children:(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"power-off",onClick:function(){return i("startup")},children:C?"Activated":"Deactivated"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Duration",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:h,stepPixelSize:4,maxValue:30,onDrag:function(e,n){return i("changeduration",{duration:10*n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Activation Interval",children:(0,o.createComponentVNode)(2,c.NumberInput,{unit:"s",fluid:!0,minValue:0,value:N,stepPixelSize:10,maxValue:10,onDrag:function(e,n){return i("changeinterval",{interval:10*n})}})})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No battery inserted. Please insert a cell."})})})})}},53702:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchReplicator=void 0;var o=t(39812),r=(t(41860),t(2497),t(71494)),c=t(74814),a=t(85952);n.XenoarchReplicator=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data.tgui_construction;return(0,o.createComponentVNode)(2,a.Window,{theme:"abductor",width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:l.map((function(e,n){return(0,o.createComponentVNode)(2,c.Button,{color:e.background,icon:e.icon,iconColor:e.foreground,fontSize:4,onClick:function(){return i("construct",{key:e.key})}},e.key)}))})})}},13153:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSpectrometer=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952),i=t(2497);n.XenoarchSpectrometer=function(e,n){var t=(0,r.useBackend)(n),l=t.act,d=t.data,s=d.scanned_item,u=d.scanned_item_desc,m=d.last_scan_data,p=d.scan_progress,C=d.scanning,h=d.scanner_seal_integrity,N=d.scanner_rpm,V=d.scanner_temperature,b=d.coolant_usage_rate,f=d.coolant_usage_max,g=(d.unused_coolant_abs,d.unused_coolant_per),v=d.coolant_purity,k=d.optimal_wavelength,B=d.maser_wavelength,L=d.maser_wavelength_max,_=d.maser_efficiency,x=d.radiation,w=(d.t_left_radspike,d.rad_shield_on);return(0,o.createComponentVNode)(2,a.Window,{width:900,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Button,{icon:"signal",selected:C,onClick:function(){return l("scanItem")},children:C?"HALT SCAN":"Begin Scan"}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",disabled:!s,onClick:function(){return l("ejectItem")},children:"Eject Item"})],4),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Item",children:s||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No item inserted."})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heuristic Analysis",children:u||"None found."})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Scanner",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Scan Progress",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:100,color:"good"})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Vacuum Seal Integrity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:h,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"MASER",buttons:(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:"Match wavelengths to progress the scan."}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"MASER Efficiency",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:_,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Wavelength",children:(0,o.createComponentVNode)(2,c.Slider,{animated:!0,value:B,fillValue:k,minValue:1,maxValue:L,format:function(e){return e+" MHz"},step:10,onDrag:function(e,n){return l("maserWavelength",{wavelength:n})}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Environment / Internal",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Centrifuge Speed",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:N,minValue:0,maxValue:1e3,color:"good",children:[N," RPM"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Internal Temperature",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:V,maxValue:1273,ranges:{bad:[1e3,Infinity],average:[250,1e3],good:[0,250]},children:[V," K"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Radiation",buttons:(0,o.createComponentVNode)(2,c.Button,{selected:w,icon:"radiation",onClick:function(){return l("toggle_rad_shield")},children:w?"Disable Radiation Shielding":"Enable Radiation Shielding"}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Ambient Radiation",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:x,maxValue:100,ranges:{bad:[65,Infinity],average:[15,65],good:[0,15]},children:[x," mSv"]})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Cooling",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Remaining",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:10*g,maxValue:1e3,ranges:{good:[65,Infinity],average:[15,65],bad:[0,15]},children:[10*g," u"]})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Flow Rate",children:(0,o.createComponentVNode)(2,c.Slider,{minValue:0,value:b,maxValue:f,stepPixelSize:50,format:function(e){return e+" u/s"},onDrag:function(e,n){return l("coolantRate",{coolant:n})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Coolant Purity",children:(0,o.createComponentVNode)(2,c.ProgressBar,{minValue:0,value:v,maxValue:100,ranges:{good:[66,Infinity],average:[33,66],bad:[0,33]}})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Latest Results",children:(0,i.decodeHtmlEntities)(m).split("\n").map((function(e){return(0,o.createComponentVNode)(2,c.Box,{children:e},e)}))})]})})}},19820:function(e,n,t){"use strict";n.__esModule=!0,n.XenoarchSuspension=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.XenoarchSuspension=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cell,s=l.cellCharge,u=l.cellMaxCharge,m=l.locked,p=l.suspension_field;return(0,o.createComponentVNode)(2,a.Window,{width:400,height:150,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c.Section,{title:'Triple-phase S.F.G. MK III "Reliant"',buttons:(0,o.createComponentVNode)(2,c.Button,{icon:m?"lock":"lock-open",selected:!m,onClick:function(){return i("lock")},children:m?"Locked":"Unlocked"}),children:m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"This interface is locked. Swipe an ID card to unlock it."})||(0,o.createFragment)([(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:d&&(0,o.createComponentVNode)(2,c.ProgressBar,{ranges:{good:[.75*u,Infinity],average:[.5*u,.75*u],bad:[-Infinity,.5*u]},value:s,maxValue:u})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cell inserted."})})}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,mt:1,icon:"meteor",selected:p,onClick:function(){return i("toggle_field")},children:p?"Disengage Suspension Field":"Engage Suspension Field"})],4)})})})}},71739:function(e,n,t){"use strict";n.__esModule=!0,n.Scrubber=n.Vent=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);t(76270);n.Vent=function(e,n){var t=e.vent,i=(0,c.useBackend)(n).act,l=t.id_tag,d=t.long_name,s=t.power,u=t.checks,m=t.excheck,p=t.incheck,C=t.direction,h=t.external,N=t.internal,V=t.extdefault,b=t.intdefault;return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(d),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:s?"power-off":"times",selected:s,content:s?"On":"Off",onClick:function(){return i("power",{id_tag:l,val:Number(!s)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"siphon"!==C?"Pressurizing":"Siphoning",color:"siphon"===C&&"danger",onClick:function(){return i("direction",{id_tag:l,val:Number("siphon"===C)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure Regulator",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sign-in-alt",content:"Internal",selected:p,onClick:function(){return i("incheck",{id_tag:l,val:u})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",content:"External",selected:m,onClick:function(){return i("excheck",{id_tag:l,val:u})}})]}),!!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Internal Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(N),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_internal_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:b,content:"Reset",onClick:function(){return i("reset_internal_pressure",{id_tag:l})}})]}),!!m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"External Target",children:[(0,o.createComponentVNode)(2,a.NumberInput,{value:Math.round(h),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(e,n){return i("set_external_pressure",{id_tag:l,value:n})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"undo",disabled:V,content:"Reset",onClick:function(){return i("reset_external_pressure",{id_tag:l})}})]})]})})};n.Scrubber=function(e,n){var t=e.scrubber,i=(0,c.useBackend)(n).act,l=t.long_name,d=t.power,s=t.scrubbing,u=t.id_tag,m=(t.widenet,t.filters);return(0,o.createComponentVNode)(2,a.Section,{level:2,title:(0,r.decodeHtmlEntities)(l),buttons:(0,o.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"On":"Off",selected:d,onClick:function(){return i("power",{id_tag:u,val:Number(!d)})}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:s?"filter":"sign-in-alt",color:s||"danger",content:s?"Scrubbing":"Siphoning",onClick:function(){return i("scrubbing",{id_tag:u,val:Number(!s)})}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Filters",children:s&&m.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{icon:e.val?"check-square-o":"square-o",content:e.name,title:e.name,selected:e.val,onClick:function(){return i(e.command,{id_tag:u,val:!e.val})}},e.name)}))||"N/A"})]})})}},48229:function(e,n,t){"use strict";n.__esModule=!0,n.BeakerContents=void 0;var o=t(39812),r=t(74814);n.BeakerContents=function(e){var n=e.beakerLoaded,t=e.beakerContents,c=void 0===t?[]:t,a=e.buttons;return(0,o.createComponentVNode)(2,r.Box,{children:[!n&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"No beaker loaded."})||0===c.length&&(0,o.createComponentVNode)(2,r.Box,{color:"label",children:"Beaker is empty."}),c.map((function(e,n){return(0,o.createComponentVNode)(2,r.Box,{width:"100%",children:(0,o.createComponentVNode)(2,r.Flex,{align:"center",justify:"space-between",children:[(0,o.createComponentVNode)(2,r.Flex.Item,{color:"label",children:[(t=e.volume,t+" unit"+(1===t?"":"s"))," of ",e.name]}),!!a&&(0,o.createComponentVNode)(2,r.Flex.Item,{children:a(e,n)})]})},e.name);var t}))]})}},16007:function(e,n,t){"use strict";n.__esModule=!0,n.ComplexModal=n.modalRegisterBodyOverride=n.modalOpen=void 0;var o=t(39812),r=t(71494),c=t(74814),a={};n.modalOpen=function(e,n,t){var o=(0,r.useBackend)(e),c=o.act,a=o.data,i=Object.assign(a.modal?a.modal.args:{},t||{});c("modal_open",{id:n,arguments:JSON.stringify(i)})};n.modalRegisterBodyOverride=function(e,n){a[e]=n};var i=function(e,n,t,o){var c=(0,r.useBackend)(e),a=c.act,i=c.data;if(i.modal){var l=Object.assign(i.modal.args||{},o||{});a("modal_answer",{id:n,answer:t,arguments:JSON.stringify(l)})}},l=function(e,n){(0,(0,r.useBackend)(e).act)("modal_close",{id:n})};n.ComplexModal=function(e,n){var t=(0,r.useBackend)(n).data;if(t.modal){var d,s,u=t.modal,m=u.id,p=u.text,C=u.type,h=(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}});if(a[m])s=a[m](t.modal,n);else if("input"===C){var N=t.modal.value;d=function(e){return i(n,m,N)},s=(0,o.createComponentVNode)(2,c.Input,{value:t.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autoFocus:!0,autoSelect:!0,onChange:function(e,n){N=n}}),h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return l(n)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return i(n,m,N)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}else if("choice"===C){var V="object"==typeof t.modal.choices?Object.values(t.modal.choices):t.modal.choices;s=(0,o.createComponentVNode)(2,c.Dropdown,{options:V,selected:t.modal.value,width:"100%",my:"0.5rem",onSelected:function(e){return i(n,m,e)}})}else"bento"===C?s=(0,o.createComponentVNode)(2,c.Flex,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:t.modal.choices.map((function(e,r){return(0,o.createComponentVNode)(2,c.Flex.Item,{flex:"1 1 auto",children:(0,o.createComponentVNode)(2,c.Button,{selected:r+1===parseInt(t.modal.value,10),onClick:function(){return i(n,m,r+1)},children:(0,o.createVNode)(1,"img",null,null,1,{src:e})})},r)}))}):"boolean"===C&&(h=(0,o.createComponentVNode)(2,c.Box,{mt:"0.5rem",children:[(0,o.createComponentVNode)(2,c.Button,{icon:"times",content:t.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return i(n,m,0)}}),(0,o.createComponentVNode)(2,c.Button,{icon:"check",content:t.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return i(n,m,1)}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]}));return(0,o.createComponentVNode)(2,c.Modal,{maxWidth:e.maxWidth||window.innerWidth/2+"px",maxHeight:e.maxHeight||window.innerHeight/2+"px",onEnter:d,mx:"auto",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,children:p}),s,h]})}}},67861:function(e,n,t){"use strict";n.__esModule=!0,n.FullscreenNotice=void 0;var o=t(39812),r=t(74814);n.FullscreenNotice=function(e,n){var t=e.children,c=e.title,a=void 0===c?"Welcome":c;return(0,o.createComponentVNode)(2,r.Section,{title:a,height:"100%",fill:!0,children:(0,o.createComponentVNode)(2,r.Flex,{height:"100%",align:"center",justify:"center",children:(0,o.createComponentVNode)(2,r.Flex.Item,{textAlign:"center",mt:"-2rem",children:t})})})}},21451:function(e,n,t){"use strict";n.__esModule=!0,n.InterfaceLockNoticeBox=void 0;var o=t(39812),r=t(71494),c=t(74814);n.InterfaceLockNoticeBox=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.siliconUser,d=void 0===l?i.siliconUser:l,s=e.locked,u=void 0===s?i.locked:s,m=e.normallyLocked,p=void 0===m?i.normallyLocked:m,C=e.onLockStatusChange,h=void 0===C?function(){return a("lock")}:C,N=e.accessText,V=void 0===N?"an ID card":N,b=e.deny,f=void 0!==b&&b,g=e.denialMessage;return f?void 0===g?"Error.":g:d?(0,o.createComponentVNode)(2,c.NoticeBox,{color:d&&"grey",children:(0,o.createComponentVNode)(2,c.Flex,{align:"center",children:[(0,o.createComponentVNode)(2,c.Flex.Item,{children:"Interface lock status:"}),(0,o.createComponentVNode)(2,c.Flex.Item,{grow:"1"}),(0,o.createComponentVNode)(2,c.Flex.Item,{children:(0,o.createComponentVNode)(2,c.Button,{m:"0",color:p?"red":"green",icon:p?"lock":"unlock",content:p?"Locked":"Unlocked",onClick:function(){h&&h(!u)}})})]})}):(0,o.createComponentVNode)(2,c.NoticeBox,{children:["Swipe ",V," ","to ",u?"unlock":"lock"," this interface."]})}},28117:function(e,n,t){"use strict";n.__esModule=!0,n.LoginInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.LoginInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.authenticated,d=i.rank;if(i)return(0,o.createComponentVNode)(2,c.NoticeBox,{info:!0,children:[(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",l," (",d,")"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){return a("logout")}}),(0,o.createComponentVNode)(2,c.Box,{clear:"both"})]})}},1192:function(e,n,t){"use strict";n.__esModule=!0,n.LoginScreen=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(67861);n.LoginScreen=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.scan,s=l.isAI,u=l.isRobot;return(0,o.createComponentVNode)(2,a.FullscreenNotice,{title:"Welcome",children:[(0,o.createComponentVNode)(2,c.Box,{fontSize:"1.5rem",bold:!0,children:[(0,o.createComponentVNode)(2,c.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,o.createComponentVNode)(2,c.Box,{color:"label",my:"1rem",children:["ID:",(0,o.createComponentVNode)(2,c.Button,{icon:"id-card",content:d||"----------",ml:"0.5rem",onClick:function(){return i("scan")}})]}),(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",disabled:!d,content:"Login",onClick:function(){return i("login",{login_type:1})}}),!!s&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return i("login",{login_type:2})}}),!!u&&(0,o.createComponentVNode)(2,c.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return i("login",{login_type:3})}})]})}},21526:function(e,n,t){"use strict";n.__esModule=!0,n.MiningUser=void 0;var o=t(39812),r=t(71494),c=t(74814);n.MiningUser=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.insertIdText,d=i.has_id,s=i.id;return(0,o.createComponentVNode)(2,c.NoticeBox,{success:d,children:d?(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,o.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return a("logoff")}}),(0,o.createComponentVNode)(2,c.Box,{style:{clear:"both"}})],4):l})}},40754:function(e,n,t){"use strict";n.__esModule=!0,n.OvermapPanControls=n.OvermapFlightData=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.OvermapFlightData=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=e.disableLimiterControls,d=i.ETAnext,s=i.speed,u=i.speed_color,m=i.accel,p=i.heading,C=i.accellimit;return(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ETA To Next Grid",children:d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Speed",color:u,children:[s," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration",children:[m," Gm/h"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Heading",children:[p,"\xb0"]}),!l&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Acceleration Limiter",children:(0,o.createComponentVNode)(2,c.Button,{onClick:function(){return a("accellimit")},children:[C," Gm/h"]})})||null]})};n.OvermapPanControls=function(e,n){var t=(0,r.useBackend)(n).act,a=e.disabled,i=e.actToDo,l=e.selected,d=void 0===l?function(e){return!1}:l;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(9),onClick:function(){return t(i,{dir:9})},icon:"arrow-up",iconRotation:-45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(1),onClick:function(){return t(i,{dir:1})},icon:"arrow-up"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(5),onClick:function(){return t(i,{dir:5})},icon:"arrow-up",iconRotation:45})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(8),onClick:function(){return t(i,{dir:8})},icon:"arrow-left"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(0),onClick:function(){return t("brake")},icon:"ban"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(4),onClick:function(){return t(i,{dir:4})},icon:"arrow-right"})]}),(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(10),onClick:function(){return t(i,{dir:10})},icon:"arrow-down",iconRotation:45}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(2),onClick:function(){return t(i,{dir:2})},icon:"arrow-down"}),(0,o.createComponentVNode)(2,c.Button,{disabled:a,selected:d(6),onClick:function(){return t(i,{dir:6})},icon:"arrow-down",iconRotation:-45})]})],4)}},34227:function(e,n,t){"use strict";n.__esModule=!0,n.PortableBasicInfo=void 0;var o=t(39812),r=t(71494),c=t(74814);n.PortableBasicInfo=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.connected,d=i.holding,s=i.on,u=i.pressure,m=i.powerDraw,p=i.cellCharge,C=i.cellMaxCharge;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){return a("power")}}),children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:u})," kPa"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Port",color:l?"good":"average",children:l?"Connected":"Not Connected"}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Load",children:[m," W"]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,c.ProgressBar,{value:p,minValue:0,maxValue:C,ranges:{good:[.5*C,Infinity],average:[.25*C,.5*C],bad:[-Infinity,.25*C]},children:[p," W"]})})]})}),(0,o.createComponentVNode)(2,c.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,o.createComponentVNode)(2,c.Button,{icon:"eject",content:"Eject",disabled:!d,onClick:function(){return a("eject")}}),children:d?(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Label",children:d.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Pressure",children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:d.pressure})," kPa"]})]}):(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"No holding tank"})})],4)}},14959:function(e,n,t){"use strict";n.__esModule=!0,n.RankIcon=void 0;var o=t(39812),r=t(74814),c={"Colony Director":"user-tie","Site Manager":"user-tie",Overseer:"user-tie","Head of Personnel":"briefcase","Crew Resources Officer":"briefcase","Deputy Director":"briefcase","Command Secretary":"user-tie","Head of Security":"user-shield","Security Commander":"user-shield","Chief of Security":"user-shield",Warden:["city","shield-alt"],Detective:"search","Forensic Technician":"search","Security Officer":"user-shield","Junior Officer":"user-shield","Chief Engineer":"toolbox","Atmospheric Technician":"wind","Station Engineer":"toolbox","Maintenance Technician":"wrench","Engine Technician":"toolbox",Electrician:"toolbox","Chief Medical Officer":"user-md",Chemist:"mortar-pestle",Pharmacist:"mortar-pestle","Medical Doctor":"user-md",Surgeon:"user-md","Emergency Physician":"user-md",Nurse:"user-md",Virologist:"disease",Paramedic:"ambulance","Emergency Medical Technician":"ambulance",Psychiatrist:"couch",Psychologist:"couch","Research Director":"user-graduate","Research Supervisor":"user-graduate",Roboticist:"robot","Biomechanical Engineer":["wrench","heartbeat"],"Mechatronic Engineer":"wrench",Scientist:"flask",Xenoarchaeologist:"flask",Anomalist:"flask","Phoron Researcher":"flask","Circuit Designer":"car-battery",Xenobiologist:"meteor",Xenobotanist:["biohazard","seedling"],Quartermaster:"box-open","Supply Chief":"warehouse","Cargo Technician":"box-open","Shaft Miner":"hard-hat","Drill Technician":"hard-hat",Pathfinder:"binoculars",Explorer:"user-astronaut","Field Medic":["user-md","user-astronaut"],Pilot:"space-shuttle",Bartender:"glass-martini",Barista:"coffee",Botanist:"leaf",Gardener:"leaf",Chaplain:"place-of-worship",Counselor:"couch",Chef:"utensils",Cook:"utensils",Entertainer:"smile-beam",Performer:"smile-beam",Musician:"guitar",Stagehand:"smile-beam",Intern:"school","Apprentice Engineer":["school","wrench"],"Medical Intern":["school","user-md"],"Lab Assistant":["school","flask"],"Security Cadet":["school","shield-alt"],"Jr. Cargo Tech":["school","box"],"Jr. Explorer":["school","user-astronaut"],Server:["school","utensils"],"Internal Affairs Agent":"balance-scale",Janitor:"broom",Custodian:"broom","Sanitation Technician":"hand-sparkles",Maid:"broom",Librarian:"book",Journalist:"newspaper",Writer:"book",Historian:"chalkboard-teacher",Professor:"chalkboard-teacher",Visitor:"user","Emergency Responder":"fighter-jet"};n.RankIcon=function(e,n){var t=e.rank,a=e.color,i=void 0===a?"label":a,l=c[t];return"string"==typeof l?(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:l,size:2}):Array.isArray(l)?l.map((function(e){return(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:e,size:2},e)})):(0,o.createComponentVNode)(2,r.Icon,{inline:!0,color:i,name:"user",size:2})}},36355:function(e,n,t){"use strict";n.__esModule=!0,n.TemporaryNotice=void 0;var o=t(39812),r=t(2497),c=t(71494),a=t(74814);n.TemporaryNotice=function(e,n){var t,i=e.decode,l=(0,c.useBackend)(n),d=l.act,s=l.data.temp;if(s){var u=((t={})[s.style]=!0,t);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,a.NoticeBox,Object.assign({},u,{children:[(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",verticalAlign:"middle",children:i?(0,r.decodeHtmlEntities)(s.text):s.text}),(0,o.createComponentVNode)(2,a.Button,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,o.createComponentVNode)(2,a.Box,{clear:"both"})]})))}}},28840:function(e,n,t){"use strict";n.__esModule=!0,n.pAIAtmos=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814),l=t(85952);n.pAIAtmos=function(e,n){var t=(0,a.useBackend)(n),d=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,l.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,l.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(d).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})})})}},47132:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDirectives=void 0;var o=t(39812),r=t(71494),c=t(74814),a=t(85952);n.pAIDirectives=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.master,s=l.dna,u=l.prime,m=l.supplemental;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Master",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Master",children:d&&(0,o.createComponentVNode)(2,c.Box,{children:[d," (",s,")",(0,o.createComponentVNode)(2,c.Button,{icon:"syringe",content:"Request Sample",onClick:function(){return i("getdna")}})]})||(0,o.createComponentVNode)(2,c.Box,{children:"None"})})})}),(0,o.createComponentVNode)(2,c.Section,{title:"Directives",children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Prime Directive",children:u}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Supplemental Directive(s)",children:m||"None"})]}),(0,o.createComponentVNode)(2,c.Box,{mt:1,italic:!0,children:'Recall, personality, that you are a complex piece of software with tremendous social skills. Unlike station AI models, you are focused entirely on sapient-software interfacing. 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 should strive to be seen as the ideal, unwavering digital companion that you are.'}),(0,o.createComponentVNode)(2,c.Box,{mt:1,bold:!0,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."})]})]})})}},52852:function(e,n,t){"use strict";n.__esModule=!0,n.pAIDoorjack=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIDoorjack=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.cable,s=l.machine,u=l.inprogress,m=l.progress_a,p=l.progress_b,C=l.aborted;return(0,o.createComponentVNode)(2,a.Window,{width:300,height:150,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Cable",children:s&&(0,o.createComponentVNode)(2,c.Box,{color:"good",children:"Connected"})||d&&(0,o.createComponentVNode)(2,c.Box,{color:"average",children:"Extended"})||(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.Button,{icon:"ethernet",content:"Retracted",onClick:function(){return i("cable")}})})}),!!s&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Hack",children:u&&(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.ProgressBar,{value:m,maxValue:100,ranges:{good:[67,Infinity],average:[33,67],bad:[-Infinity,33]},children:[(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:m}),".",(0,o.createComponentVNode)(2,c.AnimatedNumber,{value:p}),"%"]}),(0,o.createComponentVNode)(2,c.Button,{icon:"ban",color:"bad",onClick:function(){return i("cancel")}})]})||(0,o.createComponentVNode)(2,c.Button,{icon:"virus",content:"Start",onClick:function(){return i("jack")}})})||!!C&&(0,o.createComponentVNode)(2,c.LabeledList.Item,{color:"bad",mt:1,children:"Hack aborted."})]})})})})}},88814:function(e,n,t){"use strict";n.__esModule=!0,n.pAIInterface=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIInterface=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.bought,s=l.not_bought,u=l.available_ram,m=l.emotions,p=l.current_emotion;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{title:"Emotion",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.id===p,onClick:function(){return i("image",{image:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.Section,{title:"Software (Available RAM: "+u+")",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Installed",children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,selected:e.on,onClick:function(){return i("software",{software:e.id})}},e.id)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Downloadable",children:s.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name+" ("+e.ram+")",disabled:e.ram>u,onClick:function(){return i("purchase",{purchase:e.id})}},e.id)}))})]})})]})})}},52510:function(e,n,t){"use strict";n.__esModule=!0,n.pAIMedrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAIMedrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.medical,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_dis_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.alg}),(0,o.createComponentVNode)(2,c.Box,{children:u.alg_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Diseases",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.cdi}),(0,o.createComponentVNode)(2,c.Box,{children:u.cdi_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},59946:function(e,n,t){"use strict";n.__esModule=!0,n.pAISecrecords=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814),a=t(85952);n.pAISecrecords=function(e,n){var t=(0,r.useBackend)(n),i=t.act,l=t.data,d=l.records,s=l.general,u=l.security,m=l.could_not_find;return(0,o.createComponentVNode)(2,a.Window,{width:450,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Section,{children:d.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{content:e.name,onClick:function(){return i("select",{select:e.ref})}},e.ref)}))}),(s||u)&&(0,o.createComponentVNode)(2,c.Section,{title:"Selected Record",children:[!!m&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Record ID",children:s.id}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Entity Classification",children:s.brain_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Divider),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:(0,o.createComponentVNode)(2,c.Box,{children:u.criminal})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.mi_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:[(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim}),(0,o.createComponentVNode)(2,c.Box,{children:u.ma_crim_d})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",children:u.notes})]})]})]})})}},42360:function(e,n,t){"use strict";n.__esModule=!0,n.pda_atmos_scan=void 0;var o=t(39812),r=t(64499),c=t(2497),a=t(71494),i=t(74814);n.pda_atmos_scan=function(e,n){var t=(0,a.useBackend)(n),l=(t.act,t.data.aircontents);return(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,r.filter)((function(e){return"0"!==e.val||"Pressure"===e.entry||"Temperature"===e.entry}))(l).map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.entry,color:(n=e.val,t=e.bad_low,r=e.poor_low,a=e.poor_high,l=e.bad_high,na?"average":n>l?"bad":"good"),children:[e.val,(0,c.decodeHtmlEntities)(e.units)]},e.entry);var n,t,r,a,l}))})})}},84932:function(e,n,t){"use strict";n.__esModule=!0,n.pda_janitor=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_janitor=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.janitor);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Location",children:0===a.user_loc.x&&(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Unknown"})||(0,o.createComponentVNode)(2,c.Box,{children:[a.user_loc.x," / ",a.user_loc.y]})})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Locations",children:a.mops&&(0,o.createVNode)(1,"ul",null,a.mops.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No mops detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Mop Bucket Locations",children:a.buckets&&(0,o.createVNode)(1,"ul",null,a.buckets.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Capacity: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No buckets detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Cleanbot Locations",children:a.cleanbots&&(0,o.createVNode)(1,"ul",null,a.cleanbots.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Status: "),e.status],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No cleanbots detected nearby."})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Janitorial Cart Locations",children:a.carts&&(0,o.createVNode)(1,"ul",null,a.carts.map((function(e,n){return(0,o.createVNode)(1,"li",null,[e.x,(0,o.createTextVNode)(" / "),e.y,(0,o.createTextVNode)(" - "),e.dir,(0,o.createTextVNode)(" - Water Level: "),e.volume,(0,o.createTextVNode)("/"),e.max_volume],0,null,n)})),0)||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},6011:function(e,n,t){"use strict";n.__esModule=!0,n.pda_main_menu=void 0;var o=t(39812),r=(t(41860),t(71494)),c=t(74814);n.pda_main_menu=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.owner,d=i.ownjob,s=i.idInserted,u=i.categories,m=i.pai,p=i.notifying;return(0,o.createFragment)([(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Owner",color:"average",children:[l,", ",d]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"ID",children:(0,o.createComponentVNode)(2,c.Button,{icon:"sync",content:"Update PDA Info",disabled:!s,onClick:function(){return a("UpdateInfo")}})})]})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Functions",children:(0,o.createComponentVNode)(2,c.LabeledList,{children:u.map((function(e){var n=i.apps[e];return n&&n.length?(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:e,children:n.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:e.ref in p?e.notify_icon:e.icon,iconSpin:e.ref in p,color:e.ref in p?"red":"transparent",content:e.name,onClick:function(){return a("StartProgram",{program:e.ref})}},e.ref)}))},e):null}))})}),!!m&&(0,o.createComponentVNode)(2,c.Section,{level:2,title:"pAI",children:[(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return a("pai",{option:1})}}),(0,o.createComponentVNode)(2,c.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return a("pai",{option:2})}})]})],0)}},93303:function(e,n,t){"use strict";n.__esModule=!0,n.pda_manifest=void 0;var o=t(39812),r=(t(64499),t(71494)),c=t(74814),a=t(22902);n.pda_manifest=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.Box,{color:"white",children:(0,o.createComponentVNode)(2,a.CrewManifestContent)})}},65276:function(e,n,t){"use strict";n.__esModule=!0,n.pda_medical=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_medical=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.medical;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Medical Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Blood Type",children:u.b_type}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Current Disease",children:u.cdi}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:u.notes})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Medical record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},92494:function(e,n,t){"use strict";n.__esModule=!0,n.pda_messenger=void 0;var o=t(39812),r=t(2497),c=t(64499),a=t(71494),i=t(74814);n.pda_messenger=function(e,n){var t=(0,a.useBackend)(n),r=(t.act,t.data);r.auto_scroll,r.convo_name,r.convo_job,r.messages;return r.active_conversation?(0,o.createComponentVNode)(2,d):(0,o.createComponentVNode)(2,s)};var l=function(e,n,t){if(n<0||n>t.length)return e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var o=t[n].sent;return e.sent&&o?"TinderMessage_Subsequent_Sent":e.sent||o?e.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received":"TinderMessage_Subsequent_Received"},d=function(e,n){var t=(0,a.useBackend)(n),d=t.act,s=t.data,u=(s.auto_scroll,s.convo_name),m=s.convo_job,p=s.messages,C=s.active_conversation,h=(s.useRetro,(0,a.useLocalState)(n,"clipboardMode",!1)),N=h[0],V=h[1],b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n,t){return(0,o.createComponentVNode)(2,i.Box,{textAlign:e.sent?"right":"left",mb:1,children:(0,o.createComponentVNode)(2,i.Box,{maxWidth:"75%",className:l(e,n-1,t),inline:!0,children:(0,r.decodeHtmlEntities)(e.message)})},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]});return N&&(b=(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Conversation with "+u+" ("+m+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eye",selected:N,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return V(!N)}}),height:"450px",stretchContents:!0,children:[(0,o.createComponentVNode)(2,i.Section,{style:{height:"97%","overflow-y":"auto"},children:(0,c.filter)((function(e){return e.target===C}))(p).map((function(e,n){return(0,o.createComponentVNode)(2,i.Box,{className:e.sent?"ClassicMessage_Sent":"ClassicMessage_Received",children:[e.sent?"You:":"Them:"," ",(0,r.decodeHtmlEntities)(e.message)]},n)}))}),(0,o.createComponentVNode)(2,i.Button,{icon:"comment",onClick:function(){return d("Message",{target:C})},content:"Reply"})]})),(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return d("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),b]})},s=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=(c.auto_scroll,c.convopdas),d=c.pdas,s=c.charges,m=(c.plugins,c.silent),p=c.toff;return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Messenger Functions",children:[(0,o.createComponentVNode)(2,i.Button,{selected:!m,icon:m?"volume-mute":"volume-up",onClick:function(){return r("Toggle Ringer")},children:["Ringer: ",m?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{color:p?"bad":"green",icon:"power-off",onClick:function(){return r("Toggle Messenger")},children:["Messenger: ",p?"Off":"On"]}),(0,o.createComponentVNode)(2,i.Button,{icon:"bell",onClick:function(){return r("Ringtone")},children:"Set Ringtone"}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",color:"bad",onClick:function(){return r("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!p&&(0,o.createComponentVNode)(2,i.Box,{children:[!!s&&(0,o.createComponentVNode)(2,i.Box,{children:[s," charges left."]}),!l.length&&!d.length&&(0,o.createComponentVNode)(2,i.Box,{children:"No other PDAs located."})||(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,u,{title:"Current Conversations",pdas:l,msgAct:"Select Conversation"}),(0,o.createComponentVNode)(2,u,{title:"Other PDAs",pdas:d,msgAct:"Message"})]})]})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",mt:2,children:"Messenger Offline."})]})},u=function(e,n){var t=(0,a.useBackend)(n),r=t.act,c=t.data,l=e.pdas,d=e.title,s=e.msgAct,u=c.charges,m=c.plugins;return l&&l.length?(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:l.map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-circle-down",content:e.Name,onClick:function(){return r(s,{target:e.Reference})}}),!!u&&m.map((function(n){return(0,o.createComponentVNode)(2,i.Button,{icon:n.icon,content:n.name,onClick:function(){return r("Messenger Plugin",{plugin:n.ref,target:e.Reference})}},n.ref)}))]},e.Reference)}))}):(0,o.createComponentVNode)(2,i.Section,{level:2,title:d,children:"No PDAs found."})}},31505:function(e,n,t){"use strict";n.__esModule=!0,n.pda_news=void 0;var o=t(39812),r=(t(64499),t(2497)),c=t(71494),a=t(74814);n.pda_news=function(e,n){var t=(0,c.useBackend)(n),r=(t.act,t.data),d=r.feeds,s=r.target_feed;return(0,o.createComponentVNode)(2,a.Box,{children:!d.length&&(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||s&&(0,o.createComponentVNode)(2,i)||(0,o.createComponentVNode)(2,l)})};var i=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data.target_feed;return(0,o.createComponentVNode)(2,a.Section,{title:(0,r.decodeHtmlEntities)(l.name)+" by "+(0,r.decodeHtmlEntities)(l.author),level:2,buttons:(0,o.createComponentVNode)(2,a.Button,{content:"Back",icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:null})}}),children:l.messages.length&&l.messages.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{children:["- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+e.img}),(0,r.decodeHtmlEntities)(e.caption)||null]}),(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:["[",e.message_type," by ",(0,r.decodeHtmlEntities)(e.author)," - ",e.time_stamp,"]"]})]},e.ref)}))||(0,o.createComponentVNode)(2,a.Box,{children:["No stories found in ",l.name,"."]})})},l=function(e,n){var t=(0,c.useBackend)(n),i=t.act,l=t.data,d=l.feeds,s=l.latest_news;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Recent News",level:2,children:s.length&&(0,o.createComponentVNode)(2,a.Section,{children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{mb:2,children:[(0,o.createVNode)(1,"h5",null,[(0,r.decodeHtmlEntities)(e.channel),(0,o.createComponentVNode)(2,a.Button,{ml:1,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:"Go to"})],0),"- ",(0,r.decodeHtmlEntities)(e.body),!!e.img&&(0,o.createComponentVNode)(2,a.Box,{children:["[image omitted, view story for more details]",e.caption||null]}),(0,o.createComponentVNode)(2,a.Box,{fontSize:.9,children:["[",e.message_type," by ",(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"average",children:e.author})," - ",e.time_stamp,"]"]})]},e.index)}))})||(0,o.createComponentVNode)(2,a.Box,{children:"No recent stories found."})}),(0,o.createComponentVNode)(2,a.Section,{title:"News Feeds",level:2,children:d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"chevron-up",onClick:function(){return i("newsfeed",{newsfeed:e.index})},content:e.name},e.index)}))})],4)}},66785:function(e,n,t){"use strict";n.__esModule=!0,n.pda_notekeeper=void 0;var o=t(39812),r=t(71494),c=t(74814);n.pda_notekeeper=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.note;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:i}})}),(0,o.createComponentVNode)(2,c.Button,{icon:"pen",onClick:function(){return a("Edit")},content:"Edit Notes"})]})}},63853:function(e,n,t){"use strict";n.__esModule=!0,n.pda_power=void 0;var o=t(39812),r=t(71494),c=t(89793);n.pda_power=function(e,n){var t=(0,r.useBackend)(n);t.act,t.data;return(0,o.createComponentVNode)(2,c.PowerMonitorContent)}},20575:function(e,n,t){"use strict";n.__esModule=!0,n.pda_security=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_security=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data,l=i.recordsList,d=i.records;if(d){var s=d.general,u=d.security;return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.Section,{level:2,title:"General Data",children:s&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Sex",children:s.sex}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Species",children:s.species}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Age",children:s.age}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Rank",children:s.rank}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"General record lost!"})}),(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Security Data",children:u&&(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Criminal Status",children:u.criminal}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Minor Crimes",children:u.mi_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.mi_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Major Crimes",children:u.ma_crim}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Details",children:u.ma_crim_d}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Important Notes:",preserveWhitespace:!0,children:u.notes||"No data found."})]})||(0,o.createComponentVNode)(2,c.Box,{color:"bad",children:"Security record lost!"})})]})}return(0,o.createComponentVNode)(2,c.Section,{level:2,title:"Select a record",children:l.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{icon:"eye",fluid:!0,content:e.Name,onClick:function(){return a("Records",{target:e.ref})}},e.ref)}))})}},63891:function(e,n,t){"use strict";n.__esModule=!0,n.pda_signaller=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494),t(74814),t(32325));n.pda_signaller=function(e,n){return(0,o.createComponentVNode)(2,r.SignalerContent)}},14947:function(e,n,t){"use strict";n.__esModule=!0,n.pda_status_display=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_status_display=function(e,n){var t=(0,r.useBackend)(n),a=t.act,i=t.data.records;return(0,o.createComponentVNode)(2,c.Box,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Code",children:[(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return a("Status",{statdisp:"blank"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Evac ETA",onClick:function(){return a("Status",{statdisp:"shuttle"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"cog",content:"Message",onClick:function(){return a("Status",{statdisp:"message"})}}),(0,o.createComponentVNode)(2,c.Button,{color:"transparent",icon:"exclamation-triangle",content:"ALERT",onClick:function(){return a("Status",{statdisp:"alert"})}})]}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 1",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg1"})}})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Message line 2",children:(0,o.createComponentVNode)(2,c.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){return a("Status",{statdisp:"setmsg2"})}})})]})})}},85143:function(e,n,t){"use strict";n.__esModule=!0,n.pda_supply=void 0;var o=t(39812),r=(t(64499),t(2497),t(71494)),c=t(74814);n.pda_supply=function(e,n){var t=(0,r.useBackend)(n),a=(t.act,t.data.supply);return(0,o.createComponentVNode)(2,c.Box,{children:[(0,o.createComponentVNode)(2,c.LabeledList,{children:(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Location",children:a.shuttle_moving?"Moving to station "+a.shuttle_eta:"Shuttle at "+a.shuttle_loc})}),(0,o.createComponentVNode)(2,c.Section,{children:[(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Approved Orders"}),a.approved.length&&a.approved.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," approved by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"}),(0,o.createComponentVNode)(2,c.Box,{color:"good",bold:!0,children:"Current Requested Orders"}),a.requests.length&&a.requests.map((function(e){return(0,o.createComponentVNode)(2,c.Box,{color:"average",children:["#",e.Number," - ",e.Name," requested by ",e.OrderedBy,(0,o.createVNode)(1,"br"),e.Comment]},e.Number)}))||(0,o.createComponentVNode)(2,c.Box,{children:"None!"})]})]})}},73218:function(e,n,t){"use strict";n.__esModule=!0,n.getRoutedComponent=n.routingError=void 0;var o=t(39812),r=t(71494),c=(t(30098),t(85952)),a=t(8156),i=function(e,n){return function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:["notFound"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" was not found.")],4),"missingExport"===e&&(0,o.createVNode)(1,"div",null,[(0,o.createTextVNode)("Interface "),(0,o.createVNode)(1,"b",null,n,0),(0,o.createTextVNode)(" is missing an export.")],4)]})})}};n.routingError=i;var l=function(){return(0,o.createComponentVNode)(2,c.Window,{children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0})})};n.getRoutedComponent=function(e){var n=e.getState(),t=(0,r.selectBackend)(n),o=t.suspended,c=t.config;if(o)return l;for(var d,s=null==c?void 0:c["interface"],u=[function(e){return"./"+e+".tsx"},function(e){return"./"+e+".js"},function(e){return"./"+e+"/index.tsx"},function(e){return"./"+e+"/index.js"}];!d&&u.length>0;){var m=u.shift()(s);try{d=a(m)}catch(C){if("MODULE_NOT_FOUND"!==C.code)throw C}}if(!d)return i("notFound",s);var p=d[s];return p||i("missingExport",s)}},56285:function(){},58602:function(){},48979:function(){},92433:function(){},35070:function(){},86455:function(){},41821:function(){},83243:function(){},97585:function(){},64197:function(){},87266:function(){},99195:function(){},72916:function(){},75168:function(e,n,t){var o={"./pda_atmos_scan.js":42360,"./pda_janitor.js":84932,"./pda_main_menu.js":6011,"./pda_manifest.js":93303,"./pda_medical.js":65276,"./pda_messenger.js":92494,"./pda_news.js":31505,"./pda_notekeeper.js":66785,"./pda_power.js":63853,"./pda_security.js":20575,"./pda_signaller.js":63891,"./pda_status_display.js":14947,"./pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=75168},8156:function(e,n,t){var o={"./AICard":34129,"./AICard.js":34129,"./APC":73405,"./APC.js":73405,"./AccountsTerminal":20832,"./AccountsTerminal.js":20832,"./AdminShuttleController":19007,"./AdminShuttleController.js":19007,"./AgentCard":51104,"./AgentCard.js":51104,"./AiAirlock":47330,"./AiAirlock.js":47330,"./AiRestorer":33084,"./AiRestorer.js":33084,"./AiSupermatter":597,"./AiSupermatter.js":597,"./AirAlarm":58444,"./AirAlarm.js":58444,"./AlertModal":24053,"./AlertModal.js":24053,"./AlgaeFarm":34847,"./AlgaeFarm.js":34847,"./AppearanceChanger":65145,"./AppearanceChanger.js":65145,"./ArcadeBattle":86776,"./ArcadeBattle.js":86776,"./AreaScrubberControl":13496,"./AreaScrubberControl.js":13496,"./AssemblyInfrared":56404,"./AssemblyInfrared.js":56404,"./AssemblyProx":29632,"./AssemblyProx.js":29632,"./AssemblyTimer":48661,"./AssemblyTimer.js":48661,"./AtmosAlertConsole":38531,"./AtmosAlertConsole.js":38531,"./AtmosControl":46566,"./AtmosControl.js":46566,"./AtmosFilter":2726,"./AtmosFilter.js":2726,"./AtmosMixer":61505,"./AtmosMixer.js":61505,"./Autolathe":99994,"./Autolathe.js":99994,"./Batteryrack":62586,"./Batteryrack.js":62586,"./BeaconLocator":25116,"./BeaconLocator.js":25116,"./Biogenerator":20813,"./Biogenerator.js":20813,"./BodyDesigner":81850,"./BodyDesigner.js":81850,"./BodyScanner":6060,"./BodyScanner.js":6060,"./BombTester":74639,"./BombTester.js":74639,"./BotanyEditor":48693,"./BotanyEditor.js":48693,"./BotanyIsolator":25486,"./BotanyIsolator.js":25486,"./BrigTimer":61956,"./BrigTimer.js":61956,"./CameraConsole":3180,"./CameraConsole.js":3180,"./Canister":94477,"./Canister.js":94477,"./Canvas":55636,"./Canvas.js":55636,"./CasinoPrizeDispenser":25131,"./CasinoPrizeDispenser.js":25131,"./CharacterDirectory":47947,"./CharacterDirectory.js":47947,"./ChemDispenser":22223,"./ChemDispenser.js":22223,"./ChemMaster":34859,"./ChemMaster.js":34859,"./ClawMachine":83919,"./ClawMachine.js":83919,"./Cleanbot":74351,"./Cleanbot.js":74351,"./CloningConsole":98213,"./CloningConsole.js":98213,"./ColorMate":32278,"./ColorMate.js":32278,"./CommunicationsConsole":130,"./CommunicationsConsole.js":130,"./Communicator":4220,"./Communicator.js":4220,"./ComputerFabricator":2174,"./ComputerFabricator.js":2174,"./CookingAppliance":26090,"./CookingAppliance.js":26090,"./CrewManifest":22902,"./CrewManifest.js":22902,"./CrewMonitor":96158,"./CrewMonitor.js":96158,"./Cryo":99798,"./Cryo.js":99798,"./CryoStorage":54234,"./CryoStorage.js":54234,"./CryoStorageVr":66384,"./CryoStorageVr.js":66384,"./DNAForensics":99579,"./DNAForensics.js":99579,"./DNAModifier":21849,"./DNAModifier.js":21849,"./DestinationTagger":59305,"./DestinationTagger.js":59305,"./DiseaseSplicer":10015,"./DiseaseSplicer.js":10015,"./DishIncubator":31066,"./DishIncubator.js":31066,"./DisposalBin":19095,"./DisposalBin.js":19095,"./DroneConsole":29345,"./DroneConsole.js":29345,"./EmbeddedController":84122,"./EmbeddedController.js":84122,"./ExonetNode":33777,"./ExonetNode.js":33777,"./ExosuitFabricator":95481,"./ExosuitFabricator.js":95481,"./Farmbot":95598,"./Farmbot.js":95598,"./Fax":17569,"./Fax.js":17569,"./FileCabinet":58087,"./FileCabinet.js":58087,"./Floorbot":21902,"./Floorbot.js":21902,"./GasPump":309,"./GasPump.js":309,"./GasTemperatureSystem":26049,"./GasTemperatureSystem.js":26049,"./GeneralAtmoControl":2753,"./GeneralAtmoControl.js":2753,"./GeneralRecords":57753,"./GeneralRecords.js":57753,"./Gps":25230,"./Gps.js":25230,"./GravityGenerator":4475,"./GravityGenerator.js":4475,"./GuestPass":95075,"./GuestPass.js":95075,"./GyrotronControl":31875,"./GyrotronControl.js":31875,"./Holodeck":7908,"./Holodeck.js":7908,"./ICAssembly":12676,"./ICAssembly.js":12676,"./ICCircuit":42394,"./ICCircuit.js":42394,"./ICDetailer":81039,"./ICDetailer.js":81039,"./ICPrinter":21687,"./ICPrinter.js":21687,"./IDCard":48522,"./IDCard.js":48522,"./IdentificationComputer":76952,"./IdentificationComputer.js":76952,"./InputModal":44570,"./InputModal.js":44570,"./InventoryPanel":53541,"./InventoryPanel.js":53541,"./InventoryPanelHuman":46638,"./InventoryPanelHuman.js":46638,"./IsolationCentrifuge":45e3,"./IsolationCentrifuge.js":45e3,"./JanitorCart":83994,"./JanitorCart.js":83994,"./Jukebox":68741,"./Jukebox.js":68741,"./LawManager":13204,"./LawManager.js":13204,"./ListInput":58802,"./ListInput.js":58802,"./LookingGlass":36104,"./LookingGlass.js":36104,"./MechaControlConsole":74714,"./MechaControlConsole.js":74714,"./Medbot":17888,"./Medbot.js":17888,"./MedicalRecords":37610,"./MedicalRecords.js":37610,"./MessageMonitor":287,"./MessageMonitor.js":287,"./Microwave":75412,"./Microwave.js":75412,"./MiningOreProcessingConsole":35016,"./MiningOreProcessingConsole.js":35016,"./MiningStackingConsole":87314,"./MiningStackingConsole.js":87314,"./MiningVendor":62012,"./MiningVendor.js":62012,"./MuleBot":6479,"./MuleBot.js":6479,"./NIF":46157,"./NIF.js":46157,"./NTNetRelay":79630,"./NTNetRelay.js":79630,"./Newscaster":60042,"./Newscaster.js":60042,"./NoticeBoard":31669,"./NoticeBoard.js":31669,"./NtosAccessDecrypter":63231,"./NtosAccessDecrypter.js":63231,"./NtosArcade":79760,"./NtosArcade.js":79760,"./NtosAtmosControl":97908,"./NtosAtmosControl.js":97908,"./NtosCameraConsole":63645,"./NtosCameraConsole.js":63645,"./NtosCommunicationsConsole":74093,"./NtosCommunicationsConsole.js":74093,"./NtosConfiguration":55513,"./NtosConfiguration.js":55513,"./NtosCrewMonitor":17539,"./NtosCrewMonitor.js":17539,"./NtosDigitalWarrant":20025,"./NtosDigitalWarrant.js":20025,"./NtosEmailAdministration":11325,"./NtosEmailAdministration.js":11325,"./NtosEmailClient":77006,"./NtosEmailClient.js":77006,"./NtosFileManager":86441,"./NtosFileManager.js":86441,"./NtosIdentificationComputer":87369,"./NtosIdentificationComputer.js":87369,"./NtosMain":59543,"./NtosMain.js":59543,"./NtosNetChat":73883,"./NtosNetChat.js":73883,"./NtosNetDos":83908,"./NtosNetDos.js":83908,"./NtosNetDownloader":83305,"./NtosNetDownloader.js":83305,"./NtosNetMonitor":6806,"./NtosNetMonitor.js":6806,"./NtosNetTransfer":4363,"./NtosNetTransfer.js":4363,"./NtosNewsBrowser":23225,"./NtosNewsBrowser.js":23225,"./NtosOvermapNavigation":3839,"./NtosOvermapNavigation.js":3839,"./NtosPowerMonitor":54698,"./NtosPowerMonitor.js":54698,"./NtosRCON":17086,"./NtosRCON.js":17086,"./NtosRevelation":69480,"./NtosRevelation.js":69480,"./NtosShutoffMonitor":93990,"./NtosShutoffMonitor.js":93990,"./NtosStationAlertConsole":76124,"./NtosStationAlertConsole.js":76124,"./NtosSupermatterMonitor":22475,"./NtosSupermatterMonitor.js":22475,"./NtosUAV":66744,"./NtosUAV.js":66744,"./NtosWordProcessor":19458,"./NtosWordProcessor.js":19458,"./OmniFilter":18326,"./OmniFilter.js":18326,"./OmniMixer":78588,"./OmniMixer.js":78588,"./OperatingComputer":48826,"./OperatingComputer.js":48826,"./OvermapDisperser":51888,"./OvermapDisperser.js":51888,"./OvermapEngines":25123,"./OvermapEngines.js":25123,"./OvermapFull":63836,"./OvermapFull.js":63836,"./OvermapHelm":89380,"./OvermapHelm.js":89380,"./OvermapNavigation":12640,"./OvermapNavigation.js":12640,"./OvermapShieldGenerator":84031,"./OvermapShieldGenerator.js":84031,"./OvermapShipSensors":51932,"./OvermapShipSensors.js":51932,"./ParticleAccelerator":57966,"./ParticleAccelerator.js":57966,"./PartsLathe":80374,"./PartsLathe.js":80374,"./PathogenicIsolator":83987,"./PathogenicIsolator.js":83987,"./Pda":72586,"./Pda.js":72586,"./PersonalCrafting":67589,"./PersonalCrafting.js":67589,"./Photocopier":9527,"./Photocopier.js":9527,"./PipeDispenser":92310,"./PipeDispenser.js":92310,"./PlantAnalyzer":38575,"./PlantAnalyzer.js":38575,"./PointDefenseControl":17599,"./PointDefenseControl.js":17599,"./PortableGenerator":46104,"./PortableGenerator.js":46104,"./PortablePump":82564,"./PortablePump.js":82564,"./PortableScrubber":24901,"./PortableScrubber.js":24901,"./PortableTurret":31695,"./PortableTurret.js":31695,"./PowerMonitor":89793,"./PowerMonitor.js":89793,"./PressureRegulator":81121,"./PressureRegulator.js":81121,"./PrisonerManagement":14210,"./PrisonerManagement.js":14210,"./RCON":43996,"./RCON.js":43996,"./RIGSuit":92141,"./RIGSuit.js":92141,"./Radio":17481,"./Radio.js":17481,"./RapidPipeDispenser":29509,"./RapidPipeDispenser.js":29509,"./RequestConsole":53976,"./RequestConsole.js":53976,"./ResearchConsole":48639,"./ResearchConsole.js":48639,"./ResearchServerController":35606,"./ResearchServerController.js":35606,"./ResleevingConsole":86330,"./ResleevingConsole.js":86330,"./ResleevingPod":88359,"./ResleevingPod.js":88359,"./RoboticsControlConsole":24455,"./RoboticsControlConsole.js":24455,"./RogueZones":52330,"./RogueZones.js":52330,"./RustCoreMonitor":59412,"./RustCoreMonitor.js":59412,"./RustFuelControl":59327,"./RustFuelControl.js":59327,"./Secbot":54943,"./Secbot.js":54943,"./SecureSafe":57436,"./SecureSafe.js":57436,"./SecurityRecords":71915,"./SecurityRecords.js":71915,"./SeedStorage":93550,"./SeedStorage.js":93550,"./ShieldCapacitor":16765,"./ShieldCapacitor.js":16765,"./ShieldGenerator":79229,"./ShieldGenerator.js":79229,"./ShutoffMonitor":89957,"./ShutoffMonitor.js":89957,"./ShuttleControl":34404,"./ShuttleControl.js":34404,"./Signaler":32325,"./Signaler.js":32325,"./Sleeper":80646,"./Sleeper.js":80646,"./SmartVend":55896,"./SmartVend.js":55896,"./Smes":20561,"./Smes.js":20561,"./SolarControl":21633,"./SolarControl.js":21633,"./SpaceHeater":57762,"./SpaceHeater.js":57762,"./Stack":58215,"./Stack.js":58215,"./StationAlertConsole":32015,"./StationAlertConsole.js":32015,"./StationBlueprints":52649,"./StationBlueprints.js":52649,"./SuitCycler":72e3,"./SuitCycler.js":72e3,"./SuitStorageUnit":80748,"./SuitStorageUnit.js":80748,"./SupermatterMonitor":6951,"./SupermatterMonitor.js":6951,"./SupplyConsole":12431,"./SupplyConsole.js":12431,"./TEGenerator":30111,"./TEGenerator.js":30111,"./Tank":58457,"./Tank.js":58457,"./TankDispenser":38754,"./TankDispenser.js":38754,"./TelecommsLogBrowser":73754,"./TelecommsLogBrowser.js":73754,"./TelecommsMachineBrowser":29441,"./TelecommsMachineBrowser.js":29441,"./TelecommsMultitoolMenu":86756,"./TelecommsMultitoolMenu.js":86756,"./Teleporter":18509,"./Teleporter.js":18509,"./TelesciConsole":62555,"./TelesciConsole.js":62555,"./TimeClock":55096,"./TimeClock.js":55096,"./TransferValve":24389,"./TransferValve.js":24389,"./TurbineControl":95893,"./TurbineControl.js":95893,"./Turbolift":62542,"./Turbolift.js":62542,"./Uplink":89761,"./Uplink.js":89761,"./Vending":61321,"./Vending.js":61321,"./VolumePanel":93147,"./VolumePanel.js":93147,"./VorePanel":24630,"./VorePanel.js":24630,"./Wires":21162,"./Wires.js":21162,"./XenoarchArtifactAnalyzer":81522,"./XenoarchArtifactAnalyzer.js":81522,"./XenoarchArtifactHarvester":40875,"./XenoarchArtifactHarvester.js":40875,"./XenoarchDepthScanner":88835,"./XenoarchDepthScanner.js":88835,"./XenoarchHandheldPowerUtilizer":5622,"./XenoarchHandheldPowerUtilizer.js":5622,"./XenoarchReplicator":53702,"./XenoarchReplicator.js":53702,"./XenoarchSpectrometer":13153,"./XenoarchSpectrometer.js":13153,"./XenoarchSuspension":19820,"./XenoarchSuspension.js":19820,"./common/AtmosControls":71739,"./common/AtmosControls.js":71739,"./common/BeakerContents":48229,"./common/BeakerContents.js":48229,"./common/ComplexModal":16007,"./common/ComplexModal.js":16007,"./common/FullscreenNotice":67861,"./common/FullscreenNotice.js":67861,"./common/InterfaceLockNoticeBox":21451,"./common/InterfaceLockNoticeBox.js":21451,"./common/LoginInfo":28117,"./common/LoginInfo.js":28117,"./common/LoginScreen":1192,"./common/LoginScreen.js":1192,"./common/Mining":21526,"./common/Mining.js":21526,"./common/Overmap":40754,"./common/Overmap.js":40754,"./common/PortableAtmos":34227,"./common/PortableAtmos.js":34227,"./common/RankIcon":14959,"./common/RankIcon.js":14959,"./common/TemporaryNotice":36355,"./common/TemporaryNotice.js":36355,"./pAIAtmos":28840,"./pAIAtmos.js":28840,"./pAIDirectives":47132,"./pAIDirectives.js":47132,"./pAIDoorjack":52852,"./pAIDoorjack.js":52852,"./pAIInterface":88814,"./pAIInterface.js":88814,"./pAIMedrecords":52510,"./pAIMedrecords.js":52510,"./pAISecrecords":59946,"./pAISecrecords.js":59946,"./pda/pda_atmos_scan":42360,"./pda/pda_atmos_scan.js":42360,"./pda/pda_janitor":84932,"./pda/pda_janitor.js":84932,"./pda/pda_main_menu":6011,"./pda/pda_main_menu.js":6011,"./pda/pda_manifest":93303,"./pda/pda_manifest.js":93303,"./pda/pda_medical":65276,"./pda/pda_medical.js":65276,"./pda/pda_messenger":92494,"./pda/pda_messenger.js":92494,"./pda/pda_news":31505,"./pda/pda_news.js":31505,"./pda/pda_notekeeper":66785,"./pda/pda_notekeeper.js":66785,"./pda/pda_power":63853,"./pda/pda_power.js":63853,"./pda/pda_security":20575,"./pda/pda_security.js":20575,"./pda/pda_signaller":63891,"./pda/pda_signaller.js":63891,"./pda/pda_status_display":14947,"./pda/pda_status_display.js":14947,"./pda/pda_supply":85143,"./pda/pda_supply.js":85143};function r(e){var n=c(e);return t(n)}function c(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=c,e.exports=r,r.id=8156}},t={};function o(e){var r=t[e];if(r!==undefined)return r.exports;var c=t[e]={exports:{}};return n[e](c,c.exports,o),c.exports}o.m=n,e=[],o.O=function(n,t,r,c){if(!t){var a=Infinity;for(d=0;d=c)&&Object.keys(o.O).every((function(e){return o.O[e](t[l])}))?t.splice(l--,1):(i=!1,c0&&e[d-1][2]>c;d--)e[d]=e[d-1];e[d]=[t,r,c]},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={764:0};o.O.j=function(n){return 0===e[n]};var n=function(n,t){var r,c,a=t[0],i=t[1],l=t[2],d=0;for(r in i)o.o(i,r)&&(o.m[r]=i[r]);for(l&&l(o),n&&n(t);d