1import{h$ as e,t as n,u as a,k$ as p,aD as c}from"./index-D1oeXS01.js";import{O as l}from"./main-Crn6mpgb.js";import{a as d}from"./useDebouncedValue-B54a-eTK.js";import{b as u}from"./roles-C-xf-LVw.js";import{u as x}from"./usePartnershipProfileComplete-ahL9ncvU.js";import{c as f}from"./usePrmEnabled-CzDgwr1f.js";import{L as h}from"./lock-XT-5dOMA.js";import"./useNavigate-Bl_5nw65.js";import"./toast-C0Gz1L76.js";import"./NewVersionNotice-BUNgp9_p.js";import"./useBrandTheme-qTdR-708.js";import"./checkbox-2-RWuXjk.js";import"./index-S44FMkq5.js";import"./index-BXQ-Uhwh.js";import"./popover-DL1mAXA9.js";import"./index-c37oCVP2.js";import"./partnerLogo-Xv8fA4h8.js";import"./mdi-DaJ6AHlY.js";import"./badge-ClMxs3CR.js";import"./select-y0wu6GSw.js";import"./index-cXMMfvOe.js";import"./index-BdQq_4o_.js";import"./index-C_uNU_Eu.js";import"./index-DxKLNqZ-.js";import"./report-DFf4TaKV.js";import"./dialog-DWtNzlYq.js";import"./table-DCu-gNSn.js";import"./card-Cb38GaSf.js";import"./input-FsujoqHZ.js";import"./label-Bl5p7xoT.js";import"./native-date-input-DwYR0v6x.js";import"./info-tooltip-BsAxV5KG.js";import"./react-apexcharts.esm-SLl_jECb.js";import"./useQueries-Ca0EJCkB.js";import"./data-table-JgIOI2vu.js";import"./tabs-CTPa5Phw.js";import"./index-Bk91tQie.js";import"./index-Bp3wsC9O.js";import"./textarea-oXx7ZOUV.js";import"./radio-group-C74s6y24.js";import"./index-DDIabGXz.js";import"./alert-dialog-BbdczvaX.js";import"./index-ebJDDrJi.js";import"./SearchBox-B91NQS2x.js";import"./JsonViewer-Dm31F1_y.js";import"./StatusChip-DHZCf0gN.js";import"./purify.es-DCSLj_Qk.js";import"./command-BGXX0RtA.js";import"./index-Cb6eQSZY.js";import"./with-selector-DVXBhTLF.js";import"./prm-D1D5dZor.js";import"./partner-relationship-management-B88dEGyN.js";import"./queryKeys-B45qGzbE.js";function j(){return e.jsx("div",{className:"flex items-center justify-center h-[60vh]",children:e.jsxs("div",{className:"flex max-w-md flex-col items-center text-center",children:[e.jsx("div",{className:"mb-4 flex size-12 items-center justify-center rounded-full bg-primary/10",children:e.jsx(n,{className:"size-6 text-primary"})}),e.jsx("h2",{className:"text-xl font-semibold text-surface-900 mb-2",children:"Complete your partnership profile"}),e.jsxs("p",{className:"text-sm text-surface-500 mb-6",children:["Finish setting up your partnership profile before using Partner Relationship Management. Fill in every field marked with a red"," ",e.jsx("span",{className:"font-medium text-destructive",children:"*"})," in Settings â Partner â your identity, relationship type, and what you're open to."]}),e.jsx(a,{asChild:!0,children:e.jsx(d,{to:"/settings",search:{tab:"partner"},children:"Complete Partnership Profile"})})]})})}function y(){return e.jsx("div",{className:"flex items-center justify-center h-[60vh]",children:e.jsxs("div",{className:"flex max-w-md flex-col items-center text-center",children:[e.jsx("div",{className:"mb-4 flex size-12 items-center justify-center rounded-full bg-surface-100",children:e.jsx(h,{className:"size-6 text-surface-500"})}),e.jsx("h2",{className:"text-xl font-semibold text-surface-900 mb-2",children:"You don't have access to Partner Management"}),e.jsxs("p",{className:"text-sm text-surface-500",children:["Partner Management is available to the ",e.jsx("span",{className:"font-medium",children:"Editor"})," and"," ",e.jsx("span",{className:"font-medium",children:"Admin"})," roles. Ask an admin in your organization to change your role if you need access."]})]})})}function N({children:r}){const t=f(),i=p(o=>o.currentOrganizationPermissions),{isComplete:s,isLoading:m}=x();return t&&!u(i)?e.jsx(y,{}):t&&m?e.jsx("div",{className:"flex items-center justify-center h-[60vh]",children:e.jsx(c,{className:"size-8 animate-spin text-surface-400"})}):t&&!s?e.jsx(j,{}):e.jsx(e.Fragment,{children:r})}function Ne(){return e.jsx(N,{children:e.jsx(l,{})})}export{Ne as component};
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.