1import{j as e}from"./vendor-motion-hRg_q8lq.js";import{u as d}from"./vendor-query-bOUN_gKe.js";import{du as c}from"./vendor-fa-Bn2dnpnC.js";import{u as x,l as p,d as h,H as f}from"./index-BKzE8EQ8.js";import{b as j,f as n,O as b,h as S}from"./vendor-react-E98sgxjj.js";function T(){return S()}function P(){const{gameId:a}=j(),{t}=x("game"),r=n("/:lang?/studio/:gameId/settings/steam")!==null,i=n("/:lang?/studio/:gameId/settings/app-store")!==null,m=r||i,o=n("/:lang?/studio/:gameId/settings/insights")!==null,l=m||o,{data:s,isLoading:g}=d({queryKey:["game-settings",a],queryFn:()=>p.get(Number(a)),enabled:!!a,refetchInterval:u=>u.state.data?.appearance_rebuild_pending?8e3:!1});return g?e.jsx("div",{className:"min-h-[60vh] flex items-center justify-center",children:e.jsx("div",{className:"spinner w-6 h-6 border-2"})}):s?e.jsxs("div",{className:h("mx-auto w-full px-4 pt-22 md:pt-8 pb-12",l?"max-w-[96rem]":"md:px-8 max-w-2xl"),children:[e.jsx(f,{children:e.jsx("title",{children:t("gameSettings.pageTitle",{name:s.name})})}),e.jsxs("div",{className:"flex items-start justify-between mb-8",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-lg text-foreground",children:r?t("gameSettings.steam.heading","Publish on Steam"):i?t("gameSettings.appStore.heading","Publish on the App Store"):t("gameSettings.title")}),e.jsx("p",{className:"text-base text-muted-foreground mt-1",children:s.name})]}),s.slug&&e.jsxs("a",{href:`/game/${s.slug}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors shrink-0 mt-1",children:[t("gameSettings.openStorePage"),e.jsx(c,{icon:["far","arrow-up-right"],className:"text-[10px]"})]})]}),e.jsx(b,{context:{game:s}})]}):e.jsx("div",{className:"min-h-[60vh] flex items-center justify-center",children:e.jsx("p",{className:"text-muted-foreground",children:t("gameSettings.gameNotFound")})})}export{P as default,T as useGameSettings};
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.