1import{b as j,e as a,j as e,B as r}from"./index-BoPK12rZ.js";import{T as v}from"./textarea-D9g-r6Bx.js";import{B as N}from"./badge-Dzgcftu_.js";import{V as m}from"./video-N9HUtxwx.js";import{M as b}from"./mic-mMHz3pNt.js";import{M as y}from"./mic-off-BP77eSKT.js";import{V as w}from"./video-off-DXZMEK_Z.js";import{P as M}from"./phone-KmqRPYOg.js";import{S as k}from"./send-BepDDYBj.js";const E=()=>{const{t,language:d}=j(),x=d==="he",[i,u]=a.useState(!0),[n,h]=a.useState(!0),[o,c]=a.useState(""),[f,p]=a.useState([{text:t("ש×××, ××× ×פשר ××¢××ר?","Hello, how can I help?"),sender:"doctor",time:"10:00"}]),l=()=>{o.trim()&&(p(s=>[...s,{text:o,sender:"me",time:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}]),c(""))};return e.jsxs("div",{className:"min-h-screen bg-background flex flex-col",dir:x?"rtl":"ltr",children:[e.jsxs("div",{className:"flex-1 bg-muted/50 flex items-center justify-center relative min-h-[300px]",children:[e.jsxs("div",{className:"text-center text-muted-foreground space-y-2",children:[e.jsx(m,{className:"h-16 w-16 mx-auto opacity-30"}),e.jsx("p",{className:"text-lg font-medium",children:t("××ר ×××¢××¥","Consultation Room")}),e.jsx(N,{variant:"secondary",children:t("××ת×× ×ר×פ×...","Waiting for doctor...")})]}),e.jsx("div",{className:"absolute bottom-4 end-4 w-24 h-32 bg-muted rounded-lg border flex items-center justify-center",children:e.jsx("span",{className:"text-xs text-muted-foreground",children:t("×× ×","Me")})})]}),e.jsxs("div",{className:"flex justify-center gap-4 p-4 bg-background border-t",children:[e.jsx(r,{size:"icon",variant:i?"outline":"destructive",onClick:()=>u(!i),children:i?e.jsx(b,{className:"h-5 w-5"}):e.jsx(y,{className:"h-5 w-5"})}),e.jsx(r,{size:"icon",variant:n?"outline":"destructive",onClick:()=>h(!n),children:n?e.jsx(m,{className:"h-5 w-5"}):e.jsx(w,{className:"h-5 w-5"})}),e.jsx(r,{size:"icon",variant:"destructive",children:e.jsx(M,{className:"h-5 w-5"})})]}),e.jsxs("div",{className:"border-t bg-background",children:[e.jsx("div",{className:"max-w-lg mx-auto p-3 space-y-2 max-h-40 overflow-y-auto",children:f.map((s,g)=>e.jsx("div",{className:`flex ${s.sender==="me"?"justify-end":"justify-start"}`,children:e.jsxs("div",{className:`px-3 py-2 rounded-xl text-sm max-w-[80%] ${s.sender==="me"?"bg-primary text-primary-foreground":"bg-muted text-foreground"}`,children:[s.text,e.jsx("span",{className:"text-[10px] opacity-70 block mt-1",children:s.time})]})},g))}),e.jsxs("div",{className:"flex gap-2 p-3 border-t",children:[e.jsx(v,{value:o,onChange:s=>c(s.target.value),placeholder:t("×ת×× ××××¢×...","Type a message..."),className:"min-h-[40px] max-h-20 resize-none",onKeyDown:s=>s.key==="Enter"&&!s.shiftKey&&(s.preventDefault(),l())}),e.jsx(r,{size:"icon",onClick:l,children:e.jsx(k,{className:"h-4 w-4"})})]})]})]})};export{E 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.