1"use strict";(self.webpackChunkpterodactyl_panel=self.webpackChunkpterodactyl_panel||[]).push([[118],{3761(e,t,a){a.d(t,{A:()=>n});var r=a(4134);const n=async(e,t,a)=>{await r.Ay.post(`/api/client/servers/${e}/files/write`,a,{params:{file:t},headers:{"Content-Type":"text/plain"}})}},118(e,t,a){a.r(t),a.d(t,{default:()=>p});var r=a(4859),n=a(7810),o=a(9748),i=a(6015),l=a(6454),c=a(3761),s=a(713),d=a(5161),u=a(9385);const p=()=>{const[e,t]=(0,n.useState)(!1),[a,r]=(0,n.useState)(!1),l=o.P.useStoreState(e=>e.server.data.uuid),s=o.P.useStoreState(e=>e.status.value),{clearFlashes:p,clearAndAddHttpError:A}=(0,d.A)(),{connected:E,instance:S}=o.P.useStoreState(e=>e.socket);(0,n.useEffect)(()=>{if(!E||!S||"running"===s)return;const e=e=>{e.toLowerCase().indexOf("you need to agree to the eula in order to run the server")>=0&&t(!0)};return S.addListener(u.y.CONSOLE_OUTPUT,e),()=>{S.removeListener(u.y.CONSOLE_OUTPUT,e)}},[E,S,s]);return(0,n.useEffect)(()=>{p("feature:eula")},[]),n.createElement(i.A,{visible:e,onDismissed:()=>t(!1),closeOnBackground:!1,showSpinnerOverlay:a},n.createElement(m,{key:"feature:eula"}),n.createElement(y,null,"Accept Minecraft® EULA"),n.createElement(f,null,"By pressing ",'"I Accept"'," below you are indicating your agreement to the ",n.createElement(h,{target:"_blank",rel:"noreferrer noopener",href:"https://www.minecraft.net/eula"},"Minecraft® EULA"),"."),n.createElement(w,null,n.createElement(g,{isSecondary:!0,onClick:()=>t(!1)},"Cancel"),n.createElement(_,{onClick:()=>{r(!0),p("feature:eula"),(0,c.A)(l,"eula.txt","eula=true").then(()=>{"offline"===s&&S&&S.send(u.T.SET_STATE,"restart"),r(!1),t(!1)}).catch(e=>{console.error(e),A({key:"feature:eula",error:e})}).then(()=>r(!1))}},"I Accept")))};var m=(0,r.Ay)(s.A).withConfig({displayName:"EulaModalFeature___StyledFlashMessageRender",componentId:"sc-43378k-0"})({marginBottom:"1rem"}),y=(0,r.Ay)("h2").withConfig({displayName:"EulaModalFeature___StyledH",componentId:"sc-43378k-1"})({fontSize:"1.5rem",lineHeight:"2rem",marginBottom:"1rem","--tw-text-opacity":"1",color:"hsla(214, 15%, 91%, var(--tw-text-opacity))"}),f=(0,r.Ay)("p").withConfig({displayName:"EulaModalFeature___StyledP",componentId:"sc-43378k-2"})({"--tw-text-opacity":"1",color:"hsla(210, 16%, 82%, var(--tw-text-opacity))"}),h=(0,r.Ay)("a").withConfig({displayName:"EulaModalFeature___StyledA",componentId:"sc-43378k-3"})({"--tw-text-opacity":"1",color:"rgba(147, 197, 253, var(--tw-text-opacity))",textDecoration:"underline",transitionProperty:"background-color, border-color, color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms",":hover":{"--tw-text-opacity":"1",color:"rgba(96, 165, 250, var(--tw-text-opacity))"}}),w=(0,r.Ay)("div").withConfig({displayName:"EulaModalFeature___StyledDiv",componentId:"sc-43378k-4"})({marginTop:"2rem",alignItems:"center",justifyContent:"flex-end","@media (min-width: 640px)":{display:"flex"}}),g=(0,r.Ay)(l.Ay).withConfig({displayName:"EulaModalFeature___StyledButton",componentId:"sc-43378k-5"})({width:"100%",borderColor:"rgba(0, 0, 0, 0)","@media (min-width: 640px)":{width:"auto"}}),_=(0,r.Ay)(l.Ay).withConfig({displayName:"EulaModalFeature___StyledButton2",componentId:"sc-43378k-6"})({marginTop:"1rem",width:"100%","@media (min-width: 640px)":{marginTop:"0px",marginLeft:"1rem",width:"auto"}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.