Bellies of '+l+'
Generated on: '+s+'
>1,C=23===c?o(2,-24)-o(2,-77):0,b=e<0||0===e&&1/e<0?1:0,N=0;for((e=n(e))!=e||e===Infinity?(s=e!=e?1:0,d=h):(d=r(a(e)/i),e*(u=o(2,-d))<1&&(d--,u*=2),(e+=d+f>=1?C/u:C*o(2,1-f))*u>=2&&(d++,u/=2),d+f>=h?(s=0,d=h):d+f>=1?(s=(e*u-1)*o(2,c),d+=f):(s=e*o(2,f-1)*o(2,c),d=0));c>=8;)m[N++]=255&s,s/=256,c-=8;for(d=d< ",$e+=" ",null==G||G.forEach((function(e){$e+=e+" ",null==q||q.forEach((function(e){$e+=e+" ",null==H||H.forEach((function(e){$e+=e+" ",null==K||K.forEach((function(e){$e+=e+" ",null==ee||ee.forEach((function(e){$e+=e+" ",null==$||$.forEach((function(e){$e+=e+" ",null==Y||Y.forEach((function(e){$e+=e+" ",null==X||X.forEach((function(e){$e+=e+" ",null==J||J.forEach((function(e){$e+=e+" ",null==Z||Z.forEach((function(e){$e+=e+" ",null==Q||Q.forEach((function(e){$e+=e+" Generated on: '+s+'
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(/&(nbsp|amp|quot|lt|gt|apos);/g,(function(e,n){return t[n]})).replace(/?([0-9]+);/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)})).replace(/?([0-9a-f]+);/gi,(function(e,t){var n=parseInt(t,16);return String.fromCharCode(n)}))};t.buildQueryString=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}},84710:function(e,t){"use strict";t.__esModule=!0,t.throttle=t.sleep=t.debounce=void 0;t.debounce=function(e,t,n){var o;return void 0===n&&(n=!1),function(){for(var r=arguments.length,a=new Array(r),i=0;i1?"Dangerous!":null]},e.stage)}))||(0,o.createComponentVNode)(2,a.Box,{children:"No virus sample loaded."})}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Affected Species",color:"label",children:[m&&m.length?null:"None",m.sort().join(", ")]}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Reverse Engineering",children:[(0,o.createComponentVNode)(2,a.Box,{color:"bad",mb:1,children:(0,o.createVNode)(1,"i",null,"CAUTION: Reverse engineering will destroy the viral sample.",16)}),d.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{content:e.stage,icon:"exchange-alt",onClick:function(){return i("grab",{grab:e.reference})}},e.stage)})),(0,o.createComponentVNode)(2,a.Button,{content:"Species",icon:"exchange-alt",onClick:function(){return i("affected_species")}})]})],4)]})},l=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=(c.dish_inserted,c.buffer),d=c.species_buffer,s=(c.effects,c.info);c.growth,c.affected_species,c.busy;return(0,o.createComponentVNode)(2,a.Section,{title:"Storage",children:[(0,o.createComponentVNode)(2,a.LabeledList,{children:(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Memory Buffer",children:l?(0,o.createComponentVNode)(2,a.Box,{children:[l.name," (",l.stage,")"]}):d?(0,o.createComponentVNode)(2,a.Box,{children:d}):"Empty"})}),(0,o.createComponentVNode)(2,a.Button,{mt:1,icon:"save",content:"Save To Disk",disabled:!l&&!d,onClick:function(){return i("disk")}}),l?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Splice #1",disabled:l.stage>1,onClick:function(){return i("splice",{splice:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Splice #2",disabled:l.stage>2,onClick:function(){return i("splice",{splice:2})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Splice #3",disabled:l.stage>3,onClick:function(){return i("splice",{splice:3})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Splice #4",disabled:l.stage>4,onClick:function(){return i("splice",{splice:4})}})]}):d?(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"Splice Species",disabled:!d||s,onClick:function(){return i("splice",{splice:5})}})}):null]})}},79015:function(e,t,n){"use strict";t.__esModule=!0,t.DishIncubator=void 0;var o=n(58734),r=n(43820),a=n(62188),i=n(71558),c=n(2798);t.DishIncubator=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.on,u=d.system_in_use,m=d.food_supply,p=d.radiation,h=d.growth,f=d.toxins,C=d.chemicals_inserted,b=d.can_breed_virus,N=d.chemical_volume,g=d.max_chemical_volume,V=d.dish_inserted,v=d.blood_already_infected,_=d.virus,y=d.analysed,k=d.infection_rate;return(0,o.createComponentVNode)(2,c.Window,{width:400,height:600,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Section,{title:"Environmental Conditions",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",selected:s,content:s?"On":"Off",onClick:function(){return l("power")}}),children:[(0,o.createComponentVNode)(2,i.Flex,{spacing:1,mb:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return l("rad")}})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return l("flush")}})})]}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Virus Food",children:(0,o.createComponentVNode)(2,i.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[40,Infinity],average:[20,40],bad:[-Infinity,20]},value:m})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Radiation Level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{minValue:0,maxValue:100,color:p>=50?"bad":h>=25?"average":"good",value:p,children:[(0,r.formatCommaNumber)(1e4*p)," \xb5Sv"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Toxicity",children:(0,o.createComponentVNode)(2,i.ProgressBar,{minValue:0,maxValue:100,ranges:{bad:[50,Infinity],average:[25,50],good:[-Infinity,25]},value:f})})]})]}),(0,o.createComponentVNode)(2,i.Section,{title:b?"Vial":"Chemicals",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject "+(b?"Vial":"Chemicals"),disabled:!C,onClick:function(){return l("ejectchem")}}),(0,o.createComponentVNode)(2,i.Button,{icon:"virus",content:"Breed Virus",disabled:!b,onClick:function(){return l("virus")}})],4),children:C&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Volume",children:(0,o.createComponentVNode)(2,i.ProgressBar,{minValue:0,maxValue:g,value:N,children:[N,"/",g]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Breeding Environment",color:b?"good":"average",children:[V?b?"Suitable":"No hemolytic samples detected":"N/A",v?(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"No chemicals inserted."})}),(0,o.createComponentVNode)(2,i.Section,{title:"Virus Dish",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject Dish",disabled:!V,onClick:function(){return l("ejectdish")}}),children:V?_?(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Growth Density",children:(0,o.createComponentVNode)(2,i.ProgressBar,{minValue:0,maxValue:100,ranges:{good:[50,Infinity],average:[25,50],bad:[-Infinity,25]},value:h})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Infection Rate",children:y?k:"Unknown."})]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"No virus detected."}):(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"No dish loaded."})})]})})}},82936:function(e,t,n){"use strict";t.__esModule=!0,t.DisposalBin=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798);t.DisposalBin=function(e,t){var n,c,l=(0,r.useBackend)(t),d=l.act,s=l.data,u=s.mode,m=s.pressure,p=s.isAI,h=s.panel_open,f=s.flushing;return 2===u?(n="good",c="Ready"):u<=0?(n="bad",c="N/A"):1===u?(n="average",c="Pressurizing"):(n="average",c="Idle"),(0,o.createComponentVNode)(2,i.Window,{width:300,height:250,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Section,{children:[(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Status"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"State",color:n,children:c}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Pressure",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{bad:[-Infinity,0],average:[0,99],good:[99,Infinity]},value:m,minValue:0,maxValue:100})})]}),(0,o.createComponentVNode)(2,a.Box,{bold:!0,m:1,children:"Controls"}),(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Handle",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"toggle-off",disabled:p||h,content:"Disengaged",selected:f?null:"selected",onClick:function(){return d("disengageHandle")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"toggle-on",disabled:p||h,content:"Engaged",selected:f?"selected":null,onClick:function(){return d("engageHandle")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"toggle-off",disabled:-1===u,content:"Off",selected:u?null:"selected",onClick:function(){return d("pumpOff")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"toggle-on",disabled:-1===u,content:"On",selected:u?"selected":null,onClick:function(){return d("pumpOn")}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Eject",children:(0,o.createComponentVNode)(2,a.Button,{icon:"sign-out-alt",disabled:p,content:"Eject Contents",onClick:function(){return d("eject")}})})]})]})})})}},56204:function(e,t,n){"use strict";t.__esModule=!0,t.DroneConsole=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798);t.DroneConsole=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.drones,s=l.areas,u=l.selected_area,m=l.fabricator,p=l.fabPower;return(0,o.createComponentVNode)(2,i.Window,{width:600,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Drone Fabricator",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!m,selected:p,icon:"power-off",content:p?"Enabled":"Disabled",onClick:function(){return c("toggle_fab")}}),children:m?(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"Linked."}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Fabricator not detected.",(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Search for Fabricator",onClick:function(){return c("search_fab")}})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Request Drone",children:[(0,o.createComponentVNode)(2,a.Dropdown,{options:s?s.sort():null,selected:u,width:"100%",onSelected:function(e){return c("set_dcall_area",{area:e})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"share-square",content:"Send Ping",onClick:function(){return c("ping")}})]}),(0,o.createComponentVNode)(2,a.Section,{title:"Maintenance Units",children:d&&d.length?(0,o.createComponentVNode)(2,a.LabeledList,{children:d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Resync",onClick:function(){return c("resync",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return c("shutdown",{ref:e.ref})}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:e.loc}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge",children:[e.charge," / ",e.maxCharge]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Active",children:e.active?"Yes":"No"})]})},e.name)}))}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No drones detected."})})]})})}},38547:function(e,t,n){"use strict";t.__esModule=!0,t.EmbeddedController=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798),c=((0,n(66905).createLogger)("fuck"),{});t.EmbeddedController=function(e,t){var n=(0,r.useBackend)(t),a=(n.act,n.data.internalTemplateName),l=c[a];if(!l)throw Error("Unable to find Component for template name: "+a);return(0,o.createComponentVNode)(2,i.Window,{width:450,height:340,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=e.bars;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:n.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.label,children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:e.color(e.value),minValue:e.minValue,maxValue:e.maxValue,value:e.value,children:e.textValue})},e.label)}))})})},d=function(e,t){var n=(0,r.useBackend)(t),i=n.data,c=n.act,l=!0;i.interior_status&&"open"===i.interior_status.state?l=!1:i.external_pressure&&i.chamber_pressure&&(l=!(Math.abs(i.external_pressure-i.chamber_pressure)>5));var d=!0;return i.exterior_status&&"open"===i.exterior_status.state?d=!1:i.internal_pressure&&i.chamber_pressure&&(d=!(Math.abs(i.internal_pressure-i.chamber_pressure)>5)),(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:i.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return c("cycle_ext")}}),(0,o.createComponentVNode)(2,a.Button,{disabled:i.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return c("cycle_int")}})]}),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:i.airlock_disabled,color:l?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return c("force_ext")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{disabled:i.airlock_disabled,color:d?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return c("force_int")}})]})],4)},s=function(e,t){var n=(0,r.useBackend)(t),i=n.data,c=(n.act,{docked:(0,o.createComponentVNode)(2,u),undocking:(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:"POD EJECTED"}),docking:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"INITIALIZING..."})}),l=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"});return"open"===i.exterior_status.state?l=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"OPEN"}):"unlocked"===i.exterior_status.lock?l=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"UNSECURED"}):"locked"===i.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Escape Pod Status",children:c[i.docking_status]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Hatch",children:l})]})})},u=function(e,t){var n=(0,r.useBackend)(t),i=n.data;n.act;return i.armed?(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"ARMED"}):(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"SYSTEMS OK"})},m=function(e,t){var n=(0,r.useBackend)(t),i=n.data,c=n.act;return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{disabled:!i.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:"docked"!==i.docking_status?"bad":"",onClick:function(){return c("force_door")}}),(0,o.createComponentVNode)(2,a.Button,{selected:i.override_enabled,color:"docked"!==i.docking_status?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return c("toggle_override")}})]})},p=function(e,t){var n=(0,r.useBackend)(t),i=n.data,c=(n.act,{docked:(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"DOCKED"}),docking:(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"DOCKING"}),undocking:(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"UNDOCKING"}),undocked:(0,o.createComponentVNode)(2,a.Box,{color:"grey",children:"NOT IN USE"})}[i.docking_status]);return i.override_enabled&&(c=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:[i.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),c};c.AirlockConsoleAdvanced=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,s=function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"},u=[{minValue:0,maxValue:202,value:c.external_pressure,label:"External Pressure",textValue:c.external_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:c.chamber_pressure,label:"Chamber Pressure",textValue:c.chamber_pressure+" kPa",color:s},{minValue:0,maxValue:202,value:c.internal_pressure,label:"Internal Pressure",textValue:c.internal_pressure+" kPa",color:s}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:u}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Purge",onClick:function(){return i("purge")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"lock-open",content:"Secure",onClick:function(){return i("secure")}})]}),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:!c.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return i("abort")}})})]})],4)};c.AirlockConsoleSimple=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,s=[{minValue:0,maxValue:202,value:c.chamber_pressure,label:"Chamber Pressure",textValue:c.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:!c.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return i("abort")}})})]})],4)};c.AirlockConsolePhoron=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,s=[{minValue:0,maxValue:202,value:c.chamber_pressure,label:"Chamber Pressure",textValue:c.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}},{minValue:0,maxValue:100,value:c.chamber_phoron,label:"Chamber Phoron",textValue:c.chamber_phoron+" mol",color:function(e){return e>5?"bad":e>.5?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:!c.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return i("abort")}})})]})],4)};c.AirlockConsoleDocking=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,s=[{minValue:0,maxValue:202,value:c.chamber_pressure,label:"Chamber Pressure",textValue:c.chamber_pressure+" kPa",color:function(e){return e<80||e>120?"bad":e<95||e>110?"average":"good"}}];return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Dock",buttons:c.airlock_disabled||c.override_enabled?(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",color:c.override_enabled?"red":"",content:"Override",onClick:function(){return i("toggle_override")}}):null,children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,l,{bars:s}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{disabled:!c.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return i("abort")}})})]})],4)};c.DockingConsoleSimple=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"ERROR"});return"open"===c.exterior_status.state?l=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"OPEN"}):"unlocked"===c.exterior_status.lock?l=(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"UNSECURED"}):"locked"===c.exterior_status.lock&&(l=(0,o.createComponentVNode)(2,a.Box,{color:"good",children:"SECURED"})),(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",disabled:!c.override_enabled,content:"Force exterior door",onClick:function(){return i("force_door")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",color:c.override_enabled?"red":"",content:"Override",onClick:function(){return i("toggle_override")}})],4),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Dock Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Docking Hatch",children:l})]})})};c.DockingConsoleMulti=function(e,t){var n=(0,r.useBackend)(t).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"Docking Status",children:(0,o.createComponentVNode)(2,p)}),(0,o.createComponentVNode)(2,a.Section,{title:"Airlocks",children:n.airlocks.length?(0,o.createComponentVNode)(2,a.LabeledList,{children:n.airlocks.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:e.override_enabled?"bad":"good",label:e.name,children:e.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},e.name)}))}):(0,o.createComponentVNode)(2,a.Flex,{height:"100%",mt:"0.5em",children:(0,o.createComponentVNode)(2,a.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,o.createComponentVNode)(2,a.Icon,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No airlocks found."]})})})],4)};c.DoorAccessConsole=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l="open"===c.interior_status.state||"closed"===c.exterior_status.state,d="open"===c.exterior_status.state||"closed"===c.interior_status.state;return(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:l?"arrow-left":"exclamation-triangle",content:l?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){i(l?"cycle_ext_door":"force_ext")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d?"arrow-right":"exclamation-triangle",content:d?"Cycle To Interior":"Lock Interior Door",onClick:function(){i(d?"cycle_int_door":"force_int")}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Exterior Door Status",children:"closed"===c.exterior_status.state?"Locked":"Open"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Interior Door Status",children:"closed"===c.interior_status.state?"Locked":"Open"})]})})};c.EscapePodConsole=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:[(0,o.createComponentVNode)(2,m),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",disabled:c.armed,color:c.armed?"bad":"average",content:"ARM",onClick:function(){return i("manual_arm")}}),(0,o.createComponentVNode)(2,a.Button,{icon:"exclamation-triangle",disabled:!c.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return i("force_launch")}})]})]})],4)};c.EscapePodBerthConsole=function(e,t){(0,r.useBackend)(t).data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,s),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,m)})],4)}},23424:function(e,t,n){"use strict";t.__esModule=!0,t.NarrationInput=t.ModeSelector=t.EntitySelection=t.EntityNarrate=t.DisplayDetails=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798);t.EntityNarrate=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.Window,{width:800,height:470,theme:"abstract",resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{scrollable:!0,grow:2,fill:!0,children:(0,o.createComponentVNode)(2,a.Section,{scrollable:!0,children:(0,o.createComponentVNode)(2,c)})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:.25,fill:!0,children:(0,o.createComponentVNode)(2,a.Divider,{vertical:!0})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:6.75,fill:!0,children:(0,o.createComponentVNode)(2,a.Section,{children:(0,o.createComponentVNode)(2,a.Flex,{direction:"column",justify:"space-between",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{Flex:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Details",children:(0,o.createComponentVNode)(2,l)})}),(0,o.createComponentVNode)(2,a.Flex.Item,{Flex:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Select Behaviour",children:(0,o.createComponentVNode)(2,d)})}),(0,o.createComponentVNode)(2,a.Flex.Item,{Flex:!0,children:(0,o.createComponentVNode)(2,s)})]})})})]})})})})};var c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.selection_mode,d=c.multi_id_selection,s=c.entity_names;return(0,o.createComponentVNode)(2,a.Flex,{direction:"column",grow:!0,children:(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Choose!",buttons:(0,o.createComponentVNode)(2,a.Button,{selected:l,fill:!0,content:"Multi-Selection",onClick:function(){return i("change_mode_multi")}}),children:(0,o.createComponentVNode)(2,a.Tabs,{vertical:!0,children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:d.includes(e),onClick:function(){return i("select_entity",{id_selected:e})},children:(0,o.createComponentVNode)(2,a.Box,{inline:!0,children:e})},e)}))})})})})};t.EntitySelection=c;var l=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data),c=i.selection_mode,l=i.number_mob_selected,d=i.selected_id,s=i.selected_name,u=i.selected_type;return c?(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"b",null,"Number of entities selected:",16)," ",l]}):(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createVNode)(1,"b",null,"Selected ID:",16)," ",d," ",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"Selected Name:",16)," ",s," ",(0,o.createVNode)(1,"br"),(0,o.createVNode)(1,"b",null,"Selected Type:",16)," ",u," ",(0,o.createVNode)(1,"br")]})};t.DisplayDetails=l;var d=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.privacy_select,d=c.mode_select;return(0,o.createComponentVNode)(2,a.Flex,{direction:"row",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("change_mode_privacy")},selected:l,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(l?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:l?"Currently: Subtle":"Currently: Loud"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:!0,children:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("change_mode_narration")},selected:d,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(d?"Click here to emote visibly.":"Click here to talk audiably."),content:d?"Currently: Emoting":"Currently: Talking"})})]})};t.ModeSelector=d;var s=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=(n.data,(0,r.useLocalState)(t,"narration","")),l=c[0],d=c[1];return(0,o.createComponentVNode)(2,a.Section,{title:"Narration Text",buttons:(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("narrate",{message:l})},content:"Send Narration"}),children:(0,o.createComponentVNode)(2,a.Flex,{children:(0,o.createComponentVNode)(2,a.Flex.Item,{width:"85%",children:(0,o.createComponentVNode)(2,a.TextArea,{height:"18rem",onChange:function(e,t){return d(t)},value:l||""})})})})};t.NarrationInput=s},42014:function(e,t,n){"use strict";t.__esModule=!0,t.ExonetNode=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798);t.ExonetNode=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.on,s=l.allowPDAs,u=l.allowCommunicators,m=l.allowNewscasters,p=l.logs;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,content:"Power "+(d?"On":"Off"),onClick:function(){return c("toggle_power")}}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Incoming PDA Messages",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:s,content:s?"Open":"Closed",onClick:function(){return c("toggle_PDA_port")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Incoming Communicators",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return c("toggle_communicator_port")}})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Incoming Newscaster Content",children:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:m,content:m?"Open":"Closed",onClick:function(){return c("toggle_newscaster_port")}})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Logging",children:(0,o.createComponentVNode)(2,a.Flex,{wrap:"wrap",children:[p.map((function(e,t){return(0,o.createComponentVNode)(2,a.Flex.Item,{m:"2px",basis:"49%",grow:t%2,children:e},t)})),p&&0!==p.length?null:(0,o.createComponentVNode)(2,a.Box,{color:"average",children:"No logs found."})]})})]})})}},5479:function(e,t,n){"use strict";t.__esModule=!0,t.Materials=t.ExosuitFabricator=void 0;var o,r=n(58734),a=n(59641),i=n(45445),c=n(62188),l=n(43820),d=n(71558),s=n(2798),u=n(40946),m=n(5339);function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=2?(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,o.createComponentVNode)(2,a.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:[(0,o.createComponentVNode)(2,a.Box,{color:"average",children:["Engage: ",e.engagecost]}),(0,o.createComponentVNode)(2,a.Box,{color:"average",children:["Active: ",e.activecost]}),(0,o.createComponentVNode)(2,a.Box,{color:"average",children:["Passive: ",e.passivecost]})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:e.desc})]}),e.charges?(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.Section,{title:"Module Charges",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Selected",children:(0,c.capitalize)(e.chargetype)}),e.charges.map((function(t,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,c.capitalize)(t.caption),children:(0,o.createComponentVNode)(2,a.Button,{selected:e.realchargetype===t.index,icon:"arrow-right",onClick:function(){return i("interact_module",{module:e.index,module_mode:"select_charge_type",charge_type:t.index})}})},t.caption)}))]})})}):null]},e.name)}))]})}},85039:function(e,t,n){"use strict";t.__esModule=!0,t.Radio=void 0;var o=n(58734),r=n(5339),a=n(62188),i=n(71558),c=n(78419),l=n(2798);t.Radio=function(e,t){var n=(0,a.useBackend)(t),d=n.act,s=n.data,u=s.rawfreq,m=s.minFrequency,p=s.maxFrequency,h=s.listening,f=s.broadcasting,C=s.subspace,b=s.subspaceSwitchable,N=s.chan_list,g=s.loudspeaker,V=s.mic_cut,v=s.spk_cut,_=s.useSyndMode,y=c.RADIO_CHANNELS.find((function(e){return e.freq===Number(u)})),k=156;return N&&N.length>0?k+=28*N.length+6:k+=24,b&&(k+=38),(0,o.createComponentVNode)(2,l.Window,{width:310,height:k,resizable:!0,theme:_?"syndicate":"",children:(0,o.createComponentVNode)(2,l.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Frequency",children:[(0,o.createComponentVNode)(2,i.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:m/10,maxValue:p/10,value:u/10,format:function(e){return(0,r.toFixed)(e,1)},onDrag:function(e,t){return d("setFrequency",{freq:(0,r.round)(10*t)})}}),y&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:y.color,ml:2,children:["[",y.name,"]"]})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Audio",children:[(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",width:"37px",icon:h?"volume-up":"volume-mute",selected:h,disabled:v,onClick:function(){return d("listen")}}),(0,o.createComponentVNode)(2,i.Button,{textAlign:"center",width:"37px",icon:f?"microphone":"microphone-slash",selected:f,disabled:V,onClick:function(){return d("broadcast")}}),!!b&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"bullhorn",selected:C,content:"Subspace Tx "+(C?"ON":"OFF"),onClick:function(){return d("subspace")}})}),!!b&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:g?"volume-up":"volume-mute",selected:g,content:"Loudspeaker",onClick:function(){return d("toggleLoudspeaker")}})})]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Channels",children:[(!N||0===N.length)&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,o.createComponentVNode)(2,i.LabeledList,{children:N?N.map((function(e){var t=c.RADIO_CHANNELS.find((function(t){return t.freq===Number(e.freq)})),n="default";return t&&(n=t.color),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.display_name,labelColor:n,textAlign:"right",children:e.secure_channel&&C?(0,o.createComponentVNode)(2,i.Button,{icon:e.sec_channel_listen?"square-o":"check-square-o",selected:!e.sec_channel_listen,content:e.sec_channel_listen?"Off":"On",onClick:function(){return d("channel",{channel:e.chan})}}):(0,o.createComponentVNode)(2,i.Button,{content:"Switch",selected:e.chan===u,onClick:function(){return d("specFreq",{channel:e.chan})}})},e.chan)})):null})]})]})})}},7932:function(e,t,n){"use strict";t.__esModule=!0,t.RapidPipeDispenser=t.ICON_BY_CATEGORY_NAME=void 0;var o=n(58734),r=n(59641),a=n(40946),i=n(62188),c=n(71558),l=n(2798),d=["Atmospherics","Disposals"],s={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"};t.ICON_BY_CATEGORY_NAME=s;var u=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],m=function(e,t){var n=(0,i.useBackend)(t),r=n.act,l=n.data,m=l.category,p=l.selected_color,h=l.mode;return(0,o.createComponentVNode)(2,c.Section,{children:(0,o.createComponentVNode)(2,c.LabeledList,{children:[(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Category",children:d.map((function(e,t){return(0,o.createComponentVNode)(2,c.Button,{selected:m===t,icon:s[e],color:"transparent",onClick:function(){return r("category",{category:t})},children:e},e)}))}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Modes",children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:u.map((function(e){return(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:h&e.bitmask,fluid:!0,content:e.name,onClick:function(){return r("mode",{mode:e.bitmask})}})},e.bitmask)}))})}),(0,o.createComponentVNode)(2,c.LabeledList.Item,{label:"Color",children:[(0,o.createComponentVNode)(2,c.Box,{inline:!0,width:"64px",color:l.paint_colors[p],children:(0,a.capitalize)(p)}),Object.keys(l.paint_colors).map((function(e){return(0,o.createComponentVNode)(2,c.ColorBox,{ml:1,color:l.paint_colors[e],onClick:function(){return r("color",{paint_color:e})}},e)}))]})]})})},p=function(e,t){var n=(0,i.useBackend)(t),a=n.act,l=n.data,d=l.category,s=l.piping_layer,u=l.pipe_layers,m=l.preview_rows.flatMap((function(e){return e.previews}));return(0,o.createComponentVNode)(2,c.Section,{fill:!0,width:7.5,children:[0===d&&(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,mb:1,children:Object.keys(u).map((function(e){return(0,o.createComponentVNode)(2,c.Stack.Item,{my:0,children:(0,o.createComponentVNode)(2,c.Button.Checkbox,{checked:u[e]===s,content:e,onClick:function(){return a("piping_layer",{piping_layer:u[e]})}})},e)}))}),(0,o.createComponentVNode)(2,c.Box,{width:"120px",children:m.map((function(e){return(0,o.createComponentVNode)(2,c.Button,{ml:0,title:e.dir_name,selected:e.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return a("setdir",{dir:e.dir,flipped:e.flipped})},children:(0,o.createComponentVNode)(2,c.Box,{className:(0,r.classes)(["pipes32x32",e.dir+"-"+e.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},e.dir)}))})]})},h=function(e,t){var n=(0,i.useBackend)(t),r=n.act,a=n.data.categories,l=void 0===a?[]:a,d=(0,i.useLocalState)(t,"categoryName"),u=d[0],m=d[1],p=l.find((function(e){return e.cat_name===u}))||l[0];return(0,o.createComponentVNode)(2,c.Section,{fill:!0,scrollable:!0,children:[(0,o.createComponentVNode)(2,c.Tabs,{children:l.map((function(e,t){return(0,o.createComponentVNode)(2,c.Tabs.Tab,{fluid:!0,icon:s[e.cat_name],selected:e.cat_name===p.cat_name,onClick:function(){return m(e.cat_name)},children:e.cat_name},e.cat_name)}))}),null==p?void 0:p.recipes.map((function(e){return(0,o.createComponentVNode)(2,c.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:e.selected,content:e.pipe_name,title:e.pipe_name,onClick:function(){return r("pipe_type",{pipe_type:e.pipe_index,category:p.cat_name})}},e.pipe_index)}))]})};t.RapidPipeDispenser=function(e,t){var n=(0,i.useBackend)(t);n.act,n.data.category;return(0,o.createComponentVNode)(2,l.Window,{width:550,height:570,children:(0,o.createComponentVNode)(2,l.Window.Content,{children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,vertical:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,m)}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,c.Stack,{fill:!0,children:[(0,o.createComponentVNode)(2,c.Stack.Item,{children:(0,o.createComponentVNode)(2,c.Stack,{vertical:!0,fill:!0,children:(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,p)})})}),(0,o.createComponentVNode)(2,c.Stack.Item,{grow:!0,children:(0,o.createComponentVNode)(2,h)})]})})]})})})}},80491:function(e,t,n){"use strict";t.__esModule=!0,t.RequestConsole=void 0;var o=n(58734),r=n(40946),a=n(62188),i=n(71558),c=n(2798),l=function(e,t){var n=(0,a.useBackend)(t).act,r=e.dept_list,c=e.department;return(0,o.createComponentVNode)(2,i.LabeledList,{children:r.sort().map((function(e){return e!==c&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"envelope-open-text",onClick:function(){return n("write",{write:e,priority:1})},children:"Message"}),(0,o.createComponentVNode)(2,i.Button,{icon:"exclamation-triangle",onClick:function(){return n("write",{write:e,priority:2})},children:"High Priority"})],4)})||null}))})},d={0:function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data.silent;return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:(0,o.createComponentVNode)(2,i.Button,{selected:!c,icon:c?"volume-mute":"volume-up",onClick:function(){return r("toggleSilent")},children:["Speaker ",c?"OFF":"ON"]})})},1:function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),c=r.department,d=r.assist_dept;return(0,o.createComponentVNode)(2,i.Section,{title:"Request assistance from another department",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:c})})},2:function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),c=r.department,d=r.supply_dept;return(0,o.createComponentVNode)(2,i.Section,{title:"Supplies",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:c})})},3:function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),c=r.department,d=r.info_dept;return(0,o.createComponentVNode)(2,i.Section,{title:"Report Anonymous Information",children:(0,o.createComponentVNode)(2,l,{dept_list:d,department:c})})},4:function(e,t){var n=(0,a.useBackend)(t),r=n.act;n.data;return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},5:function(e,t){var n=(0,a.useBackend)(t),r=n.act;n.data;return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-right",onClick:function(){return r("setScreen",{setScreen:0})},children:"Continue"})})]})},6:function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data.message_log;return(0,o.createComponentVNode)(2,i.Section,{title:"Messages",children:l.length&&l.map((function(e,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:(0,r.decodeHtmlEntities)(e[0]),buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"print",onClick:function(){return c("print",{print:t+1})},children:"Print"}),children:(0,r.decodeHtmlEntities)(e[1])},t)}))||(0,o.createComponentVNode)(2,i.Box,{children:"No messages."})})},7:function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data,d=l.message,s=l.recipient,u=l.priority,m=l.msgStamped,p=l.msgVerified;return(0,o.createComponentVNode)(2,i.Section,{title:"Message Authentication",children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Message for "+s,children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Priority",children:2===u?"High Priority":1===u?"Normal Priority":"Unknown"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Validated By",color:p?"good":"bad",children:(0,r.decodeHtmlEntities)(p)||"No Validation"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stamped By",color:m?"good":"bad",children:(0,r.decodeHtmlEntities)(m)||"No Stamp"})]}),(0,o.createComponentVNode)(2,i.Button,{mt:1,icon:"share",onClick:function(){return c("department",{department:s})},children:"Send Message"}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",onClick:function(){return c("setScreen",{setScreen:0})},children:"Back"})]})},8:function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=(c.department,c.screen,c.message_log,c.newmessagepriority,c.silent,c.announcementConsole,c.assist_dept,c.supply_dept,c.info_dept,c.message),d=(c.recipient,c.priority,c.msgStamped,c.msgVerified,c.announceAuth);return(0,o.createComponentVNode)(2,i.Section,{title:"Send Station-Wide Announcement",children:[d&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,o.createComponentVNode)(2,i.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,o.createComponentVNode)(2,i.Button,{ml:1,icon:"pen",onClick:function(){return r("writeAnnouncement")},children:"Edit"}),children:l||"No Message"})],4)||(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,o.createComponentVNode)(2,i.Button,{disabled:!l||!d,icon:"share",onClick:function(){return r("sendAnnouncement")},children:"Announce"}),(0,o.createComponentVNode)(2,i.Button,{icon:"undo",onClick:function(){return r("setScreen",{setScreen:0})},children:"Back"})]})}};t.RequestConsole=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data,s=l.screen,u=l.newmessagepriority,m=l.announcementConsole,p=d[s];return(0,o.createComponentVNode)(2,c.Window,{width:520,height:410,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:6===s,onClick:function(){return r("setScreen",{setScreen:6})},icon:"envelope-open-text",children:"Messages"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===s,onClick:function(){return r("setScreen",{setScreen:1})},icon:"share-square",children:"Assistance"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===s,onClick:function(){return r("setScreen",{setScreen:2})},icon:"share-square",children:"Supplies"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===s,onClick:function(){return r("setScreen",{setScreen:3})},icon:"share-square-o",children:"Report"}),m&&(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:8===s,onClick:function(){return r("setScreen",{setScreen:8})},icon:"volume-up",children:"Announce"})||null,(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:0===s,onClick:function(){return r("setScreen",{setScreen:0})},icon:"cog"})]}),u&&(0,o.createComponentVNode)(2,i.Section,{title:u>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:u>1?"bad":"average",bold:u>1})||null,(0,o.createComponentVNode)(2,p)]})})}},89320:function(e,t,n){"use strict";t.__esModule=!0,t.ResearchConsole=void 0;var o=n(58734),r=n(40946),a=n(62188),i=n(71558),c=n(2798),l=function(e,t){var n=(0,a.useBackend)(t).data,o=e.title,r=n[e.target];return"number"==typeof r?o+" - Page "+(r+1):o},d=function(e,t){var n=(0,a.useBackend)(t).act,r=e.target;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"undo",onClick:function(){return n(r,{reset:!0})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-left",onClick:function(){return n(r,{reverse:-1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"chevron-right",onClick:function(){return n(r,{reverse:1})}})],4)},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data.tech,l=e.disk;if(!l||!l.present)return null;var d=(0,a.useSharedState)(t,"saveDialogTech",!1),s=d[0],u=d[1];return s?(0,o.createComponentVNode)(2,i.Section,{title:"Load Technology to Disk",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Back",onClick:function(){return u(!1)}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.Button,{icon:"save",onClick:function(){u(!1),r("copy_tech",{copy_tech_ID:e.id})},children:"Copy To Disk"})},e.name)}))})}):(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),l.stored&&(0,o.createComponentVNode)(2,i.Box,{mt:2,children:[(0,o.createComponentVNode)(2,i.Box,{children:l.name}),(0,o.createComponentVNode)(2,i.Box,{children:["Level: ",l.level]}),(0,o.createComponentVNode)(2,i.Box,{children:["Description: ",l.desc]}),(0,o.createComponentVNode)(2,i.Box,{mt:1,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"save",onClick:function(){return r("updt_tech")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",onClick:function(){return r("clear_tech")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,i.Button,{icon:"save",onClick:function(){return u(!0)},children:"Load Tech To Disk"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",onClick:function(){return r("eject_tech")},children:"Eject Disk"})]})]})},u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,s=c.info.designs,u=e.disk;if(!u||!u.present)return null;var m=(0,a.useSharedState)(t,"saveDialogData",!1),p=m[0],h=m[1];return p?(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"arrow-left",content:"Back",onClick:function(){return h(!1)}}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,i.Input,{fluid:!0,placeholder:"Search for...",value:c.search,onInput:function(e,t){return r("search",{search:t})},mb:1}),(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.Button,{icon:"save",onClick:function(){h(!1),r("copy_design",{copy_design_ID:e.id})},children:"Copy To Disk"})},e.name)}))})]}):(0,o.createComponentVNode)(2,i.Box,{children:u.stored&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:u.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Lathe Type",children:u.build_type}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Required Materials",children:Object.keys(u.materials).map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:[e," x ",u.materials[e]]},e)}))})]}),(0,o.createComponentVNode)(2,i.Box,{mt:1,children:[(0,o.createComponentVNode)(2,i.Button,{icon:"save",onClick:function(){return r("updt_design")},children:"Upload to Database"}),(0,o.createComponentVNode)(2,i.Button,{icon:"trash",onClick:function(){return r("clear_design")},children:"Clear Disk"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})]})||(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,o.createComponentVNode)(2,i.Button,{icon:"save",onClick:function(){return h(!0)},children:"Load Design To Disk"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",onClick:function(){return r("eject_design")},children:"Eject Disk"})]})})},m=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,s=e.target,u=e.designs,m=e.buildName,p=e.buildFiveName;return s?(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,l,{target:"builder_page",title:"Designs"}),buttons:(0,o.createComponentVNode)(2,d,{target:"builder_page"}),children:[(0,o.createComponentVNode)(2,i.Input,{fluid:!0,placeholder:"Search for...",value:c.search,onInput:function(e,t){return r("search",{search:t})},mb:1}),u&&u.length?u.map((function(e){return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Flex,{width:"100%",justify:"space-between",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:e.name}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"15%",textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Button,{mb:-1,icon:"wrench",onClick:function(){return r(m,{build:e.id,imprint:e.id})},children:"Build"}),p&&(0,o.createComponentVNode)(2,i.Button,{mb:-1,onClick:function(){return r(p,{build:e.id,imprint:e.id})},children:"x5"})]}),(0,o.createComponentVNode)(2,i.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"label",children:e.mat_list.join(" ")}),(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"average",ml:1,children:e.chem_list.join(" ")})]})]}),(0,o.createComponentVNode)(2,i.Divider)],4,e.id)})):(0,o.createComponentVNode)(2,i.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Error"})},p=function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data,d=e.name,s=null,u=null;if("Protolathe"===d?(s=l.info.linked_lathe,u=l.lathe_designs):(s=l.info.linked_imprinter,u=l.imprinter_designs),!s||!s.present)return(0,o.createComponentVNode)(2,i.Section,{title:d,children:["No ",d," found."]});var p=s,h=p.total_materials,f=p.max_materials,C=p.total_volume,b=p.max_volume,N=p.busy,g=p.mats,V=p.reagents,v=p.queue,_=(0,a.useSharedState)(t,"protoTab",0),y=_[0],k=_[1],x="transparent",w=!1,B="layer-group";N?(B="hammer",x="average",w=!0):v&&v.length&&(B="sync",x="green",w=!0);var L="Protolathe"===d?"removeP":"removeI",S="Protolathe"===d?"lathe_ejectsheet":"imprinter_ejectsheet",I="Protolathe"===d?"disposeP":"disposeI",T="Protolathe"===d?"disposeallP":"disposeallI";return(0,o.createComponentVNode)(2,i.Section,{title:d,buttons:N&&(0,o.createComponentVNode)(2,i.Icon,{name:"sync",spin:!0})||null,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Materials",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:h,maxValue:f,children:[h," cm\xb3 / ",f," cm\xb3"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Chemicals",children:(0,o.createComponentVNode)(2,i.ProgressBar,{value:C,maxValue:b,children:[C,"u / ",b,"u"]})})]}),(0,o.createComponentVNode)(2,i.Tabs,{mt:1,children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"wrench",selected:0===y,onClick:function(){return k(0)},children:"Build"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:B,iconSpin:w,color:x,selected:1===y,onClick:function(){return k(1)},children:"Queue"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"cookie-bite",selected:2===y,onClick:function(){return k(2)},children:"Mat Storage"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"flask",selected:3===y,onClick:function(){return k(3)},children:"Chem Storage"})]}),0===y&&(0,o.createComponentVNode)(2,m,{target:s,designs:u,buildName:"Protolathe"===d?"build":"imprint",buildFiveName:"Protolathe"===d?"buildfive":null})||1===y&&(0,o.createComponentVNode)(2,i.LabeledList,{children:v.length&&v.map((function(e){return 1===e.index?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,labelColor:"bad",children:N?(0,o.createComponentVNode)(2,i.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,o.createComponentVNode)(2,i.Box,{children:["(Awaiting Materials)",(0,o.createComponentVNode)(2,i.Button,{ml:1,icon:"trash",onClick:function(){var t;return c(L,((t={})[L]=e.index,t))},children:"Remove"})]})}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.Button,{icon:"trash",onClick:function(){var t;return c(L,((t={})[L]=e.index,t))},children:"Remove"})},e.name)}))||(0,o.createComponentVNode)(2,i.Box,{m:1,children:"Queue Empty."})})||2===y&&(0,o.createComponentVNode)(2,i.LabeledList,{children:g.map((function(e){var n=(0,a.useLocalState)(t,"ejectAmt"+e.name,0),l=n[0],d=n[1];return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:(0,r.toTitleCase)(e.name),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.NumberInput,{minValue:0,width:"100px",value:l,maxValue:e.sheets,onDrag:function(e,t){return d(t)}}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var t;d(0),c(S,((t={})[S]=e.name,t.amount=l,t))},children:"Num"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",disabled:!e.removable,onClick:function(){var t;return c(S,((t={})[S]=e.name,t.amount=50,t))},children:"All"})],4),children:[e.amount," cm\xb3"]},e.name)}))})||3===y&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:V.length&&V.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:[e.volume,"u",(0,o.createComponentVNode)(2,i.Button,{ml:1,icon:"eject",onClick:function(){return c(I,{dispose:e.id})},children:"Purge"})]},e.name)}))||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,o.createComponentVNode)(2,i.Button,{mt:1,icon:"trash",onClick:function(){return c(T)},children:"Disposal All Chemicals In Storage"})]})||(0,o.createComponentVNode)(2,i.Box,{children:"Error"})]})},h=[{name:"Protolathe",icon:"wrench",template:(0,o.createComponentVNode)(2,p,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,o.createComponentVNode)(2,p,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data.info.linked_destroy;if(!c.present)return(0,o.createComponentVNode)(2,i.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var l=c.loaded_item,d=c.origin_tech;return(0,o.createComponentVNode)(2,i.Section,{title:"Destructive Analyzer",children:l&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Origin Tech",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:[e.level,"\xa0\xa0",e.current&&"(Current: "+e.current+")"]},e.name)}))||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,o.createComponentVNode)(2,i.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){return r("deconstruct")},children:"Deconstruct Item"}),(0,o.createComponentVNode)(2,i.Button,{icon:"eject",onClick:function(){return r("eject_item")},children:"Eject Item"})]})||(0,o.createComponentVNode)(2,i.Box,{children:"No Item Loaded. Standing-by..."})})}))},{name:"Settings",icon:"cog",template:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data.info,l=c.sync,d=c.linked_destroy,s=c.linked_imprinter,u=c.linked_lathe,m=(0,a.useSharedState)(t,"settingsTab",0),p=m[0],h=m[1];return(0,o.createComponentVNode)(2,i.Section,{title:"Settings",children:[(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"cogs",onClick:function(){return h(0)},selected:0===p,children:"General"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:"link",onClick:function(){return h(1)},selected:1===p,children:"Device Linkages"})]}),0===p&&(0,o.createComponentVNode)(2,i.Box,{children:[l&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"sync",onClick:function(){return r("sync")},children:"Sync Database with Network"}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"unlink",onClick:function(){return r("togglesync")},children:"Disconnect from Research Network"})],4)||(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"link",onClick:function(){return r("togglesync")},children:"Connect to Research Network"}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"lock",onClick:function(){return r("lock")},children:"Lock Console"}),(0,o.createComponentVNode)(2,i.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){return r("reset")},children:"Reset R&D Database"})]})||1===p&&(0,o.createComponentVNode)(2,i.Box,{children:[(0,o.createComponentVNode)(2,i.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){return r("find_device")},children:"Re-sync with Nearby Devices"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[d.present&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Destructive Analyzer",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,u.present&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Protolathe",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,s.present&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Circuit Imprinter",children:(0,o.createComponentVNode)(2,i.Button,{icon:"unlink",onClick:function(){return r("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,o.createComponentVNode)(2,i.Box,{children:"Error"})]})}))},{name:"Research List",icon:"flask",template:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data.tech;return(0,o.createComponentVNode)(2,i.Section,{title:"Current Research Levels",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"print",onClick:function(){return r("print",{print:1})},children:"Print This Page"}),children:(0,o.createComponentVNode)(2,i.Table,{children:c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,i.Box,{children:[" - Level ",e.level]})]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Box,{color:"label",children:e.desc})})]},e.name)}))})})}))},{name:"Design List",icon:"file",template:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,s=c.designs;return(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,l,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{icon:"print",onClick:function(){return r("print",{print:2})},children:"Print This Page"}),(0,o.createComponentVNode)(2,d,{target:"design_page"})||null],0),children:[(0,o.createComponentVNode)(2,i.Input,{fluid:!0,placeholder:"Search for...",value:c.search,onInput:function(e,t){return r("search",{search:t})},mb:1}),s&&s.length&&(0,o.createComponentVNode)(2,i.LabeledList,{children:s.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:e.desc},e.name)}))})||(0,o.createComponentVNode)(2,i.Box,{color:"warning",children:"No designs found."})]})}))},{name:"Disk Operations",icon:"save",template:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.info),c=r.d_disk,l=r.t_disk;return c.present||l.present?(0,o.createComponentVNode)(2,i.Section,{title:"Disk Operations",children:[(0,o.createComponentVNode)(2,s,{disk:l}),(0,o.createComponentVNode)(2,u,{disk:c})]}):(0,o.createComponentVNode)(2,i.Section,{title:"Disk Operations",children:"No disk inserted."})}))}];t.ResearchConsole=function(e,t){var n=(0,a.useBackend)(t),r=n.act,l=n.data,d=l.busy_msg,s=l.locked,u=(0,a.useSharedState)(t,"rdmenu",0),m=u[0],p=u[1],f=!1;return(d||s)&&(f=!0),(0,o.createComponentVNode)(2,c.Window,{width:850,height:630,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,i.Tabs,{children:h.map((function(e,t){return(0,o.createComponentVNode)(2,i.Tabs.Tab,{icon:e.icon,selected:m===t,disabled:f,onClick:function(){return p(t)},children:e.name},t)}))}),d&&(0,o.createComponentVNode)(2,i.Section,{title:"Processing...",children:d})||s&&(0,o.createComponentVNode)(2,i.Section,{title:"Console Locked",children:(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("lock")},icon:"lock-open",children:"Unlock"})})||h[m].template]})})}},93023:function(e,t,n){"use strict";t.__esModule=!0,t.ResearchServerController=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798),c=n(45445);t.ResearchServerController=function(e,t){var n=(0,r.useBackend)(t);n.act,n.data;return(0,o.createComponentVNode)(2,i.Window,{width:575,height:430,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data),c=(i.badmin,i.servers),l=(i.consoles,(0,r.useSharedState)(t,"selectedServer",null)),s=l[0],u=l[1],m=c.find((function(e){return e.id===s}));return m?(0,o.createComponentVNode)(2,d,{setSelectedServer:u,server:m}):(0,o.createComponentVNode)(2,a.Section,{title:"Server Selection",children:c.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button,{icon:"eye",onClick:function(){return u(e.id)},children:e.name})},e.name)}))})},d=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.badmin),c=e.server,l=e.setSelectedServer,d=(0,r.useSharedState)(t,"tab",0),p=d[0],h=d[1];return(0,o.createComponentVNode)(2,a.Section,{title:c.name,buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"undo",onClick:function(){return l(null)},children:"Back"}),children:[(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:0===p,onClick:function(){return h(0)},children:"Access Rights"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:1===p,onClick:function(){return h(1)},children:"Data Management"}),i&&(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===p,onClick:function(){return h(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),0===p&&(0,o.createComponentVNode)(2,s,{server:c})||null,1===p&&(0,o.createComponentVNode)(2,u,{server:c})||null,2===p&&i&&(0,o.createComponentVNode)(2,m,{server:c})||null]})},s=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=e.server,d=c.consoles,s=function(e,t){return-1!==e.id_with_upload.indexOf(t.id)},u=function(e,t){return-1!==e.id_with_download.indexOf(t.id)};return(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Consoles",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:d.length&&d.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name+" ("+e.loc+")",children:[(0,o.createComponentVNode)(2,a.Button,{icon:s(l,e)?"lock-open":"lock",selected:s(l,e),onClick:function(){return i("toggle_upload",{server:l.ref,console:e.ref})},children:s(l,e)?"Upload On":"Upload Off"}),(0,o.createComponentVNode)(2,a.Button,{icon:u(l,e)?"lock-open":"lock",selected:u(l,e),onClick:function(){return i("toggle_download",{server:l.ref,console:e.ref})},children:u(l,e)?"Download On":"Download Off"})]},e.name)}))})})},u=function(e,t){var n=(0,r.useBackend)(t),i=n.act,l=(n.data,e.server);return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Research Levels",children:l.tech.map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return i("reset_tech",{server:l.ref,tech:e.id})}})},e.name)}))}),(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Designs",children:(0,c.filter)((function(e){return!!e.name}))(l.designs).map((function(e){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.name,buttons:(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return i("reset_design",{server:l.ref,design:e.id})}})},e.name)}))})],4)},m=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=e.server,d=c.badmin,s=c.servers;return d?(0,o.createComponentVNode)(2,a.Section,{level:2,title:"Server Data Transfer",children:s.map((function(e){return(0,o.createComponentVNode)(2,a.Box,{children:(0,o.createComponentVNode)(2,a.Button.Confirm,{fluid:!0,color:"bad",content:(0,o.createComponentVNode)(2,a.Box,{children:["Transfer from ",l.name," To ",e.name]}),onClick:function(){return i("transfer_data",{server:l.ref,target:e.ref})}})},e.name)}))}):null}},14694:function(e,t,n){"use strict";t.__esModule=!0,t.ResleevingConsole=void 0;var o=n(58734),r=n(5339),a=n(62188),i=n(71558),c=n(72992),l=n(2798),d=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=(n.data,e.args),l=c.activerecord,d=c.realname,s=c.obviously_dead,u=c.oocnotes,m=c.can_sleeve_active;return(0,o.createComponentVNode)(2,i.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+d+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:[(0,o.createComponentVNode)(2,i.Button,{disabled:!m,icon:"user-plus",content:"Sleeve",onClick:function(){return r("sleeve",{ref:l,mode:1})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"user-plus",content:"Card",onClick:function(){return r("sleeve",{ref:l,mode:2})}})]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,i.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:u})})]})})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=(n.data,e.args),l=c.activerecord,d=c.realname,s=c.species,u=c.sex,m=c.mind_compat,p=c.synthetic,h=c.oocnotes,f=c.can_grow_active;return(0,o.createComponentVNode)(2,i.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+d+")",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"times",color:"red",onClick:function(){return r("modal_close")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:d}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Species",children:s}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Bio. Sex",children:u}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mind Compat",children:m}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Synthetic",children:p?"Yes":"No"}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"OOC Notes",children:(0,o.createComponentVNode)(2,i.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:h})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Actions",children:(0,o.createComponentVNode)(2,i.Button,{disabled:!f,icon:"user-plus",content:p?"Build":"Grow",onClick:function(){return r("create",{ref:l})}})})]})})};t.ResleevingConsole=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),f=(r.menu,r.coredumped),C=r.emergency,b=(0,o.createFragment)([(0,o.createComponentVNode)(2,V),(0,o.createComponentVNode)(2,v),(0,o.createComponentVNode)(2,u),(0,o.createComponentVNode)(2,i.Section,{noTopPadding:!0,flexGrow:"1",children:(0,o.createComponentVNode)(2,m)})],4);return f&&(b=(0,o.createComponentVNode)(2,p)),C&&(b=(0,o.createComponentVNode)(2,h)),(0,c.modalRegisterBodyOverride)("view_b_rec",s),(0,c.modalRegisterBodyOverride)("view_m_rec",d),(0,o.createComponentVNode)(2,l.Window,{width:640,height:520,resizable:!0,children:[(0,o.createComponentVNode)(2,c.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,o.createComponentVNode)(2,l.Window.Content,{className:"Layout__content--flexColumn",children:b})]})};var u=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data.menu;return(0,o.createComponentVNode)(2,i.Tabs,{children:[(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:1===c,icon:"home",onClick:function(){return r("menu",{num:1})},children:"Main"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:2===c,icon:"folder",onClick:function(){return r("menu",{num:2})},children:"Body Records"}),(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:3===c,icon:"folder",onClick:function(){return r("menu",{num:3})},children:"Mind Records"})]})},m=function(e,t){var n,r=(0,a.useBackend)(t).data,i=r.menu,c=r.bodyrecords,l=r.mindrecords;return 1===i?n=(0,o.createComponentVNode)(2,f):2===i?n=(0,o.createComponentVNode)(2,g,{records:c,actToDo:"view_b_rec"}):3===i&&(n=(0,o.createComponentVNode)(2,g,{records:l,actToDo:"view_m_rec"})),n},p=function(e,t){return(0,o.createComponentVNode)(2,i.Dimmer,{children:(0,o.createComponentVNode)(2,i.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,o.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},h=function(e,t){var n=(0,a.useBackend)(t).act;return(0,o.createComponentVNode)(2,i.Dimmer,{textAlign:"center",children:[(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:(0,o.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:(0,o.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,o.createComponentVNode)(2,i.Box,{mt:4,children:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return n("ejectdisk")}})}),(0,o.createComponentVNode)(2,i.Box,{mt:4,children:(0,o.createComponentVNode)(2,i.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return n("coredump")}})})]})},f=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data);r.loading,r.scantemp,r.occupant,r.locked,r.can_brainscan,r.scan_mode,r.pods,r.selected_pod;return(0,o.createComponentVNode)(2,i.Section,{title:"Pods",level:"2",children:[(0,o.createComponentVNode)(2,C),(0,o.createComponentVNode)(2,N),(0,o.createComponentVNode)(2,b)]})},C=function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data,d=l.pods,s=l.spods,u=l.selected_pod;return d&&d.length?d.map((function(e,t){var n;return n="cloning"===e.status?(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,i.Button,{selected:u===e.pod,icon:u===e.pod&&"check",content:"Select",mt:s&&s.length?"2rem":"0.5rem",onClick:function(){return c("selectpod",{ref:e.pod})}}),(0,o.createComponentVNode)(2,i.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"pod_"+e.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:e.biomass>=150?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,i.Icon,{name:e.biomass>=150?"circle":"circle-o"}),"\xa0",e.biomass]}),n]},t)})):null},b=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.sleevers,d=c.spods,s=c.selected_sleever;return l&&l.length?l.map((function(e,t){return(0,o.createComponentVNode)(2,i.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(e.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Box,{color:e.occupied?"label":"bad",children:e.name}),(0,o.createComponentVNode)(2,i.Button,{selected:s===e.sleever,icon:s===e.sleever&&"check",content:"Select",mt:d&&d.length?"3rem":"1.5rem",onClick:function(){return r("selectsleever",{ref:e.sleever})}})]},t)})):null},N=function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data,d=l.spods,s=l.selected_printer;return d&&d.length?d.map((function(e,t){var n;return n="cloning"===e.status?(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:e.progress/100,ranges:{good:[.75,Infinity],average:[.25,.75],bad:[-Infinity,.25]},mt:"0.5rem",children:(0,o.createComponentVNode)(2,i.Box,{textAlign:"center",children:(0,r.round)(e.progress,0)+"%"})}):"mess"===e.status?(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):(0,o.createComponentVNode)(2,i.Button,{selected:s===e.spod,icon:s===e.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return c("selectprinter",{ref:e.spod})}}),(0,o.createComponentVNode)(2,i.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,o.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(e.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createComponentVNode)(2,i.Box,{color:"label",children:e.name}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:e.steel>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,i.Icon,{name:e.steel>=15e3?"circle":"circle-o"}),"\xa0",e.steel]}),(0,o.createComponentVNode)(2,i.Box,{bold:!0,color:e.glass>=15e3?"good":"bad",inline:!0,children:[(0,o.createComponentVNode)(2,i.Icon,{name:e.glass>=15e3?"circle":"circle-o"}),"\xa0",e.glass]}),n]},t)})):null},g=function(e,t){var n=(0,a.useBackend)(t).act,r=e.records,c=e.actToDo;return r.length?(0,o.createComponentVNode)(2,i.Box,{mt:"0.5rem",children:r.map((function(e,t){return(0,o.createComponentVNode)(2,i.Button,{icon:"user",mb:"0.5rem",content:e.name,onClick:function(){return n(c,{ref:e.recref})}},t)}))}):(0,o.createComponentVNode)(2,i.Flex,{height:"100%",mt:"0.5rem",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No records found."]})})},V=function(e,t){var n,r=(0,a.useBackend)(t),c=r.act,l=r.data.temp;if(l&&l.text&&!(l.text.length<=0)){var d=((n={})[l.style]=!0,n);return(0,o.normalizeProps)((0,o.createComponentVNode)(2,i.NoticeBox,Object.assign({},d,{children:[(0,o.createComponentVNode)(2,i.Box,{display:"inline-block",verticalAlign:"middle",children:l.text}),(0,o.createComponentVNode)(2,i.Button,{icon:"times-circle",float:"right",onClick:function(){return c("cleartemp")}}),(0,o.createComponentVNode)(2,i.Box,{clear:"both"})]})))}},v=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),c=r.pods,l=r.spods,d=r.sleevers;r.autoallowed,r.autoprocess,r.disk;return(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pods",children:c&&c.length?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:[c.length," connected"]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"SynthFabs",children:l&&l.length?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:[l.length," connected"]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"None connected!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Sleevers",children:d&&d.length?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:[d.length," Connected"]}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"None connected!"})})]})})}},29854:function(e,t,n){"use strict";t.__esModule=!0,t.ResleevingPod=void 0;var o=n(58734),r=n(2798),a=n(62188),i=n(71558);t.ResleevingPod=function(e,t){var n=(0,a.useBackend)(t).data,c=n.occupied,l=n.name,d=n.health,s=n.maxHealth,u=n.stat,m=n.mindStatus,p=n.mindName,h=n.resleeveSick,f=n.initialSick;return(0,o.createComponentVNode)(2,r.Window,{width:300,height:350,resizeable:!0,children:(0,o.createComponentVNode)(2,r.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Occupant",children:c?(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:l}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:2===u?(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"DEAD"}):1===u?(0,o.createComponentVNode)(2,i.Box,{color:"average",children:"Unconscious"}):(0,o.createComponentVNode)(2,i.ProgressBar,{ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},value:d/s,children:[d,"%"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mind Status",children:m?"Present":"Missing"}),m?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Mind Occupying",children:p}):""]}),h?(0,o.createComponentVNode)(2,i.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",f?(0,o.createFragment)([(0,o.createTextVNode)(" "),(0,o.createTextVNode)("Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected.")],0):""]}):""],0):(0,o.createComponentVNode)(2,i.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}},85831:function(e,t,n){"use strict";t.__esModule=!0,t.RoboticsControlConsole=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798);t.RoboticsControlConsole=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.can_hack,u=d.safety,m=d.show_detonate_all,p=d.cyborgs,h=void 0===p?[]:p;return(0,o.createComponentVNode)(2,i.Window,{width:500,height:460,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[!!m&&(0,o.createComponentVNode)(2,a.Section,{title:"Emergency Self Destruct",children:[(0,o.createComponentVNode)(2,a.Button,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return l("arm",{})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return l("nuke",{})}})]}),(0,o.createComponentVNode)(2,c,{cyborgs:h,can_hack:s})]})})};var c=function(e,t){var n=e.cyborgs,i=(e.can_hack,(0,r.useBackend)(t)),c=i.act,l=i.data;return n.length?n.map((function(e){return(0,o.createComponentVNode)(2,a.Section,{title:e.name,buttons:(0,o.createFragment)([!!e.hackable&&!e.emagged&&(0,o.createComponentVNode)(2,a.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return c("hackbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:e.locked_down?"unlock":"lock",color:e.locked_down?"good":"default",content:e.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return c("stopbot",{ref:e.ref})}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return c("killbot",{ref:e.ref})}})],0),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Status",children:(0,o.createComponentVNode)(2,a.Box,{color:e.status?"bad":e.locked_down?"average":"good",children:e.status?"Not Responding":e.locked_down?"Locked Down":"Nominal"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Location",children:(0,o.createComponentVNode)(2,a.Box,{children:e.locstring})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Integrity",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:e.health>50?"good":"bad",value:e.health/100})}),"number"==typeof e.charge&&(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell Charge",children:(0,o.createComponentVNode)(2,a.ProgressBar,{color:e.charge>30?"good":"bad",value:e.charge/100})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell Capacity",children:(0,o.createComponentVNode)(2,a.Box,{color:e.cell_capacity<3e4?"average":"good",children:e.cell_capacity})})],4)||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Cell",children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"No Power Cell"})}),!!e.is_hacked&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Safeties",children:(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"DISABLED"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Module",children:e.module}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Master AI",children:(0,o.createComponentVNode)(2,a.Box,{color:e.synchronization?"default":"average",children:e.synchronization||"None"})})]})},e.ref)})):(0,o.createComponentVNode)(2,a.NoticeBox,{children:"No cyborg units detected within access parameters."})}},59135:function(e,t,n){"use strict";t.__esModule=!0,t.RogueZones=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798);t.RogueZones=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.timeout_percent,s=l.diffstep,u=l.difficulty,m=l.occupied,p=l.scanning,h=l.updated,f=l.debug,C=l.shuttle_location,b=l.shuttle_at_station,N=l.scan_ready,g=l.can_recall_shuttle;return(0,o.createComponentVNode)(2,i.Window,{width:360,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Current Area",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Mineral Content",children:u}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Shuttle Location",buttons:g&&(0,o.createComponentVNode)(2,a.Button,{color:"bad",icon:"rocket",onClick:function(){return c("recall_shuttle")},children:"Recall Shuttle"})||null,children:C}),m&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",m," personnel!"]})||(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Scanner",buttons:(0,o.createComponentVNode)(2,a.Button,{disabled:!N,fluid:!0,icon:"search",onClick:function(){return c("scan_for_new")},children:"Scan For Asteroids"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:d,maxValue:100,ranges:{good:[100,Infinity],average:[75,100],bad:[-Infinity,75]}})}),p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,h&&!p&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,f&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,o.createComponentVNode)(2,a.Box,{children:["Timeout Percent: ",d]}),(0,o.createComponentVNode)(2,a.Box,{children:["Diffstep: ",s]}),(0,o.createComponentVNode)(2,a.Box,{children:["Difficulty: ",u]}),(0,o.createComponentVNode)(2,a.Box,{children:["Occupied: ",m]}),(0,o.createComponentVNode)(2,a.Box,{children:["Debug: ",f]}),(0,o.createComponentVNode)(2,a.Box,{children:["Shuttle Location: ",C]}),(0,o.createComponentVNode)(2,a.Box,{children:["Shuttle at station: ",b]}),(0,o.createComponentVNode)(2,a.Box,{children:["Scan Ready: ",N]})]})||null]})})]})})}},82713:function(e,t,n){"use strict";t.__esModule=!0,t.RustCoreMonitorContent=t.RustCoreMonitor=void 0;var o=n(58734),r=n(62188),a=n(2798),i=n(71558);t.RustCoreMonitor=function(){return(0,o.createComponentVNode)(2,a.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.cores;return(0,o.createComponentVNode)(2,i.Section,{title:"Cores",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return a("set_tag")}}),children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Field Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Reactant Mode"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Field Instability"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Field Temperature"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Field Strength"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Plasma Content"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.has_field?"Online":"Offline",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return a("toggle_active",{core:e.ref})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.reactant_dump?"Dump":"Maintain",selected:e.has_field,disabled:!e.core_operational,onClick:function(){return a("toggle_reactantdump",{core:e.ref})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.field_instability}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.field_temperature}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Knob,{forcedInputWidth:"60px",size:1.25,color:!!e.has_field&&"yellow",value:e.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(t,n){return a("set_fieldstr",{core:e.ref,fieldstr:n})}})}),(0,o.createComponentVNode)(2,i.Table.Cell)]},e.name)}))]})})};t.RustCoreMonitorContent=c},27743:function(e,t,n){"use strict";t.__esModule=!0,t.RustFuelControl=t.RustFuelContent=void 0;var o=n(58734),r=n(62188),a=n(2798),i=n(71558);t.RustFuelControl=function(){return(0,o.createComponentVNode)(2,a.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.fuels;return(0,o.createComponentVNode)(2,i.Section,{title:"Fuel Injectors",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return a("set_tag")}}),children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Status"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Remaining Fuel"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Fuel Rod Composition"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.active?"Online":"Offline",selected:e.active,disabled:!e.deployed,onClick:function(){return a("toggle_active",{fuel:e.ref})}})}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.fuel_amt}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.fuel_type})]},e.name)}))]})})};t.RustFuelContent=c},30343:function(e,t,n){"use strict";t.__esModule=!0,t.Secbot=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798);t.Secbot=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data,d=l.on,s=l.open,u=l.locked,m=l.idcheck,p=l.check_records,h=l.check_arrest,f=l.arrest_type,C=l.declare_arrests,b=l.bot_patrolling,N=l.patrol;return(0,o.createComponentVNode)(2,i.Window,{width:390,height:320,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,a.Section,{title:"Automatic Security Unit v2.0",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"power-off",selected:d,onClick:function(){return c("power")},children:d?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,o.createComponentVNode)(2,a.Section,{title:"Behavior Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,o.createComponentVNode)(2,a.Button,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return c("idcheck")},children:m?"Yes":"No"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Check Security Records",children:(0,o.createComponentVNode)(2,a.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return c("ignorerec")},children:p?"Yes":"No"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Check Arrest Status",children:(0,o.createComponentVNode)(2,a.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return c("ignorearr")},children:h?"Yes":"No"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Operating Mode",children:(0,o.createComponentVNode)(2,a.Button,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return c("switchmode")},children:f?"Detain":"Arrest"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Report Arrests",children:(0,o.createComponentVNode)(2,a.Button,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return c("declarearrests")},children:C?"Yes":"No"})}),!!b&&(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Auto Patrol",children:(0,o.createComponentVNode)(2,a.Button,{icon:N?"toggle-on":"toggle-off",selected:N,onClick:function(){return c("patrol")},children:N?"Yes":"No"})})]})})||null]})})}},67182:function(e,t,n){"use strict";t.__esModule=!0,t.SecureSafe=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798),c=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.locked,d=c.l_setshort,s=c.code,u=c.emagged;return(0,o.createComponentVNode)(2,a.Box,{width:"185px",children:(0,o.createComponentVNode)(2,a.Grid,{width:"1px",children:[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]].map((function(e){return(0,o.createComponentVNode)(2,a.Grid.Column,{children:e.map((function(e){return(0,o.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,mb:"6px",content:e,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!u||!!d&&1||"R"!==e&&!l||"ERROR"===s&&"R"!==e&&1,onClick:function(){return i("type",{digit:e})}},e)}))},e[0])}))})})};t.SecureSafe=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data),d=l.code,s=l.l_setshort,u=l.l_set,m=l.emagged,p=l.locked,h=!(u||s);return(0,o.createComponentVNode)(2,i.Window,{width:250,height:380,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:(0,o.createComponentVNode)(2,a.Box,{m:"6px",children:[h&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!s&&(0,o.createComponentVNode)(2,a.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,o.createComponentVNode)(2,a.Section,{height:"60px",children:(0,o.createComponentVNode)(2,a.Box,{textAlign:"center",position:"center",fontSize:"35px",children:d&&d||(0,o.createComponentVNode)(2,a.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,o.createComponentVNode)(2,a.Flex,{ml:"3px",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,c)}),(0,o.createComponentVNode)(2,a.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}},34479:function(e,t,n){"use strict";t.__esModule=!0,t.SecurityRecords=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(72992),c=n(2798),l=n(15020),d=n(81905),s=n(10821),u=function(e,t){(0,i.modalOpen)(e,"edit",{field:t.edit,value:t.value})};t.SecurityRecords=function(e,t){var n,u=(0,r.useBackend)(t).data,f=u.authenticated,C=u.screen;return f?(2===C?n=(0,o.createComponentVNode)(2,m):3===C?n=(0,o.createComponentVNode)(2,p):4===C&&(n=(0,o.createComponentVNode)(2,h)),(0,o.createComponentVNode)(2,c.Window,{width:700,height:680,resizable:!0,children:[(0,o.createComponentVNode)(2,i.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:[(0,o.createComponentVNode)(2,l.LoginInfo),(0,o.createComponentVNode)(2,s.TemporaryNotice),(0,o.createComponentVNode)(2,b),(0,o.createComponentVNode)(2,a.Section,{flexGrow:!0,children:n})]})]})):(0,o.createComponentVNode)(2,c.Window,{width:700,height:680,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,d.LoginScreen)})})};var m=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.records;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(e,t){return i("search",{t1:t})}}),(0,o.createComponentVNode)(2,a.Box,{mt:"0.5rem",children:c.map((function(e,t){return(0,o.createComponentVNode)(2,a.Button,{icon:"user",mb:"0.5rem",color:e.color,content:e.id+": "+e.name+" (Criminal Status: "+e.criminal+")",onClick:function(){return i("d_rec",{d_rec:e.ref})}},t)}))})],4)},p=function(e,t){var n=(0,r.useBackend)(t).act;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return n("del_all")}})],0)},h=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data,l=c.security,d=c.printing;return(0,o.createFragment)([(0,o.createComponentVNode)(2,a.Section,{title:"General Data",mt:"-6px",children:(0,o.createComponentVNode)(2,f)}),(0,o.createComponentVNode)(2,a.Section,{title:"Security Data",children:(0,o.createComponentVNode)(2,C)}),(0,o.createComponentVNode)(2,a.Section,{title:"Actions",children:[(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Security Record",color:"bad",onClick:function(){return i("del_r")}}),(0,o.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",disabled:!!l.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return i("del_r_2")}}),(0,o.createComponentVNode)(2,a.Button,{icon:d?"spinner":"print",disabled:d,iconSpin:!!d,content:"Print Entry",ml:"0.5rem",onClick:function(){return i("print_p")}}),(0,o.createVNode)(1,"br"),(0,o.createComponentVNode)(2,a.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return i("screen",{screen:2})}})]})],4)},f=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.general;return c&&c.fields?(0,o.createComponentVNode)(2,a.Flex,{children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:c.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,children:[(0,o.createComponentVNode)(2,a.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:e.value}),!!e.edit&&(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",onClick:function(){return u(t,e)}})]},n)}))})}),(0,o.createComponentVNode)(2,a.Flex.Item,{textAlign:"right",children:[!!c.has_photos&&c.photos.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,o.createVNode)(1,"img",null,null,1,{src:e.substr(1,e.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,o.createVNode)(1,"br"),"Photo #",t+1]},t)})),(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("photo_front")},children:"Update Front Photo"}),(0,o.createComponentVNode)(2,a.Button,{onClick:function(){return i("photo_side")},children:"Update Side Photo"})]})]})]}):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:"General records lost!"})},C=function(e,t){var n=(0,r.useBackend)(t),c=n.act,l=n.data.security;return l&&l.fields?(0,o.createFragment)([(0,o.createComponentVNode)(2,a.LabeledList,{children:l.fields.map((function(e,n){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:e.field,children:(0,o.createComponentVNode)(2,a.Box,{preserveWhitespace:!0,children:[e.value,(0,o.createComponentVNode)(2,a.Button,{icon:"pen",ml:"0.5rem",mb:e.line_break?"1rem":"initial",onClick:function(){return u(t,e)}})]})},n)}))}),(0,o.createComponentVNode)(2,a.Section,{title:"Comments/Log",children:[0===l.comments.length?(0,o.createComponentVNode)(2,a.Box,{color:"label",children:"No comments found."}):l.comments.map((function(e,t){return(0,o.createComponentVNode)(2,a.Box,{children:[(0,o.createComponentVNode)(2,a.Box,{color:"label",inline:!0,children:e.header}),(0,o.createVNode)(1,"br"),e.text,(0,o.createComponentVNode)(2,a.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return c("del_c",{del_c:t+1})}})]},t)})),(0,o.createComponentVNode)(2,a.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,i.modalOpen)(t,"add_c")}})]})],4):(0,o.createComponentVNode)(2,a.Box,{color:"bad",children:["Security records lost!",(0,o.createComponentVNode)(2,a.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return c("new")}})]})},b=function(e,t){var n=(0,r.useBackend)(t),i=n.act,c=n.data.screen;return(0,o.createComponentVNode)(2,a.Tabs,{children:[(0,o.createComponentVNode)(2,a.Tabs.Tab,{selected:2===c,icon:"list",onClick:function(){return i("screen",{screen:2})},children:"List Records"}),(0,o.createComponentVNode)(2,a.Tabs.Tab,{icon:"wrench",selected:3===c,onClick:function(){return i("screen",{screen:3})},children:"Record Maintenance"})]})}},81402:function(e,t,n){"use strict";t.__esModule=!0,t.SeedStorage=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798),c=n(40946),l=n(45445);t.SeedStorage=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=(s.scanner,s.seeds),m=(0,l.sortBy)((function(e){return e.name.toLowerCase()}))(u);return(0,o.createComponentVNode)(2,i.Window,{width:600,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Seeds",children:m.map((function(e){return(0,o.createComponentVNode)(2,a.Flex,{spacing:1,mt:-1,children:[(0,o.createComponentVNode)(2,a.Flex.Item,{basis:"60%",children:(0,o.createComponentVNode)(2,a.Collapsible,{title:(0,c.toTitleCase)(e.name)+" #"+e.uid,children:(0,o.createComponentVNode)(2,a.Section,{width:"165%",title:"Traits",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:Object.keys(e.traits).map((function(t){return(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:(0,c.toTitleCase)(t),children:e.traits[t]},t)}))})})})}),(0,o.createComponentVNode)(2,a.Flex.Item,{mt:.4,children:[e.amount," Remaining"]}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"download",onClick:function(){return d("vend",{id:e.id})},children:"Vend"})}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,a.Button,{fluid:!0,icon:"trash",onClick:function(){return d("purge",{id:e.id})},children:"Purge"})})]},e.name+e.uid)}))})})})}},98485:function(e,t,n){"use strict";t.__esModule=!0,t.ShieldCapacitor=void 0;var o=n(58734),r=n(62188),a=n(2798),i=n(71558),c=n(5339),l=n(43820);t.ShieldCapacitor=function(e,t){var n=(0,r.useBackend)(t),d=n.act,s=n.data,u=s.active,m=s.time_since_fail,p=s.stored_charge,h=s.max_charge,f=s.charge_rate,C=s.max_charge_rate;return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,i.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return d("toggle")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Capacitor Status",children:m>2?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"OK."}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Discharging!"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Stored Energy",children:[(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:p,format:function(e){return(0,l.formatSiUnit)(e,0,"J")}})," ","(",(0,o.createComponentVNode)(2,i.AnimatedNumber,{value:100*(0,c.round)(p/h,1)}),"%)"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,i.NumberInput,{value:f,step:100,stepPixelSize:.2,minValue:1e4,maxValue:C,format:function(e){return(0,l.formatPower)(e)},onDrag:function(e,t){return d("charge_rate",{rate:t})}})})]})})})})}},48658:function(e,t,n){"use strict";t.__esModule=!0,t.ShieldGenerator=void 0;var o=n(58734),r=n(62188),a=n(2798),i=n(71558),c=n(5339),l=n(43820),d=n(99671);t.ShieldGenerator=function(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data.locked);return(0,o.createComponentVNode)(2,a.Window,{width:500,height:400,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:i?(0,o.createComponentVNode)(2,s):(0,o.createComponentVNode)(2,u)})})};var s=function(e,t){return(0,o.createComponentVNode)(2,d.FullscreenNotice,{title:"Locked",children:[(0,o.createComponentVNode)(2,i.Box,{fontSize:"1.5rem",bold:!0,children:(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,o.createComponentVNode)(2,i.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},u=function(e,t){var n=(0,r.useBackend)(t),a=n.act,d=n.data.lockedData,s=d.capacitors,u=d.active,m=d.failing,p=d.radius,h=d.max_radius,f=d.z_range,C=d.max_z_range,b=d.average_field_strength,N=d.target_field_strength,g=d.max_field_strength,V=d.shields,v=d.upkeep,_=d.strengthen_rate,y=d.max_strengthen_rate,k=d.gen_power,x=(s||[]).length;return(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Field Status",children:m?(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Unstable"}):(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Stable"})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Overall Field Strength",children:[(0,c.round)(b,2)," Renwick (",N&&(0,c.round)(100*b/N,1)||"NA","%)"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Upkeep Power",children:(0,l.formatPower)(v)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Shield Generation Power",children:(0,l.formatPower)(k)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Currently Shielded",children:[V," m\xb2"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Capacitors",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:x?s.map((function(e,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Capacitor #"+t,children:[e.active?(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"Online"}):(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Offline"}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge",children:[(0,l.formatSiUnit)(e.stored_charge,0,"J")," (",100*(0,c.round)(e.stored_charge/e.max_charge,2),"%)"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",children:e.failing?(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"Discharging"}):(0,o.createComponentVNode)(2,i.Box,{color:"good",children:"OK."})})]})]},t)})):(0,o.createComponentVNode)(2,i.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Controls",buttons:(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:u?"Online":"Offline",selected:u,onClick:function(){return a("toggle")}}),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Coverage Radius",children:(0,o.createComponentVNode)(2,i.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:h,value:p,unit:"m",onDrag:function(e,t){return a("change_radius",{val:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Vertical Shielding",children:(0,o.createComponentVNode)(2,i.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:C,value:f,unit:"vertical range",onDrag:function(e,t){return a("z_range",{val:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Charge Rate",children:(0,o.createComponentVNode)(2,i.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:y,value:_,format:function(e){return(0,c.round)(e,1)},unit:"Renwick/s",onDrag:function(e,t){return a("strengthen_rate",{val:t})}})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Maximum Field Strength",children:(0,o.createComponentVNode)(2,i.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:g,value:N,unit:"Renwick",onDrag:function(e,t){return a("target_field_strength",{val:t})}})})]})})],4)}},39779:function(e,t,n){"use strict";t.__esModule=!0,t.ShutoffMonitorContent=t.ShutoffMonitor=void 0;var o=n(58734),r=n(62188),a=n(2798),i=n(71558);t.ShutoffMonitor=function(e,t){return(0,o.createComponentVNode)(2,a.Window,{width:627,height:700,resizable:!0,children:(0,o.createComponentVNode)(2,a.Window.Content,{children:(0,o.createComponentVNode)(2,c)})})};var c=function(e,t){var n=(0,r.useBackend)(t),a=n.act,c=n.data.valves;return(0,o.createComponentVNode)(2,i.Section,{title:"Valves",children:(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Name"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Position"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Open"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Mode"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:"Actions"})]}),c.map((function(e){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[e.x,", ",e.y,", ",e.z]}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.open?"Yes":"No"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:e.enabled?"Auto":"Manual"}),(0,o.createComponentVNode)(2,i.Table.Cell,{children:[(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.open?"Opened":"Closed",selected:e.open,disabled:!e.enabled,onClick:function(){return a("toggle_open",{valve:e.ref})}}),(0,o.createComponentVNode)(2,i.Button,{icon:"power-off",content:e.enabled?"Auto":"Manual",selected:e.enabled,onClick:function(){return a("toggle_enable",{valve:e.ref})}})]})]},e.name)}))]})})};t.ShutoffMonitorContent=c},61912:function(e,t,n){"use strict";t.__esModule=!0,t.ShuttleControl=void 0;var o=n(58734),r=n(40946),a=n(62188),i=n(71558),c=n(2798),l=function(e,t){var n="ERROR",r="bad",a=!1;return"docked"===e?(n="DOCKED",r="good"):"docking"===e?(n="DOCKING",r="average",a=!0):"undocking"===e?(n="UNDOCKING",r="average",a=!0):"undocked"===e&&(n="UNDOCKED",r="#676767"),a&&t&&(n+="-MANUAL"),(0,o.createComponentVNode)(2,i.Box,{color:r,children:n})},d=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,d=e.engineName,s=void 0===d?"Bluespace Drive":d,u=c.shuttle_status,m=c.shuttle_state,p=c.has_docking,h=c.docking_status,f=c.docking_override,C=c.docking_codes;return(0,o.createComponentVNode)(2,i.Section,{title:"Shuttle Status",children:[(0,o.createComponentVNode)(2,i.Box,{color:"label",mb:1,children:u}),(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:s,children:"idle"===m&&(0,o.createComponentVNode)(2,i.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,i.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,i.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"ERROR"})}),p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Docking Status",children:l(h,f)}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Docking Codes",children:(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return r("set_codes")},children:C||"Not Set"})})],4)||null]})]})},s=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.can_launch,d=c.can_cancel,s=c.can_force;return(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.Flex,{spacing:1,children:[(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("move")},disabled:!l,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("cancel")},disabled:!d,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,o.createComponentVNode)(2,i.Button,{onClick:function(){return r("force")},color:"bad",disabled:!s,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},u={ShuttleControlConsoleDefault:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t);n.act,n.data;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleMulti:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.can_cloak,u=c.can_pick,m=c.legit,p=c.cloaked,h=c.destination_name;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d),(0,o.createComponentVNode)(2,i.Section,{title:"Multishuttle Controls",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[l&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:m?"ATC Inhibitor":"Cloaking",children:(0,o.createComponentVNode)(2,i.Button,{selected:p,icon:p?"eye":"eye-o",onClick:function(){return r("toggle_cloaked")},children:p?"Enabled":"Disabled"})})||null,(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,i.Button,{icon:"taxi",disabled:!u,onClick:function(){return r("pick")},children:h})})]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleExploration:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.can_pick,u=c.destination_name,m=c.fuel_usage,p=c.fuel_span,h=c.remaining_fuel;return(0,o.createFragment)([(0,o.createComponentVNode)(2,d,{engineName:"Engines"}),(0,o.createComponentVNode)(2,i.Section,{title:"Jump Controls",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Destination",children:(0,o.createComponentVNode)(2,i.Button,{icon:"taxi",disabled:!l,onClick:function(){return r("pick")},children:u})}),m&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Est. Delta-V Budget",color:p,children:[h," m/s"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[m," m/s"]})],4)||null]})}),(0,o.createComponentVNode)(2,s)],4)})),ShuttleControlConsoleWeb:(0,o.createComponentVNode)(2,(function(e,t){var n=(0,a.useBackend)(t),c=n.act,d=n.data,s=d.autopilot,u=d.can_rename,m=d.shuttle_state,p=d.is_moving,h=d.skip_docking,f=d.docking_status,C=d.docking_override,b=d.shuttle_location,N=d.can_cloak,g=d.cloaked,V=d.can_autopilot,v=d.routes,_=d.is_in_transit,y=d.travel_progress,k=d.time_left,x=d.doors,w=d.sensors;return(0,o.createFragment)([s&&(0,o.createComponentVNode)(2,i.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,o.createComponentVNode)(2,i.Box,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,o.createComponentVNode)(2,i.Section,{title:"Shuttle Status",buttons:u&&(0,o.createComponentVNode)(2,i.Button,{icon:"pen",onClick:function(){return c("rename_command")},children:"Rename"})||null,children:[(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Engines",children:"idle"===m&&(0,o.createComponentVNode)(2,i.Box,{color:"#676767",bold:!0,children:"IDLE"})||"warmup"===m&&(0,o.createComponentVNode)(2,i.Box,{color:"#336699",children:"SPINNING UP"})||"in_transit"===m&&(0,o.createComponentVNode)(2,i.Box,{color:"#336699",children:"ENGAGED"})||(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:"ERROR"})}),!p&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Location",children:(0,r.toTitleCase)(b)}),!h&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Docking Status",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{selected:"docked"===f,disabled:"undocked"!==f&&"docked"!==f,onClick:function(){return c("dock_command")},children:"Dock"}),(0,o.createComponentVNode)(2,i.Button,{selected:"undocked"===f,disabled:"docked"!==f&&"undocked"!==f,onClick:function(){return c("undock_command")},children:"Undock"})],4),children:(0,o.createComponentVNode)(2,i.Box,{bold:!0,inline:!0,children:l(f,C)})})||null,N&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Cloaking",children:(0,o.createComponentVNode)(2,i.Button,{selected:g,icon:g?"eye":"eye-o",onClick:function(){return c("toggle_cloaked")},children:g?"Enabled":"Disabled"})})||null,V&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Autopilot",children:(0,o.createComponentVNode)(2,i.Button,{selected:s,icon:s?"eye":"eye-o",onClick:function(){return c("toggle_autopilot")},children:s?"Enabled":"Disabled"})})||null],0)||null]}),!p&&(0,o.createComponentVNode)(2,i.Section,{level:2,title:"Available Destinations",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:v.length&&v.map((function(e){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e.name,children:(0,o.createComponentVNode)(2,i.Button,{icon:"rocket",onClick:function(){return c("traverse",{traverse:e.index})},children:e.travel_time})},e.name)}))||(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),_&&(0,o.createComponentVNode)(2,i.Section,{title:"Transit ETA",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Distance from target",children:(0,o.createComponentVNode)(2,i.ProgressBar,{color:"good",minValue:0,maxValue:100,value:y,children:[k,"s"]})})})})||null,Object.keys(x).length&&(0,o.createComponentVNode)(2,i.Section,{title:"Hatch Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:Object.keys(x).map((function(e){var t=x[e];return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:[t.open&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"bad",children:"Open"})||(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"good",children:"Closed"}),"\xa0-\xa0",t.bolted&&(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"good",children:"Bolted"})||(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:"bad",children:"Unbolted"})]},e)}))})})||null,Object.keys(w).length&&(0,o.createComponentVNode)(2,i.Section,{title:"Sensors",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:Object.keys(w).map((function(e){var t=w[e];return-1===t.reading?(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,color:"bad",children:"Unable to get sensor air reading."}):(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e,children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pressure",children:[t.pressure,"kPa"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:[t.temp,"\xb0C"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Oxygen",children:[t.oxygen,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Nitrogen",children:[t.nitrogen,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Carbon Dioxide",children:[t.carbon_dioxide,"%"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Phoron",children:[t.phoron,"%"]}),t.other&&(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Other",children:[t.other,"%"]})||null]})},e)}))})})||null],0)}))};t.ShuttleControl=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.subtemplate);return(0,o.createComponentVNode)(2,c.Window,{width:470,height:"ShuttleControlConsoleWeb"===r?560:370,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:u[r]})})}},76289:function(e,t,n){"use strict";t.__esModule=!0,t.SignalerContent=t.Signaler=void 0;var o=n(58734),r=n(5339),a=n(62188),i=n(71558),c=n(2798);t.Signaler=function(){return(0,o.createComponentVNode)(2,c.Window,{width:280,height:132,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:(0,o.createComponentVNode)(2,l)})})};var l=function(e,t){var n=(0,a.useBackend)(t),c=n.act,l=n.data,d=l.code,s=l.frequency,u=l.minFrequency,m=l.maxFrequency;return(0,o.createComponentVNode)(2,i.Section,{children:[(0,o.createComponentVNode)(2,i.Grid,{children:[(0,o.createComponentVNode)(2,i.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:m/10,value:s/10,format:function(e){return(0,r.toFixed)(e,1)},width:"80px",onDrag:function(e,t){return c("freq",{freq:t})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return c("reset",{reset:"freq"})}})})]}),(0,o.createComponentVNode)(2,i.Grid,{mt:.6,children:[(0,o.createComponentVNode)(2,i.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(e,t){return c("code",{code:t})}})}),(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return c("reset",{reset:"code"})}})})]}),(0,o.createComponentVNode)(2,i.Grid,{mt:.8,children:(0,o.createComponentVNode)(2,i.Grid.Column,{children:(0,o.createComponentVNode)(2,i.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return c("signal")}})})})]})};t.SignalerContent=l},17074:function(e,t,n){"use strict";t.__esModule=!0,t.Sleeper=void 0;var o=n(58734),r=n(5339),a=n(62188),i=n(71558),c=n(2798),l=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],d=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],s={average:[.25,.5],bad:[.5,Infinity]},u=["bad","average","average","good","average","average","bad"];t.Sleeper=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data.hasOccupant?(0,o.createComponentVNode)(2,m):(0,o.createComponentVNode)(2,b));return(0,o.createComponentVNode)(2,c.Window,{width:550,height:760,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{className:"Layout__content--flexColumn",children:r})})};var m=function(e,t){var n=(0,a.useBackend)(t),r=(n.act,n.data),i=(r.occupant,r.dialysis),c=r.stomachpumping;return(0,o.createFragment)([(0,o.createComponentVNode)(2,p),(0,o.createComponentVNode)(2,h),(0,o.createComponentVNode)(2,f,{title:"Dialysis",active:i,actToDo:"togglefilter"}),(0,o.createComponentVNode)(2,f,{title:"Stomach Pump",active:c,actToDo:"togglepump"}),(0,o.createComponentVNode)(2,C)],4)},p=function(e,t){var n=(0,a.useBackend)(t),c=n.act,d=n.data,s=d.occupant,m=d.auto_eject_dead,p=d.stasis;return(0,o.createComponentVNode)(2,i.Section,{title:"Occupant",buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xa0"}),(0,o.createComponentVNode)(2,i.Button,{icon:m?"toggle-on":"toggle-off",selected:m,content:m?"On":"Off",onClick:function(){return c("auto_eject_dead_"+(m?"off":"on"))}}),(0,o.createComponentVNode)(2,i.Button,{icon:"user-slash",content:"Eject",onClick:function(){return c("ejectify")}}),(0,o.createComponentVNode)(2,i.Button,{content:p,onClick:function(){return c("changestasis")}})],4),children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Name",children:s.name}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Health",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:0,max:s.maxHealth,value:s.health/s.maxHealth,ranges:{good:[.5,Infinity],average:[0,.5],bad:[-Infinity,0]},children:(0,r.round)(s.health,0)})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Status",color:l[s.stat][0],children:l[s.stat][1]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Temperature",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:s.maxTemp,value:s.bodyTemperature/s.maxTemp,color:u[s.temperatureSuitability+3],children:[(0,r.round)(s.btCelsius,0),"\xb0C,",(0,r.round)(s.btFaren,0),"\xb0F"]})}),!!s.hasBlood&&(0,o.createFragment)([(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Blood Level",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:s.bloodMax,value:s.bloodLevel/s.bloodMax,ranges:{bad:[-Infinity,.6],average:[.6,.9],good:[.6,Infinity]},children:[s.bloodPercent,"%, ",s.bloodLevel,"cl"]})}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[s.pulse," BPM"]})],4)]})})},h=function(e,t){var n=(0,a.useBackend)(t).data.occupant;return(0,o.createComponentVNode)(2,i.Section,{title:"Damage",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:d.map((function(e,t){return(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:e[0],children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:"100",value:n[e[1]]/100,ranges:s,children:(0,r.round)(n[e[1]],0)},t)},t)}))})})},f=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.isBeakerLoaded,d=c.beakerMaxSpace,s=c.beakerFreeSpace,u=e.active,m=e.actToDo,p=e.title,h=u&&s>0;return(0,o.createComponentVNode)(2,i.Section,{title:p,buttons:(0,o.createFragment)([(0,o.createComponentVNode)(2,i.Button,{disabled:!l||s<=0,selected:h,icon:h?"toggle-on":"toggle-off",content:h?"Active":"Inactive",onClick:function(){return r(m)}}),(0,o.createComponentVNode)(2,i.Button,{disabled:!l,icon:"eject",content:"Eject",onClick:function(){return r("removebeaker")}})],4),children:l?(0,o.createComponentVNode)(2,i.LabeledList,{children:(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Remaining Space",children:(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:d,value:s/d,ranges:{good:[.5,Infinity],average:[.25,.5],bad:[-Infinity,.25]},children:[s,"u"]})})}):(0,o.createComponentVNode)(2,i.Box,{color:"label",children:"No beaker loaded."})})},C=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data,l=c.occupant,d=c.chemicals,s=c.maxchem,u=c.amounts;return(0,o.createComponentVNode)(2,i.Section,{title:"Chemicals",flexGrow:"1",children:d.map((function(e,t){var n,a="";return e.overdosing?(a="bad",n=(0,o.createComponentVNode)(2,i.Box,{color:"bad",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-circle"}),"\xa0 Overdosing!"]})):e.od_warning&&(a="average",n=(0,o.createComponentVNode)(2,i.Box,{color:"average",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"exclamation-triangle"}),"\xa0 Close to overdosing"]})),(0,o.createComponentVNode)(2,i.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,o.createComponentVNode)(2,i.Section,{title:e.title,level:"3",mx:"0",lineHeight:"18px",buttons:n,children:(0,o.createComponentVNode)(2,i.Flex,{align:"flex-start",children:[(0,o.createComponentVNode)(2,i.ProgressBar,{min:"0",max:s,value:e.occ_amount/s,color:a,mr:"0.5rem",children:[e.pretty_amount,"/",s,"u"]}),u.map((function(t,n){return(0,o.createComponentVNode)(2,i.Button,{disabled:!e.injectable||e.occ_amount+t>s||2===l.stat,icon:"syringe",content:t,mb:"0",height:"19px",onClick:function(){return r("chemical",{chemid:e.id,amount:t})}},n)}))]})})},t)}))})},b=function(e,t){var n=(0,a.useBackend)(t),r=n.act,c=n.data.isBeakerLoaded;return(0,o.createComponentVNode)(2,i.Section,{textAlign:"center",flexGrow:"1",children:(0,o.createComponentVNode)(2,i.Flex,{height:"100%",children:(0,o.createComponentVNode)(2,i.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,o.createComponentVNode)(2,i.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,o.createVNode)(1,"br"),"No occupant detected.",c&&(0,o.createComponentVNode)(2,i.Box,{children:(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){return r("removebeaker")}})})||null]})})})}},55454:function(e,t,n){"use strict";t.__esModule=!0,t.SmartVend=void 0;var o=n(58734),r=n(45445),a=n(62188),i=n(71558),c=n(2798);t.SmartVend=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.config,s=n.data;return(0,o.createComponentVNode)(2,c.Window,{width:440,height:550,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,i.Section,{title:"Storage",children:[s.secure&&(0,o.createComponentVNode)(2,i.NoticeBox,{danger:-1===s.locked,info:-1!==s.locked,children:-1===s.locked?(0,o.createComponentVNode)(2,i.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,o.createComponentVNode)(2,i.Box,{children:"Secure Access: Please have your identification ready."})})||null,0===s.contents.length&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:["Unfortunately, this ",d.title," is empty."]})||(0,o.createComponentVNode)(2,i.Table,{children:[(0,o.createComponentVNode)(2,i.Table.Row,{header:!0,children:[(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:"Item"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,r.map)((function(e,t){return(0,o.createComponentVNode)(2,i.Table.Row,{children:[(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:e.name}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,textAlign:"center",children:[e.amount," in stock"]}),(0,o.createComponentVNode)(2,i.Table.Cell,{collapsing:!0,children:[(0,o.createComponentVNode)(2,i.Button,{content:"1",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:1})}}),(0,o.createComponentVNode)(2,i.Button,{content:"5",disabled:e.amount<5,onClick:function(){return l("Release",{index:e.index,amount:5})}}),(0,o.createComponentVNode)(2,i.Button,{content:"Custom",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index})}}),(0,o.createComponentVNode)(2,i.Button,{content:"All",disabled:e.amount<1,onClick:function(){return l("Release",{index:e.index,amount:e.amount})}})]})]},t)}))(s.contents)]})]})})})}},65662:function(e,t,n){"use strict";t.__esModule=!0,t.Smes=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(43820),c=n(2798),l=n(5339),d=1e3;t.Smes=function(e,t){var n=(0,r.useBackend)(t),s=n.act,u=n.data,m=u.capacityPercent,p=u.capacity,h=u.charge,f=u.inputAttempt,C=u.inputting,b=u.inputLevel,N=u.inputLevelMax,g=u.inputAvailable,V=u.outputAttempt,v=u.outputting,_=u.outputLevel,y=u.outputLevelMax,k=u.outputUsed,x=(m>=100?"good":C&&"average")||"bad",w=(v?"good":h>0&&"average")||"bad";return(0,o.createComponentVNode)(2,c.Window,{width:340,height:350,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Stored Energy",children:(0,o.createComponentVNode)(2,a.ProgressBar,{value:.01*m,ranges:{good:[.5,Infinity],average:[.15,.5],bad:[-Infinity,.15]},children:[(0,l.round)(h/6e4,1)," kWh /"," ",(0,l.round)(p/6e4)," kWh (",m,"%)"]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Input",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Charge Mode",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:f?"sync-alt":"times",selected:f,onClick:function(){return s("tryinput")},children:f?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.Box,{color:x,children:(m>=100?"Fully Charged":C&&"Charging")||"Not Charging"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Input",children:(0,o.createComponentVNode)(2,a.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:0===b,onClick:function(){return s("input",{target:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:0===b,onClick:function(){return s("input",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,a.Slider,{value:b/d,fillValue:g/d,minValue:0,maxValue:N/d,step:5,stepPixelSize:4,format:function(e){return(0,i.formatPower)(e*d,1)},onDrag:function(e,t){return s("input",{target:t*d})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:b===N,onClick:function(){return s("input",{adjust:1e4})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:b===N,onClick:function(){return s("input",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Available",children:(0,i.formatPower)(g)})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Output",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Output Mode",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:V?"power-off":"times",selected:V,onClick:function(){return s("tryoutput")},children:V?"On":"Off"}),children:(0,o.createComponentVNode)(2,a.Box,{color:w,children:v?"Sending":h>0?"Not Sending":"No Charge"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Target Output",children:(0,o.createComponentVNode)(2,a.Flex,{inline:!0,width:"100%",children:[(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"fast-backward",disabled:0===_,onClick:function(){return s("output",{target:"min"})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"backward",disabled:0===_,onClick:function(){return s("output",{adjust:-1e4})}})]}),(0,o.createComponentVNode)(2,a.Flex.Item,{grow:1,mx:1,children:(0,o.createComponentVNode)(2,a.Slider,{value:_/d,minValue:0,maxValue:y/d,step:5,stepPixelSize:4,format:function(e){return(0,i.formatPower)(e*d,1)},onDrag:function(e,t){return s("output",{target:t*d})}})}),(0,o.createComponentVNode)(2,a.Flex.Item,{children:[(0,o.createComponentVNode)(2,a.Button,{icon:"forward",disabled:_===y,onClick:function(){return s("output",{adjust:1e4})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"fast-forward",disabled:_===y,onClick:function(){return s("output",{target:"max"})}})]})]})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Outputting",children:(0,i.formatPower)(k)})]})})]})})}},91851:function(e,t,n){"use strict";t.__esModule=!0,t.SolarControl=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798),c=n(5339);t.SolarControl=function(e,t){var n=(0,r.useBackend)(t),l=n.act,d=n.data,s=d.generated,u=d.generated_ratio,m=d.sun_angle,p=d.array_angle,h=d.rotation_rate,f=d.max_rotation_rate,C=d.tracking_state,b=d.connected_panels,N=d.connected_tracker;return(0,o.createComponentVNode)(2,i.Window,{width:380,height:230,children:(0,o.createComponentVNode)(2,i.Window.Content,{children:[(0,o.createComponentVNode)(2,a.Section,{title:"Status",buttons:(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){return l("refresh")}}),children:(0,o.createComponentVNode)(2,a.Grid,{children:[(0,o.createComponentVNode)(2,a.Grid.Column,{children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Solar tracker",color:N?"good":"bad",children:N?"OK":"N/A"}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Solar panels",color:b>0?"good":"bad",children:b})]})}),(0,o.createComponentVNode)(2,a.Grid.Column,{size:1.5,children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Power output",children:(0,o.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[.66,Infinity],average:[.33,.66],bad:[-Infinity,.33]},minValue:0,maxValue:1,value:u,children:s+" W"})}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Star orientation",children:[m,"\xb0"]})]})})]})}),(0,o.createComponentVNode)(2,a.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,a.LabeledList,{children:[(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Tracking",children:[(0,o.createComponentVNode)(2,a.Button,{icon:"times",content:"Off",selected:0===C,onClick:function(){return l("tracking",{mode:0})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"clock-o",content:"Timed",selected:1===C,onClick:function(){return l("tracking",{mode:1})}}),(0,o.createComponentVNode)(2,a.Button,{icon:"sync",content:"Auto",selected:2===C,disabled:!N,onClick:function(){return l("tracking",{mode:2})}})]}),(0,o.createComponentVNode)(2,a.LabeledList.Item,{label:"Azimuth",children:[(0===C||1===C)&&(0,o.createComponentVNode)(2,a.NumberInput,{width:"52px",unit:"\xb0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:p,format:function(e){var t=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,c.round)(e))+t},onDrag:function(e,t){return l("azimuth",{value:t})}}),1===C&&(0,o.createComponentVNode)(2,a.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-f-.01,maxValue:f+.01,value:h,format:function(e){var t=Math.sign(e)>0?" (CW)":" (CCW)";return Math.abs((0,c.round)(e))+t},onDrag:function(e,t){return l("azimuth_rate",{value:t})}}),2===C&&(0,o.createComponentVNode)(2,a.Box,{inline:!0,color:"label",mt:"3px",children:[p+"\xb0"," (auto)"]})]})]})})]})})}},99621:function(e,t,n){"use strict";t.__esModule=!0,t.SpaceHeater=void 0;var o=n(58734),r=n(78419),a=n(62188),i=n(71558),c=n(2798);t.SpaceHeater=function(e,t){var n=(0,a.useBackend)(t),l=n.act,d=n.data,s=d.temp,u=d.minTemp,m=d.maxTemp,p=d.cell,h=d.power;return(0,o.createComponentVNode)(2,c.Window,{width:300,height:250,resizable:!0,children:(0,o.createComponentVNode)(2,c.Window.Content,{children:[(0,o.createComponentVNode)(2,i.Section,{title:"Status",children:(0,o.createComponentVNode)(2,i.LabeledList,{children:[(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Target Temperature",children:[s," K (",s-r.T0C,"\xb0 C)"]}),(0,o.createComponentVNode)(2,i.LabeledList.Item,{label:"Current Charge",children:[h,"% ",!p&&"(No Cell Inserted)"]})]})}),(0,o.createComponentVNode)(2,i.Section,{title:"Controls",children:(0,o.createComponentVNode)(2,i.LabeledControls,{children:[(0,o.createComponentVNode)(2,i.LabeledControls.Item,{label:"Thermostat",children:(0,o.createComponentVNode)(2,i.Knob,{animated:!0,value:s-r.T0C,minValue:u-r.T0C,maxValue:m-r.T0C,unit:"C",onChange:function(e,t){return l("temp",{newtemp:t+r.T0C})}})}),(0,o.createComponentVNode)(2,i.LabeledControls.Item,{label:"Cell",children:p?(0,o.createComponentVNode)(2,i.Button,{icon:"eject",content:"Eject Cell",onClick:function(){return l("cellremove")}}):(0,o.createComponentVNode)(2,i.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){return l("cellinstall")}})})]})})]})})}},49962:function(e,t,n){"use strict";t.__esModule=!0,t.Stack=void 0;var o=n(58734),r=n(62188),a=n(71558),i=n(2798);t.Stack=function(e,t){var n=(0,r.useBackend)(t),l=(n.act,n.data),d=l.amount,s=l.recipes;return(0,o.createComponentVNode)(2,i.Window,{width:400,height:600,resizable:!0,children:(0,o.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,o.createComponentVNode)(2,a.Section,{title:"Amount: "+d,children:(0,o.createComponentVNode)(2,c,{recipes:s})})})})};var c=function s(e,t){var n=(0,r.useBackend)(t),i=(n.act,n.data,e.recipes);return Object.keys(i).sort().map((function(e){var t=i[e];return t.ref===undefined?(0,o.createComponentVNode)(2,a.Collapsible,{ml:1,mb:-.7,color:"label",title:e,children:(0,o.createComponentVNode)(2,a.Box,{ml:1,children:(0,o.createComponentVNode)(2,s,{recipes:t})})}):(0,o.createComponentVNode)(2,d,{title:e,recipe:t})}))},l=function(e,t){for(var n=(0,r.useBackend)(t),i=n.act,c=(n.data,e.recipe),l=e.maxMultiplier,d=Math.min(l,Math.floor(c.max_res_amount/c.res_amount)),s=[5,10,25],u=[],m=function(){var e=h[p];d>=e&&u.push((0,o.createComponentVNode)(2,a.Button,{content:e*c.res_amount+"x",onClick:function(){return i("make",{ref:c.ref,multiplier:e})}}))},p=0,h=s;p
").map((function(e){return(0,o.createComponentVNode)(2,i.Box,{children:e},e)}))})]})})||d.map((function(e){return(0,o.createComponentVNode)(2,i.Button,{icon:"eye",fluid:!0,content:e.name,onClick:function(){return r("view_exploits",{id:e.id})}},e.id)}))})},u=function(e,t){var n,l,d=e.currencyAmount,s=void 0===d?0:d,u=e.currencySymbol,p=void 0===u?"\u20ae":u,h=(0,a.useBackend)(t),f=h.act,C=h.data,b=C.compactMode,N=C.lockable,g=C.categories,V=void 0===g?[]:g,v=(0,a.useLocalState)(t,"searchText",""),_=v[0],y=v[1],k=(0,a.useLocalState)(t,"category",null==(n=V[0])?void 0:n.name),x=k[0],w=k[1],B=(0,r.createSearch)(_,(function(e){return e.name+e.desc})),L=_.length>0&&V.flatMap((function(e){return e.items||[]})).filter(B).filter((function(e,t){return t<25}))||(null==(l=V.find((function(e){return e.name===x})))?void 0:l.items)||[];return(0,o.createComponentVNode)(2,i.Section,{title:(0,o.createComponentVNode)(2,i.Box,{inline:!0,color:s>0?"good":"bad",children:[(0,c.formatMoney)(s)," ",p]}),buttons:(0,o.createFragment)([(0,o.createTextVNode)("Search"),(0,o.createComponentVNode)(2,i.Input,{autoFocus:!0,value:_,onInput:function(e,t){return y(t)},mx:1}),(0,o.createComponentVNode)(2,i.Button,{icon:b?"list":"info",content:b?"Compact":"Detailed",onClick:function(){return f("compact_toggle")}}),!!N&&(0,o.createComponentVNode)(2,i.Button,{icon:"lock",content:"Lock",onClick:function(){return f("lock")}})],0),children:(0,o.createComponentVNode)(2,i.Flex,{children:[0===_.length&&(0,o.createComponentVNode)(2,i.Flex.Item,{children:(0,o.createComponentVNode)(2,i.Tabs,{vertical:!0,children:V.map((function(e){var t;return(0,o.createComponentVNode)(2,i.Tabs.Tab,{selected:e.name===x,onClick:function(){return w(e.name)},children:[e.name," (",(null==(t=e.items)?void 0:t.length)||0,")"]},e.name)}))})}),(0,o.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:[0===L.length&&(0,o.createComponentVNode)(2,i.NoticeBox,{children:0===_.length?"No items in this category.":"No results found."}),(0,o.createComponentVNode)(2,m,{compactMode:_.length>0||b,currencyAmount:s,currencySymbol:p,items:L})]})]})})};t.GenericUplink=u;var m=function(e,t){var n=e.compactMode,l=e.currencyAmount,d=e.currencySymbol,s=(0,a.useBackend)(t).act,u=(0,a.useLocalState)(t,"hoveredItem",{}),m=u[0],p=u[1],h=m&&m.cost||0,f=e.items.map((function(e){var t=m&&m.name!==e.name,n=l-h',$e+='
",$e+='
"+function(e){var t=[];return null==e||e.forEach((function(e){t.push(''+e+"")})),0===t.length&&t.push("No Addons Set"),t}(m)+"
",$e+="== Descriptions ==
",$e+="Vore Verb:
"+a+"
",$e+="Release Verb:
"+i+"
",$e+='Description:
"'+o+'"
',$e+='Absorbed Description:
"'+r+'"
',$e+="
",$e+="== Messages ==
",$e+='
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="= Idle Messages =
Idle Messages (Hold):
"})),$e+="
",$e+="Idle Messages (Hold Absorbed):
"})),$e+="
",$e+="Idle Messages (Digest):
"})),$e+="
",$e+="Idle Messages (Absorb):
"})),$e+="
",$e+="Idle Messages (Unabsorb):
"})),$e+="
",$e+="Idle Messages (Drain):
"})),$e+="
",$e+="Idle Messages (Heal):
"})),$e+="
",$e+="Idle Messages (Size Steal):
"})),$e+="
",$e+="Idle Messages (Shrink):
"})),$e+="
",$e+="Idle Messages (Grow):
"})),$e+="
",$e+="Idle Messages (Encase In Egg):
"})),$e+="
",$e+="
",$e+="
",$e+='',$e+='
",$e+='',$e+='
",$e+="',$e+='
",$e+='',$e+='
",$e+="',$e+='
",$e+='',$e+='
",$e+="Belly Fullscreens Preview and Coloring",$e+='',$e+='
",$e+="Vore FX",$e+='',$e+='
",$e+="',$e+='
",$e+='',$e+='
",$e+="
",$e+="Auto-Transfer Options ("+(Be?'Enabled':'Disabled')+")",$e+='',$e+='
",$e+="',$e+='
",$e+='',$e+='
",$e+="',$e+='
",$e+='
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="
"})),$e+="Bellies of '+l+'