diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f10fceae2..ab7c849f12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,31 +8,58 @@ env: BASENAME: "vorestation" jobs: - file_tests: + + run_linters: name: Run Linters runs-on: ubuntu-20.04 + steps: - uses: actions/checkout@v4 - - name: Ensure +x on CI directory - run: | - chmod -R +x ./tools/ci - - name: Install Tools - run: | - bash tools/ci/install_build_deps.sh + # Caches - name: Restore Yarn cache - if: "${{ contains(github.event.pull_request.labels.*.name, 'Type: TGUI Bundle') }}" uses: actions/cache@v4 with: path: tgui/.yarn/cache - key: ${{ runner.os }}-yarn-${{ secrets.CACHE_PURGE_KEY }}-${{ hashFiles('tgui/yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('tgui/yarn.lock') }} restore-keys: | - ${{ runner.os }}-build-${{ secrets.CACHE_PURGE_KEY }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - name: Run Tests + ${{ runner.os }}-yarn- + - name: Restore Node cache + uses: actions/cache@v4 + with: + path: ~/.nvm + key: ${{ runner.os }}-node-${{ hashFiles('dependencies.sh') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Restore Bootstrap cache + uses: actions/cache@v4 + with: + path: tools/bootstrap/.cache + key: ${{ runner.os }}-bootstrap-${{ hashFiles('tools/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-bootstrap- + - name: Restore Rust cache + uses: actions/cache@v4 + with: + path: ~/.cargo + key: ${{ runner.os }}-rust-${{ hashFiles('tools/ci/ci_dependencies.sh')}} + restore-keys: | + ${{ runner.os }}-rust- + - name: Restore Cutter cache + uses: actions/cache@v4 + with: + path: tools/icon_cutter/cache + key: ${{ runner.os }}-cutter-${{ hashFiles('dependencies.sh') }} + # End Caches + - name: Install Tools run: | - tools/ci/validate_files.sh - tools/ci/build_tgui.sh + pip3 install setuptools + bash tools/ci/install_node.sh + bash tools/ci/install_ripgrep.sh + tools/bootstrap/python -c '' + - name: Run Grep Checks + run: tools/ci/validate_files.sh + - name: Run TGUI Checks + run: tools/build/build --ci lint tgui-test dreamchecker: name: DreamChecker @@ -68,7 +95,7 @@ jobs: map: ['tether', 'stellar_delight', 'groundbase'] # name: Integration Tests (${{ matrix.map }}) name: Integration Tests - # needs: ['file_tests', 'dreamchecker'] + # needs: ['run_linters', 'dreamchecker'] runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 @@ -119,7 +146,7 @@ jobs: tests_successful: name: Integration Tests - needs: ['file_tests', 'dreamchecker', 'unit_tests'] + needs: ['run_linters', 'dreamchecker', 'unit_tests'] runs-on: ubuntu-20.04 steps: - name: Report Success diff --git a/.gitignore b/.gitignore index 2833549fe5..f5ab48609c 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,6 @@ temp.dmi node_modules/ package-lock.json + +# CBT Things +.cache diff --git a/.vscode/launch.json b/.vscode/launch.json index 24779e223e..80b1d58f75 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,13 +4,59 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ - { - "type": "byond", - "request": "launch", - "name": "Launch DreamDaemon", - "preLaunchTask": "dm: build - ${command:CurrentDME}", - "dmb": "${workspaceFolder}/${command:CurrentDMB}", - "dreamDaemon": true - } + { + "type": "byond", + "request": "launch", + "name": "Launch DreamSeeker", + "preLaunchTask": "Build All", + "dmb": "${workspaceFolder}/${command:CurrentDMB}" + }, + { + "type": "byond", + "request": "launch", + "name": "Launch DreamSeeker (low memory mode)", + "preLaunchTask": "Build All (low memory mode)", + "dmb": "${workspaceFolder}/${command:CurrentDMB}" + }, + { + "type": "byond", + "request": "launch", + "name": "Launch DreamDaemon", + "preLaunchTask": "Build All", + "dmb": "${workspaceFolder}/${command:CurrentDMB}", + "dreamDaemon": true + }, + { + "type": "byond", + "request": "launch", + "name": "Launch DreamDaemon (low memory mode)", + "preLaunchTask": "Build All (low memory mode)", + "dmb": "${workspaceFolder}/${command:CurrentDMB}", + "dreamDaemon": true + }, + { + "name": "Debug External Libraries", + "type": "cppvsdbg", + "request": "launch", + "program": "${command:dreammaker.returnDreamDaemonPath}", + "cwd": "${workspaceRoot}", + "args": [ + "${command:dreammaker.getFilenameDmb}", + "-trusted" + ], + "preLaunchTask": "Build All" + }, + { + "name": "Debug External Libraries (low memory mode)", + "type": "cppvsdbg", + "request": "launch", + "program": "${command:dreammaker.returnDreamDaemonPath}", + "cwd": "${workspaceRoot}", + "args": [ + "${command:dreammaker.getFilenameDmb}", + "-trusted" + ], + "preLaunchTask": "Build All (low memory mode)" + } ] -} \ No newline at end of file +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2b0aed0e81..4634cc4698 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,6 +1,53 @@ { "version": "2.0.0", "tasks": [ + { + "type": "process", + "command": "tools/build/build", + "windows": { + "command": ".\\tools\\build\\build.bat" + }, + "options": { + "env": { + "DM_EXE": "${config:dreammaker.byondPath}" + } + }, + "problemMatcher": [ + "$dreammaker", + "$tsc", + "$eslint-stylish" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "dependsOn": "dm: reparse", + "label": "Build All" + }, + { + "type": "process", + "command": "tools/build/build", + "args": ["-DLOWMEMORYMODE"], + "windows": { + "command": ".\\tools\\build\\build.bat", + "args": ["-DLOWMEMORYMODE"] + }, + "options": { + "env": { + "DM_EXE": "${config:dreammaker.byondPath}" + } + }, + "problemMatcher": [ + "$dreammaker", + "$tsc", + "$eslint-stylish" + ], + "group": { + "kind": "build" + }, + "dependsOn": "dm: reparse", + "label": "Build All (low memory mode)" + }, { "type": "dreammaker", "dme": "vorestation.dme", @@ -10,11 +57,16 @@ "group": "build", "label": "dm: build - vorestation.dme" }, + { + "command": "${command:dreammaker.reparse}", + "group": "build", + "label": "dm: reparse" + }, { "type": "shell", - "command": "tgui/bin/tgui", + "command": "bin/tgui-build", "windows": { - "command": ".\\tgui\\bin\\tgui.bat" + "command": ".\\bin\\tgui-build.cmd" }, "problemMatcher": [ "$tsc", @@ -25,43 +77,55 @@ }, { "type": "shell", - "command": "yarn build", - "options": { - "cwd": "tgui/packages/tgfont/", - }, - "group": "build", - "problemMatcher": [], - "label": "tgui: build tgfont", - "detail": "node mkdist.cjs && fantasticon --config config.cjs" - }, - { - "type": "shell", - "command": "tgui/bin/tgui", + "command": "bin/tgui-dev", "windows": { - "command": ".\\tgui\\bin\\tgui-prettybuild.bat" + "command": ".\\bin\\tgui-dev.cmd" }, "problemMatcher": [ "$tsc", "$eslint-stylish" ], "group": "build", - "label": "tgui: prettybuild" - }, - { - "type": "shell", - "command": "bin/tgui --dev", - "windows": { - "command": ".\\bin\\tgui.bat --dev" - }, - "problemMatcher": [ - "$tsc", - "$eslint-stylish" - ], - "options": { - "cwd": ".\\tgui\\", - }, - "group": "build", "label": "tgui: dev server" + }, + { + "type": "shell", + "command": "bin/tgui-bench", + "windows": { + "command": ".\\bin\\tgui-bench.cmd" + }, + "problemMatcher": [ + "$tsc", + "$eslint-stylish" + ], + "group": "build", + "label": "tgui: bench" + }, + { + "type": "shell", + "command": "bin/tgui-sonar", + "windows": { + "command": ".\\bin\\tgui-sonar.cmd" + }, + "problemMatcher": [ + "$tsc", + "$eslint-stylish" + ], + "group": "build", + "label": "tgui: sonar" + }, + { + "type": "shell", + "command": "bin/tgfont", + "windows": { + "command": ".\\bin\\tgfont.cmd" + }, + "problemMatcher": [ + "$tsc", + "$eslint-stylish" + ], + "group": "build", + "label": "tgui: rebuild tgfont" } ] } diff --git a/README.md b/README.md index b878df4d7e..28724e3d8c 100644 --- a/README.md +++ b/README.md @@ -54,11 +54,11 @@ This will take a while to download, but it provides an easier method for updatin First-time installation should be fairly straightforward. First, you'll need BYOND installed. You can get it from [here](http://www.byond.com/). -This is a sourcecode-only release, so the next step is to compile the server files. Open vorestation.dme by double-clicking it, open the Build menu, and click compile. This'll take a little while, and if everything's done right you'll get a message like this: +**The quick way**. Find `bin/server.cmd` in this folder and double click it to automatically build and host the server on port 1337. - saving vorestation.dmb (DEBUG mode) +**The long way**. Find `bin/build.cmd` in this folder, and double click it to initiate the build. It consists of multiple steps and might take around 1-5 minutes to compile. If it closes, it means it has finished its job. You can then [setup the server](.github/guides/RUNNING_A_SERVER.md) normally by opening `tgstation.dmb` in DreamDaemon. - vorestation.dmb - 0 errors, 0 warnings +**Building vorestation in DreamMaker directly is deprecated and might produce errors**, such as `'tgui.bundle.js': cannot find file`. If you see any errors or warnings, something has gone wrong - possibly a corrupt download or the files extracted wrong, or a code issue on the main repo. Ask on IRC. diff --git a/_build_dependencies.sh b/_build_dependencies.sh index 8b6659c3a9..2edcacda85 100644 --- a/_build_dependencies.sh +++ b/_build_dependencies.sh @@ -6,6 +6,6 @@ export NODE_VERSION=20 # Byond Major export BYOND_MAJOR=515 # Byond Minor -export BYOND_MINOR=1630 +export BYOND_MINOR=1637 # Macro Count -export MACRO_COUNT=4 +export MACRO_COUNT=8 diff --git a/bin/build.cmd b/bin/build.cmd new file mode 100644 index 0000000000..98c2ef45e1 --- /dev/null +++ b/bin/build.cmd @@ -0,0 +1,2 @@ +@echo off +call "%~dp0\..\tools\build\build.bat" --wait-on-error build %* diff --git a/bin/clean.cmd b/bin/clean.cmd new file mode 100644 index 0000000000..8eacd92ebd --- /dev/null +++ b/bin/clean.cmd @@ -0,0 +1,2 @@ +@echo off +call "%~dp0\..\tools\build\build.bat" --wait-on-error clean-all %* diff --git a/bin/server.cmd b/bin/server.cmd new file mode 100644 index 0000000000..c6e6642baf --- /dev/null +++ b/bin/server.cmd @@ -0,0 +1,2 @@ +@echo off +call "%~dp0\..\tools\build\build.bat" --wait-on-error server %* diff --git a/bin/test.cmd b/bin/test.cmd new file mode 100644 index 0000000000..a76a9c6745 --- /dev/null +++ b/bin/test.cmd @@ -0,0 +1,2 @@ +@echo off +call "%~dp0\..\tools\build\build.bat" --wait-on-error dm-test %* diff --git a/bin/tgfont.cmd b/bin/tgfont.cmd new file mode 100644 index 0000000000..b768c81d65 --- /dev/null +++ b/bin/tgfont.cmd @@ -0,0 +1,2 @@ +@echo off +call "%~dp0\..\tools\build\build.bat" --wait-on-error tg-font %* diff --git a/bin/tgui-bench.cmd b/bin/tgui-bench.cmd new file mode 100644 index 0000000000..333115f795 --- /dev/null +++ b/bin/tgui-bench.cmd @@ -0,0 +1,3 @@ +@echo off +call "%~dp0\..\tools\build\build.bat" --wait-on-error tgui-bench %* +pause diff --git a/bin/tgui-build.cmd b/bin/tgui-build.cmd new file mode 100644 index 0000000000..7804fc6daa --- /dev/null +++ b/bin/tgui-build.cmd @@ -0,0 +1,2 @@ +@echo off +call "%~dp0\..\tools\build\build.bat" --wait-on-error tgui tgui-lint tgui-test %* diff --git a/bin/tgui-dev.cmd b/bin/tgui-dev.cmd new file mode 100644 index 0000000000..25ff3495d4 --- /dev/null +++ b/bin/tgui-dev.cmd @@ -0,0 +1,2 @@ +@echo off +call "%~dp0\..\tools\build\build.bat" --wait-on-error tgui-dev %* diff --git a/bin/tgui-sonar.cmd b/bin/tgui-sonar.cmd new file mode 100644 index 0000000000..e083f65362 --- /dev/null +++ b/bin/tgui-sonar.cmd @@ -0,0 +1,2 @@ +@echo off +call "%~dp0\..\tools\build\build.bat" --wait-on-error tgui-sonar %* diff --git a/build.cmd b/build.cmd new file mode 100644 index 0000000000..dc791f60c9 --- /dev/null +++ b/build.cmd @@ -0,0 +1,2 @@ +@echo off +call "%~dp0\tools\build\build.bat" --wait-on-error build %* diff --git a/code/__defines/cooldowns.dm b/code/__defines/cooldowns.dm index a04c83a4e2..d177ae1e81 100644 --- a/code/__defines/cooldowns.dm +++ b/code/__defines/cooldowns.dm @@ -25,6 +25,9 @@ * Cooldown system based on an datum-level associative lazylist using timers. */ +// random cooldowns +#define COOLDOWN_VENOM_MILKING "venom_milking" + // admin verb cooldowns #define COOLDOWN_INTERNET_SOUND "internet_sound" diff --git a/code/controllers/subsystems/media_tracks.dm b/code/controllers/subsystems/media_tracks.dm index 9bd4f3ca1a..7fbffa65b6 100644 --- a/code/controllers/subsystems/media_tracks.dm +++ b/code/controllers/subsystems/media_tracks.dm @@ -172,7 +172,7 @@ SUBSYSTEM_DEF(media_tracks) sort_tracks() return - to_chat(C, "") + to_chat(C, "Couldn't find a track matching the specified parameters.") /datum/controller/subsystem/media_tracks/proc/add_track(var/mob/user, var/new_url, var/new_title, var/new_duration, var/new_artist, var/new_genre, var/new_secret, var/new_lobby) if(!check_rights(R_DEBUG|R_FUN)) diff --git a/code/datums/datacore.dm b/code/datums/datacore.dm index 23e358730b..cfe18eba25 100644 --- a/code/datums/datacore.dm +++ b/code/datums/datacore.dm @@ -356,7 +356,10 @@ var/global/list/PDA_Manifest = list() G.fields["p_stat"] = "Active" G.fields["m_stat"] = "Stable" G.fields["sex"] = gender2text(H.gender) - G.fields["species"] = "[H.custom_species ? "[H.custom_species] ([H.species.name])" : H.species.name]" //VOREStation Edit + if(H.species.name == SPECIES_HANNER) + G.fields["species"] = "[H.custom_species ? "[H.custom_species]" : H.species.name]" + else + G.fields["species"] = "[H.custom_species ? "[H.custom_species] ([H.species.name])" : H.species.name]" G.fields["home_system"] = H.home_system G.fields["birthplace"] = H.birthplace G.fields["citizenship"] = H.citizenship @@ -367,7 +370,10 @@ var/global/list/PDA_Manifest = list() //Medical Record var/datum/data/record/M = CreateMedicalRecord(H.real_name, id, hidden) - M.fields["species"] = "[H.custom_species ? "[H.custom_species] ([H.species.name])" : H.species.name]" //VOREStation Edit + if(H.species.name == SPECIES_HANNER) + M.fields["species"] = "[H.custom_species ? "[H.custom_species]" : H.species.name]" + else + M.fields["species"] = "[H.custom_species ? "[H.custom_species] ([H.species.name])" : H.species.name]" M.fields["b_type"] = H.b_type M.fields["blood_reagent"] = H.species.blood_reagents M.fields["b_dna"] = H.dna.unique_enzymes @@ -381,7 +387,10 @@ var/global/list/PDA_Manifest = list() //Security Record var/datum/data/record/S = CreateSecurityRecord(H.real_name, id, hidden) - S.fields["species"] = "[H.custom_species ? "[H.custom_species] ([H.species.name])" : H.species.name]" //VOREStation Edit + if(H.species.name == SPECIES_HANNER) + S.fields["species"] = "[H.custom_species ? "[H.custom_species]" : H.species.name]" + else + S.fields["species"] = "[H.custom_species ? "[H.custom_species] ([H.species.name])" : H.species.name]" if(H.get_FBP_type()) S.fields["brain_type"] = H.get_FBP_type() else @@ -407,7 +416,10 @@ var/global/list/PDA_Manifest = list() L.fields["b_dna"] = H.dna.unique_enzymes L.fields["enzymes"] = H.dna.SE // Used in respawning L.fields["identity"] = H.dna.UI // " - L.fields["species"] = "[H.custom_species ? "[H.custom_species] ([H.species.name])" : H.species.name]" //VOREStation Edit + if(H.species.name == SPECIES_HANNER) + L.fields["species"] = "[H.custom_species ? "[H.custom_species]" : H.species.name]" + else + L.fields["species"] = "[H.custom_species ? "[H.custom_species] ([H.species.name])" : H.species.name]" L.fields["home_system"] = H.home_system L.fields["birthplace"] = H.birthplace L.fields["citizenship"] = H.citizenship diff --git a/code/datums/underwear/undershirts.dm b/code/datums/underwear/undershirts.dm index 9b7571e1d1..41b0499b3a 100644 --- a/code/datums/underwear/undershirts.dm +++ b/code/datums/underwear/undershirts.dm @@ -252,3 +252,33 @@ name = "Leotard" icon_state = "leotard" has_color = TRUE + +/datum/category_item/underwear/undershirt/tshirt + name = "Feminine T-Shirt" + icon_state = "t-shirt_full" + has_color = TRUE + +/datum/category_item/underwear/undershirt/tshirt_midriff + name = "Feminine T-Shirt (midriff)" + icon_state = "t-shirt_midriff" + has_color = TRUE + +/datum/category_item/underwear/undershirt/tshirt_shoulders + name = "Feminine T-Shirt (black with shoulders)" + icon_state = "t-shirt_full_shoulders" + has_color = TRUE + +/datum/category_item/underwear/undershirt/tshirt_midriff_shoulders + name = "Feminine T-Shirt (midriff, black with shoulders)" + icon_state = "t-shirt_midriff_shoulders" + has_color = TRUE + +/datum/category_item/underwear/undershirt/tshirt_shoulders_text + name = "Feminine T-Shirt (black with shoulders and text)" + icon_state = "t-shirt_full_shoulders_text" + has_color = TRUE + +/datum/category_item/underwear/undershirt/tshirt_midriff_shoulders_text + name = "Feminine T-Shirt (midriff, black with shoulders and text)" + icon_state = "t-shirt_midriff_shoulders_text" + has_color = TRUE diff --git a/code/game/machinery/jukebox.dm b/code/game/machinery/jukebox.dm index 738ca34b5c..5222e1a674 100644 --- a/code/game/machinery/jukebox.dm +++ b/code/game/machinery/jukebox.dm @@ -441,7 +441,7 @@ qdel(T) return - to_chat(C, "") + to_chat(C, "Couldn't find a track matching the specified parameters.") /obj/machinery/media/jukebox/ghost/vv_get_dropdown() . = ..() diff --git a/code/game/objects/items/devices/body_snatcher_vr.dm b/code/game/objects/items/devices/body_snatcher_vr.dm index 2104701ee4..8228572ca1 100644 --- a/code/game/objects/items/devices/body_snatcher_vr.dm +++ b/code/game/objects/items/devices/body_snatcher_vr.dm @@ -29,6 +29,12 @@ to_chat(usr,"The target's mind is too complex to be affected!") return + if(ishuman(M)) + var/mob/living/carbon/human/H = M + if(H.resleeve_lock && usr.ckey != H.resleeve_lock) + to_chat(src, span_danger("[H] cannot be impersonated!")) + return + if(M.stat == DEAD) //Are they dead? to_chat(usr,"A warning pops up on the device, informing you that [M] is dead, and, as such, the mind transfer can not be done.") return diff --git a/code/game/objects/items/weapons/id cards/station_ids.dm b/code/game/objects/items/weapons/id cards/station_ids.dm index 83b5bca476..87b004dae6 100644 --- a/code/game/objects/items/weapons/id cards/station_ids.dm +++ b/code/game/objects/items/weapons/id cards/station_ids.dm @@ -74,7 +74,10 @@ /mob/living/carbon/human/set_id_info(var/obj/item/card/id/id_card) ..() id_card.age = age - id_card.species = "[custom_species ? "[custom_species] ([species.name])" : species.name]" + if(species.name == SPECIES_HANNER) + id_card.species = "[custom_species ? "[custom_species]" : species.name]" + else + id_card.species = "[custom_species ? "[custom_species] ([species.name])" : species.name]" id_card.sex = capitalize(name_gender()) /obj/item/card/id/tgui_data(mob/user) diff --git a/code/modules/admin/modify_robot.dm b/code/modules/admin/modify_robot.dm index 3c1682f40e..b754c71948 100644 --- a/code/modules/admin/modify_robot.dm +++ b/code/modules/admin/modify_robot.dm @@ -70,7 +70,7 @@ .["model_options"] = module_options // Data for the upgrade options .["target"] += get_upgrades() - var/obj/item/weapon/gun/energy/kinetic_accelerator/kin = locate() in target.module.modules + var/obj/item/gun/energy/kinetic_accelerator/kin = locate() in target.module.modules if(kin) .["target"]["pka"] += get_pka(kin) // Radio section @@ -84,7 +84,7 @@ .["target"]["availalbe_channels"] = availalbe_channels // Components .["target"]["components"] = get_components() - .["cell"] = target.cell?.name + .["cell"] = list("name" = target.cell?.name, "charge" = target.cell?.charge, "maxcharge" = target.cell?.maxcharge) .["cell_options"] = get_cells() // Access .["id_icon"] = icon2html(target.idcard, user, sourceonly=TRUE) @@ -162,11 +162,11 @@ source = new /mob/living/silicon/robot(null) var/module_type = robot_modules[params["new_source"]] source.modtype = params["new_source"] - var/obj/item/weapon/robot_module/robot/robot_type = new module_type(source) + var/obj/item/robot_module/robot/robot_type = new module_type(source) source.sprite_datum = pick(SSrobot_sprites.get_module_sprites(source.modtype, source)) source.update_icon() source.emag_items = 1 - if(!istype(robot_type, /obj/item/weapon/robot_module/robot)) + if(!istype(robot_type, /obj/item/robot_module/robot)) QDEL_NULL(source) return TRUE return TRUE @@ -195,8 +195,8 @@ else item_with_synth.synths = list(target.module.synths[found]) return TRUE - if(istype(add_item, /obj/item/weapon/matter_decompiler/) || istype(add_item, /obj/item/device/dogborg/sleeper/compactor/decompiler/)) - var/obj/item/weapon/matter_decompiler/item_with_matter = add_item + if(istype(add_item, /obj/item/matter_decompiler/) || istype(add_item, /obj/item/dogborg/sleeper/compactor/decompiler/)) + var/obj/item/matter_decompiler/item_with_matter = add_item if(item_with_matter.metal) var/found = target.module.synths.Find(item_with_matter.metal) if(!found) @@ -289,12 +289,12 @@ return TRUE if("install_modkit") var/new_modkit = text2path(params["modkit"]) - var/obj/item/weapon/gun/energy/kinetic_accelerator/kin = locate() in target.module.modules + var/obj/item/gun/energy/kinetic_accelerator/kin = locate() in target.module.modules var/obj/item/borg/upgrade/modkit/M = new new_modkit(null) M.install(kin, target) return TRUE if("remove_modkit") - var/obj/item/weapon/gun/energy/kinetic_accelerator/kin = locate() in target.module.modules + var/obj/item/gun/energy/kinetic_accelerator/kin = locate() in target.module.modules var/obj/item/rem_kit = locate(params["modkit"]) kin.modkits.Remove(rem_kit) qdel(rem_kit) @@ -305,11 +305,11 @@ target.radio.centComm = 1 if(selected_radio_channel == CHANNEL_RAIDER) qdel(target.radio.keyslot) - target.radio.keyslot = new /obj/item/device/encryptionkey/raider(target) + target.radio.keyslot = new /obj/item/encryptionkey/raider(target) target.radio.syndie = 1 if(selected_radio_channel == CHANNEL_MERCENARY) qdel(target.radio.keyslot) - target.radio.keyslot = new /obj/item/device/encryptionkey/syndicate(target) + target.radio.keyslot = new /obj/item/encryptionkey/syndicate(target) target.radio.syndie = 1 target.module.channels += list("[selected_radio_channel]" = 1) target.radio.channels[selected_radio_channel] += target.module.channels[selected_radio_channel] @@ -368,6 +368,17 @@ if(istype(C, /datum/robot_component/cell)) target.cell = null return TRUE + if("adjust_cell_charge") + target.cell.charge = text2num(params["charge"]) + return TRUE + if("adjust_brute") + var/datum/robot_component/C = locate(params["component"]) + C.brute_damage = text2num(params["damage"]) + return TRUE + if("adjust_electronics") + var/datum/robot_component/C = locate(params["component"]) + C.electronics_damage = text2num(params["damage"]) + return TRUE if("add_access") target.idcard.access += text2num(params["access"]) return TRUE @@ -563,7 +574,7 @@ all_upgrades["restricted_upgrades"] = restricted_upgrades return all_upgrades -/datum/eventkit/modify_robot/proc/get_pka(var/obj/item/weapon/gun/energy/kinetic_accelerator/kin) +/datum/eventkit/modify_robot/proc/get_pka(var/obj/item/gun/energy/kinetic_accelerator/kin) var/list/pka = list() pka["name"] = kin.name var/list/installed_modkits = list() @@ -600,15 +611,15 @@ /datum/eventkit/modify_robot/proc/get_cells() var/list/cell_options = list() - for(var/cell in typesof(/obj/item/weapon/cell)) - var/obj/item/weapon/cell/C = cell + for(var/cell in typesof(/obj/item/cell)) + var/obj/item/cell/C = cell if(initial(C.name) == "power cell") continue - if(ispath(C, /obj/item/weapon/cell/standin)) + if(ispath(C, /obj/item/cell/standin)) continue - if(ispath(C, /obj/item/weapon/cell/device)) + if(ispath(C, /obj/item/cell/device)) continue - if(ispath(C, /obj/item/weapon/cell/mech)) + if(ispath(C, /obj/item/cell/mech)) continue if(cell_options[initial(C.name)]) // empty cells are defined after normal cells! continue diff --git a/code/modules/client/preference_setup/loadout/loadout_accessories.dm b/code/modules/client/preference_setup/loadout/loadout_accessories.dm index 49e9daee47..18cd673d5f 100644 --- a/code/modules/client/preference_setup/loadout/loadout_accessories.dm +++ b/code/modules/client/preference_setup/loadout/loadout_accessories.dm @@ -555,60 +555,17 @@ Talon pin ) gear_tweaks += new/datum/gear_tweak/path(insignia) -/datum/gear/accessory/plushie - display_name = "Plushie Selection" - description = "A single plushie of your selection!" - path = /obj/item/toy/plushie/nymph +/datum/gear/accessory/belt_selection + display_name = "belts (selection, colorable)" + path = /obj/item/clothing/accessory/belt -/datum/gear/accessory/plushie/New() +/datum/gear/accessory/belt_selection/New() ..() - var/plushie = list( - "Nymph" = /obj/item/toy/plushie/nymph, - "Mouse" = /obj/item/toy/plushie/mouse, - "Kitten" = /obj/item/toy/plushie/kitten, - "Lizard" = /obj/item/toy/plushie/lizard, - "Black cat" = /obj/item/toy/plushie/black_cat, - "Black fox" = /obj/item/toy/plushie/black_fox, - "Blue fox" = /obj/item/toy/plushie/blue_fox, - "Carp plushie" = /obj/random/carp_plushie, - "Coffee fox" = /obj/item/toy/plushie/coffee_fox, - "Corgi" = /obj/item/toy/plushie/corgi, - "Crimson fox" = /obj/item/toy/plushie/crimson_fox, - "Deer" = /obj/item/toy/plushie/deer, - "Girly corgi" = /obj/item/toy/plushie/girly_corgi, - "Grey cat" = /obj/item/toy/plushie/grey_cat, - "Marble fox" = /obj/item/toy/plushie/marble_fox, - "Octopus" = /obj/item/toy/plushie/octopus, - "Orange cat" = /obj/item/toy/plushie/orange_cat, - "Orange fox" = /obj/item/toy/plushie/orange_fox, - "Pink fox" = /obj/item/toy/plushie/pink_fox, - "Purple fox" = /obj/item/toy/plushie/purple_fox, - "Red fox" = /obj/item/toy/plushie/red_fox, - "Robo corgi" = /obj/item/toy/plushie/robo_corgi, - "Siamese cat" = /obj/item/toy/plushie/siamese_cat, - "Spider" = /obj/item/toy/plushie/spider, - "Tabby cat" = /obj/item/toy/plushie/tabby_cat, - "Tuxedo cat" = /obj/item/toy/plushie/tuxedo_cat, - "White cat" = /obj/item/toy/plushie/white_cat, - "Lizard" = /obj/item/toy/plushie/lizardplushie, - "Kobold" = /obj/item/toy/plushie/lizardplushie/kobold, - "Resh" = /obj/item/toy/plushie/lizardplushie/resh, - "Slime" = /obj/item/toy/plushie/slimeplushie, - "Box" = /obj/item/toy/plushie/box, - "Robot" = /obj/item/toy/plushie/borgplushie, - "Medihound" = /obj/item/toy/plushie/borgplushie/medihound, - "Scrubpuppy" = /obj/item/toy/plushie/borgplushie/scrubpuppy, - "Foxbear" = /obj/item/toy/plushie/foxbear, - "Operative" = /obj/item/toy/plushie/nukeplushie, - "Otter" = /obj/item/toy/plushie/otter, - "Vox" = /obj/item/toy/plushie/vox, - "Shark" = /obj/item/toy/plushie/shark, - "Sec Drake" = /obj/item/toy/plushie/borgplushie/drake/sec, - "Med Drake" = /obj/item/toy/plushie/borgplushie/drake/med, - "Sci Drake" = /obj/item/toy/plushie/borgplushie/drake/sci, - "Jani Drake" = /obj/item/toy/plushie/borgplushie/drake/jani, - "Eng Drake" = /obj/item/toy/plushie/borgplushie/drake/eng, - "Mine Drake" = /obj/item/toy/plushie/borgplushie/drake/mine, - "Trauma Drake" = /obj/item/toy/plushie/borgplushie/drake/trauma, + var/list/wristband_lists = list( + "Thin Belt" = /obj/item/clothing/accessory/belt, + "Thick Belt" = /obj/item/clothing/accessory/belt/thick, + "Strap Belt" = /obj/item/clothing/accessory/belt/strap, + "Studded Belt" = /obj/item/clothing/accessory/belt/studded ) - gear_tweaks += new/datum/gear_tweak/path(plushie) + gear_tweaks += new/datum/gear_tweak/path(wristband_lists) + gear_tweaks += gear_tweak_free_color_choice \ No newline at end of file diff --git a/code/modules/client/preference_setup/loadout/loadout_uniform_vr.dm b/code/modules/client/preference_setup/loadout/loadout_uniform_vr.dm index defb44e465..e74a34ace6 100644 --- a/code/modules/client/preference_setup/loadout/loadout_uniform_vr.dm +++ b/code/modules/client/preference_setup/loadout/loadout_uniform_vr.dm @@ -185,7 +185,9 @@ Talon jumpsuit "high skirt"=/obj/item/clothing/under/skirt/colorable/high, "swept skirt"=/obj/item/clothing/under/skirt/colorable/swept, "jumper skirt"=/obj/item/clothing/under/skirt/colorable/jumper, - "jumper dress"=/obj/item/clothing/under/skirt/colorable/jumperdress + "jumper dress"=/obj/item/clothing/under/skirt/colorable/jumperdress, + "short skirt"=/obj/item/clothing/under/skirt/colorable/short, + "short skirt (split)"=/obj/item/clothing/under/skirt/colorable/short_split ) gear_tweaks += list(new/datum/gear_tweak/path(skirts), gear_tweak_free_color_choice) diff --git a/code/modules/clothing/under/accessories/accessory_vr.dm b/code/modules/clothing/under/accessories/accessory_vr.dm index 0afd8c7a87..0eee58a901 100644 --- a/code/modules/clothing/under/accessories/accessory_vr.dm +++ b/code/modules/clothing/under/accessories/accessory_vr.dm @@ -1181,3 +1181,31 @@ flags_inv = HIDEHOLSTER to_chat(user, "You adjust your poncho.") update_clothing_icon() + +/obj/item/clothing/accessory/belt + name = "Thin Belt" + desc = "A thin belt for holding your pants up." + icon = 'icons/inventory/accessory/item.dmi' + icon_override = 'icons/inventory/accessory/mob.dmi' + icon_state = "belt_thin" + item_state = "belt_thin" + slot_flags = SLOT_TIE | SLOT_BELT + slot = ACCESSORY_SLOT_DECOR + +/obj/item/clothing/accessory/belt/thick + name = "Thick Belt" + desc = "A thick belt for holding your pants up." + icon_state = "belt_thick" + item_state = "belt_thick" + +/obj/item/clothing/accessory/belt/strap + name = "Strap Belt" + desc = "A belt with no bucklet for holding your pants up." + icon_state = "belt_strap" + item_state = "belt_strap" + +/obj/item/clothing/accessory/belt/studded + name = "Studded Belt" + desc = "A studded belt for holding your pants up and looking cool." + icon_state = "belt_studded" + item_state = "belt_studded" diff --git a/code/modules/clothing/under/miscellaneous_vr.dm b/code/modules/clothing/under/miscellaneous_vr.dm index eb12168713..80f32da015 100644 --- a/code/modules/clothing/under/miscellaneous_vr.dm +++ b/code/modules/clothing/under/miscellaneous_vr.dm @@ -524,6 +524,20 @@ item_state = "skirt_jumperdress" worn_state = "skirt_jumperdress" +/obj/item/clothing/under/skirt/colorable/short + name = "short skirt" + desc = "A far too short pleated skirt." + icon_state = "skirt_short" + item_state = "skirt_short" + worn_state = "skirt_short" + +/obj/item/clothing/under/skirt/colorable/short_split + name = "short skirt (split)" + desc = "A far too short pleated skirt with an open split down one side." + icon_state = "skirt_short_split" + item_state = "skirt_short_split" + worn_state = "skirt_short_split" + // Gwen Beedell's clown outfit /obj/item/clothing/under/stripeddungarees diff --git a/code/modules/economy/vending_machines_vr.dm b/code/modules/economy/vending_machines_vr.dm index f4ea020174..8af2af8139 100644 --- a/code/modules/economy/vending_machines_vr.dm +++ b/code/modules/economy/vending_machines_vr.dm @@ -621,6 +621,10 @@ /obj/item/clothing/accessory/wristbandcollection/trans = 5, /obj/item/clothing/accessory/wristbandcollection/ace = 5, /obj/item/clothing/accessory/wristband_spiked = 5, + /obj/item/clothing/accessory/belt = 5, + /obj/item/clothing/accessory/belt/thick = 5, + /obj/item/clothing/accessory/belt/strap = 5, + /obj/item/clothing/accessory/belt/studded = 5, /obj/item/storage/wallet = 5, /obj/item/storage/wallet/poly = 5, /obj/item/storage/wallet/womens = 5, @@ -762,6 +766,10 @@ /obj/item/clothing/accessory/wristbandcollection/trans = 30, /obj/item/clothing/accessory/wristbandcollection/ace = 30, /obj/item/clothing/accessory/wristband_spiked = 20, + /obj/item/clothing/accessory/belt = 50, + /obj/item/clothing/accessory/belt/thick = 50, + /obj/item/clothing/accessory/belt/strap = 50, + /obj/item/clothing/accessory/belt/studded = 50, /obj/item/storage/wallet = 50, /obj/item/storage/wallet/poly = 50, /obj/item/storage/wallet/womens = 50, @@ -909,6 +917,8 @@ /obj/item/clothing/under/ascetic = 5, /obj/item/clothing/under/dress/white3 = 5, /obj/item/clothing/under/skirt/pleated = 5, + /obj/item/clothing/under/skirt/colorable/short = 5, + /obj/item/clothing/under/skirt/colorable/short_split = 5, /obj/item/clothing/under/dress/darkred = 5, /obj/item/clothing/under/dress/redeveninggown = 5, /obj/item/clothing/under/dress/red_swept_dress = 5, @@ -1093,6 +1103,8 @@ /obj/item/clothing/under/ascetic = 50, /obj/item/clothing/under/dress/white3 = 50, /obj/item/clothing/under/skirt/pleated = 50, + /obj/item/clothing/under/skirt/colorable/short = 50, + /obj/item/clothing/under/skirt/colorable/short_split = 50, /obj/item/clothing/under/dress/darkred = 50, /obj/item/clothing/under/dress/redeveninggown = 50, /obj/item/clothing/under/dress/red_swept_dress = 50, @@ -2125,6 +2137,8 @@ /obj/item/clothing/under/skirt/red = 5, /obj/item/clothing/under/skirt/denim = 5, /obj/item/clothing/under/skirt/pleated = 5, + /obj/item/clothing/under/skirt/colorable/short = 5, + /obj/item/clothing/under/skirt/colorable/short_split = 5, /obj/item/clothing/under/skirt/outfit/plaid_blue = 5, /obj/item/clothing/under/skirt/outfit/plaid_red = 5, /obj/item/clothing/under/skirt/outfit/plaid_purple = 5, diff --git a/code/modules/food/kitchen/cooking_machines/_appliance.dm b/code/modules/food/kitchen/cooking_machines/_appliance.dm index d11d353db8..0b31b08304 100644 --- a/code/modules/food/kitchen/cooking_machines/_appliance.dm +++ b/code/modules/food/kitchen/cooking_machines/_appliance.dm @@ -77,7 +77,7 @@ string += "-\a [CI.container.label(null, CI.combine_target)], [report_progress(CI)]
" return string else - to_chat(user, "") + to_chat(user, "It is empty.") /obj/machinery/appliance/proc/report_progress_tgui(datum/cooking_item/CI) if(!CI || !CI.max_cookwork) @@ -812,4 +812,4 @@ return food_safety = !food_safety - to_chat(usr, "You flip \the [src]'s safe mode switch. Safe mode is now [food_safety ? "on" : "off"].") \ No newline at end of file + to_chat(usr, "You flip \the [src]'s safe mode switch. Safe mode is now [food_safety ? "on" : "off"].") diff --git a/code/modules/mob/living/carbon/human/species/lleill/hanner.dm b/code/modules/mob/living/carbon/human/species/lleill/hanner.dm index 1a684a477b..f63369d232 100644 --- a/code/modules/mob/living/carbon/human/species/lleill/hanner.dm +++ b/code/modules/mob/living/carbon/human/species/lleill/hanner.dm @@ -8,7 +8,6 @@ transmutation and energy sharing abilities not unlike they lleill, but considerably more limited. Unlike \ other shapeshifter species, such as proteans or prometheans, Hanner have a typical humanoid set of organs and can not regenerate." - flags = NO_SCAN color_mult = 1 appearance_flags = HAS_SKIN_COLOR | HAS_EYE_COLOR | HAS_HAIR_COLOR | HAS_UNDERWEAR | HAS_LIPS spawn_flags = SPECIES_CAN_JOIN | SPECIES_IS_WHITELISTED | SPECIES_WHITELIST_SELECTABLE diff --git a/code/modules/mob/living/carbon/human/species/lleill/lleill_items.dm b/code/modules/mob/living/carbon/human/species/lleill/lleill_items.dm index d48b330db1..11e549bbad 100644 --- a/code/modules/mob/living/carbon/human/species/lleill/lleill_items.dm +++ b/code/modules/mob/living/carbon/human/species/lleill/lleill_items.dm @@ -130,7 +130,7 @@ for(var/mob/living/carbon/human/M in mob_list) if(M.z != user.z || get_dist(user,M) > 10) continue - if(istype(M) && M.resleeve_lock && M.ckey != M.resleeve_lock) + if(!M.allow_mimicry) continue targets |= M diff --git a/code/modules/mob/living/simple_mob/subtypes/glamour/homunculus.dm b/code/modules/mob/living/simple_mob/subtypes/glamour/homunculus.dm index febdbe3dd6..f8b0ca0cb0 100644 --- a/code/modules/mob/living/simple_mob/subtypes/glamour/homunculus.dm +++ b/code/modules/mob/living/simple_mob/subtypes/glamour/homunculus.dm @@ -65,51 +65,51 @@ resize(H.size_multiplier, ignore_prefs = TRUE) var/obj/item/A = H.get_active_hand() var/obj/item/I = H.get_inactive_hand() - if(istype(A,/obj/item/weapon/material) || istype(A,/obj/item/weapon/melee) || istype(I,/obj/item/weapon/material) || istype(I,/obj/item/weapon/melee)) + if(istype(A,/obj/item/material) || istype(A,/obj/item/melee) || istype(I,/obj/item/material) || istype(I,/obj/item/melee)) seen_melee = 1 melee_damage_lower = 20 melee_damage_upper = 30 - if(istype(A,/obj/item/weapon/gun/projectile) || istype(I,/obj/item/weapon/gun/projectile)) + if(istype(A,/obj/item/gun/projectile) || istype(I,/obj/item/gun/projectile)) seen_gun = 1 projectiletype = /obj/item/projectile/bullet/pistol/medium projectilesound = 'sound/weapons/Gunshot_light.ogg' - if(istype(A,/obj/item/weapon/gun/projectile/shotgun) || istype(I,/obj/item/weapon/gun/projectile/shotgun)) + if(istype(A,/obj/item/gun/projectile/shotgun) || istype(I,/obj/item/gun/projectile/shotgun)) projectiletype = /obj/item/projectile/bullet/pellet/shotgun projectilesound = 'sound/weapons/Gunshot_shotgun.ogg' reload_time = 1.5 SECONDS ranged_attack_delay = 1.5 SECONDS projectile_dispersion = 8 projectile_accuracy = -40 - if(istype(A,/obj/item/weapon/gun/projectile/automatic) || istype(I,/obj/item/weapon/gun/projectile/automatic)) + if(istype(A,/obj/item/gun/projectile/automatic) || istype(I,/obj/item/gun/projectile/automatic)) base_attack_cooldown = 5 projectile_dispersion = 7 projectile_accuracy = -20 - if(istype(A,/obj/item/weapon/gun/projectile/heavysniper) || istype(I,/obj/item/weapon/gun/projectile/heavysniper)) + if(istype(A,/obj/item/gun/projectile/heavysniper) || istype(I,/obj/item/gun/projectile/heavysniper)) projectiletype = /obj/item/projectile/bullet/rifle/a145/highvel // Do not get seen with a big ass sniper! projectilesound = 'sound/weapons/Gunshot_cannon.ogg' ranged_attack_delay = 2.5 SECONDS reload_time = 5 SECONDS projectile_accuracy = 75 - if(istype(A,/obj/item/weapon/gun/energy) || istype(I,/obj/item/weapon/gun/energy)) + if(istype(A,/obj/item/gun/energy) || istype(I,/obj/item/gun/energy)) seen_gun = 1 projectiletype = /obj/item/projectile/beam/midlaser projectilesound = 'sound/weapons/Laser.ogg' projectile_dispersion = 5 projectile_accuracy = -20 - if(istype(A,/obj/item/weapon/gun/energy/ionrifle) || istype(I,/obj/item/weapon/gun/energy/ionrifle)) + if(istype(A,/obj/item/gun/energy/ionrifle) || istype(I,/obj/item/gun/energy/ionrifle)) projectiletype = /obj/item/projectile/ion - if(istype(A,/obj/item/weapon/gun/energy/lasercannon) || istype(I,/obj/item/weapon/gun/energy/lasercannon)) + if(istype(A,/obj/item/gun/energy/lasercannon) || istype(I,/obj/item/gun/energy/lasercannon)) projectiletype = /obj/item/projectile/beam/heavylaser ranged_attack_delay = 2.5 SECONDS reload_time = 5 SECONDS projectilesound = 'sound/weapons/lasercannonfire.ogg' - if(istype(A,/obj/item/weapon/gun/energy/sniperrifle) || istype(I,/obj/item/weapon/gun/energy/sniperrifle)) + if(istype(A,/obj/item/gun/energy/sniperrifle) || istype(I,/obj/item/gun/energy/sniperrifle)) projectiletype = /obj/item/projectile/beam/sniper // Do not get seen with a big ass sniper! projectilesound = 'sound/weapons/gauss_shoot.ogg' ranged_attack_delay = 2.5 SECONDS reload_time = 5 SECONDS projectile_accuracy = 75 - if(istype(A,/obj/item/weapon/gun/magnetic) || istype(I,/obj/item/weapon/gun/magnetic)) + if(istype(A,/obj/item/gun/magnetic) || istype(I,/obj/item/gun/magnetic)) seen_gun = 1 projectiletype = /obj/item/projectile/bullet/magnetic/bore projectilesound = 'sound/weapons/railgun.ogg' diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/dominated_brain.dm b/code/modules/mob/living/simple_mob/subtypes/vore/dominated_brain.dm index a7c4296fd6..321788b775 100644 --- a/code/modules/mob/living/simple_mob/subtypes/vore/dominated_brain.dm +++ b/code/modules/mob/living/simple_mob/subtypes/vore/dominated_brain.dm @@ -210,11 +210,6 @@ if(pred.prey_controlled) to_chat(prey, "\The [pred] is already dominated, and cannot be controlled at this time.") return - if(ishuman(pred)) - var/mob/living/carbon/human/h = pred - if(h.resleeve_lock && ckey != h.resleeve_lock) - to_chat(src, "\The [h] cannot be impersonated!") - return if(tgui_alert(prey, "You are attempting to take over [pred], are you sure? Ensure that their preferences align with this kind of play.", "Take Over Predator",list("No","Yes")) != "Yes") return to_chat(prey, "You attempt to exert your control over \the [pred]...") diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/morph/morph.dm b/code/modules/mob/living/simple_mob/subtypes/vore/morph/morph.dm index 50d8df8085..041eb8fe9f 100644 --- a/code/modules/mob/living/simple_mob/subtypes/vore/morph/morph.dm +++ b/code/modules/mob/living/simple_mob/subtypes/vore/morph/morph.dm @@ -99,7 +99,7 @@ /mob/living/simple_mob/vore/morph/proc/assume(atom/movable/target) var/mob/living/carbon/human/humantarget = target - if(istype(humantarget) && humantarget.resleeve_lock && ckey != humantarget.resleeve_lock) + if(istype(humantarget) && !humantarget.allow_mimicry) to_chat(src, "[target] cannot be impersonated!") return if(morphed) @@ -272,12 +272,9 @@ var/mob/living/L = tgui_input_list(src, "Select a mob to take over:", "Take Over Prey", possible_mobs) if(!L) return - // Adding a ishuman check here, since silicon mobs don't have a resleeve_lock from what I can tell. - if(ishuman(L)) - var/mob/living/carbon/human/M = L - if(M.resleeve_lock && ckey != M.resleeve_lock) - to_chat(src, "\The [M] cannot be impersonated!") - return + if(!L.allow_mimicry) + to_chat(src, "\The [L] cannot be impersonated!") + return if(tgui_alert(src, "You selected [L] to attempt to take over. Are you sure?", "Take Over Prey",list("No","Yes")) == "Yes") log_admin("[key_name_admin(src)] offered [L] to swap bodies as a morph.") if(tgui_alert(L, "\The [src] has elected to attempt to take over your body and control you. Is this something you will allow to happen?", "Allow Morph To Take Over",list("No","Yes")) == "Yes") diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/vore.dm b/code/modules/mob/living/simple_mob/subtypes/vore/vore.dm index ed1467d269..21b17eca5e 100644 --- a/code/modules/mob/living/simple_mob/subtypes/vore/vore.dm +++ b/code/modules/mob/living/simple_mob/subtypes/vore/vore.dm @@ -36,6 +36,7 @@ noisy = client.prefs_vr.noisy selective_preference = client.prefs_vr.selective_preference eating_privacy_global = client.prefs_vr.eating_privacy_global + allow_mimicry = client.prefs_vr.allow_mimicry drop_vore = client.prefs_vr.drop_vore stumble_vore = client.prefs_vr.stumble_vore diff --git a/code/modules/player_tips_vr/player_tips_list_vr.dm b/code/modules/player_tips_vr/player_tips_list_vr.dm index e9b4752f45..f8e956f9f5 100644 --- a/code/modules/player_tips_vr/player_tips_list_vr.dm +++ b/code/modules/player_tips_vr/player_tips_list_vr.dm @@ -52,7 +52,8 @@ When editing the list, please try and keep similar probabilities near each other prob(25); "[info] Emergency Fire Doors seal breaches and keep active fires out. Please do not open them without good reason.", prob(25); "[info] The kitchen's Oven can fit multiple ingredients in one slot if you pull the baking tray out first. This is required for most recipes, and the Grille and Deep Frier work the same way!", prob(10); "[info] You can keep a single item between rounds using secure lockboxes! Beware! You can only store 1 item across all characters! To find these lockboxes, feel free to ask over radio!", - prob(10); "[info] Not every hostile NPC you encounter while mining or exploring need to be defeated. Sometimes, it's better to avoid or run away from them. For example, star-treaders are slow and weak but have lots of HP - it is better to just run away." + prob(10); "[info] Not every hostile NPC you encounter while mining or exploring need to be defeated. Sometimes, it's better to avoid or run away from them. For example, star-treaders are slow and weak but have lots of HP - it is better to just run away.", + prob(10); "[info] Clicking on a venomous animal/person with a closed beaker will express their venom into the beaker!", ) if("roleplay") diff --git a/code/modules/reagents/reagent_containers/glass.dm b/code/modules/reagents/reagent_containers/glass.dm index 885d1e7ec8..48dcb35641 100644 --- a/code/modules/reagents/reagent_containers/glass.dm +++ b/code/modules/reagents/reagent_containers/glass.dm @@ -18,6 +18,7 @@ unacidable = TRUE //glass doesn't dissolve in acid drop_sound = 'sound/items/drop/bottle.ogg' pickup_sound = 'sound/items/pickup/bottle.ogg' + description_info = "Clicking on a venomous animal (or person) with the lid closed will express their venom into the beaker!" var/label_text = "" @@ -85,15 +86,16 @@ if(force && !(flags & NOBLUDGEON) && user.a_intent == I_HURT) return ..() + // If the container is *closed* we do snake milking!~ + if(!is_open_container() && isliving(M)) + return attempt_snake_milking(user, M) + if(standard_feed_mob(user, M)) return return 0 -/obj/item/reagent_containers/glass/standard_feed_mob(var/mob/user, var/mob/target) - if(!is_open_container()) - to_chat(user, "You need to open \the [src] first.") - return 1 +/obj/item/weapon/reagent_containers/glass/standard_feed_mob(var/mob/user, var/mob/target) if(user.a_intent == I_HURT) return 1 return ..() @@ -101,8 +103,33 @@ /obj/item/reagent_containers/glass/self_feed_message(var/mob/user) to_chat(user, "You swallow a gulp from \the [src].") -/obj/item/reagent_containers/glass/afterattack(var/obj/target, var/mob/user, var/proximity) - if(!is_open_container() || !proximity) //Is the container open & are they next to whatever they're clicking? +/obj/item/weapon/reagent_containers/glass/proc/attempt_snake_milking(mob/living/user, mob/living/target) + var/reagent + var/amount + + if(target.trait_injection_selected) + reagent = target.trait_injection_selected + amount = target.trait_injection_amount + else if(istype(target, /mob/living/simple_mob/animal/giant_spider)) + var/mob/living/simple_mob/animal/giant_spider/spider = target + reagent = spider.poison_type + amount = spider.poison_per_bite + + if(!reagent || !amount) + to_chat(user, span_warning("[target] does not have venom you can express. Open the beaker to drink from it.")) + return TRUE + + if(TIMER_COOLDOWN_RUNNING(target, COOLDOWN_VENOM_MILKING)) + user.visible_message(span_warning("[user] attempts to express venom from [target], but nothing happens."), span_warning("[target] had their venom expressed too recently, try again later.")) + return TRUE + + TIMER_COOLDOWN_START(target, COOLDOWN_VENOM_MILKING, 30 SECONDS) + user.visible_message(span_notice("[user] expresses venom from [target].")) + reagents.add_reagent(reagent, amount) + return TRUE + +/obj/item/weapon/reagent_containers/glass/afterattack(var/obj/target, var/mob/user, var/proximity) + if(!proximity || !is_open_container()) //Is the container open & are they next to whatever they're clicking? return 1 //If not, do nothing. for(var/type in can_be_placed_into) //Is it something it can be placed into? if(istype(target, type)) diff --git a/code/modules/resleeving/infocore_records.dm b/code/modules/resleeving/infocore_records.dm index 2ef362ec4d..6a11ff6083 100644 --- a/code/modules/resleeving/infocore_records.dm +++ b/code/modules/resleeving/infocore_records.dm @@ -112,10 +112,11 @@ //Person OOCly doesn't want people impersonating them locked = ckeylock - //Prevent people from printing restricted and whitelisted species var/datum/species/S = GLOB.all_species["[M.dna.species]"] if(S) - toocomplex = (S.spawn_flags & SPECIES_IS_WHITELISTED) || (S.spawn_flags & SPECIES_IS_RESTRICTED) + // Force ckey locking if species is whitelisted + if((S.spawn_flags & SPECIES_IS_WHITELISTED) || (S.spawn_flags & SPECIES_IS_RESTRICTED)) + locked = TRUE //General stuff about them synthetic = M.isSynthetic() diff --git a/code/modules/resleeving/machines.dm b/code/modules/resleeving/machines.dm index 9175cb63c2..ad61abe193 100644 --- a/code/modules/resleeving/machines.dm +++ b/code/modules/resleeving/machines.dm @@ -33,7 +33,11 @@ var/datum/dna2/record/R = current_project.mydna var/mob/living/carbon/human/H = new /mob/living/carbon/human(src, R.dna.species) if(current_project.locked) - H.resleeve_lock = current_project.ckey + if(current_project.ckey) + H.resleeve_lock = current_project.ckey + else + // Ensure even body scans without an attached ckey respect locking + H.resleeve_lock = "@badckey" //Fix the external organs for(var/part in current_project.limb_data) @@ -180,6 +184,7 @@ occupant = null if(locked) locked = 0 + update_icon() return return @@ -189,6 +194,12 @@ return 100 * ((occupant.health + abs(config.health_threshold_dead)) / (occupant.maxHealth + abs(config.health_threshold_dead))) return 0 +/obj/machinery/clonepod/transhuman/examine(mob/user, infix, suffix) + . = ..() + if(occupant) + var/completion = get_completion() + . += "Progress: [round(completion)]% [chat_progress_bar(round(completion), TRUE)]" + //Synthetic version /obj/machinery/transhuman/synthprinter name = "SynthFab 3000" @@ -282,7 +293,11 @@ var/datum/dna2/record/R = current_project.mydna var/mob/living/carbon/human/H = new /mob/living/carbon/human(src, R.dna.species) if(current_project.locked) - H.resleeve_lock = current_project.ckey + if(current_project.ckey) + H.resleeve_lock = current_project.ckey + else + // Ensure even body scans without an attached ckey respect locking + H.resleeve_lock = "@badckey" //Fix the external organs for(var/part in current_project.limb_data) diff --git a/code/modules/vore/chat_healthbars.dm b/code/modules/vore/chat_healthbars.dm index 583435dea3..7442d99d59 100644 --- a/code/modules/vore/chat_healthbars.dm +++ b/code/modules/vore/chat_healthbars.dm @@ -1,5 +1,64 @@ //Health bars in the game window would be pretty challenging and I don't know how to do that, so I thought this would be a good alternative +// Generates the progress bar text +/proc/chat_progress_bar(percentage, add_color = FALSE) + switch(percentage) + if(100) + . = "|▓▓▓▓▓▓▓▓▓▓|" + if(95 to 99) + . = "|▓▓▓▓▓▓▓▓▓▒|" + if(90 to 94) + . = "|▓▓▓▓▓▓▓▓▓░|" + if(85 to 89) + . = "|▓▓▓▓▓▓▓▓▒░|" + if(80 to 84) + . = "|▓▓▓▓▓▓▓▓░░|" + if(75 to 79) + . = "|▓▓▓▓▓▓▓▒░░|" + if(70 to 74) + . = "|▓▓▓▓▓▓▓░░░|" + if(65 to 69) + . = "|▓▓▓▓▓▓▒░░░|" + if(60 to 64) + . = "|▓▓▓▓▓▓░░░░|" + if(55 to 59) + . = "|▓▓▓▓▓▒░░░░|" + if(50 to 54) + . = "|▓▓▓▓▓░░░░░|" + if(45 to 49) + . = "|▓▓▓▓▒░░░░░|" + if(40 to 44) + . = "|▓▓▓▓░░░░░░|" + if(35 to 39) + . = "|▓▓▓▒░░░░░░|" + if(30 to 34) + . = "|▓▓▓░░░░░░░|" + if(25 to 29) + . = "|▓▓▒░░░░░░░|" + if(20 to 24) + . = "|▓▓░░░░░░░░|" + if(15 to 19) + . = "|▓▒░░░░░░░░|" + if(10 to 14) + . = "|▓░░░░░░░░░|" + if(5 to 9) + . = "|▒░░░░░░░░░|" + if(0) + . = "|░░░░░░░░░░|" + else + . = "!░░░░░░░░░░!" + + if(add_color) + switch(percentage) + if(75 to 100) + . = span_green(.) + if(50 to 75) + . = span_yellow(.) + if(25 to 50) + . = span_orange(.) + else + . = span_red(.) + /mob/living/proc/chat_healthbar(var/mob/living/reciever, onExamine = FALSE, override = FALSE) if(!reciever) //No one to send it to, don't bother return @@ -26,52 +85,7 @@ ourpercent = round(ourpercent) - switch(ourpercent) //I thought about trying to do this in a more automated way but my brain isn't very large so enjoy my stupid switch statement - if(100) - ourbar = "|▓▓▓▓▓▓▓▓▓▓|" - if(95 to 99) - ourbar = "|▓▓▓▓▓▓▓▓▓▒|" - if(90 to 94) - ourbar = "|▓▓▓▓▓▓▓▓▓░|" - if(85 to 89) - ourbar = "|▓▓▓▓▓▓▓▓▒░|" - if(80 to 84) - ourbar = "|▓▓▓▓▓▓▓▓░░|" - if(75 to 79) - ourbar = "|▓▓▓▓▓▓▓▒░░|" - if(70 to 74) - ourbar = "|▓▓▓▓▓▓▓░░░|" - if(65 to 69) - ourbar = "|▓▓▓▓▓▓▒░░░|" - if(60 to 64) - ourbar = "|▓▓▓▓▓▓░░░░|" - if(55 to 59) - ourbar = "|▓▓▓▓▓▒░░░░|" - if(50 to 54) - ourbar = "|▓▓▓▓▓░░░░░|" - if(45 to 49) - ourbar = "|▓▓▓▓▒░░░░░|" - if(40 to 44) - ourbar = "|▓▓▓▓░░░░░░|" - if(35 to 39) - ourbar = "|▓▓▓▒░░░░░░|" - if(30 to 34) - ourbar = "|▓▓▓░░░░░░░|" - if(25 to 29) - ourbar = "|▓▓▒░░░░░░░|" - if(20 to 24) - ourbar = "|▓▓░░░░░░░░|" - if(15 to 19) - ourbar = "|▓▒░░░░░░░░|" - if(10 to 14) - ourbar = "|▓░░░░░░░░░|" - if(5 to 9) - ourbar = "|▒░░░░░░░░░|" - if(0) - ourbar = "|░░░░░░░░░░|" - else - ourbar = "!░░░░░░░░░░!" - + ourbar = chat_progress_bar(ourpercent, FALSE) ourbar = "[ourbar] [which_var] - [src.name]" if(stat == UNCONSCIOUS) diff --git a/code/modules/vore/eating/living_vr.dm b/code/modules/vore/eating/living_vr.dm index a30b835fd5..9497dc8dca 100644 --- a/code/modules/vore/eating/living_vr.dm +++ b/code/modules/vore/eating/living_vr.dm @@ -259,6 +259,7 @@ P.digest_pain = src.digest_pain P.stumble_vore = src.stumble_vore P.eating_privacy_global = src.eating_privacy_global + P.allow_mimicry = src.allow_mimicry P.nutrition_message_visible = src.nutrition_message_visible P.nutrition_messages = src.nutrition_messages @@ -312,6 +313,7 @@ food_vore = P.food_vore digest_pain = P.digest_pain eating_privacy_global = P.eating_privacy_global + allow_mimicry = P.allow_mimicry nutrition_message_visible = P.nutrition_message_visible nutrition_messages = P.nutrition_messages @@ -1212,6 +1214,7 @@ dispvoreprefs += "Can be stepped on/over: [step_mechanics_pref ? "Allowed" : "Disallowed"]
" dispvoreprefs += "Can be picked up: [pickup_pref ? "Allowed" : "Disallowed"]
" dispvoreprefs += "Global Vore Privacy is: [eating_privacy_global ? "Subtle" : "Loud"]
" + dispvoreprefs += "Allow Mimicry: [allow_mimicry ? "Yes" : "No"]
" user << browse("Vore prefs: [src]
[dispvoreprefs]
", "window=[name]mvp;size=300x400;can_resize=1;can_minimize=0") onclose(user, "[name]") return diff --git a/code/modules/vore/eating/mob_vr.dm b/code/modules/vore/eating/mob_vr.dm index a49de81205..5a3d89cd30 100644 --- a/code/modules/vore/eating/mob_vr.dm +++ b/code/modules/vore/eating/mob_vr.dm @@ -27,6 +27,7 @@ var/selective_preference = DM_DEFAULT // Preference for selective bellymode var/text_warnings = TRUE // Allows us to dismiss the text limit warning messages after viewing it once per round var/eating_privacy_global = FALSE // Makes eating attempt/success messages only reach for subtle range if true, overwritten by belly-specific var + var/allow_mimicry = TRUE // Allows mimicking their character var/allow_mind_transfer = FALSE //Allows ones mind to be taken over or swapped var/nutrition_message_visible = TRUE var/list/nutrition_messages = list( diff --git a/code/modules/vore/eating/vore_vr.dm b/code/modules/vore/eating/vore_vr.dm index 3a25510876..492389b267 100644 --- a/code/modules/vore/eating/vore_vr.dm +++ b/code/modules/vore/eating/vore_vr.dm @@ -54,6 +54,7 @@ V::::::V V::::::VO:::::::OOO:::::::ORR:::::R R:::::REE::::::EEEEEE var/permit_healbelly = TRUE var/noisy = FALSE var/eating_privacy_global = FALSE //Makes eating attempt/success messages only reach for subtle range if true, overwritten by belly-specific var + var/allow_mimicry = TRUE // These are 'modifier' prefs, do nothing on their own but pair with drop_prey/drop_pred settings. var/drop_vore = TRUE @@ -196,6 +197,7 @@ V::::::V V::::::VO:::::::OOO:::::::ORR:::::R R:::::REE::::::EEEEEE weight_message_visible = json_from_file["weight_message_visible"] weight_messages = json_from_file["weight_messages"] eating_privacy_global = json_from_file["eating_privacy_global"] + allow_mimicry = json_from_file["allow_mimicry"] vore_sprite_color = json_from_file["vore_sprite_color"] allow_mind_transfer = json_from_file["allow_mind_transfer"] @@ -254,6 +256,8 @@ V::::::V V::::::VO:::::::OOO:::::::ORR:::::R R:::::REE::::::EEEEEE weight_message_visible = TRUE if(isnull(eating_privacy_global)) eating_privacy_global = FALSE + if(isnull(allow_mimicry)) + allow_mimicry = TRUE if(isnull(nutrition_messages)) nutrition_messages = list( "They are starving! You can hear their stomach snarling from across the room!", @@ -329,6 +333,7 @@ V::::::V V::::::VO:::::::OOO:::::::ORR:::::R R:::::REE::::::EEEEEE "weight_message_visible" = weight_message_visible, "weight_messages" = weight_messages, "eating_privacy_global" = eating_privacy_global, + "allow_mimicry" = allow_mimicry, "vore_sprite_color" = vore_sprite_color, ) diff --git a/code/modules/vore/eating/vorepanel_vr.dm b/code/modules/vore/eating/vorepanel_vr.dm index 20332e2dc1..91d8ad6e7b 100644 --- a/code/modules/vore/eating/vorepanel_vr.dm +++ b/code/modules/vore/eating/vorepanel_vr.dm @@ -347,6 +347,7 @@ var/global/list/belly_colorable_only_fullscreens = list("a_synth_flesh_mono", "weight_message_visible" = host.weight_message_visible, "weight_messages" = host.weight_messages, "eating_privacy_global" = host.eating_privacy_global, + "allow_mimicry" = host.allow_mimicry, ) return data @@ -535,6 +536,12 @@ var/global/list/belly_colorable_only_fullscreens = list("a_synth_flesh_mono", host.eating_privacy_global = host.eating_privacy_global unsaved_changes = TRUE return TRUE + if("toggle_mimicry") + host.allow_mimicry = !host.allow_mimicry + if(host.client.prefs_vr) + host.client.prefs_vr.allow_mimicry = host.allow_mimicry + unsaved_changes = TRUE + return TRUE if("toggle_devour") host.devourable = !host.devourable if(host.client.prefs_vr) diff --git a/code/modules/vore/mouseray.dm b/code/modules/vore/mouseray.dm index 6bf9aff586..e2822094e9 100644 --- a/code/modules/vore/mouseray.dm +++ b/code/modules/vore/mouseray.dm @@ -249,6 +249,7 @@ new_mob.nutrition_message_visible = nutrition_message_visible new_mob.allow_spontaneous_tf = allow_spontaneous_tf new_mob.eating_privacy_global = eating_privacy_global + new_mob.allow_mimicry = allow_mimicry new_mob.text_warnings = text_warnings new_mob.allow_mind_transfer = allow_mind_transfer diff --git a/dependencies.sh b/dependencies.sh new file mode 100644 index 0000000000..57e14e9c8c --- /dev/null +++ b/dependencies.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +#Project dependencies file +#Final authority on what's required to fully build the project + +# byond version +export BYOND_MAJOR=515 +export BYOND_MINOR=1637 + +#rust_g git tag +export RUST_G_VERSION=3.3.0 + +#node version +export NODE_VERSION_LTS=20.13.0 +# compatiblility mode MUST work with windows 7 +export NODE_VERSION_COMPAT=20.2.0 + +# SpacemanDMM git tag +export SPACEMAN_DMM_VERSION=suite-1.8 + +# Python version for mapmerge and other tools +export PYTHON_VERSION=3.8.10 + +#dreamluau repo +export DREAMLUAU_REPO="tgstation/dreamluau" + +#dreamluau git tag +export DREAMLUAU_VERSION=0.1.2 + +#hypnagogic repo +export CUTTER_REPO=spacestation13/hypnagogic + +#hypnagogic git tag +export CUTTER_VERSION=v4.0.0 diff --git a/icons/inventory/accessory/item.dmi b/icons/inventory/accessory/item.dmi index b2f5303784..2782922a7a 100644 Binary files a/icons/inventory/accessory/item.dmi and b/icons/inventory/accessory/item.dmi differ diff --git a/icons/inventory/accessory/mob.dmi b/icons/inventory/accessory/mob.dmi index b2bd322770..587ec87128 100644 Binary files a/icons/inventory/accessory/mob.dmi and b/icons/inventory/accessory/mob.dmi differ diff --git a/icons/inventory/uniform/item_vr.dmi b/icons/inventory/uniform/item_vr.dmi index 6e0d72e90a..59176816e6 100644 Binary files a/icons/inventory/uniform/item_vr.dmi and b/icons/inventory/uniform/item_vr.dmi differ diff --git a/icons/inventory/uniform/mob_vr.dmi b/icons/inventory/uniform/mob_vr.dmi index 487a0d9e17..aad2c467f9 100644 Binary files a/icons/inventory/uniform/mob_vr.dmi and b/icons/inventory/uniform/mob_vr.dmi differ diff --git a/icons/mob/human.dmi b/icons/mob/human.dmi index 1fc987773e..22bfb58bd1 100644 Binary files a/icons/mob/human.dmi and b/icons/mob/human.dmi differ diff --git a/maps/expedition_vr/aerostat/aerostat_science_outpost.dmm b/maps/expedition_vr/aerostat/aerostat_science_outpost.dmm index 133e74d242..0d88eaa6d2 100644 --- a/maps/expedition_vr/aerostat/aerostat_science_outpost.dmm +++ b/maps/expedition_vr/aerostat/aerostat_science_outpost.dmm @@ -318,7 +318,6 @@ master_tag = "aerostat_n_n_airlock"; pixel_x = 24; pixel_y = 24; - tag = "aerostat_n_n_sensint" }, /turf/simulated/floor/tiled/techfloor, /area/offmap/aerostat/inside/airlock/north) @@ -924,7 +923,6 @@ master_tag = "aerostat_s_s_airlock"; pixel_x = -24; pixel_y = -24; - tag = "aerostat_s_s_sensint" }, /turf/simulated/floor/tiled/techfloor, /area/offmap/aerostat/inside/airlock/south) @@ -1969,7 +1967,6 @@ dir = 8; master_tag = "aerostat_n_e_airlock"; pixel_x = 32; - tag = "aerostat_n_e_sensint" }, /turf/simulated/floor/tiled/techfloor, /area/offmap/aerostat/inside/airlock/north) @@ -8673,7 +8670,6 @@ dir = 8; master_tag = "aerostat_s_e_airlock"; pixel_x = 24; - tag = "aerostat_s_e_sensint" }, /turf/simulated/floor/tiled/techfloor, /area/offmap/aerostat/inside/airlock/south) @@ -11336,7 +11332,6 @@ dir = 4; master_tag = "aerostat_n_w_airlock"; pixel_x = -32; - tag = "aerostat_n_w_sensint" }, /turf/simulated/floor/tiled/techfloor, /area/offmap/aerostat/inside/airlock/north) @@ -13479,7 +13474,6 @@ dir = 4; master_tag = "aerostat_s_w_airlock"; pixel_x = -24; - tag = "aerostat_s_w_sensint" }, /turf/simulated/floor/tiled/techfloor, /area/offmap/aerostat/inside/airlock/south) diff --git a/tgui/.gitattributes b/tgui/.gitattributes index ce30adb9e2..3103a46c24 100644 --- a/tgui/.gitattributes +++ b/tgui/.gitattributes @@ -13,7 +13,6 @@ *.md text eol=lf *.bat text eol=lf yarn.lock text eol=lf -bin/tgui text eol=lf ## Treat bundles as binary *.bundle.* binary diff --git a/tgui/README.md b/tgui/README.md index ad79758279..2bcb6d06af 100644 --- a/tgui/README.md +++ b/tgui/README.md @@ -4,21 +4,15 @@ tgui is a robust user interface framework of /tg/station. -tgui is very different from most UIs you will encounter in BYOND programming. -It is heavily reliant on Javascript and web technologies as opposed to DM. -If you are familiar with NanoUI (a library which can be found on almost -every other SS13 codebase), tgui should be fairly easy to pick up. +tgui is very different from most UIs you will encounter in BYOND programming. It is heavily reliant on Javascript and web technologies as opposed to DM. If you are familiar with NanoUI (a library which can be found on almost every other SS13 codebase), tgui should be fairly easy to pick up. ## Learn tgui -People come to tgui from different backgrounds and with different -learning styles. Whether you prefer a more theoretical or a practical -approach, we hope you’ll find this section helpful. +People come to tgui from different backgrounds and with different learning styles. Whether you prefer a more theoretical or a practical approach, we hope you’ll find this section helpful. ### Practical Tutorial -If you are completely new to frontend and prefer to **learn by doing**, -start with our [practical tutorial](docs/tutorial-and-examples.md). +If you are completely new to frontend and prefer to **learn by doing**, start with our [practical tutorial](docs/tutorial-and-examples.md). ### Guides @@ -26,9 +20,7 @@ This project uses React. Take your time to read the guide: - [React guide](https://react.dev/learn) -If you were already familiar with an older, Ractive-based tgui, and want -to translate concepts between old and new tgui, read this -[interface conversion guide](docs/converting-old-tgui-interfaces.md). +If you were already familiar with an older, Ractive-based tgui, and want to translate concepts between old and new tgui, read this [interface conversion guide](docs/converting-old-tgui-interfaces.md). ### Other Documentation @@ -39,97 +31,84 @@ to translate concepts between old and new tgui, read this ## Pre-requisites -You will need these programs to start developing in tgui: +If you are using the tooling provided in this repo, everything is included! Feel free to skip this step. -- [Node v16.13+](https://nodejs.org/en/download/) +However, if you want finer control over the installation or build process, you will need these: + +- [Node v20.2+](https://nodejs.org/en/download/) - **LTS** release is recommended instead of latest -- [Yarn v1.22.4+](https://yarnpkg.com/getting-started/install) (optional) + - **DO NOT install Chocolatey if Node installer asks you to!** +- [Yarn v4.1.1+](https://yarnpkg.com/getting-started/install) - You can run `npm install -g yarn` to install it. -- [Git Bash](https://git-scm.com/downloads) - or [MSys2](https://www.msys2.org/) (optional) - -**DO NOT install Chocolatey if Node installer asks you to!** ## Usage -**For Git Bash, MSys2, WSL, Linux or macOS users:** +**Via provided cmd scripts (Windows)**: -Change your directory to `tgui`. +- `bin/tgui-build` - Build tgui in production mode and run a full suite of code checks. +- `bin/tgui-dev` - Launch a development server. + - `bin/tgui-dev --reload` - Reload byond cache once. + - `bin/tgui-dev --debug` - Run server with debug logging enabled. + - `bin/tgui-dev --no-hot` - Disable hot module replacement (helps when doing development on IE8). +- `bin/tgui-sonar` - Analyze code with SonarQube. +- `bin/tgui-bench` - Run benchmarks. -Run `bin/tgui --install-git-hooks` to install merge drivers which will -assist you in conflict resolution when rebasing your branches. Only has -to be done once. +> To open a CMD or PowerShell window in any open folder, right click **while holding Shift** on any free space in the folder, then click on either `Open command window here` or `Open PowerShell window here`. -Run `bin/tgui` with any of the options listed below. +**Via Juke Build (cross-platform)**: -**For Windows CMD or PowerShell users:** +- `tools/build/build tgui` - Build tgui in production mode. +- `tools/build/build tgui-dev` - Build tgui in production mode. + - `tools/build/build tgui-dev --reload` - Reload byond cache once. + - `tools/build/build tgui-dev --debug` - Run server with debug logging enabled. + - `tools/build/build tgui-dev --no-hot` - Disable hot module replacement (helps when doing development on IE8). +- `tools/build/build tgui-lint` - Show (and auto-fix) problems with the code. +- `tools/build/build tgui-sonar` - Analyze code with SonarQube. +- `tools/build/build tgui-test` - Run unit and integration tests. +- `tools/build/build tgui-analyze` - Run a bundle analyzer. +- `tools/build/build tgui-bench` - Run benchmarks. +- `tools/build/build tgui-clean` - Clean up tgui folder. -If you haven't opened the console already, you can do that by holding -Shift and right clicking on the `tgui` folder, then pressing -either `Open command window here` or `Open PowerShell window here`. +> With Juke Build, you can run multiple targets together, e.g.: +> +> ``` +> tools/build/build tgui tgui-lint tgui-tsc tgui-test +> ``` -Run `.\bin\tgui.bat` with any of the options listed below. +**Via Yarn (cross-platform)**: -> If using PowerShell, you will receive errors if trying to run -> `.\bin\tgui.ps1`, because default Windows policy does not allow direct -> execution of PS1 scripts. Run `.\bin\tgui.bat` instead. +Run `yarn install` once to install tgui dependencies. -**Available commands:** +- `yarn tgui:build` - Build tgui in production mode. + - `yarn tgui:build [options]` - Build tgui with custom webpack options. +- `yarn tgui:dev` - Launch a development server. + - `yarn tgui:dev --reload` - Reload byond cache once. + - `yarn tgui:dev --debug` - Run server with debug logging enabled. + - `yarn tgui:dev --no-hot` - Disable hot module replacement (helps when doing development on IE8). +- `yarn tgui:lint` - Show (and auto-fix) problems with the code. +- `yarn tgui:sonar` - Analyze code with SonarQube. +- `yarn tgui:tsc` - Check code with TypeScript compiler. +- `yarn tgui:test` - Run unit and integration tests. +- `yarn tgui:analyze` - Run a bundle analyzer. +- `yarn tgui:bench` - Run benchmarks. +- `yarn tgfont:build` - Build icon fonts. +- `yarn tgui-polyfill:build` - Build polyfills. You need to run it when updating any of the static (numbered) polyfills. -- `bin/tgui` - (Recommended build option) Build the project in production mode. -- `bin/tgui --pretty` - Check/Prettify all files inside of the packages folder (Mainly Interfaces/Components). Build the project in production mode afterwards. -- `bin/tgui --dev` - Launch a development server. - - tgui development server provides you with incremental compilation, - hot module replacement and logging facilities in all running instances - of tgui. In short, this means that you will instantly see changes in the - game as you code it. Very useful, highly recommended. - - In order to use it, you should start the game server first, connect to it - and wait until the world has been properly loaded and you are no longer - in the lobby. Start tgui dev server, and once it has finished building, - press F5 on any tgui window. You'll know that it's hooked correctly if - you see a green bug icon in titlebar and data gets dumped to the console. - - `bin/tgui --dev --reload` - Reload byond cache once. - - `bin/tgui --dev --debug` - Run server with debug logging enabled. - - `bin/tgui --dev --no-hot` - Disable hot module replacement (helps when -doing development on IE8). -- `bin/tgui --lint` - Show problems with the code. -- `bin/tgui --fix` - Auto-fix problems with the code. -- `bin/tgui --test` - Run tests. -- `bin/tgui --analyze` - Run a bundle analyzer. -- `bin/tgui --clean` - Clean up project repo. -- `bin/tgui [webpack options]` - Build the project with custom webpack -options. +## Important Memo -**For virgins:** - -You can double-click these batch files to achieve the same thing: - -- `bin\tgui.bat` - (Recommended build option) Build the project in production mode. -- `bin\tgui-prettybuild.bat` - Prettify all the files inside the packages folder. Build the project in production mode afterwards. -- `bin\tgui-dev-server.bat` - Launch a development server. - -> Remember to always run a full build before submitting a PR. It creates -> a compressed javascript bundle which is then referenced from DM code. -> We prefer to keep it version controlled, so that people could build the -> game just by using Dream Maker. +Remember to always run a full build of tgui before submitting a PR, because it comes with the full suite of CI checks, and runs much faster on your computer than on GitHub servers. It will save you some time and possibly a few broken commits! Address the issues that are reported by the tooling as much as possible, because maintainers will beat you with a ruler and force you to address them anyway (unless it's a false positive or something unfixable). ## Troubleshooting **Development server is crashing** -Make sure path to your working directory does not contain spaces or special -unicode characters. If so, move codebase to a location which does not contain -spaces or unicode characters. +Make sure path to your working directory does not contain spaces, special unicode characters, exclamation marks or any other special symbols. If so, move codebase to a location which does not contain these characters. -This is a known issue with Yarn Berry, and fix is going to happen someday. +This is a known issue with Yarn (and some other tools, like Webpack), and fix is going to happen eventually. **Development server doesn't find my BYOND cache!** -This happens if your Documents folder in Windows has a custom location, for -example in `E:\Libraries\Documents`. Development server tries its best to find -this non-standard location (searches for a Windows Registry key), but it can -fail. You have to run the dev server with an additional environmental -variable, with a full path to BYOND cache. +This happens if your Documents folder in Windows has a custom location, for example in `E:\Libraries\Documents`. Development server tries its best to find this non-standard location (searches for a Windows Registry key), but it can fail. You have to run the dev server with an additional environmental variable, with a full path to BYOND cache. ``` BYOND_CACHE="E:/Libraries/Documents/BYOND/cache" @@ -139,14 +118,11 @@ BYOND_CACHE="E:/Libraries/Documents/BYOND/cache" > Example: `No template for dependency: PureExpressionDependency` -Webpack stores its cache on disk since tgui 4.3, and it is very sensitive -to build configuration. So if you update webpack, or share the same cache -directory between development and production build, it will start -hallucinating. +Webpack stores its cache on disk since tgui 4.3, and it is very sensitive to build configuration. So if you update webpack, or share the same cache directory between development and production build, it will start hallucinating. To fix this kind of problem, run `bin/tgui --clean` and try again. -## Developer Tools +## Dev Server Tools When developing with `tgui-dev-server`, you will have access to certain development only features. @@ -157,7 +133,7 @@ logs and time spent on rendering. Use this information to optimize your code, and try to keep re-renders below 16ms. **Kitchen Sink.** -Press `F12` to open the KitchenSink interface. This interface is a +Press `F12` or click the green bug to open the KitchenSink interface. This interface is a playground to test various tgui components. **Layout Debugger.** @@ -168,12 +144,13 @@ together, and can reveal certain layout bugs which are not normally visible. ## Browser Developer Tools To debug TGUI interfaces with browser-style developer tools, there exists a utility -that Microsoft bundles with Windows to debug any Internet Explorer/Trident-using interface, +that Microsoft bundles with Windows called IEChooser/F12 to debug any Internet Explorer/Trident-using interface, which BYOND uses. This provides invaluable tools such as a local console, a DOM viewer, an interactive debugger, and more. -The 64-bit version that we use is located at `%windir%\SysWOW64\F12\IEChooser.exe`. +You can access the `IEChooser.exe` by pressing Win + R, then typing `f12`, then pressing enter. +To manually go there: 64-bit version that we use is located at `%windir%\SysWOW64\F12\IEChooser.exe`. There's also a 32-bit one in `system32\`. Simply launch the application after you've opened a TGUI window, and choose the .html name. @@ -185,42 +162,24 @@ so you'll need to restart it if it disconnects from the window. ## Project Structure - `/packages` - Each folder here represents a self-contained Node module. -- `/packages/common` - Helper functions +- `/packages/common` - Helper functions that are used throughout all packages. - `/packages/tgui/index.js` - Application entry point. - `/packages/tgui/components` - Basic UI building blocks. - `/packages/tgui/interfaces` - Actual in-game interfaces. -Interface takes data via the `state` prop and outputs an html-like stucture, -which you can build using existing UI components. -- `/packages/tgui/layouts` - Root level UI components, that affect the final -look and feel of the browser window. They usually hold various window -elements, like the titlebar and resize handlers, and control the UI theme. -- `/packages/tgui/routes.js` - This is where tgui decides which interface to -pull and render. -- `/packages/tgui/layout.js` - A root-level component, holding the -window elements, like the titlebar, buttons, resize handlers. Calls -`routes.js` to decide which component to render. +- `/packages/tgui/layouts` - Root level UI components, that affect the final look and feel of the browser window. These hold various window elements, like the titlebar and resize handlers, and control the UI theme. +- `/packages/tgui/routes.js` - This is where tgui decides which interface to pull and render. - `/packages/tgui/styles/main.scss` - CSS entry point. -- `/packages/tgui/styles/functions.scss` - Useful SASS functions. -Stuff like `lighten`, `darken`, `luminance` are defined here. -- `/packages/tgui/styles/atomic` - Atomic CSS classes. -These are very simple, tiny, reusable CSS classes which you can use and -combine to change appearance of your elements. Keep them small. -- `/packages/tgui/styles/components` - CSS classes which are used -in UI components. These stylesheets closely follow the -[BEM](https://en.bem.info/methodology/) methodology. -- `/packages/tgui/styles/interfaces` - Custom stylesheets for your interfaces. -Add stylesheets here if you really need a fine control over your UI styles. +- `/packages/tgui/styles/functions.scss` - Useful SASS functions. Stuff like `lighten`, `darken`, `luminance` are defined here. +- `/packages/tgui/styles/atomic` - Atomic CSS classes. These are very simple, tiny, reusable CSS classes which you can use and combine to change appearance of your elements. Keep them small. +- `/packages/tgui/styles/components` - CSS classes which are used in UI components. These stylesheets closely follow the [BEM](https://en.bem.info/methodology/) methodology. +- `/packages/tgui/styles/interfaces` - Custom stylesheets for your interfaces. Add stylesheets here if you really need a fine control over your UI styles. - `/packages/tgui/styles/layouts` - Layout-related styles. -- `/packages/tgui/styles/themes` - Contains all the various themes you can -use in tgui. Each theme must be registered in `webpack.config.js` file. +- `/packages/tgui/styles/themes` - Contains themes that you can use in tgui. Each theme must be registered in `/packages/tgui/index.js` file. ## License -Source code is covered by /tg/station's parent license - **AGPL-3.0** -(see the main [README](../README.md)), unless otherwise indicated. +Source code is covered by /tg/station's parent license - **AGPL-3.0** (see the main [README](../README.md)), unless otherwise indicated. -Some files are annotated with a copyright header, which explicitly states -the copyright holder and license of the file. Most of the core tgui -source code is available under the **MIT** license. +Some files are annotated with a copyright header, which explicitly states the copyright holder and license of the file. Most of the core tgui source code is available under the **MIT** license. The Authors retain all copyright to their respective work here submitted. diff --git a/tgui/bin/tgui b/tgui/bin/tgui deleted file mode 100644 index 256f0e579e..0000000000 --- a/tgui/bin/tgui +++ /dev/null @@ -1,235 +0,0 @@ -#!/usr/bin/env bash -## Copyright (c) 2020 Aleksej Komarov -## SPDX-License-Identifier: MIT - -set -e -shopt -s globstar -shopt -s expand_aliases - -## Initial set-up -## -------------------------------------------------------- - -## Returns an absolute path to file -alias tgui-realpath="readlink -f" - -## Fallbacks for GNU readlink -## Detecting GNU coreutils http://stackoverflow.com/a/8748344/319952 -if ! readlink --version >/dev/null 2>&1; then - if hash greadlink 2>/dev/null; then - alias tgui-realpath="greadlink -f" - else - alias tgui-realpath="perl -MCwd -le 'print Cwd::abs_path(shift)'" - fi -fi - -## Find a canonical path to project root -base_dir="$(dirname "$(tgui-realpath "${0}")")/.." -base_dir="$(tgui-realpath "${base_dir}")" - -## Make use of nvm if it exists -if [[ -e "${HOME}/.nvm/nvm.sh" ]]; then - source "${HOME}/.nvm/nvm.sh" -fi - -## Fall back to running Yarn from the repo -if ! hash yarn 2>/dev/null; then - yarn_releases=("${base_dir}"/.yarn/releases/yarn-*.cjs) - yarn_release="${yarn_releases[0]}" - yarn() { - node "${yarn_release}" "${@}" - } -fi - - -## Functions -## -------------------------------------------------------- - -## Installs node modules -task-install() { - cd "${base_dir}" - yarn install -} - -## Runs webpack -task-webpack() { - cd "${base_dir}" - yarn run webpack-cli "${@}" -} - -## Runs a development server -task-dev-server() { - cd "${base_dir}" - yarn node --experimental-modules packages/tgui-dev-server/index.js "${@}" -} - -## Run a linter through all packages -task-lint() { - cd "${base_dir}" - yarn run tsc - echo "tgui: type check passed" - yarn run eslint packages --ext .js,.cjs,.ts,.tsx "${@}" - echo "tgui: eslint check passed" -} - -task-test() { - cd "${base_dir}" - yarn run jest -} - -## Mr. Proper -task-clean() { - cd "${base_dir}" - ## Build artifacts - rm -rf public/.tmp - rm -f public/*.map - rm -f public/*.chunk.* - rm -f public/*.bundle.* - rm -f public/*.hot-update.* - ## Yarn artifacts - rm -rf .yarn/cache - rm -rf .yarn/unplugged - rm -rf .yarn/webpack - rm -f .yarn/build-state.yml - rm -f .yarn/install-state.gz - rm -f .yarn/install-target - rm -f .pnp.* - ## NPM artifacts - rm -rf **/node_modules - rm -f **/package-lock.json -} - -## Validates current build against the build stored in git -## VOREStation Addition Start -task-validate-build() { - cd "${base_dir}" - local diff - diff="$(git diff packages/tgui/public/tgui.bundle.*)" - if [[ -n ${diff} ]]; then - echo "Error: our build differs from the build committed into git." - echo "Please rebuild tgui." - exit 1 - fi - echo "tgui: build is ok" -} -## VOREStation Addition End - -## Installs merge drivers and git hooks -task-install-git-hooks() { - cd "${base_dir}" - local git_root - local git_base_dir - git_root="$(git rev-parse --show-toplevel)" - git_base_dir="${base_dir/${git_root}/.}" - git config --replace-all merge.tgui-merge-bundle.driver \ - "${git_base_dir}/bin/tgui --merge=bundle %O %A %B %L" - echo "tgui: Merge drivers have been successfully installed!" -} - -## Bundle merge driver -task-merge-bundle() { - local file_ancestor="${1}" - local file_current="${2}" - local file_other="${3}" - local conflict_marker_size="${4}" - echo "tgui: Discarding a local tgui build" - ## Do nothing (file_current will be merged and is what we want to keep). - exit 0 -} - - -## Main -## -------------------------------------------------------- - -if [[ ${1} == "--merge"* ]]; then - if [[ ${1} == "--merge=bundle" ]]; then - shift 1 - task-merge-bundle "${@}" - fi - echo "Unknown merge strategy: ${1}" - exit 1 -fi - -if [[ ${1} == "--install-git-hooks" ]]; then - shift 1 - task-install-git-hooks - exit 0 -fi - -if [[ ${1} == "--clean" ]]; then - task-clean - exit 0 -fi - -if [[ ${1} == "--dev" ]]; then - shift - task-install - task-dev-server "${@}" - exit 0 -fi - -## VOREStation Addition Start -## Continuous integration scenario -if [[ ${1} == "--ci" ]]; then - task-clean - task-install - task-lint - task-test - task-webpack --mode=production - task-validate-build - exit 0 -fi -## VOREStation Addition End - -if [[ ${1} == '--lint' ]]; then - shift 1 - task-install - task-lint "${@}" - exit 0 -fi - -if [[ ${1} == '--lint-harder' ]]; then - shift 1 - task-install - task-lint -c .eslintrc-harder.yml "${@}" - exit 0 -fi - -if [[ ${1} == '--fix' ]]; then - shift 1 - task-install - task-lint --fix "${@}" - exit 0 -fi - -if [[ ${1} == '--test' ]]; then - shift 1 - task-install - task-test "${@}" - exit 0 -fi - -## Analyze the bundle -if [[ ${1} == '--analyze' ]]; then - task-install - task-webpack --mode=production --analyze - exit 0 -fi - -## Make a production webpack build -if [[ ${1} == '--build' ]]; then - task-install - task-webpack --mode=production - exit 0 -fi - -## Make a production webpack build + Run eslint -if [[ -z ${1} ]]; then - task-install - task-lint --fix - task-webpack --mode=production - exit 0 -fi - -## Run webpack with custom flags -task-install -task-webpack "${@}" diff --git a/tgui/bin/tgui-bench.bat b/tgui/bin/tgui-bench.bat deleted file mode 100644 index da22a7b2ae..0000000000 --- a/tgui/bin/tgui-bench.bat +++ /dev/null @@ -1,9 +0,0 @@ -@echo off -rem Copyright (c) 2020 Aleksej Komarov -rem SPDX-License-Identifier: MIT -call powershell.exe -NoLogo -ExecutionPolicy Bypass -File "%~dp0\tgui_.ps1" --bench %* -rem Pause if launched in a separate shell unless initiated from powershell -echo %PSModulePath% | findstr %USERPROFILE% >NUL -if %errorlevel% equ 0 exit 0 -echo %cmdcmdline% | find /i "/c" -if %errorlevel% equ 0 pause diff --git a/tgui/bin/tgui-dev-server.bat b/tgui/bin/tgui-dev-server.bat deleted file mode 100644 index 21b2ea4e96..0000000000 --- a/tgui/bin/tgui-dev-server.bat +++ /dev/null @@ -1,9 +0,0 @@ -@echo off -rem Copyright (c) 2020 Aleksej Komarov -rem SPDX-License-Identifier: MIT -call powershell.exe -NoLogo -ExecutionPolicy Bypass -File "%~dp0\tgui_.ps1" --dev %* -rem Pause if launched in a separate shell unless initiated from powershell -echo %PSModulePath% | findstr %USERPROFILE% >NUL -if %errorlevel% equ 0 exit 0 -echo %cmdcmdline% | find /i "/c" -if %errorlevel% equ 0 pause diff --git a/tgui/bin/tgui-prettybuild.bat b/tgui/bin/tgui-prettybuild.bat deleted file mode 100644 index fe827e1657..0000000000 --- a/tgui/bin/tgui-prettybuild.bat +++ /dev/null @@ -1,9 +0,0 @@ -@echo off -rem Copyright (c) 2020 Aleksej Komarov -rem SPDX-License-Identifier: MIT -call powershell.exe -NoLogo -ExecutionPolicy Bypass -File "%~dp0\tgui_.ps1" --pretty %* -rem Pause if launched in a separate shell unless initiated from powershell -echo %PSModulePath% | findstr %USERPROFILE% >NUL -if %errorlevel% equ 0 exit 0 -echo %cmdcmdline% | find /i "/c" -if %errorlevel% equ 0 pause diff --git a/tgui/bin/tgui.bat b/tgui/bin/tgui.bat deleted file mode 100644 index 39aa279dca..0000000000 --- a/tgui/bin/tgui.bat +++ /dev/null @@ -1,9 +0,0 @@ -@echo off -rem Copyright (c) 2020 Aleksej Komarov -rem SPDX-License-Identifier: MIT -call powershell.exe -NoLogo -ExecutionPolicy Bypass -File "%~dp0\tgui_.ps1" %* -rem Pause if launched in a separate shell unless initiated from powershell -echo %PSModulePath% | findstr %USERPROFILE% >NUL -if %errorlevel% equ 0 exit 0 -echo %cmdcmdline% | find /i "/c" -if %errorlevel% equ 0 pause diff --git a/tgui/bin/tgui_.ps1 b/tgui/bin/tgui_.ps1 deleted file mode 100644 index eb9c7a1a97..0000000000 --- a/tgui/bin/tgui_.ps1 +++ /dev/null @@ -1,177 +0,0 @@ -## Copyright (c) 2020 Aleksej Komarov -## SPDX-License-Identifier: MIT - -## Initial set-up -## -------------------------------------------------------- - -## Enable strict mode and stop of first cmdlet error -Set-StrictMode -Version Latest -$ErrorActionPreference = "Stop" -$PSDefaultParameterValues['*:ErrorAction'] = 'Stop' - -## Validates exit code of external commands -function Throw-On-Native-Failure { - if (-not $?) { - exit 1 - } -} - -## Normalize current directory -$basedir = Split-Path $MyInvocation.MyCommand.Path -$basedir = Resolve-Path "$($basedir)\.." -Set-Location $basedir -[Environment]::CurrentDirectory = $basedir - - -## Functions -## -------------------------------------------------------- - -function yarn { - $YarnRelease = Get-ChildItem -Filter ".yarn\releases\yarn-*.cjs" | Select-Object -First 1 - node ".yarn\releases\$YarnRelease" @Args - Throw-On-Native-Failure -} - -function Remove-Quiet { - Remove-Item -ErrorAction SilentlyContinue @Args -} - -function task-install { - yarn install -} - -## Runs webpack -function task-webpack { - yarn run webpack-cli @Args -} - -## Runs a development server -function task-dev-server { - yarn node --experimental-modules "packages/tgui-dev-server/index.js" @Args -} - -function task-bench { - yarn tgui:bench @Args -} - -function task-prettier { - yarn tgui:prettier @Args -} - -function task-prettify { - yarn prettier --write packages @Args -} - -## Run a linter through all packages -function task-lint { - yarn run tsc - Write-Output "tgui: type check passed" - yarn run eslint packages --ext ".js,.cjs,.ts,.tsx" @Args - Write-Output "tgui: eslint check passed" -} - -function task-test { - yarn run jest -} - -## Mr. Proper -function task-clean { - ## Build artifacts - Remove-Quiet -Recurse -Force "public\.tmp" - Remove-Quiet -Force "public\*.map" - Remove-Quiet -Force "public\*.hot-update.*" - ## Yarn artifacts - Remove-Quiet -Recurse -Force ".yarn\cache" - Remove-Quiet -Recurse -Force ".yarn\unplugged" - Remove-Quiet -Recurse -Force ".yarn\webpack" - Remove-Quiet -Force ".yarn\build-state.yml" - Remove-Quiet -Force ".yarn\install-state.gz" - Remove-Quiet -Force ".yarn\install-target" - Remove-Quiet -Force ".pnp.*" - ## NPM artifacts - Get-ChildItem -Path "." -Include "node_modules" -Recurse -File:$false | Remove-Item -Recurse -Force - Remove-Quiet -Force "package-lock.json" -} - - -## Main -## -------------------------------------------------------- - -if ($Args.Length -gt 0) { - if ($Args[0] -eq "--clean") { - task-clean - exit 0 - } - - if ($Args[0] -eq "--dev") { - $Rest = $Args | Select-Object -Skip 1 - task-install - task-dev-server @Rest - exit 0 - } - - if ($Args[0] -eq "--lint") { - $Rest = $Args | Select-Object -Skip 1 - task-install - task-lint @Rest - exit 0 - } - - if ($Args[0] -eq "--lint-harder") { - $Rest = $Args | Select-Object -Skip 1 - task-install - task-lint -c ".eslintrc-harder.yml" @Rest - exit 0 - } - - if ($Args[0] -eq "--fix") { - $Rest = $Args | Select-Object -Skip 1 - task-install - task-lint --fix @Rest - exit 0 - } - - if ($Args[0] -eq "--test") { - $Rest = $Args | Select-Object -Skip 1 - task-install - task-test @Rest - exit 0 - } - - if ($Args[0] -eq "--pretty") { - $Rest = $Args | Select-Object -Skip 1 - task-install - task-prettify - task-prettier - task-lint - task-webpack --mode=production - exit 0 - } - - ## Analyze the bundle - if ($Args[0] -eq "--analyze") { - task-install - task-webpack --mode=production --analyze - exit 0 - } - - if ($Args[0] -eq "--bench") { - $Rest = $Args | Select-Object -Skip 1 - task-install - task-bench --wait-on-error - exit 0 - } -} - -## Make a production webpack build -if ($Args.Length -eq 0) { - task-install - task-prettier - task-lint - task-webpack --mode=production - exit 0 -} - -## Run webpack with custom flags -task-install -task-webpack @Args diff --git a/tgui/packages/tgfont/package.json b/tgui/packages/tgfont/package.json index 5e5a3f060c..56bb38bf68 100644 --- a/tgui/packages/tgfont/package.json +++ b/tgui/packages/tgfont/package.json @@ -3,7 +3,7 @@ "name": "tgfont", "version": "1.0.0", "scripts": { - "build": "node mkdist.cjs && fantasticon --config config.cjs" + "tgfont:build": "node mkdist.cjs && fantasticon --config config.cjs" }, "dependencies": { "fantasticon": "^1.2.3" diff --git a/tgui/packages/tgui/interfaces/ModifyRobot/ModifyRobotTabs/ModifyRobotComponent.tsx b/tgui/packages/tgui/interfaces/ModifyRobot/ModifyRobotTabs/ModifyRobotComponent.tsx index 4450c6009c..8423630acd 100644 --- a/tgui/packages/tgui/interfaces/ModifyRobot/ModifyRobotTabs/ModifyRobotComponent.tsx +++ b/tgui/packages/tgui/interfaces/ModifyRobot/ModifyRobotTabs/ModifyRobotComponent.tsx @@ -1,9 +1,11 @@ +import { toFixed } from 'common/math'; import { capitalize } from 'common/string'; import { useState } from 'react'; import { useBackend } from 'tgui/backend'; import { Box, Button, + Collapsible, Divider, Dropdown, Flex, @@ -11,24 +13,26 @@ import { Image, Input, Section, + Slider, Stack, } from 'tgui/components'; import { NoSpriteWarning } from '../components'; import { prepareSearch } from '../functions'; -import { Cell, Component, Target } from '../types'; +import { Cell, Component, InstalledCell, Target } from '../types'; export const ModifyRobotComponent = (props: { target: Target; - cell: string | null; + cell: InstalledCell; cells: Record; }) => { + const { act } = useBackend(); const { target, cell, cells } = props; const [searchComponentReplaceText, setSearchComponentReplaceText] = useState(''); const [searchComponentRemoveText, setSearchComponentRemoveText] = useState(''); - const [selectedCell, setSelectedCell] = useState(cell || ''); + const [selectedCell, setSelectedCell] = useState(cell.name || ''); const cell_options = Object.keys(cells) as Array; return ( @@ -46,7 +50,7 @@ export const ModifyRobotComponent = (props: { buttonIcon="arrows-spin" celltype={cells[selectedCell]?.path} selected_cell={selectedCell} - cell={cell || undefined} + cell={cell.name || undefined} /> @@ -65,13 +69,32 @@ export const ModifyRobotComponent = (props: {
Current cell:{' '} - {cell ? ( - capitalize(cell) + {cell.name ? ( + capitalize(cell.name) ) : ( No cell installed! )} + toFixed(value, 2)} + disabled={!cell.charge} + minValue={0} + maxValue={100} + value={((cell.charge || 0) / (cell.maxcharge || 1)) * 100} + onChange={(e, value) => + act('adjust_cell_charge', { + charge: (value / 100) * (cell.maxcharge || 0), + }) + } + > + + Current charge + + {cell.charge} + +
+
+ + {target.components.map((component, i) => { + return ( + + + act('adjust_brute', { + component: component.ref, + damage: value, + }) + } + > + + Brute damage + + {component.brute_damage} + + + + act('adjust_electronics', { + component: component.ref, + damage: value, + }) + } + > + + Electronics damage + + + {component.electronics_damage} + + + + + ); + })} + +
diff --git a/tgui/packages/tgui/interfaces/ModifyRobot/types.ts b/tgui/packages/tgui/interfaces/ModifyRobot/types.ts index 02b840948b..d5bb7aeadf 100644 --- a/tgui/packages/tgui/interfaces/ModifyRobot/types.ts +++ b/tgui/packages/tgui/interfaces/ModifyRobot/types.ts @@ -5,7 +5,7 @@ export type Data = { target: Target | null; all_robots: DropdownEntry[]; model_options: string[] | null; - cell: string | null; + cell: InstalledCell; cell_options: Record; id_icon: string; access_options: Access[] | undefined; @@ -98,6 +98,12 @@ export type PKA = { max_capacity: number; }; +export type InstalledCell = { + name: string | null; + charge: number | null; + maxcharge: number | null; +}; + export type Cell = { path: string; charge: number; diff --git a/tgui/packages/tgui/interfaces/Pda/pda_screens/pda_main_menu.tsx b/tgui/packages/tgui/interfaces/Pda/pda_screens/pda_main_menu.tsx index f28d9dc497..804d3f31ba 100644 --- a/tgui/packages/tgui/interfaces/Pda/pda_screens/pda_main_menu.tsx +++ b/tgui/packages/tgui/interfaces/Pda/pda_screens/pda_main_menu.tsx @@ -1,6 +1,7 @@ import { BooleanLike } from 'common/react'; +import { useState } from 'react'; import { useBackend } from 'tgui/backend'; -import { Box, Button, LabeledList, Section } from 'tgui/components'; +import { Box, Button, Icon, LabeledList, Section } from 'tgui/components'; type Data = { owner: string; @@ -19,13 +20,43 @@ type category = { ref: string; }; +const specialIconColors = { + 'Enable Flashlight': '#0f0', + 'Disable Flashlight': '#f00', +}; + export const pda_main_menu = (props) => { const { act, data } = useBackend(); + const [showTransition, setShowTransition] = useState(''); + + const startProgram = (program: category) => { + if ( + program.name.startsWith('Enable') || + program.name.startsWith('Disable') + ) { + // Special case, instant + act('StartProgram', { program: program.ref }); + return; + } + + setShowTransition(program.icon); + + setTimeout(() => { + setShowTransition(''); + act('StartProgram', { program: program.ref }); + }, 200); + }; + const { owner, ownjob, idInserted, categories, pai, notifying, apps } = data; return ( <> + {showTransition && ( + + + + )} @@ -57,8 +88,13 @@ export const pda_main_menu = (props) => { key={app.ref} icon={app.ref in notifying ? app.notify_icon : app.icon} iconSpin={app.ref in notifying} + iconColor={ + app.name in specialIconColors + ? specialIconColors[app.name] + : null + } color={app.ref in notifying ? 'red' : 'transparent'} - onClick={() => act('StartProgram', { program: app.ref })} + onClick={() => startProgram(app)} > {app.name} diff --git a/tgui/packages/tgui/interfaces/VorePanel/VoreUserPreferences.tsx b/tgui/packages/tgui/interfaces/VorePanel/VoreUserPreferences.tsx index e6a44e74b0..0f10b6e0e3 100644 --- a/tgui/packages/tgui/interfaces/VorePanel/VoreUserPreferences.tsx +++ b/tgui/packages/tgui/interfaces/VorePanel/VoreUserPreferences.tsx @@ -41,6 +41,7 @@ export const VoreUserPreferences = (props: { nutrition_message_visible, weight_message_visible, eating_privacy_global, + allow_mimicry, } = prefs; const preferences = { @@ -425,6 +426,19 @@ export const VoreUserPreferences = (props: { disabled: 'Global Vore Privacy: Loud', }, }, + allow_mimicry: { + action: 'toggle_mimicry', + test: allow_mimicry, + tooltip: { + main: 'Allows some creatures to mimick your apperance.', + enable: ' Click here to allow mimicry.', + disable: ' Click here to forbid mimicry.', + }, + content: { + enabled: 'Allow Mimicry: Yes', + disabled: 'Allow Mimicry: No', + }, + }, }; return ( diff --git a/tgui/packages/tgui/interfaces/VorePanel/VoreUserPreferencesTabs/VoreUserPreferencesMechanical .tsx b/tgui/packages/tgui/interfaces/VorePanel/VoreUserPreferencesTabs/VoreUserPreferencesMechanical .tsx index 8433d9dab9..51957ada93 100644 --- a/tgui/packages/tgui/interfaces/VorePanel/VoreUserPreferencesTabs/VoreUserPreferencesMechanical .tsx +++ b/tgui/packages/tgui/interfaces/VorePanel/VoreUserPreferencesTabs/VoreUserPreferencesMechanical .tsx @@ -118,6 +118,9 @@ export const VoreUserPreferencesMechanical = (props: { + + + ); diff --git a/tgui/packages/tgui/interfaces/VorePanel/types.ts b/tgui/packages/tgui/interfaces/VorePanel/types.ts index 508d0fb6f0..0ae4e710e5 100644 --- a/tgui/packages/tgui/interfaces/VorePanel/types.ts +++ b/tgui/packages/tgui/interfaces/VorePanel/types.ts @@ -172,6 +172,7 @@ export type prefData = { weight_message_visible: BooleanLike; weight_messages: string[]; eating_privacy_global: BooleanLike; + allow_mimicry: BooleanLike; vore_sprite_color: { stomach: string; 'taur belly': string }; vore_sprite_multiply: { stomach: BooleanLike; 'taur belly': BooleanLike }; }; @@ -203,6 +204,7 @@ export type localPrefs = { examine_nutrition: preferenceData; examine_weight: preferenceData; eating_privacy_global: preferenceData; + allow_mimicry: preferenceData; }; export type preferenceData = { diff --git a/tgui/packages/tgui/styles/interfaces/Pda.scss b/tgui/packages/tgui/styles/interfaces/Pda.scss new file mode 100644 index 0000000000..39ff88c3fa --- /dev/null +++ b/tgui/packages/tgui/styles/interfaces/Pda.scss @@ -0,0 +1,37 @@ +.Pda__Transition { + display: flex; + justify-content: center; + align-items: center; + // Fill positioned parent + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 1; + // Dim + animation: dim 0.4s forwards; +} + +.Pda__Transition > i { + animation: center-scale 0.4s forwards; + transform-origin: center center; +} + +@keyframes dim { + from { + background: rgba(0, 0, 0, 0); + } + to { + background: rgba(0, 0, 0, 0.5); + } +} + +@keyframes center-scale { + from { + transform: scale(1); + } + to { + transform: scale(4); + } +} diff --git a/tgui/packages/tgui/styles/main.scss b/tgui/packages/tgui/styles/main.scss index 3e2b99c02d..4f115f75d9 100644 --- a/tgui/packages/tgui/styles/main.scss +++ b/tgui/packages/tgui/styles/main.scss @@ -58,6 +58,7 @@ @include meta.load-css('./interfaces/ExperimentConfigure.scss'); @include meta.load-css('./interfaces/NuclearBomb.scss'); @include meta.load-css('./interfaces/Paper.scss'); +@include meta.load-css('./interfaces/Pda.scss'); @include meta.load-css('./interfaces/Roulette.scss'); @include meta.load-css('./interfaces/Safe.scss'); @include meta.load-css('./interfaces/TachyonArray.scss'); diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index c4c17d38af..fdc6483a16 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -292,7 +292,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(P,M){(M==null||M>P.length)&&(M=P.length);for(var _=0,S=new Array(M);_=P.length?{done:!0}:{done:!1,value:P[S++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g=(0,t.h)("hotkeys"),d={},a=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],l={},i=[],c=function(P){if(P===16)return"Shift";if(P===17)return"Ctrl";if(P===18)return"Alt";if(P===33)return"Northeast";if(P===34)return"Southeast";if(P===35)return"Southwest";if(P===36)return"Northwest";if(P===37)return"West";if(P===38)return"North";if(P===39)return"East";if(P===40)return"South";if(P===45)return"Insert";if(P===46)return"Delete";if(P>=48&&P<=57||P>=65&&P<=90)return String.fromCharCode(P);if(P>=96&&P<=105)return"Numpad"+(P-96);if(P>=112&&P<=123)return"F"+(P-111);if(P===188)return",";if(P===189)return"-";if(P===190)return"."},f=function(P){var M=String(P);if(M==="Ctrl+F5"||M==="Ctrl+R"){location.reload();return}if(M!=="Ctrl+F"&&!(P.event.defaultPrevented||P.isModifierKey()||a.includes(P.code))){var _=c(P.code);if(_){var S=d[_];if(S)return g.debug("macro",S),Byond.command(S);if(P.isDown()&&!l[_]){l[_]=!0;var T='TguiKeyDown "'+_+'"';return g.debug(T),Byond.command(T)}if(P.isUp()&&l[_]){l[_]=!1;var b='TguiKeyUp "'+_+'"';return g.debug(b),Byond.command(b)}}}},m=function(P){a.push(P)},v=function(P){var M=a.indexOf(P);M>=0&&a.splice(M,1)},E=function(){for(var P=x(Object.keys(l)),M;!(M=P()).done;){var _=M.value;l[_]&&(l[_]=!1,g.log('releasing key "'+_+'"'),Byond.command('TguiKeyUp "'+_+'"'))}},j=function(){Byond.winget("default.*").then(function(P){for(var M={},_=x(Object.keys(P)),S;!(S=_()).done;){var T=S.value,b=T.split("."),L=b[1],W=b[2];L&&W&&(M[L]||(M[L]={}),M[L][W]=P[T])}for(var k=/\\"/g,$=function(te){return te.substring(1,te.length-1).replace(k,'"')},w=x(Object.keys(M)),V;!(V=w()).done;){var F=V.value,X=M[F],Z=$(X.name);d[Z]=$(X.command)}g.debug("loaded macros",d)}),o.Nh.on("window-blur",function(){E()}),o.Nh.on("key",function(P){for(var M=x(i),_;!(_=M()).done;){var S=_.value;S(P)}f(P)})},C=function(P){i.push(P);var M=!1;return function(){M||(M=!0,i.splice(i.indexOf(P),1))}}},30705:function(O,u,n){"use strict";n.d(u,{b:function(){return e}});var e=function(o,t,r){return r===void 0&&(r=1e3),fetch(o,t).catch(function(){return new Promise(function(s){setTimeout(function(){e(o,t,r).then(s)},r)})})}},20544:function(O,u,n){"use strict";n.r(u),n.d(u,{AICard:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.name,i=a.has_ai,c=a.integrity,f=a.backup_capacitor,m=a.flushing,v=a.has_laws,E=a.laws,j=a.wireless,C=a.radio;if(i){var P;c>=75?P="green":c>=25?P="yellow":P="red";var M;return f>=75&&(M="green"),f>=25?M="yellow":M="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Stored AI",children:[(0,e.jsx)(t.az,{bold:!0,inline:!0,children:(0,e.jsx)("h3",{children:l})}),(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:P,value:c/100})}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.z2,{color:M,value:f/100})})]})}),(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h2",{children:m===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(t.wn,{title:"Laws",children:!!v&&(0,e.jsx)(t.az,{children:E.map(function(_,S){return(0,e.jsx)(t.az,{inline:!0,children:_},S)})})||(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(t.wn,{title:"Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(t.$n,{icon:j?"check":"times",color:j?"green":"red",onClick:function(){return d("wireless")},children:j?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(t.$n,{icon:C?"check":"times",color:C?"green":"red",onClick:function(){return d("radio")},children:C?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"AI Power",children:(0,e.jsx)(t.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||c===0,confirmColor:"red",onClick:function(){return d("wipe")},children:"Shutdown"})})]})})]})})}else return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Stored AI",children:(0,e.jsx)(t.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})})}},43252:function(O,u,n){"use strict";n.r(u),n.d(u,{APC:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(72859),x=n(98071),g=function(f){var m=(0,o.Oc)(),v=m.act,E=m.data,j=E.gridCheck,C=E.failTime,P=(0,e.jsx)(l,{});return j?P=(0,e.jsx)(i,{}):C&&(P=(0,e.jsx)(c,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:P})})},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"}},a={1:{icon:"terminal",content:"Override Programming",action:"hack"}},l=function(f){var m=(0,o.Oc)(),v=m.act,E=m.data,j=E.locked,C=E.siliconUser,P=E.externalPower,M=E.chargingStatus,_=E.powerChannels,S=E.powerCellStatus,T=E.emagged,b=E.isOperating,L=E.chargeMode,W=E.totalCharging,k=E.totalLoad,$=E.coverLocked,w=E.nightshiftSetting,V=E.emergencyLights,F=j&&!C,X=d[P]||d[0],Z=d[M]||d[0],te=_||[],J=S/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.InterfaceLockNoticeBox,{deny:T,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(t.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main Breaker",color:X.color,buttons:(0,e.jsx)(t.$n,{icon:b?"power-off":"times",selected:b&&!F,color:b?"":"bad",disabled:F,onClick:function(){return v("breaker")},children:b?"On":"Off"}),children:["[ ",X.externalPowerText," ]"]}),(0,e.jsx)(t.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(t.z2,{color:"good",value:J})}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",color:Z.color,buttons:(0,e.jsx)(t.$n,{icon:L?"sync":"times",selected:L,disabled:F,onClick:function(){return v("charge")},children:L?"Auto":"Off"}),children:["[ ",Z.chargingText," ]"]})]})}),(0,e.jsx)(t.wn,{title:"Power Channels",children:(0,e.jsxs)(t.Ki,{children:[te.map(function(Q){var Y=Q.topicParams;return(0,e.jsxs)(t.Ki.Item,{label:Q.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,mx:2,color:Q.status>=2?"good":"bad",children:Q.status>=2?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"sync",selected:!F&&(Q.status===1||Q.status===3),disabled:F,onClick:function(){return v("channel",Y.auto)},children:"Auto"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:!F&&Q.status===2,disabled:F,onClick:function(){return v("channel",Y.on)},children:"On"}),(0,e.jsx)(t.$n,{icon:"times",selected:!F&&Q.status===0,disabled:F,onClick:function(){return v("channel",Y.off)},children:"Off"})]}),children:[Q.powerLoad," W"]},Q.title)}),(0,e.jsx)(t.Ki.Item,{label:"Total Load",children:W?(0,e.jsxs)("b",{children:[k," W (+ ",W," W charging)"]}):(0,e.jsxs)("b",{children:[k," W"]})})]})}),(0,e.jsx)(t.wn,{title:"Misc",buttons:!!E.siliconUser&&(0,e.jsx)(t.$n,{icon:"lightbulb-o",onClick:function(){return v("overload")},children:"Overload"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(t.$n,{icon:$?"lock":"unlock",selected:$,disabled:F,onClick:function(){return v("cover")},children:$?"Engaged":"Disengaged"})}),(0,e.jsx)(t.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:w===2,onClick:function(){return v("nightshift",{nightshift:2})},children:"Disabled"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:w===1,onClick:function(){return v("nightshift",{nightshift:1})},children:"Automatic"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:w===3,onClick:function(){return v("nightshift",{nightshift:3})},children:"Enabled"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:V,onClick:function(){return v("emergency_lighting")},children:V?"Enabled":"Disabled"})})]})})]})},i=function(f){return(0,e.jsxs)(s.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},c=function(f){var m=(0,o.Oc)(),v=m.data,E=m.act,j=v.locked,C=v.siliconUser,P=v.failTime,M=(0,e.jsx)(t.$n,{icon:"repeat",color:"good",onClick:function(){return E("reboot")},children:"Restart Now"});return j&&!C&&(M=(0,e.jsx)(t.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(t.az,{color:"good",children:["Automatic reboot in ",P," seconds..."]}),(0,e.jsx)(t.az,{mt:4,children:M})]})}},77056:function(O,u,n){"use strict";n.r(u),n.d(u,{AccountsTerminal:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(l){var i=(0,o.Oc)(),c=i.act,f=i.data,m=f.id_inserted,v=f.id_card,E=f.access_level,j=f.machine_id;return(0,e.jsx)(r.p8,{width:400,height:640,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Machine",color:"average",children:j}),(0,e.jsx)(t.Ki.Item,{label:"ID",children:(0,e.jsx)(t.$n,{icon:m?"eject":"sign-in-alt",fluid:!0,onClick:function(){return c("insert_card")},children:v})})]})}),E>0&&(0,e.jsx)(x,{})]})})},x=function(l){var i=(0,o.Oc)(),c=i.act,f=i.data,m=f.creating_new_account,v=f.detailed_account_view;return(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!m&&!v,icon:"home",onClick:function(){return c("view_accounts_list")},children:"Home"}),(0,e.jsx)(t.tU.Tab,{selected:!!m,icon:"cog",onClick:function(){return c("create_account")},children:"New Account"}),m?"":(0,e.jsx)(t.tU.Tab,{icon:"print",onClick:function(){return c("print")},children:"Print"})]}),m&&(0,e.jsx)(g,{})||v&&(0,e.jsx)(d,{})||(0,e.jsx)(a,{})]})},g=function(l){var i=(0,o.Oc)().act,c=(0,o.QY)("holder",""),f=c[0],m=c[1],v=(0,o.QY)("money",""),E=v[0],j=v[1];return(0,e.jsxs)(t.wn,{title:"Create Account",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(t.pd,{value:f,fluid:!0,onInput:function(C,P){return m(P)}})}),(0,e.jsx)(t.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(t.pd,{value:E,fluid:!0,onInput:function(C,P){return j(P)}})})]}),(0,e.jsx)(t.$n,{disabled:!f||!E,mt:1,fluid:!0,icon:"plus",onClick:function(){return i("finalise_create_account",{holder_name:f,starting_funds:E})},children:"Create"})]})},d=function(l){var i=(0,o.Oc)(),c=i.act,f=i.data,m=f.access_level,v=f.station_account_number,E=f.account_number,j=f.owner_name,C=f.money,P=f.suspended,M=f.transactions;return(0,e.jsxs)(t.wn,{title:"Account Details",buttons:(0,e.jsx)(t.$n,{icon:"ban",selected:P,onClick:function(){return c("toggle_suspension")},children:"Suspend"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Number",children:["#",E]}),(0,e.jsx)(t.Ki.Item,{label:"Holder",children:j}),(0,e.jsxs)(t.Ki.Item,{label:"Balance",children:[C,"\u20AE"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:P?"bad":"good",children:P?"SUSPENDED":"Active"})]}),(0,e.jsx)(t.wn,{title:"CentCom Administrator",mt:1,children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payroll",children:(0,e.jsx)(t.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",confirmContent:"This cannot be undone.",disabled:E===v,onClick:function(){return c("revoke_payroll")},children:"Revoke"})})})}),m>=2&&(0,e.jsxs)(t.wn,{title:"Silent Funds Transfer",children:[(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_funds")},children:"Add Funds"}),(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("remove_funds")},children:"Remove Funds"})]}),(0,e.jsx)(t.wn,{title:"Transactions",mt:1,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(t.XI.Cell,{children:"Target"}),(0,e.jsx)(t.XI.Cell,{children:"Reason"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Terminal"})]}),M.map(function(_,S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{children:[_.date," ",_.time]}),(0,e.jsx)(t.XI.Cell,{children:_.target_name}),(0,e.jsx)(t.XI.Cell,{children:_.purpose}),(0,e.jsxs)(t.XI.Cell,{children:[_.amount,"\u20AE"]}),(0,e.jsx)(t.XI.Cell,{children:_.source_terminal})]},S)})]})})]})},a=function(l){var i=(0,o.Oc)(),c=i.act,f=i.data,m=f.accounts;return(0,e.jsx)(t.wn,{title:"NanoTrasen Accounts",children:m.length&&(0,e.jsx)(t.Ki,{children:m.map(function(v){return(0,e.jsx)(t.Ki.Item,{label:v.owner_name+v.suspended,color:v.suspended?"bad":void 0,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return c("view_account_detail",{account_index:v.account_index})},children:"#"+v.account_number})},v.account_index)})})||(0,e.jsx)(t.az,{color:"bad",children:"There are no accounts available."})})}},16980:function(O,u,n){"use strict";n.r(u),n.d(u,{AdminShuttleController:function(){return x},ShuttleList:function(){return g}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),x=function(){return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.shuttles,m=c.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,o.Ul)(f,function(v){return v.name}).map(function(v){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return i("adminobserve",{ref:v.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return i("classicmove",{ref:v.ref})},children:"Fly"})}),(0,e.jsx)(r.XI.Cell,{children:v.name}),(0,e.jsx)(r.XI.Cell,{children:v.current_location}),(0,e.jsx)(r.XI.Cell,{children:d(v.status)})]},v.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,o.Ul)(m,function(v){var E;return((E=v.name)==null?void 0:E.toLowerCase())||v.name||v.ref}).map(function(v){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return i("adminobserve",{ref:v.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return i("overmap_control",{ref:v.ref})},children:"Control"})}),(0,e.jsx)(r.XI.Cell,{children:v.name})]},v.ref)})})})]})},d=function(a){switch(a){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},15301:function(O,u,n){"use strict";n.r(u),n.d(u,{AdminTicketPanel:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.id,f=i.title,m=i.name,v=i.state,E=i.opened_at,j=i.closed_at,C=i.opened_at_date,P=i.closed_at_date,M=i.actions,_=i.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+c,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("retitle")},children:"Rename Ticket"}),(0,e.jsx)(r.$n,{onClick:function(){return l("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Admin Help Ticket",children:["#",c,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:x[v]}),x[v]===x.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:C+" ("+(0,o.Mg)((0,o.LI)(E/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[P+" ("+(0,o.Mg)((0,o.LI)(j/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return l("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(_).map(function(S,T){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_[S]}},T)})})]})})})})}},14415:function(O,u,n){"use strict";n.r(u),n.d(u,{AgentCard:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.entries,i=a.electronic_warfare;return(0,e.jsx)(r.p8,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Info",children:(0,e.jsx)(t.XI,{children:l.map(function(c){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{onClick:function(){return d(c.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsx)(t.XI.Cell,{children:c.value})]},c.name)})})}),(0,e.jsx)(t.wn,{title:"Electronic Warfare",children:(0,e.jsx)(t.$n.Checkbox,{checked:i,onClick:function(){return d("electronic_warfare")},children:i?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled."})})]})})}},40645:function(O,u,n){"use strict";n.r(u),n.d(u,{AiAirlock:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.power,c=l.wires,f=l.shock,m=l.shock_timeleft,v=l.id_scanner,E=l.lights,j=l.locked,C=l.safe,P=l.speed,M=l.opened,_=l.welded,S=s[i.main]||s[0],T=s[i.backup]||s[0],b=s[f]||s[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main",color:S.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!i.main,onClick:function(){return a("disrupt-main")},children:"Disrupt"}),children:[i.main?"Online":"Offline"," ",(!c.main_1||!c.main_2)&&"[Wires have been cut!]"||i.main_timeleft>0&&"["+i.main_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Backup",color:T.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!i.backup,onClick:function(){return a("disrupt-backup")},children:"Disrupt"}),children:[i.backup?"Online":"Offline"," ",(!c.backup_1||!c.backup_2)&&"[Wires have been cut!]"||i.backup_timeleft>0&&"["+i.backup_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Electrify",color:b.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",disabled:!(c.shock&&f===0),onClick:function(){return a("shock-restore")},children:"Restore"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!c.shock,onClick:function(){return a("shock-temp")},children:"Temporary"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!c.shock,onClick:function(){return a("shock-perm")},children:"Permanent"})]}),children:[f===2?"Safe":"Electrified"," ",!c.shock&&"[Wires have been cut!]"||m>0&&"["+m+"s]"||m===-1&&"[Permanent]"]})]})}),(0,e.jsx)(t.wn,{title:"Access and Door Control",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,disabled:!c.id_scanner,onClick:function(){return a("idscan-toggle")},children:v?"Enabled":"Disabled"}),children:!c.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:j?"lock":"unlock",selected:j,disabled:!c.bolts,onClick:function(){return a("bolt-toggle")},children:j?"Lowered":"Raised"}),children:!c.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:E?"power-off":"times",selected:E,disabled:!c.lights,onClick:function(){return a("light-toggle")},children:E?"Enabled":"Disabled"}),children:!c.lights&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:C?"power-off":"times",selected:C,disabled:!c.safe,onClick:function(){return a("safe-toggle")},children:C?"Enabled":"Disabled"}),children:!c.safe&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:P?"power-off":"times",selected:P,disabled:!c.timing,onClick:function(){return a("speed-toggle")},children:P?"Enabled":"Disabled"}),children:!c.timing&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:M?"sign-out-alt":"sign-in-alt",selected:M,disabled:j||_,onClick:function(){return a("open-close")},children:M?"Open":"Closed"}),children:!!(j||_)&&(0,e.jsxs)("span",{children:["[Door is ",j?"bolted":"",j&&_?" and ":"",_?"welded":"","!]"]})})]})})]})})}},89570:function(O,u,n){"use strict";n.r(u),n.d(u,{AiRestorer:function(){return s},AiRestorerContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.AI_present,c=l.error,f=l.name,m=l.laws,v=l.isDead,E=l.restoring,j=l.health,C=l.ejectable;return(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(t.IC,{textAlign:"center",children:c}),!!C&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!i,onClick:function(){return a("PRG_eject")},children:i?f:"----------"}),!!i&&(0,e.jsxs)(t.wn,{title:C?"System Status":f,buttons:(0,e.jsx)(t.az,{inline:!0,bold:!0,color:v?"bad":"good",children:v?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{value:j,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!E&&(0,e.jsx)(t.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",disabled:E,mt:1,onClick:function(){return a("PRG_beginReconstruction")},children:"Begin Reconstruction"}),(0,e.jsx)(t.wn,{title:"Laws",children:m.map(function(P){return(0,e.jsx)(t.az,{className:"candystripe",children:P},P)})})]})]})}},69622:function(O,u,n){"use strict";n.r(u),n.d(u,{AiSupermatter:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(72859),x=function(a){var l=(0,o.Oc)().data,i=l.detonating,c=(0,e.jsx)(d,{});return i&&(c=(0,e.jsx)(g,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:c})})},g=function(a){return(0,e.jsx)(s.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(t.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(t.az,{color:"bad",children:"Evacuate area immediately"})]})})},d=function(a){var l=(0,o.Oc)().data,i=l.integrity_percentage,c=l.ambient_temp,f=l.ambient_pressure;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(t.z2,{value:i,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(t.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(t.z2,{value:c,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[c," K"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Environment Pressure",children:[f," kPa"]})]})})}},15991:function(O,u,n){"use strict";n.r(u),n.d(u,{AirAlarm:function(){return l}});var e=n(20462),o=n(4089),t=n(61358),r=n(7081),s=n(88569),x=n(79500),g=n(15581),d=n(26634),a=n(98071),l=function(M){var _=function(Z){V(Z)},S=(0,r.Oc)(),T=S.act,b=S.data,L=b.locked,W=b.siliconUser,k=b.remoteUser,$=(0,t.useState)(""),w=$[0],V=$[1],F=L&&!W&&!k;return(0,e.jsx)(g.p8,{width:440,height:650,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{}),(0,e.jsx)(i,{}),(0,e.jsx)(c,{}),!F&&(0,e.jsx)(m,{screen:w,onScreen:_})]})})},i=function(M){var _=(0,r.Oc)().data,S=_.environment_data,T=_.atmos_alarm,b=_.fire_alarm,L=_.emagged,W=(S||[]).filter(function(w){return w.value>=.01}),k={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},$=k[_.danger_level]||k[0];return(0,e.jsx)(s.wn,{title:"Air Status",children:(0,e.jsxs)(s.Ki,{children:[W.length>0&&(0,e.jsxs)(e.Fragment,{children:[W.map(function(w){var V=k[w.danger_level]||k[0];return(0,e.jsxs)(s.Ki.Item,{label:(0,x.wM)(w.name),color:V.color,children:[(0,o.Mg)(w.value,2),w.unit]},w.name)}),(0,e.jsx)(s.Ki.Item,{label:"Local status",color:$.color,children:$.localStatusText}),(0,e.jsx)(s.Ki.Item,{label:"Area status",color:T||b?"bad":"good",children:T&&"Atmosphere Alarm"||b&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!L&&(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},c=function(M){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.target_temperature,L=T.rcon;return(0,e.jsx)(s.wn,{title:"Comfort Settings",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(s.$n,{selected:L===1,onClick:function(){return S("rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(s.$n,{selected:L===2,onClick:function(){return S("rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(s.$n,{selected:L===3,onClick:function(){return S("rcon",{rcon:3})},children:"On"})]}),(0,e.jsx)(s.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(s.$n,{onClick:function(){return S("temperature")},children:b})})]})})},f={home:{title:"Air Controls",component:function(){return v}},vents:{title:"Vent Controls",component:function(){return E}},scrubbers:{title:"Scrubber Controls",component:function(){return j}},modes:{title:"Operating Mode",component:function(){return C}},thresholds:{title:"Alarm Thresholds",component:function(){return P}}},m=function(M){var _=f[M.screen]||f.home,S=_.component();return(0,e.jsx)(s.wn,{title:_.title,buttons:M.screen&&(0,e.jsx)(s.$n,{icon:"arrow-left",onClick:function(){return M.onScreen()},children:"Back"}),children:(0,e.jsx)(S,{onScreen:M.onScreen})})},v=function(M){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.mode,L=T.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{icon:L?"exclamation-triangle":"exclamation",color:L&&"caution",onClick:function(){return S(L?"reset":"alarm")},children:"Area Atmosphere Alarm"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:b===3?"exclamation-triangle":"exclamation",color:b===3&&"danger",onClick:function(){return S("mode",{mode:b===3?1:3})},children:"Panic Siphon"}),(0,e.jsx)(s.az,{mt:2}),(0,e.jsx)(s.$n,{icon:"sign-out-alt",onClick:function(){return M.onScreen("vents")},children:"Vent Controls"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"filter",onClick:function(){return M.onScreen("scrubbers")},children:"Scrubber Controls"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"cog",onClick:function(){return M.onScreen("modes")},children:"Operating Mode"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"chart-bar",onClick:function(){return M.onScreen("thresholds")},children:"Alarm Thresholds"})]})},E=function(M){var _=(0,r.Oc)().data,S=_.vents;return!S||S.length===0?"Nothing to show":S.map(function(T){return(0,e.jsx)(d.Vent,{vent:T},T.id_tag)})},j=function(M){var _=(0,r.Oc)().data,S=_.scrubbers;return!S||S.length===0?"Nothing to show":S.map(function(T){return(0,e.jsx)(d.Scrubber,{scrubber:T},T.id_tag)})},C=function(M){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.modes;return!b||b.length===0?"Nothing to show":b.map(function(L){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(s.$n,{icon:L.selected?"check-square-o":"square-o",selected:L.selected,color:L.selected&&L.danger&&"danger",onClick:function(){return S("mode",{mode:L.mode})},children:L.name}),(0,e.jsx)(s.az,{mt:1})]},L.mode)})},P=function(M){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.thresholds;return(0,e.jsxs)("table",{className:"LabeledList",style:{width:"100%"},children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{}),(0,e.jsx)("td",{className:"color-bad",children:"min2"}),(0,e.jsx)("td",{className:"color-average",children:"min1"}),(0,e.jsx)("td",{className:"color-average",children:"max1"}),(0,e.jsx)("td",{className:"color-bad",children:"max2"})]})}),(0,e.jsx)("tbody",{children:b.map(function(L){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,x.b_)(L.name),children:(0,x.wM)(L.name)})}),L.settings.map(function(W){return(0,e.jsx)("td",{children:(0,e.jsx)(s.$n,{onClick:function(){return S("threshold",{env:W.env,var:W.val})},children:(0,o.Mg)(W.selected,2)})},W.val)})]},L.name)})})]})}},51225:function(O,u,n){"use strict";n.r(u),n.d(u,{AlertModal:function(){return l}});var e=n(20462),o=n(61358),t=n(6544),r=n(7081),s=n(88569),x=n(15581),g=n(44149),d=-1,a=1,l=function(f){var m=(0,r.Oc)(),v=m.act,E=m.data,j=E.autofocus,C=E.buttons,P=C===void 0?[]:C,M=E.large_buttons,_=E.message,S=_===void 0?"":_,T=E.timeout,b=E.title,L=(0,o.useState)(0),W=L[0],k=L[1],$=115+(S.length>30?Math.ceil(S.length/4):0)+(S.length&&M?5:0),w=325+(P.length>2?55:0),V=function(F){W===0&&F===d?k(P.length-1):W===P.length-1&&F===a?k(0):k(W+F)};return(0,e.jsxs)(x.p8,{height:$,title:b,width:w,children:[!!T&&(0,e.jsx)(g.Loader,{value:T}),(0,e.jsx)(x.p8.Content,{onKeyDown:function(F){var X=window.event?F.which:F.keyCode;X===t.iy||X===t.Ri?v("choose",{choice:P[W]}):X===t.s6?v("cancel"):X===t.iU?(F.preventDefault(),V(d)):(X===t.aW||X===t.zh)&&(F.preventDefault(),V(a))},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(s.az,{color:"label",overflow:"hidden",children:S})}),(0,e.jsxs)(s.BJ.Item,{children:[!!j&&(0,e.jsx)(s.y5,{}),(0,e.jsx)(i,{selected:W})]})]})})})]})},i=function(f){var m=(0,r.Oc)().data,v=m.buttons,E=v===void 0?[]:v,j=m.large_buttons,C=m.swapped_buttons,P=f.selected;return(0,e.jsx)(s.so,{align:"center",direction:C?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:E==null?void 0:E.map(function(M,_){return j&&E.length<3?(0,e.jsx)(s.so.Item,{grow:!0,children:(0,e.jsx)(c,{button:M,id:_.toString(),selected:P===_})},_):(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(c,{button:M,id:_.toString(),selected:P===_})},_)})})},c=function(f){var m=(0,r.Oc)(),v=m.act,E=m.data,j=E.large_buttons,C=f.button,P=f.selected,M=C.length>7?C.length:7;return(0,e.jsx)(s.$n,{fluid:!!j,height:!!j&&2,onClick:function(){return v("choose",{choice:C})},m:.5,pl:2,pr:2,pt:j?.33:0,selected:P,textAlign:"center",width:!j&&M,children:j?C.toUpperCase():C})}},20730:function(O,u,n){"use strict";n.r(u),n.d(u,{AlgaeFarm:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.usePower,c=l.materials,f=l.last_flow_rate,m=l.last_power_draw,v=l.inputDir,E=l.outputDir,j=l.input,C=l.output,P=l.errorText;return(0,e.jsx)(s.p8,{width:500,height:300,children:(0,e.jsxs)(s.p8.Content,{children:[P&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:P})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:i===2,onClick:function(){return a("toggle")},children:"Processing"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[f," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[m," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),c.map(function(M){return(0,e.jsxs)(r.Ki.Item,{label:(0,o.ZH)(M.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:M.qty,maxValue:M.max,children:[M.qty,"/",M.max]}),(0,e.jsx)(r.$n,{ml:1,onClick:function(){return a("ejectMaterial",{mat:M.name})},children:"Eject"})]},M.name)})]}),(0,e.jsx)(r.XI,{mt:1,children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Input ("+v+")",children:j?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[j.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:j.name,children:[j.percent,"% (",j.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+E+")",children:C?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},31607:function(O,u,n){"use strict";n.r(u),n.d(u,{AppearanceChangerEars:function(){return g},AppearanceChangerGender:function(){return x},AppearanceChangerSpecies:function(){return s},AppearanceChangerTails:function(){return d},AppearanceChangerWings:function(){return a}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.species,v=f.specimen,E=(0,o.Ul)(m||[],function(j){return j.specimen});return(0,e.jsx)(r.wn,{title:"Species",fill:!0,scrollable:!0,children:E.map(function(j){return(0,e.jsx)(r.$n,{selected:v===j.specimen,onClick:function(){return c("race",{race:j.specimen})},children:j.specimen},j.specimen)})})},x=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.gender,v=f.gender_id,E=f.genders,j=f.id_genders;return(0,e.jsx)(r.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Biological Sex",children:E.map(function(C){return(0,e.jsx)(r.$n,{selected:C.gender_key===m,onClick:function(){return c("gender",{gender:C.gender_key})},children:C.gender_name},C.gender_key)})}),(0,e.jsx)(r.Ki.Item,{label:"Gender Identity",children:j.map(function(C){return(0,e.jsx)(r.$n,{selected:C.gender_key===v,onClick:function(){return c("gender_id",{gender_id:C.gender_key})},children:C.gender_name},C.gender_key)})})]})})},g=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.ear_style,v=f.ear_styles;return(0,e.jsxs)(r.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("ear",{clear:!0})},selected:m===null,children:"-- Not Set --"}),(0,o.Ul)(v,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return c("ear",{ref:E.instance})},selected:E.name===m,children:E.name},E.instance)})]})},d=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.tail_style,v=f.tail_styles;return(0,e.jsxs)(r.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("tail",{clear:!0})},selected:m===null,children:"-- Not Set --"}),(0,o.Ul)(v,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return c("tail",{ref:E.instance})},selected:E.name===m,children:E.name},E.instance)})]})},a=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.wing_style,v=f.wing_styles;return(0,e.jsxs)(r.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("wing",{clear:!0})},selected:m===null,children:"-- Not Set --"}),(0,o.Ul)(v,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return c("wing",{ref:E.instance})},selected:E.name===m,children:E.name},E.instance)})]})}},47565:function(O,u,n){"use strict";n.r(u),n.d(u,{AppearanceChangerColors:function(){return r},AppearanceChangerMarkings:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.change_eye_color,i=a.change_skin_tone,c=a.change_skin_color,f=a.change_hair_color,m=a.change_facial_hair_color,v=a.eye_color,E=a.skin_color,j=a.hair_color,C=a.facial_hair_color,P=a.ears_color,M=a.ears2_color,_=a.tail_color,S=a.tail2_color,T=a.wing_color,b=a.wing2_color;return(0,e.jsxs)(t.wn,{title:"Colors",fill:!0,scrollable:!0,children:[l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:v,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("eye_color")},children:"Change Eye Color"})]}):"",i?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return d("skin_tone")},children:"Change Skin Tone"})}):"",c?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:E,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("skin_color")},children:"Change Skin Color"})]}):"",f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:j,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("hair_color")},children:"Change Hair Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:P,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("ears_color")},children:"Change Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:M,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("ears2_color")},children:"Change Secondary Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:_,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("tail_color")},children:"Change Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:S,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("tail2_color")},children:"Change Secondary Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:T,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("wing_color")},children:"Change Wing Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:b,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("wing2_color")},children:"Change Secondary Wing Color"})]})]}):null,m?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:C,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("facial_hair_color")},children:"Change Facial Hair Color"})]}):null]})},s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.markings;return(0,e.jsxs)(t.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:1,name:"na"})},children:"Add Marking"})}),(0,e.jsx)(t.Ki,{children:l.map(function(i){return(0,e.jsxs)(t.Ki.Item,{label:i.marking_name,children:[(0,e.jsx)(t.BK,{color:i.marking_color,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:4,name:i.marking_name})},children:"Change Color"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:0,name:i.marking_name})},children:"-"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:3,name:i.marking_name})},children:"Move down"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:2,name:i.marking_name})},children:"Move up"})]},i.marking_name)})})]})}},70972:function(O,u,n){"use strict";n.r(u),n.d(u,{AppearanceChangerFacialHair:function(){return s},AppearanceChangerHair:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.hair_style,i=a.hair_styles;return(0,e.jsx)(t.wn,{title:"Hair",fill:!0,scrollable:!0,children:i.map(function(c){return(0,e.jsx)(t.$n,{onClick:function(){return d("hair",{hair:c.hairstyle})},selected:c.hairstyle===l,children:c.hairstyle},c.hairstyle)})})},s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.facial_hair_style,i=a.facial_hair_styles;return(0,e.jsx)(t.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:i.map(function(c){return(0,e.jsx)(t.$n,{onClick:function(){return d("facial_hair",{facial_hair:c.facialhairstyle})},selected:c.facialhairstyle===l,children:c.facialhairstyle},c.facialhairstyle)})})}},66779:function(O,u,n){"use strict";n.r(u),n.d(u,{AppearanceChanger:function(){return l},AppearanceChangerDefaultError:function(){return i}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),x=n(15581),g=n(31607),d=n(47565),a=n(70972),l=function(c){var f=(0,r.Oc)(),m=f.act,v=f.config,E=f.data,j=E.name,C=E.specimen,P=E.gender,M=E.gender_id,_=E.hair_style,S=E.facial_hair_style,T=E.ear_style,b=E.tail_style,L=E.wing_style,W=E.change_race,k=E.change_gender,$=E.change_eye_color,w=E.change_skin_tone,V=E.change_skin_color,F=E.change_hair_color,X=E.change_facial_hair_color,Z=E.change_hair,te=E.change_facial_hair,J=E.mapRef,Q=v.title,Y=[],G=$||w||V||F||X,ee=(0,e.jsx)(s.az,{});Y[-1]=(0,e.jsx)(i,{}),Y[0]=W?(0,e.jsx)(g.AppearanceChangerSpecies,{}):(0,e.jsx)(i,{}),Y[1]=k?(0,e.jsx)(g.AppearanceChangerGender,{}):(0,e.jsx)(i,{}),Y[2]=G?(0,e.jsx)(d.AppearanceChangerColors,{}):(0,e.jsx)(i,{}),Y[3]=Z?(0,e.jsx)(a.AppearanceChangerHair,{}):(0,e.jsx)(i,{}),Y[4]=te?(0,e.jsx)(a.AppearanceChangerFacialHair,{}):(0,e.jsx)(i,{}),Y[5]=Z?(0,e.jsx)(g.AppearanceChangerEars,{}):(0,e.jsx)(i,{}),Y[6]=Z?(0,e.jsx)(g.AppearanceChangerTails,{}):(0,e.jsx)(i,{}),Y[7]=Z?(0,e.jsx)(g.AppearanceChangerWings,{}):(0,e.jsx)(i,{}),Y[8]=Z?(0,e.jsx)(d.AppearanceChangerMarkings,{}):(0,e.jsx)(i,{});var le=-1;W?le=0:k?le=1:G?le=2:Z?le=4:te&&(le=5);var ie=(0,t.useState)(le),de=ie[0],ve=ie[1];return(0,e.jsx)(x.p8,{width:700,height:650,title:(0,o.jT)(Q),children:(0,e.jsxs)(x.p8.Content,{children:[(0,e.jsx)(s.wn,{title:"Reflection",children:(0,e.jsxs)(s.so,{children:[(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Name",children:j}),(0,e.jsx)(s.Ki.Item,{label:"Species",color:W?void 0:"grey",children:C}),(0,e.jsx)(s.Ki.Item,{label:"Biological Sex",color:k?void 0:"grey",children:P?(0,o.ZH)(P):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Gender Identity",color:G?void 0:"grey",children:M?(0,o.ZH)(M):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Hair Style",color:Z?void 0:"grey",children:_?(0,o.ZH)(_):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Facial Hair Style",color:te?void 0:"grey",children:S?(0,o.ZH)(S):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Ear Style",color:Z?void 0:"grey",children:T?(0,o.ZH)(T):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Tail Style",color:Z?void 0:"grey",children:b?(0,o.ZH)(b):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Wing Style",color:Z?void 0:"grey",children:L?(0,o.ZH)(L):"Not Set"})]})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.D1,{style:{width:"256px",height:"256px"},params:{id:J,type:"map"}})})]})}),(0,e.jsxs)(s.tU,{children:[W?(0,e.jsx)(s.tU.Tab,{selected:de===0,onClick:function(){return ve(0)},children:"Race"}):null,k?(0,e.jsx)(s.tU.Tab,{selected:de===1,onClick:function(){return ve(1)},children:"Gender & Sex"}):null,G?(0,e.jsx)(s.tU.Tab,{selected:de===2,onClick:function(){return ve(2)},children:"Colors"}):null,Z?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.tU.Tab,{selected:de===3,onClick:function(){return ve(3)},children:"Hair"}),(0,e.jsx)(s.tU.Tab,{selected:de===5,onClick:function(){return ve(5)},children:"Ear"}),(0,e.jsx)(s.tU.Tab,{selected:de===6,onClick:function(){return ve(6)},children:"Tail"}),(0,e.jsx)(s.tU.Tab,{selected:de===7,onClick:function(){return ve(7)},children:"Wing"}),(0,e.jsx)(s.tU.Tab,{selected:de===8,onClick:function(){return ve(8)},children:"Markings"})]}):null,te?(0,e.jsx)(s.tU.Tab,{selected:de===4,onClick:function(){return ve(4)},children:"Facial Hair"}):null]}),(0,e.jsx)(s.az,{height:"43%",children:Y[de]})]})})},i=function(c){return(0,e.jsx)(s.az,{textColor:"red",children:"Disabled"})}},44212:function(O,u,n){"use strict";n.r(u)},8910:function(O,u,n){"use strict";n.r(u),n.d(u,{ArcadeBattle:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.temp,i=a.enemyAction,c=a.enemyName,f=a.playerHP,m=a.playerMP,v=a.enemyHP,E=a.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:c,textAlign:"center",children:[(0,e.jsxs)(t.wn,{color:"label",children:[(0,e.jsx)(t.az,{children:l}),(0,e.jsx)(t.az,{children:!E&&i})]}),(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(t.z2,{value:f,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[f,"HP"]})}),(0,e.jsx)(t.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(t.z2,{value:m,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[m,"MP"]})})]})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(t.z2,{value:v,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[v,"HP"]})})})})]}),E&&(0,e.jsx)(t.$n,{fluid:!0,mt:1,color:"green",onClick:function(){return d("newgame")},children:"New Game"})||(0,e.jsxs)(t.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return d("attack")},children:"Attack!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return d("heal")},children:"Heal!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return d("charge")},children:"Recharge!"})})]})]})})})}},61968:function(O,u,n){"use strict";n.r(u),n.d(u,{AreaScrubberControl:function(){return g}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),x=n(15581),g=function(a){var l=(0,r.Oc)(),i=l.act,c=l.data,f=(0,t.useState)(!1),m=f[0],v=f[1],E=c.scrubbers;return E?(0,e.jsx)(x.p8,{width:600,height:400,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsxs)(s.wn,{children:[(0,e.jsxs)(s.so,{wrap:"wrap",children:[(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"search",onClick:function(){return i("scan")},children:"Scan"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"layer-group",selected:m,onClick:function(){return v(!m)},children:"Show Areas"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",onClick:function(){return i("allon")},children:"All On"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",onClick:function(){return i("alloff")},children:"All Off"})})]}),(0,e.jsx)(s.so,{wrap:"wrap",children:E.map(function(j){return(0,e.jsx)(s.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(d,{scrubber:j,showArea:m})},j.id)})})]})})}):(0,e.jsxs)(s.wn,{title:"Error",children:[(0,e.jsx)(s.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(s.$n,{fluid:!0,icon:"search",onClick:function(){return i("scan")},children:"Scan"})]})},d=function(a){var l=(0,r.Oc)().act,i=a.scrubber,c=a.showArea;return(0,e.jsxs)(s.wn,{title:i.name,children:[(0,e.jsx)(s.$n,{fluid:!0,icon:"power-off",selected:i.on,onClick:function(){return l("toggle",{id:i.id})},children:i.on?"Enabled":"Disabled"}),(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Pressure",children:[i.pressure," kPa"]}),(0,e.jsxs)(s.Ki.Item,{label:"Flow Rate",children:[i.flow_rate," L/s"]}),(0,e.jsxs)(s.Ki.Item,{label:"Load",children:[i.load," W"]}),c&&(0,e.jsx)(s.Ki.Item,{label:"Area",children:(0,o.Sn)(i.area)})]})]})}},29615:function(O,u,n){"use strict";n.r(u),n.d(u,{AssemblyInfrared:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,i=a.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Infrared Unit",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Laser",children:(0,e.jsx)(t.$n,{icon:"power-off",fluid:!0,selected:l,onClick:function(){return d("state")},children:l?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Visibility",children:(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,selected:i,onClick:function(){return d("visible")},children:i?"Able to be seen":"Invisible"})})]})})})})}},95027:function(O,u,n){"use strict";n.r(u),n.d(u,{AssemblyProx:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.timing,f=i.time,m=i.range,v=i.maxRange,E=i.scanning;return(0,e.jsx)(x.p8,{children:(0,e.jsxs)(x.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:c,onClick:function(){return l("timing")},children:c?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,step:1,value:f,minValue:0,maxValue:600,format:function(j){return(0,s.fU)((0,o.LI)(j*10,0))},onDrag:function(j){return l("set_time",{time:j})}})})})}),(0,e.jsx)(r.wn,{title:"Prox Unit",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Range",children:(0,e.jsx)(r.Q7,{step:1,minValue:1,value:m,maxValue:v,onDrag:function(j){return l("range",{range:j})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:E?"lock":"lock-open",selected:E,onClick:function(){return l("scanning")},children:E?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},18721:function(O,u,n){"use strict";n.r(u),n.d(u,{AssemblyTimer:function(){return d}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=n(46836),d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.timing,m=c.time;return(0,e.jsx)(x.p8,{children:(0,e.jsx)(x.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:f,onClick:function(){return i("timing")},children:f?"Counting Down":"Disabled"}),children:(0,e.jsx)(g.NumberInputModal,{animated:!0,fluid:!0,step:1,value:m,minValue:0,maxValue:600,format:function(v){return(0,s.fU)((0,o.LI)(v*10,0))},onDrag:function(v){return i("set_time",{time:v})}})})})})})})}},16561:function(O,u,n){"use strict";n.r(u),n.d(u,{AtmosAlertConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.priority_alarms,i=l===void 0?[]:l,c=a.minor_alarms,f=c===void 0?[]:c;return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[i.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),i.map(function(m){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"bad",onClick:function(){return d("clear",{ref:m.ref})},children:m.name})},m.name)}),f.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),f.map(function(m){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"average",onClick:function(){return d("clear",{ref:m.ref})},children:m.name})},m.name)})]})})})})}},74737:function(O,u,n){"use strict";n.r(u),n.d(u,{AtmosControl:function(){return g},AtmosControlContent:function(){return d}});var e=n(20462),o=n(7402),t=n(61358),r=n(7081),s=n(88569),x=n(15581),g=function(a){return(0,e.jsx)(x.p8,{width:600,height:440,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var l=(0,r.Oc)(),i=l.act,c=l.data,f=l.config,m=(0,o.Ul)(c.alarms||[],function(S){return S.name}),v=(0,t.useState)(0),E=v[0],j=v[1],C=(0,t.useState)(1),P=C[0],M=C[1],_;return E===0?_=(0,e.jsx)(s.wn,{title:"Alarms",children:m.map(function(S){return(0,e.jsx)(s.$n,{color:S.danger===2?"bad":S.danger===1?"average":"",onClick:function(){return i("alarm",{alarm:S.ref})},children:S.name},S.name)})}):E===1&&(_=(0,e.jsx)(s.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(s.tx,{zoomScale:c.zoomScale,onZoom:function(S){return M(S)},children:m.filter(function(S){return~~S.z===~~f.mapZLevel}).map(function(S){return(0,e.jsx)(s.tx.Marker,{x:S.x,y:S.y,zoom:P,icon:"bell",tooltip:S.name,color:S.danger?"red":"green",onClick:function(){return i("alarm",{alarm:S.ref})}},S.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.tU,{children:[(0,e.jsxs)(s.tU.Tab,{selected:E===0,onClick:function(){return j(0)},children:[(0,e.jsx)(s.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(s.tU.Tab,{selected:E===1,onClick:function(){return j(1)},children:[(0,e.jsx)(s.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(s.az,{m:2,children:_})]})}},13238:function(O,u,n){"use strict";n.r(u),n.d(u,{AtmosFilter:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,i=a.rate,c=a.max_rate,f=a.last_flow_rate,m=a.filter_types,v=m===void 0?[]:m;return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:l?"power-off":"times",selected:l,onClick:function(){return d("power")},children:l?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(t.az,{inline:!0,mr:1,children:(0,e.jsx)(t.zv,{value:f,format:function(E){return E+" L/s"}})}),(0,e.jsx)(t.Q7,{animated:!0,step:1,value:i,width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(E){return d("rate",{rate:E})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:i===c,onClick:function(){return d("rate",{rate:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Item,{label:"Filter",children:v.map(function(E){return(0,e.jsx)(t.$n,{selected:E.selected,onClick:function(){return d("filter",{filterset:E.f_type})},children:E.name},E.name)})})]})})})})}},68541:function(O,u,n){"use strict";n.r(u),n.d(u,{AtmosMixer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,i=a.set_pressure,c=a.max_pressure,f=a.node1_concentration,m=a.node2_concentration,v=a.node1_dir,E=a.node2_dir;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:l?"power-off":"times",selected:l,onClick:function(){return d("power")},children:l?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.Q7,{animated:!0,value:i,unit:"kPa",width:"75px",minValue:0,maxValue:c,step:10,onChange:function(j){return d("pressure",{pressure:j})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:i===c,onClick:function(){return d("pressure",{pressure:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Divider,{size:1}),(0,e.jsx)(t.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(t.Ki.Item,{label:"Node 1 ("+v+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:f,unit:"%",width:"60px",step:1,minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(j){return d("node1",{concentration:j})}})}),(0,e.jsx)(t.Ki.Item,{label:"Node 2 ("+E+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:m,unit:"%",width:"60px",step:1,minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(j){return d("node2",{concentration:j})}})})]})})})})}},43855:function(O,u,n){"use strict";n.r(u),n.d(u,{Autolathe:function(){return m}});var e=n(20462),o=n(7402),t=n(15813),r=n(61282),s=n(7081),x=n(88569),g=n(15581),d=n(2858);function a(v,E){(E==null||E>v.length)&&(E=v.length);for(var j=0,C=new Array(E);j=v.length?{done:!0}:{done:!1,value:v[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f=function(v,E,j){var C=function(){var T=_.value,b=E.find(function(L){return L.name===T});if(!b)return"continue";if(b.amount=0)&&(j[P]=v[P]);return j}var a={Alphabetical:function(v,E){return v.name>E.name},"By availability":function(v,E){return-(v.affordable-E.affordable)},"By price":function(v,E){return v.price-E.price}},l=function(v){var E=function(J){k(J)},j=function(J){V(J)},C=function(J){Z(J)},P=(0,r.Oc)(),M=P.act,_=P.data,S=_.processing,T=_.points,b=_.beaker,L=(0,t.useState)(""),W=L[0],k=L[1],$=(0,t.useState)("Alphabetical"),w=$[0],V=$[1],F=(0,t.useState)(!1),X=F[0],Z=F[1];return(0,e.jsx)(x.p8,{width:400,height:450,children:(0,e.jsx)(x.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:S&&(0,e.jsx)(s.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.wn,{children:[T," points available.",(0,e.jsx)(s.$n,{ml:1,icon:"blender",onClick:function(){return M("activate")},children:"Activate"}),(0,e.jsx)(s.$n,{ml:1,icon:"eject",disabled:!b,onClick:function(){return M("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(c,{searchText:W,sortOrder:w,descending:X,onSearchText:E,onSortOrder:j,onDescending:C}),(0,e.jsx)(i,{searchText:W,sortOrder:w,descending:X})]})})})},i=function(v){var E=(0,r.Oc)(),j=E.act,C=E.data,P=C.points,M=C.items,_=M===void 0?[]:M,S=C.build_eff,T=C.beaker,b=(0,o.XZ)(v.searchText,function(k){return k[0]}),L=!1,W=Object.entries(_).map(function(k){var $=Object.entries(k[1]).filter(b).map(function(w){return w[1].affordable=+(P>=w[1].price/S),w[1]}).sort(a[v.sortOrder]);if($.length!==0)return v.descending&&($=$.reverse()),L=!0,(0,e.jsx)(m,{title:k[0],items:$,build_eff:S,beaker:T},k[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:L?W:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(v){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:v.searchText,width:"100%",onInput:function(E,j){return v.onSearchText(j)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{autoScroll:!1,selected:v.sortOrder,options:Object.keys(a),width:"100%",lineHeight:"19px",onSelected:function(E){return v.onSortOrder(E)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:v.descending?"arrow-down":"arrow-up",height:"19px",tooltip:v.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return v.onDescending(!v.descending)}})})]})})},f=function(v,E){return!(!v.affordable||v.reagent&&!E)},m=function(v){var E=(0,r.Oc)(),j=E.act,C=E.data,P=v.title,M=v.items,_=v.build_eff,S=v.beaker,T=d(v,["title","items","build_eff","beaker"]);return(0,e.jsx)(s.Nt,g({open:!0,title:P},T,{children:M.map(function(b){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.jsx)(s.$n,{disabled:!f(b,S),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return j("purchase",{cat:P,name:b.name})},children:(b.price/_).toLocaleString("en-US")}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},b.name)})}))}},13469:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerBodyRecords:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act,g=s.bodyrecords;return(0,e.jsx)(t.wn,{title:"Body Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return x("menu",{menu:"Main"})},children:"Back"}),children:g?g.map(function(d){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return x("view_brec",{view_brec:d.recref})},children:d.name},d.name)}):""})}},17796:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerMain:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Database Functions",children:[(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return x("menu",{menu:"Body Records"})},children:"View Individual Body Records"}),(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return x("menu",{menu:"Stock Records"})},children:"View Stock Body Records"})]})}},24983:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerOOCNotes:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act,g=s.activeBodyRecord;return(0,e.jsx)(t.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return x("menu",{menu:"Specific Record"})},children:"Back"}),style:{wordBreak:"break-all"},children:g&&g.booc||"ERROR: Body record not found!"})}},31687:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerSpecificRecord:function(){return s}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(x){var g=(0,t.Oc)().act,d=x.activeBodyRecord,a=x.mapRef;return d?(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{basis:"165px",children:(0,e.jsx)(r.wn,{title:"Specific Record",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return g("menu",{menu:"Main"})},children:"Back"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:d.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:d.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return g("href_conversion",{target_href:"bio_gender",target_value:1})},children:(0,o.ZH)(d.gender)})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:d.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[d.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",disabled:!d.booc,onClick:function(){return g("boocnotes")},children:"View OOC Notes"})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:a,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return g("href_conversion",{target_href:"size_multiplier",target_value:1})},children:d.scale})}),Object.keys(d.styles).map(function(l){var i=d.styles[l];return(0,e.jsxs)(r.Ki.Item,{label:l,children:[i.styleHref?(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return g("href_conversion",{target_href:i.styleHref,target_value:1})},children:i.style}):"",i.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return g("href_conversion",{target_href:i.colorHref,target_value:1})},children:i.color}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:i.color,style:{border:"1px solid #fff"}})]}):"",i.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return g("href_conversion",{target_href:i.colorHref2,target_value:1})},children:i.color2}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:i.color2,style:{border:"1px solid #fff"}})]}):""]},l)}),(0,e.jsx)(r.Ki.Item,{label:"Digitigrade",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return g("href_conversion",{target_href:"digitigrade",target_value:1})},children:d.digitigrade?"Yes":"No"})}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return g("href_conversion",{target_href:"marking_style",target_value:1})},children:"Add Marking"}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(d.markings).map(function(l){var i=d.markings[l];return(0,e.jsx)(r.so.Item,{basis:"100%",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return g("href_conversion",{target_href:"marking_remove",target_value:l})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:i,onClick:function(){return g("href_conversion",{target_href:"marking_color",target_value:l})},children:l})})]})},l)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})}},99123:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerStockRecords:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act,g=s.stock_bodyrecords;return(0,e.jsx)(t.wn,{title:"Stock Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return x("menu",{menu:"Main"})},children:"Back"}),children:g.map(function(d){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return x("view_stock_brec",{view_stock_brec:d})},children:d},d)})})}},87706:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyDesigner:function(){return l}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(13469),x=n(17796),g=n(24983),d=n(31687),a=n(99123),l=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.menu,E=m.disk,j=m.diskStored,C=m.activeBodyRecord,P=m.stock_bodyrecords,M=m.bodyrecords,_=m.mapRef,S={Main:(0,e.jsx)(x.BodyDesignerMain,{}),"Body Records":(0,e.jsx)(s.BodyDesignerBodyRecords,{bodyrecords:M}),"Stock Records":(0,e.jsx)(a.BodyDesignerStockRecords,{stock_bodyrecords:P}),"Specific Record":(0,e.jsx)(d.BodyDesignerSpecificRecord,{activeBodyRecord:C,mapRef:_}),"OOC Notes":(0,e.jsx)(g.BodyDesignerOOCNotes,{activeBodyRecord:C})},T=S[v];return(0,e.jsx)(r.p8,{width:400,height:650,children:(0,e.jsxs)(r.p8.Content,{children:[E?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return f("savetodisk")},disabled:!C,children:"Save To Disk"}),(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return f("loadfromdisk")},disabled:!j,children:"Load From Disk"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return f("ejectdisk")},children:"Eject"})]}):"",T]})})}},25375:function(O,u,n){"use strict";n.r(u)},85168:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyScannerEmpty:function(){return t}});var e=n(20462),o=n(88569),t=function(){return(0,e.jsx)(o.wn,{textAlign:"center",flexGrow:!0,children:(0,e.jsx)(o.so,{height:"100%",children:(0,e.jsxs)(o.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(o.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},43780:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMain:function(){return a}});var e=n(20462),o=n(88569),t=n(49354),r=n(53187),s=n(81417),x=n(32915),g=n(73457),d=n(70765),a=function(l){var i=l.occupant;return(0,e.jsxs)(o.az,{children:[(0,e.jsx)(s.BodyScannerMainOccupant,{occupant:i}),(0,e.jsx)(d.BodyScannerMainReagents,{occupant:i}),(0,e.jsx)(t.BodyScannerMainAbnormalities,{occupant:i}),(0,e.jsx)(r.BodyScannerMainDamage,{occupant:i}),(0,e.jsx)(x.BodyScannerMainOrgansExternal,{organs:i.extOrgan}),(0,e.jsx)(g.BodyScannerMainOrgansInternal,{organs:i.intOrgan})]})}},49354:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainAbnormalities:function(){return r}});var e=n(20462),o=n(88569),t=n(47710),r=function(s){var x=s.occupant,g=x.hasBorer||x.blind||x.colourblind||x.nearsighted||x.hasVirus||x.husked;return g=g||x.humanPrey||x.livingPrey||x.objectPrey,g?(0,e.jsx)(o.wn,{title:"Abnormalities",children:t.abnormalities.map(function(d,a){if(x[d[0]])return(0,e.jsx)(o.az,{color:d[1],bold:d[1]==="bad",children:d[2](x)},a)})}):(0,e.jsx)(o.wn,{title:"Abnormalities",children:(0,e.jsx)(o.az,{color:"label",children:"No abnormalities found."})})}},53187:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainDamage:function(){return x}});var e=n(20462),o=n(4089),t=n(88569),r=n(47710),s=n(65518),x=function(d){var a=d.occupant;return(0,e.jsx)(t.wn,{title:"Damage",children:(0,e.jsx)(t.XI,{children:(0,s.mapTwoByTwo)(r.damages,function(l,i,c){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI.Row,{color:"label",children:[(0,e.jsxs)(t.XI.Cell,{children:[l[0],":"]}),(0,e.jsx)(t.XI.Cell,{children:!!i&&i[0]+":"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(g,{value:a[l[1]],marginBottom:c0&&"0.5rem",value:a.totalLoss/100,ranges:r.damageRange,children:[(0,e.jsxs)(t.az,{style:{float:"left"},inline:!0,children:[!!a.bruteLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"bone"}),(0,o.Mg)(a.bruteLoss),"\xA0",(0,e.jsx)(t.m_,{position:"top",content:"Brute damage"})]}),!!a.fireLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"fire"}),(0,o.Mg)(a.fireLoss),(0,e.jsx)(t.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(t.az,{inline:!0,children:(0,o.Mg)(a.totalLoss)})]})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,s.reduceOrganStatus)([a.internalBleeding&&"Internal bleeding",!!a.status.bleeding&&"External bleeding",a.lungRuptured&&"Ruptured lung",a.status.destroyed&&"Destroyed",!!a.status.broken&&a.status.broken,(0,s.germStatus)(a.germ_level),!!a.open&&"Open incision"])}),(0,e.jsxs)(t.az,{inline:!0,children:[(0,s.reduceOrganStatus)([!!a.status.splinted&&"Splinted",!!a.status.robotic&&"Robotic",!!a.status.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})]),(0,s.reduceOrganStatus)(a.implants.map(function(i){return i.known?i.name:"Unknown object"}))]})]})]},l)})]})})}},73457:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainOrgansInternal:function(){return x}});var e=n(20462),o=n(4089),t=n(88569),r=n(47710),s=n(65518),x=function(g){var d=g.organs;return d.length===0?(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsx)(t.az,{color:"label",children:"N/A"})}):(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(t.XI.Cell,{textAlign:"right",children:"Injuries"})]}),d.map(function(a,l){return(0,e.jsxs)(t.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(t.XI.Cell,{width:"33%",children:a.name}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:a.maxHealth/100,value:a.damage/100,mt:l>0&&"0.5rem",ranges:r.damageRange,children:(0,o.Mg)(a.damage)})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,s.reduceOrganStatus)([(0,s.germStatus)(a.germ_level),!!a.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(t.az,{inline:!0,children:(0,s.reduceOrganStatus)([a.robotic===1&&"Robotic",a.robotic===2&&"Assisted",!!a.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})])})]})]},l)})]})})}},70765:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainReagents:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var s=r.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Blood Reagents",children:s.reagents?(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Reagent"}),(0,e.jsx)(o.XI.Cell,{textAlign:"right",children:"Amount"})]}),s.reagents.map(function(x){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{children:x.name}),(0,e.jsxs)(o.XI.Cell,{textAlign:"right",children:[x.amount," Units"," ",x.overdose?(0,e.jsx)(o.az,{color:"bad",children:"OVERDOSING"}):null]})]},x.name)})]}):(0,e.jsx)(o.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(o.wn,{title:"Stomach Reagents",children:s.ingested?(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Reagent"}),(0,e.jsx)(o.XI.Cell,{textAlign:"right",children:"Amount"})]}),s.ingested.map(function(x){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{children:x.name}),(0,e.jsxs)(o.XI.Cell,{textAlign:"right",children:[x.amount," Units"," ",x.overdose?(0,e.jsx)(o.az,{color:"bad",children:"OVERDOSING"}):null]})]},x.name)})]}):(0,e.jsx)(o.az,{color:"good",children:"No Stomach Reagents Detected"})})]})}},47710:function(O,u,n){"use strict";n.r(u),n.d(u,{abnormalities:function(){return o},damageRange:function(){return r},damages:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["hasBorer","bad",function(s){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(s){return"Viral pathogen detected in blood stream."}],["blind","average",function(s){return"Cataracts detected."}],["colourblind","average",function(s){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(s){return"Retinal misalignment detected."}],["humanPrey","average",function(s){return"Foreign Humanoid(s) detected: "+s.humanPrey}],["livingPrey","average",function(s){return"Foreign Creature(s) detected: "+s.livingPrey}],["objectPrey","average",function(s){return"Foreign Object(s) detected: "+s.objectPrey}],["husked","bad",function(s){return"Anatomical structure lost, resuscitation not possible!"}]],t=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],r={average:[.25,.5],bad:[.5,1/0]}},65518:function(O,u,n){"use strict";n.r(u),n.d(u,{germStatus:function(){return s},mapTwoByTwo:function(){return t},reduceOrganStatus:function(){return r}});var e=n(20462),o=n(88569);function t(x,g){for(var d=[],a=0;a0?x.reduce(function(g,d){return g===null?d:(0,e.jsxs)(e.Fragment,{children:[g,!!d&&(0,e.jsx)(o.az,{children:d})]})}):null}function s(x){if(x>100){if(x<300)return"mild infection";if(x<400)return"mild infection+";if(x<500)return"mild infection++";if(x<700)return"acute infection";if(x<800)return"acute infection+";if(x<900)return"acute infection++";if(x>=900)return"septic"}return""}},9665:function(O,u,n){"use strict";n.r(u),n.d(u,{BodyScanner:function(){return x}});var e=n(20462),o=n(7081),t=n(15581),r=n(85168),s=n(43780),x=function(g){var d=(0,o.Oc)().data,a=d.occupied,l=d.occupant,i=l===void 0?{}:l,c=a?(0,e.jsx)(s.BodyScannerMain,{occupant:i}):(0,e.jsx)(r.BodyScannerEmpty,{});return(0,e.jsx)(t.p8,{width:690,height:600,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:c})})}},78006:function(O,u,n){"use strict";n.r(u)},11265:function(O,u,n){"use strict";n.r(u),n.d(u,{BombTester:function(){return a}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581);function x(){return x=Object.assign||function(i){for(var c=1;c.5,M=Math.random()>.5;return v.state={x:P?E:0,y:M?j:0,reverseX:!1,reverseY:!1},v.process=setInterval(function(){v.setState(function(_){var S=x({},_);return S.reverseX?S.x-C<-5?(S.reverseX=!1,S.x+=C):S.x-=C:S.x+C>E?(S.reverseX=!0,S.x-=C):S.x+=C,S.reverseY?S.y-C<-20?(S.reverseY=!1,S.y+=C):S.y-=C:S.y+C>j?(S.reverseY=!0,S.y-=C):S.y+=C,S})},1),v}var f=c.prototype;return f.componentWillUnmount=function(){clearInterval(this.process)},f.render=function(){var v=this.state,E=v.x,j=v.y,C={position:"relative",left:E+"px",top:j+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:C,name:"bomb",size:10,color:"red"})})})},c}(o.Component)},5536:function(O,u,n){"use strict";n.r(u),n.d(u,{BotanyEditor:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.activity,i=a.degradation,c=a.disk,f=a.sourceName,m=a.locus,v=a.loaded;return l?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:c&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:f}),(0,e.jsxs)(t.Ki.Item,{label:"Gene Decay",children:[i,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Locus",children:m})]}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return d("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:v&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:v})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return d("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return d("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},68734:function(O,u,n){"use strict";n.r(u),n.d(u,{BotanyIsolator:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.geneMasks,i=a.activity,c=a.degradation,f=a.disk,m=a.loaded,v=a.hasGenetics,E=a.sourceName;return i?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:v&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Gene decay",children:[c,"%"]}),f&&l.length&&l.map(function(j){return(0,e.jsx)(t.Ki.Item,{label:j.mask,children:(0,e.jsx)(t.$n,{mb:-1,icon:"download",onClick:function(){return d("get_gene",{get_gene:j.tag})},children:"Extract"})},j.mask)})||null]}),f&&(0,e.jsxs)(t.az,{mt:1,children:[(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return d("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.IC,{warning:!0,children:"No Data Buffered."}),f&&(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:m&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Packet Loaded",children:m})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return d("scan_genome")},children:"Process Genome"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No packet loaded."})})]})})}},46141:function(O,u,n){"use strict";n.r(u),n.d(u,{BrigTimer:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.time_left,f=i.max_time_left,m=i.timing,v=i.flash_found,E=i.flash_charging,j=i.preset_short,C=i.preset_medium,P=i.preset_long;return(0,e.jsx)(x.p8,{width:400,height:138,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"clock-o",selected:m,onClick:function(){return l(m?"stop":"start")},children:m?"Stop":"Start"}),v&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",disabled:E,onClick:function(){return l("flash")},children:E?"Recharging":"Flash"})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,step:1,value:c/10,minValue:0,maxValue:f/10,format:function(M){return(0,s.fU)((0,o.LI)(M*10,0))},onDrag:function(M){return l("time",{time:M})}}),(0,e.jsxs)(r.so,{mt:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return l("preset",{preset:"short"})},children:"Add "+(0,s.fU)(j)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return l("preset",{preset:"medium"})},children:"Add "+(0,s.fU)(C)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return l("preset",{preset:"long"})},children:"Add "+(0,s.fU)(P)})})]})]})})})}},18490:function(O,u,n){"use strict";n.r(u),n.d(u,{CameraConsole:function(){return f},CameraConsoleContent:function(){return m},prevNextCamera:function(){return l},selectCameras:function(){return c}});var e=n(20462),o=n(7402),t=n(15813),r=n(65380),s=n(61282),x=n(61358),g=n(7081),d=n(88569),a=n(15581),l=function(v,E){var j,C;if(!E)return[];var P=v.findIndex(function(M){return M.name===E.name});return[(j=v[P-1])==null?void 0:j.name,(C=v[P+1])==null?void 0:C.name]};function i(v){return v!=null}var c=function(v,E,j){E===void 0&&(E=""),j===void 0&&(j="");var C=(0,s.XZ)(E,function(P){return P.name});return(0,t.L)([function(P){return(0,o.pb)(P,function(M){return i(M==null?void 0:M.name)})},function(P){return E?(0,o.pb)(P,C):P},function(P){return j?(0,o.pb)(P,function(M){return M.networks.includes(j)}):P},function(P){return(0,o.Ul)(P,function(M){return M.name})}])(v)},f=function(v){var E=(0,g.Oc)(),j=E.act,C=E.data,P=C.mapRef,M=C.activeCamera,_=C.cameras,S=c(_),T=l(S,M),b=T[0],L=T[1];return(0,e.jsxs)(a.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),M&&M.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(d.$n,{icon:"chevron-left",disabled:!b,onClick:function(){return j("switch_camera",{name:b})}}),(0,e.jsx)(d.$n,{icon:"chevron-right",disabled:!L,onClick:function(){return j("switch_camera",{name:L})}}),"| PAN:",(0,e.jsx)(d.$n,{icon:"chevron-left",onClick:function(){return j("pan",{dir:8})}}),(0,e.jsx)(d.$n,{icon:"chevron-up",onClick:function(){return j("pan",{dir:1})}}),(0,e.jsx)(d.$n,{icon:"chevron-right",onClick:function(){return j("pan",{dir:4})}}),(0,e.jsx)(d.$n,{icon:"chevron-down",onClick:function(){return j("pan",{dir:2})}})]}),(0,e.jsx)(d.D1,{className:"CameraConsole__map",params:{id:P,type:"map"}})]})]})},m=function(v){var E=(0,g.Oc)(),j=E.act,C=E.data,P=(0,x.useState)(""),M=P[0],_=P[1],S=(0,x.useState)(""),T=S[0],b=S[1],L=C.activeCamera,W=C.allNetworks,k=C.cameras;W.sort();var $=c(k,M,T);return(0,e.jsxs)(d.so,{direction:"column",height:"100%",children:[(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(w,V){return _(V)}})}),(0,e.jsx)(d.so.Item,{children:(0,e.jsxs)(d.so,{children:[(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.ms,{autoScroll:!1,mb:1,width:T?"155px":"177px",selected:T,displayText:T||"No Filter",options:W,onSelected:function(w){return b(w)}})}),T?(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){b("")}})}):""]})}),(0,e.jsx)(d.so.Item,{height:"100%",children:(0,e.jsx)(d.wn,{fill:!0,scrollable:!0,children:$.map(function(w){return(0,e.jsx)("div",{title:w.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",L&&w.name===L.name&&"Button--selected"]),onClick:function(){return j("switch_camera",{name:w.name})},children:w.name},w.name)})})})]})}},82195:function(O,u,n){"use strict";n.r(u),n.d(u,{Canister:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.connected,f=i.can_relabel,m=i.pressure,v=i.releasePressure,E=i.defaultReleasePressure,j=i.minReleasePressure,C=i.maxReleasePressure,P=i.valveOpen,M=i.holding;return(0,e.jsx)(x.p8,{width:360,height:242,children:(0,e.jsxs)(x.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!f,onClick:function(){return l("relabel")},children:"Relabel"}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:m,format:function(_){return _<1e4?(0,o.Mg)(_)+" kPa":(0,s.QL)(_*1e3,1,"Pa")}})}),(0,e.jsx)(r.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(r.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.N6,{width:"60px",size:1.25,color:!!P&&"yellow",value:v,unit:"kPa",minValue:j,maxValue:C,stepPixelSize:1,onDrag:function(_,S){return l("pressure",{pressure:S})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return l("pressure",{pressure:C})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return l("pressure",{pressure:E})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:P?M?"caution":"danger":null,onClick:function(){return l("valve")},children:P?"Open":"Closed"})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name:c?"plug":"times",color:c?"good":"bad"}),(0,e.jsx)(r.m_,{content:c?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!M&&(0,e.jsx)(r.$n,{icon:"eject",color:P&&"danger",onClick:function(){return l("eject")},children:"Eject"}),children:[!!M&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:M.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:M.pressure})," kPa"]})]}),!M&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},64808:function(O,u,n){"use strict";n.r(u),n.d(u,{Canvas:function(){return f}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581);function x(){return x=Object.assign||function(m){for(var v=1;v=0)&&(E[C]=m[C]);return E}function a(m,v){return a=Object.setPrototypeOf||function(j,C){return j.__proto__=C,j},a(m,v)}var l=24,i=function(m){"use strict";g(v,m);function v(j){var C;return C=m.call(this,j)||this,C.canvasRef=(0,o.createRef)(),C.onCVClick=j.onCanvasClick,C}var E=v.prototype;return E.componentDidMount=function(){this.drawCanvas(this.props)},E.componentDidUpdate=function(){this.drawCanvas(this.props)},E.drawCanvas=function(C){var P=this.canvasRef.current,M=P.getContext("2d"),_=C.value;if(_){var S=_.length;if(S){var T=_[0].length,b=Math.round(P.width/S),L=Math.round(P.height/T);M.save(),M.scale(b,L);for(var W=0;W<_.length;W++)for(var k=_[W],$=0;$=0)&&(E[C]=m[C]);return E}var a={Alphabetical:function(m,v){return m.name>v.name},"By price":function(m,v){return m.price-v.price}},l=function(){var m=function(k){P(k)},v=function(k){S(k)},E=function(k){L(k)},j=(0,t.useState)(""),C=j[0],P=j[1],M=(0,t.useState)("Alphabetical"),_=M[0],S=M[1],T=(0,t.useState)(!1),b=T[0],L=T[1];return(0,e.jsx)(x.p8,{width:400,height:450,children:(0,e.jsx)(x.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i,{sortOrder:_,descending:b,onSearchText:m,onSortOrder:v,onDescending:E}),(0,e.jsx)(c,{searchText:C,sortOrder:_,descending:b})]})})})},i=function(m){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(v,E){return m.onSearchText(E)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{autoScroll:!1,selected:m.sortOrder,options:Object.keys(a),width:"100%",lineHeight:"19px",onSelected:function(v){return m.onSortOrder(v)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:m.descending?"arrow-down":"arrow-up",height:"19px",tooltip:m.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m.onDescending(!m.descending)}})})]})})},c=function(m){var v=(0,r.Oc)(),E=v.act,j=v.data,C=j.items,P=(0,o.XZ)(m.searchText,function(S){return S[0]}),M=!1,_=Object.entries(C).map(function(S){var T=Object.entries(S[1]).filter(P).map(function(b){return b[1]}).sort(a[m.sortOrder]);if(T.length!==0)return m.descending&&(T=T.reverse()),M=!0,(0,e.jsx)(f,{title:S[0],items:T},S[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:M?_:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(m){var v=(0,r.Oc)().act,E=m.title,j=m.items,C=d(m,["title","items"]);return(0,e.jsx)(s.Nt,g({open:!0,title:E},C,{children:j.map(function(P){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:P.name}),(0,e.jsx)(s.$n,{width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return v("purchase",{cat:E,name:P.name,price:P.price,restriction:P.restriction})},children:P.price.toLocaleString("en-US")}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},P.name)})}))}},43966:function(O,u,n){"use strict";n.r(u),n.d(u,{CharacterDirectory:function(){return g}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=function(i){switch(i){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},g=function(i){var c=function(W){_(W)},f=(0,t.Oc)(),m=f.act,v=f.data,E=v.personalVisibility,j=v.personalTag,C=v.personalErpTag,P=(0,o.useState)(null),M=P[0],_=P[1],S=(0,o.useState)(!1),T=S[0],b=S[1];return(0,e.jsx)(s.p8,{width:640,height:480,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:M&&(0,e.jsx)(d,{overlay:M,onOverlay:c})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:T?"toggle-on":"toggle-off",selected:T,onClick:function(){return b(!T)},children:T?"On":"Off"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("setVisible",{overwrite_prefs:T})},children:E?"Shown":"Not Shown"})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("setTag",{overwrite_prefs:T})},children:j})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("setErpTag",{overwrite_prefs:T})},children:C})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("editAd",{overwrite_prefs:T})},children:"Edit Ad"})})]})}),(0,e.jsx)(a,{onOverlay:c})]})})})},d=function(i){return(0,e.jsxs)(r.wn,{title:i.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return i.onOverlay(null)},children:"Back"}),children:[(0,e.jsx)(r.wn,{title:"Species",children:(0,e.jsx)(r.az,{children:i.overlay.species})}),(0,e.jsx)(r.wn,{title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:x(i.overlay.tag),children:i.overlay.tag})}),(0,e.jsx)(r.wn,{title:"ERP Tag",children:(0,e.jsx)(r.az,{children:i.overlay.erptag})}),(0,e.jsx)(r.wn,{title:"Character Ad",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:i.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:i.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:i.overlay.flavor_text||"Unset."})})]})},a=function(i){var c=function(L){M(L)},f=function(L){T(L)},m=(0,t.Oc)(),v=m.act,E=m.data,j=E.directory,C=(0,o.useState)("name"),P=C[0],M=C[1],_=(0,o.useState)("name"),S=_[0],T=_[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return v("refresh")},children:"Refresh"}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(l,{id:"name",sortId:P,sortOrder:S,onSortId:c,onSortOrder:f,children:"Name"}),(0,e.jsx)(l,{id:"species",sortId:P,sortOrder:S,onSortId:c,onSortOrder:f,children:"Species"}),(0,e.jsx)(l,{id:"tag",sortId:P,sortOrder:S,onSortId:c,onSortOrder:f,children:"Vore Tag"}),(0,e.jsx)(l,{id:"erptag",sortId:P,sortOrder:S,onSortId:c,onSortOrder:f,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),j.sort(function(b,L){var W=S?1:-1;return b[P].localeCompare(L[P])*W}).map(function(b,L){return(0,e.jsxs)(r.XI.Row,{backgroundColor:x(b.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:b.name}),(0,e.jsx)(r.XI.Cell,{children:b.species}),(0,e.jsx)(r.XI.Cell,{children:b.tag}),(0,e.jsx)(r.XI.Cell,{children:b.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return i.onOverlay(b)},color:"transparent",icon:"sticky-note",mr:1,children:"View"})})]},L)})]})})},l=function(i){var c=i.id,f=i.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:i.sortId!==c&&"transparent",onClick:function(){i.sortId===c?i.onSortOrder(!i.sortOrder):(i.onSortId(c),i.onSortOrder(!0))},children:[f,i.sortId===c&&(0,e.jsx)(r.In,{name:i.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},15559:function(O,u,n){"use strict";n.r(u),n.d(u,{CheckboxInput:function(){return l}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),x=n(19996),g=n(15581),d=n(5335),a=n(44149),l=function(i){var c=(0,r.Oc)().data,f=c.items,m=f===void 0?[]:f,v=c.min_checked,E=c.max_checked,j=c.message,C=c.timeout,P=c.title,M=(0,t.useState)([]),_=M[0],S=M[1],T=(0,t.useState)(""),b=T[0],L=T[1],W=(0,o.XZ)(b,function(w){return w}),k=m.filter(W),$=function(w){var V=_.includes(w)?_.filter(function(F){return F!==w}):[].concat(_,[w]);S(V)};return(0,e.jsxs)(g.p8,{title:P,width:425,height:300,children:[!!C&&(0,e.jsx)(a.Loader,{value:C}),(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.IC,{info:!0,textAlign:"center",children:[(0,o.jT)(j)," ",v>0&&" (Min: "+v+")",E<50&&" (Max: "+E+")"]})}),(0,e.jsx)(s.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(s.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(s.XI,{children:k.map(function(w,V){return(0,e.jsx)(x.Hj,{className:"candystripe",children:(0,e.jsx)(x.nA,{children:(0,e.jsx)(s.$n.Checkbox,{checked:_.includes(w),disabled:_.length>=E&&!_.includes(w),fluid:!0,onClick:function(){return $(w)},children:w})})},V)})})})}),(0,e.jsxs)(s.BJ,{m:1,mb:0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(s.In,{name:"search",mt:.5})})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.pd,{fluid:!0,value:b,onInput:function(w,V){return L(V)}})})]}),(0,e.jsx)(s.BJ.Item,{mt:.7,children:(0,e.jsx)(s.wn,{children:(0,e.jsx)(d.InputButtons,{input:_})})})]})})]})}},29361:function(O,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserBeaker:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(78924),s=n(58820),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.isBeakerLoaded,c=l.beakerCurrentVolume,f=l.beakerMaxVolume,m=l.beakerContents,v=m===void 0?[]:m,E=l.recipes,j=l.recordingRecipe,C=!!j,P=C&&j.map(function(M){return{id:M.id,name:M.id.replace(/_/," "),volume:M.amount}});return(0,e.jsx)(t.wn,{title:C?"Virtual Beaker":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.jsxs)(t.az,{children:[!!i&&(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[c," / ",f," units"]}),(0,e.jsx)(t.$n,{icon:"eject",disabled:!i,onClick:function(){return a("ejectBeaker")},children:"Eject"})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:P||i,beakerContents:P||v,buttons:function(M){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",disabled:C,onClick:function(){return a("remove",{reagent:M.id,amount:-1})},children:"Isolate"}),s.removeAmounts.map(function(_,S){return(0,e.jsx)(t.$n,{disabled:C,onClick:function(){return a("remove",{reagent:M.id,amount:_})},children:_},S)}),(0,e.jsx)(t.$n,{disabled:C,onClick:function(){return a("remove",{reagent:M.id,amount:M.volume})},children:"ALL"})]})}})})}},64776:function(O,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserChemicals:function(){return s}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=function(g){for(var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.chemicals,c=i===void 0?[]:i,f=[],m=0;m<(c.length+1)%3;m++)f.push(!0);return(0,e.jsx)(r.wn,{title:l.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:!0,buttons:(0,e.jsx)(x,{}),children:(0,e.jsxs)(r.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[c.map(function(v,E){return(0,e.jsx)(r.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(r.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",onClick:function(){return a("dispense",{reagent:v.id})},children:v.name+" ("+v.volume+")"})},E)}),f.map(function(v,E){return(0,e.jsx)(r.so.Item,{grow:"1",basis:"25%",height:"20px"},E)})]})})},x=function(g){var d=(0,t.Oc)().data,a=!!d.recordingRecipe,l=(0,o.useState)(!1),i=l[0],c=l[1];return(0,o.useEffect)(function(){if(a){var f=setInterval(function(){c(function(m){return!m})},1e3);return function(){return clearInterval(f)}}},[a]),a?(0,e.jsx)(r.m_,{content:"Recording in progress",children:(0,e.jsx)(r.In,{mt:.7,color:"bad",name:i?"circle-o":"circle"})}):null}},92090:function(O,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserRecipes:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.recipes,l=d.recordingRecipe,i=!!l,c=Object.keys(a).sort();return(0,e.jsxs)(t.wn,{title:"Recipes",fill:!0,scrollable:!0,buttons:(0,e.jsxs)(e.Fragment,{children:[!i&&(0,e.jsx)(t.$n,{icon:"circle",onClick:function(){return g("record_recipe")},children:"Record"}),i&&(0,e.jsx)(t.$n,{icon:"ban",color:"bad",onClick:function(){return g("cancel_recording")},children:"Discard"}),i&&(0,e.jsx)(t.$n,{icon:"save",color:"green",onClick:function(){return g("save_recording")},children:"Save"}),!i&&(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"trash",color:"bad",onClick:function(){return g("clear_recipes")},children:"Clear All"})]}),children:[i&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"green",fontSize:1.2,bold:!0,children:"Recording In Progress..."}),(0,e.jsxs)(t.az,{color:"label",children:["Press dispenser buttons in the order you wish for them to be repeated, then click"," ",(0,e.jsx)(t.az,{color:"good",inline:!0,children:"Save"}),"."]}),(0,e.jsxs)(t.az,{color:"average",mb:1,children:["Alternatively, if you mess up the recipe and want to discard this recording, click"," ",(0,e.jsx)(t.az,{color:"bad",inline:!0,children:"Discard"}),"."]})]}),c.length?c.map(function(f){return(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"flask",onClick:function(){return g("dispense_recipe",{recipe:f})},children:f})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"triangle-exclamation",confirmContent:"",color:"bad",onClick:function(){return g("remove_recipe",{recipe:f})}})})]},f)}):"No Recipes."]})}},38908:function(O,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserSettings:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(58820),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.amount;return(0,e.jsx)(t.wn,{title:"Settings",fill:!0,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:r.dispenseAmounts.map(function(i,c){return(0,e.jsx)(t.$n,{textAlign:"center",selected:l===i,m:"0",onClick:function(){return d("amount",{amount:i})},children:i+"u"},c)})}),(0,e.jsx)(t.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(t.Ap,{step:1,stepPixelSize:5,value:l,minValue:1,maxValue:120,onDrag:function(i,c){return d("amount",{amount:c})}})})]})})}},58820:function(O,u,n){"use strict";n.r(u),n.d(u,{dispenseAmounts:function(){return e},removeAmounts:function(){return o}});var e=[5,10,20,30,40,60],o=[1,5,10]},66119:function(O,u,n){"use strict";n.r(u),n.d(u,{ChemDispenser:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(29361),x=n(64776),g=n(92090),d=n(38908),a=function(l){var i=(0,o.Oc)().data;return(0,e.jsx)(r.p8,{width:680,height:540,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(d.ChemDispenserSettings,{})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(g.ChemDispenserRecipes,{})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(x.ChemDispenserChemicals,{})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(s.ChemDispenserBeaker,{})})]})})})}},9136:function(O,u,n){"use strict";n.r(u)},16028:function(O,u,n){"use strict";n.r(u),n.d(u,{analyzeModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=s.args.analysis;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:d.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a.name}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:(a.desc||"").length>0?a.desc:"N/A"}),a.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood type",children:a.blood_type}),(0,e.jsx)(t.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:a.blood_dna})]}),!d.condi&&(0,e.jsx)(t.$n,{icon:d.printing?"spinner":"print",disabled:d.printing,iconSpin:!!d.printing,ml:"0.5rem",onClick:function(){return g("print",{idx:a.idx,beaker:s.args.beaker})},children:"Print"})]})})})}},88737:function(O,u,n){"use strict";n.r(u),n.d(u,{ChemMasterBeaker:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(78924),s=n(86471),x=n(16793),g=function(d){var a=(0,o.Oc)().act,l=d.beaker,i=d.beakerReagents,c=d.bufferNonEmpty,f=c?(0,e.jsx)(t.$n.Confirm,{icon:"eject",disabled:!l,onClick:function(){return a("eject")},children:"Eject and Clear Buffer"}):(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return a("eject")},children:"Eject and Clear Buffer"});return(0,e.jsx)(t.wn,{title:"Beaker",buttons:f,children:l?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:i,buttons:function(m,v){return(0,e.jsxs)(t.az,{mb:v0?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:c,buttons:function(f,m){return(0,e.jsxs)(t.az,{mb:m0}),(0,e.jsx)(g.ChemMasterBuffer,{mode:C,bufferReagents:j}),(0,e.jsx)(d.ChemMasterProduction,{isCondiment:c,bufferNonEmpty:j.length>0,loaded_pill_bottle:P,loaded_pill_bottle_name:M||"",loaded_pill_bottle_contents_len:_||0,loaded_pill_bottle_storage_slots:S||0,pillsprite:T,bottlesprite:b})]})]})};(0,r.modalRegisterBodyOverride)("analyze",s.analyzeModalBodyOverride)},25453:function(O,u,n){"use strict";n.r(u)},42918:function(O,u,n){"use strict";n.r(u),n.d(u,{ClawMachine:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.wintick,i=a.instructions,c=a.gameStatus,f=a.winscreen,m;return c==="CLAWMACHINE_NEW"?m=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Pay to Play!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),i,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("newgame")},children:"Start"})]}):c==="CLAWMACHINE_END"?m=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Thank you for playing!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),f,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("return")},children:"Close"})]}):c==="CLAWMACHINE_ON"&&(m=(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[1,7],good:[8,1/0]},value:l,minValue:0,maxValue:10})})}),(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),i,(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Up"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Left"}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Right"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Down"})]})]})),(0,e.jsx)(r.p8,{children:(0,e.jsx)("center",{children:m})})}},76914:function(O,u,n){"use strict";n.r(u),n.d(u,{Cleanbot:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,i=a.open,c=a.locked,f=a.version,m=a.blood,v=a.vocal,E=a.wet_floors,j=a.spray_blood,C=a.rgbpanel,P=a.red_switch,M=a.green_switch,_=a.blue_switch;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Station Cleaner "+f,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("start")},children:l?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:i?"bad":"good",children:i?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:c?"good":"bad",children:c?"Locked":"Unlocked"})]})}),!c&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood",children:(0,e.jsx)(t.$n,{fluid:!0,icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return d("blood")},children:m?"Clean":"Ignore"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return d("vocal")},children:v?"On":"Off"})})]})})||null,!c&&i&&(0,e.jsx)(t.wn,{title:"Maintenance Panel",children:C&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{fontSize:5.39,icon:P?"toggle-on":"toggle-off",backgroundColor:P?"red":"maroon",onClick:function(){return d("red_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:M?"toggle-on":"toggle-off",backgroundColor:M?"green":"darkgreen",onClick:function(){return d("green_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:_?"toggle-on":"toggle-off",backgroundColor:_?"blue":"darkblue",onClick:function(){return d("blue_switch")}})]})||(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Odd Looking Screw Twiddled",children:(0,e.jsx)(t.$n,{fluid:!0,selected:E,onClick:function(){return d("wet_floors")},icon:"screwdriver",children:E?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Weird Button Pressed",children:(0,e.jsx)(t.$n,{fluid:!0,color:"brown",selected:j,onClick:function(){return d("spray_blood")},icon:"screwdriver",children:j?"Yes":"No"})})]})})})||null]})})}},90307:function(O,u,n){"use strict";n.r(u),n.d(u,{viewRecordModalBodyOverride:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(79500),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.disk,i=a.podready,c=x.args,f=c.activerecord,m=c.realname,v=c.health,E=c.unidentity,j=c.strucenzymes,C=v.split(" - ");return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Records of "+m,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:m}),(0,e.jsx)(t.Ki.Item,{label:"Damage",children:C.length>1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:r.lm.damageType.oxy,inline:!0,children:C[0]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.toxin,inline:!0,children:C[2]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.brute,inline:!0,children:C[3]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.burn,inline:!0,children:C[1]})]}):(0,e.jsx)(t.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(t.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:E}),(0,e.jsx)(t.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:j}),(0,e.jsxs)(t.Ki.Item,{label:"Disk",children:[(0,e.jsx)(t.$n.Confirm,{disabled:!l,icon:"arrow-circle-down",onClick:function(){return d("disk",{option:"load"})},children:"Import"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"ui"})},children:"Export UI"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"ue"})},children:"Export UI and UE"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"se"})},children:"Export SE"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{disabled:!i,icon:"user-plus",onClick:function(){return d("clone",{ref:f})},children:"Clone"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return d("del_rec")},children:"Delete"})]})]})})}},57981:function(O,u,n){"use strict";n.r(u),n.d(u,{CloningConsoleNavigation:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.menu;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:a===1,icon:"home",onClick:function(){return g("menu",{num:1})},children:"Main"}),(0,e.jsx)(t.tU.Tab,{selected:a===2,icon:"folder",onClick:function(){return g("menu",{num:2})},children:"Records"})]})}},16981:function(O,u,n){"use strict";n.r(u),n.d(u,{CloningConsoleStatus:function(){return x},CloningConsoleTemp:function(){return s}});var e=n(20462),o=n(7081),t=n(88569);function r(){return r=Object.assign||function(g){for(var d=1;d=150?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:S.biomass>=150?"circle":"circle-o"}),"\xA0",S.biomass]}),b]},T)}):(0,e.jsx)(s.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},g=function(d){var a=(0,r.Oc)(),l=a.act,i=a.data,c=i.records;return c.length?(0,e.jsx)(s.az,{mt:"0.5rem",children:c.map(function(f,m){return(0,e.jsx)(s.$n,{icon:"user",mb:"0.5rem",onClick:function(){return l("view_rec",{ref:f.record})},children:f.realname},m)})}):(0,e.jsx)(s.so,{height:"100%",children:(0,e.jsxs)(s.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(s.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No records found."]})})}},57508:function(O,u,n){"use strict";n.r(u),n.d(u,{CloningConsole:function(){return l}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(15581),x=n(90307),g=n(57981),d=n(16981),a=n(37651),l=function(i){var c=(0,o.Oc)().data,f=c.menu,m=[];return m[1]=(0,e.jsx)(a.CloningConsoleMain,{}),m[2]=(0,e.jsx)(a.CloningConsoleRecords,{}),(0,r.modalRegisterBodyOverride)("view_rec",x.viewRecordModalBodyOverride),(0,e.jsxs)(s.p8,{children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d.CloningConsoleTemp,{}),(0,e.jsx)(d.CloningConsoleStatus,{}),(0,e.jsx)(g.CloningConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:m[f]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]})}},25829:function(O,u,n){"use strict";n.r(u)},61942:function(O,u,n){"use strict";n.r(u),n.d(u,{ColorMateHSV:function(){return x},ColorMateTint:function(){return s}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=function(g){var d=(0,t.Oc)().act;return(0,e.jsx)(r.$n,{fluid:!0,icon:"paint-brush",onClick:function(){return d("choose_color")},children:"Select new color"})},x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.buildhue,c=l.buildsat,f=l.buildval;return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(r.XI.Cell,{width:"85%",children:(0,e.jsx)(r.Ap,{minValue:0,maxValue:360,step:1,value:i,format:function(m){return(0,o.Mg)(m)},onDrag:function(m,v){return a("set_hue",{buildhue:v})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:c,format:function(m){return(0,o.Mg)(m,2)},onDrag:function(m,v){return a("set_sat",{buildsat:v})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:f,format:function(m){return(0,o.Mg)(m,2)},onDrag:function(m,v){return a("set_val",{buildval:v})}})})]})]})}},17852:function(O,u,n){"use strict";n.r(u),n.d(u,{ColorMateMatrix:function(){return s}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=function(x){var g=(0,t.Oc)(),d=g.act,a=g.data,l=a.matrixcolors;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.rr,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:1,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.gr,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:4,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.br,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:7,value:i})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.rg,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:2,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.gg,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:5,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.bg,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:8,value:i})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.rb,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:3,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.gb,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:6,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.bb,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:9,value:i})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["CR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.cr,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:10,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.cg,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:11,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.cb,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:12,value:i})}})]})]}),(0,e.jsxs)(r.XI.Cell,{width:"40%",children:[(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]}),(0,e.jsx)(r.az,{mt:3,children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Config",children:(0,e.jsx)(r.pd,{fluid:!0,value:Object.values(l).toString(),onChange:function(i,c){return d("set_matrix_string",{value:c})}})})})})]})}},11145:function(O,u,n){"use strict";n.r(u),n.d(u,{ColorMate:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(61942),x=n(17852),g=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.activemode,f=i.temp,m=i.item,v=[];return v[1]=(0,e.jsx)(s.ColorMateTint,{}),v[2]=(0,e.jsx)(s.ColorMateHSV,{}),v[3]=(0,e.jsx)(x.ColorMateMatrix,{}),(0,e.jsx)(r.p8,{width:980,height:720,children:(0,e.jsx)(r.p8.Content,{overflow:"auto",children:(0,e.jsxs)(t.wn,{children:[f?(0,e.jsx)(t.IC,{children:f}):null,m&&Object.keys(m).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsx)(t.XI.Cell,{width:"50%",children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+m.sprite,style:{width:"100%",height:"100%"}})]})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+m.preview,style:{width:"100%",height:"100%"}})]})})]}),(0,e.jsxs)(t.tU,{fluid:!0,children:[(0,e.jsx)(t.tU.Tab,{selected:c===1,onClick:function(){return l("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(t.tU.Tab,{selected:c===2,onClick:function(){return l("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(t.tU.Tab,{selected:c===3,onClick:function(){return l("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",m.name]}),(0,e.jsxs)(t.XI,{mt:1,children:[(0,e.jsxs)(t.XI.Cell,{width:"33%",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"fill",onClick:function(){return l("paint")},children:"Paint"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return l("clear")},children:"Clear"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return l("drop")},children:"Eject"})]}),(0,e.jsx)(t.XI.Cell,{width:"66%",children:v[c]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})}},99390:function(O,u,n){"use strict";n.r(u)},57925:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleAuth:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.authenticated,l=d.is_ai,i=d.esc_status,c=d.esc_callable,f=d.esc_recallable,m;return a?l?m="AI":a===1?m="Command":a===2?m="Site Director":m="ERROR: Report This Bug!":m="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Authentication",children:(0,e.jsx)(t.Ki,{children:l&&(0,e.jsx)(t.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:a?"sign-out-alt":"id-card",selected:a,onClick:function(){return g("auth")},children:a?"Log Out ("+m+")":"Log In"})})})}),(0,e.jsx)(t.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(t.Ki,{children:[!!i&&(0,e.jsx)(t.Ki.Item,{label:"Status",children:i}),!!c&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!a,onClick:function(){return g("callshuttle")},children:"Call Shuttle"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!a||l,onClick:function(){return g("cancelshuttle")},children:"Recall Shuttle"})})]})})]})}},34116:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleContent:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(57925),s=n(73612),x=n(72298),g=n(19467),d=function(l){var i=(0,o.Oc)().data,c=i.menu_state,f=[];return f[1]=(0,e.jsx)(s.CommunicationsConsoleMain,{}),f[2]=(0,e.jsx)(g.CommunicationsConsoleStatusDisplay,{}),f[3]=(0,e.jsx)(x.CommunicationsConsoleMessage,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.CommunicationsConsoleAuth,{}),f[c]||(0,e.jsx)(a,{menu_state:c})]})},a=function(l){var i=l.menu_state;return(0,e.jsxs)(t.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",i,"Please report this to NT Technical Support."]})}},73612:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleMain:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.messages,l=d.msg_cooldown,i=d.emagged,c=d.cc_cooldown,f=d.str_security_level,m=d.levels,v=d.authmax,E=d.security_level,j=d.security_level_color,C=d.authenticated,P=d.atcsquelch,M=d.boss_short,_="View ("+a.length+")",S="Make Priority Announcement";l>0&&(S+=" ("+l+"s)");var T=i?"Message [UNKNOWN]":"Message "+M;c>0&&(T+=" ("+c+"s)");var b=f,L=m.map(function(W){return(0,e.jsx)(t.$n,{icon:W.icon,disabled:!C,selected:W.id===E,onClick:function(){return g("newalertlevel",{level:W.id})},children:W.name},W.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Announcement",children:(0,e.jsx)(t.$n,{icon:"bullhorn",disabled:!v||l>0,onClick:function(){return g("announce")},children:S})}),!!i&&(0,e.jsxs)(t.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!v||c>0,onClick:function(){return g("MessageSyndicate")},children:T}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!v,onClick:function(){return g("RestoreBackup")},children:"Reset Relays"})]})||(0,e.jsx)(t.Ki.Item,{label:"Transmit",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!v||c>0,onClick:function(){return g("MessageCentCom")},children:T})})]})}),(0,e.jsx)(t.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Alert",color:j,children:b}),(0,e.jsx)(t.Ki.Item,{label:"Change Alert",children:L}),(0,e.jsx)(t.Ki.Item,{label:"Displays",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!C,onClick:function(){return g("status")},children:"Change Status Displays"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!C,onClick:function(){return g("messagelist")},children:_})}),(0,e.jsx)(t.Ki.Item,{label:"Misc",children:(0,e.jsx)(t.$n,{icon:"microphone",disabled:!C,selected:P,onClick:function(){return g("toggleatc")},children:P?"ATC Relay Disabled":"ATC Relay Enabled"})})]})})]})}},72298:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleMessage:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.message_current,l=d.message_deletion_allowed,i=d.authenticated,c=d.messages;if(a)return(0,e.jsx)(t.wn,{title:a.title,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!i,onClick:function(){return g("messagelist")},children:"Return To Message List"}),children:(0,e.jsx)(t.az,{children:a.contents})});var f=c.map(function(m){return(0,e.jsxs)(t.Ki.Item,{label:m.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!i,onClick:function(){return g("messagelist",{msgid:m.id})},children:"View"}),(0,e.jsx)(t.$n,{icon:"times",disabled:!i||!l,onClick:function(){return g("delmessage",{msgid:m.id})},children:"Delete"})]},m.id)});return(0,e.jsx)(t.wn,{title:"Messages Received",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return g("main")},children:"Back To Main Menu"}),children:(0,e.jsx)(t.Ki,{children:c.length&&f||(0,e.jsx)(t.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})}},19467:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleStatusDisplay:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.stat_display,l=d.authenticated,i=a.presets.map(function(c){return(0,e.jsx)(t.$n,{selected:c.name===a.type,disabled:!l,onClick:function(){return g("setstat",{statdisp:c.name})},children:c.label},c.name)});return(0,e.jsx)(t.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return g("main")},children:"Back To Main Menu"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Presets",children:i}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!l,onClick:function(){return g("setmsg1")},children:a.line_1})}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!l,onClick:function(){return g("setmsg2")},children:a.line_2})})]})})}},59421:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(34116),r=function(s){return(0,e.jsx)(o.p8,{width:400,height:600,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},52994:function(O,u,n){"use strict";n.r(u)},59546:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicatorContactTab:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(74293),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.knownDevices;return(0,e.jsx)(r.wn,{title:"Known Devices",children:i.length&&(0,e.jsx)(r.XI,{children:i.map(function(c){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:(0,o.jT)(c.name)}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:c.address}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){a("copy",{copy:c.address}),a("switch_tab",{switch_tab:s.PHONTAB})},children:"Copy"}),(0,e.jsx)(r.$n,{icon:"phone",onClick:function(){a("dial",{dial:c.address}),a("copy",{copy:c.address}),a("switch_tab",{switch_tab:s.PHONTAB})},children:"Call"}),(0,e.jsx)(r.$n,{icon:"comment-alt",onClick:function(){a("copy",{copy:c.address}),a("copy_name",{copy_name:c.name}),a("switch_tab",{switch_tab:s.MESSSUBTAB})},children:"Msg"})]})]})]},c.address)})})||(0,e.jsx)(r.az,{children:"No devices detected on your local NTNet region."})})}},28215:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicatorFooter:function(){return d},CommunicatorHeader:function(){return g},TemplateError:function(){return x},VideoComm:function(){return a}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(74293),x=function(l){return(0,e.jsxs)(r.wn,{title:"Error!",children:["You tried to access tab #",l.currentTab,", but there was no template defined!"]})},g=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.time,v=f.connectionStatus,E=f.owner,j=f.occupation;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{color:"average",children:m}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.In,{color:v===1?"good":"bad",name:v===1?"signal":"exclamation-triangle"})}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,o.jT)(E)}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,o.jT)(j)})]})})},d=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.flashlight,v=l.videoSetting,E=l.setVideoSetting;return(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:v===2?"60%":"80%",children:(0,e.jsx)(r.$n,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return c("switch_tab",{switch_tab:s.HOMETAB})}})}),(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:m,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return c("Light")}})}),v===2&&(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return E(1)}})})]})},a=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.mapRef,v=l.videoSetting,E=l.setVideoSetting;return v===0?(0,e.jsxs)(r.az,{width:"100%",height:"100%",children:[(0,e.jsx)(r.D1,{width:"100%",height:"95%",params:{id:m,type:"map"}}),(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return E(1)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return c("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return c("hang_up")}})})]})]}):v===1?(0,e.jsxs)(r.az,{style:{position:"absolute",right:"5px",bottom:"50px",zIndex:"1"},children:[(0,e.jsx)(r.wn,{p:0,m:0,children:(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return E(2)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return E(0)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return c("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return c("hang_up")}})})]})}),(0,e.jsx)(r.D1,{width:"200px",height:"200px",params:{id:m,type:"map"}})]}):null}},46873:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicatorHomeTab:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.homeScreen;return(0,e.jsx)(t.so,{mt:2,wrap:"wrap",align:"center",justify:"center",children:l.map(function(i){return(0,e.jsxs)(t.so.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.jsx)(t.$n,{style:{borderRadius:"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return d("switch_tab",{switch_tab:i.number})},children:(0,e.jsx)(t.In,{spin:s(i.module),color:s(i.module)?"bad":null,name:i.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(t.az,{children:i.module})]},i.number)})})},s=function(x){var g=(0,o.Oc)().data,d=g.voice_mobs,a=g.communicating,l=g.requestsReceived,i=g.invitesSent,c=g.video_comm;return!!(x==="Phone"&&(d.length||a.length||l.length||i.length||c))}},51445:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicatorMessageSubTab:function(){return s}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=a.clipboardMode,m=a.onClipboardMode,v=c.targetAddress,E=c.targetAddressName,j=c.imList;return f?(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"90%",children:g("Conversation with ",(0,o.jT)(E),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:f,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return m(!f)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:j.map(function(C,P){return(C.to_address===v||C.address===v)&&(0,e.jsxs)(r.az,{className:x(C,v)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[x(C,v)?"You":"Them",": ",C.im]},P)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return i("message",{message:v})},children:"Message"})]}):(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"100%",children:g("Conversation with ",(0,o.jT)(E),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:f,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return m(!f)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:j.map(function(C,P,M){return(C.to_address===v||C.address===v)&&(0,e.jsx)(r.az,{textAlign:x(C,v)?"right":"left",mb:1,children:(0,e.jsx)(r.az,{maxWidth:"75%",className:d(C,v,P-1,M),inline:!0,children:(0,o.jT)(C.im)})},P)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return i("message",{message:v})},children:"Message"})]})},x=function(a,l){return a.address!==l},g=function(a,l,i){return(a+l).length>i?l.length>i?l.slice(0,i)+"...":l:a+l},d=function(a,l,i,c){if(i<0||i>c.length)return x(a,l)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var f=x(a,l),m=x(c[i],l);return f&&m?"TinderMessage_Subsequent_Sent":!f&&!m?"TinderMessage_Subsequent_Received":f?"TinderMessage_First_Sent":"TinderMessage_First_Received"}},26217:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicatorMessageTab:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(74293),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.imContacts;return(0,e.jsx)(r.wn,{title:"Messaging",children:i.length&&(0,e.jsx)(r.XI,{children:i.map(function(c){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:[(0,o.jT)(c.name),":"]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:c.address}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){a("copy",{copy:c.address}),a("copy_name",{copy_name:c.name}),a("switch_tab",{switch_tab:s.MESSSUBTAB})},children:"View Conversation"})})]})]},c.address)})})||(0,e.jsxs)(r.az,{children:["You haven't sent any messages yet.",(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return a("switch_tab",{switch_tab:s.CONTTAB})},children:"Contacts"})]})})}},28953:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicatorNewsTab:function(){return s}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(x){var g=(0,t.Oc)(),d=g.act,a=g.data,l=a.feeds,i=a.target_feed,c=a.latest_news;return(0,e.jsx)(r.wn,{title:"News",stretchContents:!0,height:"100%",children:!l.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||i&&(0,e.jsx)(r.wn,{title:(0,o.jT)(i.name)+" by "+(0,o.jT)(i.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:null})},children:"Back"}),children:i.messages.map(function(f){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(f.body),!!f.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+f.img}),(0,o.jT)(f.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",f.message_type," by"," ",(0,o.jT)(f.author)," - ",f.time_stamp,"]"]})]},f.ref)})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:(0,e.jsx)(r.wn,{children:c.map(function(f){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,o.jT)(f.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:f.index})},children:"Go to"})]}),"- ",(0,o.jT)(f.body),!!f.img&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",f.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",f.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:f.author})," ","- ",f.time_stamp,"]"]})]},f.index)})})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:l.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:f.index})},children:f.name},f.index)})})]})})}},47106:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicatorNoteTab:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.note;return(0,e.jsx)(t.wn,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("edit")},children:"Edit Notes"}),children:(0,e.jsx)(t.wn,{color:"average",width:"100%",height:"100%",style:{wordBreak:"break-all",overflowY:"auto"},children:a})})}},10674:function(O,u,n){"use strict";n.r(u),n.d(u,{CommunicatorPhoneTab:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(74293),x=function(i){for(var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.selfie_mode,E=m.targetAddress,j=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],C=j.map(function(_){return(0,e.jsx)(r.$n,{fontSize:2,fluid:!0,onClick:function(){return f("add_hex",{add_hex:_})},children:_},_)}),P=[],M=0;Mi?"average":d>c?"bad":"good"}},74293:function(O,u,n){"use strict";n.r(u),n.d(u,{CONTTAB:function(){return t},HOMETAB:function(){return e},MANITAB:function(){return a},MESSSUBTAB:function(){return s},MESSTAB:function(){return r},NEWSTAB:function(){return x},NOTETAB:function(){return g},PHONTAB:function(){return o},SETTTAB:function(){return l},WTHRTAB:function(){return d},notFound:function(){return c},tabs:function(){return i}});var e=1,o=2,t=3,r=4,s=40,x=5,g=6,d=7,a=8,l=9,i=[e,o,t,r,s,x,g,d,a,l];function c(f){return i.includes(f)}},42320:function(O,u,n){"use strict";n.r(u),n.d(u,{Communicator:function(){return C}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(58044),g=n(59546),d=n(28215),a=n(46873),l=n(51445),i=n(26217),c=n(28953),f=n(47106),m=n(10674),v=n(4435),E=n(81450),j=n(74293),C=function(){var P=function(Z){F(Z)},M=(0,t.Oc)(),_=M.act,S=M.data,T=S.currentTab,b=S.video_comm,L=[],W=(0,o.useState)(0),k=W[0],$=W[1],w=(0,o.useState)(!1),V=w[0],F=w[1];return L[j.tabs[0]]=(0,e.jsx)(a.CommunicatorHomeTab,{}),L[j.tabs[1]]=(0,e.jsx)(m.CommunicatorPhoneTab,{}),L[j.tabs[2]]=(0,e.jsx)(g.CommunicatorContactTab,{}),L[j.tabs[3]]=(0,e.jsx)(i.CommunicatorMessageTab,{}),L[j.tabs[4]]=(0,e.jsx)(l.CommunicatorMessageSubTab,{clipboardMode:V,onClipboardMode:P}),L[j.tabs[5]]=(0,e.jsx)(c.CommunicatorNewsTab,{}),L[j.tabs[6]]=(0,e.jsx)(f.CommunicatorNoteTab,{}),L[j.tabs[7]]=(0,e.jsx)(E.CommunicatorWeatherTab,{}),L[j.tabs[8]]=(0,e.jsx)(x.CrewManifestContent,{}),L[j.tabs[9]]=(0,e.jsx)(v.CommunicatorSettingsTab,{}),(0,e.jsx)(s.p8,{width:475,height:700,children:(0,e.jsxs)(s.p8.Content,{children:[b&&(0,e.jsx)(d.VideoComm,{videoSetting:k,setVideoSetting:$}),(!b||k!==0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.CommunicatorHeader,{}),(0,e.jsx)(r.az,{height:"88%",mb:1,style:{overflowY:"auto"},children:L[T]||(0,j.notFound)(T)&&(0,e.jsx)(d.TemplateError,{currentTab:T})}),(0,e.jsx)(d.CommunicatorFooter,{videoSetting:k,setVideoSetting:$})]})]})})}},96273:function(O,u,n){"use strict";n.r(u)},62311:function(O,u,n){"use strict";n.r(u),n.d(u,{CfStep1:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(t.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(t.az,{mt:3,children:(0,e.jsx)(t.XI,{width:"100%",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return x("pick_device",{pick:"1"})},children:"Laptop"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"tablet-alt",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return x("pick_device",{pick:"2"})},children:"Tablet"})})]})})})]})}},78820:function(O,u,n){"use strict";n.r(u),n.d(u,{CfStep2:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.totalprice,l=d.hw_battery,i=d.hw_disk,c=d.hw_netcard,f=d.hw_nanoprint,m=d.hw_card,v=d.devtype,E=d.hw_cpu,j=d.hw_tesla;return(0,e.jsxs)(t.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(t.az,{bold:!0,color:"good",children:[a,"\u20AE"]}),children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(t.m_,{content:"\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===1,onClick:function(){return g("hw_battery",{battery:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===2,onClick:function(){return g("hw_battery",{battery:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===3,onClick:function(){return g("hw_battery",{battery:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(t.m_,{content:"\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:i===1,onClick:function(){return g("hw_disk",{disk:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:i===2,onClick:function(){return g("hw_disk",{disk:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:i===3,onClick:function(){return g("hw_disk",{disk:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(t.m_,{content:"\n Allows your device to wirelessly connect to stationwide NTNet\n network. Basic cards are limited to on-station use, while\n advanced cards can operate anywhere near the station, which\n includes asteroid outposts\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===0,onClick:function(){return g("hw_netcard",{netcard:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===1,onClick:function(){return g("hw_netcard",{netcard:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===2,onClick:function(){return g("hw_netcard",{netcard:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(t.m_,{content:"\n A device that allows for various paperwork manipulations,\n such as, scanning of documents or printing new ones.\n This device was certified EcoFriendlyPlus and is capable of\n recycling existing paper for printing purposes.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:f===0,onClick:function(){return g("hw_nanoprint",{print:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:f===1,onClick:function(){return g("hw_nanoprint",{print:"1"})},children:"Standard"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(t.m_,{content:"\n Adds a secondary RFID card reader, for manipulating or\n reading from a second standard RFID card.\n Please note that a primary card reader is necessary to\n allow the device to read your identification, but one\n is included in the base price.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:m===0,onClick:function(){return g("hw_card",{card:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:m===1,onClick:function(){return g("hw_card",{card:"1"})},children:"Standard"})})]}),v!==2&&(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(t.m_,{content:"\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===1,onClick:function(){return g("hw_cpu",{cpu:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===2,onClick:function(){return g("hw_cpu",{cpu:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(t.m_,{content:"\n An advanced wireless power relay that allows your device\n to connect to nearby area power controller to provide\n alternative power source. This component is currently\n unavailable on tablet computers due to size restrictions.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===0,onClick:function(){return g("hw_tesla",{tesla:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===1,onClick:function(){return g("hw_tesla",{tesla:"1"})},children:"Standard"})})]})]}),(0,e.jsx)(t.$n,{fluid:!0,mt:3,color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return g("confirm_order")},children:"Confirm Order"})]})}},3777:function(O,u,n){"use strict";n.r(u),n.d(u,{CfStep3:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var s=r.totalprice;return(0,e.jsxs)(o.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(o.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(o.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(o.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(o.az,{inline:!0,color:"good",children:[s,"\u20AE"]})]})]})}},44430:function(O,u,n){"use strict";n.r(u),n.d(u,{CfStep4:function(){return t}});var e=n(20462),o=n(88569),t=function(r){return(0,e.jsxs)(o.wn,{minHeight:"282px",children:[(0,e.jsx)(o.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(o.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},36229:function(O,u,n){"use strict";n.r(u),n.d(u,{ComputerFabricator:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(62311),x=n(78820),g=n(3777),d=n(44430),a=function(l){var i=(0,o.Oc)(),c=i.act,f=i.data,m=f.state,v=f.totalprice,E=[];return E[0]=(0,e.jsx)(s.CfStep1,{}),E[1]=(0,e.jsx)(x.CfStep2,{}),E[2]=(0,e.jsx)(g.CfStep3,{totalprice:v}),E[3]=(0,e.jsx)(d.CfStep4,{}),(0,e.jsx)(r.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),m!==0&&(0,e.jsx)(t.$n,{fluid:!0,mb:1,icon:"circle",onClick:function(){return c("clean_order")},children:"Clear Order"}),E[m]]})})}},75050:function(O,u,n){"use strict";n.r(u)},31681:function(O,u,n){"use strict";n.r(u),n.d(u,{CookingAppliance:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.temperature,i=a.optimalTemp,c=a.temperatureEnough,f=a.efficiency,m=a.containersRemovable,v=a.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{color:c?"good":"blue",value:l,maxValue:i,children:[(0,e.jsx)(t.zv,{value:l}),"\xB0C / ",i,"\xB0C"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(t.zv,{value:f}),"%"]})]})}),(0,e.jsx)(t.wn,{title:"Containers",children:(0,e.jsx)(t.Ki,{children:v.map(function(E,j){return E.empty?(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(j+1),children:(0,e.jsx)(t.$n,{onClick:function(){return d("slot",{slot:j+1})},children:"Empty"})},j):(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(j+1),verticalAlign:"middle",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{disabled:!m,onClick:function(){return d("slot",{slot:j+1})},children:E.container||"No Container"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.z2,{color:E.progressText[0],value:E.progress,maxValue:1,children:E.progressText[1]})})]})},j)})})})]})})}},58044:function(O,u,n){"use strict";n.r(u),n.d(u,{CrewManifest:function(){return g},CrewManifestContent:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(79500),x=n(15581),g=function(){return(0,e.jsx)(x.p8,{width:400,height:600,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:f.map(function(m){return!!m.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:s.lm.manifest[m.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:m.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),m.elems.map(function(v){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,o.jT)(v.name)}),(0,e.jsx)(r.XI.Cell,{children:v.rank}),(0,e.jsx)(r.XI.Cell,{children:v.active})]},v.name+v.rank)})]})},m.cat)})})}},70117:function(O,u,n){"use strict";n.r(u),n.d(u,{CrewMonitor:function(){return l},CrewMonitorContent:function(){return i}});var e=n(20462),o=n(7402),t=n(15813),r=n(61358),s=n(7081),x=n(88569),g=n(15581),d=function(m){return m.dead?"Deceased":m.stat===1?"Unconscious":"Living"},a=function(m){return m.dead?"red":m.stat===1?"orange":"green"},l=function(){var m=function(T){C(T)},v=function(T){_(T)},E=(0,r.useState)(0),j=E[0],C=E[1],P=(0,r.useState)(1),M=P[0],_=P[1];return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(i,{tabIndex:j,zoom:M,onTabIndex:m,onZoom:v})})})},i=function(m){var v=(0,s.Oc)().data,E=v.crewmembers,j=E===void 0?[]:E,C=(0,t.L)([function(M){return(0,o.Ul)(M,function(_){return _.name})},function(M){return(0,o.Ul)(M,function(_){return _==null?void 0:_.x})},function(M){return(0,o.Ul)(M,function(_){return _==null?void 0:_.y})},function(M){return(0,o.Ul)(M,function(_){return _==null?void 0:_.realZ})}])(j),P=[];return P[0]=(0,e.jsx)(c,{crew:C}),P[1]=(0,e.jsx)(f,{zoom:m.zoom,onZoom:m.onZoom}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(x.tU,{children:[(0,e.jsxs)(x.tU.Tab,{selected:m.tabIndex===0,onClick:function(){return m.onTabIndex(0)},children:[(0,e.jsx)(x.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(x.tU.Tab,{selected:m.tabIndex===1,onClick:function(){return m.onTabIndex(1)},children:[(0,e.jsx)(x.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(x.az,{m:2,children:P[m.tabIndex]||(0,e.jsx)(x.az,{textColor:"red",children:"ERROR"})})]})},c=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,C=m.crew,P=j.isAI;return(0,e.jsxs)(x.XI,{children:[(0,e.jsxs)(x.XI.Row,{header:!0,children:[(0,e.jsx)(x.XI.Cell,{children:"Name"}),(0,e.jsx)(x.XI.Cell,{children:"Status"}),(0,e.jsx)(x.XI.Cell,{children:"Location"})]}),C.map(function(M){return(0,e.jsxs)(x.XI.Row,{children:[(0,e.jsxs)(x.XI.Cell,{children:[M.name," (",M.assignment,")"]}),(0,e.jsxs)(x.XI.Cell,{children:[(0,e.jsx)(x.az,{inline:!0,color:a(M),children:d(M)}),M.sensor_type>=2?(0,e.jsxs)(x.az,{inline:!0,children:["(",(0,e.jsx)(x.az,{inline:!0,color:"red",children:M.brute}),"|",(0,e.jsx)(x.az,{inline:!0,color:"orange",children:M.fire}),"|",(0,e.jsx)(x.az,{inline:!0,color:"green",children:M.tox}),"|",(0,e.jsx)(x.az,{inline:!0,color:"blue",children:M.oxy}),")"]}):null]}),(0,e.jsx)(x.XI.Cell,{children:M.sensor_type===3?P?(0,e.jsx)(x.$n,{fluid:!0,icon:"location-arrow",onClick:function(){return E("track",{track:M.ref})},children:M.area+" ("+M.x+", "+M.y+")"}):M.area+" ("+M.x+", "+M.y+", "+M.z+")":"Not Available"})]},M.ref)})]})},f=function(m){var v=(0,s.Oc)(),E=v.config,j=v.data,C=j.zoomScale,P=j.crewmembers;return(0,e.jsx)(x.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(x.tx,{zoomScale:C,onZoom:function(M){return m.onZoom(M)},children:P.filter(function(M){return M.sensor_type===3&&~~M.realZ===~~E.mapZLevel}).map(function(M){return(0,e.jsx)(x.tx.Marker,{x:M.x,y:M.y,zoom:m.zoom,icon:"circle",tooltip:M.name+" ("+M.assignment+")",color:a(M)},M.ref)})})})}},67268:function(O,u,n){"use strict";n.r(u),n.d(u,{CryoStorage:function(){return x},CryoStorageCrew:function(){return g},CryoStorageDefaultError:function(){return a},CryoStorageItems:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=function(l){var i=(0,t.Oc)().data,c=i.real_name,f=i.allow_items,m=(0,o.useState)(0),v=m[0],E=m[1],j=[];return j[0]=(0,e.jsx)(g,{}),j[1]=f?(0,e.jsx)(d,{}):(0,e.jsx)(a,{}),(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:v===0,onClick:function(){return E(0)},children:"Crew"}),!!f&&(0,e.jsx)(r.tU.Tab,{selected:v===1,onClick:function(){return E(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",c,"."]}),j[v]]})})},g=function(l){var i=(0,t.Oc)().data,c=i.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:c.length&&c.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},d=function(l){var i=(0,t.Oc)().data,c=i.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:c.length&&c.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})},a=function(l){return(0,e.jsx)(r.az,{textColor:"red",children:"Disabled"})}},41628:function(O,u,n){"use strict";n.r(u),n.d(u,{CryoContent:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(17639),x=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.isOperating,f=i.hasOccupant,m=i.occupant,v=i.cellTemperature,E=i.cellTemperatureStatus,j=i.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Occupant",flexGrow:!0,buttons:(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return l("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Occupant",children:m.name||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:m.health/m.maxHealth,color:m.health>0?"good":"average",children:(0,e.jsx)(r.zv,{value:m.health,format:function(C){return(0,o.Mg)(C)}})})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:s.statNames[m.stat][0],children:s.statNames[m.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsx)(r.zv,{value:m.bodyTemperature,format:function(C){return(0,o.Mg)(C)+" K"}})}),(0,e.jsx)(r.Ki.Divider,{}),s.damageTypes.map(function(C,P){return(0,e.jsx)(r.Ki.Item,{label:C.label,children:(0,e.jsx)(r.z2,{value:m[C.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(r.zv,{value:m[C.type],format:function(M){return(0,o.Mg)(M)}})})},P)})]}):(0,e.jsx)(r.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(r.wn,{title:"Cell",buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return l("ejectBeaker")},disabled:!j,children:"Eject Beaker"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power",children:(0,e.jsx)(r.$n,{icon:"power-off",onClick:function(){return l(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",color:E,children:[(0,e.jsx)(r.zv,{value:v})," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Beaker",children:(0,e.jsx)(g,{})})]})})]})},g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.isBeakerLoaded,f=i.beakerLabel,m=i.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[f||(0,e.jsx)(r.az,{color:"average",children:"No label"}),(0,e.jsx)(r.az,{color:!m&&"bad",children:m?(0,e.jsx)(r.zv,{value:m,format:function(v){return(0,o.Mg)(v)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(r.az,{color:"average",children:"No beaker loaded"})}},17639:function(O,u,n){"use strict";n.r(u),n.d(u,{damageTypes:function(){return e},statNames:function(){return o}});var e=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],o=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]]},85970:function(O,u,n){"use strict";n.r(u),n.d(u,{Cryo:function(){return r}});var e=n(20462),o=n(15581),t=n(41628),r=function(s){return(0,e.jsx)(o.p8,{width:520,height:470,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(t.CryoContent,{})})})}},40599:function(O,u,n){"use strict";n.r(u)},39699:function(O,u,n){"use strict";n.r(u),n.d(u,{DNAForensics:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.scan_progress,i=a.scanning,c=a.bloodsamp,f=a.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:i,disabled:!c,icon:"power-off",onClick:function(){return d("scanItem")},children:i?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"eject",onClick:function(){return d("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(t.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:l,maxValue:100})})})}),(0,e.jsx)(t.wn,{title:"Blood Sample",children:c&&(0,e.jsxs)(t.az,{children:[c,(0,e.jsx)(t.az,{color:"label",children:f})]})||(0,e.jsx)(t.az,{color:"bad",children:"No blood sample inserted."})})]})})}},63501:function(O,u,n){"use strict";n.r(u),n.d(u,{DNAModifierBlocks:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){for(var x=function(E){for(var j=function(_){var S=_+1;P.push((0,e.jsx)(t.$n,{selected:a===C&&l===S,mb:"0",onClick:function(){return g(c,{block:C,subblock:S})},children:f[E+_]}))},C=E/i+1,P=[],M=0;Mj,icon:"syringe",onClick:function(){return m("injectRejuvenators",{amount:P})},children:P},M)}),(0,e.jsx)(t.$n,{disabled:j<=0,icon:"syringe",onClick:function(){return m("injectRejuvenators",{amount:j})},children:"All"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:C||"No label"}),j?(0,e.jsxs)(t.az,{color:"good",children:[j," unit",j===1?"":"s"," remaining"]}):(0,e.jsx)(t.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",size:4}),(0,e.jsx)("br",{}),"No beaker loaded."]})})}},25475:function(O,u,n){"use strict";n.r(u),n.d(u,{DNAModifierMainBuffers:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(g){var d=(0,o.Oc)().data,a=d.buffers,l=a.map(function(i,c){return(0,e.jsx)(s,{id:c+1,name:"Buffer "+(c+1),buffer:i},c)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Buffers",children:l}),(0,e.jsx)(x,{})]})},s=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=g.id,c=g.name,f=g.buffer,m=l.isInjectorReady,v=c+(f.data?" - "+f.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:v,mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!f.data,icon:"trash",onClick:function(){return a("bufferOption",{option:"clear",id:i})},children:"Clear"}),(0,e.jsx)(t.$n,{disabled:!f.data,icon:"pen",onClick:function(){return a("bufferOption",{option:"changeLabel",id:i})},children:"Rename"}),(0,e.jsx)(t.$n,{disabled:!f.data||!l.hasDisk,icon:"save",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:i})},children:"Export"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Write",children:[(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:i})},children:"Subject U.I"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:i})},children:"Subject U.I and U.E."}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:i})},children:"Subject S.E."}),(0,e.jsx)(t.$n,{disabled:!l.hasDisk||!l.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:i})},children:"From Disk"})]}),!!f.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Subject",children:f.owner||(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[f.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!f.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(t.$n,{disabled:!m,icon:m?"syringe":"spinner",iconSpin:!m,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:i})},children:"Injector"}),(0,e.jsx)(t.$n,{disabled:!m,icon:m?"syringe":"spinner",iconSpin:!m,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:i,block:1})},children:"Block Injector"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:i})},children:"Subject"})]})]})]}),!f.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.hasDisk,c=l.disk;return(0,e.jsx)(t.wn,{title:"Data Disk",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!i||!c.data,icon:"trash",onClick:function(){return a("wipeDisk")},children:"Wipe"}),(0,e.jsx)(t.$n,{disabled:!i,icon:"eject",onClick:function(){return a("ejectDisk")},children:"Eject"})]}),children:i?c.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:c.label?c.label:"No label"}),(0,e.jsx)(t.Ki.Item,{label:"Subject",children:c.owner?c.owner:(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[c.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!c.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(t.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.In,{name:"save-o",size:4}),(0,e.jsx)("br",{}),"No disk inserted."]})})}},76282:function(O,u,n){"use strict";n.r(u),n.d(u,{DNAModifierOccupant:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(22724),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.locked,i=a.hasOccupant,c=a.occupant;return(0,e.jsx)(t.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(t.$n,{disabled:!i,selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return d("toggleLock")},children:l?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{disabled:!i||l,icon:"user-slash",onClick:function(){return d("ejectOccupant")},children:"Eject"})]}),children:i?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:c.name}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:c.health/c.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[c.stat][0],children:r.stats[c.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),x.isDNAInvalid?(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Radiation",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:c.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"Unique Enzymes",children:a.occupant.uniqueEnzymes?a.occupant.uniqueEnzymes:(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(t.az,{color:"label",children:"Cell unoccupied."})})}},22724:function(O,u,n){"use strict";n.r(u),n.d(u,{operations:function(){return o},rejuvenatorsDoses:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],t=[5,10,20,30,50]},62343:function(O,u,n){"use strict";n.r(u),n.d(u,{DNAModifier:function(){return d}});var e=n(20462),o=n(7081),t=n(15581),r=n(86471),s=n(11619),x=n(89100),g=n(76282),d=function(a){var l=(0,o.Oc)().data,i=l.irradiating,c=l.occupant,f=!c.isViableSubject||!c.uniqueIdentity||!c.structuralEnzymes;return(0,e.jsxs)(t.p8,{width:660,height:870,children:[(0,e.jsx)(r.ComplexModal,{}),i&&(0,e.jsx)(s.DNAModifierIrradiating,{duration:i}),(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(g.DNAModifierOccupant,{isDNAInvalid:f}),(0,e.jsx)(x.DNAModifierMain,{isDNAInvalid:f})]})]})}},14512:function(O,u,n){"use strict";n.r(u)},80603:function(O,u,n){"use strict";n.r(u),n.d(u,{DestinationTagger:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.currTag,i=a.taggerLevels,c=i===void 0?[]:i,f=a.taggerLocs,m=c.filter(function(v,E){return E===c.findIndex(function(j){return v.location===j.location})});return(0,e.jsx)(r.p8,{width:450,height:310,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Tagger Locations",children:m.map(function(v){return(0,e.jsx)(t.wn,{title:v.location,children:(0,e.jsx)(t.so,{wrap:"wrap",spacing:1,justify:"center",children:f.map(function(E){return v.z===E.level&&(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{icon:l===E.tag?"check-square-o":"square-o",selected:l===E.tag,onClick:function(){return d("set_tag",{tag:E.tag})},children:E.tag})},E.tag)})})},v.location)})})})})}},17956:function(O,u,n){"use strict";n.r(u),n.d(u,{DiseaseSplicer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.busy;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c?(0,e.jsx)(t.wn,{title:"The Splicer is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:c})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),(0,e.jsx)(g,{})]})})})},x=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.dish_inserted,f=i.effects,m=f===void 0?[]:f,v=i.info,E=i.growth,j=i.affected_species;return(0,e.jsxs)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return l("eject")},children:"Eject Dish"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:E})})}),v?(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:v})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Symptoms",children:m.length>0?m.map(function(C){return(0,e.jsxs)(t.az,{color:"label",children:["(",C.stage,") ",C.name," ",C.badness>1?"Dangerous!":null]},C.stage)}):(0,e.jsx)(t.az,{children:"No virus sample loaded."})}),(0,e.jsx)(t.wn,{title:"Affected Species",color:"label",children:!j||!j.length?"None":j.sort().join(", ")}),(0,e.jsxs)(t.wn,{title:"Reverse Engineering",children:[(0,e.jsx)(t.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),!!m.length&&m.map(function(C){return(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return l("grab",{grab:C.reference})},children:C.stage},C.stage)}),(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return l("affected_species")},children:"Species"})]})]})]})},g=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.buffer,f=i.species_buffer,m=i.info;return(0,e.jsxs)(t.wn,{title:"Storage",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Memory Buffer",children:c?(0,e.jsxs)(t.az,{children:[c.name," (",c.stage,")"]}):f?(0,e.jsx)(t.az,{children:f}):"Empty"})}),(0,e.jsx)(t.$n,{mt:1,icon:"save",disabled:!c&&!f,onClick:function(){return l("disk")},children:"Save To Disk"}),c?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>1,onClick:function(){return l("splice",{splice:1})},children:"Splice #1"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>2,onClick:function(){return l("splice",{splice:2})},children:"Splice #2"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>3,onClick:function(){return l("splice",{splice:3})},children:"Splice #3"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>4,onClick:function(){return l("splice",{splice:4})},children:"Splice #4"})]}):f?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"pen",disabled:!f||!!m,onClick:function(){return l("splice",{splice:5})},children:"Splice Species"})}):null]})}},4843:function(O,u,n){"use strict";n.r(u),n.d(u,{DishIncubator:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),s=n(15581),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.on,c=l.system_in_use,f=l.food_supply,m=l.radiation,v=l.growth,E=l.toxins,j=l.chemicals_inserted,C=l.can_breed_virus,P=l.chemical_volume,M=l.max_chemical_volume,_=l.dish_inserted,S=l.blood_already_infected,T=l.virus,b=l.analysed,L=l.infection_rate;return(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:i,onClick:function(){return a("power")},children:i?"On":"Off"}),children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"radiation",onClick:function(){return a("rad")},children:"Add Radiation"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",disabled:!c,onClick:function(){return a("flush")},children:"Flush System"})})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:f})}),(0,e.jsx)(t.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:100,color:m>=50?"bad":v>=25?"average":"good",value:m,children:[(0,r.qQ)(m*1e4)," \xB5Sv"]})}),(0,e.jsx)(t.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:E})})]})]}),(0,e.jsx)(t.wn,{title:C?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",disabled:!j,onClick:function(){return a("ejectchem")},children:"Eject "+(C?"Vial":"Chemicals")}),(0,e.jsx)(t.$n,{icon:"virus",disabled:!C,onClick:function(){return a("virus")},children:"Breed Virus"})]}),children:j&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Volume",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:M,value:P,children:[P,"/",M]})}),(0,e.jsxs)(t.Ki.Item,{label:"Breeding Environment",color:C?"good":"average",children:[_?C?"Suitable":"No hemolytic samples detected":"N/A",S?(0,e.jsx)(t.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(t.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!_,onClick:function(){return a("ejectdish")},children:"Eject Dish"}),children:_?T?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:v})}),(0,e.jsx)(t.Ki.Item,{label:"Infection Rate",children:b?L:"Unknown."})]}):(0,e.jsx)(t.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(t.az,{color:"average",children:"No dish loaded."})})]})})}},43978:function(O,u,n){"use strict";n.r(u),n.d(u,{DisposalBin:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.mode,i=a.pressure,c=a.isAI,f=a.panel_open,m=a.flushing,v,E;return l===2?(v="good",E="Ready"):l<=0?(v="bad",E="N/A"):l===1?(v="average",E="Pressurizing"):(v="average",E="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"State",color:v,children:E}),(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:i,minValue:0,maxValue:100})})]}),(0,e.jsx)(t.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Handle",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:c||f,selected:m?null:!0,onClick:function(){return d("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:c||f,selected:m?!0:null,onClick:function(){return d("engageHandle")},children:"Engaged"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Power",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:l===-1,selected:l?null:!0,onClick:function(){return d("pumpOff")},children:"Off"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:l===-1,selected:l?!0:null,onClick:function(){return d("pumpOn")},children:"On"})]}),(0,e.jsx)(t.Ki.Item,{label:"Eject",children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",disabled:c,onClick:function(){return d("eject")},children:"Eject Contents"})})]})]})})})}},16381:function(O,u,n){"use strict";n.r(u),n.d(u,{DroneConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.drones,i=a.areas,c=a.selected_area,f=a.fabricator,m=a.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(t.$n,{disabled:!f,selected:m,icon:"power-off",onClick:function(){return d("toggle_fab")},children:m?"Enabled":"Disabled"}),children:f?(0,e.jsx)(t.az,{color:"good",children:"Linked."}):(0,e.jsxs)(t.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("search_fab")},children:"Search for Fabricator"})]})}),(0,e.jsxs)(t.wn,{title:"Request Drone",children:[(0,e.jsx)(t.ms,{autoScroll:!1,options:i?i.sort():[],selected:c,width:"100%",onSelected:function(v){return d("set_dcall_area",{area:v})}}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return d("ping")},children:"Send Ping"})]}),(0,e.jsx)(t.wn,{title:"Maintenance Units",children:l&&l.length?(0,e.jsx)(t.Ki,{children:l.map(function(v){return(0,e.jsx)(t.Ki.Item,{label:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("resync",{ref:v.ref})},children:"Resync"}),(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",color:"red",onClick:function(){return d("shutdown",{ref:v.ref})},children:"Shutdown"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:v.loc}),(0,e.jsxs)(t.Ki.Item,{label:"Charge",children:[v.charge," / ",v.maxCharge]}),(0,e.jsx)(t.Ki.Item,{label:"Active",children:v.active?"Yes":"No"})]})},v.name)})}):(0,e.jsx)(t.az,{color:"bad",children:"No drones detected."})})]})})}},27133:function(O,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleAdvanced:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=function(C){return C<80||C>120?"bad":C<95||C>110?"average":"good"},d=(0,o.Oc)(),a=d.act,l=d.data,i=l.external_pressure,c=l.chamber_pressure,f=l.internal_pressure,m=l.processing,v={external_pressure:i,internal_pressure:f,chamber_pressure:c},E=[{minValue:0,maxValue:202,value:i,label:"External Pressure",textValue:i+" kPa",color:g},{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:g},{minValue:0,maxValue:202,value:f,label:"Internal Pressure",textValue:f+" kPa",color:g}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:E}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{pressure_range:v}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return a("purge")},children:"Purge"}),(0,e.jsx)(t.$n,{icon:"lock-open",onClick:function(){return a("secure")},children:"Secure"})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!m,icon:"ban",color:"bad",onClick:function(){return a("abort")},children:"Abort"})})]})]})}},34012:function(O,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleDocking:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.interior_status,i=a.exterior_status,c=a.chamber_pressure,f=a.airlock_disabled,m=a.override_enabled,v=a.docking_status,E=a.processing,j={interior_status:l,exterior_status:i},C=[{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:function(P){return P<80||P>120?"bad":P<95||P>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Dock",buttons:f||m?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:m?"red":"",onClick:function(){return d("toggle_override")},children:"Override"}):null,children:(0,e.jsx)(r.DockStatus,{docking_status:v,override_enabled:m})}),(0,e.jsx)(r.StatusDisplay,{bars:C}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:j}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!E,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},29935:function(O,u,n){"use strict";n.r(u),n.d(u,{AirlockConsolePhoron:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.chamber_pressure,i=a.chamber_phoron,c=a.interior_status,f=a.exterior_status,m=a.processing,v={interior_status:c,exterior_status:f},E=[{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:function(j){return j<80||j>120?"bad":j<95||j>110?"average":"good"}},{minValue:0,maxValue:100,value:i,label:"Chamber Phoron",textValue:i+" mol",color:function(j){return j>5?"bad":j>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:E}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:v}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!m,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},32965:function(O,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleSimple:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.exterior_status,i=a.chamber_pressure,c=a.processing,f=a.interior_status,m={interior_status:f,exterior_status:l},v=[{minValue:0,maxValue:202,value:i,label:"Chamber Pressure",textValue:i+" kPa",color:function(E){return E<80||E>120?"bad":E<95||E>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:v}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:m}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!c,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},74390:function(O,u,n){"use strict";n.r(u),n.d(u,{DockingConsoleMulti:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)().data,d=g.docking_status;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Docking Status",children:(0,e.jsx)(r.DockStatus,{docking_status:d,override_enabled:!1})}),(0,e.jsx)(t.wn,{title:"Airlocks",children:g.airlocks.length?(0,e.jsx)(t.Ki,{children:g.airlocks.map(function(a){return(0,e.jsx)(t.Ki.Item,{color:a.override_enabled?"bad":"good",label:a.name,children:a.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},a.name)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(t.In,{name:"door-closed",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})}},75355:function(O,u,n){"use strict";n.r(u),n.d(u,{DockingConsoleSimple:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.exterior_status,i=a.override_enabled,c=a.docking_status;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!i,onClick:function(){return d("force_door")},children:"Force exterior door"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:i?"red":"",onClick:function(){return d("toggle_override")},children:"Override"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(r.DockStatus,{docking_status:c,override_enabled:i})}),(0,e.jsx)(r.DockingStatus,{state:l.state})]})})}},77506:function(O,u,n){"use strict";n.r(u),n.d(u,{DoorAccessConsole:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.interior_status,l=d.exterior_status,i=a.state==="open"||l.state==="closed",c=l.state==="open"||a.state==="closed";return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:i?"arrow-left":"exclamation-triangle",onClick:function(){g(i?"cycle_ext_door":"force_ext")},children:i?"Cycle To Exterior":"Lock Exterior Door"}),(0,e.jsx)(t.$n,{icon:c?"arrow-right":"exclamation-triangle",onClick:function(){g(c?"cycle_int_door":"force_int")},children:c?"Cycle To Interior":"Lock Interior Door"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Exterior Door Status",children:l.state==="closed"?"Locked":"Open"}),(0,e.jsx)(t.Ki.Item,{label:"Interior Door Status",children:a.state==="closed"?"Locked":"Open"})]})})}},64894:function(O,u,n){"use strict";n.r(u),n.d(u,{DockStatus:function(){return l},DockingStatus:function(){return g},EscapePodControls:function(){return a},EscapePodStatus:function(){return x},StandardControls:function(){return s},StatusDisplay:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var c=i.bars;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsx)(t.Ki,{children:c.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.label,children:(0,e.jsx)(t.z2,{color:f.color(f.value),minValue:f.minValue,maxValue:f.maxValue,value:f.value,children:f.textValue})},f.label)})})})},s=function(i){var c=(0,o.Oc)().act,f=i.status_range,m=i.pressure_range,v=i.airlock_disabled,E=f||{},j=E.interior_status,C=E.exterior_status,P=m||{},M=P.external_pressure,_=P.internal_pressure,S=P.chamber_pressure,T=!0;j&&j.state==="open"?T=!1:M&&S&&(T=!(Math.abs(M-S)>5));var b=!0;return C&&C.state==="open"?b=!1:_&&S&&(b=!(Math.abs(_-S)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:v,icon:"arrow-left",onClick:function(){return c("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(t.$n,{disabled:v,icon:"arrow-right",onClick:function(){return c("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:v,color:T?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n.Confirm,{disabled:v,color:b?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("force_int")},children:"Force Interior Door"})]})]})},x=function(i){var c=i.exterior_status,f=i.docking_status,m=i.armed,v={docked:(0,e.jsx)(d,{armed:m}),undocking:(0,e.jsx)(t.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(t.az,{color:"good",children:"INITIALIZING..."})};return(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Escape Pod Status",children:v[f]}),(0,e.jsx)(g,{state:c.state})]})})},g=function(i){var c=i.state,f=[];return f.open=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}),f.unlocked=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}),f.locked=(0,e.jsx)(t.az,{color:"good",children:"SECURED"}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:f[c]||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})})},d=function(i){var c=i.armed;return c?(0,e.jsx)(t.az,{color:"average",children:"ARMED"}):(0,e.jsx)(t.az,{color:"good",children:"SYSTEMS OK"})},a=function(i){var c=(0,o.Oc)().act,f=i.docking_status,m=i.override_enabled;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:!m,icon:"exclamation-triangle",color:f!=="docked"?"bad":"",onClick:function(){return c("force_door")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n,{selected:m,color:f!=="docked"?"bad":"average",icon:"exclamation-triangle",onClick:function(){return c("toggle_override")},children:"Override"})]})},l=function(i){var c=i.docking_status,f=i.override_enabled,m={docked:(0,e.jsx)(t.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(t.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(t.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"NOT IN USE"})},v=m[c];return f&&(v=(0,e.jsxs)(t.az,{color:"bad",children:[c.toUpperCase(),"-OVERRIDE ENABLED"]})),v}},83783:function(O,u,n){"use strict";n.r(u),n.d(u,{EscapePodBerthConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)().data,d=g.exterior_status,a=g.docking_status,l=g.armed,i=g.override_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:d,docking_status:a,armed:l}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsx)(r.EscapePodControls,{docking_status:a,override_enabled:i})})]})}},13802:function(O,u,n){"use strict";n.r(u),n.d(u,{EscapePodConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.exterior_status,i=a.docking_status,c=a.override_enabled,f=a.armed,m=a.can_force;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:l,docking_status:i,armed:f}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.EscapePodControls,{docking_status:i,override_enabled:c}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:f,color:f?"bad":"average",onClick:function(){return d("manual_arm")},children:"ARM"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!m,color:"bad",onClick:function(){return d("force_launch")},children:"MANUAL EJECT"})]})]})]})}},84323:function(O,u,n){"use strict";n.r(u),n.d(u,{EmbeddedController:function(){return f}});var e=n(20462),o=n(7081),t=n(15581),r=n(27133),s=n(34012),x=n(29935),g=n(32965),d=n(74390),a=n(75355),l=n(77506),i=n(83783),c=n(13802),f=function(m){var v=(0,o.Oc)().data,E=v.internalTemplateName,j={};j.AirlockConsoleAdvanced=(0,e.jsx)(r.AirlockConsoleAdvanced,{}),j.AirlockConsoleSimple=(0,e.jsx)(g.AirlockConsoleSimple,{}),j.AirlockConsolePhoron=(0,e.jsx)(x.AirlockConsolePhoron,{}),j.AirlockConsoleDocking=(0,e.jsx)(s.AirlockConsoleDocking,{}),j.DockingConsoleSimple=(0,e.jsx)(a.DockingConsoleSimple,{}),j.DockingConsoleMulti=(0,e.jsx)(d.DockingConsoleMulti,{}),j.DoorAccessConsole=(0,e.jsx)(l.DoorAccessConsole,{}),j.EscapePodConsole=(0,e.jsx)(c.EscapePodConsole,{}),j.EscapePodBerthConsole=(0,e.jsx)(i.EscapePodBerthConsole,{});var C=j[E];if(!C)throw Error("Unable to find Component for template name: "+E);return(0,e.jsx)(t.p8,{width:450,height:340,children:(0,e.jsx)(t.p8.Content,{children:C})})}},2076:function(O,u,n){"use strict";n.r(u)},26356:function(O,u,n){"use strict";n.r(u),n.d(u,{DisplayDetails:function(){return d},EntityNarrate:function(){return x},EntitySelection:function(){return g},ModeSelector:function(){return a},NarrationInput:function(){return l}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data;return(0,e.jsx)(s.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(g,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(d,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(a,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(l,{})})]})})})]})})})})},g=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.selection_mode,E=m.multi_id_selection,j=m.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:v,onClick:function(){return f("change_mode_multi")},children:"Multi-Selection"}),children:(0,e.jsx)(r.tU,{vertical:!0,children:j.map(function(C){return(0,e.jsx)(r.tU.Tab,{selected:E.includes(C),onClick:function(){return f("select_entity",{id_selected:C})},children:(0,e.jsx)(r.az,{inline:!0,children:C})},C)})})})})})},d=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.selection_mode,E=m.number_mob_selected,j=m.selected_id,C=m.selected_name,P=m.selected_type;return v?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",E]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",j," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",P," ",(0,e.jsx)("br",{})]})},a=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.privacy_select,E=m.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_privacy")},selected:v,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(v?"Click here to disable subtle mode":"Click here to enable subtle mode"),children:v?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_narration")},selected:E,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(E?"Click here to emote visibly.":"Click here to talk audiably."),children:E?"Currently: Emoting":"Currently: Talking"})})]})},l=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=(0,o.useState)(""),E=v[0],j=v[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return f("narrate",{message:E})},children:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(C,P){return j(P)},value:E||""})})})})}},63183:function(O,u,n){"use strict";n.r(u),n.d(u,{ExonetNode:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,i=a.allowPDAs,c=a.allowCommunicators,f=a.allowNewscasters,m=a.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("toggle_power")},children:"Power "+(l?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:i,onClick:function(){return d("toggle_PDA_port")},children:i?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("toggle_communicator_port")},children:c?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return d("toggle_newscaster_port")},children:f?"Open":"Closed"})})]})}),(0,e.jsx)(t.wn,{title:"Logging",children:(0,e.jsxs)(t.so,{wrap:"wrap",children:[m.map(function(v,E){return(0,e.jsx)(t.so.Item,{m:"2px",basis:"49%",grow:E%2,children:v},E)}),!m||m.length===0?(0,e.jsx)(t.az,{color:"average",children:"No logs found."}):null]})})]})})}},2858:function(O,u,n){"use strict";n.r(u),n.d(u,{MaterialAmount:function(){return i},Materials:function(){return l}});var e=n(20462),o=n(4089),t=n(65380),r=n(61282),s=n(7081),x=n(88569),g=n(41242),d=n(51890),a=function(c){var f=(0,s.Oc)().act,m=c.material,v=m.name,E=m.removable,j=m.sheets,C=(0,s.QY)("remove_mats_"+v,1),P=C[0],M=C[1];return P>1&&j0});return P.length===0?(0,e.jsxs)(x.az,{textAlign:"center",children:[(0,e.jsx)(x.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(x.so,{wrap:"wrap",children:P.map(function(M){return(0,e.jsxs)(x.so.Item,{width:"80px",children:[(0,e.jsx)(i,{name:M.name,amount:M.amount,formatsi:!0}),!E&&(0,e.jsx)(x.az,{mt:1,style:{textAlign:"center"},children:(0,e.jsx)(a,{material:M})})]},M.name)||""})})},i=function(c){var f=c.name,m=c.amount,v=c.formatsi,E=c.formatmoney,j=c.color,C=c.style,P="0";return m<1&&m>0?P=(0,o.Mg)(m,2):v?P=(0,g.QL)(m,0):E?P=(0,g.up)(m):P=m.toString(),(0,e.jsxs)(x.so,{direction:"column",align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.m_,{position:"bottom",content:(0,r.Sn)(f),children:(0,e.jsx)(x.az,{className:(0,t.Ly)(["sheetmaterials32x32",d.MATERIAL_KEYS[f]]),position:"relative",style:C})})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{textColor:j,style:{textAlign:"center"},children:P})})]})}},61763:function(O,u,n){"use strict";n.r(u),n.d(u,{PartLists:function(){return a},PartSets:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(51890),x=n(42878),g=n(2858),d=function(i){var c=(0,t.Oc)().data,f=c.partSets,m=f===void 0?[]:f,v=c.buildableParts,E=v===void 0?[]:v,j=(0,t.QY)("part_tab",m.length?E[0]:""),C=j[0],P=j[1];return(0,e.jsx)(r.tU,{vertical:!0,children:m.map(function(M){return!!E[M]&&(0,e.jsx)(r.tU.Tab,{selected:M===C,onClick:function(){return P(M)},children:M},M)})})},a=function(i){var c=(0,t.Oc)().data,f=c.partSets,m=f===void 0?[]:f,v=c.buildableParts,E=v===void 0?[]:v,j=i.queueMaterials,C=i.materials,P=(0,t.QY)("part_tab",(0,x.getFirstValidPartSet)(m,E)),M=P[0],_=P[1],S=(0,t.QY)("search_text",""),T=S[0],b=S[1];if(!M||!E[M]){var L=(0,x.getFirstValidPartSet)(m,E);if(L)_(L);else return}var W={Parts:[]},k=[];return T?(0,x.searchFilter)(T,E).forEach(function($){$.format=(0,x.partCondFormat)(C,j,$),k.push($)}):(W={Parts:[]},E[M].forEach(function($){if($.format=(0,x.partCondFormat)(C,j,$),!$.subCategory){W.Parts.push($);return}$.subCategory in W||(W[$.subCategory]=[]),W[$.subCategory].push($)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{mr:1,children:(0,e.jsx)(r.In,{name:"search"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:T,onInput:function($,w){return b(w)}})})]})}),!!T&&(0,e.jsx)(l,{name:"Search Results",parts:k,forceShow:!0,placeholder:"No matching results..."})||Object.keys(W).map(function($){return(0,e.jsx)(l,{name:$,parts:W[$]},$)})]})},l=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.buildingPart,E=i.parts,j=i.name,C=i.forceShow,P=i.placeholder,M=(0,t.QY)("display_mats",!1),_=M[0];return(!!E.length||C)&&(0,e.jsxs)(r.wn,{title:j,buttons:(0,e.jsx)(r.$n,{disabled:!E.length,color:"good",icon:"plus-circle",onClick:function(){return f("add_queue_set",{part_list:E.map(function(S){return S.id})})},children:"Queue All"}),children:[!E.length&&P,E.map(function(S){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{disabled:!!v||S.format.textColor===s.COLOR_BAD,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return f("build_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return f("add_queue_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{inline:!0,textColor:s.COLOR_KEYS[S.format.textColor],children:S.name})}),(0,e.jsx)(r.so.Item,{grow:1}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"question-circle",color:"transparent",height:"20px",tooltip:"Build Time: "+S.printTime+"s. "+(S.desc||""),tooltipPosition:"left"})})]}),_&&(0,e.jsx)(r.so,{mb:2,children:Object.keys(S.cost).map(function(T){return(0,e.jsx)(r.so.Item,{width:"50px",color:s.COLOR_KEYS[S.format[T].color],children:(0,e.jsx)(g.MaterialAmount,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:T,amount:S.cost[T]})},T)})})]},S.name)})]})}},46372:function(O,u,n){"use strict";n.r(u),n.d(u,{Queue:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),s=n(51890),x=n(2858),g=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.isProcessingQueue,E=m.queue,j=E===void 0?[]:E,C=i.queueMaterials,P=i.missingMaterials,M=i.textColors,_=!j||!j.length;return(0,e.jsxs)(t.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(t.so.Item,{height:0,grow:1,children:(0,e.jsx)(t.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:_,color:"bad",icon:"minus-circle",onClick:function(){return f("clear_queue")},children:"Clear Queue"}),!!v&&(0,e.jsx)(t.$n,{disabled:_,icon:"stop",onClick:function(){return f("stop_queue")},children:"Stop"})||(0,e.jsx)(t.$n,{disabled:_,icon:"play",onClick:function(){return f("build_queue")},children:"Build Queue"})]}),children:(0,e.jsxs)(t.so,{direction:"column",height:"100%",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(l,{})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(a,{textColors:M})})]})})}),!_&&(0,e.jsx)(t.so.Item,{mt:1,children:(0,e.jsx)(t.wn,{title:"Material Cost",children:(0,e.jsx)(d,{queueMaterials:C,missingMaterials:P})})})]})},d=function(i){var c=i.queueMaterials,f=i.missingMaterials;return(0,e.jsx)(t.so,{wrap:"wrap",children:Object.keys(c).map(function(m){return(0,e.jsxs)(t.so.Item,{width:"12%",children:[(0,e.jsx)(x.MaterialAmount,{formatmoney:!0,name:m,amount:c[m]}),!!f[m]&&(0,e.jsx)(t.az,{textColor:"bad",style:{textAlign:"center"},children:(0,r.up)(f[m])})]},m)})})},a=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=i.textColors,E=m.queue,j=E===void 0?[]:E;return!j||!j.length?(0,e.jsx)(e.Fragment,{children:"No parts in queue."}):j.map(function(C,P){return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(t.so.Item,{basis:"content",children:(0,e.jsx)(t.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return f("del_queue_part",{index:P+1})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{inline:!0,textColor:s.COLOR_KEYS[v[P]],children:C.name})})]})},C.name)})},l=function(i){var c=(0,o.Oc)().data,f=c.buildingPart,m=c.storedPart;if(m)return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:m}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:"Fabricator outlet obstructed..."})]})})});if(f){var v=f.name,E=f.duration,j=f.printTime,C=Math.ceil(E/10);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:j,value:E,children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:v}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:C>=0&&C+"s"||"Dispensing..."})]})})})}}},51890:function(O,u,n){"use strict";n.r(u),n.d(u,{COLOR_AVERAGE:function(){return t},COLOR_BAD:function(){return r},COLOR_KEYS:function(){return x},COLOR_NONE:function(){return o},MATERIAL_KEYS:function(){return e}});var e={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},o=0,t=1,r=2,s,x=(s={},s[o]=void 0,s[t]="average",s[r]="bad",s)},42878:function(O,u,n){"use strict";n.r(u),n.d(u,{getFirstValidPartSet:function(){return c},materialArrayToObj:function(){return g},partBuildColor:function(){return d},partCondFormat:function(){return a},queueCondFormat:function(){return l},searchFilter:function(){return i}});var e=n(7402),o=n(61282),t=n(51890);function r(f,m){(m==null||m>f.length)&&(m=f.length);for(var v=0,E=new Array(m);v=f.length?{done:!0}:{done:!1,value:f[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(f){var m={};return f.forEach(function(v){m[v.name]=v.amount}),m}function d(f,m,v){return f>v?{color:t.COLOR_BAD,deficit:f-v}:m>v?{color:t.COLOR_AVERAGE,deficit:f}:f+m>v?{color:t.COLOR_AVERAGE,deficit:f+m-v}:{color:t.COLOR_NONE,deficit:0}}function a(f,m,v){var E={textColor:t.COLOR_NONE};return Object.keys(v.cost).forEach(function(j){E[j]=d(v.cost[j],m[j],f[j]),E[j].color>E.textColor&&(E.textColor=E[j].color)}),E}function l(f,m){var v={},E={},j={},C={};return m&&m.forEach(function(P,M){C[M]=t.COLOR_NONE,Object.keys(P.cost).forEach(function(_){v[_]=v[_]||0,j[_]=j[_]||0,E[_]=d(P.cost[_],v[_],f[_]),E[_].color!==t.COLOR_NONE?C[M]=100?c="Running":!l&&i>0&&(c="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",confirmContent:l?"This will disable gravity!":"This will enable gravity!",onClick:function(){return d("gentoggle")},children:"Toggle Breaker"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Breaker Setting",children:l?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",children:["Generator ",c]}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Status",children:[i,"%"]})]})})})})}},88941:function(O,u,n){"use strict";n.r(u),n.d(u,{GuestPass:function(){return x}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.area,c=l.giver,f=l.giveName,m=l.reason,v=l.duration,E=l.mode,j=l.log,C=l.uid;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:E===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",selected:!0,onClick:function(){return a("mode",{mode:0})},children:"Activity Log"}),children:[(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return a("print")},fluid:!0,mb:1,children:"Print"}),(0,e.jsx)(r.wn,{title:"Logs",children:j.length&&j.map(function(P){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P}},P)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+C,buttons:(0,e.jsx)(r.$n,{icon:"scroll",onClick:function(){return a("mode",{mode:1})},children:"Activity Log"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{onClick:function(){return a("id")},children:c||"Insert ID"})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{onClick:function(){return a("giv_name")},children:f})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{onClick:function(){return a("reason")},children:m})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{onClick:function(){return a("duration")},children:v})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,onClick:function(){return a("issue")},children:"Issue Pass"}),(0,e.jsx)(r.wn,{title:"Access",children:(0,o.Ul)(i,function(P){return P.area_name}).map(function(P){return(0,e.jsx)(r.$n.Checkbox,{checked:P.on,onClick:function(){return a("access",{access:P.area})},children:P.area_name},P.area)})})]})})})}},52149:function(O,u,n){"use strict";n.r(u),n.d(u,{GyrotronControl:function(){return s},GyrotronControlContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.gyros;return(0,e.jsx)(t.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(t.XI.Cell,{children:"Strength"})]}),i.map(function(c){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsxs)(t.XI.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c.active,disabled:!c.deployed,onClick:function(){return a("toggle_active",{gyro:c.ref})},children:c.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!c.active&&"yellow",value:c.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(f,m){return a("set_rate",{gyro:c.ref,rate:m})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!c.active&&"yellow",value:c.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(f,m){return a("set_str",{gyro:c.ref,str:m})}})})]},c.name)})]})})}},44791:function(O,u,n){"use strict";n.r(u),n.d(u,{Holodeck:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.supportedPrograms,i=a.restrictedPrograms,c=a.currentProgram,f=a.isSilicon,m=a.safetyDisabled,v=a.emagged,E=a.gravity,j=l;return m&&(j=j.concat(i)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:j.map(function(C){return(0,e.jsx)(t.$n,{color:i.indexOf(C)!==-1?"bad":null,icon:"eye",selected:c===C,fluid:!0,onClick:function(){return d("program",{program:C})},children:C},C)})}),!!f&&(0,e.jsx)(t.wn,{title:"Override",children:(0,e.jsxs)(t.$n,{icon:"exclamation-triangle",fluid:!0,disabled:v,color:m?"good":"bad",onClick:function(){return d("AIoverride")},children:[!!v&&"Error, unable to control. ",m?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:m?(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(t.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{icon:"user-astronaut",selected:E,onClick:function(){return d("gravity")},children:E?"Enabled":"Disabled"})})]})})]})})}},83860:function(O,u,n){"use strict";n.r(u),n.d(u,{ICAssembly:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=function(a){var l=(0,t.Oc)().data,i=l.total_parts,c=l.max_components,f=l.total_complexity,m=l.max_complexity,v=l.battery_charge,E=l.battery_max,j=l.net_power,C=l.unremovable_circuits,P=l.removable_circuits;return(0,e.jsx)(x.p8,{width:600,height:380,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:i/c,maxValue:1,children:i+" / "+c+" ("+(0,o.Mg)(i/c*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:f/m,maxValue:1,children:f+" / "+m+" ("+(0,o.Mg)(f/m*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:v&&(0,e.jsx)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:v/E,maxValue:1,children:v+" / "+E+" ("+(0,o.Mg)(v/E*100,1)+"%)"})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:j===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:j,format:function(M){return"-"+(0,s.d5)(Math.abs(M))+"/s"}})})]})}),C.length&&(0,e.jsx)(d,{title:"Built-in Components",circuits:C})||null,P.length&&(0,e.jsx)(d,{title:"Removable Components",circuits:P})||null]})})},d=function(a){var l=(0,t.Oc)().act,i=a.title,c=a.circuits;return(0,e.jsx)(r.wn,{title:i,children:(0,e.jsx)(r.Ki,{children:c.map(function(f){return(0,e.jsxs)(r.Ki.Item,{label:f.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("open_circuit",{ref:f.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("rename_circuit",{ref:f.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("scan_circuit",{ref:f.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("remove_circuit",{ref:f.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("bottom_circuit",{ref:f.ref})},children:"Move to Bottom"})]},f.ref)})})})}},23343:function(O,u,n){"use strict";n.r(u),n.d(u,{ICCircuit:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(41242),x=n(15581),g=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.desc,v=f.displayed_name,E=f.complexity,j=f.power_draw_idle,C=f.power_draw_per_use,P=f.extended_desc,M=f.inputs,_=f.outputs,S=f.activators;return(0,e.jsx)(x.p8,{width:600,height:400,title:v,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return c("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return c("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return c("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:E}),j&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,s.d5)(j)})||null,C&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,s.d5)(C)})||null]}),P]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[M.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(d,{list:M})})})||null,(0,e.jsx)(r.so.Item,{basis:M.length&&_.length?"33%":M.length||_.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:v,mb:1,children:(0,e.jsx)(r.az,{children:m})})}),_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(d,{list:_})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:S.map(function(T){return(0,e.jsxs)(r.Ki.Item,{label:T.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("pin_name",{pin:T.ref})},children:T.pulse_out?"":""}),(0,e.jsx)(a,{pin:T})]},T.name)})})]})]})})},d=function(l){var i=(0,t.Oc)().act,c=l.list;return c.map(function(f){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return i("pin_name",{pin:f.ref})},children:[(0,o.jT)(f.type),": ",f.name]}),(0,e.jsx)(r.$n,{onClick:function(){return i("pin_data",{pin:f.ref})},children:f.data}),(0,e.jsx)(a,{pin:f})]},f.ref)})},a=function(l){var i=(0,t.Oc)().act,c=l.pin;return c.linked.map(function(f){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return i("pin_unwire",{pin:c.ref,link:f.ref})},children:f.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return i("examine",{ref:f.holder_ref})},children:f.holder_name})]},f.ref)})}},87134:function(O,u,n){"use strict";n.r(u),n.d(u,{ICDetailer:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.detail_color,c=l.color_list;return(0,e.jsx)(s.p8,{width:420,height:254,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(c).map(function(f,m){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,o.Sn)(f),tooltipPosition:m%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return a("change_color",{color:f})},style:c[f]===i?{border:"4px solid black",borderRadius:"0"}:{borderRadius:"0"},backgroundColor:c[f]},f)})})})})}},92306:function(O,u,n){"use strict";n.r(u),n.d(u,{ICPrinter:function(){return x}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),x=function(a){var l=(0,t.Oc)().data,i=l.metal,c=l.max_metal,f=l.metal_per_sheet,m=l.upgraded,v=l.can_clone;return(0,e.jsx)(s.p8,{width:600,height:630,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:i,maxValue:c,children:[i/f," / ",c/f," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:m?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:v?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(d,{})]})})};function g(a,l){return!(!a.can_build||a.cost>l.metal)}var d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.categories,m=(0,t.QY)("categoryTarget",""),v=m[0],E=m[1],j=(0,o.pb)(f,function(C){return C.name===v})[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,o.Ul)(f,function(C){return C.name}).map(function(C){return(0,e.jsx)(r.tU.Tab,{selected:v===C.name,onClick:function(){return E(C.name)},children:C.name},C.name)})})}),(0,e.jsx)(r.BJ.Item,{children:j?(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,o.Ul)(j.items,function(C){return C.name}).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,labelColor:C.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!g(C,c),icon:"print",onClick:function(){return i("build",{build:C.path})},children:"Print"}),children:C.desc},C.name)})})}):(0,e.jsx)(r.az,{children:"No category selected."})})]})})}},98309:function(O,u,n){"use strict";n.r(u),n.d(u,{IDCard:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(10921),x=function(g){var d=(0,o.Oc)().data,a=d.registered_name,l=d.sex,i=d.species,c=d.age,f=d.assignment,m=d.fingerprint_hash,v=d.blood_type,E=d.dna_hash,j=d.photo_front,C=[{name:"Sex",val:l},{name:"Species",val:i},{name:"Age",val:c},{name:"Blood Type",val:v},{name:"Fingerprint",val:m},{name:"DNA Hash",val:E}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(t.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:j&&(0,e.jsx)(t._V,{src:j.substring(1,j.length-1),style:{width:"300px",marginLeft:"-94px"}})||(0,e.jsx)(t.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(t.so.Item,{basis:0,grow:1,children:(0,e.jsx)(t.Ki,{children:C.map(function(P){return(0,e.jsx)(t.Ki.Item,{label:P.name,children:P.val},P.name)})})})]}),(0,e.jsxs)(t.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:a})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(s.RankIcon,{color:"",rank:f})})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:f})})]})]})})})}},39841:function(O,u,n){"use strict";n.r(u),n.d(u,{IdentificationComputer:function(){return a},IdentificationComputerAccessModification:function(){return c},IdentificationComputerContent:function(){return l},IdentificationComputerPrinting:function(){return i},IdentificationComputerRegions:function(){return f}});var e=n(20462),o=n(7402),t=n(61282),r=n(61358),s=n(7081),x=n(88569),g=n(15581),d=n(58044),a=function(){return(0,e.jsx)(g.p8,{width:600,height:700,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(l,{})})})},l=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,C=m.ntos,P=j.mode,M=j.has_modify,_=j.printing,S=j.have_id_slot,T=j.have_printer,b=(0,e.jsx)(c,{ntos:C});return C&&!S?b=(0,e.jsx)(d.CrewManifestContent,{}):_?b=(0,e.jsx)(i,{}):P===1&&(b=(0,e.jsx)(d.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(x.tU,{children:[(!C||!!S)&&(0,e.jsx)(x.tU.Tab,{icon:"home",selected:P===0,onClick:function(){return E("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(x.tU.Tab,{icon:"home",selected:P===1,onClick:function(){return E("mode",{mode_target:1})},children:"Crew Manifest"}),!C||!!T&&(0,e.jsx)(x.tU.Tab,{style:{float:"right"},icon:"print",onClick:function(){return(P||M)&&E("print")},color:!P&&!M?"transparent":"",children:"Print"})]}),b]})},i=function(m){return(0,e.jsx)(x.wn,{title:"Printing",children:"Please wait..."})},c=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,C=m.ntos,P=j.station_name,M=j.target_name,_=j.target_owner,S=_===void 0?"":_,T=j.scan_name,b=j.authenticated,L=j.has_modify,W=j.account_number,k=W===void 0?"":W,$=j.centcom_access,w=j.all_centcom_access,V=j.id_rank,F=j.departments;return(0,e.jsxs)(x.wn,{title:"Access Modification",children:[!b&&(0,e.jsx)(x.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(x.Ki,{children:[(0,e.jsx)(x.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(x.$n,{icon:"eject",fluid:!0,onClick:function(){return E("modify")},children:M})}),!C&&(0,e.jsx)(x.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(x.$n,{icon:"eject",fluid:!0,onClick:function(){return E("scan")},children:T})})]}),!!b&&!!L&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.wn,{title:"Details",children:(0,e.jsxs)(x.Ki,{children:[(0,e.jsx)(x.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(x.pd,{value:S,fluid:!0,onInput:function(X,Z){return E("reg",{reg:Z})}})}),(0,e.jsx)(x.Ki.Item,{label:"Account Number",children:(0,e.jsx)(x.pd,{value:k,fluid:!0,onInput:function(X,Z){return E("account",{account:Z})}})}),(0,e.jsx)(x.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(x.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,confirmContent:"You are dismissing "+S+", confirm?",onClick:function(){return E("terminate")},children:"Dismiss "+S})})]})}),(0,e.jsx)(x.wn,{title:"Assignment",children:(0,e.jsxs)(x.XI,{children:[F.map(function(X){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(x.XI.Row,{children:[(0,e.jsx)(x.XI.Cell,{header:!0,verticalAlign:"middle",children:X.department_name}),(0,e.jsx)(x.XI.Cell,{children:X.jobs.map(function(Z){return(0,e.jsx)(x.$n,{selected:Z.job===V,onClick:function(){return E("assign",{assign_target:Z.job})},children:(0,t.jT)(Z.display_name)},Z.job)})})]}),(0,e.jsx)(x.az,{mt:-1,children:"\xA0"})," "]},X.department_name)}),(0,e.jsxs)(x.XI.Row,{children:[(0,e.jsx)(x.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(x.XI.Cell,{children:(0,e.jsx)(x.$n,{onClick:function(){return E("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!$&&(0,e.jsx)(x.wn,{title:"Central Command",children:w.map(function(X){return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.$n,{fluid:!0,selected:X.allowed,onClick:function(){return E("access",{access_target:X.ref,allowed:X.allowed})},children:(0,t.jT)(X.desc)})},X.ref)})})||(0,e.jsx)(x.wn,{title:P,children:(0,e.jsx)(f,{actName:"access"})})]})]})},f=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,C=m.actName,P=j.regions;return(0,e.jsx)(x.so,{wrap:"wrap",spacing:1,children:P&&(0,o.Ul)(P,function(M){return M.name}).map(function(M){return(0,e.jsx)(x.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(x.wn,{title:M.name,height:"100%",children:(0,o.Ul)(M.accesses,function(_){return _.desc}).map(function(_){return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.$n,{fluid:!0,selected:_.allowed,onClick:function(){return E(C,{access_target:_.ref,allowed:_.allowed})},children:(0,t.jT)(_.desc)})},_.ref)})})},M.name)})})}},15450:function(O,u,n){"use strict";n.r(u),n.d(u,{InventoryPanel:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.slots,i=a.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:l&&l.length&&l.map(function(c){return(0,e.jsx)(t.Ki.Item,{label:c.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:c.item?"hand-paper":"gift",onClick:function(){return d(c.act)},children:c.item||"Nothing"})},c.name)})})}),i&&(0,e.jsx)(t.wn,{title:"Actions",children:i&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("internals")},children:"Set Internals"})||null})||null]})})}},66855:function(O,u,n){"use strict";n.r(u),n.d(u,{InventoryPanelHuman:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.slots,i=a.specialSlots,c=a.internalsValid,f=a.sensors,m=a.handcuffed,v=a.handcuffedParams,E=a.legcuffed,j=a.legcuffedParams,C=a.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[l&&l.length&&l.map(function(P){return(0,e.jsx)(t.Ki.Item,{label:P.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:P.item?"hand-paper":"gift",onClick:function(){return d(P.act,P.params)},children:P.item||"Nothing"})},P.name)}),(0,e.jsx)(t.Ki.Divider,{}),i&&i.length&&i.map(function(P){return(0,e.jsx)(t.Ki.Item,{label:P.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:P.item?"hand-paper":"gift",onClick:function(){return d(P.act,P.params)},children:P.item||"Nothing"})},P.name)})]})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"running",onClick:function(){return d("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return d("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"socks",onClick:function(){return d("targetSlot",{slot:"underwear"})},children:"Remove or Replace Underwear"}),c&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,f&&(0,e.jsx)(t.$n,{fluid:!0,icon:"book-medical",onClick:function(){return d("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,m&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",v)},children:"Handcuffed"})||null,E&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",j)},children:"Legcuffed"})||null,C&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},42592:function(O,u,n){"use strict";n.r(u),n.d(u,{IsolationCentrifuge:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.busy,i=a.antibodies,c=a.pathogens,f=a.is_antibody_sample,m=a.sample_inserted,v=(0,e.jsx)(t.az,{color:"average",children:"No vial detected."});return m&&(!i&&!c?v=(0,e.jsx)(t.az,{color:"average",children:"No antibodies or viral strains detected."}):v=(0,e.jsxs)(e.Fragment,{children:[i?(0,e.jsx)(t.wn,{title:"Antibodies",children:i}):"",c.length?(0,e.jsx)(t.wn,{title:"Pathogens",children:(0,e.jsx)(t.Ki,{children:c.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.name,children:E.spread_type},E.name)})})}):""]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l?(0,e.jsx)(t.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:l})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:f?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"print",disabled:!i&&!c.length,onClick:function(){return d("print")},children:"Print"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!m,onClick:function(){return d("sample")},children:"Eject Vial"})})]}),v]}),i&&!f||c.length?(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[i&&!f?(0,e.jsx)(t.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("antibody")},children:i})}):"",c.length?(0,e.jsx)(t.Ki.Item,{label:"Isolate Strain",children:c.map(function(E){return(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("isolate",{isolate:E.reference})},children:E.name},E.name)})}):""]})}):""]})})})}},40939:function(O,u,n){"use strict";n.r(u),n.d(u,{JanitorCart:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.mybag,f=i.mybucket,m=i.mymop,v=i.myspray,E=i.myreplacer,j=i.signs;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:c||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?void 0:"2px solid grey"},onClick:function(){return l("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:f||"Bucket Slot",tooltipPosition:"bottom",color:f?"grey":"transparent",style:{border:f?void 0:"2px solid grey"},onClick:function(){return l("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?void 0:"2px solid grey"},onClick:function(){return l("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:v||"Spray Slot",tooltipPosition:"top-end",color:v?"grey":"transparent",style:{border:v?void 0:"2px solid grey"},onClick:function(){return l("spray")},children:(0,e.jsx)(g,{iconkey:"myspray"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:E||"Light Replacer Slot",tooltipPosition:"top",color:E?"grey":"transparent",style:{border:E?void 0:"2px solid grey"},onClick:function(){return l("replacer")},children:(0,e.jsx)(g,{iconkey:"myreplacer"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:j||"Signs Slot",tooltipPosition:"top-start",color:j?"grey":"transparent",style:{border:j?void 0:"2px solid grey"},onClick:function(){return l("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},x={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(d){var a=(0,o.Oc)().data,l=d.iconkey,i=a.icons;return l in i?(0,e.jsx)(t._V,{src:i[l].substr(1,i[l].length-1),style:{position:"absolute",left:"0",right:"0",top:"0",bottom:"0",width:"64px",height:"64px"}}):(0,e.jsx)(t.In,{style:{position:"absolute",left:"4px",right:"0",top:"20px",bottom:"0",width:"64px",height:"64px"},fontSize:2,name:x[l]})}},25244:function(O,u,n){"use strict";n.r(u),n.d(u,{Jukebox:function(){return a}});var e=n(20462),o=n(4089),t=n(61282),r=n(61358),s=n(7081),x=n(88569),g=n(41242),d=n(15581),a=function(l){var i=function(){cn&&le("Admin"),nn(!cn)},c=(0,s.Oc)(),f=c.act,m=c.data,v=m.playing,E=m.loop_mode,j=m.volume,C=m.current_track_ref,P=m.current_track,M=m.current_genre,_=m.percent,S=m.tracks,T=m.admin,b=S.length&&S.reduce(function(be,sn){var _n=sn.genre||"Uncategorized";return be[_n]||(be[_n]=[]),be[_n].push(sn),be},{}),L=v&&(M||"Uncategorized"),W=(0,r.useState)("Unknown"),k=W[0],$=W[1],w=(0,r.useState)(""),V=w[0],F=w[1],X=(0,r.useState)(0),Z=X[0],te=X[1],J=(0,r.useState)("Unknown"),Q=J[0],Y=J[1],G=(0,r.useState)("Admin"),ee=G[0],le=G[1],ie=(0,r.useState)(!1),de=ie[0],ve=ie[1],Te=(0,r.useState)(!1),Ce=Te[0],je=Te[1],$e=(0,r.useState)(!1),cn=$e[0],nn=$e[1];return(0,e.jsx)(d.p8,{width:450,height:600,children:(0,e.jsxs)(d.p8.Content,{scrollable:!0,children:[(0,e.jsx)(x.wn,{title:"Currently Playing",children:(0,e.jsxs)(x.Ki,{children:[(0,e.jsx)(x.Ki.Item,{label:"Title",children:v&&P&&(0,e.jsxs)(x.az,{children:[P.title," by ",P.artist||"Unkown"]})||(0,e.jsx)(x.az,{children:"Stopped"})}),(0,e.jsxs)(x.Ki.Item,{label:"Controls",children:[(0,e.jsx)(x.$n,{icon:"play",disabled:v,onClick:function(){return f("play")},children:"Play"}),(0,e.jsx)(x.$n,{icon:"stop",disabled:!v,onClick:function(){return f("stop")},children:"Stop"})]}),(0,e.jsxs)(x.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(x.$n,{icon:"play",onClick:function(){return f("loopmode",{loopmode:1})},selected:E===1,children:"Next"}),(0,e.jsx)(x.$n,{icon:"random",onClick:function(){return f("loopmode",{loopmode:2})},selected:E===2,children:"Shuffle"}),(0,e.jsx)(x.$n,{icon:"redo",onClick:function(){return f("loopmode",{loopmode:3})},selected:E===3,children:"Repeat"}),(0,e.jsx)(x.$n,{icon:"step-forward",onClick:function(){return f("loopmode",{loopmode:4})},selected:E===4,children:"Once"})]}),(0,e.jsx)(x.Ki.Item,{label:"Progress",children:(0,e.jsx)(x.z2,{value:_,maxValue:1,color:"good"})}),(0,e.jsx)(x.Ki.Item,{label:"Volume",children:(0,e.jsx)(x.Ap,{minValue:0,step:1,value:j*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(be){return(0,o.Mg)(be,1)+"%"},onChange:function(be,sn){return f("volume",{val:(0,o.LI)(sn/100,2)})}})})]})}),(0,e.jsx)(x.wn,{title:"Available Tracks",children:S.length&&Object.keys(b).sort().map(function(be){return(0,t.ZH)(be)!=="Admin"&&(0,e.jsx)(x.Nt,{title:be,color:L===be?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:b[be].map(function(sn){return(0,e.jsx)(x.$n,{fluid:!0,icon:"play",selected:C===sn.ref,onClick:function(){return f("change_track",{change_track:sn.ref})},children:sn.title},sn.ref)})})},be)})||(0,e.jsx)(x.az,{color:"bad",children:"Error: No songs loaded."})}),T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.wn,{title:"Admin Tracks",children:S.length&&Object.keys(b).sort().map(function(be){return(0,t.ZH)(be)==="Admin"&&(0,e.jsx)(x.Nt,{title:be,color:L===be?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:b[be].map(function(sn){return(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{grow:1,children:(0,e.jsx)(x.$n,{fluid:!0,icon:"play",selected:C===sn.ref,onClick:function(){return f("change_track",{change_track:sn.ref})},children:sn.title},sn.ref)}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n.Confirm,{icon:"trash",onClick:function(){return f("remove_new_track",{ref:sn.ref})}})})]},sn.ref)})})},be)})||(0,e.jsx)(x.az,{color:"bad",children:"Error: No songs added."})}),(0,e.jsx)(x.wn,{title:"Admin Options",children:(0,e.jsxs)(x.Nt,{title:"Add Track",children:[(0,e.jsxs)(x.Ki,{children:[(0,e.jsx)(x.Ki.Item,{label:"Title",children:(0,e.jsx)(x.pd,{width:"100%",value:k,onChange:function(be,sn){return $(sn)}})}),(0,e.jsx)(x.Ki.Item,{label:"URL",children:(0,e.jsx)(x.pd,{width:"100%",value:V,onChange:function(be,sn){return F(sn)}})}),(0,e.jsx)(x.Ki.Item,{label:"Playtime",children:(0,e.jsx)(x.Q7,{step:1,value:Z,minValue:0,maxValue:3600,onChange:function(be){return te(be)},format:function(be){return(0,g.fU)((0,o.LI)(be*10,0))}})}),(0,e.jsx)(x.Ki.Item,{label:"Artist",children:(0,e.jsx)(x.pd,{width:"100%",value:Q,onChange:function(be,sn){return Y(sn)}})}),(0,e.jsx)(x.Ki.Item,{label:"Genre",children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{grow:1,children:cn?(0,e.jsx)(x.pd,{width:"100%",value:ee,onChange:function(be,sn){return le(sn)}}):(0,e.jsx)(x.az,{children:ee})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n.Checkbox,{icon:cn?"lock-open":"lock",color:cn?"good":"bad",onClick:function(){return i()}})})]})}),(0,e.jsx)(x.Ki.Item,{label:"Secret",children:(0,e.jsx)(x.$n.Checkbox,{checked:de,onClick:function(){return ve(!de)}})}),(0,e.jsx)(x.Ki.Item,{label:"Lobby",children:(0,e.jsx)(x.$n.Checkbox,{checked:Ce,onClick:function(){return je(!Ce)}})})]}),(0,e.jsx)(x.cG,{}),(0,e.jsx)(x.$n,{disabled:!(k&&V&&Z&&Q&&ee),onClick:function(){return f("add_new_track",{title:k,url:V,duration:Z,artist:Q,genre:ee,secret:de,lobby:Ce})},children:"Add new Track"})]})})]})]})})}},7881:function(O,u,n){"use strict";n.r(u),n.d(u,{LawManager:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581);function s(){return s=Object.assign||function(c){for(var f=1;f=0)&&(m[E]=c[E]);return m}var g=function(c){var f=(0,o.Oc)().data,m=f.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[m?(0,e.jsxs)(t.IC,{info:!0,children:["Law-synced to ",m]}):"",(0,e.jsx)(d,{})]})})},d=function(c){var f=(0,o.QY)("lawsTabIndex",0),m=f[0],v=f[1],E=[];return E[0]=(0,e.jsx)(a,{}),E[1]=(0,e.jsx)(i,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:m===0,onClick:function(){return v(0)},children:"Law Management"}),(0,e.jsx)(t.tU.Tab,{selected:m===1,onClick:function(){return v(1)},children:"Law Sets"})]}),E[m]]})},a=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.ion_law_nr,j=v.ion_law,C=v.zeroth_law,P=v.inherent_law,M=v.supplied_law,_=v.supplied_law_position,S=v.zeroth_laws,T=v.has_zeroth_laws,b=v.ion_laws,L=v.has_ion_laws,W=v.inherent_laws,k=v.has_inherent_laws,$=v.supplied_laws,w=v.has_supplied_laws,V=v.isAI,F=v.isMalf,X=v.isAdmin,Z=v.channel,te=v.channels,J=S.map(function(Q){return Q.zero=!0,Q}).concat(W);return(0,e.jsxs)(t.wn,{children:[L?(0,e.jsx)(l,{laws:b,title:E+" Laws:",mt:-2}):"",T||k?(0,e.jsx)(l,{laws:J,title:"Inherent Laws",mt:-2}):"",w?(0,e.jsx)(l,{laws:$,title:"Supplied Laws",mt:-2}):"",(0,e.jsx)(t.wn,{title:"Controls",mt:-2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Statement Channel",children:te.map(function(Q){return(0,e.jsx)(t.$n,{selected:Z===Q.channel,onClick:function(){return m("law_channel",{law_channel:Q.channel})},children:Q.channel},Q.channel)})}),(0,e.jsx)(t.Ki.Item,{label:"State Laws",children:(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return m("state_laws")},children:"State Laws"})}),V?(0,e.jsx)(t.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(t.$n,{icon:"exclamation",onClick:function(){return m("notify_laws")},children:"Notify"})}):""]})}),F?(0,e.jsx)(t.wn,{title:"Add Laws",mt:-2,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Add"})]}),X&&!T?(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:C,fluid:!0,onChange:function(Q,Y){return m("change_zeroth_law",{val:Y})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_zeroth_law")},children:"Add"})})]}):"",(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:j,fluid:!0,onChange:function(Q,Y){return m("change_ion_law",{val:Y})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Inherent"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:P,fluid:!0,onChange:function(Q,Y){return m("change_inherent_law",{val:Y})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Supplied"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:M,fluid:!0,onChange:function(Q,Y){return m("change_supplied_law",{val:Y})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("change_supplied_law_position")},children:_})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_supplied_law")},children:"Add"})})]})]})}):""]})},l=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.isMalf,j=v.isAdmin,C=c.laws,P=c.title,M=c.noButtons,_=x(c,["laws","title","noButtons"]);return(0,e.jsx)(t.wn,s({title:P},_,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),M?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"State"}),E&&!M?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Delete"})]}):""]}),C.map(function(S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[S.index,"."]}),(0,e.jsx)(t.XI.Cell,{color:S.zero?"bad":void 0,children:S.law}),M?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"volume-up",selected:S.state,onClick:function(){return m("state_law",{ref:S.ref,state_law:!S.state})},children:S.state?"Yes":"No"})}),E&&!M?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:S.zero&&!j,icon:"pen",onClick:function(){return m("edit_law",{edit_law:S.ref})},children:"Edit"})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:S.zero&&!j,color:"bad",icon:"trash",onClick:function(){return m("delete_law",{delete_law:S.ref})},children:"Delete"})})]}):""]},S.index)})]})}))},i=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.isMalf,j=v.law_sets,C=v.ion_law_nr;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),j.length?j.map(function(P){return(0,e.jsxs)(t.wn,{title:P.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!E,icon:"sync",onClick:function(){return m("transfer_laws",{transfer_laws:P.ref})},children:"Load Laws"}),(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return m("state_law_set",{state_law_set:P.ref})},children:"State Laws"})]}),children:[P.laws.has_ion_laws?(0,e.jsx)(l,{noButtons:!0,laws:P.laws.ion_laws,title:C+" Laws:"}):"",P.laws.has_zeroth_laws||P.laws.has_inherent_laws?(0,e.jsx)(l,{noButtons:!0,laws:P.laws.zeroth_laws.concat(P.laws.inherent_laws),title:P.header}):"",P.laws.has_supplied_laws?(0,e.jsx)(l,{noButtons:!0,laws:P.laws.supplied_laws,title:"Supplied Laws"}):""]},P.name)}):""]})}},94979:function(O,u,n){"use strict";n.r(u),n.d(u,{ListInputModal:function(){return a}});var e=n(20462),o=n(61358),t=n(6544),r=n(7081),s=n(88569),x=n(15581),g=n(5335),d=n(44149),a=function(c){var f=(0,r.Oc)(),m=f.act,v=f.data,E=v.items,j=E===void 0?[]:E,C=v.message,P=C===void 0?"":C,M=v.init_value,_=v.large_buttons,S=v.timeout,T=v.title,b=(0,o.useState)(j.indexOf(M)),L=b[0],W=b[1],k=(0,o.useState)(j.length>9),$=k[0],w=k[1],V=(0,o.useState)(""),F=V[0],X=V[1],Z=function(ie){var de=ee.length-1;if(ie===t.R)if(L===null||L===de){var ve;W(0),(ve=document.getElementById("0"))==null||ve.scrollIntoView()}else{var Te;W(L+1),(Te=document.getElementById((L+1).toString()))==null||Te.scrollIntoView()}else if(ie===t.gf)if(L===null||L===0){var Ce;W(de),(Ce=document.getElementById(de.toString()))==null||Ce.scrollIntoView()}else{var je;W(L-1),(je=document.getElementById((L-1).toString()))==null||je.scrollIntoView()}},te=function(ie){ie!==L&&W(ie)},J=function(){w(!1),w(!0)},Q=function(ie){var de=String.fromCharCode(ie),ve=j.find(function(je){return je==null?void 0:je.toLowerCase().startsWith(de==null?void 0:de.toLowerCase())});if(ve){var Te,Ce=j.indexOf(ve);W(Ce),(Te=document.getElementById(Ce.toString()))==null||Te.scrollIntoView()}},Y=function(ie){var de;ie!==F&&(X(ie),W(0),(de=document.getElementById("0"))==null||de.scrollIntoView())},G=function(){w(!$),X("")},ee=j.filter(function(ie){return ie==null?void 0:ie.toLowerCase().includes(F.toLowerCase())}),le=325+Math.ceil(P.length/3)+(_?5:0);return $||setTimeout(function(){var ie;return(ie=document.getElementById(L.toString()))==null?void 0:ie.focus()},1),(0,e.jsxs)(x.p8,{title:T,width:325,height:le,children:[S&&(0,e.jsx)(d.Loader,{value:S}),(0,e.jsx)(x.p8.Content,{onKeyDown:function(ie){var de=window.event?ie.which:ie.keyCode;(de===t.R||de===t.gf)&&(ie.preventDefault(),Z(de)),de===t.Ri&&(ie.preventDefault(),m("submit",{entry:ee[L]})),!$&&de>=t.W8&&de<=t.bh&&(ie.preventDefault(),Q(de)),de===t.s6&&(ie.preventDefault(),m("cancel"))},children:(0,e.jsx)(s.wn,{buttons:(0,e.jsx)(s.$n,{compact:!0,icon:$?"search":"font",selected:!0,tooltip:$?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){return G()}}),className:"ListInput__Section",fill:!0,title:P,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{filteredItems:ee,onClick:te,onFocusSearch:J,searchBarVisible:$,selected:L})}),$&&(0,e.jsx)(i,{filteredItems:ee,onSearch:Y,searchQuery:F,selected:L}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:ee[L]})})]})})})]})},l=function(c){var f=(0,r.Oc)().act,m=c.filteredItems,v=c.onClick,E=c.onFocusSearch,j=c.searchBarVisible,C=c.selected;return(0,e.jsxs)(s.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(s.y5,{}),m.map(function(P,M){return(0,e.jsx)(s.$n,{color:"transparent",fluid:!0,onClick:function(){return v(M)},onDoubleClick:function(_){_.preventDefault(),f("submit",{entry:m[C]})},onKeyDown:function(_){var S=window.event?_.which:_.keyCode;j&&S>=t.W8&&S<=t.bh&&(_.preventDefault(),E())},selected:M===C,style:{animation:"none",transition:"none"},children:P.replace(/^\w/,function(_){return _.toUpperCase()})},M)})]})},i=function(c){var f=(0,r.Oc)().act,m=c.filteredItems,v=c.onSearch,E=c.searchQuery,j=c.selected;return(0,e.jsx)(s.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(C){C.preventDefault(),f("submit",{entry:m[j]})},onInput:function(C,P){return v(P)},placeholder:"Search...",value:E})}},30373:function(O,u,n){"use strict";n.r(u),n.d(u,{LookingGlass:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.supportedPrograms,i=a.currentProgram,c=a.immersion,f=a.gravity,m=Math.min(180+l.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:m,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:l.map(function(v){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",selected:v===i,onClick:function(){return d("program",{program:v})},children:v},v)})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"user-astronaut",selected:f,onClick:function(){return d("gravity")},children:f?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(t.$n,{mt:-1,fluid:!0,icon:"eye",selected:c,onClick:function(){return d("immersion")},children:c?"Enabled":"Disabled"})})]})})]})})}},88504:function(O,u,n){"use strict";n.r(u),n.d(u,{MechaControlConsole:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.beacons,c=i===void 0?[]:i,f=l.stored_data,m=f===void 0?[]:f;return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[m.length?(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{overflowY:"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return a("clear_log")}}),children:m.map(function(v){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",v.time,") (",v.year,")"]}),(0,e.jsx)(r.az,{children:(0,o.jT)(v.message)})]},v.time)})})}):"",c.length&&c.map(function(v){return(0,e.jsx)(r.wn,{title:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return a("send_message",{mt:v.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return a("get_log",{mt:v.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return a("shock",{mt:v.ref})},children:"EMP"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[v.maxHealth*.75,1/0],average:[v.maxHealth*.5,v.maxHealth*.75],bad:[-1/0,v.maxHealth*.5]},value:v.health,maxValue:v.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:v.cell&&(0,e.jsx)(r.z2,{ranges:{good:[v.cellMaxCharge*.75,1/0],average:[v.cellMaxCharge*.5,v.cellMaxCharge*.75],bad:[-1/0,v.cellMaxCharge*.5]},value:v.cellCharge,maxValue:v.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[v.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:v.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,o.Sn)(v.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:v.active||"None"}),v.cargoMax?(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[v.cargoMax*.75,1/0],average:[v.cargoMax*.5,v.cargoMax*.75],good:[-1/0,v.cargoMax*.5]},value:v.cargoUsed,maxValue:v.cargoMax})}):""]})},v.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},94921:function(O,u,n){"use strict";n.r(u),n.d(u,{Medbot:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,i=a.open,c=a.beaker,f=a.beaker_total,m=a.beaker_max,v=a.locked,E=a.heal_threshold,j=a.heal_threshold_max,C=a.injection_amount_min,P=a.injection_amount,M=a.injection_amount_max,_=a.use_beaker,S=a.declare_treatment,T=a.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("power")},children:l?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:i?"bad":"good",children:i?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(t.$n,{disabled:!c,icon:"eject",onClick:function(){return d("eject")},children:"Eject"}),children:c&&(0,e.jsxs)(t.z2,{value:f,maxValue:m,children:[f," / ",m]})||(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(0,e.jsx)(t.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:0,maxValue:j,value:E,onDrag:function(b){return d("adj_threshold",{val:b})}})}),(0,e.jsx)(t.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:C,maxValue:M,value:P,onDrag:function(b){return d("adj_inject",{val:b})}})}),(0,e.jsx)(t.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(t.$n,{fluid:!0,icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return d("use_beaker")},children:_?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(t.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(t.$n,{fluid:!0,icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return d("declaretreatment")},children:S?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:T?"toggle-on":"toggle-off",selected:T,onClick:function(){return d("togglevoice")},children:T?"On":"Off"})})]})})||null]})})}},47407:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsList:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(l,i){return g("search",{t1:i})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:a.map(function(l,i){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return g("d_rec",{d_rec:l.ref})},children:l.id+": "+l.name},i)})})]})}},43131:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsMedbots:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().data,g=x.medbots;return!g||g.length===0?(0,e.jsx)(t.az,{color:"label",children:"There are no Medbots."}):g.map(function(d,a){return(0,e.jsx)(t.Nt,{open:!0,title:d.name,children:(0,e.jsx)(t.az,{px:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Location",children:[d.area||"Unknown"," (",d.x,", ",d.y,")"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:d.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"good",children:"Online"}),(0,e.jsx)(t.az,{mt:"0.5rem",children:d.use_beaker?"Reservoir: "+d.total_volume+"/"+d.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(t.az,{color:"average",children:"Offline"})})]})})},a)})}},70734:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsMaintenance:function(){return x},MedicalRecordsNavigation:function(){return d},MedicalRecordsView:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(72886),s=n(8615),x=function(a){var l=(0,o.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return l("del_all")},children:"Delete All Medical Records"})]})},g=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.medical,m=c.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(r.MedicalRecordsViewGeneral,{})}),(0,e.jsx)(t.wn,{title:"Medical Data",children:(0,e.jsx)(s.MedicalRecordsViewMedical,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return i("del_r")},children:"Delete Medical Record"}),(0,e.jsx)(t.$n,{icon:m?"spinner":"print",disabled:m,iconSpin:!!m,ml:"0.5rem",onClick:function(){return i("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return i("screen",{screen:2})},children:"Back"})]})]})},d=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:f===2,onClick:function(){return i("screen",{screen:2})},children:[(0,e.jsx)(t.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===5,onClick:function(){return i("screen",{screen:5})},children:[(0,e.jsx)(t.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===6,onClick:function(){return i("screen",{screen:6})},children:[(0,e.jsx)(t.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===3,onClick:function(){return i("screen",{screen:3})},children:[(0,e.jsx)(t.In,{name:"wrench"}),"Record Maintenance"]})]})}},72886:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViewGeneral:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(80724),s=function(x){var g=(0,o.Oc)().data,d=g.general;return!d||!d.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{width:"50%",style:{float:"left"},children:(0,e.jsx)(t.Ki,{children:d.fields.map(function(a,l){return(0,e.jsx)(t.Ki.Item,{label:a.field,children:(0,e.jsxs)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:[a.value,!!a.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,r.doEdit)(a)}})]})},l)})})}),(0,e.jsx)(t.az,{width:"50%",style:{float:"right"},textAlign:"right",children:!!d.has_photos&&d.photos.map(function(a,l){return(0,e.jsxs)(t.az,{inline:!0,textAlign:"center",color:"label",children:[(0,e.jsx)(t._V,{src:a.substring(1,a.length-1),style:{width:"96px",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",l+1]},l)})})]})}},8615:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViewMedical:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(80724),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.medical;return!i||!i.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return a("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki,{children:i.fields.map(function(c,f){return(0,e.jsx)(t.Ki.Item,{label:c.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[c.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,s.doEdit)(c)}})]})},f)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[i.comments&&i.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):i.comments&&i.comments.map(function(c,f){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:c.header}),(0,e.jsx)("br",{}),c.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return a("del_c",{del_c:f+1})}})]},f)}),(0,e.jsx)(t.$n,{icon:"comment-medical",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})}},3748:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViruses:function(){return s}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=function(x){var g=(0,t.Oc)(),d=g.act,a=g.data,l=a.virus;return l&&l.sort(function(i,c){return i.name>c.name?1:-1}),l&&l.map(function(i,c){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",mb:"0.5rem",onClick:function(){return d("vir",{vir:i.D})},children:i.name}),(0,e.jsx)("br",{})]},c)})}},46069:function(O,u,n){"use strict";n.r(u),n.d(u,{severities:function(){return e}});var e={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"}},65456:function(O,u,n){"use strict";n.r(u),n.d(u,{MedicalRecords:function(){return m}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(15581),x=n(35069),g=n(97049),d=n(3751),a=n(47407),l=n(43131),i=n(70734),c=n(3748),f=n(4492),m=function(v){var E=(0,o.Oc)().data,j=E.authenticated,C=E.screen;if(!j)return(0,e.jsx)(s.p8,{width:800,height:380,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var P=[];return P[2]=(0,e.jsx)(a.MedicalRecordsList,{}),P[3]=(0,e.jsx)(i.MedicalRecordsMaintenance,{}),P[4]=(0,e.jsx)(i.MedicalRecordsView,{}),P[5]=(0,e.jsx)(c.MedicalRecordsViruses,{}),P[6]=(0,e.jsx)(l.MedicalRecordsMedbots,{}),(0,e.jsxs)(s.p8,{width:800,height:380,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(x.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(i.MedicalRecordsNavigation,{}),(0,e.jsx)(t.wn,{height:"calc(100% - 5rem)",flexGrow:!0,children:C&&P[C]||""})]})]})};(0,r.modalRegisterBodyOverride)("virus",f.virusModalBodyOverride)},86097:function(O,u,n){"use strict";n.r(u)},4492:function(O,u,n){"use strict";n.r(u),n.d(u,{virusModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act,g=s.args;return(0,e.jsx)(t.wn,{m:"-1rem",title:g.name||"Virus",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return x("modal_close")}}),children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Spread",children:[g.spreadtype," Transmission"]}),(0,e.jsx)(t.Ki.Item,{label:"Possible cure",children:g.antigen}),(0,e.jsx)(t.Ki.Item,{label:"Rate of Progression",children:g.rate}),(0,e.jsxs)(t.Ki.Item,{label:"Antibiotic Resistance",children:[g.resistance,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Species Affected",children:g.species}),(0,e.jsx)(t.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(t.Ki,{children:g.symptoms.map(function(d){return(0,e.jsxs)(t.Ki.Item,{label:d.stage+". "+d.name,children:[(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Strength:"})," ",d.strength,"\xA0",(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",d.aggressiveness]},d.stage)})})})]})})})}},4477:function(O,u,n){"use strict";n.r(u),n.d(u,{MentorTicketPanel:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x={open:"Open",resolved:"Resolved",unknown:"Unknown"},g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.id,f=i.name,m=i.state,v=i.opened_at,E=i.closed_at,j=i.opened_at_date,C=i.closed_at_date,P=i.actions,M=i.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+c,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"arrow-up",onClick:function(){return l("escalate")},children:"Escalate"}),(0,e.jsx)(r.$n,{onClick:function(){return l("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Mentor Help Ticket",children:["#",c,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:f}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:x[m]}),x[m]===x.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:j+" ("+(0,o.Mg)((0,o.LI)(v/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[C+" ("+(0,o.Mg)((0,o.LI)(E/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return l("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(M).map(function(_,S){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M[_]}},S)})})]})})})})}},26948:function(O,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorContent:function(){return x}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(5871),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.linkedServer,c=(0,o.useState)(0),f=c[0],m=c[1],v=[];return v[0]=(0,e.jsx)(s.MessageMonitorMain,{}),v[1]=(0,e.jsx)(s.MessageMonitorLogs,{logs:i.pda_msgs,pda:!0}),v[2]=(0,e.jsx)(s.MessageMonitorLogs,{logs:i.rc_msgs,rc:!0}),v[3]=(0,e.jsx)(s.MessageMonitorAdmin,{}),v[4]=(0,e.jsx)(s.MessageMonitorSpamFilter,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:f===0,onClick:function(){return m(0)},children:[(0,e.jsx)(r.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(r.tU.Tab,{selected:f===1,onClick:function(){return m(1)},children:[(0,e.jsx)(r.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===2,onClick:function(){return m(2)},children:[(0,e.jsx)(r.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===3,onClick:function(){return m(3)},children:[(0,e.jsx)(r.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(r.tU.Tab,{selected:f===4,onClick:function(){return m(4)},children:[(0,e.jsx)(r.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(r.tU.Tab,{color:"red",onClick:function(){return a("deauth")},children:[(0,e.jsx)(r.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(r.az,{m:2,children:v[f]})]})}},9760:function(O,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorHack:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(72859),s=function(x){var g=(0,o.Oc)().data,d=g.isMalfAI;return(0,e.jsx)(r.FullscreenNotice,{title:"ERROR",children:d?(0,e.jsx)(t.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(t.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})}},38860:function(O,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorLogin:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(72859),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.isMalfAI;return(0,e.jsxs)(r.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(t.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(t.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(i,c){return d("auth",{key:c})}})]}),!!l&&(0,e.jsx)(t.$n,{icon:"terminal",onClick:function(){return d("hack")},children:"Hack"}),(0,e.jsx)(t.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})}},5871:function(O,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorAdmin:function(){return g},MessageMonitorLogs:function(){return x},MessageMonitorMain:function(){return s},MessageMonitorSpamFilter:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.linkedServer;return(0,e.jsxs)(r.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"link",onClick:function(){return i("find")},children:"Server Link"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:f.active,onClick:function(){return i("active")},children:"Server "+(f.active?"Enabled":"Disabled")})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Server Status",children:(0,e.jsx)(r.az,{color:"good",children:"Good"})})}),(0,e.jsx)(r.$n,{mt:1,icon:"key",onClick:function(){return i("pass")},children:"Set Custom Key"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Message Logs"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Request Logs"})]})},x=function(a){var l=(0,t.Oc)().act,i=a.logs,c=a.pda,f=a.rc;return(0,e.jsx)(r.wn,{title:c?"PDA Logs":f?"Request Logs":"Logs",buttons:(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",onClick:function(){return l(c?"del_pda":"del_rc")},children:"Delete All"}),children:(0,e.jsx)(r.so,{wrap:"wrap",children:i.map(function(m,v){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:v%2,children:(0,e.jsx)(r.wn,{title:m.sender+" -> "+m.recipient,buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return l("delete",{id:m.ref,type:f?"rc":"pda"})}}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message",children:m.message}),(0,e.jsx)(r.Ki.Item,{label:"Verification",color:m.id_auth==="Unauthenticated"?"bad":"good",children:!!m.id_auth&&(0,o.jT)(m.id_auth)}),(0,e.jsx)(r.Ki.Item,{label:"Stamp",children:m.stamp})]}):m.message})},m.ref)})})})},g=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.possibleRecipients,m=c.customsender,v=c.customrecepient,E=c.customjob,j=c.custommessage,C=Object.keys(f);return(0,e.jsxs)(r.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Sender",children:(0,e.jsx)(r.pd,{fluid:!0,value:m,onChange:function(P,M){return i("set_sender",{val:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(r.pd,{fluid:!0,value:E,onChange:function(P,M){return i("set_sender_job",{val:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",children:(0,e.jsx)(r.ms,{autoScroll:!1,selected:v,options:C,width:"100%",mb:-.7,onSelected:function(P){return i("set_recipient",{val:f[P]})}})}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.pd,{fluid:!0,mb:.5,value:j,onChange:function(P,M){return i("set_message",{val:M})}})})]}),(0,e.jsx)(r.$n,{fluid:!0,icon:"comment",onClick:function(){return i("send_message")},children:"Send Message"})]})},d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f=c.linkedServer;return(0,e.jsxs)(r.wn,{title:"Spam Filtering",children:[(0,e.jsx)(r.Ki,{children:f.spamFilter.map(function(m){return(0,e.jsx)(r.Ki.Item,{label:m.index,buttons:(0,e.jsx)(r.$n,{icon:"trash",color:"bad",onClick:function(){return i("deltoken",{deltoken:m.index})},children:"Delete"}),children:m.token},m.index)})}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return i("addtoken")},children:"Add New Entry"})]})}},34692:function(O,u,n){"use strict";n.r(u),n.d(u,{MessageMonitor:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(3751),x=n(26948),g=n(9760),d=n(38860),a=function(l){var i=(0,o.Oc)().data,c=i.auth,f=i.linkedServer,m=i.hacking,v=i.emag,E;return m||v?E=(0,e.jsx)(g.MessageMonitorHack,{}):c?f?E=(0,e.jsx)(x.MessageMonitorContent,{}):E=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"}):E=(0,e.jsx)(d.MessageMonitorLogin,{}),(0,e.jsx)(r.p8,{width:670,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),E]})})}},25029:function(O,u,n){"use strict";n.r(u)},41785:function(O,u,n){"use strict";n.r(u),n.d(u,{Microwave:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.config,l=g.data,i=l.broken,c=l.operating,f=l.dirty,m=l.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:i&&(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:"Bzzzzttttt!!"})})||c&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||f&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||m.length&&(0,e.jsx)(t.wn,{title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return d("cook")},children:"Microwave"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("dispose")},children:"Eject"})]}),children:(0,e.jsx)(t.Ki,{children:m.map(function(v){return(0,e.jsxs)(t.Ki.Item,{label:v.name,children:[v.amt," ",v.extra]},v.name)})})})||(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:[a.title," is empty."]})})})})}},10844:function(O,u,n){"use strict";n.r(u),n.d(u,{MiningOreProcessingConsole:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),x=n(22588),g=function(c){var f=(0,t.Oc)(),m=f.act,v=f.data,E=v.unclaimedPoints,j=v.power,C=v.speed;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(x.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return m("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:C,onClick:function(){return m("speed_toggle")},children:C?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:j,onClick:function(){return m("power")},children:j?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:E<1,icon:"download",onClick:function(){return m("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:E})})})}),(0,e.jsx)(i,{})]})})},d=["Not Processing","Smelting","Compressing","Alloying"],a=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],l=function(c,f){return a.indexOf(c.ore)===-1||a.indexOf(f.ore)===-1?c.ore-f.ore:a.indexOf(f.ore)-a.indexOf(c.ore)},i=function(c){var f=(0,t.Oc)(),m=f.act,v=f.data,E=v.ores,j=v.showAllOres;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return m("showAllOres")},children:j?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:E.length&&E.sort(l).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(C.name),buttons:(0,e.jsx)(r.ms,{autoScroll:!1,width:"120px",color:C.processing===0&&"red"||C.processing===1&&"green"||C.processing===2&&"blue"||C.processing===3&&"yellow"||void 0,options:d,selected:d[C.processing],onSelected:function(P){return m("toggleSmelting",{ore:C.ore,set:d.indexOf(P)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:C.amount})})},C.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},71297:function(O,u,n){"use strict";n.r(u),n.d(u,{MiningStackingConsole:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.stacktypes,c=l.stackingAmt;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,step:1,value:c,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(f){return a("change_stack",{amt:f})}})}),(0,e.jsx)(r.Ki.Divider,{}),i.length&&i.sort().map(function(f){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(f.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return a("release_stack",{stack:f.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:f.amt})},f.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},602:function(O,u,n){"use strict";n.r(u),n.d(u,{MiningVendor:function(){return i}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),x=n(15581),g=n(22588);function d(){return d=Object.assign||function(v){for(var E=1;E=0)&&(j[P]=v[P]);return j}var l={Alphabetical:function(v,E){return v.name>E.name},"By availability":function(v,E){return-(v.affordable-E.affordable)},"By price":function(v,E){return v.price-E.price}},i=function(v){var E=function(w){_(w)},j=function(w){b(w)},C=function(w){k(w)},P=(0,t.useState)(""),M=P[0],_=P[1],S=(0,t.useState)("Alphabetical"),T=S[0],b=S[1],L=(0,t.useState)(!1),W=L[0],k=L[1];return(0,e.jsx)(x.p8,{width:400,height:450,children:(0,e.jsxs)(x.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(f,{searchText:M,sortOrder:T,descending:W,onSearchText:E,onSortOrder:j,onDescending:C}),(0,e.jsx)(c,{searchText:M,sortOrder:T,descending:W})]})})},c=function(v){var E=(0,r.Oc)(),j=E.act,C=E.data,P=C.has_id,M=C.id,_=C.items,S=(0,o.XZ)(v.searchText,function(L){return L[0]}),T=!1,b=Object.entries(_).map(function(L,W){var k=Object.entries(L[1]).filter(S).map(function($){return $[1].affordable=+(P&&M.points>=$[1].price),$[1]}).sort(l[v.sortOrder]);if(k.length!==0)return v.descending&&(k=k.reverse()),T=!0,(0,e.jsx)(m,{title:L[0],items:k},L[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:T?b:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(v){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:v.searchText,width:"100%",onInput:function(E,j){return v.onSearchText(j)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{autoScroll:!1,selected:v.sortOrder,options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(E){return v.onSortOrder(E)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:v.descending?"arrow-down":"arrow-up",height:"19px",tooltip:v.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return v.onDescending(!v.descending)}})})]})})},m=function(v){var E=(0,r.Oc)(),j=E.act,C=E.data,P=C.has_id,M=C.id,_=v.title,S=v.items,T=a(v,["title","items"]);return(0,e.jsx)(s.Nt,d({open:!0,title:_},T,{children:S.map(function(b){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.jsx)(s.$n,{disabled:!P||M.points=450?"Overcharged":r>=250?"Good Charge":"Low Charge":r>=250?"NIF Power Requirement met.":r>=150?"Fluctuations in available power.":"Power failure imminent."}},63300:function(O,u,n){"use strict";n.r(u),n.d(u,{NIF:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(7428),g=n(84772),d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.config,f=l.data,m=f.theme,v=f.last_notification,E=(0,o.useState)(!1),j=E[0],C=E[1],P=(0,o.useState)(null),M=P[0],_=P[1];return(0,e.jsx)(s.p8,{theme:m,width:500,height:400,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!v&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.XI,{verticalAlign:"middle",children:(0,e.jsxs)(r.XI.Row,{verticalAlign:"middle",children:[(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",children:v}),(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.jsx)(r.$n,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return i("dismissNotification")}})})]})})}),!!M&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:M.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",confirmIcon:"ban",confirmContent:"Uninstall "+M.name+"?",onClick:function(){i("uninstall",{module:M.ref}),_(null)},children:"Uninstall"}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return _(null)}})]}),children:[(0,e.jsx)(r.az,{children:M.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:M.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:M.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:M.illegal?"bad":"good",children:["It is ",M.illegal?"NOT ":"","a legal software package."]}),(0,e.jsxs)(r.az,{children:["The MSRP of the package is",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:[M.cost,"\u20AE."]})]}),(0,e.jsxs)(r.az,{children:["The difficulty to construct the associated implant is\xA0",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:["Rating ",M.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+c.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:j,onClick:function(){return C(!j)}}),children:j&&(0,e.jsx)(g.NIFSettings,{})||(0,e.jsx)(x.NIFMain,{setViewing:_})})]})})}},11045:function(O,u,n){"use strict";n.r(u)},14910:function(O,u,n){"use strict";n.r(u),n.d(u,{NTNetRelay:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(72859),x=function(a){var l=(0,o.Oc)().data,i=l.dos_crashed,c=(0,e.jsx)(g,{});return i&&(c=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:i?700:500,height:i?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c})})},g=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.enabled,m=c.dos_overload,v=c.dos_capacity;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return i("toggle")},children:"Relay "+(f?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Network Buffer Status",children:[m," / ",v," GQ"]}),(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return i("purge")},children:"Purge network blacklist"})})]})})},d=function(a){var l=(0,o.Oc)().act;return(0,e.jsxs)(s.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return l("restart")},children:"Purge buffered traffic"})})]})}},3949:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterMainMenu:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),s=function(x){var g=(0,o.Oc)().data,d=g.securityCaster,a=g.wanted_issue,l=x.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Main Menu",children:[a&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return l(r.NEWSCASTER_SCREEN_VIEWWANTED)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return l(r.NEWSCASTER_SCREEN_VIEWLIST)},children:"View Feed Channels"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWCHANNEL)},children:"Create Feed Channel"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWSTORY)},children:"Create Feed Message"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"print",onClick:function(){return l(r.NEWSCASTER_SCREEN_PRINT)},children:"Print Newspaper"})]}),!!d&&(0,e.jsx)(t.wn,{title:"Feed Security Functions",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWWANTED)},children:'Manage "Wanted" Issue'})})]})}},71588:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewChannel:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.channel_name,c=l.c_locked,f=l.user,m=g.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(i),onInput:function(v,E){return a("set_channel_name",{val:E})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:f}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:c?"lock":"lock-open",selected:!c,onClick:function(){return a("set_channel_lock")},children:c?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return a("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},85578:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewStory:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.channel_name,i=a.user,c=a.title,f=a.msg,m=a.photo_data,v=x.setScreen;return(0,e.jsxs)(t.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return d("set_channel_receiving")},children:l||"Unset"})}),(0,e.jsx)(t.Ki.Item,{label:"Message Author",color:"good",children:i}),(0,e.jsx)(t.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:c||"(no title yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return d("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:f||"(no message yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return d("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"image",onClick:function(){return d("set_attachment")},children:m?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return d("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},92432:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewWanted:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.channel_name,c=l.msg,f=l.photo_data,m=l.user,v=l.wanted_issue,E=g.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return E(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!v&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(i),onInput:function(j,C){return a("set_channel_name",{val:C})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(c),onInput:function(j,C){return a("set_wanted_desc",{val:C})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return a("set_attachment")},children:f?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:m})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return a("submit_wanted")},children:"Submit Wanted Issue"}),!!v&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return a("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return E(s.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},7662:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterPrint:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.total_num,i=a.active_num,c=a.message_num,f=a.paper_remaining,m=x.setScreen;return(0,e.jsxs)(t.wn,{title:"Printing",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return m(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",l," Feed channels,"," ",i," of which are active, and a total of ",c," Feed stories."]}),(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"Liquid Paper remaining",children:[f*100," cm\xB3"]})}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return d("print_paper")},children:"Print Paper"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return m(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},12512:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewList:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.channels,c=g.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:i.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:f.admin?"good":f.censored?"bad":"",onClick:function(){a("show_channel",{show_channel:f.ref}),c(s.NEWSCASTER_SCREEN_SELECTEDCHANNEL)},children:(0,o.jT)(f.name)},f.name)})})}},96935:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewSelected:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.viewing_channel,c=l.securityCaster,f=l.company,m=g.setScreen;return i?(0,e.jsxs)(r.wn,{title:(0,o.jT)(i.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!c&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",onClick:function(){return a("toggle_d_notice",{ref:i.ref})},children:"Issue D-Notice"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:c&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return a("censor_channel_author",{ref:i.ref})},children:(0,o.jT)(i.author)})||(0,e.jsx)(r.az,{children:(0,o.jT)(i.author)})})}),!!i.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",f," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!i.messages.length&&i.messages.map(function(v){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(v.body),!!v.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+v.img}),!!v.caption&&(0,o.jT)(v.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,o.jT)(v.author)," -"," ",v.timestamp,"]"]}),!!c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return a("censor_channel_story_body",{ref:v.ref})},children:"Censor Story"}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return a("censor_channel_story_author",{ref:v.ref})},children:"Censor Author"})]})]},v.ref)})||!i.censored&&(0,e.jsx)(r.az,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.wn,{title:"Channel Not Found",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"}),children:"The channel you were looking for no longer exists."})}},28189:function(O,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewWanted:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),x=function(g){var d=(0,t.Oc)().data,a=d.wanted_issue,l=g.setScreen;return a?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,o.jT)(a.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,o.jT)(a.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,o.jT)(a.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:a.img&&(0,e.jsx)(r._V,{src:a.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:"There are no wanted issues currently outstanding."})}},42501:function(O,u,n){"use strict";n.r(u),n.d(u,{NEWSCASTER_SCREEN_MAIN:function(){return e},NEWSCASTER_SCREEN_NEWCHANNEL:function(){return o},NEWSCASTER_SCREEN_NEWSTORY:function(){return r},NEWSCASTER_SCREEN_NEWWANTED:function(){return x},NEWSCASTER_SCREEN_PRINT:function(){return s},NEWSCASTER_SCREEN_SELECTEDCHANNEL:function(){return d},NEWSCASTER_SCREEN_VIEWLIST:function(){return t},NEWSCASTER_SCREEN_VIEWWANTED:function(){return g}});var e="Main Menu",o="New Channel",t="View List",r="New Story",s="Print",x="New Wanted",g="View Wanted",d="View Selected Channel"},93856:function(O,u,n){"use strict";n.r(u),n.d(u,{Newscaster:function(){return v}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(3751),x=n(42501),g=n(3949),d=n(71588),a=n(85578),l=n(92432),i=n(7662),c=n(12512),f=n(96935),m=n(28189),v=function(j){return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{decode:!0}),(0,e.jsx)(E,{})]})})},E=function(j){var C=(0,o.QY)("screen",x.NEWSCASTER_SCREEN_MAIN),P=C[0],M=C[1],_=[];return _[x.NEWSCASTER_SCREEN_MAIN]=(0,e.jsx)(g.NewscasterMainMenu,{setScreen:M}),_[x.NEWSCASTER_SCREEN_NEWCHANNEL]=(0,e.jsx)(d.NewscasterNewChannel,{setScreen:M}),_[x.NEWSCASTER_SCREEN_VIEWLIST]=(0,e.jsx)(c.NewscasterViewList,{setScreen:M}),_[x.NEWSCASTER_SCREEN_NEWSTORY]=(0,e.jsx)(a.NewscasterNewStory,{setScreen:M}),_[x.NEWSCASTER_SCREEN_PRINT]=(0,e.jsx)(i.NewscasterPrint,{setScreen:M}),_[x.NEWSCASTER_SCREEN_NEWWANTED]=(0,e.jsx)(l.NewscasterNewWanted,{setScreen:M}),_[x.NEWSCASTER_SCREEN_VIEWWANTED]=(0,e.jsx)(m.NewscasterViewWanted,{setScreen:M}),_[x.NEWSCASTER_SCREEN_SELECTEDCHANNEL]=(0,e.jsx)(f.NewscasterViewSelected,{setScreen:M}),(0,e.jsx)(t.az,{children:_[P]})}},5537:function(O,u,n){"use strict";n.r(u)},4418:function(O,u,n){"use strict";n.r(u),n.d(u,{NoticeBoard:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:l.length?(0,e.jsx)(t.Ki,{children:l.map(function(i,c){return(0,e.jsxs)(t.Ki.Item,{label:i.name,children:[i.isphoto&&(0,e.jsx)(t.$n,{icon:"image",onClick:function(){return d("look",{ref:i.ref})},children:"Look"})||i.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sticky-note",onClick:function(){return d("read",{ref:i.ref})},children:"Read"}),(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("write",{ref:i.ref})},children:"Write"})]})||"Unknown Entity",(0,e.jsx)(t.$n,{icon:"minus-circle",onClick:function(){return d("remove",{ref:i.ref})},children:"Remove"})]},c)})}):(0,e.jsx)(t.az,{color:"average",children:"No notices posted here."})})})})}},78610:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosAccessDecrypter:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(39841),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.message,c=l.running,f=l.rate,m=l.factor,v=l.regions,E=function(C){for(var P="";P.lengthm?P+="0":P+="1";return P},j=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:i&&(0,e.jsx)(t.IC,{children:i})||c&&(0,e.jsxs)(t.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",f," PHash/s",(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",onClick:function(){return a("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(t.wn,{title:"Pick access code to decrypt",children:v.length&&(0,e.jsx)(s.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(t.az,{children:"Please insert ID card."})})})})}},25316:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosArcade:function(){return x}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),s=n(15581),x=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,i=l.PlayerHitpoints,c=l.PlayerMP,f=l.PauseState,m=l.Status,v=l.Hitpoints,E=l.BossID,j=l.GameActive,C=l.TicketCount;return(0,e.jsx)(s.Zm,{width:450,height:350,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:i,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[i,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:c,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[c,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:f===1?"#1b3622":"#471915",children:m})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.z2,{value:v,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:v}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)(r._V,{src:(0,o.l)(E)})})]})]})}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Attack")},children:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Heal")},children:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Recharge_Power")},children:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:j===1,onClick:function(){return a("Start_Game")},children:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:j===1,onClick:function(){return a("Dispense_Tickets")},children:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:C>=1?"good":"normal",children:["Earned Tickets: ",C]})]})})})}},98669:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosAtmosControl:function(){return r}});var e=n(20462),o=n(15581),t=n(74737),r=function(){return(0,e.jsx)(o.Zm,{width:870,height:708,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.AtmosControlContent,{})})})}},34470:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosCameraConsole:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(18490),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.mapRef,c=l.activeCamera,f=l.cameras,m=(0,s.selectCameras)(f),v=(0,s.prevNextCamera)(m,c),E=v[0],j=v[1];return(0,e.jsx)(r.Zm,{width:870,height:708,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(s.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),c&&c.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(t.$n,{icon:"chevron-left",disabled:!E,onClick:function(){return a("switch_camera",{name:E})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",disabled:!j,onClick:function(){return a("switch_camera",{name:j})}}),"| PAN:",(0,e.jsx)(t.$n,{icon:"chevron-left",onClick:function(){return a("pan",{dir:8})}}),(0,e.jsx)(t.$n,{icon:"chevron-up",onClick:function(){return a("pan",{dir:1})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return a("pan",{dir:4})}}),(0,e.jsx)(t.$n,{icon:"chevron-down",onClick:function(){return a("pan",{dir:2})}})]}),(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:i,type:"map"}})]})]})})}},77580:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosCommunicationsConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(34116),r=function(){return(0,e.jsx)(o.Zm,{width:400,height:600,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},35300:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosConfiguration:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.PC_device_theme,i=a.power_usage,c=a.battery_exists,f=a.battery,m=f===void 0?{}:f,v=a.disk_size,E=a.disk_used,j=a.hardware,C=j===void 0?[]:j;return(0,e.jsx)(r.Zm,{theme:l,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Power Supply",buttons:(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",i,"W"]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Battery Status",color:!c&&"average"||void 0,children:c?(0,e.jsxs)(t.z2,{value:m.charge,minValue:0,maxValue:m.max,ranges:{good:[m.max/2,1/0],average:[m.max/4,m.max/2],bad:[-1/0,m.max/4]},children:[m.charge," / ",m.max]}):"Not Available"})})}),(0,e.jsx)(t.wn,{title:"File System",children:(0,e.jsxs)(t.z2,{value:E,minValue:0,maxValue:v,color:"good",children:[E," GQ / ",v," GQ"]})}),(0,e.jsx)(t.wn,{title:"Hardware Components",children:C.map(function(P){return(0,e.jsx)(t.wn,{title:P.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!P.critical&&(0,e.jsx)(t.$n.Checkbox,{checked:P.enabled,mr:1,onClick:function(){return d("PC_toggle_component",{name:P.name})},children:"Enabled"}),(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",P.powerusage,"W"]})]}),children:P.desc},P.name)})})]})})}},23984:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosCrewManifest:function(){return r}});var e=n(20462),o=n(15581),t=n(58044),r=function(){return(0,e.jsx)(o.Zm,{width:800,height:600,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.CrewManifestContent,{})})})}},69233:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosCrewMonitor:function(){return s}});var e=n(20462),o=n(61358),t=n(15581),r=n(70117),s=function(){var x=function(v){l(v)},g=function(v){f(v)},d=(0,o.useState)(0),a=d[0],l=d[1],i=(0,o.useState)(1),c=i[0],f=i[1];return(0,e.jsx)(t.Zm,{width:800,height:600,children:(0,e.jsx)(t.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:a,zoom:c,onTabIndex:x,onZoom:g})})})}},6303:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosDigitalWarrant:function(){return x}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),x=function(l){var i=(0,t.Oc)().data,c=i.warrantauth,f=(0,e.jsx)(g,{});return c&&(f=(0,e.jsx)(a,{})),(0,e.jsx)(s.Zm,{width:500,height:350,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:f})})},g=function(l){var i=(0,t.Oc)().act;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return i("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{title:"Arrest Warrants",children:(0,e.jsx)(d,{type:"arrest"})}),(0,e.jsx)(r.wn,{title:"Search Warrants",children:(0,e.jsx)(d,{type:"search"})})]})},d=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=l.type,v=f.allwarrants,E=v===void 0?[]:v,j=(0,o.pb)(E,function(C){return C.arrestsearch===m});return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:m==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:m==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),j.length&&j.map(function(C){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:C.warrantname}),(0,e.jsx)(r.XI.Cell,{children:C.charges}),(0,e.jsx)(r.XI.Cell,{children:C.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrant",{id:C.id})}})})]},C.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",m," warrants found."]})})]})},a=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.warrantname,v=f.warrantcharges,E=f.warrantauth,j=f.type,C=j==="arrest",P=j==="arrest"?"Name":"Location",M=j==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:C?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return c("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return c("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:P,buttons:C&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return c("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}}),children:m}),(0,e.jsx)(r.Ki.Item,{label:M,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantcharges")}}),children:v}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return c("editwarrantauth")}}),children:E})]})})}},27896:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosEmailAdministration:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(94151),x=function(i){var c=(0,o.Oc)().data,f=c.error,m=c.cur_title,v=c.current_account,E=c.accounts,j=(0,e.jsx)(g,{accounts:E});return f?j=(0,e.jsx)(d,{error:f}):m?j=(0,e.jsx)(a,{}):v&&(j=(0,e.jsx)(l,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},g=function(i){var c=(0,o.Oc)().act,f=i.accounts;return(0,e.jsxs)(t.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(t.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),f.map(function(m){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return c("viewaccount",{viewaccount:m.uid})},children:m.login},m.uid)})]})},d=function(i){var c=(0,o.Oc)().act,f=i.error;return(0,e.jsx)(t.wn,{title:"Message",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return c("back")},children:"Back"}),children:f})},a=function(i){return(0,e.jsx)(t.wn,{children:(0,e.jsx)(s.NtosEmailClientViewMessage,{administrator:!0})})},l=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.current_account,E=m.cur_suspended,j=m.messages,C=j===void 0?[]:j;return(0,e.jsxs)(t.wn,{title:"Viewing "+v+" in admin mode",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("back")},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Status",children:(0,e.jsx)(t.$n,{color:E?"bad":"",icon:"ban",tooltip:(E?"Uns":"S")+"uspend Account?",onClick:function(){return f("ban")},children:E?"Suspended":"Normal"})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"key",onClick:function(){return f("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.wn,{title:"Messages",children:C.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Source"}),(0,e.jsx)(t.XI.Cell,{children:"Title"}),(0,e.jsx)(t.XI.Cell,{children:"Received at"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),C.map(function(P){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:P.source}),(0,e.jsx)(t.XI.Cell,{children:P.title}),(0,e.jsx)(t.XI.Cell,{children:P.timestamp}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return f("viewmail",{viewmail:P.uid})},children:"View"})})]},P.uid)})]})||(0,e.jsx)(t.az,{color:"average",children:"No messages found in selected account."})})]})}},94151:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosEmailClient:function(){return x},NtosEmailClientViewMessage:function(){return l}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x=function(v){var E=(0,t.Oc)().data,j=E.PC_device_theme,C=E.error,P=E.downloading,M=E.current_account,_=(0,e.jsx)(m,{});return C?_=(0,e.jsx)(f,{error:C}):P?_=(0,e.jsx)(g,{}):M&&(_=(0,e.jsx)(d,{})),(0,e.jsx)(s.Zm,{resizable:!0,theme:j,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:_})})},g=function(v){var E=(0,t.Oc)().data,j=E.down_filename,C=E.down_progress,P=E.down_size,M=E.down_speed;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"File",children:[j," (",P," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:M})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{color:"good",value:C,maxValue:P,children:C+"/"+P+" ("+(0,o.Mg)(C/P*100,1)+"%)"})})]})})},d=function(v){var E=(0,t.Oc)(),j=E.act,C=E.data,P=C.current_account,M=C.addressbook,_=C.new_message,S=C.cur_title,T=C.accounts,b=(0,e.jsx)(a,{});return M?b=(0,e.jsx)(i,{accounts:T}):_?b=(0,e.jsx)(c,{}):S&&(b=(0,e.jsx)(l,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+P,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return j("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return j("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return j("logout")}})]}),children:b})},a=function(v){var E=(0,t.Oc)(),j=E.act,C=E.data,P=C.folder,M=C.messagecount,_=C.messages;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:P==="Inbox",onClick:function(){return j("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:P==="Spam",onClick:function(){return j("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:P==="Deleted",onClick:function(){return j("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),M&&(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Source"}),(0,e.jsx)(r.XI.Cell,{children:"Title"}),(0,e.jsx)(r.XI.Cell,{children:"Received At"}),(0,e.jsx)(r.XI.Cell,{children:"Actions"})]}),_.map(function(S){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:S.source}),(0,e.jsx)(r.XI.Cell,{children:S.title}),(0,e.jsx)(r.XI.Cell,{children:S.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return j("view",{view:S.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return j("reply",{reply:S.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return j("delete",{delete:S.uid})},tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",P,"."]})]})},l=function(v){var E=(0,t.Oc)(),j=E.act,C=E.data,P=v.administrator,M=C.cur_title,_=C.cur_source,S=C.cur_timestamp,T=C.cur_body,b=C.cur_hasattachment,L=C.cur_attachment_filename,W=C.cur_attachment_size,k=C.cur_uid;return(0,e.jsx)(r.wn,{title:M,buttons:P?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return j("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return j("reply",{reply:k})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return j("delete",{delete:k})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return j("save",{save:k})}}),b&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return j("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return j("cancel",{cancel:k})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:_}),(0,e.jsx)(r.Ki.Item,{label:"At",children:S}),b&&!P&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[L," (",W,"GQ)"]})||"",(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:T}})})})]})})},i=function(v){var E=(0,t.Oc)().act,j=v.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return E("set_recipient",{set_recipient:null})}}),children:j.map(function(C){return(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return E("set_recipient",{set_recipient:C.login})},children:C.login},C.login)})})},c=function(v){var E=(0,t.Oc)(),j=E.act,C=E.data,P=C.msg_title,M=P===void 0?"":P,_=C.msg_recipient,S=_===void 0?"":_,T=C.msg_body,b=C.msg_hasattachment,L=C.msg_attachment_filename,W=C.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return j("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:M,onInput:function(k,$){return j("edit_title",{val:$})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function(k,$){return j("edit_recipient",{val:$})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return j("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:b&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return j("addattachment")},children:"Add Attachment"}),children:b&&(0,e.jsxs)(r.az,{inline:!0,children:[L," (",W,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:T}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return j("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},f=function(v){var E=(0,t.Oc)().act,j=v.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return E("reset")},children:"Return"}),children:(0,e.jsx)(r.az,{color:"bad",children:j})})},m=function(v){var E=(0,t.Oc)(),j=E.act,C=E.data,P=C.stored_login,M=P===void 0?"":P,_=C.stored_password,S=_===void 0?"":_;return(0,e.jsxs)(r.wn,{title:"Please Log In",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Email address",children:(0,e.jsx)(r.pd,{fluid:!0,value:M,onInput:function(T,b){return j("edit_login",{val:b})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function(T,b){return j("edit_password",{val:b})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return j("login")},children:"Log In"})]})}},12813:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosFileManager:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.PC_device_theme,c=l.usbconnected,f=l.filename,m=l.filedata,v=l.error,E=l.files,j=E===void 0?[]:E,C=l.usbfiles,P=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{resizable:!0,theme:i,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[f&&(0,e.jsx)(t.wn,{title:"Viewing File "+f,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("PRG_edit")},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return a("PRG_printfile")},children:"Print"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return a("PRG_closefile")},children:"Close"})]}),children:m&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(x,{files:j,usbconnected:c,onUpload:function(M){return a("PRG_copytousb",{uid:M})},onDelete:function(M){return a("PRG_deletefile",{uid:M})},onOpen:function(M){return a("PRG_openfile",{uid:M})},onRename:function(M,_){return a("PRG_rename",{uid:M,new_name:_})},onDuplicate:function(M){return a("PRG_clone",{uid:M})}})}),c&&(0,e.jsx)(t.wn,{title:"Data Disk",children:(0,e.jsx)(x,{usbmode:!0,files:P,usbconnected:c,onUpload:function(M){return a("PRG_copyfromusb",{uid:M})},onDelete:function(M){return a("PRG_deletefile",{uid:M})},onOpen:function(M){return a("PRG_openfile",{uid:M})},onRename:function(M,_){return a("PRG_rename",{uid:M,new_name:_})},onDuplicate:function(M){return a("PRG_clone",{uid:M})}})})||null,(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return a("PRG_newtextfile")},children:"New Text File"})})]}),v&&(0,e.jsxs)(t.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return a("PRG_clearerror")}})})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so.Item,{grow:!0,children:v})})]})]})})},x=function(g){var d=g.files,a=d===void 0?[]:d,l=g.usbconnected,i=g.usbmode,c=g.onUpload,f=g.onDelete,m=g.onRename,v=g.onOpen,E=g.onDuplicate;return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"File"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Size"})]}),a.map(function(j){return(0,e.jsxs)(t.XI.Row,{className:"candystripe",children:[(0,e.jsx)(t.XI.Cell,{children:j.undeletable?j.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{width:"80%",currentValue:j.name,tooltip:"Rename",onCommit:function(C,P){return m(j.uid,P)},children:j.name}),(0,e.jsx)(t.$n,{onClick:function(){return v(j.uid)},children:"Open"})]})}),(0,e.jsx)(t.XI.Cell,{children:j.type}),(0,e.jsx)(t.XI.Cell,{children:j.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:!j.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return f(j.uid)}}),!!l&&(i?(0,e.jsx)(t.$n,{icon:"download",tooltip:"Download",onClick:function(){return c(j.uid)}}):(0,e.jsx)(t.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return c(j.uid)}}))]})})]},j.name)})]})}},39925:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosIdentificationComputer:function(){return r}});var e=n(20462),o=n(15581),t=n(39841),r=function(){return(0,e.jsx)(o.Zm,{width:600,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.IdentificationComputerContent,{ntos:!0})})})}},45319:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosMain:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.device_theme,c=l.programs,f=c===void 0?[]:c,m=l.has_light,v=l.light_on,E=l.comp_light_color,j=l.removable_media,C=j===void 0?[]:j,P=l.login,M=P===void 0?{}:P;return(0,e.jsx)(r.Zm,{title:i==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:i,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!m&&(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.$n,{width:"144px",icon:"lightbulb",selected:v,onClick:function(){return a("PC_toggle_light")},children:["Flashlight: ",v?"ON":"OFF"]}),(0,e.jsxs)(t.$n,{ml:1,onClick:function(){return a("PC_light_color")},children:["Color:",(0,e.jsx)(t.BK,{ml:1,color:E})]})]}),(0,e.jsx)(t.wn,{title:"User Login",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!M.IDName,onClick:function(){return a("PC_Eject_Disk",{name:"ID"})},children:"Eject ID"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:["ID Name: ",M.IDName]}),(0,e.jsxs)(t.XI.Row,{children:["Assignment: ",M.IDJob]})]})}),!!C.length&&(0,e.jsx)(t.wn,{title:"Media Eject",children:(0,e.jsx)(t.XI,{children:C.map(function(_){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"eject",onClick:function(){return a("PC_Eject_Disk",{name:_})},children:_})})},_)})})}),(0,e.jsx)(t.wn,{title:"Programs",children:(0,e.jsx)(t.XI,{children:f.map(function(_){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:s[_.name]||"window-maximize-o",onClick:function(){return a("PC_runprogram",{name:_.name})},children:_.desc})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:!!_.running&&(0,e.jsx)(t.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return a("PC_killprogram",{name:_.name})}})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(t.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:_.autorun,onClick:function(){return a("PC_setautorun",{name:_.name})},children:"AR"})})]},_.name)})})})]})})}},9785:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNetChat:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.can_admin,i=a.adminmode,c=a.authed,f=a.username,m=a.active_channel,v=a.is_operator,E=a.all_channels,j=E===void 0?[]:E,C=a.clients,P=C===void 0?[]:C,M=a.messages,_=M===void 0?[]:M,S=m!==null,T=c||i;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(t.wn,{height:"600px",children:(0,e.jsx)(t.XI,{height:"580px",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(t.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(b,L){return d("PRG_newchannel",{new_channel_name:L})},children:"New Channel..."}),j.map(function(b){return(0,e.jsx)(t.$n,{fluid:!0,selected:b.id===m,color:"transparent",onClick:function(){return d("PRG_joinchannel",{id:b.id})},children:b.chan},b.chan)})]}),(0,e.jsx)(t.$n.Input,{fluid:!0,mt:1,currentValue:f,onCommit:function(b,L){return d("PRG_changename",{new_name:L})},children:f+"..."}),!!l&&(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:i?"bad":"good",onClick:function(){return d("PRG_toggleadmin")},children:"ADMIN MODE: "+(i?"ON":"OFF")})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.az,{height:"560px",overflowY:"scroll",children:S&&(T?_.map(function(b){return(0,e.jsx)(t.az,{children:b.msg},b.msg)}):(0,e.jsxs)(t.az,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(t.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(t.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(t.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(b,L){return d("PRG_speak",{message:L})}})]}),(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(t.az,{height:"465px",overflowY:"scroll",children:P.map(function(b){return(0,e.jsx)(t.az,{children:b.name},b.name)})}),S&&T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,defaultValue:"new_log",onCommit:function(b,L){return d("PRG_savelog",{log_name:L})},children:"Save log..."}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_leavechannel")},children:"Leave Channel"})]}),!!v&&c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_deletechannel")},children:"Delete Channel"}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(b,L){return d("PRG_renamechannel",{new_name:L})},children:"Rename Channel..."}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(b,L){return d("PRG_setpassword",{new_password:L})},children:"Set Password..."})]})]})]})})})})})}},82193:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNetDos:function(){return s},NtosNetDosContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.relays,c=i===void 0?[]:i,f=l.focus,m=l.target,v=l.speed,E=l.overload,j=l.capacity,C=l.error;if(C)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:C}),(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",onClick:function(){return a("PRG_reset")},children:"Reset"})]});var P=function(_){for(var S="",T=E/j;S.length<_;)Math.random()>T?S+="0":S+="1";return S},M=45;return m?(0,e.jsxs)(t.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.az,{children:["CURRENT SPEED: ",v," GQ/s"]}),(0,e.jsx)(t.az,{children:P(M)}),(0,e.jsx)(t.az,{children:P(M)}),(0,e.jsx)(t.az,{children:P(M)}),(0,e.jsx)(t.az,{children:P(M)}),(0,e.jsx)(t.az,{children:P(M)})]}):(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:c.map(function(_){return(0,e.jsx)(t.$n,{selected:f===_.id,onClick:function(){return a("PRG_target_relay",{targid:_.id})},children:_.id},_.id)})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:"bad",textAlign:"center",disabled:!f,mt:1,onClick:function(){return a("PRG_execute")},children:"EXECUTE"})]})}},43726:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNetDownloader:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),x=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.PC_device_theme,f=i.disk_size,m=i.disk_used,v=i.downloadable_programs,E=v===void 0?[]:v,j=i.error,C=i.hacked_programs,P=C===void 0?[]:C,M=i.hackedavailable;return(0,e.jsx)(s.Zm,{theme:c,width:480,height:735,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:j}),(0,e.jsx)(r.$n,{onClick:function(){return l("PRG_reseterror")},children:"Reset"})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:m,minValue:0,maxValue:f,children:m+" GQ / "+f+" GQ"})})})}),(0,e.jsx)(r.wn,{children:E.map(function(_){return(0,e.jsx)(g,{program:_},_.filename)})}),!!M&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),P.map(function(_){return(0,e.jsx)(g,{program:_},_.filename)})]})]})})},g=function(d){var a=d.program,l=(0,t.Oc)(),i=l.act,c=l.data,f=c.disk_size,m=c.disk_used,v=c.downloadcompletion,E=c.downloadname,j=c.downloadsize,C=c.downloadspeed,P=c.downloads_queue,M=f-m;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:a.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[a.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:a.filename===E&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:j,value:v,children:[(0,o.Mg)(v/j*100,1),"%\xA0","("+C+"GQ/s)"]})||P.indexOf(a.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return i("PRG_removequeued",{filename:a.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",disabled:a.size>M,onClick:function(){return i("PRG_downloadfile",{filename:a.filename})},children:"Download"})})]}),a.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),a.size>M&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:a.fileinfo})]})}},30817:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNetMonitor:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.ntnetrelays,i=a.ntnetstatus,c=a.config_softwaredownload,f=a.config_peertopeer,m=a.config_communication,v=a.config_systemcontrol,E=a.idsalarm,j=a.idsstatus,C=a.ntnetmaxlogs,P=a.maxlogs,M=a.minlogs,_=a.banned_nids,S=a.ntnetlogs,T=S===void 0?[]:S;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(t.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(t.$n.Confirm,{icon:i?"power-off":"times",selected:i,onClick:function(){return d("toggleWireless")},children:i?"ENABLED":"DISABLED"}),children:l?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Active NTNet Relays",children:l})}):"No Relays Connected"}),(0,e.jsx)(t.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(t.$n,{icon:c?"power-off":"times",selected:c,onClick:function(){return d("toggle_function",{id:"1"})},children:c?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(t.$n,{icon:f?"power-off":"times",selected:f,onClick:function(){return d("toggle_function",{id:"2"})},children:f?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(t.$n,{icon:m?"power-off":"times",selected:m,onClick:function(){return d("toggle_function",{id:"3"})},children:m?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,onClick:function(){return d("toggle_function",{id:"4"})},children:v?"ENABLED":"DISABLED"})})]})}),(0,e.jsxs)(t.wn,{title:"Security Systems",children:[!!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(t.az,{italic:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return d("ban_nid")},children:"Ban NID"}),(0,e.jsx)(t.$n,{icon:"balance-scale",onClick:function(){return d("unban_nid")},children:"Unban NID"})]}),children:_.join(", ")||"None"}),(0,e.jsx)(t.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:j?"power-off":"times",selected:j,onClick:function(){return d("toggleIDS")},children:j?"ENABLED":"DISABLED"}),(0,e.jsx)(t.$n,{icon:"sync",color:"bad",onClick:function(){return d("resetIDS")},children:"Reset"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(t.Q7,{step:1,value:C,minValue:M,maxValue:P,width:"39px",onChange:function(b){return d("updatemaxlogs",{new_number:b})}})})]}),(0,e.jsx)(t.wn,{title:"System Log",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return d("purgelogs")},children:"Clear Logs"}),children:T.map(function(b){return(0,e.jsx)(t.az,{className:"candystripe",children:b.entry},b.entry)})})]})]})})}},49106:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNetTransfer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(i){var c=(0,o.Oc)().data,f=c.error,m=c.downloading,v=c.uploading,E=c.upload_filelist,j=(0,e.jsx)(l,{});return f?j=(0,e.jsx)(x,{}):m?j=(0,e.jsx)(g,{}):v?j=(0,e.jsx)(d,{}):E.length&&(j=(0,e.jsx)(a,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},x=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.error;return(0,e.jsxs)(t.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Reset"}),children:["Additional Information: ",v]})},g=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.download_name,E=m.download_progress,j=m.download_size,C=m.download_netspeed;return(0,e.jsx)(t.wn,{title:"Download in progress",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Downloaded File",children:v}),(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsxs)(t.z2,{value:E,maxValue:j,children:[E," / ",j," GQ"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Speed",children:[C," GQ/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Controls",children:(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Download"})})]})})},d=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.upload_clients,E=m.upload_filename,j=m.upload_haspassword;return(0,e.jsx)(t.wn,{title:"Server enabled",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Clients Connected",children:v}),(0,e.jsx)(t.Ki.Item,{label:"Provided file",children:E}),(0,e.jsx)(t.Ki.Item,{label:"Server Password",children:j?"Enabled":"Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Commands",children:[(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Upload"})]})]})})},a=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.upload_filelist;return(0,e.jsxs)(t.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.wn,{title:"Pick file to serve.",children:v.map(function(E){return(0,e.jsxs)(t.$n,{fluid:!0,icon:"upload",onClick:function(){return f("PRG_uploadfile",{uid:E.uid})},children:[E.filename," (",E.size,"GQ)"]},E.uid)})})]})},l=function(i){var c=(0,o.Oc)(),f=c.act,m=c.data,v=m.servers;return(0,e.jsx)(t.wn,{title:"Available Files",buttons:(0,e.jsx)(t.$n,{icon:"upload",onClick:function(){return f("PRG_uploadmenu")},children:"Send File"}),children:v.length&&(0,e.jsx)(t.Ki,{children:v.map(function(E){return(0,e.jsxs)(t.Ki.Item,{label:E.uid,children:[!!E.haspassword&&(0,e.jsx)(t.In,{name:"lock",mr:1}),E.filename,"\xA0 (",E.size,"GQ)\xA0",(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return f("PRG_downloadfile",{uid:E.uid})},children:"Download"})]},E.uid)})})||(0,e.jsx)(t.az,{children:"No upload servers found."})})}},50653:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosNewsBrowser:function(){return x}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),s=n(15581),x=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.article,v=f.download,E=f.message,j=(0,e.jsx)(d,{});return m?j=(0,e.jsx)(g,{}):v&&(j=(0,e.jsx)(a,{})),(0,e.jsx)(s.Zm,{width:575,height:750,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!E&&(0,e.jsxs)(r.IC,{children:[E," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return c("PRG_clearmessage")}})]}),j]})})},g=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.article;if(!m)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var v=m.title,E=m.cover,j=m.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+v,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return c("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return c("PRG_reset")},children:"Close"})]}),children:[!!E&&(0,e.jsx)(r._V,{src:(0,o.l)(E)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:j}})]})},d=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.showing_archived,v=f.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return c("PRG_toggle_archived")},checked:m,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:v.length&&v.map(function(E){return(0,e.jsxs)(r.Ki.Item,{label:E.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return c("PRG_openarticle",{uid:E.uid})}}),children:[E.size," GQ"]},E.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},a=function(l){var i=(0,t.Oc)(),c=i.act,f=i.data,m=f.download,v=m.download_progress,E=m.download_maxprogress,j=m.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:v,maxValue:E,children:[v," / ",E," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[j," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return c("PRG_reset")},children:"Abort Download"})})]})})}},95436:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosOvermapNavigation:function(){return r}});var e=n(20462),o=n(15581),t=n(65912),r=function(){return(0,e.jsx)(o.Zm,{width:380,height:530,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.OvermapNavigationContent,{})})})}},75655:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosPowerMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(91276),r=function(){return(0,e.jsx)(o.Zm,{width:550,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},81986:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosRCON:function(){return r}});var e=n(20462),o=n(15581),t=n(72778),r=function(){return(0,e.jsx)(o.Zm,{width:630,height:440,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.RCONContent,{})})})}},35399:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosRevelation:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(i,c){return d("PRG_obfuscate",{new_name:c})},mb:1,children:"Obfuscate Name..."}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(t.$n,{color:l?"bad":"average",onClick:function(){return d("PRG_arm")},children:l?"ARMED":"DISARMED"})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,textAlign:"center",color:"bad",disabled:!l,children:"ACTIVATE"})]})})})}},79389:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosShutoffMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(67889),r=function(){return(0,e.jsx)(o.Zm,{width:627,height:700,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.ShutoffMonitorContent,{})})})}},98011:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosStationAlertConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(68679),r=function(){return(0,e.jsx)(o.Zm,{width:315,height:500,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.StationAlertConsoleContent,{})})})}},57488:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosSupermatterMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(50028),r=function(){return(0,e.jsx)(o.Zm,{width:600,height:400,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.SupermatterMonitorContent,{})})})}},10774:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosUAV:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.current_uav,i=a.signal_strength,c=a.in_use,f=a.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(t.wn,{title:"Selected UAV",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"UAV",children:l&&l.status||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Signal",children:l&&i||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:l&&(0,e.jsx)(t.$n,{icon:"power-off",selected:l.power,onClick:function(){return d("power_uav")},children:l.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Camera",children:l&&(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:!l.power,onClick:function(){return d("view_uav")},children:l.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.wn,{title:"Paired UAVs",children:f.length&&f.map(function(m){return(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"quidditch",onClick:function(){return d("switch_uav",{switch_uav:m.uavref})},children:m.name})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{color:"bad",icon:"times",onClick:function(){return d("del_uav",{del_uav:m.uavref})}})})]},m.uavref)})||(0,e.jsx)(t.az,{color:"average",children:"No UAVs Paired."})})]})})}},69062:function(O,u,n){"use strict";n.r(u),n.d(u,{NtosWordProcessor:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.PC_device_theme,i=a.error,c=a.browsing,f=a.files,m=a.filename,v=a.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:l,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:i&&(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",i,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("PRG_backtomenu")},children:"Back to menu"})]})||c&&(0,e.jsx)(t.wn,{title:"File Browser",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("PRG_closebrowser")},children:"Back to editor"}),children:(0,e.jsx)(t.wn,{title:"Available documents (local)",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0})]}),f.map(function(E,j){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:E.name}),(0,e.jsx)(t.XI.Cell,{children:E.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return d("PRG_openfile",{PRG_openfile:E.name})},children:"Open"})})]},j)})]})})})||(0,e.jsxs)(t.wn,{title:"Document: "+m,children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_newfile")},children:"New"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_savefile")},children:"Save"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_editfile")},children:"Edit"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(t.$n,{disabled:!v,onClick:function(){return d("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})})]})})})}},46836:function(O,u,n){"use strict";n.r(u),n.d(u,{NumberInputModal:function(){return a}});var e=n(20462),o=n(87239),t=n(61358),r=n(7081),s=n(88569),x=n(15581),g=n(5335),d=n(44149),a=function(i){var c=(0,r.Oc)(),f=c.act,m=c.data,v=m.init_value,E=m.large_buttons,j=m.message,C=j===void 0?"":j,P=m.timeout,M=m.title,_=(0,t.useState)(v),S=_[0],T=_[1],b=function(W){W!==S&&T(W)},L=140+(C.length>30?Math.ceil(C.length/3):0)+(C.length&&E?5:0);return(0,e.jsxs)(x.p8,{title:M,width:270,height:L,children:[P&&(0,e.jsx)(d.Loader,{value:P}),(0,e.jsx)(x.p8.Content,{onKeyDown:function(W){W.key===o._.Enter&&f("submit",{entry:S}),(0,o.K)(W.key)&&f("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.az,{color:"label",children:C})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(l,{input:S,onClick:b,onChange:b,onBlur:b})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:S})})]})})})]})},l=function(i){var c=(0,r.Oc)(),f=c.act,m=c.data,v=m.min_value,E=m.max_value,j=m.init_value,C=m.round_value,P=i.input,M=i.onClick,_=i.onChange,S=i.onBlur;return(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:P===v,icon:"angle-double-left",onClick:function(){return M(v)},tooltip:v?"Min ("+v+")":"Min"})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:v,maxValue:E,onChange:function(T,b){return _(b)},onBlur:function(T,b){return S(b)},onEnter:function(T,b){return f("submit",{entry:b})},value:P})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:P===E,icon:"angle-double-right",onClick:function(){return M(E)},tooltip:E?"Max ("+E+")":"Max"})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:P===j,icon:"redo",onClick:function(){return M(j)},tooltip:j?"Reset ("+j+")":"Reset"})})]})}},12333:function(O,u,n){"use strict";n.r(u),n.d(u,{OmniFilter:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.power,c=l.config,f=l.ports,m=l.set_flow_rate,v=l.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:c?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:i,disabled:c,onClick:function(){return a("power")},children:i?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:c,onClick:function(){return a("configure")}})]}),children:(0,e.jsx)(t.Ki,{children:f?f.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.dir+" Port",children:c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:E.input,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:"in",dir:E.dir})},children:"IN"}),(0,e.jsx)(t.$n,{selected:E.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:E.dir})},children:"OUT"}),(0,e.jsx)(t.$n,{icon:"wrench",disabled:E.input||E.output,onClick:function(){return a("switch_filter",{mode:E.f_type,dir:E.dir})},children:E.f_type||"None"})]}):s(E)},E.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[v," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:c?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return a("set_flow_rate")},children:m+" L/s"}):m+" L/s"})]})})]})})}},60780:function(O,u,n){"use strict";n.r(u),n.d(u,{OmniMixer:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){return d.input?"Input":d.output?"Output":d.f_type?d.f_type:"Disabled"},x=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.power,f=i.config,m=i.ports,v=i.set_flow_rate,E=i.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:f?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:f,onClick:function(){return l("power")},children:c?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:f,onClick:function(){return l("configure")}})]}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Port"}),f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Concentration"}),f?(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map(function(j){return(0,e.jsx)(g,{port:j,config:f},j.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[E," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:f?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return l("set_flow_rate")},children:v+" L/s"}):v+" L/s"})]})})]})})},g=function(d){var a=(0,o.Oc)().act,l=d.port,i=d.config;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:l.dir+" Port"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:i?(0,e.jsx)(t.$n,{selected:l.input,disabled:l.output,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:l.input?"none":"in",dir:l.dir})},children:"IN"}):s(l)}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:i?(0,e.jsx)(t.$n,{selected:l.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:l.dir})},children:"OUT"}):l.concentration*100+"%"}),i?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(t.$n,{width:"100%",icon:"wrench",disabled:!l.input,onClick:function(){return a("switch_con",{dir:l.dir})},children:l.input?l.concentration*100+" %":"-"})}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{icon:l.con_lock?"lock":"lock-open",disabled:!l.input,selected:l.con_lock,onClick:function(){return a("switch_conlock",{dir:l.dir})},children:l.f_type||"None"})})]}):null]})}},43213:function(O,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerOptions:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.verbose,l=d.health,i=d.healthAlarm,c=d.oxy,f=d.oxyAlarm,m=d.crit;return(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(t.$n,{selected:a,icon:a?"toggle-on":"toggle-off",onClick:function(){return g(a?"verboseOff":"verboseOn")},children:a?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(t.$n,{selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return g(l?"healthOff":"healthOn")},children:l?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:-100,maxValue:100,value:i,stepPixelSize:5,ml:"0",format:function(v){return v+"%"},onChange:function(v,E){return g("health_adj",{new:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(t.$n,{selected:c,icon:c?"toggle-on":"toggle-off",onClick:function(){return g(c?"oxyOff":"oxyOn")},children:c?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:-100,maxValue:100,value:f,stepPixelSize:5,ml:"0",onChange:function(v,E){return g("oxy_adj",{new:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(t.$n,{selected:m,icon:m?"toggle-on":"toggle-off",onClick:function(){return g(m?"critOff":"critOn")},children:m?"On":"Off"})})]})}},88424:function(O,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerPatient:function(){return s}});var e=n(20462),o=n(4089),t=n(88569),r=n(6050),s=function(x){var g=x.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Patient",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:g.name}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[g.stat][0],children:r.stats[g.stat][1]}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),r.damages.map(function(d,a){return(0,e.jsx)(t.Ki.Item,{label:d[0]+" Damage",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:g[d[1]]/100,ranges:r.damageRange,children:(0,o.Mg)(g[d[1]])},a)},a)}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:g.bodyTemperature/g.maxTemp,color:r.tempColors[g.temperatureSuitability+3],children:[(0,o.Mg)(g.btCelsius),"\xB0C, ",(0,o.Mg)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Pulse",children:[g.pulse," BPM"]})]})]})}),(0,e.jsx)(t.wn,{title:"Current Procedure",children:g.surgery&&g.surgery.length?(0,e.jsx)(t.Ki,{children:g.surgery.map(function(d){return(0,e.jsx)(t.Ki.Item,{label:d.name,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current State",children:d.currentStage}),(0,e.jsx)(t.Ki.Item,{label:"Possible Next Steps",children:d.nextSteps.map(function(a){return(0,e.jsx)("div",{children:a},a)})})]})},d.name)})}):(0,e.jsx)(t.az,{color:"label",children:"No procedure ongoing."})})]})}},13846:function(O,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerUnoccupied:function(){return t}});var e=n(20462),o=n(88569),t=function(r){return(0,e.jsx)(o.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(o.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(o.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No patient detected."]})})}},6050:function(O,u,n){"use strict";n.r(u),n.d(u,{damageRange:function(){return t},damages:function(){return o},stats:function(){return e},tempColors:function(){return r}});var e=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],o=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],t={average:[.25,.5],bad:[.5,1/0]},r=["bad","average","average","good","average","average","bad"]},70509:function(O,u,n){"use strict";n.r(u),n.d(u,{OperatingComputer:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(43213),x=n(88424),g=n(13846),d=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.hasOccupant,m=c.choice,v=c.occupant,E;return m?E=(0,e.jsx)(s.OperatingComputerOptions,{}):E=f?(0,e.jsx)(x.OperatingComputerPatient,{occupant:v}):(0,e.jsx)(g.OperatingComputerUnoccupied,{}),(0,e.jsx)(r.p8,{width:650,height:455,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!m,icon:"user",onClick:function(){return i("choiceOff")},children:"Patient"}),(0,e.jsx)(t.tU.Tab,{selected:!!m,icon:"cog",onClick:function(){return i("choiceOn")},children:"Options"})]}),(0,e.jsx)(t.wn,{flexGrow:!0,children:E})]})})}},36882:function(O,u,n){"use strict";n.r(u)},81105:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapDisperser:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(91198),x=function(d){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.faillink,f=i.calibration,m=i.overmapdir,v=i.cal_accuracy,E=i.strength,j=i.range,C=i.next_shot,P=i.nopower,M=i.chargeload;return c?(0,e.jsx)(t.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(t.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"22%",children:(0,e.jsx)(t.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(s.OvermapPanControls,{actToDo:"choose",selected:function(_){return _===m}})})}),(0,e.jsx)(t.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(t.wn,{title:"Charge",children:(0,e.jsxs)(t.Ki,{children:[P&&(0,e.jsx)(t.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||"",(0,e.jsx)(t.Ki.Item,{label:"Charge Load Type",children:M}),(0,e.jsx)(t.Ki.Item,{label:"Cooldown",children:C===0&&(0,e.jsx)(t.az,{color:"good",children:"Ready"})||C>1&&(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.zv,{value:C})," Seconds",(0,e.jsx)(t.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||""})]})})}),(0,e.jsx)(t.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(t.wn,{title:"Calibration",children:[(0,e.jsx)(t.zv,{value:v}),"%",(0,e.jsx)(t.$n,{ml:1,icon:"exchange-alt",onClick:function(){return l("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.az,{mt:1,children:f.map(function(_,S){return(0,e.jsxs)(t.az,{children:["Cal #",S,":",(0,e.jsx)(t.$n,{ml:1,icon:"random",onClick:function(){return l("calibration",{calibration:S})},children:_.toString()})]},S)})})]})}),(0,e.jsx)(t.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(t.wn,{title:"Setup",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Strength",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return l("strength")},children:E})}),(0,e.jsx)(t.Ki.Item,{label:"Radius",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return l("range")},children:j})})]})})}),(0,e.jsx)(t.so.Item,{grow:1,mt:1,children:(0,e.jsx)(t.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return l("fire")},children:"Fire ORB"})})]})}},22813:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapEngines:function(){return s},OvermapEnginesContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.global_state,c=l.global_limit,f=l.engines_info,m=l.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Engines",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:i,onClick:function(){return a("global_toggle")},children:i?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_global_limit")},children:[c,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(t.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(t.zv,{value:m})})]})}),(0,e.jsx)(t.wn,{title:"Engines",height:"340px",style:{overflowY:"auto"},children:f.map(function(v,E){return(0,e.jsxs)(t.so,{spacing:1,mt:E!==0&&-1,children:[(0,e.jsx)(t.so.Item,{basis:"80%",children:(0,e.jsx)(t.Nt,{title:(0,e.jsxs)(t.az,{inline:!0,children:["Engine #",E+1," | Thrust:"," ",(0,e.jsx)(t.zv,{value:v.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.zv,{value:v.eng_thrust_limiter,format:function(j){return j+"%"}})]}),children:(0,e.jsx)(t.wn,{width:"127%",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:v.eng_type}),(0,e.jsxs)(t.Ki.Item,{label:"Status",children:[(0,e.jsx)(t.az,{color:v.eng_on?v.eng_on===1?"good":"average":"bad",children:v.eng_on?v.eng_on===1?"Online":"Booting":"Offline"}),v.eng_status.map(function(j,C){return Array.isArray(j)?(0,e.jsx)(t.az,{color:j[1],children:j[0]},C):(0,e.jsx)(t.az,{children:j},C)})]}),(0,e.jsx)(t.Ki.Item,{label:"Current Thrust",children:v.eng_thrust}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:-.1,engine:v.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_limit",{engine:v.eng_reference})},children:[v.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:.1,engine:v.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.so.Item,{basis:"20%",children:(0,e.jsx)(t.$n,{fluid:!0,iconSpin:v.eng_on===-1,color:v.eng_on===-1?"purple":void 0,selected:v.eng_on===1,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:v.eng_reference})},children:v.eng_on?v.eng_on===1?"Shutoff":"Booting":"Startup"})})]},E)})})]})}},61321:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapFull:function(){return d}});var e=n(20462),o=n(61358),t=n(88569),r=n(15581),s=n(22813),x=n(7558),g=n(97275),d=function(a){var l=(0,o.useState)(0),i=l[0],c=l[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:i===0,onClick:function(){return c(0)},children:"Engines"}),(0,e.jsx)(t.tU.Tab,{selected:i===1,onClick:function(){return c(1)},children:"Helm"}),(0,e.jsx)(t.tU.Tab,{selected:i===2,onClick:function(){return c(2)},children:"Sensors"})]}),i===0&&(0,e.jsx)(s.OvermapEnginesContent,{}),i===1&&(0,e.jsx)(x.OvermapHelmContent,{}),i===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},7558:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapFlightDataWrap:function(){return d},OvermapHelm:function(){return x},OvermapHelmContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(91198),x=function(c){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(c){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(d,{})}),(0,e.jsx)(t.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(a,{})}),(0,e.jsx)(t.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(l,{})})]}),(0,e.jsx)(i,{})]})},d=function(c){return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(s.OvermapFlightData,{})]})},a=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.canburn,j=v.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(t.so,{align:"center",justify:"center",children:(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(s.OvermapPanControls,{disabled:!E,actToDo:"move"})})}),(0,e.jsxs)(t.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(t.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(t.$n,{selected:j,onClick:function(){return m("manual")},icon:"compass",children:j?"Enabled":"Disabled"})]})]})},l=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.dest,j=v.d_x,C=v.d_y,P=v.speedlimit,M=v.autopilot,_=v.autopilot_disabled;return _?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(t.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(t.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.$n.Confirm,{mt:1,color:"bad",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return m("apilot_lock")},children:"Unlock Autopilot"})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return m("setcoord",{setx:!0})},children:j}),(0,e.jsx)(t.$n,{onClick:function(){return m("setcoord",{sety:!0})},children:C})]})||(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(t.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(t.$n,{icon:"tachometer-alt",onClick:function(){return m("speedlimit")},children:[P," Gm/h"]})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,selected:M,disabled:!E,icon:"robot",onClick:function(){return m("apilot")},children:M?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return m("apilot_lock")},children:"Lock Autopilot"})]})},i=function(c){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.sector,j=v.s_x,C=v.s_y,P=v.sector_info,M=v.landed,_=v.locations;return(0,e.jsxs)(t.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[j," : ",C]}),(0,e.jsx)(t.Ki.Item,{label:"Scan Data",children:P}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:M})]}),(0,e.jsxs)(t.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"save",onClick:function(){return m("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return m("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(t.wn,{mt:1,scrollable:!0,fill:!0,height:"130px",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),_.map(function(S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:S.name}),(0,e.jsxs)(t.XI.Cell,{children:[S.x," : ",S.y]}),(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return m("setds",{x:S.x,y:S.y})},children:"Plot Course"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return m("remove",{remove:S.reference})},children:"Remove"})]})]},S.name)})]})})]})}},65912:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapNavigation:function(){return x},OvermapNavigationContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(91198),x=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(d){var a=(0,o.Oc)(),l=a.act,i=a.data,c=i.sector,f=i.s_x,m=i.s_y,v=i.sector_info,E=i.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Current Location",buttons:(0,e.jsx)(t.$n,{icon:"eye",selected:E,onClick:function(){return l("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:c}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[f," : ",m]}),(0,e.jsx)(t.Ki.Item,{label:"Additional Information",children:v})]})}),(0,e.jsx)(t.wn,{title:"Flight Data",children:(0,e.jsx)(s.OvermapFlightData,{disableLimiterControls:!0})})]})}},30766:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapShieldGenerator:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(a){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.modes,m=c.offline_for;return m?(0,e.jsxs)(t.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",m," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(d,{}),(0,e.jsx)(t.wn,{title:"Field Calibration",children:f.map(function(v){return(0,e.jsxs)(t.wn,{title:v.name,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v.status,onClick:function(){return i("toggle_mode",{toggle_mode:v.flag})},children:v.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.az,{color:"label",children:v.desc}),(0,e.jsxs)(t.az,{mt:.5,children:["Multiplier: ",v.multiplier]})]},v.name)})})]})},g=function(a){var l=(0,o.Oc)().data,i=l.running,c=l.overloaded,f=l.mitigation_max,m=l.mitigation_physical,v=l.mitigation_em,E=l.mitigation_heat,j=l.field_integrity,C=l.max_energy,P=l.current_energy,M=l.percentage_energy,_=l.total_segments,S=l.functional_segments,T=l.field_radius,b=l.target_radius,L=l.input_cap_kw,W=l.upkeep_power_usage,k=l.power_usage,$=l.spinup_counter,w=[];return w[1]=(0,e.jsx)(t.az,{color:"average",children:"Shutting Down"}),w[2]=(0,e.jsx)(t.az,{color:"bad",children:"Overloaded"}),w[3]=(0,e.jsx)(t.az,{color:"average",children:"Inactive"}),w[4]=(0,e.jsxs)(t.az,{color:"blue",children:["Spinning Up\xA0",b!==T&&(0,e.jsx)(t.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(t.az,{inline:!0,children:[$*2,"s"]})]}),(0,e.jsx)(t.wn,{title:"System Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Generator is",children:w[i]||(0,e.jsx)(t.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(t.z2,{value:P,maxValue:C,children:[P," / ",C," MJ (",M,"%)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(t.zv,{value:j}),"%"]}),(0,e.jsxs)(t.Ki.Item,{label:"Mitigation",children:[v,"% EM / ",m,"% PH / ",E,"% HE / ",f,"% MAX"]}),(0,e.jsxs)(t.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.zv,{value:W})," kW"]}),(0,e.jsx)(t.Ki.Item,{label:"Total Energy Use",children:L&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.z2,{value:k,maxValue:L,children:[k," / ",L," kW"]})})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.zv,{value:k})," kW (No Limit)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(t.zv,{value:S}),"\xA0/\xA0",(0,e.jsx)(t.zv,{value:_})," m\xB2 (radius"," ",(0,e.jsx)(t.zv,{value:T}),", target"," ",(0,e.jsx)(t.zv,{value:b}),")"]})]})})},d=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.running,m=c.hacked,v=c.idle_multiplier,E=c.idle_valid_values;return(0,e.jsxs)(t.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[f>=2&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("begin_shutdown")},selected:!0,children:"Turn off"}),f===3&&(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("start_generator")},children:"Turn on"}),f&&m&&(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return i("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||""]}),children:[(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return i("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.$n,{icon:"bolt",onClick:function(){return i("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Set inactive power use intensity",children:E.map(function(j){return(0,e.jsx)(t.$n,{selected:j===v,disabled:f===4,onClick:function(){return i("switch_idle",{switch_idle:j})},children:j},j)})})})]})}},97275:function(O,u,n){"use strict";n.r(u),n.d(u,{OvermapShipSensors:function(){return s},OvermapShipSensorsContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.viewing,c=l.on,f=l.range,m=l.health,v=l.max_health,E=l.heat,j=l.critical_heat,C=l.status,P=l.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eye",selected:i,onClick:function(){return a("viewing")},children:"Map View"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return a("toggle_sensor")},children:c?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:C}),(0,e.jsx)(t.Ki.Item,{label:"Range",children:(0,e.jsx)(t.$n,{icon:"signal",onClick:function(){return a("range")},children:f})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(t.z2,{ranges:{good:[v*.75,1/0],average:[v*.25,v*.75],bad:[-1/0,v*.25]},value:m,maxValue:v,children:[m," / ",v]})}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsx)(t.z2,{ranges:{bad:[j*.75,1/0],average:[j*.5,j*.75],good:[-1/0,j*.5]},value:E,maxValue:j,children:E0||!v)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return l("cancel",{cancel:M+1})},children:"Cancel"})||""]},P)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:C.length&&C.map(function(P){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return l("queue",{queue:P.type})},children:(0,o.Sn)(P.name)})},P.name)})})]})})}},71675:function(O,u,n){"use strict";n.r(u),n.d(u,{PathogenicIsolator:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(86471),g=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.can_print,E=i.args;return(0,e.jsx)(r.wn,{m:"-1rem",title:E.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!v,icon:"print",onClick:function(){return f("print",{type:"virus_record",vir:E.record})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return f("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[E.spreadtype," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:E.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:E.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[E.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:E.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:E.symptoms.map(function(j){return(0,e.jsxs)(r.Ki.Item,{label:j.stage+". "+j.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",j.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",j.aggressiveness]})]},j.stage)})})})]})})})},d=function(i){var c=(0,t.Oc)().data,f=c.isolating,m=(0,o.useState)(0),v=m[0],E=m[1],j=[];return j[0]=(0,e.jsx)(a,{}),j[1]=(0,e.jsx)(l,{}),(0,x.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(s.p8,{height:500,width:520,children:[(0,e.jsx)(x.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[f&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||"",(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:v===0,onClick:function(){return E(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:v===1,onClick:function(){return E(1)},children:"Database"})]}),j[v]||""]})]})},a=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.syringe_inserted,E=m.pathogen_pool,j=m.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",disabled:!j,onClick:function(){return f("print",{type:"patient_diagnosis"})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!v,onClick:function(){return f("eject")},children:"Eject Syringe"})]}),children:E.length&&E.map(function(C){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",C.unique_id]}),C.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",onClick:function(){return f("isolate",{isolate:C.reference})},children:"Isolate"}),(0,e.jsx)(r.$n,{icon:"search",disabled:!C.is_in_database,onClick:function(){return f("view_entry",{vir:C.record})},children:"Database"})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:C.name}),C.dna]})]},C.unique_id)})||(v?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},l=function(i){var c=(0,t.Oc)(),f=c.act,m=c.data,v=m.database,E=m.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",disabled:!E,onClick:function(){return f("print",{type:"virus_list"})},children:"Print"}),children:v.length&&v.map(function(j){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return f("view_entry",{vir:j.record})},children:j.name},j.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},50350:function(O,u,n){"use strict";n.r(u),n.d(u,{Pda:function(){return a}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(15857),g=n(75091);function d(f){var m;try{m=g("./"+f+".tsx")}catch(E){if(E.code==="MODULE_NOT_FOUND")return(0,x.z)("notFound",f);throw E}var v=m[f];return v||(0,x.z)("missingExport",f)}var a=function(f){var m=function(b){S(b)},v=(0,t.Oc)().data,E=v.app,j=v.owner,C=v.useRetro;if(!j)return(0,e.jsx)(s.p8,{children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var P=d(E.template),M=(0,o.useState)(!1),_=M[0],S=M[1];return(0,e.jsx)(s.p8,{width:580,height:670,theme:C?"pda-retro":void 0,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(l,{settingsMode:_,onSettingsMode:m}),_&&(0,e.jsx)(i,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:E.icon,mr:1}),E.name]}),p:1,children:(0,e.jsx)(P,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(c,{onSettingsMode:m})]})})},l=function(f){var m=(0,t.Oc)(),v=m.act,E=m.data,j=E.idInserted,C=E.idLink,P=E.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!j&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return v("Authenticate")},children:C})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:P}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:f.settingsMode,onClick:function(){return f.onSettingsMode(!f.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return v("Retro")},icon:"adjust"})]})]})})},i=function(f){var m=(0,t.Oc)(),v=m.act,E=m.data,j=E.idInserted,C=E.idLink,P=E.cartridge_name,M=E.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",onClick:function(){return v("Retro")},children:"Retro Theme"})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!M,onClick:function(){return v("TouchSounds")},children:M?"Disabled":"Enabled"})}),!!P&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return v("Eject")},children:P})}),!!j&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return v("Authenticate")},children:C})})]})})},c=function(f){var m=(0,t.Oc)(),v=m.act,E=m.data,j=E.app,C=E.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:C?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:j.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return v("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:j.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){f.onSettingsMode(!1),v("Home")}})})]})})}},46184:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_atmos_scan:function(){return g}});var e=n(20462),o=n(7402),t=n(61282),r=n(7081),s=n(88569),x=function(d,a,l,i,c){return di?"average":d>c?"bad":"good"},g=function(d){var a=(0,r.Oc)(),l=a.act,i=a.data,c=i.aircontents;return(0,e.jsx)(s.az,{children:(0,e.jsx)(s.Ki,{children:(0,o.pb)(c,function(f){return f.val!=="0"||f.entry==="Pressure"||f.entry==="Temperature"}).map(function(f){return(0,e.jsxs)(s.Ki.Item,{label:f.entry,color:x(f.val,f.bad_low,f.poor_low,f.poor_high,f.bad_high),children:[f.val,(0,t.jT)(f.units)]},f.entry)})})})}},16091:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_janitor:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.janitor;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:a.user_loc.x===0&&(0,e.jsx)(t.az,{color:"bad",children:"Unknown"})||(0,e.jsxs)(t.az,{children:[a.user_loc.x," / ",a.user_loc.y]})})}),(0,e.jsx)(t.wn,{title:"Mop Locations",children:a.mops&&(0,e.jsx)("ul",{children:a.mops.map(function(l,i){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Status: ",l.status]},i)})})||(0,e.jsx)(t.az,{color:"bad",children:"No mops detected nearby."})}),(0,e.jsx)(t.wn,{title:"Mop Bucket Locations",children:a.buckets&&(0,e.jsx)("ul",{children:a.buckets.map(function(l,i){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Capacity:"," ",l.volume,"/",l.max_volume]},i)})})||(0,e.jsx)(t.az,{color:"bad",children:"No buckets detected nearby."})}),(0,e.jsx)(t.wn,{title:"Cleanbot Locations",children:a.cleanbots&&(0,e.jsx)("ul",{children:a.cleanbots.map(function(l,i){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Status:"," ",l.status]},i)})})||(0,e.jsx)(t.az,{color:"bad",children:"No cleanbots detected nearby."})}),(0,e.jsx)(t.wn,{title:"Janitorial Cart Locations",children:a.carts&&(0,e.jsx)("ul",{children:a.carts.map(function(l,i){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Water Level: ",l.volume,"/",l.max_volume]},i)})})||(0,e.jsx)(t.az,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},83743:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_main_menu:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.owner,l=d.ownjob,i=d.idInserted,c=d.categories,f=d.pai,m=d.notifying,v=d.apps;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Owner",color:"average",children:[a,", ",l]}),(0,e.jsx)(t.Ki.Item,{label:"ID",children:(0,e.jsx)(t.$n,{icon:"sync",disabled:!i,onClick:function(){return g("UpdateInfo")},children:"Update PDA Info"})})]})}),(0,e.jsx)(t.wn,{title:"Functions",children:(0,e.jsx)(t.Ki,{children:c.map(function(E){var j=v[E];return!j||!j.length?null:(0,e.jsx)(t.Ki.Item,{label:E,children:j.map(function(C){return(0,e.jsx)(t.$n,{icon:C.ref in m?C.notify_icon:C.icon,iconSpin:C.ref in m,color:C.ref in m?"red":"transparent",onClick:function(){return g("StartProgram",{program:C.ref})},children:C.name},C.ref)})},E)})})}),!!f&&(0,e.jsxs)(t.wn,{title:"pAI",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"cog",onClick:function(){return g("pai",{option:1})},children:"Configuration"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return g("pai",{option:2})},children:"Eject pAI"})]})]})}},29961:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_manifest:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(58044),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data;return(0,e.jsx)(t.az,{color:"white",children:(0,e.jsx)(r.CrewManifestContent,{})})}},34029:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_medical:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.recordsList,l=d.records;if(l){var i=l.general,c=l.medical;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{title:"General Data",children:i&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:i.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:i.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:i.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:i.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:i.rank}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:i.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Physical Status",children:i.p_stat}),(0,e.jsx)(t.Ki.Item,{label:"Mental Status",children:i.m_stat})]})||(0,e.jsx)(t.az,{color:"bad",children:"General record lost!"})}),(0,e.jsx)(t.wn,{title:"Medical Data",children:c&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood Type",children:c.b_type}),(0,e.jsx)(t.Ki.Item,{label:"Minor Disabilities",children:c.mi_dis}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.mi_dis_d}),(0,e.jsx)(t.Ki.Item,{label:"Major Disabilities",children:c.ma_dis}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.ma_dis_d}),(0,e.jsx)(t.Ki.Item,{label:"Allergies",children:c.alg}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.alg_d}),(0,e.jsx)(t.Ki.Item,{label:"Current Disease",children:c.cdi}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.cdi_d}),(0,e.jsx)(t.Ki.Item,{label:"Important Notes",children:(0,e.jsx)(t.az,{preserveWhitespace:!0,children:c.notes})})]})||(0,e.jsx)(t.az,{color:"bad",children:"Medical record lost!"})})]})}return(0,e.jsx)(t.wn,{title:"Select a record",children:a.map(function(f){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return g("Records",{target:f.ref})},children:f.name},f.ref)})})}},2949:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_messenger:function(){return E}});var e=n(20462),o=n(7402),t=n(61282),r=n(61358),s=n(7081),x=n(88569),g=n(30705);function d($,w){(w==null||w>$.length)&&(w=$.length);for(var V=0,F=new Array(w);V=$.length?{done:!0}:{done:!1,value:$[F++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f($,w){var V,F,X,Z,te={label:0,sent:function(){if(X[0]&1)throw X[1];return X[1]},trys:[],ops:[]};return Z={next:J(0),throw:J(1),return:J(2)},typeof Symbol=="function"&&(Z[Symbol.iterator]=function(){return this}),Z;function J(Y){return function(G){return Q([Y,G])}}function Q(Y){if(V)throw new TypeError("Generator is already executing.");for(;te;)try{if(V=1,F&&(X=Y[0]&2?F.return:Y[0]?F.throw||((X=F.return)&&X.call(F),0):F.next)&&!(X=X.call(F,Y[1])).done)return X;switch(F=0,X&&(Y=[Y[0]&2,X.value]),Y[0]){case 0:case 1:X=Y;break;case 4:return te.label++,{value:Y[1],done:!1};case 5:te.label++,F=Y[1],Y=[0];continue;case 7:Y=te.ops.pop(),te.trys.pop();continue;default:if(X=te.trys,!(X=X.length>0&&X[X.length-1])&&(Y[0]===6||Y[0]===2)){te=0;continue}if(Y[0]===3&&(!X||Y[1]>X[0]&&Y[1]V.length)return $.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var F=V[w].sent;return $.sent&&F?"TinderMessage_Subsequent_Sent":!$.sent&&!F?"TinderMessage_Subsequent_Received":$.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received"},T=function($){var w=$.messages,V=$.active_conversation;return(0,e.jsx)(x.az,{children:w.filter(function(F){return F.target===V}).map(function(F,X,Z){return(0,e.jsx)(b,{im:F,className:S(F,X-1,Z)},X)})})},b=function($){var w=(0,s.Oc)().data,V=w.enable_message_embeds,F=$.im,X=$.className;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.az,{textAlign:F.sent?"right":"left",mb:1,children:(0,e.jsx)(x.az,{maxWidth:"75%",className:X,inline:!0,children:(0,t.jT)(F.message)})}),!!V&&(0,e.jsx)(W,{im:F,className:X})]})},L=["cdn.discordapp.com","i.imgur.com","imgur.com"],W=function($){var w=$.im,V=$.className,F=(0,r.useState)(null),X=F[0],Z=F[1];return(0,r.useEffect)(function(){var te=function(ee){return Y.apply(this,arguments)},J=(0,t.jT)(w.message.trim());if(!J.startsWith("https://")||J.includes(" "))return;var Q;try{Q=new URL(J)}catch(G){return}if(!L.includes(Q.hostname))return;function Y(){return Y=l(function(G){var ee,le,ie;return f(this,function(de){switch(de.label){case 0:return ee={Accept:"image/jpeg, image/png, image/gif","User-Agent":"SS13-Virgo-ImageEmbeds/1.0"},[4,(0,g.b)(G.toString(),{headers:ee})];case 1:return le=de.sent(),le.ok?(ie=le.headers.get("Content-Type"),ie==="image/jpeg"||ie==="image/png"||ie==="image/gif"?[2,G.toString()]:[2,null]):[2,null]}})}),Y.apply(this,arguments)}te(Q).then(function(G){G&&Z((0,e.jsx)(k,{im:w,className:V,img:G}))})},[]),X},k=function($){var w=(0,r.useState)(!1),V=w[0],F=w[1],X=$.im,Z=$.className,te=$.img;return(0,e.jsx)(x.az,{textAlign:X.sent?"right":"left",mb:1,children:(0,e.jsxs)(x.az,{maxWidth:"75%",className:Z,inline:!0,children:[(0,e.jsx)(x.az,{fontSize:.9,children:"Embed"}),V?(0,e.jsx)(x._V,{fixBlur:!1,src:te,maxWidth:30,maxHeight:30}):(0,e.jsxs)(x.$n,{width:30,height:20,onClick:function(){return F(!0)},color:"black",textAlign:"center",verticalAlignContent:"middle",fontSize:3,children:["Click to",(0,e.jsx)("br",{}),"Show"]})]})})}},25039:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_news:function(){return s}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.feeds,f=i.target_feed;return(0,e.jsx)(r.az,{children:!c.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||f&&(0,e.jsx)(x,{target_feed:f})||(0,e.jsx)(g,{})})},x=function(d){var a=(0,t.Oc)().act,l=d.target_feed;return(0,e.jsx)(r.wn,{title:(0,o.jT)(l.name)+" by "+(0,o.jT)(l.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return a("newsfeed",{newsfeed:null})},children:"Back"}),children:l.messages.length&&l.messages.map(function(i){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(i.body),!!i.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+i.img}),(0,o.jT)(i.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",i.message_type," by ",(0,o.jT)(i.author)," -"," ",i.time_stamp,"]"]})]},i.index)})||(0,e.jsxs)(r.az,{children:["No stories found in ",l.name,"."]})})},g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.feeds,f=i.latest_news;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:f.length&&(0,e.jsx)(r.wn,{children:f.map(function(m){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,o.jT)(m.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return l("newsfeed",{newsfeed:m.index})},children:"Go to"})]}),"- ",(0,o.jT)(m.body),!!m.has_image&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",m.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",m.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:m.author})," ","- ",m.time_stamp,"]"]})]},m.index)})})||(0,e.jsx)(r.az,{children:"No recent stories found."})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:c.map(function(m){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return l("newsfeed",{newsfeed:m.index})},children:m.name},m.index)})})]})}},33312:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_notekeeper:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.note,l=d.notename;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note1")},children:"Note A"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note2")},children:"Note B"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note3")},children:"Note C"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note4")},children:"Note D"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note5")},children:"Note E"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note6")},children:"Note F"})})]}),(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note7")},children:"Note G"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note8")},children:"Note H"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note9")},children:"Note I"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note10")},children:"Note J"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note11")},children:"Note K"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note12")},children:"Note L"})})]})]})}),(0,e.jsxs)(t.wn,{title:l,children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("Edit")},children:"Edit Note"}),(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return g("Titleset")},children:"Edit Title"}),(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Print")},children:"Print Note"})]}),(0,e.jsx)(t.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})})]})}},6835:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_power:function(){return t}});var e=n(20462),o=n(91276),t=function(r){return(0,e.jsx)(o.PowerMonitorContent,{})}},70272:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_security:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.recordsList,l=d.records;if(l){var i=l.general,c=l.security;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{title:"General Data",children:i&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:i.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:i.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:i.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:i.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:i.rank}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:i.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Physical Status",children:i.p_stat}),(0,e.jsx)(t.Ki.Item,{label:"Mental Status",children:i.m_stat})]})||(0,e.jsx)(t.az,{color:"bad",children:"General record lost!"})}),(0,e.jsx)(t.wn,{title:"Security Data",children:c&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Criminal Status",children:c.criminal}),(0,e.jsx)(t.Ki.Item,{label:"Minor Crimes",children:c.mi_crim}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.mi_crim_d}),(0,e.jsx)(t.Ki.Item,{label:"Major Crimes",children:c.ma_crim}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.ma_crim_d}),(0,e.jsx)(t.Ki.Item,{label:"Important Notes:",children:(0,e.jsx)(t.az,{preserveWhitespace:!0,children:c.notes||"No data found."})})]})||(0,e.jsx)(t.az,{color:"bad",children:"Security record lost!"})})]})}return(0,e.jsx)(t.wn,{title:"Select a record",children:a.map(function(f){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return g("Records",{target:f.ref})},children:f.name},f.ref)})})}},56473:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_signaller:function(){return t}});var e=n(20462),o=n(46321),t=function(r){return(0,e.jsx)(o.SignalerContent,{})}},41659:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_status_display:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.records;return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Code",children:[(0,e.jsx)(t.$n,{color:"transparent",icon:"trash",onClick:function(){return g("Status",{statdisp:"blank"})},children:"Clear"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"cog",onClick:function(){return g("Status",{statdisp:"shuttle"})},children:"Evac ETA"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"cog",onClick:function(){return g("Status",{statdisp:"message"})},children:"Message"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"exclamation-triangle",onClick:function(){return g("Status",{statdisp:"alert"})},children:"ALERT"})]}),(0,e.jsx)(t.Ki.Item,{label:"Message line 1",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("Status",{statdisp:"setmsg1"})},children:a&&a.message1+" (set)"})}),(0,e.jsx)(t.Ki.Item,{label:"Message line 2",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("Status",{statdisp:"setmsg2"})},children:a&&a.message2+" (set)"})})]})})}},94431:function(O,u,n){"use strict";n.r(u),n.d(u,{pda_supply:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)(),g=x.act,d=x.data,a=d.supply;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Location",children:a.shuttle_moving?"Moving to station "+a.shuttle_eta:"Shuttle at "+a.shuttle_loc})}),(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{color:"good",bold:!0,children:"Current Approved Orders"}),a.approved.length&&a.approved.map(function(l){return(0,e.jsxs)(t.az,{color:"average",children:["#",l.Number," - ",l.Name," approved by ",l.ApprovedBy,(0,e.jsx)("br",{}),l.Comment]},l.Number)})||(0,e.jsx)(t.az,{children:"None!"}),(0,e.jsx)(t.az,{color:"good",bold:!0,children:"Current Requested Orders"}),a.requests.length&&a.requests.map(function(l){return(0,e.jsxs)(t.az,{color:"average",children:["#",l.Number," - ",l.Name," requested by ",l.OrderedBy,(0,e.jsx)("br",{}),l.Comment]},l.Number)})||(0,e.jsx)(t.az,{children:"None!"})]})]})}},11115:function(O,u,n){"use strict";n.r(u)},75418:function(O,u,n){"use strict";n.r(u),n.d(u,{PersonalCrafting:function(){return l}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581);function x(c,f){(f==null||f>c.length)&&(f=c.length);for(var m=0,v=new Array(f);m=c.length?{done:!0}:{done:!1,value:c[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=function(c){for(var f,m=(0,t.Oc)(),v=m.act,E=m.data,j=E.busy,C=E.display_craftable_only,P=E.display_compact,M=E.crafting_recipes||{},_=[],S=[],T=a(Object.keys(M)),b;!(b=T()).done;){var L=b.value,W=M[L];if("has_subcats"in W){for(var k=a(Object.keys(W)),$;!($=k()).done;){var w=$.value;if(w!=="has_subcats"){_.push({name:w,category:L,subcategory:w});for(var V=W[w],F=a(V),X;!(X=F()).done;){var Z=X.value;S.push(g({},Z,{category:w}))}}}continue}_.push({name:L,category:L});for(var te=M[L],J=a(te),Q;!(Q=J()).done;){var Y=Q.value;S.push(g({},Y,{category:L}))}}var G=(0,o.useState)((f=_[0])==null?void 0:f.name),ee=G[0],le=G[1],ie=S.filter(function(de){return de.category===ee});return(0,e.jsx)(s.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{checked:P,onClick:function(){return v("toggle_compact")},children:"Compact"}),(0,e.jsx)(r.$n.Checkbox,{checked:C,onClick:function(){return v("toggle_recipes")},children:"Craftable Only"})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:_.map(function(de){return(0,e.jsx)(r.tU.Tab,{selected:de.name===ee,onClick:function(){le(de.name),v("set_category",{category:de.category,subcategory:de.subcategory})},children:de.name},de.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(i,{craftables:ie})})]})})]})})},i=function(c){var f=c.craftables,m=f===void 0?[]:f,v=(0,t.Oc)(),E=v.act,j=v.data,C=j.craftability,P=C===void 0?{}:C,M=j.display_compact,_=j.display_craftable_only;return m.map(function(S){return _&&!P[S.ref]?null:M?(0,e.jsx)(r.Ki.Item,{label:S.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!P[S.ref],tooltip:S.tool_text&&"Tools needed: "+S.tool_text,tooltipPosition:"left",onClick:function(){return E("make",{recipe:S.ref})},children:"Craft"}),children:S.req_text},S.name):(0,e.jsx)(r.wn,{title:S.name,buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!P[S.ref],onClick:function(){return E("make",{recipe:S.ref})},children:"Craft"}),children:(0,e.jsxs)(r.Ki,{children:[!!S.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:S.req_text}),!!S.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:S.catalyst_text}),!!S.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:S.tool_text})]})},S.name)})}},6924:function(O,u,n){"use strict";n.r(u),n.d(u,{Photocopier:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(a){var l=(0,o.Oc)().data,i=l.isAI,c=l.has_toner,f=l.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:i?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[c?(0,e.jsx)(x,{}):(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted toner cartridge."})}),f?(0,e.jsx)(g,{}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted item."})}),!!i&&(0,e.jsx)(d,{})]})})},x=function(a){var l=(0,o.Oc)().data,i=l.max_toner,c=l.current_toner,f=i*.66,m=i*.33;return(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.z2,{ranges:{good:[f,i],average:[m,f],bad:[0,m]},value:c,minValue:0,maxValue:i})})},g=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.num_copies;return(0,e.jsxs)(t.wn,{title:"Options",children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Q7,{animated:!0,width:"2.6",height:"1.65",step:1,stepPixelSize:8,minValue:1,maxValue:10,value:f,onDrag:function(m){return i("set_copies",{num_copies:m})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return i("make_copy")},children:"Copy"})})]}),(0,e.jsx)(t.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return i("remove")},children:"Remove item"})]})},d=function(a){var l=(0,o.Oc)(),i=l.act,c=l.data,f=c.can_AI_print;return(0,e.jsx)(t.wn,{title:"AI Options",children:(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!f,onClick:function(){return i("ai_photo")},children:"Print photo from database"})})})}},11727:function(O,u,n){"use strict";n.r(u),n.d(u,{PipeDispenser:function(){return g}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(66947),g=function(d){var a=(0,t.Oc)(),l=a.act,i=a.data,c=i.disposals,f=i.p_layer,m=i.pipe_layers,v=i.categories,E=v===void 0?[]:v,j=(0,o.useState)("categoryName"),C=j[0],P=j[1],M=E.find(function(_){return _.cat_name===C})||E[0];return(0,e.jsx)(s.p8,{width:425,height:515,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!c&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(m).map(function(_){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:m[_]===f,onClick:function(){return l("p_layer",{p_layer:m[_]})},children:_},_)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:E.map(function(_){return(0,e.jsx)(r.tU.Tab,{icon:x.ICON_BY_CATEGORY_NAME[_.cat_name],selected:_.cat_name===M.cat_name,onClick:function(){return P(_.cat_name)},children:_.cat_name},_.cat_name)})}),M==null?void 0:M.recipes.map(function(_){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,onClick:function(){return l("dispense_pipe",{ref:_.ref,bent:_.bent,category:M.cat_name})},children:_.pipe_name},_.pipe_name)})]})]})})}},28291:function(O,u,n){"use strict";n.r(u),n.d(u,{PlantAnalyzer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var d=(0,o.Oc)().data,a=d.seed,l=d.reagents,i=250;return a&&(i+=18*a.trait_info.length),l&&l.length&&(i+=55,i+=20*l.length),(0,e.jsx)(r.p8,{width:400,height:i,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.no_seed,c=l.seed,f=l.reagents;return i?(0,e.jsx)(t.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(t.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return a("print")},children:"Print Report"}),(0,e.jsx)(t.$n,{icon:"window-close",color:"red",onClick:function(){return a("close")}})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Plant Name",children:[c.name,"#",c.uid]}),(0,e.jsx)(t.Ki.Item,{label:"Endurance",children:c.endurance}),(0,e.jsx)(t.Ki.Item,{label:"Yield",children:c.yield}),(0,e.jsx)(t.Ki.Item,{label:"Maturation Time",children:c.maturation_time}),(0,e.jsx)(t.Ki.Item,{label:"Production Time",children:c.production_time}),(0,e.jsx)(t.Ki.Item,{label:"Potency",children:c.potency})]}),f.length&&(0,e.jsx)(t.wn,{title:"Plant Reagents",children:(0,e.jsx)(t.Ki,{children:f.map(function(m){return(0,e.jsxs)(t.Ki.Item,{label:m.name,children:[m.volume," unit(s)."]},m.name)})})})||null,(0,e.jsx)(t.wn,{title:"Other Data",children:c.trait_info.map(function(m){return(0,e.jsx)(t.az,{color:"label",mb:.4,children:m},m)})})]})}},45371:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlAbilities:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Grant Abilities",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("vent_crawl")},children:"Vent Crawl"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("darksight")},children:"Set Darksight"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("cocoon")},children:"Give Cocoon Transformation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("transformation")},children:"Give TF verbs"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("set_size")},children:"Give Set Size"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lleill_energy")},children:"Set Lleill Energy Levels"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lleill_invisibility")},children:"Give Lleill Invisibility"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("beast_form")},children:"Give Leill Beast Form"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lleill_transmute")},children:"Give Leill Transmutation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lleill_alchemy")},children:"Give Leill Alchemy"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lleill_drain")},children:"Give Lleill Drain"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("brutal_pred")},children:"Give Brutal Predation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("trash_eater")},children:"Give Trash Eater"})]})}},27484:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlAdmin:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Admin Controls",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("quick_nif")},children:"Quick NIF"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("resize")},children:"Resize"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("teleport")},children:"Teleport"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("gib")},children:"Gib"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("dust")},children:"Dust"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("paralyse")},children:"Paralyse"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("subtle_message")},children:"Subtle Message"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("direct_narrate")},children:"Direct Narrate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("player_panel")},children:"Open Player Panel"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("view_variables")},children:"Open View Variables"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("ai")},children:"Enable/Modify AI"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("orbit")},children:"Make Marked Datum Orbit"})]})}},18316:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlFixes:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Bug Fixes",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("rejuvenate")},children:"Rejuvenate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("popup-box")},children:"Send Message Box"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("stop-orbits")},children:"Clear All Orbiters"})]})}},46809:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlInventory:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Inventory Controls",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("drop_all")},children:"Drop Everything"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("drop_specific")},children:"Drop Specific Item"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("drop_held")},children:"Drop Held Items"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("list_all")},children:"List All Items"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("give_item")},children:"Add Marked Item To Hands"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("equip_item")},children:"Equip Marked Item To Inventory"})]})}},7556:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlMedical:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Medical Effects",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("appendicitis")},children:"Appendicitis"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("repair_organ")},children:"Repair Organ"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("damage_organ")},children:"Damage Organ/Limb"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("break_bone")},children:"Break Bone"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("drop_organ")},children:"Drop Organ/Limb"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("assist_organ")},children:"Make Organ Assisted"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("robot_organ")},children:"Make Organ Robotic"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("rejuvenate")},children:"Rejuvenate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("stasis")},children:"Toggle Stasis"})]})}},45502:function(O,u,n){"use strict";n.r(u),n.d(u,{ControlSmites:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Smites",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("break_legs")},children:"Break Legs"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("bluespace_artillery")},children:"Bluespace Artillery"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("spont_combustion")},children:"Spontaneous Combustion"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("lightning_strike")},children:"Lightning Bolt"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("shadekin_attack")},children:"Shadekin Attack"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("shadekin_vore")},children:"Shadekin Vore"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("redspace_abduct")},children:"Redspace Abduction"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("autosave")},children:"Autosave"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("autosave2")},children:"Autosave AOE"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("adspam")},children:"Ad Spam"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("peppernade")},children:"Peppernade"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("spicerequest")},children:"Spawn Spice"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("terror")},children:"Terrify"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("terror_aoe")},children:"Terrify AOE"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("spin")},children:"Spin"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return x("squish")},children:"Squish"})]})}},5880:function(O,u,n){"use strict";n.r(u),n.d(u,{PlayerEffects:function(){return c}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(45371),g=n(27484),d=n(18316),a=n(46809),l=n(7556),i=n(45502),c=function(f){var m=(0,t.Oc)().data,v=m.real_name,E=m.player_ckey,j=(0,o.useState)(0),C=j[0],P=j[1],M=[];return M[0]=(0,e.jsx)(i.ControlSmites,{}),M[1]=(0,e.jsx)(l.ControlMedical,{}),M[2]=(0,e.jsx)(x.ControlAbilities,{}),M[3]=(0,e.jsx)(a.ControlInventory,{}),M[4]=(0,e.jsx)(g.ControlAdmin,{}),M[5]=(0,e.jsx)(d.ControlFixes,{}),(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:C===0,onClick:function(){return P(0)},children:"Smites"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return P(1)},children:"Medical"}),(0,e.jsx)(r.tU.Tab,{selected:C===2,onClick:function(){return P(2)},children:"Abilities"}),(0,e.jsx)(r.tU.Tab,{selected:C===3,onClick:function(){return P(3)},children:"Inventory"}),(0,e.jsx)(r.tU.Tab,{selected:C===4,onClick:function(){return P(4)},children:"Admin"}),(0,e.jsx)(r.tU.Tab,{selected:C===5,onClick:function(){return P(5)},children:"Fixes"})]}),(0,e.jsxs)(r.IC,{info:!0,children:[v," played by ",E,"."]}),M[C]]})})}},25721:function(O,u,n){"use strict";n.r(u)},12588:function(O,u,n){"use strict";n.r(u),n.d(u,{PlayerNotes:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.device_theme,i=a.filter,c=a.pages,f=a.ckeys,m=function(v){return v()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:l,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.wn,{title:"Player notes",children:[(0,e.jsx)(t.$n,{icon:"filter",onClick:function(){return d("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(t.$n,{icon:"sidebar",onClick:function(){return d("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.$n.Input,{onCommit:function(v,E){return d("show_player_info",{name:E})},children:"CKEY to Open"}),(0,e.jsx)(t.cG,{vertical:!0}),(0,e.jsx)(t.$n,{color:"green",onClick:function(){return d("clear_player_info_filter")},children:i}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.XI,{children:f.map(function(v){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"user",onClick:function(){return d("show_player_info",{name:v.name})},children:v.name})})},v.name)})}),(0,e.jsx)(t.cG,{}),m(function(){for(var v=function(C){E.push((0,e.jsx)(t.$n,{onClick:function(){return d("set_page",{index:C})},children:C},C))},E=[],j=1;j=.5&&"good"||W>.15&&"average"||"bad";return(0,e.jsx)(s.p8,{width:450,height:340,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!f&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:m?"power-off":"times",onClick:function(){return a("toggle_power")},selected:m,disabled:!v,children:m?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:i>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:m,onClick:function(){return a("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:k,children:[i,"cm\xB3 ",E]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:i/c,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[i,"cm\xB3 / ",c,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[j," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:C,maxValue:P+30,color:M?"bad":"good",children:[(0,o.Mg)(C),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:_?"bad":void 0,children:S}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return a("lower_power")},children:T}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return a("higher_power")},children:T})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!b&&"bad",children:b?L:"Unconnected"})})]})})]})})}},31991:function(O,u,n){"use strict";n.r(u),n.d(u,{PortablePump:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(95823),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.direction,c=l.target_pressure,f=l.default_pressure,m=l.min_pressure,v=l.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Pump",buttons:(0,e.jsx)(t.$n,{icon:i?"sign-in-alt":"sign-out-alt",selected:i,onClick:function(){return a("direction")},children:i?"In":"Out"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Output",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:m,maxValue:v,value:c,unit:"kPa",stepPixelSize:.3,onChange:function(E,j){return a("pressure",{pressure:j})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Presets",children:[(0,e.jsx)(t.$n,{icon:"minus",disabled:c===m,onClick:function(){return a("pressure",{pressure:"min"})}}),(0,e.jsx)(t.$n,{icon:"sync",disabled:c===f,onClick:function(){return a("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.$n,{icon:"plus",disabled:c===v,onClick:function(){return a("pressure",{pressure:"max"})}})]})]})})]})})}},33353:function(O,u,n){"use strict";n.r(u),n.d(u,{PortableScrubber:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(95823),x=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,i=l.rate,c=l.minrate,f=l.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Power Regulator",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:c,maxValue:f,value:i,unit:"L/s",onChange:function(m,v){return a("volume_adj",{vol:v})}})})})})]})})}},96527:function(O,u,n){"use strict";n.r(u),n.d(u,{PortableTurret:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.locked,i=a.on,c=a.lethal,f=a.lethal_is_configurable,m=a.targetting_is_configurable,v=a.check_weapons,E=a.neutralize_noaccess,j=a.neutralize_norecord,C=a.neutralize_criminals,P=a.neutralize_all,M=a.neutralize_nonsynth,_=a.neutralize_unidentified,S=a.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.IC,{children:["Swipe an ID card to ",l?"unlock":"lock"," this interface."]}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.$n,{icon:i?"power-off":"times",selected:i,disabled:l,onClick:function(){return d("power")},children:i?"On":"Off"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Lethals",children:(0,e.jsx)(t.$n,{icon:c?"exclamation-triangle":"times",color:c?"bad":"",disabled:l,onClick:function(){return d("lethal")},children:c?"On":"Off"})})]})}),!!m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:C,disabled:l,onClick:function(){return d("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:j,disabled:l,onClick:function(){return d("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:v,disabled:l,onClick:function(){return d("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:E,disabled:l,onClick:function(){return d("authaccess")},children:"Unauthorized Access"})]}),(0,e.jsxs)(t.wn,{title:"Other Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:_,disabled:l,onClick:function(){return d("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:M,disabled:l,onClick:function(){return d("authsynth")},children:"All Non-Synthetics"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:S,disabled:l,onClick:function(){return d("authdown")},children:"Downed Targets"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:P,disabled:l,onClick:function(){return d("authall")},children:"All Entities"})]})]})]})})}},91276:function(O,u,n){"use strict";n.r(u),n.d(u,{PowerMonitorContent:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(27971),s=function(x){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.all_sensors,i=a.focus;if(i)return(0,e.jsx)(r.PowerMonitorFocus,{focus:i});var c=(0,e.jsx)(t.az,{color:"bad",children:"No sensors detected"});return l&&(c=(0,e.jsx)(t.XI,{children:l.map(function(f){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:f.alarm?"bell":"sign-in-alt",onClick:function(){return d("setsensor",{id:f.name})},children:f.name})})},f.name)})})),(0,e.jsx)(t.wn,{title:"No active sensor. Listing all.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return d("refresh")},children:"Scan For Sensors"}),children:c})}},27971:function(O,u,n){"use strict";n.r(u),n.d(u,{PowerMonitorFocus:function(){return c}});var e=n(20462),o=n(7402),t=n(15813),r=n(4089),s=n(61358),x=n(7081),g=n(88569),d=n(92595),a=n(69788),l=n(88040);function i(){return i=Object.assign||function(f){for(var m=1;m50?"battery-half":"battery-quarter")||g===1&&"bolt"||g===2&&"battery-full"||"",color:g===0&&(d>50?"yellow":"red")||g===1&&"yellow"||g===2&&"green"}),(0,e.jsx)(t.az,{inline:!0,width:"36px",textAlign:"right",children:(0,o.Mg)(d)+"%"})]})},s=function(x){var g=x.status,d=!!(g&2),a=!!(g&1),l=(d?"On":"Off")+(" ["+(a?"auto":"manual")+"]");return(0,e.jsx)(t.m_,{content:l,children:(0,e.jsx)(t.BK,{color:d?"good":"bad",content:a?void 0:"M"})})}},92595:function(O,u,n){"use strict";n.r(u),n.d(u,{PEAK_DRAW:function(){return e}});var e=5e5},69788:function(O,u,n){"use strict";n.r(u),n.d(u,{powerRank:function(){return e}});function e(o){var t=String(o.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(t)}},53414:function(O,u,n){"use strict";n.r(u),n.d(u,{PowerMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(91276),r=function(){return(0,e.jsx)(o.p8,{width:550,height:700,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},77243:function(O,u,n){"use strict";n.r(u)},14827:function(O,u,n){"use strict";n.r(u),n.d(u,{GamePreferenceWindow:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),x=n(19870),g=n(69901),d=function(a){var l=(0,t.Oc)(),i=l.act,c=l.data,f,m=(0,o.useState)((f=a.startingPage)!=null?f:x.GamePreferencesSelectedPage.Settings),v=m[0],E=m[1],j;switch(v){case x.GamePreferencesSelectedPage.Settings:j=(0,e.jsx)(g.GamePreferencesPage,{});break}return(0,e.jsx)(s.p8,{title:"Game Preferences",width:920,height:770,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(r.BJ.Item,{grow:!0,shrink:!0,basis:"1px",children:j})})})})}},69901:function(O,u,n){"use strict";n.r(u),n.d(u,{GamePreferencesPage:function(){return m}});var e=n(20462),o=n(7402),t=n(61358),r=n(7081),s=n(88569),x=n(16945),g=n(72736),d=n(49049);function a(v,E){(E==null||E>v.length)&&(E=v.length);for(var j=0,C=new Array(E);j=v.length?{done:!0}:{done:!1,value:v[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=function(v,E){return(0,o.V0)(v,E,function(j){return j.name})},f=function(v){return(0,o.Ul)(v,function(E){var j=E[0];return j})},m=function(v){for(var E=(0,r.Oc)(),j=E.act,C=E.data,P={},M=i(Object.entries(C.character_preferences.game_preferences)),_;!(_=M()).done;){var S=_.value,T=S[0],b=S[1],L=x.default[T],W=(L==null?void 0:L.name)||T;L!=null&&L.description&&(W=(0,e.jsx)(s.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:W}));var k=(0,e.jsx)(s.so.Item,{grow:1,pr:2,basis:0,ml:2,children:W});L!=null&&L.description&&(k=(0,e.jsx)(s.m_,{content:L.description,position:"bottom-start",children:k}));var $=(0,e.jsxs)(s.so,{align:"center",pb:2,children:[k,(0,e.jsx)(s.so.Item,{grow:1,basis:0,children:L&&(0,e.jsx)(g.FeatureValueInput,{feature:L,featureId:T,value:b,act:j})||(0,e.jsx)(s.az,{as:"b",color:"red",children:"...is not filled out properly!!!"})})]},T),w={name:(L==null?void 0:L.name)||T,children:$},V=(L==null?void 0:L.category)||"ERROR";P[V]=c(P[V]||[],w)}var F=(0,t.useState)(""),X=F[0],Z=F[1],te=(0,t.useState)(!1),J=te[0],Q=te[1],Y=f(Object.entries(P)).map(function(G){var ee=G[0],le=G[1];return[ee,le.filter(function(ie){return!X||ie.name.toLowerCase().includes(X.toLowerCase())}).map(function(ie){return ie.children})]}).filter(function(G){var ee=G[0],le=G[1];return le.length!==0});return(0,e.jsxs)(e.Fragment,{children:[!Y.length&&(0,e.jsx)(s.wn,{title:"No Results",children:"No results found."}),(0,e.jsxs)(s.az,{position:"absolute",right:4,top:4,style:{zIndex:"100"},children:[J&&(0,e.jsx)(s.pd,{width:16,value:X,onInput:function(G,ee){return Z(ee)},onChange:function(G,ee){return Z(ee)}}),(0,e.jsx)(s.$n,{selected:J,icon:"magnifying-glass",tooltip:"Search",tooltipPosition:"bottom",onClick:function(){Q(!J),Z("")}})]}),(0,e.jsx)(d.TabbedMenu,{categoryEntries:Y,contentProps:{fontSize:1.5}})]})}},95387:function(O,u,n){"use strict";n.r(u),n.d(u,{PageButton:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var s=r.currentPage===r.page||r.otherActivePages&&r.otherActivePages.indexOf(r.currentPage)!==-1;return(0,e.jsx)(o.$n,{align:"center",fontSize:"1.2em",fluid:!0,selected:s,onClick:function(){return r.setPage(r.page)},children:r.children})}},97364:function(O,u,n){"use strict";n.r(u),n.d(u,{ServerPreferencesFetcher:function(){return l}});var e=n(61358),o=n(31200),t=n(30705);function r(i,c,f,m,v,E,j){try{var C=i[E](j),P=C.value}catch(M){f(M);return}C.done?c(P):Promise.resolve(P).then(m,v)}function s(i){return function(){var c=this,f=arguments;return new Promise(function(m,v){var E=i.apply(c,f);function j(P){r(E,m,v,j,C,"next",P)}function C(P){r(E,m,v,j,C,"throw",P)}j(void 0)})}}function x(i,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(c&&c.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),c&&g(i,c)}function g(i,c){return g=Object.setPrototypeOf||function(m,v){return m.__proto__=v,m},g(i,c)}function d(i,c){var f,m,v,E,j={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]};return E={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function C(M){return function(_){return P([M,_])}}function P(M){if(f)throw new TypeError("Generator is already executing.");for(;j;)try{if(f=1,m&&(v=M[0]&2?m.return:M[0]?m.throw||((v=m.return)&&v.call(m),0):m.next)&&!(v=v.call(m,M[1])).done)return v;switch(m=0,v&&(M=[M[0]&2,v.value]),M[0]){case 0:case 1:v=M;break;case 4:return j.label++,{value:M[1],done:!1};case 5:j.label++,m=M[1],M=[0];continue;case 7:M=j.ops.pop(),j.trys.pop();continue;default:if(v=j.trys,!(v=v.length>0&&v[v.length-1])&&(M[0]===6||M[0]===2)){j=0;continue}if(M[0]===3&&(!v||M[1]>v[0]&&M[1]