32 lines
23 KiB
JavaScript
32 lines
23 KiB
JavaScript
import{j as e}from"./index-DWp6u1Ix.js";import{a as d,t as m,E as o,G as y,s as S,H as w,S as k,I as $,F as b}from"./icons-BLu1UXn4.js";import"./react-Cfa4jLPc.js";function I({report:s,onConfirmHandover:h,dispatchers:u,successMsg:c,setSuccessMsg:t,cases:j,calls:f}){const[r,N]=d.useState(""),[n,i]=d.useState(""),[C,T]=d.useState(""),[x,l]=d.useState("");j.filter(a=>a.date===s.date&&a.shift===s.shift),f.filter(a=>a.date===s.date&&a.shift===s.shift);const g=a=>{if(a.preventDefault(),l(""),!r){l("กรุณาเลือกผู้รับเวร");return}if(!n){l("กรุณากรอกรหัสผ่าน / PIN 4 หลัก");return}h(r,n)?(t("ยืนยันการรับ-ส่งเวรสำเร็จ! ข้อมูลผู้รับเวรถูกลงบันทึกในเอกสารอย่างเป็นทางการแล้ว"),setTimeout(()=>t(""),4e3),i("")):l("รหัสผ่าน / PIN ไม่ถูกต้อง กรุณาลองใหม่อีกครั้ง")},p=()=>{window.print()},v=()=>{const a=`
|
|
=== รายงานประจำวันนเรนทรอ่าวไทย ===
|
|
วันที่: ${s.date} | เวร: ${s.shift}
|
|
ผู้สรุปรายงาน: ${s.reporterName}
|
|
----------------------------------
|
|
1. ข้อมูลสายเรียกเข้าทั้งหมด: ${s.callsSummary.total} สาย
|
|
- สายปฏิบัติการ: ${s.callsSummary.emsOrRefer} สาย
|
|
- สายก่อกวน: ${s.callsSummary.spam} สาย
|
|
- โทรผิด: ${s.callsSummary.wrongNumber} สาย
|
|
- แจ้งเหตุอื่น: ${s.callsSummary.others} สาย
|
|
|
|
2. เคสปฏิบัติการทั้งหมด: ${s.casesSummary.total} ราย
|
|
- EMS: ${s.casesSummary.ems} | Refer: ${s.casesSummary.refer}
|
|
- ระดับหน่วย CLS: ${s.casesSummary.cls} | ALS: ${s.casesSummary.als} | BLS: ${s.casesSummary.bls}
|
|
|
|
3. การประเมิน Triage (Phone / Scene / ER):
|
|
- แดง: ${s.triageSummary.phone.red} / ${s.triageSummary.scene.red} / ${s.triageSummary.er.red}
|
|
- เหลือง: ${s.triageSummary.phone.yellow} / ${s.triageSummary.scene.yellow} / ${s.triageSummary.er.yellow}
|
|
- เขียว: ${s.triageSummary.phone.green} / ${s.triageSummary.scene.green} / ${s.triageSummary.er.green}
|
|
|
|
4. ผลทดสอบวิทยุ ว.16 ล่าสุด:
|
|
- ทดสอบสำเร็จ: ${s.radioSummary?.testedCount||0} สถานี
|
|
- ติดต่อไม่ได้: ${s.radioSummary?.unreachable.length||0} สถานี [${s.radioSummary?.unreachable.join(", ")||"ไม่มี"}]
|
|
- ผู้ทดสอบ: ${s.radioSummary?.testerName||"ไม่มี"}
|
|
|
|
5. สรุปรับ-ส่งเวร:
|
|
- ผู้ส่งเวร: ${s.handover.senderName}
|
|
- ผู้รับเวร: ${s.handover.isConfirmed?s.handover.receiverName:"ยังไม่ได้รับการยืนยันยืนเวร"}
|
|
- เคสตกค้าง: ${s.handover.pendingCasesCount} เคส
|
|
==================================
|
|
`;navigator.clipboard.writeText(a),t("คัดลอกสรุปข้อความประจำเวร เรียบร้อยแล้ว!"),setTimeout(()=>t(""),3e3)};return e.jsxs("div",{className:"space-y-6",children:[c&&e.jsxs("div",{className:"fixed top-24 right-4 z-50 bg-emerald-600 text-white px-6 py-3.5 rounded-xl shadow-xl flex items-center gap-3 animate-bounce",children:[e.jsx(m,{className:"w-5 h-5"}),e.jsx("span",{className:"font-semibold",children:c})]}),e.jsxs("div",{className:"bg-gradient-to-br from-slate-900 via-slate-800 to-slate-950 text-white rounded-2xl p-5 md:p-6 shadow-xl border border-slate-700/60 flex flex-col lg:flex-row gap-6 justify-between items-start",children:[e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-blue-400",children:[e.jsx(o,{className:"w-5 h-5"}),e.jsx("h3",{className:"font-black text-sm uppercase tracking-wider",children:"ระบบรับ-ส่งเวรและรักษาความปลอดภัย"})]}),e.jsx("p",{className:"text-xs text-slate-300 leading-relaxed font-semibold",children:"เจ้าหน้าที่เปลี่ยนเวร (ผู้รับเวร) ต้องยืนยันตนด้วยชื่อและรหัสผ่าน / PIN 4 หลักของตนเอง เพื่อลงลายเซ็นดิจิตอลรับมอบภาระงาน ยอดสรุปสถิติ เคสปฏิบัติการที่ค้าง และความพร้อมของขบวนรถพยาบาล"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-2",children:[e.jsxs("div",{className:"bg-slate-800/40 border border-slate-700/40 p-3 rounded-xl",children:[e.jsx("span",{className:"text-[10px] text-slate-400 block font-bold uppercase",children:"ผู้ส่งมอบเวร"}),e.jsx("span",{className:"text-xs font-bold text-slate-100",children:s.handover.senderName})]}),e.jsxs("div",{className:"bg-slate-800/40 border border-slate-700/40 p-3 rounded-xl",children:[e.jsx("span",{className:"text-[10px] text-slate-400 block font-bold uppercase",children:"ผู้เซ็นรับมอบเวร"}),e.jsx("span",{className:`text-xs font-bold ${s.handover.isConfirmed?"text-emerald-400":"text-amber-400 animate-pulse"}`,children:s.handover.isConfirmed?s.handover.receiverName:"⏳ รอรับมอบเวร"})]})]})]}),s.handover.isConfirmed?e.jsxs("div",{className:"w-full lg:w-80 bg-emerald-950/40 p-5 rounded-xl border border-emerald-800/60 flex flex-col items-center justify-center text-center space-y-2",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-emerald-500/20 text-emerald-400 flex items-center justify-center border border-emerald-500/30",children:e.jsx(m,{className:"w-5 h-5"})}),e.jsx("h4",{className:"font-extrabold text-sm text-emerald-300",children:"ยืนยันรับเวรเสร็จสิ้น"}),e.jsxs("p",{className:"text-[10px] text-slate-300 leading-relaxed font-semibold",children:["เซ็นมอบเวรโดย ",s.handover.senderName," ส่งมอบต่อให้กับ ",s.handover.receiverName," สำเร็จ ปลอดภัย และมีการลงบันทึกในรายงานเวรแล้ว"]})]}):e.jsxs("form",{onSubmit:g,className:"w-full lg:w-80 bg-slate-800 p-4 rounded-xl border border-slate-700 space-y-3.5",children:[e.jsx("h4",{className:"text-xs font-bold text-slate-200 uppercase tracking-widest border-b border-slate-700 pb-1",children:"ลงชื่อรับเวรดิจิตอล"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-[10px] text-slate-300 font-bold mb-1",children:"เลือกเจ้าหน้าที่รับเวร"}),e.jsxs("select",{value:r,onChange:a=>N(a.target.value),className:"w-full py-1.5 px-2 bg-slate-900 border border-slate-700 rounded-lg text-xs font-semibold text-slate-200 outline-none",children:[e.jsx("option",{value:"",children:"-- เลือก Dispatcher รับเวร --"}),u.filter(a=>a.username!==s.reporterUsername).map(a=>e.jsx("option",{value:a.username,children:a.fullName},a.id))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-[10px] text-slate-300 font-bold mb-1",children:"ป้อน PIN 4 หลัก ยืนยันรหัส"}),e.jsx("input",{type:"password",maxLength:4,placeholder:"••••",value:n,onChange:a=>i(a.target.value),className:"w-full py-1.5 px-2 bg-slate-900 border border-slate-700 rounded-lg text-xs font-mono text-center tracking-widest text-slate-200 outline-none"})]}),x&&e.jsxs("div",{className:"flex items-center gap-1.5 text-rose-400 text-[10px] font-bold",children:[e.jsx(y,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:x})]}),e.jsxs("button",{type:"submit",className:"w-full py-2 bg-blue-600 hover:bg-blue-700 text-xs font-bold text-white rounded-lg transition-all active:scale-95 cursor-pointer flex items-center justify-center gap-1.5",children:[e.jsx(o,{className:"w-3.5 h-3.5"})," ยืนยันการเซ็นรับมอบเวร"]})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 justify-end print:hidden",children:[e.jsxs("button",{onClick:v,className:"flex items-center gap-1.5 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold text-xs px-4 py-2 rounded-xl transition-all border border-slate-200 cursor-pointer",children:[e.jsx(S,{className:"w-4 h-4"})," คัดลอกสรุปเป็นข้อความเวร"]}),e.jsxs("button",{onClick:p,className:"flex items-center gap-1.5 bg-blue-600 hover:bg-blue-700 text-white font-bold text-xs px-4 py-2 rounded-xl transition-all shadow-md shadow-blue-200 cursor-pointer",children:[e.jsx(w,{className:"w-4 h-4"})," พิมพ์หรือเซฟรายงาน PDF"]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-6 md:p-10 shadow-lg border border-slate-100 max-w-4xl mx-auto space-y-8 print:border-none print:shadow-none print:p-0",id:"print-area",children:[e.jsxs("div",{className:"border-b-4 border-blue-900 pb-5 flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-3 bg-blue-900 rounded-2xl text-white flex items-center justify-center",children:e.jsx(k,{className:"w-8 h-8"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl md:text-2xl font-black text-slate-900 tracking-tight",children:"รายงานสรุปผลการปฏิบัติการประจำเวร"}),e.jsx("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-widest mt-0.5",children:"ศูนย์รับแจ้งเหตุและสั่งการนเรนทรอ่าวไทย (เบอร์โทรฉุกเฉิน 1669)"})]})]}),e.jsxs("div",{className:"text-right sm:text-right self-stretch sm:self-auto bg-slate-50 border border-slate-100 p-3 rounded-xl font-mono text-xs",children:[e.jsxs("div",{className:"font-bold text-slate-800",children:["เวรปฏิบัติงาน: ",e.jsx("span",{className:"text-blue-700 font-sans font-black",children:s.shift})]}),e.jsxs("div",{className:"mt-1",children:["วันที่รายงาน: ",s.date]}),e.jsxs("div",{className:"text-[10px] text-slate-400 font-sans mt-1",children:["Generated: ",s.generatedAt]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("h3",{className:"text-sm font-black text-blue-900 uppercase tracking-widest border-b border-slate-100 pb-1 flex items-center gap-2",children:[e.jsx($,{className:"w-4 h-4"})," 1. สรุปข้อมูลสายเรียกเข้าประจำเวร"]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100 text-center",children:[e.jsx("div",{className:"text-xs text-slate-400 font-bold",children:"สายเรียกเข้าทั้งหมด"}),e.jsxs("div",{className:"text-xl font-black text-slate-800 mt-1",children:[s.callsSummary.total," สาย"]})]}),e.jsxs("div",{className:"bg-blue-50/50 p-3 rounded-xl border border-blue-100 text-center",children:[e.jsx("div",{className:"text-xs text-blue-800 font-bold",children:"สายปฏิบัติการ"}),e.jsxs("div",{className:"text-xl font-black text-blue-900 mt-1",children:[s.callsSummary.emsOrRefer," สาย"]})]}),e.jsxs("div",{className:"bg-amber-50/40 p-3 rounded-xl border border-amber-100/70 text-center",children:[e.jsx("div",{className:"text-xs text-amber-700 font-bold",children:"สายก่อกวน"}),e.jsxs("div",{className:"text-xl font-black text-amber-800 mt-1",children:[s.callsSummary.spam," สาย"]})]}),e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100 text-center",children:[e.jsx("div",{className:"text-xs text-slate-400 font-bold",children:"สายโทรผิด/สายอื่น ๆ"}),e.jsxs("div",{className:"text-xl font-black text-slate-800 mt-1",children:[s.callsSummary.wrongNumber+s.callsSummary.others," สาย"]})]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("h3",{className:"text-sm font-black text-blue-900 uppercase tracking-widest border-b border-slate-100 pb-1 flex items-center gap-2",children:[e.jsx(b,{className:"w-4 h-4"})," 2. สรุปเคสปฏิบัติการและการออกปฏิบัติการประจำเวร"]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-4",children:[e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100 text-center",children:[e.jsx("div",{className:"text-[10px] text-slate-400 font-bold",children:"เคสรวม"}),e.jsxs("div",{className:"text-lg font-bold text-slate-800 mt-1",children:[s.casesSummary.total," เคส"]})]}),e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100 text-center",children:[e.jsx("div",{className:"text-[10px] text-slate-400 font-bold",children:"เคส EMS"}),e.jsxs("div",{className:"text-lg font-bold text-slate-800 mt-1",children:[s.casesSummary.ems," เคส"]})]}),e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100 text-center",children:[e.jsx("div",{className:"text-[10px] text-slate-400 font-bold",children:"เคส REFER"}),e.jsxs("div",{className:"text-lg font-bold text-slate-800 mt-1",children:[s.casesSummary.refer," เคส"]})]}),e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100 text-center",children:[e.jsx("div",{className:"text-[10px] text-slate-400 font-bold",children:"ระดับ ALS (แพทย์กู้ชีพ)"}),e.jsxs("div",{className:"text-lg font-bold text-slate-800 mt-1",children:[s.casesSummary.als," หน่วย"]})]}),e.jsxs("div",{className:"bg-slate-50 p-3 rounded-xl border border-slate-100 text-center col-span-2 md:col-span-1",children:[e.jsx("div",{className:"text-[10px] text-slate-400 font-bold font-sans",children:"ระดับ BLS/CLS (กู้ชีพมูลนิธิ)"}),e.jsxs("div",{className:"text-lg font-bold text-slate-800 mt-1",children:[s.casesSummary.bls+s.casesSummary.cls," หน่วย"]})]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("h3",{className:"text-sm font-black text-blue-900 uppercase tracking-widest border-b border-slate-100 pb-1 flex items-center gap-2",children:[e.jsx(b,{className:"w-4 h-4"})," 3. สรุปความเร่งด่วนและจำแนกคัดกรองอาการ (Triage Summary)"]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-left text-xs border border-slate-100 rounded-xl overflow-hidden",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-slate-50 text-slate-600 font-bold border-b border-slate-100",children:[e.jsx("th",{className:"p-2.5",children:"ระดับความรุนแรง / สัญญาณชีพ"}),e.jsx("th",{className:"p-2.5 text-center",children:"ประเมินทางสายโทรศัพท์ (Phone Triage)"}),e.jsx("th",{className:"p-2.5 text-center",children:"ประเมิน ณ จุดเกิดเหตุ (Scene Triage)"}),e.jsx("th",{className:"p-2.5 text-center",children:"ประเมิน ณ ห้องฉุกเฉิน (ER Triage)"})]})}),e.jsxs("tbody",{className:"divide-y divide-slate-100 text-slate-700 font-semibold text-center",children:[e.jsxs("tr",{children:[e.jsx("td",{className:"p-2.5 text-left text-red-600 font-extrabold flex items-center gap-1.5",children:"🔴 สีแดง (วิกฤต/ฉุกเฉินคุกคามชีพ)"}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.phone.red}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.scene.red}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.er.red})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"p-2.5 text-left text-amber-600 font-extrabold flex items-center gap-1.5",children:"🟡 สีเหลือง (เร่งด่วน/กึ่งวิกฤต)"}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.phone.yellow}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.scene.yellow}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.er.yellow})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"p-2.5 text-left text-emerald-600 font-extrabold flex items-center gap-1.5",children:"🟢 สีเขียว (ไม่รุนแรง/ทั่วไป)"}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.phone.green}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.scene.green}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.er.green})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"p-2.5 text-left text-slate-500 font-extrabold flex items-center gap-1.5",children:"⚪ สีขาว (ผู้ป่วยนัด/ประสานงานย้อนหลัง)"}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.phone.white}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.scene.white}),e.jsx("td",{className:"p-2.5",children:s.triageSummary.er.white})]})]})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-xs font-black text-blue-900 uppercase tracking-widest border-b border-slate-100 pb-1",children:"เคสเร่งด่วนรหัสเฉพาะ (Fast Track)"}),e.jsxs("div",{className:"space-y-2 text-xs font-semibold text-slate-600",children:[e.jsxs("div",{className:"flex justify-between py-1.5 border-b border-slate-50",children:[e.jsx("span",{children:"🧠 STROKE (หลอดเลือดสมองเฉลี่ย):"}),e.jsxs("span",{className:"font-bold text-slate-800",children:[s.fastTrackSummary.stroke," ราย"]})]}),e.jsxs("div",{className:"flex justify-between py-1.5 border-b border-slate-50",children:[e.jsx("span",{children:"❤️ STEMI (โรคหัวใจเฉียบพลัน):"}),e.jsxs("span",{className:"font-bold text-slate-800",children:[s.fastTrackSummary.stemi," ราย"]})]}),e.jsxs("div",{className:"flex justify-between py-1.5 border-b border-slate-50",children:[e.jsx("span",{children:"🦠 Sepsis (ติดเชื้อในกระแสโลหิต):"}),e.jsxs("span",{className:"font-bold text-slate-800",children:[s.fastTrackSummary.sepsis," ราย"]})]}),e.jsxs("div",{className:"flex justify-between py-1.5 border-b border-slate-50",children:[e.jsx("span",{children:"🚗 Multiple Trauma (อุบัติเหตุพหุบาดเจ็บรุนแรง):"}),e.jsxs("span",{className:"font-bold text-slate-800",children:[s.fastTrackSummary.trauma," ราย"]})]})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h4",{className:"text-xs font-black text-blue-900 uppercase tracking-widest border-b border-slate-100 pb-1",children:"ผลการทดสอบวิทยุ ว.16 และสถานี"}),s.radioSummary?e.jsxs("div",{className:"space-y-2 text-xs font-semibold text-slate-600 bg-slate-50 p-3 rounded-xl border border-slate-100",children:[e.jsxs("div",{className:"flex justify-between py-1 border-b border-slate-100",children:[e.jsx("span",{children:"ผู้ทดสอบ ว.16:"}),e.jsx("span",{className:"font-bold text-slate-800",children:s.radioSummary.testerName})]}),e.jsxs("div",{className:"flex justify-between py-1 border-b border-slate-100",children:[e.jsx("span",{children:"สถานีเข้าร่วมตรวจสำเร็จ:"}),e.jsxs("span",{className:"font-bold text-emerald-600",children:[s.radioSummary.testedCount," สถานี"]})]}),e.jsxs("div",{className:"flex justify-between py-1 border-b border-slate-100",children:[e.jsx("span",{children:"สถานีที่ไม่เข้าร่วม/ติดต่อไม่ได้:"}),e.jsxs("span",{className:"font-bold text-rose-600",children:[s.radioSummary.unreachable.length," สถานี"]})]}),s.radioSummary.unreachable.length>0&&e.jsxs("div",{className:"text-[10px] text-rose-500 leading-normal font-bold",children:["รายชื่อสถานีที่ขาดการติดต่อ: ",s.radioSummary.unreachable.join(", ")]})]}):e.jsx("div",{className:"text-slate-400 text-xs py-5 text-center bg-slate-50 rounded-xl border border-dashed font-semibold",children:"ไม่มีรายงานการทดสอบวิทยุ ว.16 บันทึกในเวรนี้"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-sm font-black text-blue-900 uppercase tracking-widest border-b border-slate-100 pb-1",children:"4. สรุปเหตุการณ์สำคัญและความเสี่ยงที่ตรวจพบ"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-xs font-semibold",children:[e.jsxs("div",{className:"bg-slate-50 p-4 rounded-xl border border-slate-100 space-y-1.5",children:[e.jsx("span",{className:"font-bold text-slate-800 block",children:"สรุปเหตุการณ์และข้อขัดข้องสำคัญในรอบเวร:"}),e.jsx("p",{className:"text-slate-500 leading-relaxed font-medium",children:s.eventsSummary||"ไม่มีรายงานเหตุการณ์สำคัญเป็นพิเศษ"})]}),e.jsxs("div",{className:"bg-slate-50 p-4 rounded-xl border border-slate-100 space-y-1.5",children:[e.jsx("span",{className:"font-bold text-slate-800 block",children:"ความเสี่ยงหรือความขัดแย้งที่ต้องปรับปรุงระบบ:"}),e.jsx("p",{className:"text-slate-500 leading-relaxed font-medium",children:s.risks||"ไม่พบปัญหาความเสี่ยงพิเศษจากการรับแจ้งเหตุหรือการประสานขบวนรถ"})]})]})]}),e.jsxs("div",{className:"border-t border-slate-100 pt-6 flex flex-col sm:flex-row justify-between items-start sm:items-center gap-6",children:[e.jsxs("div",{className:"text-xs space-y-1",children:[e.jsxs("div",{className:"font-bold text-slate-800",children:["ผู้ส่งมอบเวร: ",e.jsx("span",{className:"text-slate-500 underline font-semibold",children:s.handover.senderName})]}),e.jsx("div",{className:"text-[10px] text-slate-400",children:"ลงชื่อเข้ารหัสดิจิตอลเรียบร้อยแล้ว"})]}),e.jsxs("div",{className:"text-xs space-y-1 sm:text-right",children:[e.jsxs("div",{className:"font-bold text-slate-800",children:["ผู้รับมอบเวร: ",e.jsx("span",{className:"text-blue-700 underline font-black",children:s.handover.isConfirmed?s.handover.receiverName:"⏳ รอลงชื่อรับเวรดิจิตอล"})]}),e.jsx("div",{className:"text-[10px] text-slate-400",children:s.handover.isConfirmed?`ลงชื่อรับเวรเมื่อ: ${s.generatedAt}`:"กรุณาเซ็นชื่อเข้าระบบด้วย PIN ก่อนพิมพ์รายงาน"})]})]})]})]})}export{I as default};
|