1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/workbook-map-MFH5qBfW.js","assets/vendor-react-VD_hA_t5.js","assets/app-Cb9XrKeu.js","assets/vendor-sentry-Mt8KIYF_.js","assets/vendor-query-BBPXYuBM.js","assets/index-Dh1m5UXT.css","assets/vendor-maplibre-0hRK996h.js","assets/vendor-maplibre-JR8eJ17e.css","assets/geo-sheet-m-P7yT1z.js","assets/workbook-map-BZZd-1Th.css"])))=>i.map(i=>d[i]); 2import{d as P,M as T,av as g,F as C,ai as E,dx as F}from"./app-Cb9XrKeu.js";import{b as _,r as x,j as l}from"./vendor-react-VD_hA_t5.js";import{isWorkbookMappable as D}from"./geo-sheet-m-P7yT1z.js";import{T as I}from"./tab-switch-BmMN1yS0.js";import{FilePreviewBody as L}from"./file-preview-body-Dw9Gn_In.js";import"./vendor-sentry-Mt8KIYF_.js";import"./vendor-query-BBPXYuBM.js";import"./tiny-invariant-CopsF_GD.js";import"./clsx-B-dksMZM.js";const R=x.lazy(()=>g(()=>import("./workbook-map-MFH5qBfW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])));function z(){const p=_.c(1);let e;return p[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3 text-secondary/50 p-4",children:[l.jsx(C,{icon:E,spin:!0,className:"text-2xl"}),l.jsx("p",{className:"text-sm",children:"Loading mapâ¦"})]}),p[0]=e):e=p[0],e}function K(p){const e=_.c(31),{file:t,onClose:i}=p,[b,M]=x.useState(null),[s,k]=x.useState(!1),[j,N]=x.useState(!1),{setToast:S}=P();let h;e[0]!==t.filename||e[1]!==t.url||e[2]!==S?(h=async()=>{const a=await F(t.url,t.filename);a&&S({text:a,type:"error",visible:!0})},e[0]=t.filename,e[1]=t.url,e[2]=S,e[3]=h):h=e[3];const w=h;let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=a=>{M(a),N(D(a))},e[4]=u):u=e[4];const A=u;let o;e[5]!==i?(o={label:"Cancel",onClick:i,variant:"destructive"},e[5]=i,e[6]=o):o=e[6];let n;e[7]!==w?(n={label:"Download",onClick:w,variant:"cta"},e[7]=w,e[8]=n):n=e[8];let r;e[9]!==j||e[10]!==s?(r=j&&l.jsx("div",{className:"shrink-0",children:l.jsx(I,{modes:["Table","Map"],activeIndex:s?1:0,onChange:a=>k(a===1),size:"sm"})}),e[9]=j,e[10]=s,e[11]=r):r=e[11];const y=s?"hidden":"flex-1 min-h-0 flex flex-col";let c;e[12]!==t?(c=l.jsx(L,{file:t,onSheetsParsed:A}),e[12]=t,e[13]=c):c=e[13];let m;e[14]!==y||e[15]!==c?(m=l.jsx("div",{className:y,children:c}),e[14]=y,e[15]=c,e[16]=m):m=e[16];let f;e[17]!==t.filename||e[18]!==b||e[19]!==s?(f=s&&l.jsx("div",{className:"flex-1 min-h-0 relative",children:l.jsx(x.Suspense,{fallback:l.jsx(z,{}),children:l.jsx(R,{sheets:b,title:t.filename})})}),e[17]=t.filename,e[18]=b,e[19]=s,e[20]=f):f=e[20];let d;e[21]!==m||e[22]!==f?(d=l.jsxs("div",{className:"min-h-0 h-[70vh] overflow-hidden rounded border border-border flex flex-col bg-primary relative",children:[m,f]}),e[21]=m,e[22]=f,e[23]=d):d=e[23];let v;return e[24]!==t.filename||e[25]!==i||e[26]!==d||e[27]!==o||e[28]!==n||e[29]!==r?(v=l.jsxs(T,{title:t.filename,onClose:i,secondaryAction:o,primaryAction:n,children:[r,d]}),e[24]=t.filename,e[25]=i,e[26]=d,e[27]=o,e[28]=n,e[29]=r,e[30]=v):v=e[30],v}export{K 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.