1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="1d18b55a-76db-4731-b4d8-ba4592d8beb7",e._sentryDebugIdIdentifier="sentry-dbid-1d18b55a-76db-4731-b4d8-ba4592d8beb7")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[61585],{69:(e,a,t)=>{t.d(a,{MobileExpandableTabbedPanel:()=>h});var n=t(95155),l=t(12115),s=t(47650),i=t(20063),r=t(12108),o=t(24033),c=t(25016),d=t(20106),u=t(66991),m=t(33999);function h(e){var a;let{tabs:t,defaultTab:h,upper:p,className:x,badgeCount:b,collapsedHeightPx:f=56}=e,g=null!=(a=(0,i.usePathname)())?a:"",v=(0,d._z)(g),[j,N]=(0,l.useState)(!1),[w,y]=(0,l.useState)(!1),k=(0,l.useId)(),C=(0,l.useCallback)(()=>N(!1),[]),V=(0,l.useCallback)(()=>N(e=>!e),[]);(0,l.useEffect)(()=>{N(!1)},[g]),(0,l.useEffect)(()=>{y(!0)},[]);let S=!p,I=(0,n.jsx)("div",{className:(0,c.cn)(S?(0,c.cn)("relative w-full pointer-events-auto",!j&&"z-10"):u.Vu.mobileExpandablePanelOuter,j&&!S&&u.Vu.mobileExpandablePanelExpandedPosition),children:(0,n.jsxs)("div",{"data-testid":"mobile-expandable-panel-frame","data-expandable-panel-state":j?"expanded":"collapsed",className:(0,c.cn)("relative shrink-0 overflow-hidden",u.Vu.mobileExpandablePanelFrame,j?(0,c.cn)(u.Vu.mobileExpandablePanelExpandedHeight,u.Vu.mobileExpandablePanelFrameExpanded):null),style:j?void 0:{height:f,minHeight:f,maxHeight:f},children:[(0,n.jsx)("div",{className:(0,c.cn)(u.Vu.mobileExpandablePanelChrome,!j&&"min-h-0 h-full"),children:(0,n.jsxs)("button",{type:"button",className:(0,c.cn)(u.Vu.mobileExpandablePanelToggleButton,u.Vu.focusRing,!j&&"min-h-0 h-full gap-2 border-b-0 py-1.5"),"aria-expanded":j,"aria-controls":k,"aria-label":j?"Collapse activity panel":"Expand activity panel",onClick:V,children:[(0,n.jsx)("span",{className:u.Vu.mobileExpandablePanelHandle,"aria-hidden":!0}),j?(0,n.jsx)(o.A,{className:u.Vu.mobileExpandablePanelChevron,"aria-hidden":!0}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"flex min-w-0 flex-1 items-center justify-center gap-2",children:[(0,n.jsx)("span",{className:"truncate text-sm font-semibold text-zinc-200",children:"Activity"}),null!=b&&b>0?(0,n.jsx)("span",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-full border border-[#2A3340] bg-[#11161E] px-1.5 text-[10px] font-semibold tabular-nums text-[#F8FAFC]",children:b>99?"99+":b}):null]}),(0,n.jsx)(r.A,{className:u.Vu.mobileExpandablePanelChevron,"aria-hidden":!0})]})]})}),j?(0,n.jsx)(m.MobileTabbedPanel,{id:k,tabs:t,defaultTab:h,minHeight:"min-h-0",className:u.Vu.mobileExpandablePanelTabbedFill,bodyClassName:u.Vu.mobileExpandablePanelExpandedBody,showBottomFade:!0,bottomFadeClassName:u.Vu.mobileExpandablePanelFade,tabTriggerClassName:u.Vu.mobileExpandablePanelTabTrigger}):null]})});if(S){let e=j&&w?(0,s.createPortal)((0,n.jsxs)("div",{"data-mobile-route":v,children:[(0,n.jsx)("button",{type:"button",className:u.Vu.mobileExpandablePanelBackdrop,"aria-label":"Close activity panel",onClick:C}),(0,n.jsx)("div",{className:(0,c.cn)("pointer-events-none fixed inset-x-0 z-[50] w-full px-4","bottom-[calc(62px+env(safe-area-inset-bottom,0px))]"),children:(0,n.jsx)("div",{className:"pointer-events-auto w-full",children:I})})]}),document.body):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"data-expandable-panel-version":"fixed-region-v3","data-panel-mode":"fixed-region","data-dock-width-mode":"full-shell","data-expanded-state":j?"true":"false","data-collapsed-height":"".concat(f,"px"),"data-expanded-height":u.x6,className:(0,c.cn)("relative flex w-full shrink-0 flex-col",x),children:j?null:I}),e]})}return(0,n.jsxs)("div",{"data-expandable-panel-version":"capped-spacer-v3","data-expanded":j?"true":"false","data-collapsed-height":"".concat(f,"px"),"data-testid":"mobile-expandable-panel-host",className:(0,c.cn)("relative flex min-h-0 flex-1 flex-col overflow-hidden",x),children:[j&&(0,n.jsx)("button",{type:"button",className:u.Vu.mobileExpandablePanelBackdrop,"aria-label":"Close activity panel",onClick:C}),(0,n.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,n.jsx)("div",{className:(0,
1c.cn)("shrink-0",u.Vu.mobileShellContentTopGap,u.Vu.mobileShellContentPaddingX),children:p}),(0,n.jsx)("div",{className:u.Vu.mobileShellDockSpacer,"aria-hidden":!0}),(0,n.jsx)("div",{className:(0,c.cn)("shrink-0",u.Vu.mobileShellDockGap),children:I})]})]})}},1808:(e,a,t)=>{t.d(a,{MobileSlateDropClient:()=>v,SLATEDROP_FOLDER_ICONS:()=>j});var n=t(95155),l=t(12115),s=t(52619),i=t.n(s),r=t(20063),o=t(32320),c=t(21786),d=t(6191),u=t(86651),m=t(27937),h=t(58734),p=t(95664),x=t(45221),b=t(25016),f=t(66991);let g=[{href:"/slatedrop",label:"Browse"},{href:"/slatedrop/recents",label:"Recents"},{href:"/slatedrop/shared",label:"Shared"},{href:"/slatedrop/requests",label:"Requests"}];function v(e){var a;let{browseRows:t,storageLabel:s}=e,h=null!=(a=(0,r.usePathname)())?a:"/slatedrop",[p,x]=(0,l.useState)(""),v=(0,l.useMemo)(()=>{let e=p.trim().toLowerCase();return e?t.filter(a=>a.label.toLowerCase().includes(e)||a.meta.toLowerCase().includes(e)):t},[t,p]);return(0,n.jsxs)("div",{className:f.Vu.mobilePageScrollInner,children:[(0,n.jsxs)("section",{className:(0,b.cn)(f.Vu.panelBase,"p-5"),children:[(0,n.jsx)("span",{className:(0,b.cn)(f.Vu.mobileIconWell,"h-12 w-12"),"aria-hidden":!0,children:(0,n.jsx)(o.A,{className:"h-6 w-6",strokeWidth:1.75})}),(0,n.jsx)("span",{className:f.Vu.sectionLabelAccentCool,"aria-hidden":!0}),(0,n.jsx)("p",{className:(0,b.cn)("mt-4",f.Vu.mobileEyebrowLabel),children:"SlateDrop"}),(0,n.jsx)("h1",{className:(0,b.cn)("mt-1",f.Vu.moduleTitle),children:"Files"}),(0,n.jsx)("p",{className:f.Vu.moduleSubtitle,children:"Browse uploads, app folders, and shared project files."}),(0,n.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(0,n.jsxs)(i(),{href:"/slatedrop/upload",className:(0,b.cn)(f.Vu.mobilePrimaryButton,"inline-flex min-h-10 items-center gap-2 px-4 py-2 text-sm font-semibold"),children:[(0,n.jsx)(c.A,{className:"h-4 w-4","aria-hidden":!0}),"Upload"]}),(0,n.jsxs)(i(),{href:"/slatedrop/new-folder",className:"inline-flex min-h-10 items-center gap-2 rounded-lg border border-white/10 bg-white/[0.05] px-4 text-sm font-semibold text-zinc-100 transition-colors hover:border-white/15 hover:bg-white/[0.08]",children:[(0,n.jsx)(d.A,{className:"h-4 w-4","aria-hidden":!0}),"New folder"]})]})]}),(0,n.jsx)("div",{className:(0,b.cn)(f.Vu.mobileGlassCardSurface,"p-3"),children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(u.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-500","aria-hidden":!0}),(0,n.jsx)("input",{value:p,onChange:e=>x(e.target.value),placeholder:"Search files",inputMode:"search","aria-label":"Search files",className:"h-11 w-full rounded-xl border border-white/10 bg-[#0B0F15]/60 pl-10 pr-4 text-sm text-white outline-none placeholder:text-zinc-500 focus:border-[var(--accent-border-blue)]"})]})}),(0,n.jsx)("nav",{className:"grid grid-cols-4 gap-1 rounded-xl border border-white/10 bg-white/[0.04] p-1","aria-label":"SlateDrop sections",children:g.map(e=>{let a=h===e.href;return(0,n.jsx)(i(),{href:e.href,className:(0,b.cn)("rounded-lg px-2 py-2 text-center text-[11px] font-semibold transition-colors",a?"bg-white/[0.08] text-zinc-100":"text-zinc-400 hover:bg-white/[0.05] hover:text-zinc-200"),"aria-current":a?"page":void 0,children:e.label},e.href)})}),(0,n.jsxs)("section",{className:(0,b.cn)(f.Vu.panelBase,"overflow-hidden"),children:[v.map(e=>{let a=e.icon;return(0,n.jsxs)(i(),{href:e.href,className:f.Vu.mobileGlassRowLink,children:[(0,n.jsx)("span",{className:(0,b.cn)(f.Vu.mobileIconWell,"h-9 w-9"),children:(0,n.jsx)(a,{className:"h-4 w-4",strokeWidth:1.75})}),(0,n.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"block truncate text-sm font-semibold text-white",children:e.label}),(0,n.jsx)("span",{className:"mt-0.5 block truncate text-xs text-zinc-400",children:e.meta})]}),(0,n.jsx)(m.A,{className:"h-4 w-4 shrink-0 text-zinc-500"})]},e.href)}),0===v.length?(0,n.jsxs)("div",{className:"px-4 py-8 text-center text-sm font-medium text-zinc-400",children:["No files match â",p.trim(),"â."]}):null,(0,n.jsxs)("div",{className:"border-t border-white/[0.06] px-4 py-3 text-xs font-medium text-zinc-500",children:["Storage: ",s]})]})]})}let j={folder:h.A,camera:p.A,compass:x.A}},8525:(e,a,t)=>{t.d(a,{U:()=>l});var n=t(89177);function l(){return(0,n.createBrowserClient)("https://hadnfcenpcfaeclczsmm.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhhZG5mY2VucGNmYWVjbGN6c21tIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjQ1NzcwNzcsImV4cCI6MjA4MDE1MzA3N30.lUKufUuiGg-T-H3zX-oIIBiLwgKRYs_XLlBlK5hFhwo")}},12792:(e,a,t)=>{t.d(a,{MobileQuickActionStrip:()=>i});var n=t(95155),l=t(26530),s=t(64970);function i(e){let{actions:a,className:t=l.R.quickActionGrid,cardClassName:i=l.R.quickActionCard,iconWrapperClassName:r=l.R.quickActionIconWrapper,iconClassName:o=l.R.quickActionIcon,titleClassName:c=l.R.quickActionLabel}=e;return(0,n.jsx)(s.MobileHomeActionGrid,{className:t,"aria-label":"Quick actions","data-testid":"mobile-quick-action-strip",children:a.map(e=>(0,n.jsx)(s.MobileHomeActionCard,{title:e.label,icon:e.icon,href:e.href,onClick:e.onClick,disabled:e.disabled,"aria-label":e["aria-label"],className:i,iconWrapperClassName:r,iconClassName:o,titleClassName:c},e.label))})}},13250:(e,a,t)=>{t.d(a,{MobileHomeSectionBlock:()=>i});var n=t(95155),l=t(25016),s=t(66991);function i(e){let{label:a,accent:t="primary",className:i,children:r}=e,o="info"===t?s.Vu.mobileHomeSectionLabelAccentInfo:s.Vu.mobileHomeSectionLabelAccentPrimary;return(0,n.jsxs)("section",{className:(0,l.cn)("flex min-h-0 flex-col gap-2",i
1),children:[(0,n.jsxs)("div",{className:s.Vu.mobileHomeSectionHeader,children:[(0,n.jsx)("span",{className:o,"aria-hidden":!0}),(0,n.jsx)("p",{className:s.Vu.mobileHomeSectionTitle,children:a})]}),r]})}},13714:(e,a,t)=>{t.d(a,{MobileShellBackToApp:()=>c});var n=t(95155),l=t(52619),s=t.n(l),i=t(35626),r=t(25016),o=t(66991);function c(e){let{className:a}=e;return(0,n.jsx)(s(),{href:"/app","aria-label":"Back to Slate360",className:(0,r.cn)(o.Vu.moduleBackButton,o.Vu.focusRing,a),children:(0,n.jsx)(i.A,{className:"size-[18px]",strokeWidth:2.5,"aria-hidden":!0})})}},16564:(e,a,t)=>{t.d(a,{$:()=>i});var n=t(95155),l=t(26530),s=t(25016);function i(e){let{children:a,className:t,"data-testid":i}=e;return(0,n.jsx)("p",{className:(0,s.cn)(l.R.sectionLabel,t),"data-testid":i,children:a})}},17060:(e,a,t)=>{t.d(a,{MobileComingSoonSheet:()=>r});var n=t(95155),l=t(31856),s=t(69181),i=t(97003);function r(e){let{open:a,onOpenChange:t,title:r="Coming Soon",description:o="The new mobile interface for this feature is currently under construction. Please use the desktop web app in the meantime."}=e;return(0,n.jsx)(l.cj,{open:a,onOpenChange:t,children:(0,n.jsxs)(l.h,{side:"bottom",className:"rounded-t-3xl border-t border-white/10 bg-[#0B0F15] p-6 pb-12 sm:max-w-none text-slate-50",children:[(0,n.jsxs)(l.Fm,{className:"text-left space-y-4",children:[(0,n.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-white/[0.06] text-zinc-200",children:(0,n.jsx)(s.A,{className:"h-6 w-6"})}),(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)(l.qp,{className:"text-xl font-semibold text-slate-50",children:r}),(0,n.jsx)(l.Qs,{className:"text-sm text-slate-400",children:o})]})]}),(0,n.jsx)("div",{className:"mt-8 flex justify-end",children:(0,n.jsx)(i.$,{onClick:()=>t(!1),className:"w-full bg-zinc-100 text-zinc-900 hover:bg-white",children:"Got it"})})]})})}},18462:(e,a,t)=>{t.d(a,{MobileAppCard:()=>o});var n=t(95155),l=t(52619),s=t.n(l),i=t(25016),r=t(66991);function o(e){let{title:a,subtitle:t,icon:l,href:o,badge:c,disabled:d=!1,onClick:u,className:m}=e,h=(0,i.cn)(r.Vu.appCardBase,d&&"pointer-events-none opacity-50",m),p=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:r.Vu.appCardIconWrapper,children:(0,n.jsx)(l,{className:r.Vu.appCardIconClass})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("p",{className:"text-sm font-black text-white",children:a}),(0,n.jsx)("p",{className:"text-xs text-zinc-300",children:t})]}),c&&(0,n.jsx)("span",{className:"shrink-0 rounded-full bg-emerald-500/15 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-emerald-400/90",children:c})]});return o&&!d?(0,n.jsx)(s(),{href:o,className:h,children:p}):(0,n.jsx)("button",{type:"button",onClick:u,disabled:d,className:h,children:p})}},22511:(e,a,t)=>{t.d(a,{MobileActionCard:()=>o});var n=t(95155),l=t(52619),s=t.n(l),i=t(25016),r=t(66991);function o(e){let{icon:a,label:t,description:l,href:o,onClick:c,disabled:d=!1,variant:u="default",accent:m="primary","aria-label":h,className:p}=e,x="module"===u,b={primary:r.Vu.mobileIconBgPrimary,info:r.Vu.mobileIconBgInfo,neutral:r.Vu.mobileIconBgNeutral,muted:r.Vu.mobileIconBgNeutral,warm:r.Vu.mobileIconBgPrimary},f={primary:r.Vu.moduleActionIconClass,info:r.Vu.moduleActionIconClass,neutral:r.Vu.moduleActionIconClass,muted:r.Vu.moduleActionIconClass,warm:r.Vu.moduleActionIconClass},g=(0,i.cn)(r.Vu.actionCardBase,x?r.Vu.moduleActionCardHeight:r.Vu.mobileActionCardHeight,r.Vu.focusRing,d&&"pointer-events-none opacity-50",p),v=(0,n.jsxs)(n.Fragment,{children:[x?(0,n.jsx)("span",{className:(0,i.cn)("mb-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-lg",b[m]),children:(0,n.jsx)(a,{className:f[m]})}):(0,n.jsx)(a,{className:r.Vu.actionIconClass}),(0,n.jsx)("span",{className:r.Vu.actionLabelClass,children:t}),l&&(0,n.jsx)("span",{className:"mt-0.5 text-center text-[11px] font-medium leading-tight text-zinc-300",children:l})]});return o&&!d?(0,n.jsx)(s(),{href:o,className:g,"aria-label":h,children:v}):(0,n.jsx)("button",{type:"button",onClick:c,disabled:d,className:g,"aria-label":h,children:v})}},26530:(e,a,t)=>{t.d(a,{R:()=>s});let n="bg-[color-mix(in_srgb,var(--graphite-canvas)_76%,transparent)] backdrop-blur-md",l="hover:bg-[color-mix(in_srgb,var(--graphite-canvas)_70%,transparent)]",s={scrollInner:"mx-auto flex w-full max-w-2xl flex-col gap-3 px-4 pt-3 pb-3",section:"shrink-0",sectionHeader:"mb-2 px-0.5",sectionLabel:"font-mono text-[11px] font-semibold uppercase tracking-[0.12em] text-[var(--graphite-muted)]",launcherStack:"flex w-full shrink-0 flex-col gap-2",launcherPairRow:"grid w-full shrink-0 grid-cols-2 gap-2",launcherQuadGr
1id:"grid w-full shrink-0 grid-cols-2 gap-2",launcherRail:"flex gap-2 overflow-x-auto overscroll-x-contain pb-0.5 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",launcherRailTile:"min-w-[calc(100%-2rem)] max-w-[280px] shrink-0",launcherTileBase:"flex min-h-[124px] w-full min-w-0 flex-row items-center gap-3.5 rounded-2xl border px-4 py-3.5 text-left shadow-[var(--mobile-app-card-shadow)] transition-all active:scale-[0.99] ".concat(n),launcherTilePrimary:"border-[var(--mobile-app-card-border-primary)] ".concat(l," hover:border-[color-mix(in_srgb,var(--graphite-primary)_42%,transparent)] hover:[box-shadow:var(--mobile-app-card-glow-primary)]"),launcherTileInfo:"border-[var(--mobile-app-card-border-info)] ".concat(l," hover:border-[color-mix(in_srgb,var(--twin360-blue)_42%,transparent)] hover:[box-shadow:var(--mobile-app-card-glow-info)]"),launcherTileLocked:"opacity-55 saturate-[0.42]",launcherIconChipPrimary:"flex h-14 w-14 shrink-0 items-center justify-center rounded-xl border border-[color-mix(in_srgb,var(--graphite-primary)_28%,transparent)] bg-[color-mix(in_srgb,var(--graphite-primary)_12%,transparent)] text-[var(--graphite-primary)]",launcherIconChipInfo:"flex h-14 w-14 shrink-0 items-center justify-center rounded-xl border border-[color-mix(in_srgb,var(--twin360-blue)_28%,transparent)] bg-[color-mix(in_srgb,var(--twin360-blue)_12%,transparent)] text-[var(--twin360-blue)]",launcherIconPrimary:"h-6 w-6 shrink-0",launcherIconInfo:"h-6 w-6 shrink-0",launcherTitle:"truncate text-xl font-bold leading-tight text-[var(--graphite-text-header)]",launcherStatusPrimary:"truncate text-xs font-medium leading-snug text-[var(--graphite-muted)]",launcherStatusInfo:"truncate text-xs font-medium leading-snug text-[var(--graphite-muted)]",launcherChevronPrimary:"h-5 w-5 shrink-0 text-[color-mix(in_srgb,var(--graphite-muted)_85%,transparent)]",launcherChevronInfo:"h-5 w-5 shrink-0 text-[color-mix(in_srgb,var(--graphite-muted)_85%,transparent)]",launcherLockBadge:"pointer-events-none absolute right-2.5 top-2.5 flex h-7 w-7 items-center justify-center rounded-lg border border-[#2A3340] bg-[color-mix(in_srgb,var(--graphite-canvas)_88%,transparent)] text-[var(--graphite-muted)]",quickActionGrid:"grid shrink-0 grid-cols-2 gap-2",quickActionCard:"flex min-h-[76px] flex-row items-center justify-start gap-3 rounded-xl border border-white/[0.06] bg-white/[0.03] px-4 py-3 text-left transition-all active:scale-[0.98] hover:border-[var(--mobile-shell-accent-border)] hover:bg-white/[0.05]",quickActionIconWrapper:"flex shrink-0 items-center justify-center",quickActionIcon:"h-7 w-7 shrink-0 text-[var(--mobile-quick-action-fg)]",quickActionLabel:"text-[15px] font-bold leading-tight text-[var(--mobile-quick-action-title-fg)]",slateDropCard:"flex w-full shrink-0 flex-col gap-3.5 rounded-[13px] border-2 border-[var(--mobile-expandable-panel-border)] p-4 shadow-[var(--mobile-app-card-shadow)] ".concat(n),slateDropRow:"flex items-center gap-3",slateDropRingWrap:"relative flex h-14 w-14 shrink-0 items-center justify-center text-[var(--mobile-shell-accent)]",slateDropStats:"min-w-0 flex-1",slateDropUsage:"text-base font-semibold leading-tight text-[var(--graphite-text-header)]",slateDropMeta:"mt-0.5 text-xs font-normal leading-snug text-[var(--graphite-muted)]",slateDropOpenPill:"inline-flex h-8 shrink-0 items-center justify-center rounded-full border border-[#2A3340] bg-[color-mix(in_srgb,var(--graphite-canvas)_82%,transparent)] px-3 text-xs font-semibold text-[var(--graphite-text-body)] transition-colors hover:border-[var(--mobile-shell-accent-border)] hover:bg-[color-mix(in_srgb,var(--mobile-shell-accent)_12%,var(--graphite-canvas))] hover:text-[var(--graphite-text-header)]",slateDropFolderRow:"flex flex-wrap gap-1.5",slateDropFolderChip:"inline-flex max-w-full items-center truncate rounded-lg border border-[#2A3340] bg-[color-mix(in_srgb,var(--graphite-canvas)_84%,transparent)] px-2.5 py-1.5 text-xs font-medium text-[var(--graphite-text-body)] transition-colors hover:border-[var(--mobile-shell-accent-border)] hover:text-[var(--graphite-text-header)]"}},26810:(e,a,t)=>{t.d(a,{MobileShellBrand:()=>c,MobileShellModuleBrand:()=>d});var n=t(95155),l=t(52619),s=t.n(l),i=t(39614),r=t(25016),o=t(66991);function c(e){let{href:a="/app",className:t,iconClassName:l,iconOnly:c=!1}=e;return(0,n.jsx)(s(),{href:a,className:(0,r.cn)(o.Vu.mobileHeaderBrandLink,t),"aria-label":"Slate360 home",children:(0,n.jsx)(i.H,{size:"sm",className:(0,r.cn)("shrink-0",l)})})}function d(e){let{name:a,icon:t,accent:l}=e,r="info"===l?o.Vu.mobileModuleHomeIconChipInfo:o.Vu.mobileModuleHomeIconChipPrimary;return(0,n.jsxs)("div",{className:o.Vu.mobileModuleHomeBrandCluster,children:[(0,n.jsx)(s(),{href:"/app",className:o.Vu.mobileHeaderPlatformMarkLink,"aria-label":"Slate360 home",children:(0,n.jsx)(i.H,{size:"sm",className:"shrink-0","aria-hidden":!0})}),(0,n.jsx)("span",{className:o.Vu.mobileHeaderBrandDivider,"aria-hidden":!0}
1),(0,n.jsx)("span",{className:r,"aria-hidden":!0,children:(0,n.jsx)(t,{className:o.Vu.mobileModuleHomeIconChipIcon,strokeWidth:2})}),(0,n.jsx)("span",{className:o.Vu.mobileModuleHomeName,children:a})]})}},30456:(e,a,t)=>{t.d(a,{MobileCalendarClient:()=>m});var n=t(95155),l=t(12115),s=t(6191),i=t(10383),r=t(25016),o=t(58081),c=t(53061),d=t(66991);function u(e){let a=new Date(e);return a.setHours(0,0,0,0),a}function m(e){let{events:a=[]}=e,[t,m]=(0,l.useState)([]),[h,p]=(0,l.useState)(!1),x=(0,l.useCallback)(async()=>{try{var e;let a=await fetch("/api/calendar",{cache:"no-store"});if(!a.ok)return;let t=(null!=(e=(await a.json().catch(()=>({}))).events)?e:[]).map(e=>{var a,t;return{id:e.id,title:e.title,dueDate:e.date,projectName:null!=(t=null==(a=e.projects)?void 0:a.name)?t:null,status:null}});m(t)}catch(e){}},[]);(0,l.useEffect)(()=>{x()},[x]);let b=[...a,...t],f=new Date,g=[],v=new Map;for(let e of b){let a=new Date(e.dueDate);if(Number.isNaN(a.getTime()))continue;let t=function(e,a){let t=Math.round((u(e).getTime()-u(a).getTime())/864e5);return t<0?"Overdue":0===t?"Today":1===t?"Tomorrow":e.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})}(a,f),n=v.get(t);void 0===n&&(n=g.length,v.set(t,n),g.push({label:t,overdue:"Overdue"===t,items:[]})),g[n].items.push(e)}return(0,n.jsxs)("div",{className:d.Vu.mobilePageScrollInner,children:[(0,n.jsxs)("section",{className:(0,r.cn)(d.Vu.panelBase,"p-5"),children:[(0,n.jsx)("span",{className:d.Vu.sectionLabelAccentCool,"aria-hidden":!0}),(0,n.jsx)("p",{className:d.Vu.mobileEyebrowLabel,children:"Coordination"}),(0,n.jsx)("h1",{className:(0,r.cn)("mt-1",d.Vu.moduleTitle),children:"Calendar"}),(0,n.jsx)("p",{className:d.Vu.moduleSubtitle,children:"Walks, milestones, and scheduled field work across your projects."}),(0,n.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"mt-4 flex h-12 w-full items-center justify-center gap-2 rounded-xl border border-[color-mix(in_srgb,var(--app-accent)_45%,transparent)] bg-[color-mix(in_srgb,var(--app-accent)_14%,transparent)] text-sm font-semibold text-[var(--app-accent)] transition-colors hover:bg-[color-mix(in_srgb,var(--app-accent)_22%,transparent)]",children:[(0,n.jsx)(s.A,{className:"h-4 w-4",strokeWidth:2})," New event"]})]}),0===g.length?(0,n.jsx)("section",{className:(0,r.cn)(d.Vu.panelBase,"p-5"),children:(0,n.jsx)(c.MobileEmptyState,{icon:i.A,title:"No upcoming events",description:"Schedule a walk, inspection, or milestone â tap New event to add one."})}):g.map(e=>(0,n.jsxs)("section",{className:(0,r.cn)(d.Vu.panelBase,"overflow-hidden"),children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-4 pb-1 pt-3",children:[(0,n.jsx)("h2",{className:(0,r.cn)("font-mono text-[11px] font-semibold uppercase tracking-[0.16em]",e.overdue?"text-[var(--destructive)]":"text-[var(--app-accent)]"),children:e.label}),(0,n.jsx)("span",{className:"text-[11px] font-semibold text-zinc-500",children:e.items.length})]}),e.items.map(e=>(0,n.jsxs)("div",{className:"flex items-center gap-3 border-t border-white/[0.06] px-4 py-3",children:[(0,n.jsx)("span",{className:(0,r.cn)(d.Vu.mobileIconWell,"h-9 w-9"),children:(0,n.jsx)(i.A,{className:"h-4 w-4",strokeWidth:1.75})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("p",{className:"truncate text-sm font-semibold text-white",children:e.title}),(0,n.jsxs)("p",{className:"mt-0.5 truncate text-xs text-zinc-400",children:[e.projectName?"".concat(e.projectName," \xb7 "):"",new Date(e.dueDate).toLocaleDateString(void 0,{month:"short",day:"numeric"})]})]}),e.status?(0,n.jsx)("span",{className:"shrink-0 rounded-md border border-white/10 bg-white/[0.04] px-2 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-zinc-300",children:e.status.replace(/_/g," ")}):null]},e.id))]},e.label)),(0,n.jsx)(o.m,{open:h,onClose:()=>p(!1),onCreated:x})]})}},31856:(e,a,t)=>{t.d(a,{Fm:()=>u,Qs:()=>h,cj:()=>r,h:()=>d,qp:()=>m});var n=t(95155);t(12115);
1var l=t(65229),s=t(89511),i=t(25016);function r(e){let{...a}=e;return(0,n.jsx)(s.Root,{"data-slot":"sheet",...a})}function o(e){let{...a}=e;return(0,n.jsx)(s.Portal,{"data-slot":"sheet-portal",...a})}function c(e){let{className:a,...t}=e;return(0,n.jsx)(s.Overlay,{"data-slot":"sheet-overlay",className:(0,i.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",a),...t})}function d(e){let{className:a,children:t,side:r="right",showCloseButton:d=!0,...u}=e;return(0,n.jsxs)(o,{children:[(0,n.jsx)(c,{}),(0,n.jsxs)(s.Content,{"data-slot":"sheet-content",className:(0,i.cn)("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500","right"===r&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm","left"===r&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm","top"===r&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top","bottom"===r&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",a),...u,children:[t,d&&(0,n.jsxs)(s.Close,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,n.jsx)(l.A,{className:"size-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u(e){let{className:a,...t}=e;return(0,n.jsx)("div",{"data-slot":"sheet-header",className:(0,i.cn)("flex flex-col gap-1.5 p-4",a),...t})}function m(e){let{className:a,...t}=e;return(0,n.jsx)(s.Title,{"data-slot":"sheet-title",className:(0,i.cn)("font-semibold text-foreground",a),...t})}function h(e){let{className:a,...t}=e;return(0,n.jsx)(s.Description,{"data-slot":"sheet-description",className:(0,i.cn)("text-sm text-muted-foreground",a),...t})}},33999:(e,a,t)=>{t.d(a,{MobileTabbedPanel:()=>h});var n=t(95155);t(12115);
1var l=t(83101),s=t(25667),i=t(25016);function r(e){let{className:a,orientation:t="horizontal",...l}=e;return(0,n.jsx)(s.Root,{"data-slot":"tabs","data-orientation":t,orientation:t,className:(0,i.cn)("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",a),...l})}let o=(0,l.F)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function c(e){let{className:a,variant:t="default",...l}=e;return(0,n.jsx)(s.List,{"data-slot":"tabs-list","data-variant":t,className:(0,i.cn)(o({variant:t}),a),...l})}function d(e){let{className:a,...t}=e;return(0,n.jsx)(s.Trigger,{"data-slot":"tabs-trigger",className:(0,i.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",a),...t})}function u(e){let{className:a,...t}=e;return(0,n.jsx)(s.Content,{"data-slot":"tabs-content",className:(0,i.cn)("flex-1 outline-none",a),...t})}var m=t(66991);function h(e){var a,t;let{tabs:l,defaultTab:s,id:o,className:h,minHeight:p="min-h-[260px]",bodyClassName:x,showBottomFade:b=!0,bottomFadeClassName:f,tabTriggerClassName:g}=e,v=null!=(t=null!=s?s:null==(a=l[0])?void 0:a.value)?t:"";return(0,n.jsxs)("div",{id:o,className:(0,i.cn)(m.Vu.panelBase,p,h),children:[(0,n.jsxs)(r,{defaultValue:v,className:"flex min-h-0 flex-1 flex-col",children:[(0,n.jsx)("div",{className:m.Vu.panelTabStripWrapper,children:(0,n.jsx)(c,{className:m.Vu.panelTabList,children:l.map(e=>(0,n.jsx)(d,{value:e.value,className:null!=g?g:m.Vu.panelTabTrigger,children:e.label},e.value))})}),l.map(e=>(0,n.jsx)(u,{value:e.value,className:(0,i.cn)("mt-0 min-h-0 data-[state=inactive]:hidden",m.Vu.panelContent,x),children:e.content},e.value))]}),b&&(0,n.jsx)("div",{className:(0,i.cn)(null!=f?f:m.Vu.panelBottomFade)})]})}},53159:(e,a,t)=>{t.d(a,{MobileTopBar:()=>o});var n=t(95155),l=t(52619),s=t.n(l),i=t(35626),r=t(25016);function o(e){let{title:a="",subtitle:t,hideTitle:l=!1,backHref:o,onBack:c,leftSlot:d,rightSlot:u,className:m}=e,h=o?(0,n.jsx)(s(),{href:o,"aria-label":"Go back",className:"flex size-9 shrink-0 items-center justify-center rounded-lg text-zinc-200 transition-colors hover:bg-white/10 hover:text-white",children:(0,n.jsx)(i.A,{className:"size-5"})}):c?(0,n.jsx)("button",{type:"button",onClick:c,"aria-label":"Go back",className:"flex size-9 shrink-0 items-center justify-center rounded-lg text-zinc-200 transition-colors hover:bg-white/10 hover:text-white",children:(0,n.jsx)(i.A,{className:"size-5"})}):null;return(0,n.jsx)("header",{className:(0,r.cn)("shrink-0 lg:hidden border-b border-white/10 bg-[#0B0F15]/88 px-3 backdrop-blur-md",m),style:{paddingTop:"env(safe-area-inset-top, 0px)"},children:(0,n.jsxs)("div",{className:"flex h-14 min-w-0 items-center justify-between gap-2 overflow-hidden",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[null!=d?d:h,!l&&(a||t)?(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[a?(0,n.jsx)("h1",{className:"truncate text-[16px] font-semibold leading-tight tracking-tight text-white",children:a}):null,t?(0,n.jsx)("p",{className:"truncate text-[11px] font-bold uppercase leading-tight tracking-[0.1em] text-zinc-300 mt-0.5",children:t}):null]}):d?(0,n.jsx)("div",{className:"min-w-0 flex-1","aria-hidden":!0}):null]}),u&&(0,n.jsx)("div",{className:"flex shrink-0 items-center",children:u})]})})}},54894:(e,a,t)=>{t.d(a,{MobileCoordinationHubClient:()=>p});var n=t(95155),l=t(52619),s=t.n(l),i=t(43465),r=t(52020),o=t(10383),c=t(37586),d=t(27937),u=t(25016),m=t(66991);
1let h=[{label:"Inbox",detail:"Notifications, messages, and team alerts.",href:"/coordination/inbox",icon:i.A},{label:"Contacts",detail:"Project contacts, vendors, and field partners.",href:"/coordination/contacts",icon:r.A},{label:"Calendar",detail:"Walks, milestones, and scheduled field work.",href:"/coordination/calendar",icon:o.A}];function p(){return(0,n.jsxs)("div",{className:m.Vu.mobilePageScrollInner,children:[(0,n.jsxs)("section",{className:(0,u.cn)(m.Vu.panelBase,"p-5"),children:[(0,n.jsx)("span",{className:(0,u.cn)(m.Vu.mobileIconWell,"h-12 w-12"),"aria-hidden":!0,children:(0,n.jsx)(c.A,{className:"h-6 w-6",strokeWidth:1.75})}),(0,n.jsx)("span",{className:m.Vu.sectionLabelAccentCool,"aria-hidden":!0}),(0,n.jsx)("p",{className:m.Vu.mobileEyebrowLabel,children:"Coordination"}),(0,n.jsx)("h1",{className:(0,u.cn)("mt-1",m.Vu.moduleTitle),children:"Communication"}),(0,n.jsx)("p",{className:m.Vu.moduleSubtitle,children:"Inbox, contacts, and calendar for field-to-office coordination."})]}),(0,n.jsx)("section",{className:(0,u.cn)(m.Vu.panelBase,"overflow-hidden"),children:h.map(e=>{let a=e.icon;return(0,n.jsxs)(s(),{href:e.href,className:m.Vu.mobileGlassRowLink,children:[(0,n.jsx)("span",{className:(0,u.cn)(m.Vu.mobileIconWell,"h-9 w-9"),children:(0,n.jsx)(a,{className:"h-4 w-4",strokeWidth:1.75})}),(0,n.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"block text-sm font-semibold text-white",children:e.label}),(0,n.jsx)("span",{className:"mt-0.5 block text-xs text-zinc-400",children:e.detail})]}),(0,n.jsx)(d.A,{className:"h-4 w-4 shrink-0 text-zinc-500"})]},e.href)})})]})}},57548:(e,a,t)=>{t.d(a,{MobileAppButton:()=>d});var n=t(95155),l=t(52619),s=t.n(l),i=t(25016),r=t(66991);let o={primary:r.Vu.mobileIconChip,info:r.Vu.mobileIconChip,neutral:r.Vu.mobileIconChip},c={primary:void 0,info:void 0,neutral:void 0};function d(e){let{title:a,subtitle:t,icon:l,href:d,badge:u,disabled:m=!1,locked:h=!1,onPress:p,accent:x="primary",className:b}=e,f=h&&!!p,g=(0,i.cn)(r.Vu.appButtonBase,r.Vu.mobileAppLauncherTileHeight,c[x],r.Vu.focusRing,h&&!f&&"pointer-events-none opacity-50",h&&f&&"cursor-pointer opacity-90 hover:border-white/15 hover:bg-white/[0.08]",m&&!h&&"pointer-events-none opacity-50",b),v=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:(0,i.cn)(r.Vu.appButtonIconWrapper,o[x]),children:(0,n.jsx)(l,{className:r.Vu.appButtonIconClass})}),(0,n.jsx)("p",{className:r.Vu.appButtonTitleClass,children:a}),t&&(0,n.jsx)("p",{className:r.Vu.appButtonSubtitleClass,children:t}),u&&(0,n.jsx)("span",{className:r.Vu.appBadgeInfo,children:u})]});return!d||m||h?p?(0,n.jsx)("button",{type:"button",onClick:p,className:g,"data-testid":"mobile-app-button","aria-label":h?"".concat(a," â ").concat(null!=u?u:"not available yet"):a,"aria-disabled":!!h||void 0,children:v}):(0,n.jsx)("div",{className:g,"data-testid":"mobile-app-button","aria-disabled":m||h,children:v}):(0,n.jsx)(s(),{href:d,className:g,"data-testid":"mobile-app-button",children:v})}},57702:(e,a,t)=>{t.d(a,{MobileHomeListRow:()=>c});var n=t(95155),l=t(52619),s=t.n(l),i=t(25016),r=t(66991);let o={neutral:r.Vu.mobileHomeRowMeta,primary:r.Vu.mobileHomeRowMetaPrimary,info:r.Vu.mobileHomeRowMetaInfo};function c(e){let{title:a,meta:t,metaTone:l="neutral",href:c,onClick:d,className:u}=e,m=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:r.Vu.mobileHomeRowTitle,children:a}),t?(0,n.jsx)("span",{className:o[l],children:t}):null]});return c?(0,n.jsx)(s(),{href:c,className:(0,i.cn)(r.Vu.mobileHomeRowLink,u),children:m}):(0,n.jsx)("button",{type:"button",onClick:d,className:(0,i.cn)(r.Vu.mobileHomeRowLink,"w-full text-left",u),children:m})}},58081:(e,a,t)=>{t.d(a,{m:()=>c});var n=t(95155),l=t(12115),s=t(65229),i=t(25016);let r="h-12 w-full rounded-xl border border-white/10 bg-white/[0.04] px-3 text-sm text-white outline-none placeholder:text-zinc-500 focus:border-[color-mix(in_srgb,var(--app-accent)_45%,transparent)]";function o(){let e=new Date,a=String(e.getMonth()+1).padStart(2,"0"),t=String(e.getDate()).padStart(2,"0");return"".concat(e.getFullYear(),"-").concat(a,"-").concat(t)}function c(e){let{open:a,onClose:t,onCreated:c,projectId:d}=e,[u,m]=(0,l.useState)(""),[h,p]=(0,l.useState)(o()),[x,b]=(0,l.useState)(!0),[f,g]=(0,l.useState)(""),[v,j]=(0,l.useState)(""),[N,w]=(0,l.useState)(""),[y,k]=(0,l.useState)(""),[C,V]=(0,l.useState)(!1),[S,I]=(0,l.useState)(null);if(!a)return null;let A=async()=>
1{if(!u.trim())return void I("Add a title.");V(!0),I(null);try{let e=await fetch("/api/calendar",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:u.trim(),date:h,all_day:x,start_time:x?null:f||null,end_time:x?null:v||null,location:N.trim()||null,description:y.trim()||null,project_id:null!=d?d:null})});if(!e.ok){let a=await e.json().catch(()=>({}));I(a.error||"Couldn't save the event. Try again.");return}m(""),p(o()),b(!0),g(""),j(""),w(""),k(""),I(null),c(),t()}catch(e){I("Network error. Check your connection and try again.")}finally{V(!1)}};return(0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",children:[(0,n.jsx)("button",{type:"button","aria-label":"Close",className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:t}),(0,n.jsxs)("div",{role:"dialog","aria-label":"New event",className:"relative w-full max-w-md rounded-t-2xl border border-white/10 bg-[var(--shell-chrome-surface,#11161E)] p-5 shadow-2xl sm:rounded-2xl",style:{paddingBottom:"calc(1.25rem + env(safe-area-inset-bottom))"},children:[(0,n.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,n.jsx)("p",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-[var(--graphite-muted)]",children:"New event"}),(0,n.jsx)("button",{type:"button",onClick:t,className:"flex h-9 w-9 items-center justify-center rounded-lg text-zinc-400 hover:bg-white/[0.06]","aria-label":"Close",children:(0,n.jsx)(s.A,{className:"h-5 w-5",strokeWidth:1.75})})]}),(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("input",{className:r,placeholder:"Event title",value:u,onChange:e=>m(e.target.value),autoFocus:!0}),(0,n.jsx)("input",{className:r,type:"date",value:h,onChange:e=>p(e.target.value)}),(0,n.jsxs)("label",{className:"flex min-h-12 items-center justify-between rounded-xl border border-white/10 bg-white/[0.04] px-3",children:[(0,n.jsx)("span",{className:"text-sm text-white",children:"All day"}),(0,n.jsx)("input",{type:"checkbox",checked:x,onChange:e=>b(e.target.checked),className:"h-5 w-5 accent-[var(--app-accent)]"})]}),x?null:(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,n.jsx)("input",{className:r,type:"time",value:f,onChange:e=>g(e.target.value),"aria-label":"Start time"}),(0,n.jsx)("input",{className:r,type:"time",value:v,onChange:e=>j(e.target.value),"aria-label":"End time"})]}),(0,n.jsx)("input",{className:r,placeholder:"Location (optional)",value:N,onChange:e=>w(e.target.value)}),(0,n.jsx)("textarea",{className:(0,i.cn)(r,"h-20 resize-none py-2"),placeholder:"Notes (optional)",value:y,onChange:e=>k(e.target.value)}),S?(0,n.jsx)("p",{className:"text-xs text-[var(--destructive)]",children:S}):null,(0,n.jsx)("button",{type:"button",onClick:A,disabled:C,className:"flex h-12 w-full items-center justify-center rounded-xl border border-[color-mix(in_srgb,var(--app-accent)_45%,transparent)] bg-[color-mix(in_srgb,var(--app-accent)_14%,transparent)] text-sm font-semibold text-[var(--app-accent)] transition-colors hover:bg-[color-mix(in_srgb,var(--app-accent)_22%,transparent)] disabled:opacity-50",children:C?"Savingâ¦":"Save event"})]})]})]})}},60013:(e,a,t)=>{t.d(a,{MobileHomeContainedList:()=>i});var n=t(95155),l=t(25016),s=t(66991);function i(e){let{children:a,className:t}=e;return(0,n.jsxs)("div",{className:(0,l.cn)(s.Vu.mobileHomeContainedList,t),children:[(0,n.jsx)("div",{className:s.Vu.mobileHomeContainedListScroll,children:(0,n.jsx)("div",{className:s.Vu.mobileHomeContainedListInner,children:a})}),(0,n.jsx)("div",{className:s.Vu.mobileHomeListBottomFade,"aria-hidden":!0})]})}},64970:(e,a,t)=>{t.d(a,{MobileHomeActionCard:()=>o,MobileHomeActionGrid:()=>c});var n=t(95155),l=t(52619),s=t.n(l),i=t(25016),r=t(66991);function o(e){let{title:a,subtext:t,icon:l,href:o,onClick:c,disabled:d=!1,selected:u=!1,accent:m="primary","aria-label":h,className:p,iconWrapperClassName:x,iconClassName:b,titleClassName:f,subtextClassName:g}=e,v="info"===m,j=(0,i.cn)(null!=p?p:r.Vu.mobileHomeActionCard,u&&r.Vu.mobileHomeActionCardSelected,r.Vu.focusRing,d&&"pointer-events-none opacity-50"),N=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:null!=x?x:v?r.Vu.mobileHomeActionIconWrapperInfo:r.Vu.mobileHomeActionIconWrapper,"aria-hidden":!0,
1children:(0,n.jsx)(l,{className:null!=b?b:v?r.Vu.mobileHomeActionIconInfo:r.Vu.mobileHomeActionIcon,strokeWidth:1.75})}),(0,n.jsx)("span",{className:null!=f?f:v?r.Vu.mobileHomeActionTitleInfo:r.Vu.mobileHomeActionTitle,children:a}),t?(0,n.jsx)("span",{className:null!=g?g:r.Vu.mobileHomeActionSubtext,children:t}):null]});return o&&!d?(0,n.jsx)(s(),{href:o,className:j,"aria-label":null!=h?h:a,children:N}):c?(0,n.jsx)("button",{type:"button",onClick:c,disabled:d,className:j,"aria-label":null!=h?h:a,children:N}):(0,n.jsx)("div",{className:j,"aria-label":null!=h?h:a,children:N})}function c(e){let{children:a,className:t,"aria-label":l,"data-testid":s}=e;return(0,n.jsx)("div",{className:(0,i.cn)(r.Vu.mobileHomeActionGrid,t),role:l?"toolbar":"group","aria-label":l,"data-testid":s,children:a})}},65192:(e,a,t)=>{t.d(a,{MobileInboxClient:()=>p});var n=t(95155),l=t(52619),s=t.n(l),i=t(12115),r=t(52020),o=t(10383),c=t(43465),d=t(8525),u=t(25016),m=t(66991);let h=[{label:"Contacts",href:"/coordination/contacts",icon:r.A},{label:"Calendar",href:"/coordination/calendar",icon:o.A}];function p(){let{unreadNotifications:e,notificationsLoading:a,loadUnreadNotifications:t}=function(e){let[a,t]=(0,i.useState)(!1),[n,l]=(0,i.useState)([]);return{notificationsLoading:a,unreadNotifications:n,loadUnreadNotifications:(0,i.useCallback)(async()=>{t(!0);try{let{data:{user:a}}=await e.auth.getUser();if(!a)return void l([]);let{data:t}=await e.from("project_notifications").select("id, project_id, title, message, link_path, created_at").eq("user_id",a.id).eq("is_read",!1).order("created_at",{ascending:!1}).limit(10);l(null!=t?t:[])}catch(e){l([])}finally{t(!1)}},[e])}}((0,d.U)());(0,i.useEffect)(()=>{t()},[t]);let l=async()=>{await fetch("/api/notifications/read",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({all:!0})}),await t()};return(0,n.jsxs)("div",{className:m.Vu.mobilePageScrollInner,children:[(0,n.jsxs)("section",{className:(0,u.cn)(m.Vu.panelBase,"p-5"),children:[(0,n.jsx)("span",{className:(0,u.cn)(m.Vu.mobileIconWell,"h-12 w-12"),"aria-hidden":!0,children:(0,n.jsx)(c.A,{className:"h-6 w-6",strokeWidth:1.75})}),(0,n.jsx)("span",{className:m.Vu.sectionLabelAccentCool,"aria-hidden":!0}),(0,n.jsx)("p",{className:(0,u.cn)("mt-4",m.Vu.mobileEyebrowLabel),children:"Coordination"}),(0,n.jsx)("h1",{className:(0,u.cn)("mt-1",m.Vu.moduleTitle),children:"Inbox"}),(0,n.jsx)("p",{className:m.Vu.moduleSubtitle,children:"Comments, uploads, and job updates that need your attention."})]}),(0,n.jsx)("nav",{className:"grid grid-cols-2 gap-2","aria-label":"Coordination shortcuts",children:h.map(e=>{let{label:a,href:t,icon:l}=e;return(0,n.jsxs)(s(),{href:t,className:(0,u.cn)(m.Vu.mobileGlassCardSurface,"flex items-center gap-3 px-3 py-3"),children:[(0,n.jsx)("span",{className:(0,u.cn)(m.Vu.mobileIconWell,"h-9 w-9"),children:(0,n.jsx)(l,{className:"h-4 w-4",strokeWidth:1.75})}),(0,n.jsx)("span",{className:"text-sm font-semibold text-zinc-100",children:a})]},t)})}),(0,n.jsx)("section",{className:(0,u.cn)(m.Vu.panelBase,"p-4"),children:(0,n.jsx)("div",{className:"space-y-3",children:a?(0,n.jsx)("p",{className:"text-sm text-zinc-400",children:"Loading notificationsâ¦"}):e.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsx)("button",{type:"button",onClick:l,className:"text-xs font-semibold text-[var(--graphite-primary)] hover:opacity-80",children:"Mark all read"})}),e.map(e=>{var a,t;let l=null!=(t=null==(a=e.link_path)?void 0:a.replace(/^\/project-hub(?=\/|$)/,"/projects"))?t:e.project_id?"/projects/".concat(e.project_id):"/coordination/inbox";return(0,n.jsxs)(s(),{href:l,onClick:()=>{fetch("/api/notifications/read",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id})})},className:(0,u.cn)(m.Vu.mobileGlassCardSurface,"block px-4 py-4 transition-colors hover:bg-white/[0.03]"),children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-zinc-100",children:e.title}),(0,n.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-zinc-400",children:e.message}),(0,n.jsx)("p",{className:"mt-2 text-[11px] text-zinc-500",children:new Date(e.created_at).toLocaleStr
1ing()})]},e.id)})]}):(0,n.jsxs)("div",{className:"flex flex-col items-center gap-3 px-6 py-10 text-center",children:[(0,n.jsx)("span",{className:(0,u.cn)(m.Vu.mobileIconWell,"h-12 w-12"),"aria-hidden":!0,children:(0,n.jsx)(c.A,{className:"h-6 w-6",strokeWidth:1.5})}),(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-zinc-100",children:"Youâre all caught up"}),(0,n.jsx)("p",{className:"max-w-xs text-xs leading-relaxed text-zinc-400",children:"Client comments, uploads, and job updates appear here when your team shares work with you."})]}),(0,n.jsx)(s(),{href:"/coordination/calendar",className:"text-xs font-semibold text-[var(--graphite-primary)] hover:opacity-80",children:"Open calendar"})]})})})]})}},68969:(e,a,t)=>{t.d(a,{MobileShellBrandMark:()=>s});var n=t(95155),l=t(26810);function s(e){let{href:a="/app",className:t,iconClassName:s}=e;return(0,n.jsx)(l.MobileShellBrand,{href:a,className:t,iconClassName:s,iconOnly:!0})}},70953:(e,a,t)=>{t.d(a,{MobileContactsClient:()=>h});var n=t(95155),l=t(12115),s=t(52619),i=t.n(s),r=t(86651),o=t(52020),c=t(27937),d=t(25016),u=t(53061),m=t(66991);function h(e){let{contacts:a}=e,[t,s]=(0,l.useState)(""),h=(0,l.useMemo)(()=>{let e=t.trim().toLowerCase();return e?a.filter(a=>[a.name,a.email,a.company,a.title].filter(e=>"string"==typeof e).some(a=>a.toLowerCase().includes(e))):a},[a,t]);return(0,n.jsxs)("div",{className:m.Vu.mobilePageScrollInner,children:[(0,n.jsxs)("section",{className:(0,d.cn)(m.Vu.panelBase,"p-5"),children:[(0,n.jsx)("span",{className:m.Vu.sectionLabelAccentCool,"aria-hidden":!0}),(0,n.jsx)("p",{className:m.Vu.mobileEyebrowLabel,children:"Coordination"}),(0,n.jsx)("h1",{className:(0,d.cn)("mt-1",m.Vu.moduleTitle),children:"Contacts"}),(0,n.jsx)("p",{className:m.Vu.moduleSubtitle,children:"Project contacts, vendors, and field partners for your workspace."})]}),(0,n.jsx)("div",{className:(0,d.cn)(m.Vu.mobileGlassCardSurface,"p-3"),children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(r.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-500","aria-hidden":!0}),(0,n.jsx)("input",{value:t,onChange:e=>s(e.target.value),placeholder:"Search contacts",className:"h-11 w-full rounded-xl border border-white/10 bg-[#0B0F15]/60 pl-10 pr-4 text-sm text-white outline-none placeholder:text-zinc-500 focus:border-white/25 focus:ring-2 focus:ring-white/10"})]})}),(0,n.jsx)("section",{className:(0,d.cn)(m.Vu.panelBase,"overflow-hidden"),children:0===h.length?(0,n.jsx)(u.MobileEmptyState,{icon:o.A,title:"No contacts yet",description:"Contacts added to your workspace will appear here."}):h.map(e=>{var a;return(0,n.jsxs)(i(),{href:"/coordination/contacts?contact=".concat(e.id),className:m.Vu.mobileGlassRowLink,children:[(0,n.jsx)("span",{className:(0,d.cn)(m.Vu.mobileIconWell,"h-9 w-9 text-xs font-bold uppercase"),children:null!=(a=e.initials)?a:e.name.slice(0,2)}),(0,n.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"block truncate text-sm font-semibold text-white",children:e.name}),(0,n.jsx)("span",{className:"mt-0.5 block truncate text-xs text-zinc-400",children:[e.title,e.company].filter(Boolean).join(" \xb7 ")||e.email||"Contact"})]}),(0,n.jsx)(c.A,{className:"h-4 w-4 shrink-0 text-zinc-500"})]},e.id)})})]})}},92500:(e,a,t)=>{t.d(a,{MobileCreateSheet:()=>o});var n=t(95155),l=t(52619),s=t.n(l),i=t(31856),r=t(97003);function o(e){let{open:a,onOpenChange:t}=e;return(0,n.jsx)(i.cj,{open:a,onOpenChange:t,children:(0,n.jsxs)(i.h,{side:"bottom",className:"rounded-t-3xl border-t border-white/10 bg-[#0B0F15] p-6 pb-12 sm:max-w-none text-slate-50",children:[(0,n.jsx)(i.Fm,{className:"text-left space-y-4",children:(0,n.jsx)(i.qp,{className:"text-xl font-semibold text-slate-50",children:"Create New..."})}),(0,n.jsxs)("div",{className:"mt-8 flex flex-col gap-4",children:[(0,n.jsx)(r.$,{asChild:!0,variant:"outline",className:"w-full bg-white/5 border-white/10 text-zinc-300 hover:bg-white/10 hover:text-white",children:(0,n.jsx)(s(),{href:"/projects?new=1",onClick:()=>t(!1),children:"Create Project"})}),(0,n.jsx)(r.$,{asChild:!0,variant:"outline",className:"w-full bg-white/5 border-white/10 text-zinc-300 hover:bg-white/10 hover:text-white",children:(0,n.jsx)(s(),{href:"/site-walk/setup",onClick:()=>t(!1),children:"Start Site Walk"})}),(0,n.jsx)(r.$,{onClick:()=>t(!1),variant:"ghost",className:"w-full text-zinc-200 hover:text-white",children:"Cancel"})]})]})})}},93574:(e,a,t)=>{t.d(a,{MobileQuickActionsSection:()=>r});var n=t(95155),l=t(26530),s=t(16564),i=t(25016);function r(e){let{children:a,className:t}=e;return(0,n.jsxs)("section",{className:(0,i.cn)(l.R.section,t),children:[(0,n.jsx)("div",{className:l.R.sectionHeader,children:(0,n.jsx)(s.$,{children:"Qu
1ick Actions"})}),a]})}},94564:(e,a,t)=>{t.d(a,{MobileHomeLayout:()=>r});var n=t(95155),l=t(25016),s=t(66991),i=t(11547);function r(e){let{route:a,contentTop:t,primaryActions:r,dock:o,className:c}=e;return(0,i.useMobileShellDock)(o),(0,n.jsxs)("div",{"data-mobile-home-layout-version":"mobile-shell-v1","data-dock-width-mode":"full-shell","data-mobile-route":a,className:(0,l.cn)(s.Vu.mobileShellScrollInner,c),children:[t?(0,n.jsx)("div",{className:"shrink-0",children:t}):null,r?(0,n.jsx)("div",{className:s.Vu.mobileHomeSection,children:r}):null]})}},97003:(e,a,t)=>{t.d(a,{$:()=>o});var n=t(95155);t(12115);var l=t(83101),s=t(32467),i=t(25016);let r=(0,l.F)("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:a,variant:t="default",size:l="default",asChild:o=!1,...c}=e,d=o?s.bL:"button";return(0,n.jsx)(d,{"data-slot":"button","data-variant":t,"data-size":l,className:(0,i.cn)(r({variant:t,size:l,className:a})),...c})}}}]);
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.