=450?"Overcharged":h>=250?"Good Charge":"Low Charge":h>=250?"NIF Power Requirement met.":h>=150?"Fluctuations in available power.":"Power failure imminent."},i=function(h){var p=(0,a.useBackend)(),v=p.act,b=p.config,g=p.data,N=g.nif_percent,B=g.nif_stat,S=g.last_notification,L=g.nutrition,I=g.isSynthetic,w=g.modules,T=h.setViewing;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Condition",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[u(B,N)," (",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N}),"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Power",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:L,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:d(L,I)})})]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:w.map(function(E){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:E.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){function A(){return v("uninstall",{module:E.ref})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",onClick:function(){function A(){return T(E)}return A}(),tooltip:"View Information",tooltipPosition:"left"})],4),children:E.activates&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:E.active,content:E.stat_text,onClick:function(){function A(){return v("toggle_module",{module:E.ref})}return A}()})||(0,e.createComponentVNode)(2,t.Box,{children:E.stat_text})},E.ref)})})})]})},c=function(h){var p=(0,a.useBackend)(),v=p.act,b=p.data,g=b.theme;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"100%",placeholder:"Default",selected:g,options:s,onSelected:function(){function N(B){return v("setTheme",{theme:B})}return N}()})})})}},87868:function(x,r,n){"use strict";r.__esModule=!0,r.NTNetRelay=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(77402),V=r.NTNetRelay=function(){function C(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.dos_crashed,c=d.enabled,l=d.dos_overload,h=d.dos_capacity,p=(0,e.createComponentVNode)(2,y);return i&&(p=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,o.Window,{width:i?700:500,height:i?600:300,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:p})})}return C}(),y=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.dos_crashed,c=d.enabled,l=d.dos_overload,h=d.dos_capacity;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:c,content:"Relay "+(c?"On":"Off"),onClick:function(){function p(){return u("toggle")}return p}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network Buffer Status",children:[l," / ",h," GQ"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){function p(){return u("purge")}return p}()})})]})})},k=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data;return(0,e.createComponentVNode)(2,f.FullscreenNotice,{title:"ERROR",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.createVNode)(1,"h2",null,"NETWORK BUFFERS OVERLOADED",16),(0,e.createVNode)(1,"h3",null,"Overload Recovery Mode",16),(0,e.createVNode)(1,"i",null,"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue.",16),(0,e.createVNode)(1,"h3",null,"ADMINISTRATIVE OVERRIDE",16),(0,e.createVNode)(1,"b",null," CAUTION - Data loss may occur ",16)]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){function i(){return u("restart")}return i}()})})]})}},93453:function(x,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=n(43396),y="Main Menu",k="New Channel",C="View List",s="New Story",m="Print",u="New Wanted",d="View Wanted",i="View Selected Channel",c=r.Newscaster=function(){function I(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.screen,R=A.user;return(0,e.createComponentVNode)(2,f.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.TemporaryNotice,{decode:!0}),(0,e.createComponentVNode)(2,l)]})})}return I}(),l=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.user,R=(0,t.useSharedState)("screen",y),O=R[0],F=R[1],D=L[O];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,D,{setScreen:F})})},h=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.securityCaster,R=A.wanted_issue,O=w.setScreen;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Main Menu",children:[R&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",onClick:function(){function F(){return O(d)}return F}(),color:"bad",children:"Read WANTED Issue"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",onClick:function(){function F(){return O(C)}return F}(),children:"View Feed Channels"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function F(){return O(k)}return F}(),children:"Create Feed Channel"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function F(){return O(s)}return F}(),children:"Create Feed Message"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"print",onClick:function(){function F(){return O(m)}return F}(),children:"Print Newspaper"})]}),!!M&&(0,e.createComponentVNode)(2,o.Section,{title:"Feed Security Functions",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"plus",onClick:function(){function F(){return O(u)}return F}(),children:'Manage "Wanted" Issue'})})],0)},p=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.channel_name,R=A.c_locked,O=A.user,F=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Creating new Feed Channel",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function D(){return F(y)}return D}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Name",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(M),onInput:function(){function D(j,_){return E("set_channel_name",{val:_})}return D}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Author",color:"good",children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Feeds",children:(0,e.createComponentVNode)(2,o.Button,{icon:R?"lock":"lock-open",selected:!R,onClick:function(){function D(){return E("set_channel_lock")}return D}(),children:R?"No":"Yes"})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){function D(){return E("submit_new_channel")}return D}(),children:"Submit Channel"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function D(){return F(y)}return D}(),children:"Cancel"})]})},v=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.channels,R=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Station Feed Channels",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function O(){return R(y)}return O}(),children:"Back"}),children:M.map(function(O){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eye",color:O.admin?"good":O.censored?"bad":"",onClick:function(){function F(){E("show_channel",{show_channel:O.ref}),R(i)}return F}(),children:(0,a.decodeHtmlEntities)(O.name)},O.name)})})},b=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.channel_name,R=A.user,O=A.title,F=A.msg,D=A.photo_data,j=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Creating new Feed Message...",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function _(){return j(y)}return _}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Receiving Channel",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,onClick:function(){function _(){return E("set_channel_receiving")}return _}(),children:M||"Unset"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message Author",color:"good",children:R}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Section,{width:"99%",inline:!0,children:O||"(no title yet)"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{verticalAlign:"top",onClick:function(){function _(){return E("set_new_title")}return _}(),icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Section,{width:"99%",inline:!0,children:F||"(no message yet)"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{verticalAlign:"top",onClick:function(){function _(){return E("set_new_message")}return _}(),icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Attach Photo",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"image",onClick:function(){function _(){return E("set_attachment")}return _}(),children:D?"Photo Attached":"No Photo"})})]}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"good",icon:"plus",onClick:function(){function _(){return E("submit_new_message")}return _}(),children:"Submit Message"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function _(){return j(y)}return _}(),children:"Cancel"})]})},g=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.total_num,R=A.active_num,O=A.message_num,F=A.paper_remaining,D=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Printing",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function j(){return D(y)}return j}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",mb:1,children:["Newscaster currently serves a total of ",M," Feed channels,"," ",R," of which are active, and a total of ",O," Feed stories."]}),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Liquid Paper remaining",children:[F*100," cm\xB3"]})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){function j(){return E("print_paper")}return j}(),children:"Print Paper"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function j(){return D(y)}return j}(),children:"Cancel"})]})},N=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.channel_name,R=A.msg,O=A.photo_data,F=A.user,D=A.wanted_issue,j=w.setScreen;return(0,e.createComponentVNode)(2,o.Section,{title:"Wanted Issue Handler",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function _(){return j(y)}return _}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[!!D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Criminal Name",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(M),onInput:function(){function _(z,H){return E("set_channel_name",{val:H})}return _}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,value:(0,a.decodeHtmlEntities)(R),onInput:function(){function _(z,H){return E("set_wanted_desc",{val:H})}return _}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Attach Photo",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"image",onClick:function(){function _(){return E("set_attachment")}return _}(),children:O?"Photo Attached":"No Photo"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prosecutor",color:"good",children:F})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){function _(){return E("submit_wanted")}return _}(),children:"Submit Wanted Issue"}),!!D&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"average",icon:"minus",onClick:function(){function _(){return E("cancel_wanted")}return _}(),children:"Take Down Issue"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"bad",icon:"undo",onClick:function(){function _(){return j(y)}return _}(),children:"Cancel"})]})},B=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.wanted_issue,R=w.setScreen;return M?(0,e.createComponentVNode)(2,o.Section,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function O(){return R(y)}return O}(),children:"Back"}),children:(0,e.createComponentVNode)(2,o.Box,{color:"white",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Submitted by",color:"good",children:(0,a.decodeHtmlEntities)(M.author)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Criminal",children:(0,a.decodeHtmlEntities)(M.criminal)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:(0,a.decodeHtmlEntities)(M.desc)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:M.img&&(0,e.createVNode)(1,"img",null,null,1,{src:M.img})||"None"})]})})}):(0,e.createComponentVNode)(2,o.Section,{title:"No Outstanding Wanted Issues",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function O(){return R(y)}return O}(),children:"Back"}),children:"There are no wanted issues currently outstanding."})},S=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.viewing_channel,R=A.securityCaster,O=A.company,F=w.setScreen;return M?(0,e.createComponentVNode)(2,o.Section,{title:(0,a.decodeHtmlEntities)(M.name),buttons:(0,e.createFragment)([!!R&&(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){function D(){return E("toggle_d_notice",{ref:M.ref})}return D}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function D(){return F(C)}return D}(),children:"Back"})],0),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel Created By",children:R&&(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,a.decodeHtmlEntities)(M.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){function D(){return E("censor_channel_author",{ref:M.ref})}return D}()})||(0,e.createComponentVNode)(2,o.Box,{children:(0,a.decodeHtmlEntities)(M.author)})})}),!!M.censored&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",O," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!M.messages.length&&M.messages.map(function(D){return(0,e.createComponentVNode)(2,o.Section,{children:["- ",(0,a.decodeHtmlEntities)(D.body),!!D.img&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+D.img}),(0,a.decodeHtmlEntities)(D.caption)||null]}),(0,e.createComponentVNode)(2,o.Box,{color:"grey",children:["[Story by ",(0,a.decodeHtmlEntities)(D.author)," -"," ",D.timestamp,"]"]}),!!R&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){function j(){return E("censor_channel_story_body",{ref:D.ref})}return j}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){function j(){return E("censor_channel_story_author",{ref:D.ref})}return j}()})],4)]},D.ref)})||!M.censored&&(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No feed messages found in channel."})]}):(0,e.createComponentVNode)(2,o.Section,{title:"Channel Not Found",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function D(){return F(C)}return D}(),children:"Back"}),children:"The channel you were looking for no longer exists."})},L={};L[y]=h,L[k]=p,L[C]=v,L[s]=b,L[m]=g,L[u]=N,L[d]=B,L[i]=S},40779:function(x,r,n){"use strict";r.__esModule=!0,r.NoticeBoard=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NoticeBoard=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.notices;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:m.length?(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(u,d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[u.isphoto&&(0,e.createComponentVNode)(2,t.Button,{icon:"image",content:"Look",onClick:function(){function i(){return C("look",{ref:u.ref})}return i}()})||u.ispaper&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"sticky-note",content:"Read",onClick:function(){function i(){return C("read",{ref:u.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Write",onClick:function(){function i(){return C("write",{ref:u.ref})}return i}()})],4)||"Unknown Entity",(0,e.createComponentVNode)(2,t.Button,{icon:"minus-circle",content:"Remove",onClick:function(){function i(){return C("remove",{ref:u.ref})}return i}()})]},d)})}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No notices posted here."})})})})}return V}()},6374:function(x,r,n){"use strict";r.__esModule=!0,r.NtosAccessDecrypter=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(99728),f=n(35239),V=r.NtosAccessDecrypter=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.message,d=m.running,i=m.rate,c=m.factor,l=m.regions,h=function(){function v(b){for(var g="";g.lengthc?g+="0":g+="1";return g}return v}(),p=45;return(0,e.createComponentVNode)(2,t.NtosWindow,{width:600,height:600,theme:"syndicate",children:(0,e.createComponentVNode)(2,t.NtosWindow.Content,{children:u&&(0,e.createComponentVNode)(2,f.NoticeBox,{children:u})||d&&(0,e.createComponentVNode)(2,f.Section,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",i," PHash/s",(0,e.createComponentVNode)(2,f.Box,{children:h(p)}),(0,e.createComponentVNode)(2,f.Box,{children:h(p)}),(0,e.createComponentVNode)(2,f.Box,{children:h(p)}),(0,e.createComponentVNode)(2,f.Box,{children:h(p)}),(0,e.createComponentVNode)(2,f.Box,{children:h(p)}),(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"ban",onClick:function(){function v(){return s("PRG_reset")}return v}(),children:"Abort"})]})||(0,e.createComponentVNode)(2,f.Section,{title:"Pick access code to decrypt",children:l.length&&(0,e.createComponentVNode)(2,o.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.createComponentVNode)(2,f.Box,{children:"Please insert ID card."})})})})}return y}()},36101:function(x,r,n){"use strict";r.__esModule=!0,r.NtosArcade=void 0;var e=n(58734),a=n(94779),t=n(54777),o=n(35239),f=n(47007),V=r.NtosArcade=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data;return(0,e.createComponentVNode)(2,f.NtosWindow,{width:450,height:350,children:(0,e.createComponentVNode)(2,f.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:2,children:[(0,e.createComponentVNode)(2,o.Box,{m:1}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Player Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:m.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[m.PlayerHitpoints,"HP"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Player Magic",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:m.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[m.PlayerMP,"MP"]})})]}),(0,e.createComponentVNode)(2,o.Box,{my:1,mx:4}),(0,e.createComponentVNode)(2,o.Section,{backgroundColor:m.PauseState===1?"#1b3622":"#471915",children:m.Status})]}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{value:m.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:m.Hitpoints}),"HP"]}),(0,e.createComponentVNode)(2,o.Box,{m:1}),(0,e.createComponentVNode)(2,o.Section,{inline:!0,width:"156px",textAlign:"center",children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,a.resolveAsset)(m.BossID)})})]})]}),(0,e.createComponentVNode)(2,o.Box,{my:1,mx:4}),(0,e.createComponentVNode)(2,o.Button,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){function u(){return s("Attack")}return u}(),content:"Attack!"}),(0,e.createComponentVNode)(2,o.Button,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){function u(){return s("Heal")}return u}(),content:"Heal!"}),(0,e.createComponentVNode)(2,o.Button,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){function u(){return s("Recharge_Power")}return u}(),content:"Recharge!"})]}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:m.GameActive===1,onClick:function(){function u(){return s("Start_Game")}return u}(),content:"Begin Game"}),(0,e.createComponentVNode)(2,o.Button,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:m.GameActive===1,onClick:function(){function u(){return s("Dispense_Tickets")}return u}(),content:"Claim Tickets"})]}),(0,e.createComponentVNode)(2,o.Box,{color:m.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",m.TicketCount]})]})})})}return y}()},69798:function(x,r,n){"use strict";r.__esModule=!0,r.NtosAtmosControl=void 0;var e=n(58734),a=n(47007),t=n(75346),o=r.NtosAtmosControl=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.AtmosControlContent)})})}return f}()},41204:function(x,r,n){"use strict";r.__esModule=!0,r.selectCameras=r.prevNextCamera=r.NtosCameraConsole=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(40946),f=n(54777),V=n(35239),y=n(47007),k=n(16073),C=r.prevNextCamera=function(){function u(d,i){var c,l;if(!i)return[];var h=d.findIndex(function(p){return p.name===i.name});return[(c=d[h-1])==null?void 0:c.name,(l=d[h+1])==null?void 0:l.name]}return u}(),s=r.selectCameras=function(){function u(d,i,c){i===void 0&&(i=""),c===void 0&&(c="");var l=(0,o.createSearch)(i,function(h){return h.name});return(0,t.flow)([(0,a.filter)(function(h){return h==null?void 0:h.name}),i&&(0,a.filter)(l),c&&(0,a.filter)(function(h){return h.networks.includes(c)}),(0,a.sortBy)(function(h){return h.name})])(d)}return u}(),m=r.NtosCameraConsole=function(){function u(d){var i=(0,f.useBackend)(),c=i.act,l=i.data,h=l.mapRef,p=l.activeCamera,v=s(l.cameras),b=C(v,p),g=b[0],N=b[1];return(0,e.createComponentVNode)(2,y.NtosWindow,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,y.NtosWindow.Content,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.CameraConsoleContent),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),p&&p.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createTextVNode)("SEL:"),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",disabled:!g,onClick:function(){function B(){return c("switch_camera",{name:g})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",disabled:!N,onClick:function(){function B(){return c("switch_camera",{name:N})}return B}()}),(0,e.createTextVNode)("| PAN:"),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-left",onClick:function(){function B(){return c("pan",{dir:8})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-up",onClick:function(){function B(){return c("pan",{dir:1})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-right",onClick:function(){function B(){return c("pan",{dir:4})}return B}()}),(0,e.createComponentVNode)(2,V.Button,{icon:"chevron-down",onClick:function(){function B(){return c("pan",{dir:2})}return B}()})],4),(0,e.createComponentVNode)(2,V.ByondUi,{className:"CameraConsole__map",params:{id:h,type:"map"}})],4)]})})}return u}()},18886:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCommunicationsConsole=void 0;var e=n(58734),a=n(47007),t=n(77474),o=r.NtosCommunicationsConsole=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.CommunicationsConsoleContent)})})}return f}()},45002:function(x,r,n){"use strict";r.__esModule=!0,r.NtosConfiguration=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosConfiguration=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.PC_device_theme,u=s.power_usage,d=s.battery_exists,i=s.battery,c=i===void 0?{}:i,l=s.disk_size,h=s.disk_used,p=s.hardware,v=p===void 0?[]:p;return(0,e.createComponentVNode)(2,o.NtosWindow,{theme:m,width:520,height:630,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Supply",buttons:(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",u,"W"]}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Battery Status",color:!d&&"average",children:d?(0,e.createComponentVNode)(2,t.ProgressBar,{value:c.charge,minValue:0,maxValue:c.max,ranges:{good:[c.max/2,1/0],average:[c.max/4,c.max/2],bad:[-1/0,c.max/4]},children:[c.charge," / ",c.max]}):"Not Available"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"File System",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h,minValue:0,maxValue:l,color:"good",children:[h," GQ / ",l," GQ"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hardware Components",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Section,{title:b.name,level:2,buttons:(0,e.createFragment)([!b.critical&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Enabled",checked:b.enabled,mr:1,onClick:function(){function g(){return C("PC_toggle_component",{name:b.name})}return g}()}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",b.powerusage,"W"]})],0),children:b.desc},b.name)})})]})})}return V}()},71095:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCrewManifest=void 0;var e=n(58734),a=n(47007),t=n(82034),o=r.NtosCrewManifest=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.CrewManifestContent)})})}return f}()},9489:function(x,r,n){"use strict";r.__esModule=!0,r.NtosCrewMonitor=void 0;var e=n(58734),a=n(47007),t=n(76855),o=r.NtosCrewMonitor=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:800,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.CrewMonitorContent)})})}return f}()},12407:function(x,r,n){"use strict";r.__esModule=!0,r.NtosDigitalWarrant=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45445),V=r.NtosDigitalWarrant=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.warrantname,l=i.warrantcharges,h=i.warrantauth,p=i.type,v=i.allwarrants,b=(0,e.createComponentVNode)(2,y);return h&&(b=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:500,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:b})})}return s}(),y=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.allwarrants;return(0,e.createComponentVNode)(2,t.Section,{title:"Warrants",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",fluid:!0,onClick:function(){function l(){return d("addwarrant")}return l}(),children:"Create New Warrant"}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Arrest Warrants",children:(0,e.createComponentVNode)(2,k,{type:"arrest"})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Search Warrants",children:(0,e.createComponentVNode)(2,k,{type:"search"})})]})},k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=m.type,l=i.allwarrants,h=(0,f.filter)(function(p){return p.arrestsearch===c})(l);return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:c==="arrest"?"Name":"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:c==="arrest"?"Charges":"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Edit"})]}),h.length&&h.map(function(p){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.warrantname}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.charges}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p.auth}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function v(){return d("editwarrant",{id:p.id})}return v}()})})]},p.id)})||(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{colspan:"3",color:"bad",children:["No ",c," warrants found."]})})]})},C=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.warrantname,l=i.warrantcharges,h=i.warrantauth,p=i.type,v=p==="arrest",b=p==="arrest"?"Name":"Location",g=p==="arrest"?"Charges":"Reason";return(0,e.createComponentVNode)(2,t.Section,{title:v?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"save",onClick:function(){function N(){return d("savewarrant")}return N}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",onClick:function(){function N(){return d("deletewarrant")}return N}(),children:"Delete"}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function N(){return d("back")}return N}(),children:"Back"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,buttons:v&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"search",onClick:function(){function N(){return d("editwarrantname")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function N(){return d("editwarrantnamecustom")}return N}()})],4)||(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function N(){return d("editwarrantnamecustom")}return N}()}),children:c}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function N(){return d("editwarrantcharges")}return N}()}),children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorized By",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"balance-scale",onClick:function(){function N(){return d("editwarrantauth")}return N}()}),children:h})]})})}},80509:function(x,r,n){"use strict";r.__esModule=!0,r.NtosEmailAdministration=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(12507),V=r.NtosEmailAdministration=function(){function m(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.error,h=c.cur_title,p=c.current_account,v=(0,e.createComponentVNode)(2,y);return l?v=(0,e.createComponentVNode)(2,k):h?v=(0,e.createComponentVNode)(2,C):p&&(v=(0,e.createComponentVNode)(2,s)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:600,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:v})})}return m}(),y=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"plus",onClick:function(){function h(){return i("newaccount")}return h}(),children:"Create New Account"}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),l.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",onClick:function(){function p(){return i("viewaccount",{viewaccount:h.uid})}return p}(),children:h.login},h.uid)})]})},k=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.error;return(0,e.createComponentVNode)(2,t.Section,{title:"Message",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function h(){return i("back")}return h}(),children:"Back"}),children:l})},C=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,f.NtosEmailClientViewMessage,{administrator:!0})})},s=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.error,h=c.msg_title,p=c.msg_body,v=c.msg_timestamp,b=c.msg_source,g=c.current_account,N=c.cur_suspended,B=c.messages,S=c.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing "+g+" in admin mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function L(){return i("back")}return L}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Status",children:(0,e.createComponentVNode)(2,t.Button,{color:N?"bad":"",icon:"ban",tooltip:(N?"Uns":"S")+"uspend Account?",onClick:function(){function L(){return i("ban")}return L}(),children:N?"Suspended":"Normal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",onClick:function(){function L(){return i("changepass")}return L}(),children:"Change Password"})})]}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Messages",children:B.length&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Source"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Received at"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.source}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function I(){return i("viewmail",{viewmail:L.uid})}return I}(),children:"View"})})]},L.uid)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No messages found in selected account."})})]})}},12507:function(x,r,n){"use strict";r.__esModule=!0,r.NtosEmailClientViewMessage=r.NtosEmailClient=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(5339),V=r.NtosEmailClient=function(){function c(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.PC_device_theme,g=v.error,N=v.downloading,B=v.current_account,S=(0,e.createComponentVNode)(2,i);return g?S=(0,e.createComponentVNode)(2,d,{error:g}):N?S=(0,e.createComponentVNode)(2,y):B&&(S=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:b,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:S})})}return c}(),y=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.down_filename,g=v.down_progress,N=v.down_size,B=v.down_speed;return(0,e.createComponentVNode)(2,t.Section,{title:"Downloading...",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"File",children:[b," (",N," GQ)"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speed",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:B})," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g,maxValue:N,children:[g,"/",N," (",(0,f.round)(g/N*100,1),"%)"]})})]})})},k=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.current_account,g=v.addressbook,N=v.new_message,B=v.cur_title,S=(0,e.createComponentVNode)(2,C);return g?S=(0,e.createComponentVNode)(2,m):N?S=(0,e.createComponentVNode)(2,u):B&&(S=(0,e.createComponentVNode)(2,s)),(0,e.createComponentVNode)(2,t.Section,{title:"Logged in as: "+b,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){function L(){return p("new_message")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){function L(){return p("changepassword")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){function L(){return p("logout")}return L}()})],4),children:S})},C=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.current_account,g=v.folder,N=v.messagecount,B=v.messages;return(0,e.createComponentVNode)(2,t.Section,{level:2,noTopPadding:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Inbox",onClick:function(){function S(){return p("set_folder",{set_folder:"Inbox"})}return S}(),children:"Inbox"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Spam",onClick:function(){function S(){return p("set_folder",{set_folder:"Spam"})}return S}(),children:"Spam"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g==="Deleted",onClick:function(){function S(){return p("set_folder",{set_folder:"Deleted"})}return S}(),children:"Deleted"})]}),N&&(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Source"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Received At"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),B.map(function(S){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:S.source}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:S.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:S.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function L(){return p("view",{view:S.uid})}return L}(),tooltip:"View"}),(0,e.createComponentVNode)(2,t.Button,{icon:"share",onClick:function(){function L(){return p("reply",{reply:S.uid})}return L}(),tooltip:"Reply"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",onClick:function(){function L(){return p("delete",{delete:S.uid})}return L}(),tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["No emails found in ",g,"."]})]})},s=r.NtosEmailClientViewMessage=function(){function c(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=l.administrator,g=v.cur_title,N=v.cur_source,B=v.cur_timestamp,S=v.cur_body,L=v.cur_hasattachment,I=v.cur_attachment_filename,w=v.cur_attachment_size,T=v.cur_uid;return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:b?(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function E(){return p("back")}return E}()}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){function E(){return p("reply",{reply:T})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){function E(){return p("delete",{delete:T})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){function E(){return p("save",{save:T})}return E}()}),L&&(0,e.createComponentVNode)(2,t.Button,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){function E(){return p("downloadattachment")}return E}()})||null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){function E(){return p("cancel",{cancel:T})}return E}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"From",children:N}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"At",children:B}),L&&!b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",color:"average",children:[I," (",w,"GQ)"]})||null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:S}})})})]})})}return c}(),m=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.accounts;return(0,e.createComponentVNode)(2,t.Section,{title:"Address Book",level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function g(){return p("set_recipient",{set_recipient:null})}return g}()}),children:b.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{content:g.login,fluid:!0,onClick:function(){function N(){return p("set_recipient",{set_recipient:g.login})}return N}()},g.login)})})},u=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.current_account,g=v.msg_title,N=v.msg_recipient,B=v.msg_body,S=v.msg_hasattachment,L=v.msg_attachment_filename,I=v.msg_attachment_size;return(0,e.createComponentVNode)(2,t.Section,{title:"New Message",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"share",onClick:function(){function w(){return p("send")}return w}(),children:"Send Message"}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function w(){return p("cancel")}return w}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:g,onInput:function(){function w(T,E){return p("edit_title",{val:E})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:N,onInput:function(){function w(T,E){return p("edit_recipient",{val:E})}return w}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"address-book",onClick:function(){function w(){return p("addressbook")}return w}(),tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachments",buttons:S&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function w(){return p("remove_attachment")}return w}(),children:"Remove Attachment"})||(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function w(){return p("addattachment")}return w}(),children:"Add Attachment"}),children:S&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[L," (",I,"GQ)"]})||null}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",verticalAlign:"top",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Section,{width:"99%",inline:!0,children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:B}})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{verticalAlign:"top",onClick:function(){function w(){return p("edit_body")}return w}(),icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},d=function(l){var h=(0,a.useBackend)(),p=h.act,v=l.error;return(0,e.createComponentVNode)(2,t.Section,{title:"Notification",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Return",onClick:function(){function b(){return p("reset")}return b}()}),children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:v})})},i=function(l){var h=(0,a.useBackend)(),p=h.act,v=h.data,b=v.stored_login,g=v.stored_password;return(0,e.createComponentVNode)(2,t.Section,{title:"Please Log In",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Email address",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:b,onInput:function(){function N(B,S){return p("edit_login",{val:S})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Password",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,value:g,onInput:function(){function N(B,S){return p("edit_password",{val:S})}return N}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",onClick:function(){function N(){return p("login")}return N}(),children:"Log In"})]})}},92316:function(x,r,n){"use strict";r.__esModule=!0,r.NtosFileManager=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosFileManager=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.PC_device_theme,d=m.usbconnected,i=m.filename,c=m.filedata,l=m.error,h=m.files,p=h===void 0?[]:h,v=m.usbfiles,b=v===void 0?[]:v;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:u,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[i&&(0,e.createComponentVNode)(2,t.Section,{title:"Viewing File "+i,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"Edit",onClick:function(){function g(){return s("PRG_edit")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",onClick:function(){function g(){return s("PRG_printfile")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Close",onClick:function(){function g(){return s("PRG_closefile")}return g}()})],4),children:c&&(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:c}})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,V,{files:p,usbconnected:d,onUpload:function(){function g(N){return s("PRG_copytousb",{uid:N})}return g}(),onDelete:function(){function g(N){return s("PRG_deletefile",{uid:N})}return g}(),onOpen:function(){function g(N){return s("PRG_openfile",{uid:N})}return g}(),onRename:function(){function g(N,B){return s("PRG_rename",{uid:N,new_name:B})}return g}(),onDuplicate:function(){function g(N){return s("PRG_clone",{uid:N})}return g}()})}),d&&(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",children:(0,e.createComponentVNode)(2,V,{usbmode:!0,files:b,usbconnected:d,onUpload:function(){function g(N){return s("PRG_copyfromusb",{uid:N})}return g}(),onDelete:function(){function g(N){return s("PRG_deletefile",{uid:N})}return g}(),onOpen:function(){function g(N){return s("PRG_openfile",{uid:N})}return g}(),onRename:function(){function g(N,B){return s("PRG_rename",{uid:N,new_name:B})}return g}(),onDuplicate:function(){function g(N){return s("PRG_clone",{uid:N})}return g}()})})||null,(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function g(){return s("PRG_newtextfile")}return g}(),children:"New Text File"})})],0),l&&(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{bottom:"0",left:"0",icon:"ban",onClick:function(){function g(){return s("PRG_clearerror")}return g}()})})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:!0,children:l})})]})]})})}return y}(),V=function(k){var C=k.files,s=C===void 0?[]:C,m=k.usbconnected,u=k.usbmode,d=k.onUpload,i=k.onDelete,c=k.onRename,l=k.onOpen;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"File"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:"Size"})]}),s.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.undeletable?h.name:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Input,{width:"80%",content:h.name,currentValue:h.name,tooltip:"Rename",onCommit:function(){function p(v,b){return c(h.uid,b)}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Open",onClick:function(){function p(){return l(h.uid)}return p}()})],4)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.size}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:!h.undeletable&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){function p(){return i(h.uid)}return p}()}),!!m&&(u?(0,e.createComponentVNode)(2,t.Button,{icon:"download",tooltip:"Download",onClick:function(){function p(){return d(h.uid)}return p}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"upload",tooltip:"Upload",onClick:function(){function p(){return d(h.uid)}return p}()}))],0)})]},h.name)})]})}},9169:function(x,r,n){"use strict";r.__esModule=!0,r.NtosIdentificationComputer=void 0;var e=n(58734),a=n(47007),t=n(99728),o=r.NtosIdentificationComputer=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:600,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.IdentificationComputerContent,{ntos:!0})})})}return f}()},42830:function(x,r,n){"use strict";r.__esModule=!0,r.NtosMain=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},V=r.NtosMain=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.device_theme,d=m.programs,i=d===void 0?[]:d,c=m.has_light,l=m.light_on,h=m.comp_light_color,p=m.removable_media,v=p===void 0?[]:p,b=m.login,g=b===void 0?[]:b;return(0,e.createComponentVNode)(2,o.NtosWindow,{title:u==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:u,width:400,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"144px",icon:"lightbulb",selected:l,onClick:function(){function N(){return s("PC_toggle_light")}return N}(),children:["Flashlight: ",l?"ON":"OFF"]}),(0,e.createComponentVNode)(2,t.Button,{ml:1,onClick:function(){function N(){return s("PC_light_color")}return N}(),children:["Color:",(0,e.createComponentVNode)(2,t.ColorBox,{ml:1,color:h})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"User Login",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject ID",disabled:!g.IDName,onClick:function(){function N(){return s("PC_Eject_Disk",{name:"ID"})}return N}()}),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:["ID Name: ",g.IDName]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:["Assignment: ",g.IDJob]})]})}),!!v.length&&(0,e.createComponentVNode)(2,t.Section,{title:"Media Eject",children:(0,e.createComponentVNode)(2,t.Table,{children:v.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"eject",content:N,onClick:function(){function B(){return s("PC_Eject_Disk",{name:N})}return B}()})})},N)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Programs",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:f[N.name]||"window-maximize-o",content:N.desc,onClick:function(){function B(){return s("PC_runprogram",{name:N.name})}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,width:"18px",children:!!N.running&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){function B(){return s("PC_killprogram",{name:N.name})}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,width:"18px",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:N.autorun,onClick:function(){function B(){return s("PC_setautorun",{name:N.name})}return B}(),children:"AR"})})]},N.name)})})})]})})}return y}()},42521:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetChat=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosNetChat=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.can_admin,u=s.adminmode,d=s.authed,i=s.username,c=s.active_channel,l=s.is_operator,h=s.all_channels,p=h===void 0?[]:h,v=s.clients,b=v===void 0?[]:v,g=s.messages,N=g===void 0?[]:g,B=c!==null,S=d||u;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:900,height:675,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.Section,{height:"600px",children:(0,e.createComponentVNode)(2,t.Table,{height:"580px",children:(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.createComponentVNode)(2,t.Box,{height:"560px",overflowY:"scroll",children:[(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"New Channel...",onCommit:function(){function L(I,w){return C("PRG_newchannel",{new_channel_name:w})}return L}()}),p.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:L.chan,selected:L.id===c,color:"transparent",onClick:function(){function I(){return C("PRG_joinchannel",{id:L.id})}return I}()},L.chan)})]}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,mt:1,content:i+"...",currentValue:i,onCommit:function(){function L(I,w){return C("PRG_changename",{new_name:w})}return L}()}),!!m&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(u?"ON":"OFF"),color:u?"bad":"good",onClick:function(){function L(){return C("PRG_toggleadmin")}return L}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Box,{height:"560px",overflowY:"scroll",children:B&&(S?N.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:L.msg},L.msg)}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.createComponentVNode)(2,t.Input,{fluid:!0,selfClear:!0,mt:1,onEnter:function(){function L(I,w){return C("PRG_speak",{message:w})}return L}()})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.createComponentVNode)(2,t.Box,{height:"465px",overflowY:"scroll",children:b.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:L.name},L.name)})}),B&&S&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(){function L(I,w){return C("PRG_savelog",{log_name:w})}return L}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){function L(){return C("PRG_leavechannel")}return L}()})],4),!!l&&d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){function L(){return C("PRG_deletechannel")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(){function L(I,w){return C("PRG_renamechannel",{new_name:w})}return L}()}),(0,e.createComponentVNode)(2,t.Button.Input,{fluid:!0,content:"Set Password...",onCommit:function(){function L(I,w){return C("PRG_setpassword",{new_password:w})}return L}()})],4)]})]})})})})})}return V}()},4613:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetDosContent=r.NtosNetDos=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosNetDos=function(){function y(){return(0,e.createComponentVNode)(2,o.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.NtosNetDosContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.relays,d=u===void 0?[]:u,i=m.focus,c=m.target,l=m.speed,h=m.overload,p=m.capacity,v=m.error;if(v)return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:v}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){function N(){return s("PRG_reset")}return N}()})],4);var b=function(){function N(B){for(var S="",L=h/p;S.lengthL?S+="0":S+="1";return S}return N}(),g=45;return c?(0,e.createComponentVNode)(2,t.Section,{fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{children:["CURRENT SPEED: ",l," GQ/s"]}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)}),(0,e.createComponentVNode)(2,t.Box,{children:b(g)})]}):(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:d.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{content:N.id,selected:i===N.id,onClick:function(){function B(){return s("PRG_target_relay",{targid:N.id})}return B}()},N.id)})})}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!i,mt:1,onClick:function(){function N(){return s("PRG_execute")}return N}()})]})}return y}()},61522:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetDownloader=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=r.NtosNetDownloader=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.PC_device_theme,i=u.disk_size,c=u.disk_used,l=u.downloadable_programs,h=l===void 0?[]:l,p=u.error,v=u.hacked_programs,b=v===void 0?[]:v,g=u.hackedavailable;return(0,e.createComponentVNode)(2,f.NtosWindow,{theme:d,width:480,height:735,resizable:!0,children:(0,e.createComponentVNode)(2,f.NtosWindow.Content,{scrollable:!0,children:[!!p&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:[(0,e.createComponentVNode)(2,o.Box,{mb:1,children:p}),(0,e.createComponentVNode)(2,o.Button,{content:"Reset",onClick:function(){function N(){return m("PRG_reseterror")}return N}()})]}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk usage",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:c,minValue:0,maxValue:i,children:c+" GQ / "+i+" GQ"})})})}),(0,e.createComponentVNode)(2,o.Section,{children:h.map(function(N){return(0,e.createComponentVNode)(2,y,{program:N},N.filename)})}),!!g&&(0,e.createComponentVNode)(2,o.Section,{title:"UNKNOWN Software Repository",children:[(0,e.createComponentVNode)(2,o.NoticeBox,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),b.map(function(N){return(0,e.createComponentVNode)(2,y,{program:N},N.filename)})]})]})})}return k}(),y=function(C){var s=C.program,m=(0,t.useBackend)(),u=m.act,d=m.data,i=d.disk_size,c=d.disk_used,l=d.downloadcompletion,h=d.downloading,p=d.downloadname,v=d.downloadsize,b=d.downloadspeed,g=d.downloads_queue,N=i-c;return(0,e.createComponentVNode)(2,o.Box,{mb:3,children:[(0,e.createComponentVNode)(2,o.Flex,{align:"baseline",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{bold:!0,grow:1,children:s.filedesc}),(0,e.createComponentVNode)(2,o.Flex.Item,{color:"label",nowrap:!0,children:[s.size," GQ"]}),(0,e.createComponentVNode)(2,o.Flex.Item,{ml:2,width:"94px",textAlign:"center",children:s.filename===p&&(0,e.createComponentVNode)(2,o.ProgressBar,{color:"green",minValue:0,maxValue:v,value:l,children:[(0,a.round)(l/v*100,1),"% (",b,"GQ/s)"]})||g.indexOf(s.filename)!==-1&&(0,e.createComponentVNode)(2,o.Button,{icon:"ban",color:"bad",onClick:function(){function B(){return u("PRG_removequeued",{filename:s.filename})}return B}(),children:"Queued..."})||(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"download",content:"Download",disabled:s.size>N,onClick:function(){function B(){return u("PRG_downloadfile",{filename:s.filename})}return B}()})})]}),s.compatibility!=="Compatible"&&(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),s.size>N&&(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,italic:!0,color:"label",fontSize:"12px",children:s.fileinfo})]})}},96518:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetMonitor=void 0;var e=n(58734),a=n(35239),t=n(54777),o=n(47007),f=r.NtosNetMonitor=function(){function V(y){var k=(0,t.useBackend)(),C=k.act,s=k.data,m=s.ntnetrelays,u=s.ntnetstatus,d=s.config_softwaredownload,i=s.config_peertopeer,c=s.config_communication,l=s.config_systemcontrol,h=s.idsalarm,p=s.idsstatus,v=s.ntnetmaxlogs,b=s.maxlogs,g=s.minlogs,N=s.banned_nids,B=s.ntnetlogs,S=B===void 0?[]:B;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,a.NoticeBox,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.createComponentVNode)(2,a.Section,{title:"Wireless Connectivity",buttons:(0,e.createComponentVNode)(2,a.Button.Confirm,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){function L(){return C("toggleWireless")}return L}()}),children:m?(0,e.createComponentVNode)(2,a.LabeledList,{children:(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Active NTNet Relays",children:m})}):"No Relays Connected"}),(0,e.createComponentVNode)(2,a.Section,{title:"Firewall Configuration",children:(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Software Downloads",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){function L(){return C("toggle_function",{id:"1"})}return L}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Peer to Peer Traffic",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:i?"power-off":"times",content:i?"ENABLED":"DISABLED",selected:i,onClick:function(){function L(){return C("toggle_function",{id:"2"})}return L}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Communication Systems",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){function L(){return C("toggle_function",{id:"3"})}return L}()})}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Remote System Control",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:l?"power-off":"times",content:l?"ENABLED":"DISABLED",selected:l,onClick:function(){function L(){return C("toggle_function",{id:"4"})}return L}()})})]})}),(0,e.createComponentVNode)(2,a.Section,{title:"Security Systems",children:[!!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,a.NoticeBox,{children:"NETWORK INCURSION DETECTED"}),(0,e.createComponentVNode)(2,a.Box,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})],4),(0,e.createComponentVNode)(2,a.LabeledList,{children:[(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Banned NIDs",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Button,{icon:"ban",onClick:function(){function L(){return C("ban_nid")}return L}(),children:"Ban NID"}),(0,e.createComponentVNode)(2,a.Button,{icon:"balance-scale",onClick:function(){function L(){return C("unban_nid")}return L}(),children:"Unban NID"})],4),children:N.join(", ")||"None"}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"IDS Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Button,{icon:p?"power-off":"times",content:p?"ENABLED":"DISABLED",selected:p,onClick:function(){function L(){return C("toggleIDS")}return L}()}),(0,e.createComponentVNode)(2,a.Button,{icon:"sync",content:"Reset",color:"bad",onClick:function(){function L(){return C("resetIDS")}return L}()})],4)}),(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Max Log Count",buttons:(0,e.createComponentVNode)(2,a.NumberInput,{value:v,minValue:g,maxValue:b,width:"39px",onChange:function(){function L(I,w){return C("updatemaxlogs",{new_number:w})}return L}()})})]}),(0,e.createComponentVNode)(2,a.Section,{title:"System Log",level:2,buttons:(0,e.createComponentVNode)(2,a.Button.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){function L(){return C("purgelogs")}return L}()}),children:S.map(function(L){return(0,e.createComponentVNode)(2,a.Box,{className:"candystripe",children:L.entry},L.entry)})})]})]})})}return V}()},26876:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNetTransfer=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosNetTransfer=function(){function m(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.error,h=c.downloading,p=c.uploading,v=c.upload_filelist,b=(0,e.createComponentVNode)(2,s);return l?b=(0,e.createComponentVNode)(2,V):h?b=(0,e.createComponentVNode)(2,y):p?b=(0,e.createComponentVNode)(2,k):v.length&&(b=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:575,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:b})})}return m}(),V=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.error;return(0,e.createComponentVNode)(2,t.Section,{title:"An error has occured during operation.",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function h(){return i("PRG_reset")}return h}(),children:"Reset"}),children:["Additional Information: ",l]})},y=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.download_name,h=c.download_progress,p=c.download_size,v=c.download_netspeed;return(0,e.createComponentVNode)(2,t.Section,{title:"Download in progress",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Downloaded File",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h,maxValue:p,children:[h," / ",p," GQ"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer Speed",children:[v," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ban",onClick:function(){function b(){return i("PRG_reset")}return b}(),children:"Cancel Download"})})]})})},k=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.upload_clients,h=c.upload_filename,p=c.upload_haspassword;return(0,e.createComponentVNode)(2,t.Section,{title:"Server enabled",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Clients Connected",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Provided file",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Server Password",children:p?"Enabled":"Disabled"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Commands",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"lock",onClick:function(){function v(){return i("PRG_setpassword")}return v}(),children:"Set Password"}),(0,e.createComponentVNode)(2,t.Button,{icon:"ban",onClick:function(){function v(){return i("PRG_reset")}return v}(),children:"Cancel Upload"})]})]})})},C=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.upload_filelist;return(0,e.createComponentVNode)(2,t.Section,{title:"File transfer server ready.",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function h(){return i("PRG_reset")}return h}(),children:"Cancel"}),children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"lock",onClick:function(){function h(){return i("PRG_setpassword")}return h}(),children:"Set Password"}),(0,e.createComponentVNode)(2,t.Section,{title:"Pick file to serve.",level:2,children:l.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"upload",onClick:function(){function p(){return i("PRG_uploadfile",{uid:h.uid})}return p}(),children:[h.filename," (",h.size,"GQ)"]},h.uid)})})]})},s=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.servers;return(0,e.createComponentVNode)(2,t.Section,{title:"Available Files",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"upload",onClick:function(){function h(){return i("PRG_uploadmenu")}return h}(),children:"Send File"}),children:l.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h.uid,children:[!!h.haspassword&&(0,e.createComponentVNode)(2,t.Icon,{name:"lock",mr:1}),h.filename,"\xA0 (",h.size,"GQ)\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function p(){return i("PRG_downloadfile",{uid:h.uid})}return p}(),children:"Download"})]},h.uid)})})||(0,e.createComponentVNode)(2,t.Box,{children:"No upload servers found."})})}},80007:function(x,r,n){"use strict";r.__esModule=!0,r.NtosNewsBrowser=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(94779),V=r.NtosNewsBrowser=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.article,l=i.download,h=i.message,p=(0,e.createComponentVNode)(2,k);return c?p=(0,e.createComponentVNode)(2,y):l&&(p=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,o.NtosWindow,{width:575,height:750,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:[h," ",(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function v(){return d("PRG_clearmessage")}return v}()})]}),p]})})}return s}(),y=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.article;if(!c)return(0,e.createComponentVNode)(2,t.Section,{children:"Error: Article not found."});var l=c.title,h=c.cover,p=c.content;return(0,e.createComponentVNode)(2,t.Section,{title:"Viewing: "+l,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"save",onClick:function(){function v(){return d("PRG_savearticle")}return v}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",onClick:function(){function v(){return d("PRG_reset")}return v}(),children:"Close"})],4),children:[!!h&&(0,e.createVNode)(1,"img",null,null,1,{src:(0,f.resolveAsset)(h)}),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p}})]})},k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.showing_archived,l=i.all_articles;return(0,e.createComponentVNode)(2,t.Section,{title:"Articles List",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{onClick:function(){function h(){return d("PRG_toggle_archived")}return h}(),checked:c,children:"Show Archived"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.length&&l.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"download",onClick:function(){function p(){return d("PRG_openarticle",{uid:h.uid})}return p}()}),children:[h.size," GQ"]},h.uid)})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},C=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.download,l=c.download_progress,h=c.download_maxprogress,p=c.download_rate;return(0,e.createComponentVNode)(2,t.Section,{title:"Downloading...",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Progress",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",minValue:0,value:l,maxValue:h,children:[l," / ",h," GQ"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Download Speed",children:[p," GQ/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ban",fluid:!0,onClick:function(){function v(){return d("PRG_reset")}return v}(),children:"Abort Download"})})]})})}},98458:function(x,r,n){"use strict";r.__esModule=!0,r.NtosOvermapNavigation=void 0;var e=n(58734),a=n(47007),t=n(49306),o=r.NtosOvermapNavigation=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:380,height:530,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.OvermapNavigationContent)})})}return f}()},23678:function(x,r,n){"use strict";r.__esModule=!0,r.NtosPowerMonitor=void 0;var e=n(58734),a=n(47007),t=n(81757),o=r.NtosPowerMonitor=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:550,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.PowerMonitorContent)})})}return f}()},99354:function(x,r,n){"use strict";r.__esModule=!0,r.NtosRCON=void 0;var e=n(58734),a=n(47007),t=n(34624),o=r.NtosRCON=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:630,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.RCONContent)})})}return f}()},55210:function(x,r,n){"use strict";r.__esModule=!0,r.NtosRevelation=void 0;var e=n(58734),a=n(35239),t=n(54777),o=n(47007),f=r.NtosRevelation=function(){function V(y){var k=(0,t.useBackend)(),C=k.act,s=k.data,m=s.armed;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:400,height:250,theme:"syndicate",children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,a.Section,{children:[(0,e.createComponentVNode)(2,a.Button.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(){function u(d,i){return C("PRG_obfuscate",{new_name:i})}return u}(),mb:1}),(0,e.createComponentVNode)(2,a.LabeledList,{children:(0,e.createComponentVNode)(2,a.LabeledList.Item,{label:"Payload Status",buttons:(0,e.createComponentVNode)(2,a.Button,{content:m?"ARMED":"DISARMED",color:m?"bad":"average",onClick:function(){function u(){return C("PRG_arm")}return u}()})})}),(0,e.createComponentVNode)(2,a.Button,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!m})]})})})}return V}()},94056:function(x,r,n){"use strict";r.__esModule=!0,r.NtosShutoffMonitor=void 0;var e=n(58734),a=n(47007),t=n(38818),o=r.NtosShutoffMonitor=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{children:(0,e.createComponentVNode)(2,t.ShutoffMonitorContent)})})}return f}()},51452:function(x,r,n){"use strict";r.__esModule=!0,r.NtosStationAlertConsole=void 0;var e=n(58734),a=n(47007),t=n(10967),o=r.NtosStationAlertConsole=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:315,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.StationAlertConsoleContent)})})}return f}()},3273:function(x,r,n){"use strict";r.__esModule=!0,r.NtosSupermatterMonitor=void 0;var e=n(58734),a=n(47007),t=n(80341),o=r.NtosSupermatterMonitor=function(){function f(){return(0,e.createComponentVNode)(2,a.NtosWindow,{width:600,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,a.NtosWindow.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.SupermatterMonitorContent)})})}return f}()},31690:function(x,r,n){"use strict";r.__esModule=!0,r.NtosUAV=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosUAV=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.current_uav,u=s.signal_strength,d=s.in_use,i=s.paired_uavs;return(0,e.createComponentVNode)(2,o.NtosWindow,{width:600,height:500,resizable:!0,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Selected UAV",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"UAV",children:m&&m.status||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Signal",children:m&&u||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:m&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:m.power,onClick:function(){function c(){return C("power_uav")}return c}(),children:m.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Camera",children:m&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,disabled:!m.power,onClick:function(){function c(){return C("view_uav")}return c}(),children:m.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Paired UAVs",children:i.length&&i.map(function(c){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"quidditch",onClick:function(){function l(){return C("switch_uav",{switch_uav:c.uavref})}return l}(),children:c.name})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"times",onClick:function(){function l(){return C("del_uav",{del_uav:c.uavref})}return l}()})})]},c.uavref)})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No UAVs Paired."})})]})})}return V}()},85527:function(x,r,n){"use strict";r.__esModule=!0,r.NtosWordProcessor=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.NtosWordProcessor=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.PC_device_theme,u=s.error,d=s.browsing,i=s.files,c=s.usbconnected,l=s.usbfiles,h=s.filename,p=s.filedata;return(0,e.createComponentVNode)(2,o.NtosWindow,{resizable:!0,theme:m,children:(0,e.createComponentVNode)(2,o.NtosWindow.Content,{scrollable:!0,children:u&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createVNode)(1,"h2",null,"An Error has occured:",16),"Additional Information: ",u,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back to menu",onClick:function(){function v(){return C("PRG_backtomenu")}return v}()})]})||d&&(0,e.createComponentVNode)(2,t.Section,{title:"File Browser",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back to editor",onClick:function(){function v(){return C("PRG_closebrowser")}return v}()}),children:(0,e.createComponentVNode)(2,t.Section,{title:"Available documents (local)",level:2,children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Size (GQ)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0})]}),i.map(function(v,b){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.size}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"file-word",onClick:function(){function g(){return C("PRG_openfile",{PRG_openfile:v.name})}return g}(),children:"Open"})})]},b)})]})})})||(0,e.createComponentVNode)(2,t.Section,{title:"Document: "+h,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_newfile")}return v}(),children:"New"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_loadmenu")}return v}(),children:"Load"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_savefile")}return v}(),children:"Save"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_saveasfile")}return v}(),children:"Save As"})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_editfile")}return v}(),children:"Edit"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_txtrpeview")}return v}(),children:"Preview"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function v(){return C("PRG_taghelp")}return v}(),children:"Formatting Help"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!p,onClick:function(){function v(){return C("PRG_printfile")}return v}(),children:"Print"})]}),(0,e.createComponentVNode)(2,t.Section,{mt:1,children:(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:p}})})]})})})}return V}()},93810:function(x,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(58734),a=n(80132),t=n(77921),o=n(42678),f=n(54777),V=n(35239),y=n(47007),k=r.NumberInputModal=function(){function s(m){var u=(0,f.useBackend)(),d=u.act,i=u.data,c=i.init_value,l=i.large_buttons,h=i.message,p=h===void 0?"":h,v=i.timeout,b=i.title,g=(0,f.useLocalState)("input",c),N=g[0],B=g[1],S=function(){function w(T){T!==N&&B(T)}return w}(),L=function(){function w(T){T!==N&&B(T)}return w}(),I=140+(p.length>30?Math.ceil(p.length/3):0)+(p.length&&l?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:b,width:270,height:I,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function w(T){var E=window.event?T.which:T.keyCode;E===o.KEY_ENTER&&d("submit",{entry:N}),E===o.KEY_ESCAPE&&d("cancel")}return w}(),children:(0,e.createComponentVNode)(2,V.Section,{fill:!0,children:(0,e.createComponentVNode)(2,V.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.Box,{color:"label",children:p})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{input:N,onClick:L,onChange:S})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return s}(),C=function(m){var u=(0,f.useBackend)(),d=u.act,i=u.data,c=i.min_value,l=i.max_value,h=i.init_value,p=m.input,v=m.onClick,b=m.onChange;return(0,e.createComponentVNode)(2,V.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:p===c,icon:"angle-double-left",onClick:function(){function g(){return v(c)}return g}(),tooltip:c?"Min ("+c+")":"Min"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.RestrictedInput,{allowFloats:!0,autoFocus:!0,autoSelect:!0,fluid:!0,minValue:c,maxValue:l,onChange:function(){function g(N,B){return b(B)}return g}(),onEnter:function(){function g(N,B){return d("submit",{entry:B})}return g}(),value:p})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:p===l,icon:"angle-double-right",onClick:function(){function g(){return v(l)}return g}(),tooltip:l?"Max ("+l+")":"Max"})}),(0,e.createComponentVNode)(2,V.Stack.Item,{children:(0,e.createComponentVNode)(2,V.Button,{disabled:p===h,icon:"redo",onClick:function(){function g(){return v(h)}return g}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},35948:function(x,r,n){"use strict";r.__esModule=!0,r.OmniFilter=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=function(k){return k.input?"Input":k.output?"Output":k.f_type?k.f_type:"Disabled"},V=r.OmniFilter=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.power,d=m.config,i=m.ports,c=m.set_flow_rate,l=m.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:360,height:330,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:d?"Configuration":"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:d,onClick:function(){function h(){return s("power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",selected:d,onClick:function(){function h(){return s("configure")}return h}()})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i?i.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h.dir+" Port",children:d?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:h.input,icon:"compress-arrows-alt",onClick:function(){function p(){return s("switch_mode",{mode:"in",dir:h.dir})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:h.output,icon:"expand-arrows-alt",onClick:function(){function p(){return s("switch_mode",{mode:"out",dir:h.dir})}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:h.input||h.output,content:h.f_type||"None",onClick:function(){function p(){return s("switch_filter",{mode:h.f_type,dir:h.dir})}return p}()})],4):f(h)},h.dir)}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Ports Detected"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flow Rate",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Flow Rate",children:[l," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",children:d?(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:c/10+" L/s",onClick:function(){function h(){return s("set_flow_rate")}return h}()}):c/10+" L/s"})]})})]})})}return y}()},3168:function(x,r,n){"use strict";r.__esModule=!0,r.OmniMixer=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=function(C){return C.input?"Input":C.output?"Output":C.f_type?C.f_type:"Disabled"},V=r.OmniMixer=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.power,i=u.config,c=u.ports,l=u.set_flow_rate,h=u.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:330,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:i?"Configuration":"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:d?"On":"Off",selected:d,disabled:i,onClick:function(){function p(){return m("power")}return p}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",selected:i,onClick:function(){function p(){return m("configure")}return p}()})],4),children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Port"}),i?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Input"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Output"})],4):(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Mode"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Concentration"}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Lock"}):null]}),c?c.map(function(p){return(0,e.createComponentVNode)(2,y,{port:p,config:i},p.dir)}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Ports Detected"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flow Rate",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Flow Rate",children:[h," L/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:l/10+" L/s",onClick:function(){function p(){return m("set_flow_rate")}return p}()}):l/10+" L/s"})]})})]})})}return k}(),y=function(C){var s=(0,a.useBackend)(),m=s.act,u=C.port,d=C.config;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.dir+" Port"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:d?(0,e.createComponentVNode)(2,t.Button,{content:"IN",selected:u.input,disabled:u.output,icon:"compress-arrows-alt",onClick:function(){function i(){return m("switch_mode",{mode:u.input?"none":"in",dir:u.dir})}return i}()}):f(u)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:d?(0,e.createComponentVNode)(2,t.Button,{content:"OUT",selected:u.output,icon:"expand-arrows-alt",onClick:function(){function i(){return m("switch_mode",{mode:"out",dir:u.dir})}return i}()}):u.concentration*100+"%"}),d?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",width:"20%",children:(0,e.createComponentVNode)(2,t.Button,{width:"100%",icon:"wrench",disabled:!u.input,content:u.input?u.concentration*100+" %":"-",onClick:function(){function i(){return m("switch_con",{dir:u.dir})}return i}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.con_lock?"lock":"lock-open",disabled:!u.input,selected:u.con_lock,content:u.f_type||"None",onClick:function(){function i(){return m("switch_conlock",{dir:u.dir})}return i}()})})],4):null]})}},98300:function(x,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(47007),f=n(35239),V=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},C=["bad","average","average","good","average","average","bad"],s=r.OperatingComputer=function(){function i(c){var l=(0,t.useBackend)(),h=l.act,p=l.data,v=p.hasOccupant,b=p.choice,g;return b?g=(0,e.createComponentVNode)(2,d):g=v?(0,e.createComponentVNode)(2,m):(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!b,icon:"user",onClick:function(){function N(){return h("choiceOff")}return N}(),children:"Patient"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:!!b,icon:"cog",onClick:function(){function N(){return h("choiceOn")}return N}(),children:"Options"})]}),(0,e.createComponentVNode)(2,f.Section,{flexGrow:"1",children:g})]})})}return i}(),m=function(c){var l=(0,t.useBackend)(),h=l.data,p=h.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Section,{title:"Patient",level:"2",children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Name",children:p.name}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",color:V[p.stat][0],children:V[p.stat][1]}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:p.maxHealth,value:p.health/p.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,b){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:"100",value:p[v[1]]/100,ranges:k,children:(0,a.round)(p[v[1]])},b)},b)}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:p.maxTemp,value:p.bodyTemperature/p.maxTemp,color:C[p.temperatureSuitability+3],children:[(0,a.round)(p.btCelsius),"\xB0C, ",(0,a.round)(p.btFaren),"\xB0F"]})}),!!p.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,f.ProgressBar,{min:"0",max:p.bloodMax,value:p.bloodLevel/p.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[p.bloodPercent,"%, ",p.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Pulse",children:[p.pulse," BPM"]})],4)]})}),(0,e.createComponentVNode)(2,f.Section,{title:"Current Procedure",level:"2",children:p.surgery&&p.surgery.length?(0,e.createComponentVNode)(2,f.LabeledList,{children:p.surgery.map(function(v){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:v.name,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Current State",children:v.currentStage}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Possible Next Steps",children:v.nextSteps.map(function(b){return(0,e.createVNode)(1,"div",null,b,0,null,b)})})]})},v.name)})}):(0,e.createComponentVNode)(2,f.Box,{color:"label",children:"No procedure ongoing."})})],4)},u=function(){return(0,e.createComponentVNode)(2,f.Flex,{textAlign:"center",height:"100%",children:(0,e.createComponentVNode)(2,f.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,f.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},d=function(c){var l=(0,t.useBackend)(),h=l.act,p=l.data,v=p.verbose,b=p.health,g=p.healthAlarm,N=p.oxy,B=p.oxyAlarm,S=p.crit;return(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,f.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function L(){return h(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,f.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function L(){return h(b?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:g,stepPixelSize:"5",ml:"0",format:function(){function L(I){return I+"%"}return L}(),onChange:function(){function L(I,w){return h("health_adj",{new:w})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,f.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function L(){return h(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,f.Knob,{bipolar:!0,minValue:"-100",maxValue:"100",value:B,stepPixelSize:"5",ml:"0",onChange:function(){function L(I,w){return h("oxy_adj",{new:w})}return L}()})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,f.Button,{selected:S,icon:S?"toggle-on":"toggle-off",content:S?"On":"Off",onClick:function(){function L(){return h(S?"critOff":"critOn")}return L}()})})]})}},35935:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapDisperser=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45990),V=r.OvermapDisperser=function(){function k(C){return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return k}(),y=function(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.faillink,i=u.calibration,c=u.overmapdir,l=u.cal_accuracy,h=u.strength,p=u.range,v=u.next_shot,b=u.nopower,g=u.skill,N=u.chargeload;return d?(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"22%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Targeting",textAlign:"center",children:(0,e.createComponentVNode)(2,f.OvermapPanControls,{actToDo:"choose",selected:function(){function B(S){return S===c}return B}()})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"74%",grow:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Charge",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[b&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Load Type",children:N}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cooldown",children:v===0&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Ready"})||v>1&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," Seconds",(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Calibration",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l}),"%",(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"exchange-alt",onClick:function(){function B(){return m("skill_calibration")}return B}(),children:"Pre-Calibration"}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:i.map(function(B,S){return(0,e.createComponentVNode)(2,t.Box,{children:["Cal #",S,":",(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"random",onClick:function(){function L(){return m("calibration",{calibration:S})}return L}(),children:B.toString()})]},S)})})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"45%",grow:1,mt:1,children:(0,e.createComponentVNode)(2,t.Section,{title:"Setup",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"fist-raised",onClick:function(){function B(){return m("strength")}return B}(),children:h})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radius",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){function B(){return m("range")}return B}(),children:p})})]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",icon:"bomb",onClick:function(){function B(){return m("fire")}return B}(),children:"Fire ORB"})})]})}},36502:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapEnginesContent=r.OvermapEngines=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.OvermapEngines=function(){function y(k){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:530,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.OvermapEnginesContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.global_state,d=m.global_limit,i=m.engines_info,c=m.total_thrust;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engines",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:u,onClick:function(){function l(){return s("global_toggle")}return l}(),children:u?"Shut All Engines Down":"Start All Engines"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Limit",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function l(){return s("global_limit",{global_limit:-.1})}return l}(),icon:"minus"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function l(){return s("set_global_limit")}return l}(),children:[d,"%"]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function l(){return s("global_limit",{global_limit:.1})}return l}(),icon:"plus"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Thrust",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:i.map(function(l,h){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mt:h!==0&&-1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"80%",children:(0,e.createComponentVNode)(2,t.Collapsible,{title:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Engine #",h+1," | Thrust:"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.eng_thrust})," | Limit:"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.eng_thrust_limiter,format:function(){function p(v){return v+"%"}return p}()})]}),children:(0,e.createComponentVNode)(2,t.Section,{width:"127%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:l.eng_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Box,{color:l.eng_on?l.eng_on===1?"good":"average":"bad",children:l.eng_on?l.eng_on===1?"Online":"Booting":"Offline"}),l.eng_status.map(function(p){return Array.isArray(p)?(0,e.createComponentVNode)(2,t.Box,{color:p[1],children:p[0]}):(0,e.createComponentVNode)(2,t.Box,{children:p})})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Thrust",children:l.eng_thrust}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Limit",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("limit",{limit:-.1,engine:l.eng_reference})}return p}(),icon:"minus"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("set_limit",{engine:l.eng_reference})}return p}(),children:[l.eng_thrust_limiter,"%"]}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function p(){return s("limit",{limit:.1,engine:l.eng_reference})}return p}(),icon:"plus"})]})]})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"20%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,iconSpin:l.eng_on===-1,color:l.eng_on===-1?"purple":null,selected:l.eng_on===1,icon:"power-off",onClick:function(){function p(){return s("toggle_engine",{engine:l.eng_reference})}return p}(),children:l.eng_on?l.eng_on===1?"Shutoff":"Booting":"Startup"})})]},h)})})],4)}return y}()},64948:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapFull=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(36502),V=n(58555),y=n(71288),k=r.OvermapFull=function(){function C(s){var m=(0,a.useLocalState)("overmapFullState",0),u=m[0],d=m[1];return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===0,onClick:function(){function i(){return d(0)}return i}(),children:"Engines"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===1,onClick:function(){function i(){return d(1)}return i}(),children:"Helm"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===2,onClick:function(){function i(){return d(2)}return i}(),children:"Sensors"})]}),u===0&&(0,e.createComponentVNode)(2,f.OvermapEnginesContent),u===1&&(0,e.createComponentVNode)(2,V.OvermapHelmContent),u===2&&(0,e.createComponentVNode)(2,y.OvermapShipSensorsContent)]})})}return C}()},58555:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapHelmContent=r.OvermapHelm=r.OvermapFlightDataWrap=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45990),V=r.OvermapHelm=function(){function u(d){return(0,e.createComponentVNode)(2,o.Window,{width:565,height:545,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return u}(),y=r.OvermapHelmContent=function(){function u(d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"40%",height:"180px",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"25%",height:"180px",children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"35%",height:"180px",children:(0,e.createComponentVNode)(2,s)})]}),(0,e.createComponentVNode)(2,m)],4)}return u}(),k=r.OvermapFlightDataWrap=function(){function u(d){var i=(0,a.useBackend)(),c=i.act,l=i.data;return(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Flight Data",16),(0,e.createComponentVNode)(2,f.OvermapFlightData)],4,{style:{height:"100%",border:"1px solid #4972a1",margin:"none"}})}return u}(),C=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.canburn,p=l.manual_control;return(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Manual Control",16),(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f.OvermapPanControls,{disabled:!h,actToDo:"move"})})}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",mt:1,children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.createComponentVNode)(2,t.Button,{selected:p,onClick:function(){function v(){return c("manual")}return v}(),icon:"compass",children:p?"Enabled":"Disabled"})]})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},s=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.dest,p=l.d_x,v=l.d_y,b=l.speedlimit,g=l.autopilot,N=l.autopilot_disabled;return N?(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Autopilot",16),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){function B(){return c("apilot_lock")}return B}()})})],4,{style:{height:"100%",border:"1px solid #4972a1"}}):(0,e.createVNode)(1,"fieldset","Section",[(0,e.createVNode)(1,"legend",null,"Autopilot",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return c("setcoord",{setx:!0})}return B}(),children:p}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return c("setcoord",{sety:!0})}return B}(),children:v})],4)||(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function B(){return c("setcoord",{setx:!0,sety:!0})}return B}(),children:"None"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Speed Limit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tachometer-alt",onClick:function(){function B(){return c("speedlimit")}return B}(),children:[b," Gm/h"]})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,selected:g,disabled:!h,icon:"robot",onClick:function(){function B(){return c("apilot")}return B}(),children:g?"Engaged":"Disengaged"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){function B(){return c("apilot_lock")}return B}(),children:"Lock Autopilot"})],4,{style:{height:"100%",border:"1px solid #4972a1"}})},m=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.sector,p=l.s_x,v=l.s_y,b=l.sector_info,g=l.landed,N=l.locations;return(0,e.createComponentVNode)(2,t.Section,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coordinates",children:[p," : ",v]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scan Data",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:g})]}),(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"save",onClick:function(){function B(){return c("add",{add:"current"})}return B}(),children:"Save Current Position"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"sticky-note",onClick:function(){function B(){return c("add",{add:"new"})}return B}(),children:"Add New Entry"})})]}),(0,e.createComponentVNode)(2,t.Section,{mt:1,scrollable:!0,height:"130px",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Coordinates"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),N.map(function(B){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:B.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[B.x," : ",B.y]}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",onClick:function(){function S(){return c("setds",{x:B.x,y:B.y})}return S}(),children:"Plot Course"}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",onClick:function(){function S(){return c("remove",{remove:B.reference})}return S}(),children:"Remove"})]})]},B.name)})]})})]})}},49306:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapNavigationContent=r.OvermapNavigation=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45990),V=r.OvermapNavigation=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:380,height:530,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return k}(),y=r.OvermapNavigationContent=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.sector,i=u.s_x,c=u.s_y,l=u.sector_info,h=u.viewing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Current Location",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",selected:h,onClick:function(){function p(){return m("viewing")}return p}(),children:"Map View"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Coordinates",children:[i," : ",c]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Additional Information",children:l})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Flight Data",children:(0,e.createComponentVNode)(2,f.OvermapFlightData,{disableLimiterControls:!0})})],4)}return k}()},13202:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapShieldGenerator=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.OvermapShieldGenerator=function(){function C(s){return(0,e.createComponentVNode)(2,o.Window,{width:500,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return C}(),V=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.modes,c=d.offline_for;return c?(0,e.createComponentVNode)(2,t.Section,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",c," seconds."]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Section,{title:"Field Calibration",children:i.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,level:2,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:l.status,onClick:function(){function h(){return u("toggle_mode",{toggle_mode:l.flag})}return h}(),children:l.status?"Enabled":"Disabled"}),children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:l.desc}),(0,e.createComponentVNode)(2,t.Box,{mt:.5,children:["Multiplier: ",l.multiplier]})]},l.name)})})],4)},y=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.running,c=d.overloaded,l=d.mitigation_max,h=d.mitigation_physical,p=d.mitigation_em,v=d.mitigation_heat,b=d.field_integrity,g=d.max_energy,N=d.current_energy,B=d.percentage_energy,S=d.total_segments,L=d.functional_segments,I=d.field_radius,w=d.target_radius,T=d.input_cap_kw,E=d.upkeep_power_usage,A=d.power_usage,M=d.spinup_counter;return(0,e.createComponentVNode)(2,t.Section,{title:"System Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generator is",children:i===1&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Shutting Down"})||i===2&&(c&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Overloaded"})||(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Running"}))||i===3&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Inactive"})||i===4&&(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:["Spinning Up\xA0",w!==I&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:"(Adjusting Radius)"})||(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[M*2,"s"]})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Offline"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:N,maxValue:g,children:[N," / ",g," MJ (",B,"%)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shield Integrity",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:b}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mitigation",children:[p,"% EM / ",h,"% PH / ",v,"% HE / ",l,"% MAX"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upkeep Energy Use",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:E})," kW"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Energy Use",children:T&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,maxValue:T,children:[A," / ",T," kW"]})})||(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:A})," kW (No Limit)"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Field Size",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:L}),"\xA0/\xA0",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:S})," m\xB2 (radius"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:I}),", target"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:w}),")"]})]})})},k=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.running,c=d.hacked,l=d.idle_multiplier,h=d.idle_valid_values;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([i>=2&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function p(){return u("begin_shutdown")}return p}(),selected:!0,children:"Turn off"}),i===3&&(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function p(){return u("toggle_idle",{toggle_idle:0})}return p}(),children:"Activate"})||(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function p(){return u("toggle_idle",{toggle_idle:1})}return p}(),selected:!0,children:"Deactivate"})]})||(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function p(){return u("start_generator")}return p}(),children:"Turn on"}),i&&c&&(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",onClick:function(){function p(){return u("emergency_shutdown")}return p}(),color:"bad",children:"EMERGENCY SHUTDOWN"})||null],0),children:[(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",onClick:function(){function p(){return u("set_range")}return p}(),children:"Set Field Range"}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",onClick:function(){function p(){return u("set_input_cap")}return p}(),children:"Set Input Cap"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set inactive power use intensity",children:h.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{selected:p===l,disabled:i===4,onClick:function(){function v(){return u("switch_idle",{switch_idle:p})}return v}(),children:p},p)})})})]})}},71288:function(x,r,n){"use strict";r.__esModule=!0,r.OvermapShipSensorsContent=r.OvermapShipSensors=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.OvermapShipSensors=function(){function y(k){return(0,e.createComponentVNode)(2,o.Window,{width:375,height:545,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.OvermapShipSensorsContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.viewing,d=m.on,i=m.range,c=m.health,l=m.max_health,h=m.heat,p=m.critical_heat,v=m.status,b=m.contacts;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"eye",selected:u,onClick:function(){function g(){return s("viewing")}return g}(),children:"Map View"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:d,onClick:function(){function g(){return s("toggle_sensor")}return g}(),children:d?"Sensors Enabled":"Sensors Disabled"})],4),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{icon:"signal",onClick:function(){function g(){return s("range")}return g}(),children:i})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[l*.75,1/0],average:[l*.25,l*.75],bad:[-1/0,l*.25]},value:c,maxValue:l,children:[c," / ",l]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{bad:[p*.75,1/0],average:[p*.5,p*.75],good:[-1/0,p*.5]},value:h,maxValue:p,children:h 0||!h)&&(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"times",onClick:function(){function B(){return m("cancel",{cancel:N+1})}return B}(),children:"Cancel"})||null]},g)})||(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:"Queue Empty"})}),(0,e.createComponentVNode)(2,t.Section,{title:"Recipes",children:b.length&&b.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",onClick:function(){function N(){return m("queue",{queue:g.type})}return N}(),children:(0,f.toTitleCase)(g.name)})},g.name)})})]})})}return k}()},42391:function(x,r,n){"use strict";r.__esModule=!0,r.PathogenicIsolator=void 0;var e=n(58734),a=n(54777),t=n(57027),o=n(35239),f=n(47007),V=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.can_print,l=m.args;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",title:l.name||"Virus",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!c,icon:"print",content:"Print",onClick:function(){function h(){return d("print",{type:"virus_record",vir:l.record})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function h(){return d("modal_close")}return h}()})],4),children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[l.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:l.antigen}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rate of Progression",children:l.rate}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Antibiotic Resistance",children:[l.resistance,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species Affected",children:l.species}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Symptoms",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:l.symptoms.map(function(h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h.stage+". "+h.name,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Strength:"})," ",h.strength,"\xA0"]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Aggressiveness:"})," ",h.aggressiveness]})]},h.stage)})})})]})})})},y=r.PathogenicIsolator=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.isolating,l=(0,a.useLocalState)("tabIndex",0),h=l[0],p=l[1],v=null;return h===0?v=(0,e.createComponentVNode)(2,k):h===1&&(v=(0,e.createComponentVNode)(2,C)),(0,t.modalRegisterBodyOverride)("virus",V),(0,e.createComponentVNode)(2,f.Window,{height:500,width:520,resizable:!0,children:[(0,e.createComponentVNode)(2,t.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[c&&(0,e.createComponentVNode)(2,o.NoticeBox,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===0,onClick:function(){function b(){return p(0)}return b}(),children:"Home"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:h===1,onClick:function(){function b(){return p(1)}return b}(),children:"Database"})]}),v]})]})}return s}(),k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.syringe_inserted,l=i.pathogen_pool,h=i.can_print;return(0,e.createComponentVNode)(2,o.Section,{title:"Pathogens",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",disabled:!h,onClick:function(){function p(){return d("print",{type:"patient_diagnosis"})}return p}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Syringe",disabled:!c,onClick:function(){function p(){return d("eject")}return p}()})],4),children:l.length&&l.map(function(p){return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:[(0,e.createVNode)(1,"u",null,[(0,e.createTextVNode)("Stamm #"),p.unique_id],0),p.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"virus",content:"Isolate",onClick:function(){function v(){return d("isolate",{isolate:p.reference})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Database",disabled:!p.is_in_database,onClick:function(){function v(){return d("view_entry",{vir:p.record})}return v}()})]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",mb:1,children:p.name}),p.dna]})]},p.unique_id)})||(c?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No samples detected."}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No syringe inserted."}))})},C=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.database,l=i.can_print;return(0,e.createComponentVNode)(2,o.Section,{title:"Database",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print",disabled:!l,onClick:function(){function h(){return d("print",{type:"virus_list"})}return h}()}),children:c.length&&c.map(function(h){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"search",onClick:function(){function p(){return d("view_entry",{vir:h.record})}return p}(),children:h.name},h.name)})||(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"The viral database is empty."})})}},9679:function(x,r,n){"use strict";r.__esModule=!0,r.Pda=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45063),V=n(72884),y=function(d){var i;try{i=V("./"+d+".jsx")}catch(l){if(l.code==="MODULE_NOT_FOUND")return(0,f.routingError)("notFound",d);throw l}var c=i[d];return c||(0,f.routingError)("missingExport",d)},k=r.Pda=function(){function u(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.app,p=l.owner,v=l.useRetro;if(!p)return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var b=y(h.template),g=(0,a.useLocalState)("settingsMode",!1),N=g[0],B=g[1];return(0,e.createComponentVNode)(2,o.Window,{width:580,height:670,theme:v?"pda-retro":null,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,C,{settingsMode:N,setSettingsMode:B}),N&&(0,e.createComponentVNode)(2,s)||(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h.icon,mr:1}),h.name]}),p:1,children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Box,{mb:8}),(0,e.createComponentVNode)(2,m,{setSettingsMode:B})]})})}return u}(),C=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=d.settingsMode,p=d.setSettingsMode,v=l.idInserted,b=l.idLink,g=l.cartridge_name,N=l.stationTime;return(0,e.createComponentVNode)(2,t.Box,{mb:1,children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"space-between",children:[!!v&&(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",color:"transparent",onClick:function(){function B(){return c("Authenticate")}return B}(),content:b})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",bold:!0,children:N}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:h,onClick:function(){function B(){return p(!h)}return B}(),icon:"cog"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return c("Retro")}return B}(),icon:"adjust"})]})]})})},s=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.idInserted,p=l.idLink,v=l.cartridge_name,b=l.touch_silent;return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"R.E.T.R.O Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Retro Theme",onClick:function(){function g(){return c("Retro")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Touch Sounds",children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:!b,content:b?"Disabled":"Enabled",onClick:function(){function g(){return c("TouchSounds")}return g}()})}),!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cartridge",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return c("Eject")}return g}(),content:v})}),!!h&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function g(){return c("Authenticate")}return g}(),content:p})})]})})},m=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=d.setSettingsMode,p=l.app,v=l.useRetro;return(0,e.createComponentVNode)(2,t.Box,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:v?"#6f7961":"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"33%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",iconColor:p.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){function b(){return c("Back")}return b}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"33%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",iconColor:p.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){function b(){h(!1),c("Home")}return b}()})})]})})}},77222:function(x,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007);function f(s,m){var u=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(u)return(u=u.call(s)).next.bind(u);if(Array.isArray(s)||(u=V(s))||m&&s&&typeof s.length=="number"){u&&(s=u);var d=0;return function(){return d>=s.length?{done:!0}:{done:!1,value:s[d++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(s,m){if(s){if(typeof s=="string")return y(s,m);var u=Object.prototype.toString.call(s).slice(8,-1);if(u==="Object"&&s.constructor&&(u=s.constructor.name),u==="Map"||u==="Set")return Array.from(s);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return y(s,m)}}function y(s,m){(m==null||m>s.length)&&(m=s.length);for(var u=0,d=new Array(m);u=.5&&"good"||u>.15&&"average"||"bad";return(0,e.createComponentVNode)(2,o.Window,{width:450,height:340,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!m.anchored&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Generator not anchored."}),(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power switch",children:(0,e.createComponentVNode)(2,t.Button,{icon:m.active?"power-off":"times",onClick:function(){function i(){return s("toggle_power")}return i}(),selected:m.active,disabled:!m.ready_to_boot,children:m.active?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel Type",buttons:m.fuel_stored>=1&&(0,e.createComponentVNode)(2,t.Button,{ml:1,icon:"eject",disabled:m.active,onClick:function(){function i(){return s("eject")}return i}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,t.Box,{color:d,children:[m.fuel_stored,"cm\xB3 ",m.sheet_name]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.fuel_stored/m.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[m.fuel_stored,"cm\xB3 / ",m.fuel_capacity,"cm\xB3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel Usage",children:[m.fuel_usage," cm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m.temperature_current,maxValue:m.temperature_max+30,color:m.temperature_overheat?"bad":"good",children:[(0,f.round)(m.temperature_current),"\xB0C"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current output",color:m.unsafe_output?"bad":null,children:m.power_output}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adjust output",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",onClick:function(){function i(){return s("lower_power")}return i}(),children:m.power_generated}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",onClick:function(){function i(){return s("higher_power")}return i}(),children:m.power_generated})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power available",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!m.connected&&"bad",children:m.connected?m.power_available:"Unconnected"})})]})})]})})}return y}()},68919:function(x,r,n){"use strict";r.__esModule=!0,r.PortablePump=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(6541),V=r.PortablePump=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.direction,d=m.target_pressure,i=m.default_pressure,c=m.min_pressure,l=m.max_pressure;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:375,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.PortableBasicInfo),(0,e.createComponentVNode)(2,t.Section,{title:"Pump",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sign-in-alt":"sign-out-alt",content:u?"In":"Out",selected:u,onClick:function(){function h(){return s("direction")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output",children:(0,e.createComponentVNode)(2,t.Slider,{mt:"0.4em",animated:!0,minValue:c,maxValue:l,value:d,unit:"kPa",stepPixelSize:.3,onChange:function(){function h(p,v){return s("pressure",{pressure:v})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",disabled:d===c,onClick:function(){function h(){return s("pressure",{pressure:"min"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",disabled:d===i,onClick:function(){function h(){return s("pressure",{pressure:"reset"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",disabled:d===l,onClick:function(){function h(){return s("pressure",{pressure:"max"})}return h}()})]})]})})]})})}return y}()},3042:function(x,r,n){"use strict";r.__esModule=!0,r.PortableScrubber=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(6541),V=r.PortableScrubber=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.rate,d=m.minrate,i=m.maxrate;return(0,e.createComponentVNode)(2,o.Window,{width:320,height:350,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,f.PortableBasicInfo),(0,e.createComponentVNode)(2,t.Section,{title:"Power Regulator",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume Rate",children:(0,e.createComponentVNode)(2,t.Slider,{mt:"0.4em",animated:!0,minValue:d,maxValue:i,value:u,unit:"L/s",onChange:function(){function c(l,h){return s("volume_adj",{vol:h})}return c}()})})})})]})})}return y}()},11692:function(x,r,n){"use strict";r.__esModule=!0,r.PortableTurret=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.PortableTurret=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.locked,u=s.on,d=s.lethal,i=s.lethal_is_configurable,c=s.targetting_is_configurable,l=s.check_weapons,h=s.neutralize_noaccess,p=s.neutralize_norecord,v=s.neutralize_criminals,b=s.neutralize_all,g=s.neutralize_nonsynth,N=s.neutralize_unidentified,B=s.neutralize_down;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",m?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"On":"Off",selected:u,disabled:m,onClick:function(){function S(){return C("power")}return S}()})}),!!i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lethals",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"exclamation-triangle":"times",content:d?"On":"Off",color:d?"bad":"",disabled:m,onClick:function(){function S(){return C("lethal")}return S}()})})]})}),!!c&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Humanoid Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Wanted Criminals",disabled:m,onClick:function(){function S(){return C("autharrest")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:p,content:"No Sec Record",disabled:m,onClick:function(){function S(){return C("authnorecord")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:l,content:"Unauthorized Weapons",disabled:m,onClick:function(){function S(){return C("authweapon")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Unauthorized Access",disabled:m,onClick:function(){function S(){return C("authaccess")}return S}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Other Targets",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:m,onClick:function(){function S(){return C("authxeno")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"All Non-Synthetics",disabled:m,onClick:function(){function S(){return C("authsynth")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"Downed Targets",disabled:m,onClick:function(){function S(){return C("authdown")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:m,onClick:function(){function S(){return C("authall")}return S}()})]})],4)]})})}return V}()},81757:function(x,r,n){"use strict";r.__esModule=!0,r.powerRank=r.PowerMonitorFocus=r.PowerMonitorContent=r.PowerMonitor=r.AreaCharge=void 0;var e=n(58734),a=n(45445),t=n(75671),o=n(5339),f=n(59641),V=n(54777),y=n(35239),k=n(47007),C=5e5,s=r.powerRank=function(){function l(h){var p=String(h.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(p)}return l}(),m=r.PowerMonitor=function(){function l(){return(0,e.createComponentVNode)(2,k.Window,{width:550,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,u)})})}return l}(),u=r.PowerMonitorContent=function(){function l(h){var p=(0,V.useBackend)(),v=p.act,b=p.data,g=b.map_levels,N=b.all_sensors,B=b.focus;if(B)return(0,e.createComponentVNode)(2,d,{focus:B});var S=(0,e.createComponentVNode)(2,y.Box,{color:"bad",children:"No sensors detected"});return N&&(S=(0,e.createComponentVNode)(2,y.Table,{children:N.map(function(L){return(0,e.createComponentVNode)(2,y.Table.Row,{children:(0,e.createComponentVNode)(2,y.Table.Cell,{children:(0,e.createComponentVNode)(2,y.Button,{content:L.name,icon:L.alarm?"bell":"sign-in-alt",onClick:function(){function I(){return v("setsensor",{id:L.name})}return I}()})})},L.name)})})),(0,e.createComponentVNode)(2,y.Section,{title:"No active sensor. Listing all.",buttons:(0,e.createComponentVNode)(2,y.Button,{content:"Scan For Sensors",icon:"undo",onClick:function(){function L(){return v("refresh")}return L}()}),children:S})}return l}(),d=r.PowerMonitorFocus=function(){function l(h){var p=(0,V.useBackend)(),v=p.act,b=p.data,g=h.focus,N=g.history,B=(0,V.useLocalState)("sortByField",null),S=B[0],L=B[1],I=N.supply[N.supply.length-1]||0,w=N.demand[N.demand.length-1]||0,T=N.supply.map(function(R,O){return[O,R]}),E=N.demand.map(function(R,O){return[O,R]}),A=Math.max.apply(Math,[C].concat(N.supply,N.demand)),M=(0,t.flow)([(0,a.map)(function(R,O){return Object.assign({},R,{id:R.name+O})}),S==="name"&&(0,a.sortBy)(function(R){return R.name}),S==="charge"&&(0,a.sortBy)(function(R){return-R.charge}),S==="draw"&&(0,a.sortBy)(function(R){return-s(R.load)},function(R){return-parseFloat(R.load)}),S==="problems"&&(0,a.sortBy)(function(R){return R.eqp},function(R){return R.lgt},function(R){return R.env},function(R){return R.charge},function(R){return R.name})])(g.areas);return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Section,{title:g.name,buttons:(0,e.createComponentVNode)(2,y.Button,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){function R(){return v("clear")}return R}()})}),(0,e.createComponentVNode)(2,y.Flex,{mx:-.5,mb:1,children:[(0,e.createComponentVNode)(2,y.Flex.Item,{mx:.5,width:"200px",children:(0,e.createComponentVNode)(2,y.Section,{children:(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Supply",children:(0,e.createComponentVNode)(2,y.ProgressBar,{value:I,minValue:0,maxValue:A,color:"teal",children:(0,o.toFixed)(I/1e3)+" kW"})}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Draw",children:(0,e.createComponentVNode)(2,y.ProgressBar,{value:w,minValue:0,maxValue:A,color:"pink",children:(0,o.toFixed)(w/1e3)+" kW"})})]})})}),(0,e.createComponentVNode)(2,y.Flex.Item,{mx:.5,grow:1,children:(0,e.createComponentVNode)(2,y.Section,{position:"relative",height:"100%",children:[(0,e.createComponentVNode)(2,y.Chart.Line,{fillPositionedParent:!0,data:T,rangeX:[0,T.length-1],rangeY:[0,A],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,e.createComponentVNode)(2,y.Chart.Line,{fillPositionedParent:!0,data:E,rangeX:[0,E.length-1],rangeY:[0,A],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,e.createComponentVNode)(2,y.Section,{children:[(0,e.createComponentVNode)(2,y.Box,{mb:1,children:[(0,e.createComponentVNode)(2,y.Box,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,e.createComponentVNode)(2,y.Button.Checkbox,{checked:S==="name",content:"Name",onClick:function(){function R(){return L(S!=="name"&&"name")}return R}()}),(0,e.createComponentVNode)(2,y.Button.Checkbox,{checked:S==="charge",content:"Charge",onClick:function(){function R(){return L(S!=="charge"&&"charge")}return R}()}),(0,e.createComponentVNode)(2,y.Button.Checkbox,{checked:S==="draw",content:"Draw",onClick:function(){function R(){return L(S!=="draw"&&"draw")}return R}()}),(0,e.createComponentVNode)(2,y.Button.Checkbox,{checked:S==="problems",content:"Problems",onClick:function(){function R(){return L(S!=="problems"&&"problems")}return R}()})]}),(0,e.createComponentVNode)(2,y.Table,{children:[(0,e.createComponentVNode)(2,y.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,y.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,y.Table.Cell,{collapsing:!0,children:"Charge"}),(0,e.createComponentVNode)(2,y.Table.Cell,{textAlign:"right",children:"Draw"}),(0,e.createComponentVNode)(2,y.Table.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,e.createComponentVNode)(2,y.Table.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,e.createComponentVNode)(2,y.Table.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),M.map(function(R,O){return(0,e.createVNode)(1,"tr","Table__row candystripe",[(0,e.createVNode)(1,"td",null,R.name,0),(0,e.createVNode)(1,"td","Table__cell text-right text-nowrap",(0,e.createComponentVNode)(2,i,{charging:R.charging,charge:R.charge}),2),(0,e.createVNode)(1,"td","Table__cell text-right text-nowrap",R.load,0),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:R.eqp}),2),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:R.lgt}),2),(0,e.createVNode)(1,"td","Table__cell text-center text-nowrap",(0,e.createComponentVNode)(2,c,{status:R.env}),2)],4,null,R.id)})]})]})],4)}return l}(),i=r.AreaCharge=function(){function l(h){var p=h.charging,v=h.charge;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Icon,{width:"18px",textAlign:"center",name:p===0&&(v>50?"battery-half":"battery-quarter")||p===1&&"bolt"||p===2&&"battery-full",color:p===0&&(v>50?"yellow":"red")||p===1&&"yellow"||p===2&&"green"}),(0,e.createComponentVNode)(2,y.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)}return l}();i.defaultHooks=f.pureComponentHooks;var c=function(h){var p=h.status,v=!!(p&2),b=!!(p&1),g=(v?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,y.ColorBox,{color:v?"good":"bad",content:b?void 0:"M",title:g})};c.defaultHooks=f.pureComponentHooks},94479:function(x,r,n){"use strict";r.__esModule=!0,r.PressureRegulator=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.PressureRegulator=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.on,u=s.pressure_set,d=s.max_pressure,i=s.input_pressure,c=s.output_pressure,l=s.regulate_mode,h=s.set_flow_rate,p=s.last_flow_rate;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:370,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i/100})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Pressure",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c/100})," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:p/10})," L/s"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:m?"Unlocked":"Closed",selected:m,onClick:function(){function v(){return C("toggle_valve")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Regulation",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"Off",selected:l===0,onClick:function(){function v(){return C("regulate_mode",{mode:"off"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"Input",selected:l===1,onClick:function(){function v(){return C("regulate_mode",{mode:"input"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"Output",selected:l===2,onClick:function(){function v(){return C("regulate_mode",{mode:"output"})}return v}()})],4)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Output Pressure",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){function v(){return C("set_press",{press:"min"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function v(){return C("set_press",{press:"max"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function v(){return C("set_press",{press:"set"})}return v}()})],4),children:[u/100," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Flow Rate Limit",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){function v(){return C("set_flow_rate",{press:"min"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){function v(){return C("set_flow_rate",{press:"max"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"SET",onClick:function(){function v(){return C("set_flow_rate",{press:"set"})}return v}()})],4),children:[h/10," L/s"]})]})})]})})}return V}()},14984:function(x,r,n){"use strict";r.__esModule=!0,r.PrisonerManagement=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.PrisonerManagement=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.locked,u=s.chemImplants,d=s.trackImplants;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:m&&(0,e.createComponentVNode)(2,t.Section,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlock",onClick:function(){function i(){return C("lock")}return i}(),children:"Unlock"})})]})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Interface Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",onClick:function(){function i(){return C("lock")}return i}(),children:"Lock Interface"})}),(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Implants",children:u.length&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Host"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Inject"})]}),u.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i.host}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[i.units,"u remaining"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function c(){return C("inject",{imp:i.ref,val:1})}return c}(),children:"(1)"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function c(){return C("inject",{imp:i.ref,val:5})}return c}(),children:"(5)"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function c(){return C("inject",{imp:i.ref,val:10})}return c}(),children:"(10)"})]})]},i.ref)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No chemical implants found."})}),(0,e.createComponentVNode)(2,t.Section,{title:"Tracking Implants",children:d.length&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Host"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Location"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:"Message"})]}),d.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[i.host," (",i.id,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:i.loc}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function c(){return C("warn",{imp:i.ref})}return c}(),children:"Message"})})]},i.ref)})]})||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No chemical implants found."})})],4)})})}return V}()},34624:function(x,r,n){"use strict";r.__esModule=!0,r.RCONContent=r.RCON=void 0;var e=n(58734),a=n(5339),t=n(420),o=n(54777),f=n(35239),V=n(47007),y=n(40946),k=1e3,C=r.RCON=function(){function c(l){return(0,e.createComponentVNode)(2,V.Window,{width:630,height:540,resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,s)})})}return c}(),s=r.RCONContent=function(){function c(l){var h=(0,o.useLocalState)("tabIndex",0),p=h[0],v=h[1],b;return p===0?b=(0,e.createComponentVNode)(2,m):p===1&&(b=(0,e.createComponentVNode)(2,i)),(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:p===0,onClick:function(){function g(){return v(0)}return g}(),children:[(0,e.createComponentVNode)(2,f.Icon,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.createComponentVNode)(2,f.Tabs.Tab,{selected:p===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,f.Icon,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.createComponentVNode)(2,f.Box,{m:2,children:b})],4)}return c}(),m=function(l){var h=(0,o.useBackend)(),p=h.act,v=h.data,b=v.smes_info,g=v.pages,N=v.current_page,B=function(L){return L()};return(0,e.createComponentVNode)(2,f.Section,{title:"SMESs (Page "+N+")",children:[(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,children:b.map(function(S){return(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,u,{smes:S})},S.RCON_tag)})}),"Page Selection:",(0,e.createVNode)(1,"br"),B(function(){for(var S=[],L=function(T){S.push((0,e.createComponentVNode)(2,f.Button,{selected:N===T,onClick:function(){function E(){return p("set_smes_page",{index:T})}return E}(),children:T},T))},I=1;I=2?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.createComponentVNode)(2,t.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Engage: ",v.engagecost]}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Active: ",v.activecost]}),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:["Passive: ",v.passivecost]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:v.desc})]}),v.charges?(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Module Charges",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected",children:(0,f.capitalize)(v.chargetype)}),v.charges.map(function(g,N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.capitalize)(g.caption),children:(0,e.createComponentVNode)(2,t.Button,{selected:v.realchargetype===g.index,icon:"arrow-right",onClick:function(){function B(){return d("interact_module",{module:v.index,module_mode:"select_charge_type",charge_type:g.index})}return B}()})},g.caption)})]})})}):null]},v.name)})]})}},72802:function(x,r,n){"use strict";r.__esModule=!0,r.Radio=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(61994),V=n(47007),y=r.Radio=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.rawfreq,i=u.minFrequency,c=u.maxFrequency,l=u.listening,h=u.broadcasting,p=u.subspace,v=u.subspaceSwitchable,b=u.chan_list,g=u.loudspeaker,N=u.mic_cut,B=u.spk_cut,S=u.useSyndMode,L=f.RADIO_CHANNELS.find(function(w){return w.freq===Number(d)}),I=156;return b&&b.length>0?I+=b.length*28+6:I+=24,v&&(I+=38),(0,e.createComponentVNode)(2,V.Window,{width:310,height:I,resizable:!0,theme:S?"syndicate":"",children:(0,e.createComponentVNode)(2,V.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:i/10,maxValue:c/10,value:d/10,format:function(){function w(T){return(0,a.toFixed)(T,1)}return w}(),onDrag:function(){function w(T,E){return m("setFrequency",{freq:(0,a.round)(E*10)})}return w}()}),L&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:L.color,ml:2,children:["[",L.name,"]"]})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Audio",children:[(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",width:"37px",icon:l?"volume-up":"volume-mute",selected:l,disabled:B,onClick:function(){function w(){return m("listen")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",width:"37px",icon:h?"microphone":"microphone-slash",selected:h,disabled:N,onClick:function(){function w(){return m("broadcast")}return w}()}),!!v&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"bullhorn",selected:p,content:"Subspace Tx "+(p?"ON":"OFF"),onClick:function(){function w(){return m("subspace")}return w}()})}),!!v&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:g?"volume-up":"volume-mute",selected:g,content:"Loudspeaker",onClick:function(){function w(){return m("toggleLoudspeaker")}return w}()})})]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Channels",children:[(!b||b.length===0)&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.createComponentVNode)(2,o.LabeledList,{children:b?b.map(function(w){var T=f.RADIO_CHANNELS.find(function(A){return A.freq===Number(w.freq)}),E="default";return T&&(E=T.color),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.display_name,labelColor:E,textAlign:"right",children:w.secure_channel&&p?(0,e.createComponentVNode)(2,o.Button,{icon:w.sec_channel_listen?"square-o":"check-square-o",selected:!w.sec_channel_listen,content:w.sec_channel_listen?"Off":"On",onClick:function(){function A(){return m("channel",{channel:w.chan})}return A}()}):(0,e.createComponentVNode)(2,o.Button,{content:"Switch",selected:w.chan===d,onClick:function(){function A(){return m("specFreq",{channel:w.chan})}return A}()})},w.chan)}):null})]})]})})}return k}()},3386:function(x,r,n){"use strict";r.__esModule=!0,r.RapidPipeDispenser=r.ICON_BY_CATEGORY_NAME=void 0;var e=n(58734),a=n(59641),t=n(40946),o=n(54777),f=n(35239),V=n(47007),y=["Atmospherics","Disposals"],k=r.ICON_BY_CATEGORY_NAME={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"},C=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],s=function(c){var l=(0,o.useBackend)(),h=l.act,p=l.data,v=p.category,b=p.selected_color,g=p.mode;return(0,e.createComponentVNode)(2,f.Section,{children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Category",children:y.map(function(N,B){return(0,e.createComponentVNode)(2,f.Button,{selected:v===B,icon:k[N],color:"transparent",onClick:function(){function S(){return h("category",{category:B})}return S}(),children:N},N)})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Modes",children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:C.map(function(N){return(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Button.Checkbox,{checked:g&N.bitmask,fluid:!0,content:N.name,onClick:function(){function B(){return h("mode",{mode:N.bitmask})}return B}()})},N.bitmask)})})}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Color",children:[(0,e.createComponentVNode)(2,f.Box,{inline:!0,width:"64px",color:p.paint_colors[b],children:(0,t.capitalize)(b)}),Object.keys(p.paint_colors).map(function(N){return(0,e.createComponentVNode)(2,f.ColorBox,{ml:1,color:p.paint_colors[N],onClick:function(){function B(){return h("color",{paint_color:N})}return B}()},N)})]})]})})},m=function(c){var l=(0,o.useBackend)(),h=l.act,p=l.data,v=p.category,b=p.piping_layer,g=p.pipe_layers,N=p.preview_rows.flatMap(function(B){return B.previews});return(0,e.createComponentVNode)(2,f.Section,{fill:!0,width:7.5,children:[v===0&&(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,mb:1,children:Object.keys(g).map(function(B){return(0,e.createComponentVNode)(2,f.Stack.Item,{my:0,children:(0,e.createComponentVNode)(2,f.Button.Checkbox,{checked:g[B]===b,content:B,onClick:function(){function S(){return h("piping_layer",{piping_layer:g[B]})}return S}()})},B)})}),(0,e.createComponentVNode)(2,f.Box,{width:"120px",children:N.map(function(B){return(0,e.createComponentVNode)(2,f.Button,{ml:0,title:B.dir_name,selected:B.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){function S(){return h("setdir",{dir:B.dir,flipped:B.flipped})}return S}(),children:(0,e.createComponentVNode)(2,f.Box,{className:(0,a.classes)(["pipes32x32",B.dir+"-"+B.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},B.dir)})})]})},u=function(c){var l=(0,o.useBackend)(),h=l.act,p=l.data,v=p.categories,b=v===void 0?[]:v,g=(0,o.useLocalState)("categoryName"),N=g[0],B=g[1],S=b.find(function(L){return L.cat_name===N})||b[0];return(0,e.createComponentVNode)(2,f.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,f.Tabs,{children:b.map(function(L,I){return(0,e.createComponentVNode)(2,f.Tabs.Tab,{fluid:!0,icon:k[L.cat_name],selected:L.cat_name===S.cat_name,onClick:function(){function w(){return B(L.cat_name)}return w}(),children:L.cat_name},L.cat_name)})}),S==null?void 0:S.recipes.map(function(L){return(0,e.createComponentVNode)(2,f.Button.Checkbox,{fluid:!0,ellipsis:!0,checked:L.selected,content:L.pipe_name,title:L.pipe_name,onClick:function(){function I(){return h("pipe_type",{pipe_type:L.pipe_index,category:S.cat_name})}return I}()},L.pipe_index)})]})},d=r.RapidPipeDispenser=function(){function i(c){var l=(0,o.useBackend)(),h=l.act,p=l.data,v=p.category;return(0,e.createComponentVNode)(2,V.Window,{width:550,height:570,children:(0,e.createComponentVNode)(2,V.Window.Content,{children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,u)})]})})]})})})}return i}()},2853:function(x,r,n){"use strict";r.__esModule=!0,r.RequestConsole=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=0,y=1,k=2,C=3,s=4,m=5,u=6,d=7,i=8,c=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.silent;return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,o.Button,{selected:!R,icon:R?"volume-mute":"volume-up",onClick:function(){function O(){return A("toggleSilent")}return O}(),children:["Speaker ",R?"OFF":"ON"]})})},l=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.department,O=M.supply_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Supplies",children:(0,e.createComponentVNode)(2,v,{dept_list:O,department:R})})},h=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.department,O=M.assist_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Request assistance from another department",children:(0,e.createComponentVNode)(2,v,{dept_list:O,department:R})})},p=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.department,O=M.info_dept;return(0,e.createComponentVNode)(2,o.Section,{title:"Report Anonymous Information",children:(0,e.createComponentVNode)(2,v,{dept_list:O,department:R})})},v=function(T){var E=(0,t.useBackend)(),A=E.act,M=T.dept_list,R=T.department;return(0,e.createComponentVNode)(2,o.LabeledList,{children:M.sort().map(function(O){return O!==R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:O,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"envelope-open-text",onClick:function(){function F(){return A("write",{write:O,priority:1})}return F}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"exclamation-triangle",onClick:function(){function F(){return A("write",{write:O,priority:2})}return F}(),children:"High Priority"})],4)})||null})})},b=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",onClick:function(){function R(){return A("setScreen",{setScreen:V})}return R}(),children:"Continue"})})]})},g=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",onClick:function(){function R(){return A("setScreen",{setScreen:V})}return R}(),children:"Continue"})})]})},N=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.message_log;return(0,e.createComponentVNode)(2,o.Section,{title:"Messages",children:R.length&&R.map(function(O,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.decodeHtmlEntities)(O[0]),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function D(){return A("print",{print:F+1})}return D}(),children:"Print"}),children:(0,a.decodeHtmlEntities)(O[1])},F)})||(0,e.createComponentVNode)(2,o.Box,{children:"No messages."})})},B=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.message,O=M.recipient,F=M.priority,D=M.msgStamped,j=M.msgVerified;return(0,e.createComponentVNode)(2,o.Section,{title:"Message Authentication",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Message for "+O,children:R}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Priority",children:F===2?"High Priority":F===1?"Normal Priority":"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Validated By",color:j?"good":"bad",children:(0,a.decodeHtmlEntities)(j)||"No Validation"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stamped By",color:D?"good":"bad",children:(0,a.decodeHtmlEntities)(D)||"No Stamp"})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"share",onClick:function(){function _(){return A("department",{department:O})}return _}(),children:"Send Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function _(){return A("setScreen",{setScreen:V})}return _}(),children:"Back"})]})},S=function(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.department,O=M.screen,F=M.message_log,D=M.newmessagepriority,j=M.silent,_=M.announcementConsole,z=M.assist_dept,H=M.supply_dept,Q=M.info_dept,Y=M.message,X=M.recipient,$=M.priority,G=M.msgStamped,Z=M.msgVerified,te=M.announceAuth;return(0,e.createComponentVNode)(2,o.Section,{title:"Send Station-Wide Announcement",children:[te&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.createComponentVNode)(2,o.Section,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"pen",onClick:function(){function q(){return A("writeAnnouncement")}return q}(),children:"Edit"}),children:Y||"No Message"})],4)||(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,o.Button,{disabled:!Y||!te,icon:"share",onClick:function(){function q(){return A("sendAnnouncement")}return q}(),children:"Announce"}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function q(){return A("setScreen",{setScreen:V})}return q}(),children:"Back"})]})},L={};L[V]=c,L[y]=h,L[k]=l,L[C]=p,L[s]=b,L[m]=g,L[u]=N,L[d]=B,L[i]=S;var I=r.RequestConsole=function(){function w(T){var E=(0,t.useBackend)(),A=E.act,M=E.data,R=M.screen,O=M.newmessagepriority,F=M.announcementConsole,D=L[R];return(0,e.createComponentVNode)(2,f.Window,{width:520,height:410,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===u,onClick:function(){function j(){return A("setScreen",{setScreen:u})}return j}(),icon:"envelope-open-text",children:"Messages"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===y,onClick:function(){function j(){return A("setScreen",{setScreen:y})}return j}(),icon:"share-square",children:"Assistance"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===k,onClick:function(){function j(){return A("setScreen",{setScreen:k})}return j}(),icon:"share-square",children:"Supplies"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===C,onClick:function(){function j(){return A("setScreen",{setScreen:C})}return j}(),icon:"share-square-o",children:"Report"}),F&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===i,onClick:function(){function j(){return A("setScreen",{setScreen:i})}return j}(),icon:"volume-up",children:"Announce"})||null,(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===V,onClick:function(){function j(){return A("setScreen",{setScreen:V})}return j}(),icon:"cog"})]}),O&&(0,e.createComponentVNode)(2,o.Section,{title:O>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:O>1?"bad":"average",bold:O>1})||null,(0,e.createComponentVNode)(2,D)]})})}return w}()},79402:function(x,r,n){"use strict";r.__esModule=!0,r.ResearchConsole=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.tech;return(0,e.createComponentVNode)(2,o.Section,{title:"Current Research Levels",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function L(){return N("print",{print:1})}return L}(),children:"Print This Page"}),children:(0,e.createComponentVNode)(2,o.Table,{children:S.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:L.name}),(0,e.createComponentVNode)(2,o.Box,{children:[" - Level ",L.level]})]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:L.desc})})]},L.name)})})})},y=function(b){var g=(0,t.useBackend)(),N=g.data,B=b.title,S=b.target,L=N[S];return typeof L=="number"?B+" - Page "+(L+1):B},k=function(b){var g=(0,t.useBackend)(),N=g.act,B=b.target;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"undo",onClick:function(){function S(){return N(B,{reset:!0})}return S}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"chevron-left",onClick:function(){function S(){return N(B,{reverse:-1})}return S}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"chevron-right",onClick:function(){function S(){return N(B,{reverse:1})}return S}()})],4)},C=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.designs;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,y,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function L(){return N("print",{print:2})}return L}(),children:"Print This Page"}),(0,e.createComponentVNode)(2,k,{target:"design_page"})||null],0),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function L(I,w){return N("search",{search:w})}return L}(),mb:1}),S&&S.length&&(0,e.createComponentVNode)(2,o.LabeledList,{children:S.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.name,children:L.desc},L.name)})})||(0,e.createComponentVNode)(2,o.Box,{color:"warning",children:"No designs found."})]})},s=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.tech,L=b.disk;if(!L||!L.present)return null;var I=(0,t.useSharedState)("saveDialogTech",!1),w=I[0],T=I[1];return w?(0,e.createComponentVNode)(2,o.Section,{title:"Load Technology to Disk",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return T(!1)}return E}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:S.map(function(E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:E.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){T(!1),N("copy_tech",{copy_tech_ID:E.id})}return A}(),children:"Copy To Disk"})},E.name)})})}):(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),L.stored&&(0,e.createComponentVNode)(2,o.Box,{mt:2,children:[(0,e.createComponentVNode)(2,o.Box,{children:L.name}),(0,e.createComponentVNode)(2,o.Box,{children:["Level: ",L.level]}),(0,e.createComponentVNode)(2,o.Box,{children:["Description: ",L.desc]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function E(){return N("updt_tech")}return E}(),children:"Upload to Database"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function E(){return N("clear_tech")}return E}(),children:"Clear Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function E(){return N("eject_tech")}return E}(),children:"Eject Disk"})]})]})||(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{children:"This disk has no data stored on it."}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function E(){return T(!0)}return E}(),children:"Load Tech To Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function E(){return N("eject_tech")}return E}(),children:"Eject Disk"})]})]})},m=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.designs,L=b.disk;if(!L||!L.present)return null;var I=(0,t.useSharedState)("saveDialogData",!1),w=I[0],T=I[1];return w?(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,y,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return T(!1)}return E}()}),(0,e.createComponentVNode)(2,k,{target:"design_page"})||null],0),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function E(A,M){return N("search",{search:M})}return E}(),mb:1}),S&&S.length&&(0,e.createComponentVNode)(2,o.LabeledList,{children:S.map(function(E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:E.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function A(){T(!1),N("copy_design",{copy_design_ID:E.id})}return A}(),children:"Copy To Disk"})},E.name)})})||(0,e.createComponentVNode)(2,o.Box,{color:"warning",children:"No designs found."})]}):(0,e.createComponentVNode)(2,o.Box,{children:L.stored&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:L.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Lathe Type",children:L.build_type}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Required Materials",children:Object.keys(L.materials).map(function(E){return(0,e.createComponentVNode)(2,o.Box,{children:[E," x ",L.materials[E]]},E)})})]}),(0,e.createComponentVNode)(2,o.Box,{mt:1,children:[(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function E(){return N("updt_design")}return E}(),children:"Upload to Database"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function E(){return N("clear_design")}return E}(),children:"Clear Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function E(){return N("eject_design")}return E}(),children:"Eject Disk"})]})]})||(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{mb:.5,children:"This disk has no data stored on it."}),(0,e.createComponentVNode)(2,o.Button,{icon:"save",onClick:function(){function E(){return T(!0)}return E}(),children:"Load Design To Disk"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function E(){return N("eject_design")}return E}(),children:"Eject Disk"})]})})},u=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.info,L=S.d_disk,I=S.t_disk;return!L.present&&!I.present?(0,e.createComponentVNode)(2,o.Section,{title:"Disk Operations",children:"No disk inserted."}):(0,e.createComponentVNode)(2,o.Section,{title:"Disk Operations",children:[(0,e.createComponentVNode)(2,s,{disk:I}),(0,e.createComponentVNode)(2,m,{disk:L})]})},d=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.info.linked_destroy;if(!S.present)return(0,e.createComponentVNode)(2,o.Section,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var L=S.loaded_item,I=S.origin_tech;return(0,e.createComponentVNode)(2,o.Section,{title:"Destructive Analyzer",children:L&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:L}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Origin Tech",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.length&&I.map(function(w){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.name,children:[w.level,"\xA0\xA0",w.current&&"(Current: "+w.current+")"]},w.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,color:"red",icon:"eraser",onClick:function(){function w(){return N("deconstruct")}return w}(),children:"Deconstruct Item"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function w(){return N("eject_item")}return w}(),children:"Eject Item"})]})||(0,e.createComponentVNode)(2,o.Box,{children:"No Item Loaded. Standing-by..."})})},i=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=b.target,L=b.designs,I=b.buildName,w=b.buildFiveName;return S?(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,y,{target:"builder_page",title:"Designs"}),buttons:(0,e.createComponentVNode)(2,k,{target:"builder_page"}),children:[(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search for...",value:B.search,onInput:function(){function T(E,A){return N("search",{search:A})}return T}(),mb:1}),L&&L.length?L.map(function(T){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex,{width:"100%",justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:"40%",style:{"word-wrap":"break-all"},children:T.name}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:"15%",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{mb:-1,icon:"wrench",onClick:function(){function E(){return N(I,{build:T.id,imprint:T.id})}return E}(),children:"Build"}),w&&(0,e.createComponentVNode)(2,o.Button,{mb:-1,onClick:function(){function E(){return N(w,{build:T.id,imprint:T.id})}return E}(),children:"x5"})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:T.mat_list.join(" ")}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"average",ml:1,children:T.chem_list.join(" ")})]})]}),(0,e.createComponentVNode)(2,o.Divider)],4,T.id)}):(0,e.createComponentVNode)(2,o.Box,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Error"})},c=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=b.name,L=null,I=null;if(S==="Protolathe"?(L=B.info.linked_lathe,I=B.lathe_designs):(L=B.info.linked_imprinter,I=B.imprinter_designs),!L||!L.present)return(0,e.createComponentVNode)(2,o.Section,{title:S,children:["No ",S," found."]});var w=L,T=w.total_materials,E=w.max_materials,A=w.total_volume,M=w.max_volume,R=w.busy,O=w.mats,F=w.reagents,D=w.queue,j=(0,t.useSharedState)("protoTab",0),_=j[0],z=j[1],H="transparent",Q=!1,Y="layer-group";R?(Y="hammer",H="average",Q=!0):D&&D.length&&(Y="sync",H="green",Q=!0);var X=S==="Protolathe"?"removeP":"removeI",$=S==="Protolathe"?"lathe_ejectsheet":"imprinter_ejectsheet",G=S==="Protolathe"?"disposeP":"disposeI",Z=S==="Protolathe"?"disposeallP":"disposeallI";return(0,e.createComponentVNode)(2,o.Section,{title:S,buttons:R&&(0,e.createComponentVNode)(2,o.Icon,{name:"sync",spin:!0})||null,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Materials",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:T,maxValue:E,children:[T," cm\xB3 / ",E," cm\xB3"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Chemicals",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:A,maxValue:M,children:[A,"u / ",M,"u"]})})]}),(0,e.createComponentVNode)(2,o.Tabs,{mt:1,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:_===0,onClick:function(){function te(){return z(0)}return te}(),children:"Build"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:Y,iconSpin:Q,color:H,selected:_===1,onClick:function(){function te(){return z(1)}return te}(),children:"Queue"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"cookie-bite",selected:_===2,onClick:function(){function te(){return z(2)}return te}(),children:"Mat Storage"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"flask",selected:_===3,onClick:function(){function te(){return z(3)}return te}(),children:"Chem Storage"})]}),_===0&&(0,e.createComponentVNode)(2,i,{target:L,designs:I,buildName:S==="Protolathe"?"build":"imprint",buildFiveName:S==="Protolathe"?"buildfive":null})||_===1&&(0,e.createComponentVNode)(2,o.LabeledList,{children:D.length&&D.map(function(te){return te.index===1?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:te.name,labelColor:"bad",children:R?(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"trash",children:"Remove"}):(0,e.createComponentVNode)(2,o.Box,{children:["(Awaiting Materials)",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"trash",onClick:function(){function q(){var me;return N(X,(me={},me[X]=te.index,me))}return q}(),children:"Remove"})]})}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:te.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function q(){var me;return N(X,(me={},me[X]=te.index,me))}return q}(),children:"Remove"})},te.name)})||(0,e.createComponentVNode)(2,o.Box,{m:1,children:"Queue Empty."})})||_===2&&(0,e.createComponentVNode)(2,o.LabeledList,{children:O.map(function(te){var q=(0,t.useLocalState)("ejectAmt"+te.name,0),me=q[0],pe=q[1];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(te.name),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{minValue:0,width:"100px",value:me,maxValue:te.sheets,onDrag:function(){function Ne(le,re){return pe(re)}return Ne}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!te.removable,onClick:function(){function Ne(){var le;pe(0),N($,(le={},le[$]=te.name,le.amount=me,le))}return Ne}(),children:"Num"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!te.removable,onClick:function(){function Ne(){var le;return N($,(le={},le[$]=te.name,le.amount=50,le))}return Ne}(),children:"All"})],4),children:[te.amount," cm\xB3"]},te.name)})})||_===3&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:F.length&&F.map(function(te){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:te.name,children:[te.volume,"u",(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"eject",onClick:function(){function q(){return N(G,{dispose:te.id})}return q}(),children:"Purge"})]},te.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",children:"No chems detected"})}),(0,e.createComponentVNode)(2,o.Button,{mt:1,icon:"trash",onClick:function(){function te(){return N(Z)}return te}(),children:"Disposal All Chemicals In Storage"})]})||(0,e.createComponentVNode)(2,o.Box,{children:"Error"})]})},l=function(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.info,L=S.sync,I=S.linked_destroy,w=S.linked_imprinter,T=S.linked_lathe,E=(0,t.useSharedState)("settingsTab",0),A=E[0],M=E[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"cogs",onClick:function(){function R(){return M(0)}return R}(),selected:A===0,children:"General"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"link",onClick:function(){function R(){return M(1)}return R}(),selected:A===1,children:"Device Linkages"})]}),A===0&&(0,e.createComponentVNode)(2,o.Box,{children:[L&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"sync",onClick:function(){function R(){return N("sync")}return R}(),children:"Sync Database with Network"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"unlink",onClick:function(){function R(){return N("togglesync")}return R}(),children:"Disconnect from Research Network"})],4)||(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"link",onClick:function(){function R(){return N("togglesync")}return R}(),children:"Connect to Research Network"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"lock",onClick:function(){function R(){return N("lock")}return R}(),children:"Lock Console"}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"red",icon:"trash",onClick:function(){function R(){return N("reset")}return R}(),children:"Reset R&D Database"})]})||A===1&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"sync",mb:1,onClick:function(){function R(){return N("find_device")}return R}(),children:"Re-sync with Nearby Devices"}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[I.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Destructive Analyzer",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function R(){return N("disconnect",{disconnect:"destroy"})}return R}(),children:"Disconnect"})})||null,T.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Protolathe",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function R(){return N("disconnect",{disconnect:"lathe"})}return R}(),children:"Disconnect"})})||null,w.present&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Circuit Imprinter",children:(0,e.createComponentVNode)(2,o.Button,{icon:"unlink",onClick:function(){function R(){return N("disconnect",{disconnect:"imprinter"})}return R}(),children:"Disconnect"})})||null]})]})||(0,e.createComponentVNode)(2,o.Box,{children:"Error"})]})},h=[{name:"Protolathe",icon:"wrench",template:(0,e.createComponentVNode)(2,c,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,e.createComponentVNode)(2,c,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,e.createComponentVNode)(2,d)},{name:"Settings",icon:"cog",template:(0,e.createComponentVNode)(2,l)},{name:"Research List",icon:"flask",template:(0,e.createComponentVNode)(2,V)},{name:"Design List",icon:"file",template:(0,e.createComponentVNode)(2,C)},{name:"Disk Operations",icon:"save",template:(0,e.createComponentVNode)(2,u)}],p=r.ResearchConsole=function(){function v(b){var g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.busy_msg,L=B.locked,I=(0,t.useSharedState)("rdmenu",0),w=I[0],T=I[1],E=!1;return(S||L)&&(E=!0),(0,e.createComponentVNode)(2,f.Window,{width:850,height:630,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Tabs,{children:h.map(function(A,M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:A.icon,selected:w===M,disabled:E,onClick:function(){function R(){return T(M)}return R}(),children:A.name},M)})}),S&&(0,e.createComponentVNode)(2,o.Section,{title:"Processing...",children:S})||L&&(0,e.createComponentVNode)(2,o.Section,{title:"Console Locked",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function A(){return N("lock")}return A}(),icon:"lock-open",children:"Unlock"})})||h[w].template]})})}return v}()},23925:function(x,r,n){"use strict";r.__esModule=!0,r.ResearchServerController=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(45445),V=r.ResearchServerController=function(){function u(d){var i=(0,a.useBackend)(),c=i.act,l=i.data;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:430,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,y)})})}return u}(),y=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.badmin,p=l.servers,v=l.consoles,b=(0,a.useSharedState)("selectedServer",null),g=b[0],N=b[1],B=p.find(function(S){return S.id===g});return B?(0,e.createComponentVNode)(2,k,{setSelectedServer:N,server:B}):(0,e.createComponentVNode)(2,t.Section,{title:"Server Selection",children:p.map(function(S){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",onClick:function(){function L(){return N(S.id)}return L}(),children:S.name})},S.name)})})},k=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.badmin,p=d.server,v=d.setSelectedServer,b=(0,a.useSharedState)("tab",0),g=b[0],N=b[1];return(0,e.createComponentVNode)(2,t.Section,{title:p.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",onClick:function(){function B(){return v(null)}return B}(),children:"Back"}),children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function B(){return N(0)}return B}(),children:"Access Rights"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function B(){return N(1)}return B}(),children:"Data Management"}),h&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function B(){return N(2)}return B}(),color:"red",children:"Server-to-Server Transfer"})||null]}),g===0&&(0,e.createComponentVNode)(2,C,{server:p})||null,g===1&&(0,e.createComponentVNode)(2,s,{server:p})||null,g===2&&h&&(0,e.createComponentVNode)(2,m,{server:p})||null]})},C=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=d.server,p=l.consoles,v=function(N,B){return N.id_with_upload.indexOf(B.id)!==-1},b=function(N,B){return N.id_with_download.indexOf(B.id)!==-1};return(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Consoles",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:p.length&&p.map(function(g){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:g.name+" ("+g.loc+")",children:[(0,e.createComponentVNode)(2,t.Button,{icon:v(h,g)?"lock-open":"lock",selected:v(h,g),onClick:function(){function N(){return c("toggle_upload",{server:h.ref,console:g.ref})}return N}(),children:v(h,g)?"Upload On":"Upload Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:b(h,g)?"lock-open":"lock",selected:b(h,g),onClick:function(){function N(){return c("toggle_download",{server:h.ref,console:g.ref})}return N}(),children:b(h,g)?"Download On":"Download Off"})]},g.name)})})})},s=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=d.server;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Research Levels",children:h.tech.map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){function v(){return c("reset_tech",{server:h.ref,tech:p.id})}return v}()})},p.name)})}),(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Designs",children:(0,f.filter)(function(p){return!!p.name})(h.designs).map(function(p){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:p.name,buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){function v(){return c("reset_design",{server:h.ref,design:p.id})}return v}()})},p.name)})})],4)},m=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=d.server,p=l.badmin,v=l.servers;return p?(0,e.createComponentVNode)(2,t.Section,{level:2,title:"Server Data Transfer",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{fluid:!0,color:"bad",content:(0,e.createComponentVNode)(2,t.Box,{children:["Transfer from ",h.name," To ",b.name]}),onClick:function(){function g(){return c("transfer_data",{server:h.ref,target:b.ref})}return g}()})},b.name)})}):null}},95183:function(x,r,n){"use strict";r.__esModule=!0,r.ResleevingConsole=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(57027),V=n(47007),y=1,k=2,C=3,s=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=L.args,A=E.activerecord,M=E.realname,R=E.obviously_dead,O=E.oocnotes,F=E.can_sleeve_active;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+M+")",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function D(){return w("modal_close")}return D}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:M}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:R}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!F,icon:"user-plus",content:"Sleeve",onClick:function(){function D(){return w("sleeve",{ref:A,mode:1})}return D}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-plus",content:"Card",onClick:function(){function D(){return w("sleeve",{ref:A,mode:2})}return D}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"OOC Notes",children:(0,e.createComponentVNode)(2,o.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:O})})]})})},m=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=L.args,A=E.activerecord,M=E.realname,R=E.species,O=E.sex,F=E.mind_compat,D=E.synthetic,j=E.oocnotes,_=E.can_grow_active;return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+M+")",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"times",color:"red",onClick:function(){function z(){return w("modal_close")}return z}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:M}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:R}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bio. Sex",children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Compat",children:F}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Synthetic",children:D?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"OOC Notes",children:(0,e.createComponentVNode)(2,o.Section,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:j})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,o.Button,{disabled:!_,icon:"user-plus",content:D?"Build":"Grow",onClick:function(){function z(){return w("create",{ref:A})}return z}()})})]})})},u=r.ResleevingConsole=function(){function S(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.menu,A=T.coredumped,M=T.emergency,R=(0,e.createFragment)([(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,B),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,i)})],4);return A&&(R=(0,e.createComponentVNode)(2,c)),M&&(R=(0,e.createComponentVNode)(2,l)),(0,f.modalRegisterBodyOverride)("view_b_rec",m),(0,f.modalRegisterBodyOverride)("view_m_rec",s),(0,e.createComponentVNode)(2,V.Window,{width:640,height:520,resizable:!0,children:[(0,e.createComponentVNode)(2,f.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,V.Window.Content,{className:"Layout__content--flexColumn",children:R})]})}return S}(),d=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:E===y,icon:"home",onClick:function(){function A(){return w("menu",{num:y})}return A}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:E===k,icon:"folder",onClick:function(){function A(){return w("menu",{num:k})}return A}(),children:"Body Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:E===C,icon:"folder",onClick:function(){function A(){return w("menu",{num:C})}return A}(),children:"Mind Records"})]})},i=function(L){var I=(0,t.useBackend)(),w=I.data,T=w.menu,E=w.bodyrecords,A=w.mindrecords,M;return T===y?M=(0,e.createComponentVNode)(2,h):T===k?M=(0,e.createComponentVNode)(2,g,{records:E,actToDo:"view_b_rec"}):T===C&&(M=(0,e.createComponentVNode)(2,g,{records:A,actToDo:"view_m_rec"})),M},c=function(L){return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",justify:"space-evenly",align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Icon,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,color:"bad",mt:5,children:(0,e.createVNode)(1,"h2",null,"TransCore dump completed. Resleeving offline.",16)})]})})},l=function(L){var I=(0,t.useBackend)(),w=I.act;return(0,e.createComponentVNode)(2,o.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:(0,e.createVNode)(1,"h1",null,"TRANSCORE DUMP",16)}),(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:(0,e.createVNode)(1,"h2",null,"!!WARNING!!",16)}),(0,e.createComponentVNode)(2,o.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,e.createComponentVNode)(2,o.Box,{mt:4,children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){function T(){return w("ejectdisk")}return T}()})}),(0,e.createComponentVNode)(2,o.Box,{mt:4,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){function T(){return w("coredump")}return T}()})})]})},h=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.loading,A=T.scantemp,M=T.occupant,R=T.locked,O=T.can_brainscan,F=T.scan_mode,D=T.pods,j=T.selected_pod,_=R&&!!M;return(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,v)]})},p=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.pods,A=T.spods,M=T.selected_pod;return E&&E.length?E.map(function(R,O){var F;return R.status==="cloning"?F=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:R.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(R.progress,0)+"%"})}):R.status==="mess"?F=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):F=(0,e.createComponentVNode)(2,o.Button,{selected:M===R.pod,icon:M===R.pod&&"check",content:"Select",mt:A&&A.length?"2rem":"0.5rem",onClick:function(){function D(){return w("selectpod",{ref:R.pod})}return D}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"pod_"+R.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:R.name}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:R.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:R.biomass>=150?"circle":"circle-o"}),"\xA0",R.biomass]}),F]},O)}):null},v=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.sleevers,A=T.spods,M=T.selected_sleever;return E&&E.length?E.map(function(R,O){return(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"sleeve_"+(R.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:R.occupied?"label":"bad",children:R.name}),(0,e.createComponentVNode)(2,o.Button,{selected:M===R.sleever,icon:M===R.sleever&&"check",content:"Select",mt:A&&A.length?"3rem":"1.5rem",onClick:function(){function F(){return w("selectsleever",{ref:R.sleever})}return F}()})]},O)}):null},b=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.spods,A=T.selected_printer;return E&&E.length?E.map(function(M,R){var O;return M.status==="cloning"?O=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:M.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(M.progress,0)+"%"})}):M.status==="mess"?O=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):O=(0,e.createComponentVNode)(2,o.Button,{selected:A===M.spod,icon:A===M.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function F(){return w("selectprinter",{ref:M.spod})}return F}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"synthprinter"+(M.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:M.name}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:M.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:M.steel>=15e3?"circle":"circle-o"}),"\xA0",M.steel]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:M.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:M.glass>=15e3?"circle":"circle-o"}),"\xA0",M.glass]}),O]},R)}):null},g=function(L){var I=(0,t.useBackend)(),w=I.act,T=L.records,E=L.actToDo;return T.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:T.map(function(A,M){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:A.name,onClick:function(){function R(){return w(E,{ref:A.recref})}return R}()},M)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},N=function(L){var I,w=(0,t.useBackend)(),T=w.act,E=w.data,A=E.temp;if(!(!A||!A.text||A.text.length<=0)){var M=(I={},I[A.style]=!0,I);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},M,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:A.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function R(){return T("cleartemp")}return R}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},B=function(L){var I=(0,t.useBackend)(),w=I.act,T=I.data,E=T.pods,A=T.spods,M=T.sleevers,R=T.autoallowed,O=T.autoprocess,F=T.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:E&&E.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[E.length," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SynthFabs",children:A&&A.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[A.length," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sleevers",children:M&&M.length?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[M.length," Connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},32682:function(x,r,n){"use strict";r.__esModule=!0,r.ResleevingPod=void 0;var e=n(58734),a=n(47007),t=n(54777),o=n(35239),f=r.ResleevingPod=function(){function V(y){var k=(0,t.useBackend)(),C=k.data,s=C.occupied,m=C.name,u=C.health,d=C.maxHealth,i=C.stat,c=C.mindStatus,l=C.mindName,h=C.resleeveSick,p=C.initialSick;return(0,e.createComponentVNode)(2,a.Window,{width:300,height:350,resizeable:!0,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",children:s?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:m}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:i===2?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"DEAD"}):i===1?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Unconscious"}):(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:u/d,children:[u,"%"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Status",children:c?"Present":"Missing"}),c?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mind Occupying",children:l}):""]}),h?(0,e.createComponentVNode)(2,o.Box,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",p?(0,e.createFragment)([(0,e.createTextVNode)(" "),(0,e.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,e.createComponentVNode)(2,o.Box,{bold:!0,m:1,children:"Unoccupied."})})})})}return V}()},77912:function(x,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.RoboticsControlConsole=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.can_hack,d=m.safety,i=m.show_detonate_all,c=m.cyborgs,l=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!i&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:d?"lock":"unlock",content:d?"Disable Safety":"Enable Safety",selected:d,onClick:function(){function h(){return s("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:d,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function h(){return s("nuke",{})}return h}()})]}),(0,e.createComponentVNode)(2,V,{cyborgs:l,can_hack:u})]})})}return y}(),V=function(k){var C=k.cyborgs,s=k.can_hack,m=(0,a.useBackend)(),u=m.act,d=m.data;return C.length?C.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createFragment)([!!i.hackable&&!i.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function c(){return u("hackbot",{ref:i.ref})}return c}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:i.locked_down?"unlock":"lock",color:i.locked_down?"good":"default",content:i.locked_down?"Release":"Lockdown",disabled:!d.auth,onClick:function(){function c(){return u("stopbot",{ref:i.ref})}return c}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!d.auth,color:"bad",onClick:function(){function c(){return u("killbot",{ref:i.ref})}return c}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:i.status?"bad":i.locked_down?"average":"good",children:i.status?"Not Responding":i.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:i.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i.health>50?"good":"bad",value:i.health/100})}),typeof i.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i.charge>30?"good":"bad",value:i.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:i.cell_capacity<3e4?"average":"good",children:i.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!i.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:i.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:i.synchronization?"default":"average",children:i.synchronization||"None"})})]})},i.ref)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},39975:function(x,r,n){"use strict";r.__esModule=!0,r.RogueZones=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.RogueZones=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.timeout_percent,u=s.diffstep,d=s.difficulty,i=s.occupied,c=s.scanning,l=s.updated,h=s.debug,p=s.shuttle_location,v=s.shuttle_at_station,b=s.scan_ready,g=s.can_recall_shuttle;return(0,e.createComponentVNode)(2,o.Window,{width:360,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current Area",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mineral Content",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Location",buttons:g&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"rocket",onClick:function(){function N(){return C("recall_shuttle")}return N}(),children:"Recall Shuttle"})||null,children:p}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",i," personnel!"]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!b,fluid:!0,icon:"search",onClick:function(){function N(){return C("scan_for_new")}return N}(),children:"Scan For Asteroids"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scn Ramestat Core",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:m,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Scanning",children:"In progress."})||null,l&&!c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Info",children:"Updated shuttle destination!"})||null,h&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Debug",labelColor:"bad",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Timeout Percent: ",m]}),(0,e.createComponentVNode)(2,t.Box,{children:["Diffstep: ",u]}),(0,e.createComponentVNode)(2,t.Box,{children:["Difficulty: ",d]}),(0,e.createComponentVNode)(2,t.Box,{children:["Occupied: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["Debug: ",h]}),(0,e.createComponentVNode)(2,t.Box,{children:["Shuttle Location: ",p]}),(0,e.createComponentVNode)(2,t.Box,{children:["Shuttle at station: ",v]}),(0,e.createComponentVNode)(2,t.Box,{children:["Scan Ready: ",b]})]})||null]})})]})})}return V}()},11950:function(x,r,n){"use strict";r.__esModule=!0,r.RustCoreMonitorContent=r.RustCoreMonitor=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=r.RustCoreMonitor=function(){function y(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.RustCoreMonitorContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.cores;return(0,e.createComponentVNode)(2,o.Section,{title:"Cores",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function d(){return s("set_tag")}return d}()}),children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reactant Mode"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Instability"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Temperature"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Field Strength"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Plasma Content"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.has_field?"Online":"Offline",selected:d.has_field,disabled:!d.core_operational,onClick:function(){function i(){return s("toggle_active",{core:d.ref})}return i}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.reactant_dump?"Dump":"Maintain",selected:d.has_field,disabled:!d.core_operational,onClick:function(){function i(){return s("toggle_reactantdump",{core:d.ref})}return i}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.field_instability}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.field_temperature}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Knob,{forcedInputWidth:"60px",size:1.25,color:!!d.has_field&&"yellow",value:d.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(){function i(c,l){return s("set_fieldstr",{core:d.ref,fieldstr:l})}return i}()})}),(0,e.createComponentVNode)(2,o.Table.Cell)]},d.name)})]})})}return y}()},8585:function(x,r,n){"use strict";r.__esModule=!0,r.RustFuelControl=r.RustFuelContent=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=r.RustFuelControl=function(){function y(){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.RustFuelContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.fuels;return(0,e.createComponentVNode)(2,o.Section,{title:"Fuel Injectors",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Set Tag",onClick:function(){function d(){return s("set_tag")}return d}()}),children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Remaining Fuel"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Fuel Rod Composition"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.active?"Online":"Offline",selected:d.active,disabled:!d.deployed,onClick:function(){function i(){return s("toggle_active",{fuel:d.ref})}return i}()})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.fuel_amt}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.fuel_type})]},d.name)})]})})}return y}()},67968:function(x,r,n){"use strict";r.__esModule=!0,r.Secbot=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Secbot=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.on,u=s.open,d=s.locked,i=s.idcheck,c=s.check_records,l=s.check_arrest,h=s.arrest_type,p=s.declare_arrests,v=s.bot_patrolling,b=s.patrol;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Automatic Security Unit v2.0",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:m,onClick:function(){function g(){return C("power")}return g}(),children:m?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",color:u?"bad":"good",children:u?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Behavior Controls",color:d?"good":"bad",children:d?"Locked":"Unlocked"})]})}),!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Behavior Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check for Weapon Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"toggle-on":"toggle-off",selected:i,onClick:function(){function g(){return C("idcheck")}return g}(),children:i?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check Security Records",children:(0,e.createComponentVNode)(2,t.Button,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){function g(){return C("ignorerec")}return g}(),children:c?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Check Arrest Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"toggle-on":"toggle-off",selected:l,onClick:function(){function g(){return C("ignorearr")}return g}(),children:l?"Yes":"No"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Operating Mode",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){function g(){return C("switchmode")}return g}(),children:h?"Detain":"Arrest"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Report Arrests",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){function g(){return C("declarearrests")}return g}(),children:p?"Yes":"No"})}),!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Patrol",children:(0,e.createComponentVNode)(2,t.Button,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){function g(){return C("patrol")}return g}(),children:b?"Yes":"No"})})]})})||null]})})}return V}()},72817:function(x,r,n){"use strict";r.__esModule=!0,r.SecureSafe=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=function(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],d=m.locked,i=m.l_setshort,c=m.code,l=m.emagged;return(0,e.createComponentVNode)(2,t.Box,{width:"185px",children:(0,e.createComponentVNode)(2,t.Grid,{width:"1px",children:u.map(function(h){return(0,e.createComponentVNode)(2,t.Grid.Column,{children:h.map(function(p){return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,bold:!0,mb:"6px",content:p,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!l||!!i&&1||p!=="R"&&!d||c==="ERROR"&&p!=="R"&&1,onClick:function(){function v(){return s("type",{digit:p})}return v}()},p)})},h[0])})})})},V=r.SecureSafe=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.code,d=m.l_setshort,i=m.l_set,c=m.emagged,l=m.locked,h=!(i||d);return(0,e.createComponentVNode)(2,o.Window,{width:250,height:380,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Box,{m:"6px",children:[h&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!d&&(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.createComponentVNode)(2,t.Section,{height:"60px",children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",position:"center",fontSize:"35px",children:u&&u||(0,e.createComponentVNode)(2,t.Box,{textColor:l?"red":"green",children:l?"LOCKED":"UNLOCKED"})})}),(0,e.createComponentVNode)(2,t.Flex,{ml:"3px",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,t.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}return y}()},77044:function(x,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(57027),f=n(47007),V=n(49264),y=n(7117),k=n(43396),C=function(p){(0,o.modalOpen)("edit",{field:p.edit,value:p.value})},s=r.SecurityRecords=function(){function h(p){var v=(0,a.useBackend)(),b=v.data,g=b.authenticated,N=b.screen;if(!g)return(0,e.createComponentVNode)(2,f.Window,{width:700,height:680,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var B;return N===2?B=(0,e.createComponentVNode)(2,m):N===3?B=(0,e.createComponentVNode)(2,u):N===4&&(B=(0,e.createComponentVNode)(2,d)),(0,e.createComponentVNode)(2,f.Window,{width:700,height:680,resizable:!0,children:[(0,e.createComponentVNode)(2,o.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,V.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,t.Section,{flexGrow:!0,children:B})]})]})}return h}(),m=function(p){var v=(0,a.useBackend)(),b=v.act,g=v.data,N=g.records;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Input,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(){function B(S,L){return b("search",{t1:L})}return B}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:N.map(function(B,S){return(0,e.createComponentVNode)(2,t.Button,{icon:"user",mb:"0.5rem",color:B.color,content:B.id+": "+B.name+" (Criminal Status: "+B.criminal+")",onClick:function(){function L(){return b("d_rec",{d_rec:B.ref})}return L}()},S)})})],4)},u=function(p){var v=(0,a.useBackend)(),b=v.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function g(){return b("del_all")}return g}()})],0)},d=function(p){var v=(0,a.useBackend)(),b=v.act,g=v.data,N=g.security,B=g.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"General Data",mt:"-6px",children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,t.Section,{title:"Security Data",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!N.empty,content:"Delete Security Record",color:"bad",onClick:function(){function S(){return b("del_r")}return S}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",disabled:!!N.empty,content:"Delete Record (All)",color:"bad",onClick:function(){function S(){return b("del_r_2")}return S}()}),(0,e.createComponentVNode)(2,t.Button,{icon:B?"spinner":"print",disabled:B,iconSpin:!!B,content:"Print Entry",ml:"0.5rem",onClick:function(){function S(){return b("print_p")}return S}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){function S(){return b("screen",{screen:2})}return S}()})]})],4)},i=function(p){var v=(0,a.useBackend)(),b=v.act,g=v.data,N=g.general;return!N||!N.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"General records lost!"}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N.fields.map(function(B,S){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.field,children:[(0,e.createComponentVNode)(2,t.Box,{height:"20px",inline:!0,preserveWhitespace:!0,children:B.value}),!!B.edit&&(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function L(){return C(B)}return L}()})]},S)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:[!!N.has_photos&&N.photos.map(function(B,S){return(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.createVNode)(1,"img",null,null,1,{src:B.substr(1,B.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",S+1]},S)}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return b("photo_front")}return B}(),children:"Update Front Photo"}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function B(){return b("photo_side")}return B}(),children:"Update Side Photo"})]})]})]})},c=function(p){var v=(0,a.useBackend)(),b=v.act,g=v.data,N=g.security;return!N||!N.fields?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Security records lost!",(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){function B(){return b("new")}return B}()})]}):(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList,{children:N.fields.map(function(B,S){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.field,children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,children:[B.value,(0,e.createComponentVNode)(2,t.Button,{icon:"pen",ml:"0.5rem",mb:B.line_break?"1rem":"initial",onClick:function(){function L(){return C(B)}return L}()})]})},S)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Comments/Log",children:[N.comments.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No comments found."}):N.comments.map(function(B,S){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,children:B.header}),(0,e.createVNode)(1,"br"),B.text,(0,e.createComponentVNode)(2,t.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function L(){return b("del_c",{del_c:S+1})}return L}()})]},S)}),(0,e.createComponentVNode)(2,t.Button,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){function B(){return(0,o.modalOpen)("add_c")}return B}()})]})],4)},l=function(p){var v=(0,a.useBackend)(),b=v.act,g=v.data,N=g.screen;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:N===2,icon:"list",onClick:function(){function B(){return b("screen",{screen:2})}return B}(),children:"List Records"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:N===3,onClick:function(){function B(){return b("screen",{screen:3})}return B}(),children:"Record Maintenance"})]})}},16879:function(x,r,n){"use strict";r.__esModule=!0,r.SeedStorage=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(40946),V=n(45445),y=r.SeedStorage=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.scanner,i=u.seeds,c=(0,V.sortBy)(function(l){return l.name.toLowerCase()})(i);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Seeds",children:c.map(function(l){return(0,e.createComponentVNode)(2,t.Flex,{spacing:1,mt:-1,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Collapsible,{title:(0,f.toTitleCase)(l.name)+" #"+l.uid,children:(0,e.createComponentVNode)(2,t.Section,{width:"165%",title:"Traits",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:Object.keys(l.traits).map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,f.toTitleCase)(h),children:l.traits[h]},h)})})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.4,children:[l.amount," Remaining"]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"download",onClick:function(){function h(){return m("vend",{id:l.id})}return h}(),children:"Vend"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"trash",onClick:function(){function h(){return m("purge",{id:l.id})}return h}(),children:"Purge"})})]},l.name+l.uid)})})})})}return k}()},68444:function(x,r,n){"use strict";r.__esModule=!0,r.ShieldCapacitor=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=n(5339),V=n(420),y=r.ShieldCapacitor=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.active,i=u.time_since_fail,c=u.stored_charge,l=u.max_charge,h=u.charge_rate,p=u.max_charge_rate;return(0,e.createComponentVNode)(2,t.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:d,content:d?"Online":"Offline",onClick:function(){function v(){return m("toggle")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitor Status",children:i>2?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"OK."}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Discharging!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored Energy",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c,format:function(){function v(b){return(0,V.formatSiUnit)(b,0,"J")}return v}()})," ","(",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:100*(0,f.round)(c/l,1)}),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge Rate",children:(0,e.createComponentVNode)(2,o.NumberInput,{value:h,step:100,stepPixelSize:.2,minValue:1e4,maxValue:p,format:function(){function v(b){return(0,V.formatPower)(b)}return v}(),onDrag:function(){function v(b,g){return m("charge_rate",{rate:g})}return v}()})})]})})})})}return k}()},36002:function(x,r,n){"use strict";r.__esModule=!0,r.ShieldGenerator=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=n(5339),V=n(420),y=n(77402),k=r.ShieldGenerator=function(){function m(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.locked;return(0,e.createComponentVNode)(2,t.Window,{width:500,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:l?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,s)})})}return m}(),C=function(u){return(0,e.createComponentVNode)(2,y.FullscreenNotice,{title:"Locked",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",bold:!0,children:(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.createComponentVNode)(2,o.Box,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},s=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.lockedData,h=l.capacitors,p=l.active,v=l.failing,b=l.radius,g=l.max_radius,N=l.z_range,B=l.max_z_range,S=l.average_field_strength,L=l.target_field_strength,I=l.max_field_strength,w=l.shields,T=l.upkeep,E=l.strengthen_rate,A=l.max_strengthen_rate,M=l.gen_power,R=(h||[]).length;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Status",children:v?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unstable"}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Stable"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Overall Field Strength",children:[(0,f.round)(S,2)," Renwick (",L&&(0,f.round)(100*S/L,1)||"NA","%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Upkeep Power",children:(0,V.formatPower)(T)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shield Generation Power",children:(0,V.formatPower)(M)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Currently Shielded",children:[w," m\xB2"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitors",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:R?h.map(function(O,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Capacitor #"+F,children:[O.active?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Offline"}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge",children:[(0,V.formatSiUnit)(O.stored_charge,0,"J")," (",100*(0,f.round)(O.stored_charge/O.max_charge,2),"%)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:O.failing?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Discharging"}):(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"OK."})})]})]},F)}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:p?"Online":"Offline",selected:p,onClick:function(){function O(){return i("toggle")}return O}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Coverage Radius",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:g,value:b,unit:"m",onDrag:function(){function O(F,D){return i("change_radius",{val:D})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vertical Shielding",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:B,value:N,unit:"vertical range",onDrag:function(){function O(F,D){return i("z_range",{val:D})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Charge Rate",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:A,value:E,format:function(){function O(F){return(0,f.round)(F,1)}return O}(),unit:"Renwick/s",onDrag:function(){function O(F,D){return i("strengthen_rate",{val:D})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Maximum Field Strength",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:I,value:L,unit:"Renwick",onDrag:function(){function O(F,D){return i("target_field_strength",{val:D})}return O}()})})]})})],4)}},38818:function(x,r,n){"use strict";r.__esModule=!0,r.ShutoffMonitorContent=r.ShutoffMonitor=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f=r.ShutoffMonitor=function(){function y(k){return(0,e.createComponentVNode)(2,t.Window,{width:627,height:700,resizable:!0,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.ShutoffMonitorContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.valves;return(0,e.createComponentVNode)(2,o.Section,{title:"Valves",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Position"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Open"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Mode"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Actions"})]}),u.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.open?"Yes":"No"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:d.enabled?"Auto":"Manual"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.open?"Opened":"Closed",selected:d.open,disabled:!d.enabled,onClick:function(){function i(){return s("toggle_open",{valve:d.ref})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:d.enabled?"Auto":"Manual",selected:d.enabled,onClick:function(){function i(){return s("toggle_enable",{valve:d.ref})}return i}()})]})]},d.name)})]})})}return y}()},20015:function(x,r,n){"use strict";r.__esModule=!0,r.ShuttleControl=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(47007),V=function(l,h){var p="ERROR",v="bad",b=!1;return l==="docked"?(p="DOCKED",v="good"):l==="docking"?(p="DOCKING",v="average",b=!0):l==="undocking"?(p="UNDOCKING",v="average",b=!0):l==="undocked"&&(p="UNDOCKED",v="#676767"),b&&h&&(p=p+"-MANUAL"),(0,e.createComponentVNode)(2,o.Box,{color:v,children:p})},y=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=l.engineName,g=b===void 0?"Bluespace Drive":b,N=v.shuttle_status,B=v.shuttle_state,S=v.has_docking,L=v.docking_status,I=v.docking_override,w=v.docking_codes;return(0,e.createComponentVNode)(2,o.Section,{title:"Shuttle Status",children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",mb:1,children:N}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:g,children:B==="idle"&&(0,e.createComponentVNode)(2,o.Box,{color:"#676767",bold:!0,children:"IDLE"})||B==="warmup"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"SPINNING UP"})||B==="in_transit"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"ENGAGED"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"})}),S&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Status",children:V(L,I)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Codes",children:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",onClick:function(){function T(){return p("set_codes")}return T}(),children:w||"Not Set"})})],4)||null]})]})},k=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=v.can_launch,g=v.can_cancel,N=v.can_force;return(0,e.createComponentVNode)(2,o.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return p("move")}return B}(),disabled:!b,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return p("cancel")}return B}(),disabled:!g,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function B(){return p("force")}return B}(),color:"bad",disabled:!N,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},C=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k)],4)},s=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=v.can_cloak,g=v.can_pick,N=v.legit,B=v.cloaked,S=v.destination_name;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.Section,{title:"Multishuttle Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N?"ATC Inhibitor":"Cloaking",children:(0,e.createComponentVNode)(2,o.Button,{selected:B,icon:B?"eye":"eye-o",onClick:function(){function L(){return p("toggle_cloaked")}return L}(),children:B?"Enabled":"Disabled"})})||null,(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Destination",children:(0,e.createComponentVNode)(2,o.Button,{icon:"taxi",disabled:!g,onClick:function(){function L(){return p("pick")}return L}(),children:S})})]})}),(0,e.createComponentVNode)(2,k)],4)},m=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=v.can_pick,g=v.destination_name,N=v.fuel_usage,B=v.fuel_span,S=v.remaining_fuel;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y,{engineName:"Engines"}),(0,e.createComponentVNode)(2,o.Section,{title:"Jump Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Destination",children:(0,e.createComponentVNode)(2,o.Button,{icon:"taxi",disabled:!b,onClick:function(){function L(){return p("pick")}return L}(),children:g})}),N&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Est. Delta-V Budget",color:B,children:[S," m/s"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Avg. Delta-V Per Maneuver",children:[N," m/s"]})],4)||null]})}),(0,e.createComponentVNode)(2,k)],4)},u=function(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=v.autopilot,g=v.can_rename,N=v.shuttle_state,B=v.is_moving,S=v.skip_docking,L=v.docking_status,I=v.docking_override,w=v.shuttle_location,T=v.can_cloak,E=v.cloaked,A=v.can_autopilot,M=v.routes,R=v.is_in_transit,O=v.travel_progress,F=v.time_left,D=v.doors,j=v.sensors;return(0,e.createFragment)([b&&(0,e.createComponentVNode)(2,o.Section,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.createComponentVNode)(2,o.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,e.createComponentVNode)(2,o.Section,{title:"Shuttle Status",buttons:g&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",onClick:function(){function _(){return p("rename_command")}return _}(),children:"Rename"})||null,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Engines",children:N==="idle"&&(0,e.createComponentVNode)(2,o.Box,{color:"#676767",bold:!0,children:"IDLE"})||N==="warmup"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"SPINNING UP"})||N==="in_transit"&&(0,e.createComponentVNode)(2,o.Box,{color:"#336699",children:"ENGAGED"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"ERROR"})}),!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Location",children:(0,a.toTitleCase)(w)}),!S&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Docking Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{selected:L==="docked",disabled:L!=="undocked"&&L!=="docked",onClick:function(){function _(){return p("dock_command")}return _}(),children:"Dock"}),(0,e.createComponentVNode)(2,o.Button,{selected:L==="undocked",disabled:L!=="docked"&&L!=="undocked",onClick:function(){function _(){return p("undock_command")}return _}(),children:"Undock"})],4),children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,inline:!0,children:V(L,I)})})||null,T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cloaking",children:(0,e.createComponentVNode)(2,o.Button,{selected:E,icon:E?"eye":"eye-o",onClick:function(){function _(){return p("toggle_cloaked")}return _}(),children:E?"Enabled":"Disabled"})})||null,A&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Autopilot",children:(0,e.createComponentVNode)(2,o.Button,{selected:b,icon:b?"eye":"eye-o",onClick:function(){function _(){return p("toggle_autopilot")}return _}(),children:b?"Enabled":"Disabled"})})||null],0)||null]}),!B&&(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Available Destinations",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.length&&M.map(function(_){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:_.name,children:(0,e.createComponentVNode)(2,o.Button,{icon:"rocket",onClick:function(){function z(){return p("traverse",{traverse:_.index})}return z}(),children:_.travel_time})},_.name)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),R&&(0,e.createComponentVNode)(2,o.Section,{title:"Transit ETA",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance from target",children:(0,e.createComponentVNode)(2,o.ProgressBar,{color:"good",minValue:0,maxValue:100,value:O,children:[F,"s"]})})})})||null,Object.keys(D).length&&(0,e.createComponentVNode)(2,o.Section,{title:"Hatch Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(D).map(function(_){var z=D[_];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:_,children:[z.open&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"Open"})||(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",z.bolted&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"good",children:"Bolted"})||(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"bad",children:"Unbolted"})]},_)})})})||null,Object.keys(j).length&&(0,e.createComponentVNode)(2,o.Section,{title:"Sensors",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(j).map(function(_){var z=j[_];return z.reading!==-1?(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:_,color:"bad",children:"Unable to get sensor air reading."}):(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:_,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[z.pressure,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[z.temp,"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Oxygen",children:[z.oxygen,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Nitrogen",children:[z.nitrogen,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Carbon Dioxide",children:[z.carbon_dioxide,"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Phoron",children:[z.phoron,"%"]}),z.other&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Other",children:[z.other,"%"]})||null]})},_)})})})||null],0)},d={ShuttleControlConsoleDefault:(0,e.createComponentVNode)(2,C),ShuttleControlConsoleMulti:(0,e.createComponentVNode)(2,s),ShuttleControlConsoleExploration:(0,e.createComponentVNode)(2,m),ShuttleControlConsoleWeb:(0,e.createComponentVNode)(2,u)},i=r.ShuttleControl=function(){function c(l){var h=(0,t.useBackend)(),p=h.act,v=h.data,b=v.subtemplate;return(0,e.createComponentVNode)(2,f.Window,{width:470,height:b==="ShuttleControlConsoleWeb"?560:370,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:d[b]})})}return c}()},83387:function(x,r,n){"use strict";r.__esModule=!0,r.SignalerContent=r.Signaler=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=r.Signaler=function(){function k(){return(0,e.createComponentVNode)(2,f.Window,{width:280,height:132,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return k}(),y=r.SignalerContent=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.code,i=u.frequency,c=u.minFrequency,l=u.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:c/10,maxValue:l/10,value:i/10,format:function(){function h(p){return(0,a.toFixed)(p,1)}return h}(),width:"80px",onDrag:function(){function h(p,v){return m("freq",{freq:v})}return h}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){function h(){return m("reset",{reset:"freq"})}return h}()})})]}),(0,e.createComponentVNode)(2,o.Grid,{mt:.6,children:[(0,e.createComponentVNode)(2,o.Grid.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(){function h(p,v){return m("code",{code:v})}return h}()})}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){function h(){return m("reset",{reset:"code"})}return h}()})})]}),(0,e.createComponentVNode)(2,o.Grid,{mt:.8,children:(0,e.createComponentVNode)(2,o.Grid.Column,{children:(0,e.createComponentVNode)(2,o.Button,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function h(){return m("signal")}return h}()})})})]})}return k}()},97485:function(x,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},C=["bad","average","average","good","average","average","bad"],s=r.Sleeper=function(){function h(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.hasOccupant,B=N?(0,e.createComponentVNode)(2,m):(0,e.createComponentVNode)(2,l);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:760,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{className:"Layout__content--flexColumn",children:B})})}return h}(),m=function(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.occupant,B=g.dialysis,S=g.stomachpumping;return(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,i,{title:"Dialysis",active:B,actToDo:"togglefilter"}),(0,e.createComponentVNode)(2,i,{title:"Stomach Pump",active:S,actToDo:"togglepump"}),(0,e.createComponentVNode)(2,c)],4)},u=function(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.occupant,B=g.auto_eject_dead,S=g.stasis;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function L(){return b("auto_eject_dead_"+(B?"off":"on"))}return L}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function L(){return b("ejectify")}return L}()}),(0,e.createComponentVNode)(2,o.Button,{content:S,onClick:function(){function L(){return b("changestasis")}return L}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:0,max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(N.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:V[N.stat][0],children:V[N.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:C[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius,0),"\xB0C,",(0,a.round)(N.btFaren,0),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[N.pulse," BPM"]})],4)]})})},d=function(p){var v=(0,t.useBackend)(),b=v.data,g=b.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(N,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[N[1]]/100,ranges:k,children:(0,a.round)(g[N[1]],0)},B)},B)})})})},i=function(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.isBeakerLoaded,B=g.beakerMaxSpace,S=g.beakerFreeSpace,L=p.active,I=p.actToDo,w=p.title,T=L&&S>0;return(0,e.createComponentVNode)(2,o.Section,{title:w,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!N||S<=0,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Active":"Inactive",onClick:function(){function E(){return b(I)}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"eject",content:"Eject",onClick:function(){function E(){return b("removebeaker")}return E}()})],4),children:N?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:S/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[S,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},c=function(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.occupant,B=g.chemicals,S=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Chemicals",flexGrow:"1",children:B.map(function(I,w){var T="",E;return I.overdosing?(T="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):I.od_warning&&(T="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:I.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Flex,{align:"flex-start",children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:S,value:I.occ_amount/S,color:T,mr:"0.5rem",children:[I.pretty_amount,"/",S,"u"]}),L.map(function(A,M){return(0,e.createComponentVNode)(2,o.Button,{disabled:!I.injectable||I.occ_amount+A>S||N.stat===2,icon:"syringe",content:A,mb:"0",height:"19px",onClick:function(){function R(){return b("chemical",{chemid:I.id,amount:A})}return R}()},M)})]})})},w)})})},l=function(p){var v=(0,t.useBackend)(),b=v.act,g=v.data,N=g.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Section,{textAlign:"center",flexGrow:"1",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected.",N&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Remove Beaker",onClick:function(){function B(){return b("removebeaker")}return B}()})})||null]})})})}},61401:function(x,r,n){"use strict";r.__esModule=!0,r.SmartVend=void 0;var e=n(58734),a=n(45445),t=n(54777),o=n(35239),f=n(47007),V=r.SmartVend=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.config,u=C.data;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:550,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:[u.secure&&(0,e.createComponentVNode)(2,o.NoticeBox,{danger:u.locked===-1,info:u.locked!==-1,children:u.locked===-1?(0,e.createComponentVNode)(2,o.Box,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.createComponentVNode)(2,o.Box,{children:"Secure Access: Please have your identification ready."})})||null,u.contents.length===0&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:["Unfortunately, this ",m.title," is empty."]})||(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:"Item"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,a.map)(function(d,i){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:d.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:[d.amount," in stock"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"1",disabled:d.amount<1,onClick:function(){function c(){return s("Release",{index:d.index,amount:1})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"5",disabled:d.amount<5,onClick:function(){function c(){return s("Release",{index:d.index,amount:5})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"25",disabled:d.amount<25,onClick:function(){function c(){return s("Release",{index:d.index,amount:25})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"50",disabled:d.amount<50,onClick:function(){function c(){return s("Release",{index:d.index,amount:50})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Custom",disabled:d.amount<1,onClick:function(){function c(){return s("Release",{index:d.index})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"All",disabled:d.amount<1,onClick:function(){function c(){return s("Release",{index:d.index,amount:d.amount})}return c}()})]})]},i)})(u.contents)]})]})})})}return y}()},92919:function(x,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(420),f=n(47007),V=n(5339),y=1e3,k=r.Smes=function(){function C(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.capacityPercent,c=d.capacity,l=d.charge,h=d.inputAttempt,p=d.inputting,v=d.inputLevel,b=d.inputLevelMax,g=d.inputAvailable,N=d.outputAttempt,B=d.outputting,S=d.outputLevel,L=d.outputLevelMax,I=d.outputUsed,w=i>=100&&"good"||p&&"average"||"bad",T=B&&"good"||l>0&&"average"||"bad";return(0,e.createComponentVNode)(2,f.Window,{width:340,height:350,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,V.round)(l/(1e3*60),1)," kWh /"," ",(0,V.round)(c/(1e3*60))," kWh (",i,"%)"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){function E(){return u("tryinput")}return E}(),children:h?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:w,children:i>=100&&"Fully Charged"||p&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:v===0,onClick:function(){function E(){return u("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:v===0,onClick:function(){function E(){return u("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:v/y,fillValue:g/y,minValue:0,maxValue:b/y,step:5,stepPixelSize:4,format:function(){function E(A){return(0,o.formatPower)(A*y,1)}return E}(),onDrag:function(){function E(A,M){return u("input",{target:M*y})}return E}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:v===b,onClick:function(){function E(){return u("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:v===b,onClick:function(){function E(){return u("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(g)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",selected:N,onClick:function(){function E(){return u("tryoutput")}return E}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:T,children:B?"Sending":l>0?"Not Sending":"No Charge"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:S===0,onClick:function(){function E(){return u("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:S===0,onClick:function(){function E(){return u("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:S/y,minValue:0,maxValue:L/y,step:5,stepPixelSize:4,format:function(){function E(A){return(0,o.formatPower)(A*y,1)}return E}(),onDrag:function(){function E(A,M){return u("output",{target:M*y})}return E}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:S===L,onClick:function(){function E(){return u("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:S===L,onClick:function(){function E(){return u("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(I)})]})})]})})}return C}()},63555:function(x,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(5339),V=r.SolarControl=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.generated,d=m.generated_ratio,i=m.sun_angle,c=m.array_angle,l=m.rotation_rate,h=m.max_rotation_rate,p=m.tracking_state,v=m.connected_panels,b=m.connected_tracker;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:230,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function g(){return s("refresh")}return g}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:v>0?"good":"bad",children:v})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:1.5,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:d,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Star orientation",children:[i,"\xB0"]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracking",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:p===0,onClick:function(){function g(){return s("tracking",{mode:0})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:p===1,onClick:function(){function g(){return s("tracking",{mode:1})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:p===2,disabled:!b,onClick:function(){function g(){return s("tracking",{mode:2})}return g}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Azimuth",children:[(p===0||p===1)&&(0,e.createComponentVNode)(2,t.NumberInput,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:c,format:function(){function g(N){var B=Math.sign(N)>0?" (CW)":" (CCW)";return Math.abs((0,f.round)(N))+B}return g}(),onDrag:function(){function g(N,B){return s("azimuth",{value:B})}return g}()}),p===1&&(0,e.createComponentVNode)(2,t.NumberInput,{width:"80px",unit:"deg/h",step:1,minValue:-h-.01,maxValue:h+.01,value:l,format:function(){function g(N){var B=Math.sign(N)>0?" (CW)":" (CCW)";return Math.abs((0,f.round)(N))+B}return g}(),onDrag:function(){function g(N,B){return s("azimuth_rate",{value:B})}return g}()}),p===2&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mt:"3px",children:[c+"\xB0"," (auto)"]})]})]})})]})})}return y}()},90759:function(x,r,n){"use strict";r.__esModule=!0,r.SpaceHeater=void 0;var e=n(58734),a=n(61994),t=n(54777),o=n(35239),f=n(47007),V=r.SpaceHeater=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data,u=m.temp,d=m.minTemp,i=m.maxTemp,c=m.cell,l=m.power;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:250,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[u," K (",u-a.T0C,"\xB0 C)"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Charge",children:[l,"% ",!c&&"(No Cell Inserted)"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Thermostat",children:(0,e.createComponentVNode)(2,o.Knob,{animated:!0,value:u-a.T0C,minValue:d-a.T0C,maxValue:i-a.T0C,unit:"C",onChange:function(){function h(p,v){return s("temp",{newtemp:v+a.T0C})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Cell",children:c?(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject Cell",onClick:function(){function h(){return s("cellremove")}return h}()}):(0,e.createComponentVNode)(2,o.Button,{icon:"car-battery",content:"Insert Cell",onClick:function(){function h(){return s("cellinstall")}return h}()})})]})})]})})}return y}()},59060:function(x,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Stack=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.amount,l=i.recipes;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Amount: "+c,children:(0,e.createComponentVNode)(2,V,{recipes:l})})})})}return s}(),V=function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=m.recipes,l=Object.keys(c).sort();return l.map(function(h){var p=c[h];return p.ref===void 0?(0,e.createComponentVNode)(2,t.Collapsible,{ml:1,mb:-.7,color:"label",title:h,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,children:(0,e.createComponentVNode)(2,s,{recipes:p})})}):(0,e.createComponentVNode)(2,C,{title:h,recipe:p})})},y=function(m,u){return m.req_amount>u?0:Math.floor(u/m.req_amount)},k=function(m){for(var u=(0,a.useBackend)(),d=u.act,i=u.data,c=m.recipe,l=m.maxMultiplier,h=Math.min(l,Math.floor(c.max_res_amount/c.res_amount)),p=[5,10,25],v=[],b=function(){var S=N[g];h>=S&&v.push((0,e.createComponentVNode)(2,t.Button,{content:S*c.res_amount+"x",onClick:function(){function L(){return d("make",{ref:c.ref,multiplier:S})}return L}()}))},g=0,N=p;g1?"s":""),N+=")",p>1&&(N=p+"x "+N);var B=y(l,c);return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{children:(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:!B,icon:"wrench",content:N,onClick:function(){function S(){return d("make",{ref:l.ref,multiplier:1})}return S}()})}),v>1&&B>1&&(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,k,{recipe:l,maxMultiplier:B})})]})})})}},10967:function(x,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:425,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,V)})})}return y}(),V=r.StationAlertConsoleContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.categories,d=u===void 0?[]:u;return d.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.category,children:(0,e.createVNode)(1,"ul",null,[i.alarms.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.alarms.map(function(c){var l="";return c.has_cameras?l=(0,e.createComponentVNode)(2,t.Section,{children:c.cameras.map(function(h){return(0,e.createComponentVNode)(2,t.Button,{disabled:h.deact,content:h.name+(h.deact?" (deactived)":""),icon:"video",onClick:function(){function p(){return s("switchTo",{camera:h.camera})}return p}()},h.name)})}):c.lost_sources&&(l=(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:["Lost Alarm Sources: ",c.lost_sources]})),(0,e.createVNode)(1,"li",null,[c.name,c.origin_lost?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Alarm Origin Lost."}):"",l],0,null,c.name)})],0)},i.category)})}return y}()},74741:function(x,r,n){"use strict";r.__esModule=!0,r.StationBlueprintsContent=r.StationBlueprints=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.StationBlueprints=function(){function y(k){return(0,e.createComponentVNode)(2,o.Window,{width:870,height:708,resizable:!0,children:(0,e.createComponentVNode)(2,V)})}return y}(),V=r.StationBlueprintsContent=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=C.config,d=m.mapRef,i=m.areas,c=m.turfs;return(0,e.createFragment)([(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:"Honk!"}),2),(0,e.createVNode)(1,"div","CameraConsole__right",(0,e.createComponentVNode)(2,t.ByondUi,{className:"CameraConsole__map",params:{id:d,type:"map"}}),2)],4)}return y}()},17855:function(x,r,n){"use strict";r.__esModule=!0,r.StockExchange=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.StockExchange=function(){function u(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.screen,p=l.stationName,v;return h==="stocks"?v=(0,e.createComponentVNode)(2,V):h==="logs"?v=(0,e.createComponentVNode)(2,C):h==="archive"?v=(0,e.createComponentVNode)(2,s):h==="graph"&&(v=(0,e.createComponentVNode)(2,m)),(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:p+" Stock Exchange",children:v})})})}return u}(),V=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.balance,p=l.stationName,v=l.viewMode,b=(0,e.createComponentVNode)(2,y);return v==="Full"?b=(0,e.createComponentVNode)(2,y):v==="Compressed"&&(b=(0,e.createComponentVNode)(2,k)),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("Welcome, "),(0,e.createVNode)(1,"b",null,[p,(0,e.createTextVNode)(" Cargo Department")],0),(0,e.createTextVNode)(" |"),(0,e.createTextVNode)(" ")],0),(0,e.createVNode)(1,"span",null,[(0,e.createVNode)(1,"b",null,"Credits:",16),(0,e.createTextVNode)(" "),h],0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"View mode: ",16),(0,e.createComponentVNode)(2,t.Button,{content:v,onClick:function(){function g(){return c("stocks_cycle_view")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Stock Transaction Log: ",16),(0,e.createComponentVNode)(2,t.Button,{icon:"list",content:"Check",onClick:function(){function g(){return c("stocks_check")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"This is a work in progress. Certain features may not be available.",16),(0,e.createComponentVNode)(2,t.Section,{title:"Listed Stocks",children:b})]})},y=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.stocks,p=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Actions:",16)," + Buy, - Sell, (A)rchives, (H)istory",(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"\xA0"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Owned"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Avail"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),(0,e.createComponentVNode)(2,t.Divider),p.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"\xA0"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:v.ID}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:v.Name}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:v.Value}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:v.Owned}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:v.Avail}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"label",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"plus",disabled:!1,onClick:function(){function b(){return c("stocks_buy",{share:v.REF})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"minus",disabled:!1,onClick:function(){function b(){return c("stocks_sell",{share:v.REF})}return b}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"A",onClick:function(){function b(){return c("stocks_archive",{share:v.REF})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"H",onClick:function(){function b(){return c("stocks_history",{share:v.REF})}return b}()}),(0,e.createVNode)(1,"br")]})]},v.ID)})]})]})},k=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.stocks,p=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Box,{children:p.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"span",null,v.name,0)," ",(0,e.createVNode)(1,"span",null,v.ID,0),v.bankrupt===1&&(0,e.createVNode)(1,"b",null,"BANKRUPT",16,{color:"red"}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Unified shares",16)," ",v.Unification," ago.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Current value per share:",16)," ",v.Value," |"," ",(0,e.createComponentVNode)(2,t.Button,{content:"View history",onClick:function(){function b(){return c("stocks_history",{share:v.REF})}return b}()}),(0,e.createVNode)(1,"br"),"You currently own ",(0,e.createVNode)(1,"b",null,v.Owned,0)," shares in this company.",(0,e.createVNode)(1,"br"),"There are ",v.Avail," purchasable shares on the market currently.",(0,e.createVNode)(1,"br"),v.bankrupt===1?(0,e.createVNode)(1,"span",null,"You cannot buy or sell shares in a bankrupt company!",16):(0,e.createVNode)(1,"span",null,[(0,e.createComponentVNode)(2,t.Button,{content:"Buy shares",onClick:function(){function b(){return c("stocks_buy",{share:v.REF})}return b}()}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,t.Button,{content:"Sell shares",onClick:function(){function b(){return c("stocks_sell",{share:v.REF})}return b}()})],0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Prominent products:",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,v.Products,0),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"View news archives",onClick:function(){function b(){return c("stocks_archive",{share:v.REF})}return b}()})," ",(0,e.createComponentVNode)(2,t.Divider)]},v.ID)})})},C=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.logs,p=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h2",null,"Stock Transaction Logs",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function v(){return c("stocks_backbutton")}return v}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,p.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:[v.type!=="borrow"?(0,e.createVNode)(1,"div",null,[v.time,(0,e.createTextVNode)(" | "),(0,e.createVNode)(1,"b",null,v.user_name,0),(0,e.createTextVNode)(" "),v.type==="transaction_bought"?(0,e.createVNode)(1,"span",null,"bought",16):(0,e.createVNode)(1,"span",null,"sold",16),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,v.stocks,0),(0,e.createTextVNode)(" stocks at "),v.shareprice,(0,e.createTextVNode)(" a share for"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,v.money,0),(0,e.createTextVNode)(" total credits"),(0,e.createTextVNode)(" "),v.type==="transaction_bought"?(0,e.createVNode)(1,"span",null,"in",16):(0,e.createVNode)(1,"span",null,"from",16),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,v.company_name,0),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br")],0):(0,e.createVNode)(1,"div",null,[v.time,(0,e.createTextVNode)(" | "),(0,e.createVNode)(1,"b",null,v.user_name,0),(0,e.createTextVNode)(" borrowed "),(0,e.createVNode)(1,"b",null,v.stocks,0),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("stocks with a deposit of "),(0,e.createVNode)(1,"b",null,v.money,0),(0,e.createTextVNode)(" credits in"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"b",null,v.company_name,0),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br")],0),(0,e.createComponentVNode)(2,t.Divider)]},v.time)}),0)]})},s=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.name,p=l.events,v=p===void 0?[]:p,b=l.articles,g=b===void 0?[]:b;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h2",null,[(0,e.createTextVNode)("News feed for "),h],0),(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function N(){return c("stocks_backbutton")}return N}()}),(0,e.createVNode)(1,"h3",null,"Events",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,v.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"b",null,N.current_title,0),(0,e.createVNode)(1,"br"),N.current_desc],0),(0,e.createComponentVNode)(2,t.Divider)]},N.current_title)}),0),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"Articles",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"div",null,g.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"div",null,[(0,e.createVNode)(1,"b",null,N.headline,0),(0,e.createVNode)(1,"i",null,N.subtitle,0),(0,e.createVNode)(1,"br"),N.article,(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("- "),N.author,(0,e.createTextVNode)(", "),N.spacetime,(0,e.createTextVNode)(" (via"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,N.outlet,0),(0,e.createTextVNode)(")")],0),(0,e.createComponentVNode)(2,t.Divider)]},N.headline)}),0)]})},m=function(d){var i=(0,a.useBackend)(),c=i.act,l=i.data,h=l.name,p=l.maxValue,v=l.values,b=v===void 0?[]:v;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go back",onClick:function(){function g(){return c("stocks_backbutton")}return g}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Section,{position:"relative",height:"100%",children:(0,e.createComponentVNode)(2,t.Chart.Line,{fillPositionedParent:!0,data:b,rangeX:[0,b.length-1],rangeY:[0,p],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"p",null,[h,(0,e.createTextVNode)(" share value per share")],0)]})}},42748:function(x,r,n){"use strict";r.__esModule=!0,r.SuitCycler=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.SuitCycler=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.active,l=i.locked,h=i.uv_active,p=(0,e.createComponentVNode)(2,V);return h?p=(0,e.createComponentVNode)(2,y):l?p=(0,e.createComponentVNode)(2,k):c&&(p=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,o.Window,{width:320,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:p})})}return s}(),V=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.safeties,l=i.occupied,h=i.suit,p=i.helmet,v=i.departments,b=i.species,g=i.uv_level,N=i.max_uv_level,B=i.can_repair,S=i.damage;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function L(){return d("lock")}return L}()}),children:[!!(l&&c)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){function L(){return d("eject_guy")}return L}()})]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){function L(){return d("dispense",{item:"helmet"})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"square":"square-o",content:h||"Empty",disabled:!h,onClick:function(){function L(){return d("dispense",{item:"suit"})}return L}()})}),B&&S?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit Damage",children:[S,(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",content:"Repair",onClick:function(){function L(){return d("repair_suit")}return L}()})]}):null]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Customization",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Paintjob",children:(0,e.createComponentVNode)(2,t.Dropdown,{noscroll:!0,width:"150px",options:v,selected:v[0],onSelected:function(){function L(I){return d("department",{department:I})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Species",children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"150px",maxHeight:"160px",options:b,selected:b[0],onSelected:function(){function L(I){return d("species",{species:I})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Customize",onClick:function(){function L(){return d("apply_paintjob")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"UV Decontamination",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation Level",children:(0,e.createComponentVNode)(2,t.NumberInput,{width:"50px",value:g,minValue:1,maxValue:N,stepPixelSize:30,onChange:function(){function L(I,w){return d("radlevel",{radlevel:w})}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Decontaminate",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"recycle",disabled:l&&c,textAlign:"center",onClick:function(){function L(){return d("uv")}return L}()})})]})})],4)},y=function(m){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},k=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.model_text,l=i.userHasAccess;return(0,e.createComponentVNode)(2,t.Section,{title:"Locked",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Box,{color:"bad",bold:!0,children:["The ",c," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlock",content:"[Unlock]",disabled:!l,onClick:function(){function h(){return d("lock")}return h}()})})]})},C=function(m){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being painted. Please wait."})}},50479:function(x,r,n){"use strict";r.__esModule=!0,r.SuitStorageUnit=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.SuitStorageUnit=function(){function s(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.panelopen,l=i.uv_active,h=i.broken,p=(0,e.createComponentVNode)(2,V);return c?p=(0,e.createComponentVNode)(2,y):l?p=(0,e.createComponentVNode)(2,k):h&&(p=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,o.Window,{width:400,height:365,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:p})})}return s}(),V=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.locked,l=i.open,h=i.safeties,p=i.occupied,v=i.suit,b=i.helmet,g=i.mask;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",minHeight:"260px",buttons:(0,e.createFragment)([!l&&(0,e.createComponentVNode)(2,t.Button,{icon:c?"unlock":"lock",content:c?"Unlock":"Lock",onClick:function(){function N(){return d("lock")}return N}()}),!c&&(0,e.createComponentVNode)(2,t.Button,{icon:l?"sign-out-alt":"sign-in-alt",content:l?"Close":"Open",onClick:function(){function N(){return d("door")}return N}()})],0),children:[!!(p&&h)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){function N(){return d("eject_guy")}return N}()})]}),c&&(0,e.createComponentVNode)(2,t.Box,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.createComponentVNode)(2,t.Box,{children:"Unit Locked"}),(0,e.createComponentVNode)(2,t.Icon,{name:"lock"})]})||l&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:(0,e.createComponentVNode)(2,t.Button,{icon:b?"square":"square-o",content:b||"Empty",disabled:!b,onClick:function(){function N(){return d("dispense",{item:"helmet"})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Suit",children:(0,e.createComponentVNode)(2,t.Button,{icon:v?"square":"square-o",content:v||"Empty",disabled:!v,onClick:function(){function N(){return d("dispense",{item:"suit"})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:g?"square":"square-o",content:g||"Empty",disabled:!g,onClick:function(){function N(){return d("dispense",{item:"mask"})}return N}()})})]})||(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:p&&h,textAlign:"center",onClick:function(){function N(){return d("uv")}return N}()})]})},y=function(m){var u=(0,a.useBackend)(),d=u.act,i=u.data,c=i.safeties,l=i.uv_super;return(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance Panel",children:[(0,e.createComponentVNode)(2,t.Box,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",l?"15nm":"185nm",".",(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Knob,{size:2,inline:!0,value:l,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:l?"red":"green",format:function(){function h(p){return p?"15nm":"185nm"}return h}(),onChange:function(){function h(p,v){return d("toggleUV")}return h}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Icon,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",c?(0,e.createVNode)(1,"font",null,"GREEN",16,{color:"green"}):(0,e.createVNode)(1,"font",null,"RED",16,{color:"red"})," ","LED is on.",(0,e.createComponentVNode)(2,t.Flex,{mt:1,align:"center",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){function h(){return d("togglesafeties")}return h}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"circle",color:c?"black":"red",mr:2}),(0,e.createComponentVNode)(2,t.Icon,{name:"circle",color:c?"green":"black"})]})]})]})]})},k=function(m){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Contents are currently being decontaminated. Please wait."})},C=function(m){return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},80341:function(x,r,n){"use strict";r.__esModule=!0,r.SupermatterMonitorContent=r.SupermatterMonitor=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=n(5339),V=n(40946),y=r.SupermatterMonitor=function(){function m(u){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return m}(),k=r.SupermatterMonitorContent=function(){function m(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.active;return l?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,C)}return m}(),C=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.supermatters;return(0,e.createComponentVNode)(2,t.Section,{title:"Supermatters Detected",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Refresh",icon:"sync",onClick:function(){function h(){return i("refresh")}return h}()}),children:(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:l.map(function(h,p){return(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"49%",grow:p%2,children:(0,e.createComponentVNode)(2,t.Section,{title:h.area_name+" (#"+h.uid+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:[h.integrity," %"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View Details",onClick:function(){function v(){return i("set",{set:h.uid})}return v}()})})]})})},p)})})})},s=function(u){var d=(0,a.useBackend)(),i=d.act,c=d.data,l=c.SM_area,h=c.SM_integrity,p=c.SM_power,v=c.SM_ambienttemp,b=c.SM_ambientpressure,g=c.SM_EPR,N=c.SM_gas_O2,B=c.SM_gas_CO2,S=c.SM_gas_N2,L=c.SM_gas_PH,I=c.SM_gas_N2O;return(0,e.createComponentVNode)(2,t.Section,{title:(0,V.toTitleCase)(l),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Return to Menu",onClick:function(){function w(){return i("clear")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{animated:!0,value:h,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:p>300&&"bad"||p>150&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function w(T){return(0,f.round)(T,2)+" MeV/cm\xB3"}return w}(),value:p})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:v>5e3&&"bad"||v>4e3&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function w(T){return(0,f.round)(T,2)+" K"}return w}(),value:v})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b>1e4&&"bad"||b>5e3&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function w(T){return(0,f.round)(T,2)+" kPa"}return w}(),value:b})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber EPR",children:(0,e.createComponentVNode)(2,t.Box,{color:g>4&&"bad"||g>1&&"average"||"good",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{format:function(){function w(T){return(0,f.round)(T,2)}return w}(),value:g})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"O\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:N}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"CO\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:B}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"N\xB2",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:S}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"PH",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:L}),"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"N\xB2O",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:I}),"%"]})]})})]})})}},88748:function(x,r,n){"use strict";r.__esModule=!0,r.SupplyConsole=void 0;var e=n(58734),a=n(45445),t=n(420),o=n(54777),f=n(35239),V=n(57027),y=n(47007),k=n(75671),C=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=b.supply_points,N=h.args,B=N.name,S=N.cost,L=N.manifest,I=N.ref,w=N.random;return(0,e.createComponentVNode)(2,f.Section,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:B,buttons:(0,e.createComponentVNode)(2,f.Button,{icon:"shopping-cart",content:"Buy - "+S+" points",disabled:S>g,onClick:function(){function T(){return v("request_crate",{ref:I})}return T}()}),children:(0,e.createComponentVNode)(2,f.Section,{title:"Contains"+(w?" any "+w+" of:":""),scrollable:!0,height:"200px",children:L.map(function(T){return(0,e.createComponentVNode)(2,f.Box,{children:T},T)})})})},s=r.SupplyConsole=function(){function l(h){var p=(0,o.useBackend)(),v=p.act,b=p.data;return(0,V.modalRegisterBodyOverride)("view_crate",C),(0,e.createComponentVNode)(2,y.Window,{width:700,height:620,children:(0,e.createComponentVNode)(2,y.Window.Content,{children:[(0,e.createComponentVNode)(2,V.ComplexModal,{maxWidth:"100%"}),(0,e.createComponentVNode)(2,f.Section,{title:"Supply Records",children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,u)]})]})})}return l}(),m=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=b.supply_points,N=b.shuttle,B=b.shuttle_auth,S=null,L=!1;return B&&(N.launch===1&&N.mode===0?S=(0,e.createComponentVNode)(2,f.Button,{icon:"rocket",content:"Send Away",onClick:function(){function I(){return v("send_shuttle",{mode:"send_away"})}return I}()}):N.launch===2&&(N.mode===3||N.mode===1)?S=(0,e.createComponentVNode)(2,f.Button,{icon:"ban",content:"Cancel Launch",onClick:function(){function I(){return v("send_shuttle",{mode:"cancel_shuttle"})}return I}()}):N.launch===1&&N.mode===5&&(S=(0,e.createComponentVNode)(2,f.Button,{icon:"rocket",content:"Send Shuttle",onClick:function(){function I(){return v("send_shuttle",{mode:"send_to_station"})}return I}()})),N.force&&(L=!0)),(0,e.createComponentVNode)(2,f.Section,{children:[(0,e.createComponentVNode)(2,f.LabeledList,{children:(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Supply Points",children:(0,e.createComponentVNode)(2,f.AnimatedNumber,{value:g})})}),(0,e.createComponentVNode)(2,f.Section,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:[(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Location",buttons:(0,e.createFragment)([S,L?(0,e.createComponentVNode)(2,f.Button,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){function I(){return v("send_shuttle",{mode:"force_shuttle"})}return I}()}):null],0),children:N.location}),(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Engine",children:N.engine}),N.mode===4?(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"ETA",children:N.time>1?(0,t.formatTime)(N.time):"LATE"}):null]})})]})},u=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=b.order_auth,N=(0,o.useLocalState)("tabIndex",0),B=N[0],S=N[1];return(0,e.createComponentVNode)(2,f.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,f.Tabs,{children:[(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"box",selected:B===0,onClick:function(){function L(){return S(0)}return L}(),children:"Request"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"check-circle-o",selected:B===1,onClick:function(){function L(){return S(1)}return L}(),children:"Accepted"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"circle-o",selected:B===2,onClick:function(){function L(){return S(2)}return L}(),children:"Requests"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"book",selected:B===3,onClick:function(){function L(){return S(3)}return L}(),children:"Order history"}),(0,e.createComponentVNode)(2,f.Tabs.Tab,{icon:"book",selected:B===4,onClick:function(){function L(){return S(4)}return L}(),children:"Export history"})]}),B===0?(0,e.createComponentVNode)(2,d):null,B===1?(0,e.createComponentVNode)(2,i,{mode:"Approved"}):null,B===2?(0,e.createComponentVNode)(2,i,{mode:"Requested"}):null,B===3?(0,e.createComponentVNode)(2,i,{mode:"All"}):null,B===4?(0,e.createComponentVNode)(2,c):null]})},d=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=b.categories,N=b.supply_packs,B=b.contraband,S=b.supply_points,L=(0,o.useLocalState)("activeCategory",null),I=L[0],w=L[1],T=(0,k.flow)([(0,a.filter)(function(E){return E.group===I}),(0,a.filter)(function(E){return!E.contraband||B}),(0,a.sortBy)(function(E){return E.name}),(0,a.sortBy)(function(E){return E.cost>S})])(N);return(0,e.createComponentVNode)(2,f.Section,{level:2,children:(0,e.createComponentVNode)(2,f.Stack,{children:[(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,f.Section,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:g.map(function(E){return(0,e.createComponentVNode)(2,f.Button,{fluid:!0,content:E,selected:E===I,onClick:function(){function A(){return w(E)}return A}()},E)})})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:1,ml:2,children:(0,e.createComponentVNode)(2,f.Section,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:T.map(function(E){return(0,e.createComponentVNode)(2,f.Box,{children:(0,e.createComponentVNode)(2,f.Stack,{align:"center",justify:"flex-start",children:[(0,e.createComponentVNode)(2,f.Stack.Item,{basis:"70%",children:(0,e.createComponentVNode)(2,f.Button,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:E.name,color:E.cost>S?"red":null,onClick:function(){function A(){return v("request_crate",{ref:E.ref})}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{content:"#",color:E.cost>S?"red":null,onClick:function(){function A(){return v("request_crate_multi",{ref:E.ref})}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Button,{content:"C",color:E.cost>S?"red":null,onClick:function(){function A(){return v("view_crate",{crate:E.ref})}return A}()})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:1,children:[E.cost," points"]})]})},E.name)})})})]})})},i=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=h.mode,N=b.orders,B=b.order_auth,S=b.supply_points,L=N.filter(function(I){return I.status===g||g==="All"});return L.length?(0,e.createComponentVNode)(2,f.Section,{level:2,children:[g==="Requested"&&B?(0,e.createComponentVNode)(2,f.Button,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){function I(){return v("clear_all_requests")}return I}()}):null,L.map(function(I,w){return(0,e.createComponentVNode)(2,f.Section,{title:"Order "+(w+1),buttons:g==="All"&&B?(0,e.createComponentVNode)(2,f.Button,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){function T(){return v("delete_order",{ref:I.ref})}return T}()}):null,children:[(0,e.createComponentVNode)(2,f.LabeledList,{children:[I.entries.map(function(T){return T.entry?(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:T.field,buttons:B?(0,e.createComponentVNode)(2,f.Button,{icon:"pen",content:"Edit",onClick:function(){function E(){v("edit_order_value",{ref:I.ref,edit:T.field,default:T.entry})}return E}()}):null,children:T.entry}):null}),g==="All"?(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:"Status",children:I.status}):null]}),B&&g==="Requested"?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"check",content:"Approve",disabled:I.cost>S,onClick:function(){function T(){return v("approve_order",{ref:I.ref})}return T}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"times",content:"Deny",onClick:function(){function T(){return v("deny_order",{ref:I.ref})}return T}()})],4):null]},w)})]}):(0,e.createComponentVNode)(2,f.Section,{level:2,children:"No orders found."})},c=function(h){var p=(0,o.useBackend)(),v=p.act,b=p.data,g=b.receipts,N=b.order_auth;return g.length?(0,e.createComponentVNode)(2,f.Section,{level:2,children:g.map(function(B,S){return(0,e.createComponentVNode)(2,f.Section,{children:[(0,e.createComponentVNode)(2,f.LabeledList,{children:[B.title.map(function(L){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:L.field,buttons:N?(0,e.createComponentVNode)(2,f.Button,{icon:"pen",content:"Edit",onClick:function(){function I(){return v("export_edit",{ref:B.ref,edit:L.field,default:L.entry})}return I}()}):null,children:L.entry},L.field)}),B.error?(0,e.createComponentVNode)(2,f.LabeledList.Item,{labelColor:"red",label:"Error",children:B.error}):B.contents.map(function(L,I){return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:L.object,buttons:N?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"pen",content:"Edit",onClick:function(){function w(){return v("export_edit_field",{ref:B.ref,index:I+1,edit:"meow",default:L.object})}return w}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"trash",color:"red",content:"Delete",onClick:function(){function w(){return v("export_delete_field",{ref:B.ref,index:I+1})}return w}()})],4):null,children:[L.quantity,"x -> ",L.value," points"]},I)})]}),N?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){function L(){return v("export_add_field",{ref:B.ref})}return L}()}),(0,e.createComponentVNode)(2,f.Button,{icon:"trash",content:"Delete Record",onClick:function(){function L(){return v("export_delete",{ref:B.ref})}return L}()})],4):null]},S)})}):(0,e.createComponentVNode)(2,f.Section,{level:2,children:"No receipts found."})}},25818:function(x,r,n){"use strict";r.__esModule=!0,r.TEGenerator=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=n(420),y=r.TEGenerator=function(){function C(s){var m=(0,t.useBackend)(),u=m.data,d=u.totalOutput,i=u.maxTotalOutput,c=u.thermalOutput,l=u.primary,h=u.secondary;return(0,e.createComponentVNode)(2,f.Window,{width:550,height:310,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Output",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:d,maxValue:i,children:(0,V.formatPower)(d)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Thermal Output",children:(0,V.formatPower)(c)})]})}),l&&h?(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:1,grow:1,children:(0,e.createComponentVNode)(2,k,{name:"Primary Circulator",values:l})}),(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:1,grow:1,children:(0,e.createComponentVNode)(2,k,{name:"Secondary Circulator",values:h})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})}return C}(),k=function(s){var m=s.name,u=s.values,d=u.dir,i=u.output,c=u.flowCapacity,l=u.inletPressure,h=u.inletTemperature,p=u.outletPressure,v=u.outletTemperature;return(0,e.createComponentVNode)(2,o.Section,{title:m+" ("+d+")",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Turbine Output",children:(0,V.formatPower)(i)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Flow Capacity",children:[(0,a.round)(c,2),"%"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inlet Pressure",children:(0,V.formatSiUnit)(l*1e3,0,"Pa")}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inlet Temperature",children:[(0,a.round)(h,2)," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Outlet Pressure",children:(0,V.formatSiUnit)(p*1e3,0,"Pa")}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Outlet Temperature",children:[(0,a.round)(v,2)," K"]})]})})}},39473:function(x,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Tank=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.connected,u=s.showToggle,d=u===void 0?!0:u,i=s.maskConnected,c=s.tankPressure,l=s.releasePressure,h=s.defaultReleasePressure,p=s.minReleasePressure,v=s.maxReleasePressure;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:!!d&&(0,e.createComponentVNode)(2,t.Button,{icon:m?"air-freshener":"lock-open",selected:m,disabled:!i,content:"Mask Release Valve",onClick:function(){function b(){return C("toggle")}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask Connected",children:i?"Yes":"No"})})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:s.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Regulator",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===p,onClick:function(){function b(){return C("pressure",{pressure:"min"})}return b}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l),width:"65px",unit:"kPa",minValue:p,maxValue:v,onChange:function(){function b(g,N){return C("pressure",{pressure:N})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,onClick:function(){function b(){return C("pressure",{pressure:"max"})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l===h,onClick:function(){function b(){return C("pressure",{pressure:"reset"})}return b}()})]})]})})]})})}return V}()},50523:function(x,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.TankDispenser=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.plasma,u=s.oxygen;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:103,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Phoron",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:m?"square":"square-o",content:"Dispense",disabled:!m,onClick:function(){function d(){return C("plasma")}return d}()}),children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"square":"square-o",content:"Dispense",disabled:!u,onClick:function(){function d(){return C("oxygen")}return d}()}),children:u})]})})})})}return V}()},75534:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsLogBrowser=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=r.TelecommsLogBrowser=function(){function s(m){var u=(0,t.useBackend)(),d=u.act,i=u.data,c=i.universal_translate,l=i.network,h=i.temp,p=i.servers,v=i.selectedServer;return(0,e.createComponentVNode)(2,f.Window,{width:575,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[h?(0,e.createComponentVNode)(2,o.NoticeBox,{danger:h.color==="bad",warning:h.color!=="bad",children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-box",verticalAlign:"middle",children:h.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function b(){return d("cleartemp")}return b}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]}):null,(0,e.createComponentVNode)(2,o.Section,{title:"Network Control",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Network",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"search",content:"Refresh",onClick:function(){function b(){return d("scan")}return b}()}),(0,e.createComponentVNode)(2,o.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:p.length===0,onClick:function(){function b(){return d("release")}return b}()})],4),children:(0,e.createComponentVNode)(2,o.Button,{content:l,icon:"pen",onClick:function(){function b(){return d("network")}return b}()})})})}),v?(0,e.createComponentVNode)(2,k,{network:l,server:v,universal_translate:c}):(0,e.createComponentVNode)(2,y,{network:l,servers:p})]})})}return s}(),y=function(m){var u=(0,t.useBackend)(),d=u.act,i=u.data,c=m.network,l=m.servers;return!l||!l.length?(0,e.createComponentVNode)(2,o.Section,{title:"Detected Telecommunications Servers",children:[(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No servers detected."}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Scan",icon:"search",onClick:function(){function h(){return d("scan")}return h}()})]}):(0,e.createComponentVNode)(2,o.Section,{title:"Detected Telecommunications Servers",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:l.map(function(h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h.name+" ("+h.id+")",children:(0,e.createComponentVNode)(2,o.Button,{content:"View",icon:"eye",onClick:function(){function p(){return d("view",{id:h.id})}return p}()})},h.id)})})})},k=function(m){var u=(0,t.useBackend)(),d=u.act,i=u.data,c=m.network,l=m.server,h=m.universal_translate;return(0,e.createComponentVNode)(2,o.Section,{title:"Server ("+l.id+")",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Return",icon:"undo",onClick:function(){function p(){return d("mainmenu")}return p}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Recorded Traffic",children:l.totalTraffic>=1024?(0,a.round)(l.totalTraffic/1024)+" Terrabytes":l.totalTraffic+" Gigabytes"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Stored Logs",mt:"4px",children:(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:!l.logs||!l.logs.length?"No Logs Detected.":l.logs.map(function(p){return(0,e.createComponentVNode)(2,o.Flex.Item,{m:"2px",basis:"49%",grow:p.id%2,children:(0,e.createComponentVNode)(2,o.Section,{title:h||p.parameters.uspeech||p.parameters.intelligible||p.input_type==="Execution Error"?p.input_type:"Audio File",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){function v(){return d("delete",{id:p.id})}return v}()}),children:p.input_type==="Execution Error"?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data type",children:"Error"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Output",children:p.parameters.message}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Delete",children:(0,e.createComponentVNode)(2,o.Button,{icon:"trash",onClick:function(){function v(){return d("delete",{id:p.id})}return v}()})})]}):h||p.parameters.uspeech||p.parameters.intelligible?(0,e.createComponentVNode)(2,C,{log:p}):(0,e.createComponentVNode)(2,C,{error:!0})})},p.id)})})})]})},C=function(m){var u=(0,t.useBackend)(),d=u.act,i=u.data,c=m.log,l=m.error,h=c&&c.parameters||{none:"none"},p=h.timecode,v=h.name,b=h.race,g=h.job,N=h.message;return l?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time Recieved",children:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Source",children:"Unidentifiable"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Class",children:b}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Time Recieved",children:p}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Source",children:[v," (Job: ",g,")"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Class",children:b}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contents",className:"LabeledList__breakContents",children:N})]})}},1079:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsMachineBrowser=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.TelecommsMachineBrowser=function(){function y(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=m.network,d=m.temp,i=m.machinelist,c=m.selectedMachine;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[d?(0,e.createComponentVNode)(2,t.NoticeBox,{danger:d.color==="bad",warning:d.color!=="bad",children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-box",verticalAlign:"middle",children:d.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function l(){return s("cleartemp")}return l}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}):null,(0,e.createComponentVNode)(2,t.Section,{title:"Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Network",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"search",content:"Probe Network",onClick:function(){function l(){return s("scan")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:i.length===0,onClick:function(){function l(){return s("release")}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Button,{content:u,icon:"pen",onClick:function(){function l(){return s("network")}return l}()})})})}),i&&i.length?(0,e.createComponentVNode)(2,V,{title:c?c.name+" ("+c.id+")":"Detected Network Entities",list:c?c.links:i,showBack:c}):(0,e.createComponentVNode)(2,t.Section,{title:"No Devices Found",children:(0,e.createComponentVNode)(2,t.Button,{icon:"search",content:"Probe Network",onClick:function(){function l(){return s("scan")}return l}()})})]})})}return y}(),V=function(k){var C=(0,a.useBackend)(),s=C.act,m=C.data,u=k.list,d=k.title,i=k.showBack;return(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:i&&(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"Back to Main Menu",onClick:function(){function c(){return s("mainmenu")}return c}()}),children:[(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"u",null,"Linked entities",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.length?u.map(function(c){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:c.name+" ("+c.id+")",children:(0,e.createComponentVNode)(2,t.Button,{content:"View",icon:"eye",onClick:function(){function l(){return s("view",{id:c.id})}return l}()})},c.id)}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{color:"bad",children:"No links detected."})})]})}},58219:function(x,r,n){"use strict";r.__esModule=!0,r.TelecommsMultitoolMenu=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(43396),f=n(47007),V=r.TelecommsMultitoolMenu=function(){function C(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.temp,c=d.on,l=d.id,h=d.network,p=d.autolinkers,v=d.shadowlink,b=d.options,g=d.linked,N=d.filter,B=d.multitool,S=d.multitool_buffer;return(0,e.createComponentVNode)(2,f.Window,{width:520,height:540,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.TemporaryNotice),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k,{options:b})]})})}return C}(),y=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=d.temp,c=d.on,l=d.id,h=d.network,p=d.autolinkers,v=d.shadowlink,b=d.options,g=d.linked,N=d.filter,B=d.multitool,S=d.multitool_buffer;return(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:c,content:c?"On":"Off",onClick:function(){function L(){return u("toggle")}return L}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Identification String",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:l,onClick:function(){function L(){return u("id")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",content:h,onClick:function(){function L(){return u("network")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prefabrication",children:p?"TRUE":"FALSE"}),v?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shadow Link",children:"Active."}):null,B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Multitool Buffer",children:[S?(0,e.createFragment)([S.name,(0,e.createTextVNode)(" ("),S.id,(0,e.createTextVNode)(")")],0):null,(0,e.createComponentVNode)(2,t.Button,{color:S?"green":null,content:S?"Link ("+S.id+")":"Add Machine",icon:S?"link":"plus",onClick:S?function(){return u("link")}:function(){return u("buffer")}}),S?(0,e.createComponentVNode)(2,t.Button,{color:"red",content:"Flush",icon:"trash",onClick:function(){function L(){return u("flush")}return L}()}):null]}):null]}),(0,e.createComponentVNode)(2,t.Section,{title:"Linked network Entities",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(L){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:L.ref+" "+L.name+" ("+L.id+")",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{color:"red",icon:"trash",onClick:function(){function I(){return u("unlink",{unlink:L.index})}return I}()})},L.ref)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Filtering Frequencies",mt:1,children:[N.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{content:L.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){function I(){return u("delete",{delete:L.freq})}return I}()},L.index)}),!N||N.length===0?(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No filters."}):null]})]})},k=function(s){var m=(0,a.useBackend)(),u=m.act,d=m.data,i=s.options,c=i.use_listening_level,l=i.use_broadcasting,h=i.use_receiving,p=i.listening_level,v=i.broadcasting,b=i.receiving,g=i.use_change_freq,N=i.change_freq,B=i.use_broadcast_range,S=i.use_receive_range,L=i.range,I=i.minRange,w=i.maxRange;return!c&&!l&&!h&&!g&&!B&&!S?(0,e.createComponentVNode)(2,t.Section,{title:"No Options Found"}):(0,e.createComponentVNode)(2,t.Section,{title:"Options",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[c?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Signal Locked to Station",children:(0,e.createComponentVNode)(2,t.Button,{icon:p?"lock-closed":"lock-open",content:p?"Yes":"No",onClick:function(){function T(){return u("change_listening")}return T}()})}):null,l?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Broadcasting",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:v,content:v?"Yes":"No",onClick:function(){function T(){return u("broadcast")}return T}()})}):null,h?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Receving",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",selected:b,content:b?"Yes":"No",onClick:function(){function T(){return u("receive")}return T}()})}):null,g?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Signal Frequency",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wave-square",selected:!!N,content:N?"Yes ("+N+")":"No",onClick:function(){function T(){return u("change_freq")}return T}()})}):null,B||S?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(B?"Broadcast":"Receive")+" Range",children:(0,e.createComponentVNode)(2,t.NumberInput,{value:L,minValue:I,maxValue:w,unit:"gigameters",stepPixelSize:4,format:function(){function T(E){return E+1}return T}(),onDrag:function(){function T(E,A){return u("range",{range:A})}return T}()})}):null]})})}},21646:function(x,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Teleporter=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.locked_name,u=s.station_connected,d=s.hub_connected,i=s.calibrated,c=s.teleporter_on;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:200,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bullseye",onClick:function(){function l(){return C("select_target")}return l}(),content:m})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibrated",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:i,color:i?"good":"bad",onClick:function(){function l(){return C("test_fire")}return l}(),content:i?"Accurate":"Test Fire"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleporter",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){function l(){return C("toggle_on")}return l}(),content:c?"Online":"OFFLINE"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Station",children:u?"Connected":"Not Connected"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hub",children:d?"Connected":"Not Connected"})]})})})})}return V}()},90601:function(x,r,n){"use strict";r.__esModule=!0,r.TelesciConsoleContent=r.TelesciConsole=void 0;var e=n(58734),a=n(45445),t=n(54777),o=n(35239),f=n(47007),V=r.TelesciConsole=function(){function C(s){var m=(0,t.useBackend)(),u=m.act,d=m.data,i=d.noTelepad;return(0,e.createComponentVNode)(2,f.Window,{width:400,height:450,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:i&&(0,e.createComponentVNode)(2,y)||(0,e.createComponentVNode)(2,k)})})}return C}(),y=function(s){return(0,e.createComponentVNode)(2,o.Section,{title:"Error",color:"bad",children:["No telepad located.",(0,e.createVNode)(1,"br"),"Please add telepad data."]})},k=r.TelesciConsoleContent=function(){function C(s){var m=(0,t.useBackend)(),u=m.act,d=m.data,i=d.insertedGps,c=d.rotation,l=d.currentZ,h=d.cooldown,p=d.crystalCount,v=d.maxCrystals,b=d.maxPossibleDistance,g=d.maxAllowedDistance,N=d.distance,B=d.tempMsg,S=d.sectorOptions,L=d.lastTeleData;return(0,e.createComponentVNode)(2,o.Section,{title:"Telepad Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",disabled:!i,onClick:function(){function I(){return u("ejectGPS")}return I}(),content:"Eject GPS"}),children:[(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,children:h&&(0,e.createComponentVNode)(2,o.Box,{children:["Telepad is recharging. Please wait"," ",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h})," seconds."]})||(0,e.createComponentVNode)(2,o.Box,{children:B})}),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bearing",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:c,format:function(){function I(w){return w+"\xB0"}return I}(),step:1,minValue:-900,maxValue:900,onDrag:function(){function I(w,T){return u("setrotation",{val:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:N,format:function(){function I(w){return w+"/"+g+" m"}return I}(),minValue:0,maxValue:g,step:1,stepPixelSize:4,onDrag:function(){function I(w,T){return u("setdistance",{val:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sector",children:(0,a.sortBy)(function(I){return Number(I)})(S).map(function(I){return(0,e.createComponentVNode)(2,o.Button,{icon:"check-circle",content:I,selected:l===I,onClick:function(){function w(){return u("setz",{setz:I})}return w}()},I)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"share",iconRotation:-90,onClick:function(){function I(){return u("send")}return I}(),content:"Send"}),(0,e.createComponentVNode)(2,o.Button,{icon:"share",iconRotation:90,onClick:function(){function I(){return u("receive")}return I}(),content:"Receive"}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",iconRotation:90,onClick:function(){function I(){return u("recal")}return I}(),content:"Recalibrate"})]})]}),L&&(0,e.createComponentVNode)(2,o.Section,{mt:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Telepad Location",children:[L.src_x,", ",L.src_y]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Distance",children:[L.distance,"m"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transit Time",children:[L.time," secs"]})]})})||(0,e.createComponentVNode)(2,o.Section,{mt:1,children:"No teleport data found."}),(0,e.createComponentVNode)(2,o.Section,{children:["Crystals: ",p," / ",v]})]})}return C}()},66561:function(x,r,n){"use strict";r.__esModule=!0,r.TextInputModal=void 0;var e=n(58734),a=n(80132),t=n(77921),o=n(54777),f=n(35239),V=n(47007),y=r.TextInputModal=function(){function C(s){var m=(0,o.useBackend)(),u=m.act,d=m.data,i=d.large_buttons,c=d.max_length,l=d.message,h=l===void 0?"":l,p=d.multiline,v=d.placeholder,b=d.timeout,g=d.title,N=d.prevent_enter,B=(0,o.useLocalState)("input",v||""),S=B[0],L=B[1],I=function(){function T(E){E!==S&&L(E)}return T}(),w=135+(h.length>30?Math.ceil(h.length/4):0)+(p||S.length>=30?75:0)+(h.length&&i?5:0);return(0,e.createComponentVNode)(2,V.Window,{title:g,width:325,height:w,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,V.Window.Content,{onEscape:function(){function T(){return u("cancel")}return T}(),onEnter:function(){function T(E){N||(u("submit",{entry:S}),E.preventDefault())}return T}(),children:(0,e.createComponentVNode)(2,f.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,f.Box,{color:"label",children:h})}),(0,e.createComponentVNode)(2,f.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{input:S,onType:I})}),(0,e.createComponentVNode)(2,f.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:S,message:S.length+"/"+c})})]})})})]})}return C}(),k=function(s){var m=(0,o.useBackend)(),u=m.act,d=m.data,i=d.max_length,c=d.multiline,l=d.prevent_enter,h=s.input,p=s.onType;return(0,e.createComponentVNode)(2,f.TextArea,{autoFocus:!0,autoSelect:!0,height:c||h.length>=30?"100%":"1.8rem",maxLength:i,onEscape:function(){function v(){return u("cancel")}return v}(),onEnter:function(){function v(b){l||(u("submit",{entry:h}),b.preventDefault())}return v}(),onInput:function(){function v(b,g){return p(g)}return v}(),placeholder:"Type something...",value:h})}},84824:function(x,r,n){"use strict";r.__esModule=!0,r.TimeClock=void 0;var e=n(58734),a=n(5339),t=n(54777),o=n(35239),f=n(47007),V=n(60918),y=r.TimeClock=function(){function k(C){var s=(0,t.useBackend)(),m=s.act,u=s.data,d=u.department_hours,i=u.user_name,c=u.card,l=u.assignment,h=u.job_datum,p=u.allow_change_job,v=u.job_choices;return(0,e.createComponentVNode)(2,f.Window,{width:500,height:520,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"OOC",children:[(0,e.createComponentVNode)(2,o.NoticeBox,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.createComponentVNode)(2,o.Section,{level:2,title:"Time Off Balance for "+i,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.keys(d).map(function(b){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b,color:d[b]>6?"good":d[b]>1?"average":"bad",children:[(0,a.toFixed)(d[b],1)," ",d[b]===1?"hour":"hours"]},b)})})})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Employee Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Employee ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"user",onClick:function(){function b(){return m("id")}return b}(),children:c||"Insert ID"})}),!!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Box,{backgroundColor:h.selection_color,p:.8,children:(0,e.createComponentVNode)(2,o.Flex,{justify:"space-between",align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{ml:1,children:(0,e.createComponentVNode)(2,V.RankIcon,{color:"white",rank:h.title})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,inline:!0,mr:1,children:h.title})})]})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Departments",children:h.departments}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pay Scale",children:h.economic_modifier}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"PTO Elegibility",children:h.timeoff_factor>0&&(0,e.createComponentVNode)(2,o.Box,{children:["Earns PTO - ",h.pto_department]})||h.timeoff_factor<0&&(0,e.createComponentVNode)(2,o.Box,{children:["Requires PTO - ",h.pto_department]})||(0,e.createComponentVNode)(2,o.Box,{children:"Neutral"})})],4)]})}),!!(p&&h&&h.timeoff_factor!==0&&l!=="Dismissed")&&(0,e.createComponentVNode)(2,o.Section,{title:"Employment Actions",children:h.timeoff_factor>0&&(d[h.pto_department]>0&&(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"exclamation-triangle",onClick:function(){function b(){return m("switch-to-offduty")}return b}(),children:"Go Off-Duty"})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(v).length&&Object.keys(v).map(function(b){var g=v[b];return g.map(function(N){return(0,e.createComponentVNode)(2,o.Button,{icon:"suitcase",onClick:function(){function B(){return m("switch-to-onduty-rank",{"switch-to-onduty-rank":b,"switch-to-onduty-assignment":N})}return B}(),children:N},N)})})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}return k}()},97360:function(x,r,n){"use strict";r.__esModule=!0,r.TraitTutorial=r.TraitSelection=r.TraitDescription=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.TraitTutorial=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data;return(0,e.createComponentVNode)(2,o.Window,{width:804,height:426,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Guide to Custom Traits",children:(0,e.createComponentVNode)(2,V)})})})}return k}(),V=r.TraitSelection=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=u.names,i=u.selection;return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{shrink:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Trait Selection",children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:d.map(function(c){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===i,onClick:function(){function l(){return m("select_trait",{name:c})}return l}(),children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:c})},c)})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:8,children:i&&(0,e.createComponentVNode)(2,t.Section,{title:i,children:(0,e.createComponentVNode)(2,y,{name:i})})})]})}return k}(),y=r.TraitDescription=function(){function k(C){var s=(0,a.useBackend)(),m=s.act,u=s.data,d=C.name,i=u.descriptions,c=u.categories,l=u.tutorials;return(0,e.createComponentVNode)(2,t.Section,{StackWrap:!0,children:[(0,e.createVNode)(1,"b",null,"Name:",16)," ",d,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Category:",16)," ",c[d],(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Description:",16)," ",i[d],(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"Details & How to Use:",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"div",null,null,1,{dangerouslySetInnerHTML:{__html:l[d]}})]})}return k}()},91868:function(x,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.TransferValve=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.tank_one,u=s.tank_two,d=s.attached_device,i=s.valve;return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:i?"unlock":"lock",content:i?"Open":"Closed",disabled:!m||!u,onClick:function(){function c(){return C("toggle")}return c}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!d,onClick:function(){function c(){return C("device")}return c}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:d,disabled:!d,onClick:function(){function c(){return C("remove_device")}return c}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:m,disabled:!m,onClick:function(){function c(){return C("tankone")}return c}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Tank"})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:u,disabled:!u,onClick:function(){function c(){return C("tanktwo")}return c}()})}):(0,e.createComponentVNode)(2,t.NoticeBox,{textAlign:"center",children:"Attach Tank"})})})]})})}return V}()},67355:function(x,r,n){"use strict";r.__esModule=!0,r.TurbineControl=void 0;var e=n(58734),a=n(420),t=n(54777),o=n(35239),f=n(47007),V=r.TurbineControl=function(){function y(k){var C=(0,t.useBackend)(),s=C.act,m=C.data,u=m.connected,d=m.compressor_broke,i=m.turbine_broke,c=m.broken,l=m.door_status,h=m.online,p=m.power,v=m.rpm,b=m.temp;return(0,e.createComponentVNode)(2,f.Window,{width:520,height:440,resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"Turbine Controller",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:c&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:["Setup is broken",(0,e.createComponentVNode)(2,o.Button,{icon:"sync",onClick:function(){function g(){return s("reconnect")}return g}(),content:"Reconnect"})]})||(0,e.createComponentVNode)(2,o.Box,{color:h?"good":"bad",children:h&&!d&&!i?"Online":"Offline"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Compressor",children:d&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Compressor is inoperable."})||i&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Turbine is inoperable."})||(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:h,content:"Compressor Power",onClick:function(){function g(){return s(h?"power-off":"power-on")}return g}()})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vent Doors",children:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:l,onClick:function(){function g(){return s("doors")}return g}(),content:l?"Closed":"Open"})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Turbine Speed",children:[c?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v})," RPM"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Temperature",children:[c?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Generated Power",children:c?"--":(0,e.createComponentVNode)(2,o.AnimatedNumber,{format:function(){function g(N){return(0,a.formatPower)(N)}return g}(),value:Number(p)})})]})})]})})}return y}()},22576:function(x,r,n){"use strict";r.__esModule=!0,r.Turbolift=void 0;var e=n(58734),a=n(54777),t=n(35239),o=n(47007),f=r.Turbolift=function(){function V(y){var k=(0,a.useBackend)(),C=k.act,s=k.data,m=s.floors,u=s.doors_open,d=s.fire_mode;return(0,e.createComponentVNode)(2,o.Window,{width:480,height:260+d*25,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Floor Selection",className:d?"Section--elevator--fire":null,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:u?"door-open":"door-closed",content:u?d?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:u&&!d,color:d?"red":null,onClick:function(){function i(){return C("toggle_doors")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){function i(){return C("emergency_stop")}return i}()})],4),children:[!d||(0,e.createComponentVNode)(2,t.Section,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"100%",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",justify:"space-around",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"22%",textAlign:"right",mr:"3px",children:i.label||"Floor #"+i.id}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"8%",textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"circle",color:i.current?"red":i.target?"green":i.queued?"yellow":null,onClick:function(){function c(){return C("move_to_floor",{ref:i.ref})}return c}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{basis:"50%",grow:1,children:i.name})]})},i.id)})})]})})})}return V}()},96728:function(x,r,n){"use strict";r.__esModule=!0,r.Uplink=r.GenericUplink=void 0;var e=n(58734),a=n(40946),t=n(54777),o=n(35239),f=n(420),V=n(47007),y=25,k=r.Uplink=function(){function d(i){var c=(0,t.useBackend)(),l=c.data,h=(0,t.useLocalState)("screen",0),p=h[0],v=h[1],b=l.telecrystals;return(0,e.createComponentVNode)(2,V.Window,{width:620,height:580,theme:"syndicate",resizable:!0,children:(0,e.createComponentVNode)(2,V.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,C,{screen:p,setScreen:v}),p===0&&(0,e.createComponentVNode)(2,m,{currencyAmount:b,currencySymbol:"TC"})||p===1&&(0,e.createComponentVNode)(2,s)||(0,e.createComponentVNode)(2,o.Section,{color:"bad",children:"Error"})]})})}return d}(),C=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=i.screen,v=i.setScreen,b=h.discount_name,g=h.discount_amount,N=h.offer_expiry;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Tabs,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===0,onClick:function(){function B(){return v(0)}return B}(),children:"Request Items"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:p===1,onClick:function(){function B(){return v(1)}return B}(),children:"Exploitable Information"})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Item Discount",level:2,children:g<100&&(0,e.createComponentVNode)(2,o.Box,{children:[b," - ",g,"% off. Offer expires at:"," ",N]})||(0,e.createComponentVNode)(2,o.Box,{children:"No items currently discounted."})})]})},s=function(i){var c=(0,t.useBackend)(),l=c.act,h=c.data,p=h.exploit,v=h.locked_records;return(0,e.createComponentVNode)(2,o.Section,{title:"Exploitable Information",buttons:p&&(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"Back",onClick:function(){function b(){return l("view_exploits",{id:0})}return b}()}),children:p&&(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:p.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:p.sex}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Species",children:p.species}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:p.age}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:p.rank}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Home System",children:p.home_system}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Birthplace",children:p.birthplace}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Citizenship",children:p.citizenship}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Faction",children:p.faction}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Religion",children:p.religion}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprint",children:p.fingerprint}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Other Affiliations",children:p.antagfaction}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:"Acquired Information"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:p.nanoui_exploit_record.split(" ").map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:b},b)})})]})})||v.map(function(b){return(0,e.createComponentVNode)(2,o.Button,{icon:"eye",fluid:!0,content:b.name,onClick:function(){function g(){return l("view_exploits",{id:b.id})}return g}()},b.id)})})},m=r.GenericUplink=function(){function d(i){var c,l,h=i.currencyAmount,p=h===void 0?0:h,v=i.currencySymbol,b=v===void 0?"\u20AE":v,g=(0,t.useBackend)(),N=g.act,B=g.data,S=B.compactMode,L=B.lockable,I=B.categories,w=I===void 0?[]:I,T=(0,t.useLocalState)("searchText",""),E=T[0],A=T[1],M=(0,t.useLocalState)("category",(c=w[0])==null?void 0:c.name),R=M[0],O=M[1],F=(0,a.createSearch)(E,function(j){return j.name+j.desc}),D=E.length>0&&w.flatMap(function(j){return j.items||[]}).filter(F).filter(function(j,_){return _0?"good":"bad",children:[(0,f.formatMoney)(p)," ",b]}),buttons:(0,e.createFragment)([(0,e.createTextVNode)("Search"),(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,value:E,onInput:function(){function j(_,z){return A(z)}return j}(),mx:1}),(0,e.createComponentVNode)(2,o.Button,{icon:S?"list":"info",content:S?"Compact":"Detailed",onClick:function(){function j(){return N("compact_toggle")}return j}()}),!!L&&(0,e.createComponentVNode)(2,o.Button,{icon:"lock",content:"Lock",onClick:function(){function j(){return N("lock")}return j}()})],0),children:(0,e.createComponentVNode)(2,o.Flex,{children:[E.length===0&&(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:w.map(function(j){var _;return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:j.name===R,onClick:function(){function z(){return O(j.name)}return z}(),children:[j.name," (",((_=j.items)==null?void 0:_.length)||0,")"]},j.name)})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,basis:0,children:[D.length===0&&(0,e.createComponentVNode)(2,o.NoticeBox,{children:E.length===0?"No items in this category.":"No results found."}),(0,e.createComponentVNode)(2,u,{compactMode:E.length>0||S,currencyAmount:p,currencySymbol:b,items:D})]})]})})}return d}(),u=function(i){var c=i.compactMode,l=i.currencyAmount,h=i.currencySymbol,p=(0,t.useBackend)(),v=p.act,b=(0,t.useLocalState)("hoveredItem",{}),g=b[0],N=b[1],B=g&&g.cost||0,S=i.items.map(function(L){var I=g&&g.name!==L.name,w=l-B=0)&&(T[A]=I[A]);return T}var C=[null,"average","bad"],s={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},m={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},u=r.VorePanel=function(){function I(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=(0,t.useLocalState)("panelTabIndex",0),R=M[0],O=M[1],F=[];return F[0]=(0,e.createComponentVNode)(2,i),F[1]=(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,f.Window,{width:890,height:660,theme:"abstract",resizable:!0,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[A.unsaved_changes&&(0,e.createComponentVNode)(2,o.NoticeBox,{danger:!0,children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Save Prefs",icon:"save",onClick:function(){function D(){return E("saveprefs")}return D}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){function D(){E("saveprefs"),E("exportpanel")}return D}()})})]})})||null,(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===0,onClick:function(){function D(){return O(0)}return D}(),children:["Bellies",(0,e.createComponentVNode)(2,o.Icon,{name:"list",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:R===1,onClick:function(){function D(){return O(1)}return D}(),children:["Preferences",(0,e.createComponentVNode)(2,o.Icon,{name:"user-cog",ml:.5})]})]}),F[R]||"Error"]})})}return I}(),d=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.inside,R=M.absorbed,O=M.belly_name,F=M.belly_mode,D=M.desc,j=M.pred,_=M.contents,z=M.ref;return O?(0,e.createComponentVNode)(2,o.Section,{title:"Inside",children:[(0,e.createComponentVNode)(2,o.Box,{color:"green",inline:!0,children:["You are currently ",R?"absorbed into":"inside"]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"yellow",inline:!0,children:[j,"'s"]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"red",inline:!0,children:O}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:s[F],inline:!0,children:m[F]}),"\xA0",(0,e.createComponentVNode)(2,o.Box,{color:"label",children:D}),_.length&&(0,e.createComponentVNode)(2,o.Collapsible,{title:"Belly Contents",children:(0,e.createComponentVNode)(2,B,{contents:_,belly:z})})||"There is nothing else around you."]}):(0,e.createComponentVNode)(2,o.Section,{title:"Inside",children:"You aren't inside anyone."})},i=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.our_bellies,R=A.selected;return(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{shrink:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"My Bellies",scollable:!0,children:(0,e.createComponentVNode)(2,o.Tabs,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function O(){return E("newbelly")}return O}(),children:["New",(0,e.createComponentVNode)(2,o.Icon,{name:"plus",ml:.5})]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{onClick:function(){function O(){return E("exportpanel")}return O}(),children:["Export",(0,e.createComponentVNode)(2,o.Icon,{name:"file-export",ml:.5})]}),(0,e.createComponentVNode)(2,o.Divider),M.map(function(O){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O.selected,textColor:s[O.digest_mode],onClick:function(){function F(){return E("bellypick",{bellypick:O.ref})}return F}(),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,textColor:O.selected&&s[O.digest_mode]||null,children:[O.name," (",O.contents,")"]})},O.name)})]})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,children:R&&(0,e.createComponentVNode)(2,o.Section,{title:R.belly_name,children:(0,e.createComponentVNode)(2,c,{belly:R})})})]})},c=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.contents,R=(0,t.useLocalState)("bellyTabIndex",0),O=R[0],F=R[1],D=[];return D[0]=(0,e.createComponentVNode)(2,l,{belly:A}),D[1]=(0,e.createComponentVNode)(2,h,{belly:A}),D[2]=(0,e.createComponentVNode)(2,p,{belly:A}),D[3]=(0,e.createComponentVNode)(2,b,{belly:A}),D[4]=(0,e.createComponentVNode)(2,g,{belly:A}),D[5]=(0,e.createComponentVNode)(2,N,{belly:A}),D[6]=(0,e.createComponentVNode)(2,B,{outside:!0,contents:M}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===0,onClick:function(){function j(){return F(0)}return j}(),children:"Controls"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===1,onClick:function(){function j(){return F(1)}return j}(),children:"Descriptions"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===2,onClick:function(){function j(){return F(2)}return j}(),children:"Options"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===3,onClick:function(){function j(){return F(3)}return j}(),children:"Sounds"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===4,onClick:function(){function j(){return F(4)}return j}(),children:"Visuals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===5,onClick:function(){function j(){return F(5)}return j}(),children:"Interactions"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:O===6,onClick:function(){function j(){return F(6)}return j}(),children:["Contents (",M.length,")"]})]}),D[O]||"Error"],0)},l=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.belly_name,R=A.mode,O=A.item_mode,F=A.addons;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){function D(){return E("move_belly",{dir:-1})}return D}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){function D(){return E("move_belly",{dir:1})}return D}()})],4),children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_name"})}return D}(),content:M})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,o.Button,{color:s[R],onClick:function(){function D(){return E("set_attribute",{attribute:"b_mode"})}return D}(),content:R})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mode Addons",children:[F.length&&F.join(", ")||"None",(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_addons"})}return D}(),ml:1,icon:"plus"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_item_mode"})}return D}(),content:O})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{basis:"100%",mt:1,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){function D(){return E("set_attribute",{attribute:"b_del"})}return D}()})})]})},h=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.verb,R=A.release_verb,O=A.desc,F=A.absorbed_desc;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_desc"})}return D}(),icon:"pen"}),children:O}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (Absorbed)",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_absorbed_desc"})}return D}(),icon:"pen"}),children:F}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_verb"})}return D}(),content:M})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Release Verb",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_release_verb"})}return D}(),content:R})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Examine Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"em"})}return D}(),content:"Examine Message (when full)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"ema"})}return D}(),content:"Examine Message (with absorbed victims)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Struggle Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"smo"})}return D}(),content:"Struggle Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"smi"})}return D}(),content:"Struggle Message (inside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})}return D}(),content:"Absorbed Struggle Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})}return D}(),content:"Absorbed Struggle Message (inside)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escap"})}return D}(),content:"Escape Attempt Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escao"})}return D}(),content:"Escape Attempt Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escp"})}return D}(),content:"Escape Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"esco"})}return D}(),content:"Escape Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escout"})}return D}(),content:"Escape Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escip"})}return D}(),content:"Escape Item Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escio"})}return D}(),content:"Escape Item Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})}return D}(),content:"Escape Item Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})}return D}(),content:"Escape Fail Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})}return D}(),content:"Escape Fail Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})}return D}(),content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})}return D}(),content:"Absorbed Escape Attempt Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})}return D}(),content:"Absorbed Escape Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})}return D}(),content:"Absorbed Escape Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})}return D}(),content:"Absorbed Escape Message (outside)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})}return D}(),content:"Absorbed Escape Fail Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})}return D}(),content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})}return D}(),content:"Primary Transfer Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})}return D}(),content:"Primary Transfer Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})}return D}(),content:"Secondary Transfer Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})}return D}(),content:"Secondary Transfer Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Interaction Chance Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})}return D}(),content:"Interaction Chance Digest Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})}return D}(),content:"Interaction Chance Digest Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})}return D}(),content:"Interaction Chance Absorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})}return D}(),content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Bellymode Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})}return D}(),content:"Digest Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})}return D}(),content:"Digest Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"amp"})}return D}(),content:"Absorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"amo"})}return D}(),content:"Absorb Message (to you)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})}return D}(),content:"Unabsorb Message (to prey)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})}return D}(),content:"Unabsorb Message (to you)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Messages",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})}return D}(),content:"Idle Messages (Hold)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})}return D}(),content:"Idle Messages (Hold Absorbed)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})}return D}(),content:"Idle Messages (Digest)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})}return D}(),content:"Idle Messages (Absorb)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})}return D}(),content:"Idle Messages (Unabsorb)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})}return D}(),content:"Idle Messages (Drain)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})}return D}(),content:"Idle Messages (Heal)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})}return D}(),content:"Idle Messages (Size Steal)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})}return D}(),content:"Idle Messages (Shrink)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})}return D}(),content:"Idle Messages (Grow)"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})}return D}(),content:"Idle Messages (Encase In Egg)"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reset Messages",children:(0,e.createComponentVNode)(2,o.Button,{color:"red",onClick:function(){function D(){return E("set_attribute",{attribute:"b_msgs",msgtype:"reset"})}return D}(),content:"Reset Messages"})})]})},p=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.host_mobtype,R=M.is_cyborg,O=M.is_vore_simple_mob,F=w.belly,D=F.can_taste,j=F.nutrition_percent,_=F.digest_brute,z=F.digest_burn,H=F.digest_oxy,Q=F.digest_tox,Y=F.digest_clone,X=F.bulge_size,$=F.display_absorbed_examine,G=F.shrink_grow_size,Z=F.emote_time,te=F.emote_active,q=F.contaminates,me=F.contaminate_flavor,pe=F.contaminate_color,Ne=F.egg_type,le=F.selective_preference,re=F.save_digest_mode,ie=F.eating_privacy_local,Ve=F.silicon_belly_overlay_preference,ke=F.belly_mob_mult,Be=F.belly_item_mult,ue=F.belly_overall_mult;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Can Taste",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_tastes"})}return oe}(),icon:D?"toggle-on":"toggle-off",selected:D,content:D?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contaminates",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_contaminate"})}return oe}(),icon:q?"toggle-on":"toggle-off",selected:q,content:q?"Yes":"No"})}),q&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contamination Flavor",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_contamination_flavor"})}return oe}(),icon:"pen",content:me})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contamination Color",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_contamination_color"})}return oe}(),icon:"pen",content:(0,a.capitalize)(pe)})})],4)||null,(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Nutritional Gain",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_nutritionpercent"})}return oe}(),content:j+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Required Examine Size",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_bulge_size"})}return oe}(),content:X*100+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Display Absorbed Examines",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_display_absorbed_examine"})}return oe}(),icon:$?"toggle-on":"toggle-off",selected:$,content:$?"True":"False"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Vore Privacy",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_eating_privacy"})}return oe}(),content:(0,a.capitalize)(ie)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Save Digest Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_save_digest_mode"})}return oe}(),icon:re?"toggle-on":"toggle-off",selected:re,content:re?"True":"False"})})]}),(0,e.createComponentVNode)(2,v,{belly:F})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Emotes",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_emoteactive"})}return oe}(),icon:te?"toggle-on":"toggle-off",selected:te,content:te?"Active":"Inactive"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Idle Emote Delay",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_emotetime"})}return oe}(),content:Z+" seconds"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Brute Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_brute_dmg"})}return oe}(),content:_})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Burn Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_burn_dmg"})}return oe}(),content:z})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Suffocation Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_oxy_dmg"})}return oe}(),content:H})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Toxins Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_tox_dmg"})}return oe}(),content:Q})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Clone Damage",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_clone_dmg"})}return oe}(),content:Y})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shrink/Grow Size",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_grow_shrink"})}return oe}(),content:G*100+"%"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Egg Type",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_egg_type"})}return oe}(),icon:"pen",content:(0,a.capitalize)(Ne)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Selective Mode Preference",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_selective_mode_pref_toggle"})}return oe}(),content:(0,a.capitalize)(le)})})]})})]})},v=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.host_mobtype,R=M.is_cyborg,O=M.is_vore_simple_mob,F=w.belly,D=F.silicon_belly_overlay_preference,j=F.belly_mob_mult,_=F.belly_item_mult,z=F.belly_overall_mult;return R?(0,e.createComponentVNode)(2,o.Section,{title:"Cyborg Controls",width:"80%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_silicon_belly"})}return H}(),content:(0,a.capitalize)(D)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_belly_mob_mult"})}return H}(),content:j})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Item Vorebelly Size Mult",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_belly_item_mult"})}return H}(),content:_})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Belly Size Multiplier",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_belly_overall_mult"})}return H}(),content:z})})]})}):O?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item)}):(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item)})},b=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.is_wet,R=A.wet_loop,O=A.fancy,F=A.sound,D=A.release_sound;return(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",children:(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fleshy Belly",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_wetness"})}return j}(),icon:M?"toggle-on":"toggle-off",selected:M,content:M?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Internal Loop",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_wetloop"})}return j}(),icon:R?"toggle-on":"toggle-off",selected:R,content:R?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Use Fancy Sounds",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_fancy_sound"})}return j}(),icon:O?"toggle-on":"toggle-off",selected:O,content:O?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Vore Sound",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_sound"})}return j}(),content:F}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_soundtest"})}return j}(),icon:"volume-up"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Release Sound",children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_release"})}return j}(),content:D}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function j(){return E("set_attribute",{attribute:"b_releasesoundtest"})}return j}(),icon:"volume-up"})]})]})})})},g=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.belly_fullscreen,R=A.possible_fullscreens,O=A.disable_hud,F=A.belly_fullscreen_color,D=A.belly_fullscreen_color_secondary,j=A.belly_fullscreen_color_trinary,_=A.mapRef,z=A.colorization_enabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Box,{backgroundColor:F,width:"20px",height:"20px"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye-dropper",onClick:function(){function H(){return E("set_attribute",{attribute:"b_fullscreen_color",val:null})}return H}(),children:"Select Primary Color"}),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:D,width:"20px",height:"20px"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye-dropper",onClick:function(){function H(){return E("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})}return H}(),children:"Select Secondary Color"}),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:j,width:"20px",height:"20px"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye-dropper",onClick:function(){function H(){return E("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})}return H}(),children:"Select Trinary Color"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Enable Coloration",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_colorization_enabled"})}return H}(),icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview Belly",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_preview_belly"})}return H}(),content:"Preview"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Clear Preview",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_clear_preview"})}return H}(),content:"Clear"})})]})}),(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Vore FX",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disable Prey HUD",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function H(){return E("set_attribute",{attribute:"b_disable_hud"})}return H}(),icon:O?"toggle-on":"toggle-off",selected:O,content:O?"Yes":"No"})})})}),(0,e.createComponentVNode)(2,o.Section,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.createComponentVNode)(2,o.Button,{fluid:!0,selected:M===""||M===null,onClick:function(){function H(){return E("set_attribute",{attribute:"b_fullscreen",val:null})}return H}(),children:"Disabled"}),Object.keys(R).map(function(H){return(0,e.createVNode)(1,"span",null,(0,e.createComponentVNode)(2,o.Button,{width:"256px",height:"256px",selected:H===M,onClick:function(){function Q(){return E("set_attribute",{attribute:"b_fullscreen",val:H})}return Q}(),children:(0,e.createComponentVNode)(2,o.Box,{className:(0,V.classes)(["vore240x240",H]),style:{transform:"translate(0%, 4%)"}})},H),2,{style:{width:"256px"}})})]})]})],4)},N=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.belly,M=A.escapable,R=A.interacts;return(0,e.createComponentVNode)(2,o.Section,{title:"Belly Interactions",buttons:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function O(){return E("set_attribute",{attribute:"b_escapable"})}return O}(),icon:M?"toggle-on":"toggle-off",selected:M,content:M?"Interactions On":"Interactions Off"}),children:M?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.escapechance+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_escapechance"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorbed Escape Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.escapechance_absorbed+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_escapechance_absorbed"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Escape Time",children:(0,e.createComponentVNode)(2,o.Button,{content:R.escapetime/10+"s",onClick:function(){function O(){return E("set_attribute",{attribute:"b_escapetime"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.transferchance+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_transferchance"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Transfer Location",children:(0,e.createComponentVNode)(2,o.Button,{content:R.transferlocation?R.transferlocation:"Disabled",onClick:function(){function O(){return E("set_attribute",{attribute:"b_transferlocation"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Secondary Transfer Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.transferchance_secondary+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_transferchance_secondary"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Secondary Transfer Location",children:(0,e.createComponentVNode)(2,o.Button,{content:R.transferlocation_secondary?R.transferlocation_secondary:"Disabled",onClick:function(){function O(){return E("set_attribute",{attribute:"b_transferlocation_secondary"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Absorb Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.absorbchance+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_absorbchance"})}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Digest Chance",children:(0,e.createComponentVNode)(2,o.Button,{content:R.digestchance+"%",onClick:function(){function O(){return E("set_attribute",{attribute:"b_digestchance"})}return O}()})})]}):"These options only display while interactions are turned on."})},B=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.show_pictures,R=w.contents,O=w.belly,F=w.outside,D=F===void 0?!1:F;return(0,e.createFragment)([D&&(0,e.createComponentVNode)(2,o.Button,{textAlign:"center",fluid:!0,mb:1,onClick:function(){function j(){return E("pick_from_outside",{pickall:!0})}return j}(),children:"All"})||null,M&&(0,e.createComponentVNode)(2,o.Flex,{wrap:"wrap",justify:"center",align:"center",children:R.map(function(j){return(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"33%",children:[(0,e.createComponentVNode)(2,o.Button,{width:"64px",color:j.absorbed?"purple":C[j.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){function _(){return E(j.outside?"pick_from_outside":"pick_from_inside",{pick:j.ref,belly:O})}return _}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64, "+j.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),j.name]},j.name)})})||(0,e.createComponentVNode)(2,o.LabeledList,{children:R.map(function(j){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:j.name,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,mt:-1,mb:-1,color:j.absorbed?"purple":C[j.stat],onClick:function(){function _(){return E(j.outside?"pick_from_outside":"pick_from_inside",{pick:j.ref,belly:O})}return _}(),children:"Interact"})},j.ref)})})],0)},S=function(w){var T=(0,t.useBackend)(),E=T.act,A=T.data,M=A.prefs,R=M.digestable,O=M.devourable,F=M.resizable,D=M.feeding,j=M.absorbable,_=M.digest_leave_remains,z=M.allowmobvore,H=M.permit_healbelly,Q=M.show_vore_fx,Y=M.can_be_drop_prey,X=M.can_be_drop_pred,$=M.allow_inbelly_spawning,G=M.allow_spontaneous_tf,Z=M.step_mechanics_active,te=M.pickup_mechanics_active,q=M.noisy,me=M.drop_vore,pe=M.stumble_vore,Ne=M.slip_vore,le=M.throw_vore,re=M.food_vore,ie=M.nutrition_message_visible,Ve=M.weight_message_visible,ke=M.eating_privacy_global,Be=A.show_pictures,ue={digestion:{action:"toggle_digest",test:R,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:j,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:O,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:z,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:D,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:H,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:Y,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:X,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:me,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:Ne,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:pe,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:le,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:re,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:$,tooltip:{main:"This toggle is ghosts being able to spawn in one of your bellies. You will have to confirm again when they attempt to.",enable:"Click here to allow prey to spawn in you.",disable:"Click here to prevent prey from spawning in you."},content:{enabled:"Inbelly Spawning Allowed",disabled:"Inbelly Spawning Forbidden"}},noisy:{action:"toggle_noisy",test:q,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},resize:{action:"toggle_resize",test:F,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:Z,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:Q,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:_,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:te,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:G,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:ie,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:Ve,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:ke,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}}};return(0,e.createComponentVNode)(2,o.Section,{title:"Mechanical Preferences",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:Be,onClick:function(){function oe(){return E("show_pictures")}return oe}(),children:["Contents Preference: ",Be?"Show Pictures":"Show List"]}),children:[(0,e.createComponentVNode)(2,o.Flex,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.digestion})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.absorbable})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.devour})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.mobvore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.feed})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.healbelly,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.dropnom_prey})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.dropnom_pred})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.toggle_drop_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.toggle_slip_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.toggle_stumble_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.toggle_throw_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.toggle_food_vore})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.inbelly_spawning})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.noisy})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.resize})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.steppref,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.vore_fx,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.remains,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.pickuppref,tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,L,{spec:ue.spontaneous_tf})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Selective Mode Preference",onClick:function(){function oe(){return E("switch_selective_mode_pref")}return oe}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"32%",grow:3,children:(0,e.createComponentVNode)(2,L,{spec:ue.eating_privacy_global})})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Aesthetic Preferences",children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){function oe(){return E("setflavor")}return oe}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){function oe(){return E("setsmell")}return oe}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_msgs",msgtype:"en"})}return oe}(),content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function oe(){return E("set_attribute",{attribute:"b_msgs",msgtype:"ew"})}return oe}(),content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",grow:1,children:(0,e.createComponentVNode)(2,L,{spec:ue.examine_nutrition})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,L,{spec:ue.examine_weight})})]})}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){function oe(){return E("saveprefs")}return oe}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"49%",grow:1,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){function oe(){return E("reloadprefs")}return oe}()})})]})})]})},L=function(w){var T=(0,t.useBackend)(),E=T.act,A=w.spec,M=k(w,y),R=A.action,O=A.test,F=A.tooltip,D=A.content;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({onClick:function(){function j(){return E(R)}return j}(),icon:O?"toggle-on":"toggle-off",selected:O,fluid:!0,tooltip:F.main+" "+(O?F.disable:F.enable),content:O?D.enabled:D.disabled},M)))}},8942:function(x,r,n){"use strict";r.__esModule=!0,r.VorePanelExport=void 0;var e=n(58734),a=n(54777),t=n(47007),o=n(35239),f={Hold:'Hold ',Digest:'Digest ',Absorb:'Absorb ',Drain:'Drain ',Selective:'Selective ',Unabsorb:'Unabsorb ',Heal:'Heal ',Shrink:'Shrink ',Grow:'Grow ',"Size Steal":'Size Steal ',"Encase In Egg":'Encase In Egg '},V={Hold:'Item: Hold ',"Digest (Food Only)":'Item: Digest (Food Only) ',Digest:'Item: Digest '},y={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},k=function(c){var l=[];return c==null||c.forEach(function(h){l.push(' '+h+" ")}),l.length===0&&l.push("No Addons Set"),l},C=function(c,l){var h=c.name,p=c.desc,v=c.absorbed_desc,b=c.vore_verb,g=c.release_verb,N=c.mode,B=c.addons,S=c.item_mode,L=c.digest_brute,I=c.digest_burn,w=c.digest_oxy,T=c.digest_tox,E=c.digest_clone,A=c.can_taste,M=c.contaminates,R=c.contamination_flavor,O=c.contamination_color,F=c.nutrition_percent,D=c.bulge_size,j=c.display_absorbed_examine,_=c.save_digest_mode,z=c.emote_active,H=c.emote_time,Q=c.shrink_grow_size,Y=c.egg_type,X=c.selective_preference,$=c.struggle_messages_outside,G=c.struggle_messages_inside,Z=c.absorbed_struggle_messages_outside,te=c.absorbed_struggle_messages_inside,q=c.escape_attempt_messages_owner,me=c.escape_attempt_messages_prey,pe=c.escape_messages_owner,Ne=c.escape_messages_prey,le=c.escape_messages_outside,re=c.escape_item_messages_owner,ie=c.escape_item_messages_prey,Ve=c.escape_item_messages_outside,ke=c.escape_fail_messages_owner,Be=c.escape_fail_messages_prey,ue=c.escape_attempt_absorbed_messages_owner,oe=c.escape_attempt_absorbed_messages_prey,Ce=c.escape_absorbed_messages_owner,ae=c.escape_absorbed_messages_prey,ee=c.escape_absorbed_messages_outside,se=c.escape_fail_absorbed_messages_owner,xe=c.escape_fail_absorbed_messages_prey,Le=c.primary_transfer_messages_owner,Pe=c.primary_transfer_messages_prey,Fe=c.secondary_transfer_messages_owner,je=c.secondary_transfer_messages_prey,Me=c.digest_chance_messages_owner,be=c.digest_chance_messages_prey,ve=c.absorb_chance_messages_owner,he=c.absorb_chance_messages_prey,ye=c.digest_messages_owner,Ie=c.digest_messages_prey,we=c.absorb_messages_owner,_e=c.absorb_messages_prey,ze=c.unabsorb_messages_owner,Ue=c.unabsorb_messages_prey,Ge=c.examine_messages,Ke=c.examine_messages_absorbed,Ye=c.emotes_digest,Nt=c.emotes_hold,bt=c.emotes_holdabsorbed,st=c.emotes_absorb,Vt=c.emotes_heal,yt=c.emotes_drain,kt=c.emotes_steal,mt=c.emotes_egg,ft=c.emotes_shrink,Bt=c.emotes_grow,pt=c.emotes_unabsorb,wt=c.is_wet,Tt=c.wet_loop,lt=c.fancy_vore,at=c.vore_sound,Ze=c.release_sound,qe=c.disable_hud,it=c.escapable,ut=c.escapechance,dt=c.escapechance_absorbed,Et=c.escapetime,At=c.transferchance,Mt=c.transferlocation,Pt=c.transferchance_secondary,Ct=c.transferlocation_secondary,St=c.absorbchance,Lt=c.digestchance,K="";return K+='",K+='
',K+='
',K+="Addons:
"+k(B)+"
",K+="
== Descriptions == ",K+="Vore Verb:
"+b+"
",K+="Release Verb:
"+g+"
",K+='Description:
"'+p+'"
',K+='Absorbed Description:
"'+v+'"
',K+="
",K+="
== Messages == ",K+='
',K+='
',K+='
',K+='
Escape Attempt Messages (Owner) ',K+='
Escape Attempt Messages (Prey) ',K+='
Escape Message (Owner) ',K+='
Escape Message (Prey) ',K+='
Escape Message (Outside) ',K+='
Escape Item Messages (Owner) ',K+='
Escape Item Messages (Prey) ',K+='
Escape Item Messages (Outside) ',K+='
Escape Fail Messages (Owner) ',K+='
Escape Fail Messages (Prey) ',K+='
Escape Attempt Absorbed Messages (Owner) ',K+='
Escape Attempt Absorbed Messages (Prey) ',K+='
Escape Absorbed Messages (Owner) ',K+='
Escape Absorbed Messages (Prey) ',K+='
Escape Absorbed Messages (Outside) ',K+='
Escape Fail Absorbed Messages (Owner) ',K+='
Escape Fail Absorbed Messages (Prey) ',K+='
Primary Transfer Messages (Owner) ',K+='
Primary Transfer Messages (Prey) ',K+='
Secondary Transfer Messages (Owner) ',K+='
Secondary Transfer Messages (Prey) ',K+='
Digest Chance Messages (Owner) ',K+='
Digest Chance Messages (Prey) ',K+='
Absorb Chance Messages (Owner) ',K+='
Absorb Chance Messages (Prey) ',K+='
Struggle Messages (Outside) ',K+='
Struggle Messages (Inside) ',K+='
Absorbed Struggle Messages (Outside) ',K+='
Absorbed Struggle Messages (Inside) ',K+='
Digest Messages (Owner) ',K+='
Digest Messages (Prey) ',K+='
Absorb Messages (Owner) ',K+='
Absorb Messages (Prey) ',K+='
Unabsorb Messages (Owner) ',K+='
Unabsorb Messages (Prey) ',K+='
Examine Messages ',K+='
Examine Messages (Absorbed) ',K+="
",K+='
',K+='
',K+='
',q==null||q.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',me==null||me.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',pe==null||pe.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Ne==null||Ne.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',le==null||le.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',re==null||re.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',ie==null||ie.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Ve==null||Ve.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',ke==null||ke.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Be==null||Be.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',ue==null||ue.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',oe==null||oe.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Ce==null||Ce.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',ae==null||ae.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',ee==null||ee.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',se==null||se.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',xe==null||xe.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Le==null||Le.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Pe==null||Pe.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Fe==null||Fe.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',je==null||je.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Me==null||Me.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',be==null||be.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',ve==null||ve.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',he==null||he.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',$==null||$.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',G==null||G.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Z==null||Z.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',te==null||te.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',ye==null||ye.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Ie==null||Ie.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',we==null||we.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',_e==null||_e.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',ze==null||ze.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Ue==null||Ue.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Ge==null||Ge.forEach(function(Se){K+=Se+" "}),K+="
",K+='
',Ke==null||Ke.forEach(function(Se){K+=Se+" "}),K+="
",K+="
",K+="
",K+="
",K+="
= Idle Messages = ",K+="Idle Messages (Hold): ",Nt==null||Nt.forEach(function(Se){K+=Se+" "}),K+="
",K+="Idle Messages (Hold Absorbed): ",bt==null||bt.forEach(function(Se){K+=Se+" "}),K+="
",K+="Idle Messages (Digest): ",Ye==null||Ye.forEach(function(Se){K+=Se+" "}),K+="
",K+="Idle Messages (Absorb): ",st==null||st.forEach(function(Se){K+=Se+" "}),K+="
",K+="Idle Messages (Unabsorb): ",pt==null||pt.forEach(function(Se){K+=Se+" "}),K+="
",K+="Idle Messages (Drain): ",yt==null||yt.forEach(function(Se){K+=Se+" "}),K+="
",K+="Idle Messages (Heal): ",Vt==null||Vt.forEach(function(Se){K+=Se+" "}),K+="
",K+="Idle Messages (Size Steal): ",kt==null||kt.forEach(function(Se){K+=Se+" "}),K+="
",K+="Idle Messages (Shrink): ",ft==null||ft.forEach(function(Se){K+=Se+" "}),K+="
",K+="Idle Messages (Grow): ",Bt==null||Bt.forEach(function(Se){K+=Se+" "}),K+="
",K+="Idle Messages (Encase In Egg): ",mt==null||mt.forEach(function(Se){K+=Se+" "}),K+="
",K+="",K+="
",K+='
',K+='
',K+='",K+='
',K+='
',K+='
',K+='Can Taste: '+(A?'Yes':'No')+" ",K+='Contaminates: '+(M?'Yes':'No')+" ",K+='Contamination Flavor: '+R+" ",K+='Contamination Color: '+O+" ",K+='Nutritional Gain: '+F+"% ",K+='Required Examine Size: '+D*100+"% ",K+='Display Absorbed Examines: '+(j?'True':'False')+" ",K+='Save Digest Mode: '+(_?'True':'False')+" ",K+='Idle Emotes: '+(z?'Active':'Inactive')+" ",K+='Idle Emote Delay: '+H+" seconds ",K+='Shrink/Grow Size: '+Q*100+"% ",K+='Egg Type: '+Y+" ",K+='Selective Mode Preference: '+X+" ",K+=" ",K+="
",K+='
',K+='",K+='
',K+='
',K+='
',K+='Fleshy Belly: '+(wt?'Yes':'No')+" ",K+='Internal Loop: '+(Tt?'Yes':'No')+" ",K+='Use Fancy Sounds: '+(lt?'Yes':'No')+" ",K+='Vore Sound: '+at+" ",K+='Release Sound: '+Ze+" ",K+=" ",K+="
",K+='
',K+='",K+='
",K+='
',K+="
Vore FX ",K+='
',K+='Disable Prey HUD: '+(qe?'Yes':'No')+" ",K+=" ",K+="
",K+='
',K+='",K+='
',K+='
',K+="
Belly Interactions ("+(it?'Enabled':'Disabled')+" ) ",K+='
',K+='Escape Chance: '+ut+"% ",K+='Escape Chance: '+dt+"% ",K+='Escape Time: '+Et/10+"s ",K+='Transfer Chance: '+At+"% ",K+='Transfer Location: '+Mt+" ",K+='Secondary Transfer Chance: '+Pt+"% ",K+='Secondary Transfer Location: '+Ct+" ",K+='Absorb Chance: '+St+"% ",K+='Digest Chance: '+Lt+"% ",K+=" ",K+="
",K+="
",K},s=function(){var c=new Date,l=String(c.getHours());l.length<2&&(l="0"+l);var h=String(c.getMinutes());h.length<2&&(h="0"+h);var p=String(c.getDate());p.length<2&&(p="0"+p);var v=String(c.getMonth()+1);v.length<2&&(v="0"+v);var b=String(c.getFullYear());return" "+b+"-"+v+"-"+p+" ("+l+" "+h+")"},m=function(c){var l=(0,a.useBackend)(),h=l.act,p=l.data,v=p.db_version,b=p.db_repo,g=p.mob_name,N=p.bellies,B=s(),S=g+B+c,L;if(c===".html"){var I="";L=new Blob(['
'+N.length+" Exported Bellies (DB_VER: "+b+"-"+v+') '+I+'
Bellies of '+g+' Generated on: '+B+'
'],{type:"text/html;charset=utf8"}),N.forEach(function(w,T){L=new Blob([L,C(w,T)],{type:"text/html;charset=utf8"})}),L=new Blob([L,"
",'