import{t as e}from"./jsx-runtime-CiQ1k8xo.js";import{t}from"./clsx-BcPLHiun.js";import{lt as n}from"./vscode-api-DjORcpSo.js";import{o as r}from"./lib-MoKmYgcO.js";import{t as i}from"./spinner-BAEL5-Nn.js";var a=n(),o=e();function s(e){let n=(0,a.c)(6),{className:s}=e,c;n[0]===s?c=n[1]:(c=t(`text-token-text-secondary flex items-center gap-2`,s),n[0]=s,n[1]=c);let l,u;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,o.jsx)(i,{className:`icon-xs text-token-input-placeholder-foreground`}),u=(0,o.jsx)(r,{id:`codex.diffView.richPreviewLoading`,defaultMessage:`Loading preview…`,description:`Loading label while rich preview renders in the diff view`}),n[2]=l,n[3]=u):(l=n[2],u=n[3]);let d;return n[4]===c?d=n[5]:(d=(0,o.jsxs)(`div`,{className:c,children:[l,u]}),n[4]=c,n[5]=d),d}function c(e){let n=(0,a.c)(5),{className:r,children:i}=e,s;n[0]===r?s=n[1]:(s=t(`text-token-text-secondary text-xs`,r),n[0]=r,n[1]=s);let c;return n[2]!==i||n[3]!==s?(c=(0,o.jsx)(`span`,{className:s,children:i}),n[2]=i,n[3]=s,n[4]=c):c=n[4],c}function l(e){let t=(0,a.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,o.jsx)(`div`,{className:`flex min-h-40 flex-col`,children:(0,o.jsx)(`div`,{className:`flex flex-1 items-center justify-center overflow-auto p-3 text-sm`,children:n})}),t[0]=n,t[1]=r),r}export{c as n,l as r,s as t};
//# sourceMappingURL=rich-preview-primitives-DWhP6EPk.js.map