PageSourceSearch

https://portal.cultureshoxmedia.com/build/assets/Show-zvBIqTgW.js

js cultureshoxmedia.com collected 2026-10-05 18:34:12 UTC 9,139 bytes, 1 lines download raw bytes

1import{u as F,j as e,L as P,B as c,$ as n}from"./app-B52dr9Z4.js";import{A as I}from"./app-layout-D-S07WEp.js";import{C as o,a as d,b as p,e as g,c as x}from"./card-BS1xUEt8.js";import{B as N}from"./badge-BvQoBsz0.js";import{A as v,a as _,b}from"./avatar-Q9_zke_9.js";import{P as T,a as W}from"./page-CmjTIkIE.js";import{S as $,a as D}from"./stat-card-BUt5Rg-Z.js";import{E as w}from"./empty-state-Bi8xD4GK.js";import{u as E}from"./useTranslations-i04ZGdU9.js";import{u as H}from"./app-sidebar-header-BL3HNvLX.js";import u from"./users-CybtftJu.js";import h from"./building-2-C_2e5VDY.js";import y from"./file-text-bmIjoN1R.js";import U from"./activity-DpFH8Hve.js";import R from"./user-plus-Df5nIE0-.js";import k from"./settings-Ch2tFJAb.js";import G from"./square-pen-CvjAmtvR.js";import C from"./arrow-right-C3t4zTEM.js";import O from"./calendar-C2fAY7cK.js";/* empty css            */import"./app-shell-DV32o7Te.js";import"./use-mobile-DfVMgrrG.js";import"./index-BAzmGsHK.js";import"./index-CHtzdPVW.js";import"./index-t4LHgfoc.js";import"./index-D52OTMAh.js";import"./index-B5Df9cCr.js";import"./gtm-CNimFiNN.js";import"./grid-3x3-DKKQUXvl.js";import"./play-5gdiVMo6.js";import"./globe-DpLTLMc2.js";import"./external-link-C6S42OOY.js";import"./index-D05D7-PE.js";import"./powered-by-footer-L2H-sKEz.js";import"./chart-column-C_-PLaMo.js";import"./message-square-BxdKuZ7C.js";import"./clock-DExexYRX.js";import"./gauge-COYLukSc.js";import"./trending-up-BMTt3tYh.js";import"./chevron-right-C5JGOTvn.js";import"./clipboard-list-kr81UB2O.js";import"./package-Cf3B7llU.js";import"./credit-card-By7R9445.js";import"./puzzle-CD0WbofF.js";import"./percent-C9JYnWN1.js";import"./briefcase-Ddide-SI.js";import"./ticket-BBIVt4fy.js";import"./file-check-C7P8Nlnh.js";import"./file-pen-line-BR6r4i1A.js";import"./scroll-text-Bsuv6swU.js";import"./bot-DunatdlK.js";import"./coins-D83a7E6n.js";import"./sparkles-BYOkPKvs.js";import"./alert-e1DeHu6Z.js";import"./index-DzHyjDkQ.js";import"./dropdown-menu-B44w2sc-.js";import"./index-DVkNJKuA.js";import"./check-Dkg1l1kj.js";import"./plus-B-lvnMuG.js";import"./book-open-BBYq3Djb.js";import"./layout-grid-CU4pOG0B.js";import"./rocket-BQ_JeDhc.js";import"./google-tag-manager-DcQYvIGa.js";import"./circle-alert-CTH4t-G2.js";import"./page-header-slot-9wF9SEHn.js";import"./arrow-left-BeFRqDBE.js";import"./trending-down-DK4lGNcg.js";import"./star-CdNTN9gm.js";import"./separator-fSsrDt21.js";import"./message-circle-Cc1b5lIO.js";import"./user-D4aoCIcS.js";import"./trash-2-BEPiZNU-.js";import"./popover-CKXulyAZ.js";import"./dialog-CkZdIX0v.js";import"./circle-CRKXs4-N.js";import"./search-DrhBYSUp.js";function us({workspace:t,members:f,organizations:l,stats:i,isAdmin:z}){const{t:s}=E(),{plural:A}=H(),{formatDate:S}=F(),q=[{title:s("workspaces.title"),href:"/workspaces"},{title:t.name,href:route("workspaces.show",t.id)}],j=r=>r.split(" ").map(a=>a[0]).join("").toUpperCase().slice(0,2),L=[{title:s("workspaces.team_members"),value:i.team_members_count,icon:u},{title:s("workspaces.clients"),value:i.clients_count,icon:u},{title:s("workspaces.organizations"),value:i.organizations_count,icon:h},{title:A,value:i.requests_count,icon:y},{title:s("workspaces.projects"),value:i.projects_count,icon:U}],m=Array.isArray(f)?f:[],B=[{href:"/team/create",icon:R,label:s("workspaces.add_team_member")},{href:"/clients/create",icon:u,label:s("workspaces.add_client")},{href:"/requests/create",icon:y,label:s("workspaces.create_request")},{href:"/services",icon:k,label:s("workspaces.manage_services")}];return e.jsxs(I,{breadcrumbs:q,children:[e.jsx(P,{title:`${t.name} - Workspace`}),e.jsxs(T,{children:[e.jsx(W,{title:t.name,description:t.description,backHref:"/workspaces",backLabel:s("workspaces.back_to_workspaces"),icon:t.logo_url?e.jsx("img",{src:t.logo_url,alt:t.name,className:"size-full object-cover"}):e.jsx("span",{className:"text-primary text-sm font-semibold",children:j(t.name)}),badge:e.jsx(N,{variant:t.is_active?"success":"muted",children:t.is_active?s("workspaces.active"):s("workspaces.inactive")}),actions:z&&e.jsxs(e.Fragment,{children:[e.jsx(c,{variant:"outline",asChild:!0,children:e.jsxs(n,{href:route("workspace-sett
1ings.general",t.id),children:[e.jsx(G,{}),s("workspaces.edit_workspace")]})}),e.jsx(c,{asChild:!0,children:e.jsxs(n,{href:`/workspace-settings/${t.id}`,children:[e.jsx(k,{}),s("workspaces.workspace_settings")]})})]})}),e.jsx($,{className:"lg:grid-cols-5 xl:grid-cols-5",children:L.map(r=>{const a=r.icon;return e.jsx(D,{label:r.title,value:r.value,icon:e.jsx(a,{})},r.title)})}),e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"space-y-6 lg:col-span-2",children:[e.jsxs(o,{children:[e.jsxs(d,{className:"border-b",children:[e.jsx(p,{className:"text-base",children:s("workspaces.team_members")}),m.length>5&&e.jsx(g,{children:e.jsx(c,{variant:"ghost",size:"sm",asChild:!0,children:e.jsxs(n,{href:"/team",children:[s("workspaces.view_all")," (",m.length,")",e.jsx(C,{})]})})})]}),e.jsx(x,{className:"p-0",children:m.length===0?e.jsx(w,{variant:"plain",size:"sm",icon:e.jsx(u,{}),title:s("workspaces.no_team_members_found")}):e.jsx("div",{className:"divide-y",children:m.slice(0,5).map(r=>e.jsxs("div",{className:"flex items-center gap-3 py-3",children:[e.jsxs(v,{className:"size-8",children:[e.jsx(_,{src:r.avatar_url||r.avatar,alt:r.name}),e.jsx(b,{className:"text-xs",children:j(r.name)})]}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-sm font-medium",children:r.name}),e.jsx("p",{className:"text-muted-foreground truncate text-xs",children:r.email})]})]},r.id))})})]}),e.jsxs(o,{children:[e.jsxs(d,{className:"border-b",children:[e.jsx(p,{className:"text-base",children:s("workspaces.organizations")}),l.length>5&&e.jsx(g,{children:e.jsx(c,{variant:"ghost",size:"sm",asChild:!0,children:e.jsxs(n,{href:"/clients",children:[s("workspaces.view_all")," (",l.length,")",e.jsx(C,{})]})})})]}),e.jsx(x,{className:"p-0",children:l.length===0?e.jsx(w,{variant:"plain",size:"sm",icon:e.jsx(h,{}),title:s("workspaces.no_organizations_found")}):e.jsx("div",{className:"divide-y",children:l.slice(0,5).map(r=>e.jsxs("div",{className:"flex items-center justify-between gap-4 py-3",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx("div",{className:"text-muted-foreground flex size-8 shrink-0 items-center justify-center rounded-md border",children:e.jsx(h,{className:"size-4"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-sm font-medium",children:r.name}),r.description&&e.jsx("p",{className:"text-muted-foreground truncate text-xs",children:r.description})]})]}),!!r.clients_count&&e.jsxs(N,{variant:"muted",className:"tabular-nums",children:[r.clients_count," ",s("workspaces.clients").toLowerCase()]})]},r.id))})})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(o,{children:[e.jsx(d,{children:e.jsx(p,{className:"text-base",children:s("workspaces.details","Details")})}),e.jsx(x,{children:e.jsxs("dl",{className:"grid gap-3 text-sm",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("dt",{className:"text-muted-foreground",children:s("workspaces.owner","Owner")}),e.jsx("dd",{className:"flex min-w-0 items-center gap-2 font-medium",children:t.owner&&e.jsxs(e.Fragment,{children:[e.jsxs(v,{className:"size-5",children:[e.jsx(_,{src:t.owner.avatar_url||t.owner.avatar,alt:t.owner.name}),e.jsx(b,{className:"text-[10px]",children:j(t.owner.name)})]}),e.jsx("span",{className:"truncate",children:t.owner.name})]})})]}),e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("dt",{className:"text-muted-foreground",children:s("workspaces.slug","Slug")}),e.jsx("dd",{className:"truncate font-mono text-xs font-medium",children:t.slug})]}),e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("dt",{className:"text-muted-foreground",children:s("workspaces.team_members")}),e.jsx("dd",{className:"font-medium tabular-nums",children:i.team_members_count})]}),e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("dt",{className:"text-muted-foreground",children:s("workspaces.created")}),e.jsxs("dd",{className:"flex items-center gap-1.5 font-medium",children:[e.jsx(O,{className:"text-muted-foreground size-3.5"}),S(t.created_at)]})]}),t.primary_color&&e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("dt",{className:"text-muted-foreground",children:s("workspaces.primary_color")}),e.jsxs("dd",{className:"flex items-center gap-2 font-mono text-xs font-medium",children:[e.jsx("span",{className:"size-4 rounded-sm border",style:{backgroundColor:t.primary_color}}),t.primary_color]})]})]})})]}),e.jsxs(o,{children:[e.jsx(d,{children:e.jsx(p,{className:"text-base",children:s("workspaces.quick_actions")})}),e.jsx(x,{className:"grid gap-2",children:B.map(r=>{const a=r.icon;return e.jsx(c,{variant:"outline",asChild:!0,className:"justify-start",children:e.jsxs(n,{href:r.href,children:[e.jsx(a,{}),r.label]})},r.href)})})]})]})]})]})]})}export{us 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.