1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8039],{55546:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>I});var t=s(37876),a=s(14232),n=s(27250),i=s(64177),d=s(89099),l=s.n(d),o=s(13734),m=s(79350);let x=(0,m.J1)` 2 mutation AdminReassignBusinessOwner( 3 $organizationId: Int! 4 $newOwnerUserId: Int! 5 ) { 6 adminReassignBusinessOwner( 7 organizationId: $organizationId 8 newOwnerUserId: $newOwnerUserId 9 ) { 10 organizationId 11 previousOwnerId 12 newOwnerId 13 owner { 14 id 15 username 16 email 17 firstName 18 lastName 19 } 20 } 21 } 22`,u=(0,m.J1)` 23 mutation AdminAddOrganizationMember($organizationId: Int!, $userId: Int!) { 24 adminAddOrganizationMember(organizationId: $organizationId, userId: $userId) { 25 memberId 26 isOwner 27 joinedAt 28 user { 29 id 30 username 31 email 32 firstName 33 lastName 34 } 35 } 36 } 37`,c=(0,m.J1)` 38 mutation AdminRemoveOrganizationMember($organizationId: Int!, $userId: Int!) { 39 adminRemoveOrganizationMember(organizationId: $organizationId, userId: $userId) { 40 success 41 message 42 status 43 } 44 } 45`,g=(0,m.J1)` 46 query AdminBusinessOwnerDirectory($input: AdminBusinessOwnerDirectoryInput!) { 47 adminBusinessOwnerDirectory(input: $input) { 48 rows { 49 organizationId 50 name 51 slug 52 isVerified 53 memberCount 54 categoryName 55 ownerMissing 56 owner { 57 id 58 username 59 email 60 firstName 61 lastName 62 } 63 createdAt 64 } 65 nextCursor 66 hasMore 67 } 68 } 69`,y=(0,m.J1)` 70 query AdminBusinessOwnersByUser($input: AdminBusinessOwnerDirectoryInput!) { 71 adminBusinessOwnersByUser(input: $input) { 72 rows { 73 user { 74 id 75 username 76 email 77 firstName 78 lastName 79 } 80 ownedBusinessCount 81 businesses { 82 organizationId 83 name 84 slug 85 isVerified 86 } 87 } 88 nextCursor 89 hasMore 90 } 91 } 92`,h=(0,m.J1)` 93 query AdminOrganizationMembers($organizationId: Int!) { 94 adminOrganizationMembers(organizationId: $organizationId) { 95 organizationId 96 organizationName 97 ownerId 98 ownerMissing 99 members { 100 memberId 101 isOwner 102 joinedAt 103 user { 104 id 105 username 106 email 107 firstName 108 lastName 109 } 110 } 111 } 112 } 113`;var b=s(569),p=s(89255);function w(e,r){return{search:e.length?e:null,cursor:r,limit:25}}function N(){let[e,r]=(0,a.useState)("business"),[s,d]=(0,a.useState)(""),[m,N]=(0,a.useState)(""),k=(0,a.useRef)(null),j=(0,a.useRef)(null),[f,v]=(0,a.useState)(null),[I,O]=(0,a.useState)(null),[C,B]=(0,a.useState)(""),[z,M]=(0,a.useState)(""),[S,$]=(0,a.useState)(""),[A,R]=(0,a.useState)(""),[E,U]=(0,a.useState)(null),[D,T]=(0,a.useState)(!1),[_,F]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=window.setTimeout(()=>N(s.trim()),350);return()=>window.clearTimeout(e)},[s]),(0,a.useEffect)(()=>{let e=window.setTimeout(()=>$(C.trim()),350);return()=>window.clearTimeout(e)},[C]),(0,a.useEffect)(()=>{let e=window.setTimeout(()=>R(z.trim()),350);return()=>window.clearTimeout(e)},[z]);let J=(0,a.useMemo)(()=>({input:w(m,null)}),[m]),V=(0,a.useMemo)(()=>({input:w(m,null)}),[m]),{data:L,loading:P,error:q,fetchMore:Q,networkStatus:X,refetch:G}=(0,n.IT)(g,{variables:J,notifyOnNetworkStatusChange:!0,skip:"business"!==e}),{data:H,loading:K,error:W,fetchMore:Y,networkStatus:Z}=(0,n.IT)(y,{variables:V,notifyOnNetworkStatusChange:!0,skip:"owner"!==e}),ee=L?.adminBusinessOwnerDirectory,er=ee?.rows??[],es=ee?.nextCursor??null,et=ee?.hasMore??!1,ea=3===X,en=H?.adminBusinessOwnersByUser,ei=en?.rows??[],ed=en?.nextCursor??null,el=en?.hasMore??!1,eo=3===Z,{data:em,loading:ex}=(0,n.IT)(b.a,{variables:{input:{search:S.length?S:null,cursor:null,limit:10}},skip:!f}),{data:eu,loading:ec,refetch:eg}=(0,n.IT)(h,{variables:{organizationId:I?.organizationId??0},skip:null==I}),{data:ey,loading:eh}=(0,n.IT)(b.a,{variables:{input:{search:A.length?A:null,cursor:null,limit:10}},skip:!I}),eb=eu?.adminOrganizationMembers,ep=eb?.members??[],ew=em?.adminUserDirectory?.users??[],eN=ey?.adminUserDirectory?.users??[],ek=(0,a.useCallback)(()=>{es&&et&&!P&&!ea&&Q({variables:{input:w(m,es)},updateQuery:(e,{fetchMoreResult:r})=>r?{adminBusinessOwnerDirectory:{...r.adminBusinessOwnerDirectory,rows:[...e.adminBusinessOwnerDirectory.rows,...r.adminBusinessOwnerDirectory.rows]}}:e})},[es,et,P,ea,Q,m]),ej=(0,a.useCallback)(()=>{ed&&el&&!K&&!eo&&Y({variables:{input:w(m,ed)},updateQuery:(e,{fetchMoreResult:r})=>r?{adminBusinessOwnersByUser:{...r.adminBusinessOwnersByUser,rows:[...e.adminBusinessOwnersByUser.rows,...r.adminBusinessOwnersByUser.rows]}}:e})},[ed,el,K,eo,Y,m]);(0,a.useEffect)(()=>{let r=k.current;if(!r||"business"!==e)return;let s=new IntersectionObserver(e=>{e[0]?.isIntersecting&&ek()},{rootMargin:"160px"});return s.observe(r),()=>s.disconnect()},[ek,e]),(0,a.useEffect)(()=>{let r=j.current;if(!r||"owner"!==e)return;let s=new IntersectionObserver(e=>{e[0]?.isIntersecting&&ej()},{rootMargin:"160px"});return s.observe(r),()=>s.disconnect()},[ej,e]);let[ef,{loading:ev}]=(0,i.n)(x,{onCompleted:()=>{o.oR.success("Business owner updated."),T(!1),v(null),U(null),B(""),G()},onError:e=>{o.oR.error(e.message||"Reassignment failed.")}}),[eI,{loading:eO}]=(0,i.n)(u,{onCompleted:()=>{o.oR.success("Member added."),M(""),eg(),G()},onError:e=>{o.oR.error(e.message||"Failed to add member.")}}),[eC,{loading:eB}]=(0,i.n)(c,{onCompleted:()=>{o.oR.success("Member removed."),F(null),eg(),G()},onError:e=>{o.oR.error(e.message||"Failed to remove member.")}}),ez=()=>{ev||(v(null),U(null),B(""),T(!1))},eM=()=>{eO||eB||(O(null),M(""),F(null))},eS=async e=>{I&&!eO&&await eI({variables:{organizationId:I.organizationId,userId:e.id}})},e$=async()=>{I&&null!=_&&!eB&&await eC({variables:{organizationId:I.organizationId,userId:_}})},eA=async()=>{f&&E&&!ev&&await ef({variables:{organizationId:f.organizationId,newOwnerUserId:E.id}})},eR=r=>r===e?"border-green-600 text-green-700 dark:text-green-400":"border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200";return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)("div",{className:"border-b border-gray-200 dark:border-gray-700",children:(0,t.jsxs)("nav",{className:"-mb-px flex gap-6","aria-label":"Directory views",children:[(0,t.jsx)("button",{type:"button",onClick:()=>r("business"),className:`py-3 px-1 border-b-2 text-sm font-medium ${eR("business")}`,children:"By business"}),(0,t.jsx)("button",{type:"button",onClick:()=>r("owner"),className:`py-3 px-1 border-b-2 text-sm font-medium ${eR("owner")}`,children:"By owner"})]})}),(0,t.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between",children:(0,t.jsxs)("div",{className:"flex-1 max-w-xl",children:[(0,t.jsx)("label",{htmlFor:"admin-business-owner-search",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Search"}),(0,t.jsx)("input",{id:"admin-business-owner-search",type:"search",value:s,onChange:e=>d(e.target.value),placeholder:"business"===e?"Business name, slug, owner username or email":"Owner username, email, or owned business name",className:"w-full rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#18191A] px-3 py-2 text-sm text-gray-900 dark:text-gray-100 shadow-sm focus:border-green-500 focus:ring-green-500"})]})}),"business"===e&&q&&(0,t.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:q.message}),"owner"===e&&W&&(0,t.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:W.message}),"business"===e&&(0,t.jsxs)("div",{className:"overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700",children:[(0,t.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-gray-700",children:[(0,t.jsx)("thead",{className:"bg-gray-50 dark:bg-gray-800/80",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"px-3 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Business"}),(0,t.jsx)("th",{className:"px-3 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Slug"}),(0,t.jsx)("th",{className:"px-3 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Owner"}),(0,t.jsx)("th",{className:"px-3 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Email"}),(0,t.jsx)("th",{className:"px-3 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Members"}),(0,t.jsx)("th",{className:"px-3 py-3 text-right text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Actions"})]})}),(0,t.jsx)("tbody",{className:"bg-white dark:bg-[#18191A] divide-y divide-gray-200 dark:divide-gray-700",children:er.map(e=>(0,t.jsxs)("tr",{children:[(0,t.jsxs)("td",{className:"px-3 py-2 text-sm text-gray-900 dark:text-gray-100",children:[(0,t.jsx)("button",{type:"button",onClick:()=>l().push(`/business/${e.slug}`),className:"text-left hover:underline",children:e.name}),e.isVerified&&(0,t.jsx)("span",{className:"ml-2 text-xs text-green-600 dark:text-green-400",children:"Verified"})]}),(0,t.jsx)("td",{className:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300",children:e.slug}),(0,t.jsx)("td",{className:"px-3 py-2 text-sm text-gray-900 dark:text-gray-100",children:e.ownerMissing?(0,t.jsx)("span",{className:"text-amber-600 dar
113k:text-amber-400",children:"Owner not found"}):e.owner?(0,t.jsxs)("button",{type:"button",onClick:()=>l().push(`/u/${e.owner.username}`),className:"text-left hover:underline",children:[e.owner.firstName," ",e.owner.lastName," (@",e.owner.username,")"]}):"â"}),(0,t.jsx)("td",{className:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300",children:e.owner?.email??"â"}),(0,t.jsx)("td",{className:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300",children:e.memberCount}),(0,t.jsx)("td",{className:"px-3 py-2 text-sm text-right whitespace-nowrap",children:(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1 sm:flex-row sm:justify-end sm:gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{v(null),O(e),M(""),F(null)},className:"text-green-700 dark:text-green-400 hover:underline",children:"Manage members"}),(0,t.jsx)("button",{type:"button",onClick:()=>{O(null),v(e),U(null),B(""),T(!1)},className:"text-green-700 dark:text-green-400 hover:underline",children:"Reassign owner"})]})})]},e.organizationId))})]}),P&&0===er.length&&(0,t.jsx)("p",{className:"p-6 text-sm text-gray-500 dark:text-gray-400",children:"Loadingâ¦"}),!P&&0===er.length&&(0,t.jsx)("p",{className:"p-6 text-sm text-gray-500 dark:text-gray-400",children:"No businesses match this search."}),ea&&(0,t.jsx)("p",{className:"p-3 text-center text-xs text-gray-500 dark:text-gray-400",children:"Loading moreâ¦"}),(0,t.jsx)("div",{ref:k,className:"h-1","aria-hidden":!0})]}),"owner"===e&&(0,t.jsxs)("div",{className:"overflow-x-auto rounded-lg border border-gray-200 dark:border-gray-700",children:[(0,t.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-gray-700",children:[(0,t.jsx)("thead",{className:"bg-gray-50 dark:bg-gray-800/80",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"px-3 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Owner"}),(0,t.jsx)("th",{className:"px-3 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Email"}),(0,t.jsx)("th",{className:"px-3 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Owned"}),(0,t.jsx)("th",{className:"px-3 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:"Businesses"})]})}),(0,t.jsx)("tbody",{className:"bg-white dark:bg-[#18191A] divide-y divide-gray-200 dark:divide-gray-700",children:ei.map(e=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{className:"px-3 py-2 text-sm text-gray-900 dark:text-gray-100",children:(0,t.jsxs)("button",{type:"button",onClick:()=>l().push(`/u/${e.user.username}`),className:"text-left hover:underline",children:[e.user.firstName," ",e.user.lastName," (@",e.user.username,")"]})}),(0,t.jsx)("td",{className:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300",children:e.user.email??"â"}),(0,t.jsx)("td",{className:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300",children:e.ownedBusinessCount}),(0,t.jsx)("td",{className:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300",children:(0,t.jsxs)("ul",{className:"space-y-1",children:[e.businesses.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)("button",{type:"button",onClick:()=>l().push(`/business/${e.slug}`),className:"hover:underline text-left",children:e.name})},e.organizationId)),e.ownedBusinessCount>e.businesses.length&&(0,t.jsxs)("li",{className:"text-xs text-gray-500",children:["+",e.ownedBusinessCount-e.businesses.length," more"]})]})})]},e.user.id))})]}),K&&0===ei.length&&(0,t.jsx)("p",{className:"p-6 text-sm text-gray-500 dark:text-gray-400",children:"Loadingâ¦"}),!K&&0===ei.length&&(0,t.jsx)("p",{className:"p-6 text-sm text-gray-500 dark:text-gray-400",children:"No owners match this search."}),eo&&(0,t.jsx)("p",{className:"p-3 text-center text-xs text-gray-500 dark:text-gray-400",children:"Loading moreâ¦"}),(0,t.jsx)("div",{ref:j,className:"h-1","aria-hidden":!0})]}),(0,t.jsxs)(p.a,{isOpen:null!=f,onClose:ez,children:[f&&!D&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:["Reassign owner for ",f.name]}),(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-4",children:"Search for the user who should become the new owner."}),(0,t.jsx)("label",{htmlFor:"reassign-user-search",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Find user"}),(0,t.jsx)("input",{id:"reassign-user-search",type:"search",value:C,onChange:e=>{B(e.target.value),U(null)},placeholder:"Username, email, name, or user id",className:"w-full rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#18191A] px-3 py-2 text-sm mb-3"}),ex&&(0,t.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Searchingâ¦"}),(0,t.jsxs)("ul",{className:"max-h-48 overflow-y-auto border border-gray-200 dark:border-gray-700 rounded-md divide-y divide-gray-200 dark:divide-gray-700 mb-4",children:[ew.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>U(e),className:`w-full text-left px-3 py-2 text-sm hover:bg-gray-50 dark:hover:bg-gray-800 ${E?.id===e.id?"bg-green-50 dark:bg-green-900/20":""}
113`,children:[e.firstName," ",e.lastName," (@",e.username,") â ",e.email??"no email"]})},e.id)),!ex&&0===ew.length&&(0,t.jsx)("li",{className:"px-3 py-2 text-sm text-gray-500",children:"No users found."})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:ez,className:"px-4 py-2 text-sm rounded-md border border-gray-300 dark:border-gray-600",children:"Cancel"}),(0,t.jsx)("button",{type:"button",disabled:!E,onClick:()=>T(!0),className:"px-4 py-2 text-sm rounded-md bg-green-600 text-white hover:bg-green-700 disabled:opacity-50",children:"Continue"})]})]}),f&&D&&E&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Confirm ownership change"}),(0,t.jsxs)("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-4",children:["Set ",(0,t.jsx)("strong",{children:f.name})," owner to"," ",(0,t.jsxs)("strong",{children:[E.firstName," ",E.lastName," (@",E.username,")"]}),"? The previous owner will not be removed from members automatically."]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>T(!1),disabled:ev,className:"px-4 py-2 text-sm rounded-md border border-gray-300 dark:border-gray-600",children:"Back"}),(0,t.jsx)("button",{type:"button",onClick:eA,disabled:ev,className:"px-4 py-2 text-sm rounded-md bg-green-600 text-white hover:bg-green-700 disabled:opacity-50",children:ev?"Savingâ¦":"Confirm reassignment"})]})]})]}),(0,t.jsxs)(p.a,{isOpen:null!=I,onClose:eM,children:[I&&null==_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:["Members â ",I.name]}),eb?.ownerMissing&&(0,t.jsx)("p",{className:"text-sm text-amber-600 dark:text-amber-400 mb-3",children:"Owner account is missing. Reassign ownership to repair."}),ec&&(0,t.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-4",children:"Loading membersâ¦"}),!ec&&(0,t.jsxs)("ul",{className:"max-h-56 overflow-y-auto border border-gray-200 dark:border-gray-700 rounded-md divide-y divide-gray-200 dark:divide-gray-700 mb-4",children:[ep.map(e=>(0,t.jsxs)("li",{className:"flex items-center justify-between gap-3 px-3 py-2 text-sm",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>l().push(`/u/${e.user.username}`),className:"text-left hover:underline text-gray-900 dark:text-gray-100",children:[e.user.firstName," ",e.user.lastName," (@",e.user.username,")"]}),(0,t.jsxs)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:[e.user.email??"no email",e.isOwner?" \xb7 Owner":""]})]}),!e.isOwner&&(0,t.jsx)("button",{type:"button",onClick:()=>F(e.user.id),disabled:eB,className:"text-red-600 dark:text-red-400 hover:underline shrink-0",children:"Remove"})]},e.user.id)),!ep.length&&(0,t.jsx)("li",{className:"px-3 py-2 text-sm text-gray-500",children:"No members listed."})]}),(0,t.jsx)("label",{htmlFor:"add-member-search",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Add member"}),(0,t.jsx)("input",{id:"add-member-search",type:"search",value:z,onChange:e=>M(e.target.value),placeholder:"Search users to add",className:"w-full rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#18191A] px-3 py-2 text-sm mb-3"}),eh&&(0,t.jsx)("p",{className:"text-sm text-gray-500 mb-3",children:"Searchingâ¦"}),(0,t.jsxs)("ul",{className:"max-h-40 overflow-y-auto border border-gray-200 dark:border-gray-700 rounded-md divide-y divide-gray-200 dark:divide-gray-700 mb-4",children:[eN.map(e=>{let r=ep.some(r=>r.user.id===e.id);return(0,t.jsxs)("li",{className:"flex items-center justify-between gap-2 px-3 py-2",children:[(0,t.jsxs)("span",{className:"text-sm text-gray-900 dark:text-gray-100",children:[e.firstName," ",e.lastName," (@",e.username,")"]}),(0,t.jsx)("button",{type:"button",disabled:r||eO,onClick:()=>eS(e),className:"text-sm text-green-700 dark:text-green-400 hover:underline disabled:opacity-40",children:r?"Added":"Add"})]},e.id)}),!eh&&z.trim().length>0&&0===eN.length&&(0,t.jsx)("li",{className:"px-3 py-2 text-sm text-gray-500",children:"No users found."})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)("button",{type:"button",onClick:eM,className:"px-4 py-2 text-sm rounded-md border border-gray-300 dark:border-gray-600",children:"Close"})})]}),I&&null!=_&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Remove member?"}),(0,t.jsxs)("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-4",children:["Remove this user from ",(0,t.jsx)("strong",{children:I.name}),"? They will lose member access to manage the business."]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>F(null),disabled:eB,className:"px-4 py-2 text-sm rounded-md border border-gray-300 dark:border-gray-600",children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:e$,disabled:eB,className:"px-4 py-2 text-sm rounded-md bg-red-600 text-white hover:bg-red-700 disabled:opacity-50",children:eB?"Removingâ¦":"Remove member"})]})]})]})]})}var k=s(92972),j=s(17074),f=s(94380);function v(e){let{router:r}=e;return(0,t.jsx)(f.O,{currentUrl:r.asPath,title:"Business owners",ogDescription:"View and manage business ownership (admin)",showSearch:!1,isNavVisible:!0,children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto
113sm:px-6 lg:px-8 py-8",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold text-gray-900 dark:text-gray-100 mb-6",children:"Business owners"}),(0,t.jsx)(N,{})]})})}v.guards=[k.g.ADMIN,k.g.SUPER_ADMIN],v.guardsMatch="any";let I=(0,j.J)(v)},82916:(e,r,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/business-owners",function(){return s(55546)}])}},e=>{e.O(0,[8319,3081,9338,4029,8070,7615,1274,508,3630,1799,7673,8121,8263,8779,563,6203,8405,1680,8313,6335,3238,4908,9290,5019,5367,3269,4269,6321,7366,5030,465,3719,9173,8612,5092,6960,4083,6682,2769,7438,3699,9219,7300,5917,6231,6611,6933,2964,9656,1813,3043,9976,8189,1687,428,369,443,6835,8422,2308,9184,9006,7244,7585,8066,8374,8209,6979,8311,3735,8792],()=>e(e.s=82916)),_N_E=e.O()}]);
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.