1import{j as e}from"./vendor-motion-hRg_q8lq.js";import{du as i}from"./vendor-fa-Bn2dnpnC.js";import{u as s,b as m,L as c}from"./index-BKzE8EQ8.js";import{P as d,f as u}from"./sections-EXVdmBFY.js";import"./vendor-react-E98sgxjj.js";import{E as l}from"./earnProgram-B9pqjKbP.js";import{useGameSettings as p}from"./GameSettingsLayout-D9S5c2Df.js";import"./vendor-query-bOUN_gKe.js";import"./useLocaleNavigate-BNriJdRU.js";import"./NotificationPrompt-DCfg1qM2.js";import"./useNotifications-CrW-0d5F.js";import"./PayoutCountryModal-MHoRKH3v.js";import"./usePublishingFeatures-C8zY31rs.js";import"./useVisibilityControl-m_534sCR.js";import"./index-i1nPji9k.js";import"./paywall-CG7xVZtx.js";import"./plans-CbMJY2XS.js";import"./pricingExperiments-zMZby8z7.js";import"./organization-BuGhuc22.js";import"./useIsStaff-DZf24Ivp.js";import"./makeCopy-DTZjoJnY.js";import"./MakeCopy-DWExybqc.js";function f({orgName:o,feature:n}){const{t}=s("company");return e.jsxs("div",{className:"flex items-start gap-3 rounded-md border border-border bg-card p-6",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-foreground
1/6 text-muted-foreground",children:e.jsx(i,{icon:["far","building"],className:"text-sm","aria-hidden":!0})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-base text-foreground",children:t(`featureOff.${n}.title`,{org:o})}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t(`featureOff.${n}.body`,{org:o})})]})]})}function C(){const{game:o}=p(),{user:n}=m(),{t}=s("settings"),a=!!n?.connect_payouts_enabled,r=!!n?.connect_onboarding_complete;return o.organization?e.jsx(f,{orgName:o.organization.name,feature:"monetization"}):e.jsxs(e.Fragment,{children:[l,!a&&e.jsxs("div",{className:"bg-card rounded-md border border-amber-500/40 p-4 mb-4 flex items-start gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-full bg-amber-500/10 text-amber-500 flex items-center justify-center text-sm shrink-0",children:e.jsx(i,{icon:["far","triangle-exclamation"]})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-base text-foreground",children:t("monetization.connectNoticeTitle","Set up payouts before you start selling")}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:r?t("monetization.connectNoticeResume","You can sell now, but we're holding your earnings until Stripe finishes verifying your account."):t("monetization.connectNoticeBody","You can sell now, but we're holding your earnings until you connect a payout account â otherwise there's nowhere to send them.")})]}),e.jsx(c,{to:"/settings/earnings",className:"ml-auto shrink-0 px-3 h-9 inline-flex items-center justify-center bg-emerald-500 text-white text-sm rounded-md hover:bg-emerald-600 transition-colors font-medium",children:r?t("monetization.connectNoticeResumeCta","Finish setup"):t("monetization.connectNoticeCta","Set up payouts")})]}),e.jsx(d,{game:o}),e.jsx(u,{game:o})]})}export{C as default};
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.