1import{d4 as M,ax as _,aJ as q,r as c,e2 as B,j as e,J,L as U,K as T,cS as $,cT as K,cU as A,cV as D,ea as z,e3 as Y,as as V,cf as h,cg as p,ch as g,ci as f,cj as i,bC as Q,N as X,a0 as Z,V as ee,S as ae,aI as S}from"./index-CpeGhXo5.js";import{a as te}from"./Panel-Cf_wAUzv.js";const n="w-full h-9 px-3 rounded-lg border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 text-xs text-slate-800 dark:text-slate-100 placeholder:text-slate-400 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 transition-colors";function l({label:u,required:j,error:b,hint:d,children:N}){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("label",{className:"text-[11px] font-semibold text-slate-700 dark:text-slate-300",children:[u," ",j&&e.jsx("span",{className:"text-red-500",children:"*"})]}),d&&e.jsx("span",{className:"text-[10px] text-slate-400 dark:text-slate-500",children:d})]}),N,b&&e.jsx("p",{className:"text-[11px] text-red-500 font-medium",children:b})]})}const se=["Home Electronics & ACs","Home Furniture & Almirahs","Personal Tech & Gadgets","Vehicles & Motorcycles","Jewelry & Precious Belongings","Audio & Home Theatre"],re=["Like New","Good","Fair","Refurbished"],le=["Residence / Home","Executive Suite","Personal Storage","Home Office / Studio"];function ie(){const u=M(),j=_(),[b]=q(),d=b.get("editId"),[N,R]=c.useState(!1),[P,C]=c.useState(!1),[v,k]=c.useState("particulars"),[I,L]=c.useState(se),[t,r]=c.useState({name:"",category:"Personal Tech & Gadgets",owner:"Personal / Household",serialNumber:"",purchaseDate:B(!0),purchasePrice:"",currentValue:"",condition:"Like New",location:"Residence / Home",notes:"",approver:"cfo"}),[m,w]=c.useState({}),y=()=>{const a={};return t.name.trim()||(a.name="Item name is required"),(!t.purchasePrice||parseFloat(t.purchasePrice)<=0)&&(a.purchasePrice="Enter a valid purchase price (> 0)"),w(a),Object.keys(a).length>0?(S.error("Please fill all required particulars before proceeding"),!1):!0},E=()=>{y()&&k("review")},F=a=>{a==="review"&&v==="particulars"&&!y()||k(a)},o=parseFloat(t.purchasePrice)||0,x=parseFloat(t.currentValue)||o,O=o>0?x/o*100:100,G=async a=>{if(a.preventDefault(),!!y()){C(!0);try{const s=localStorage.getItem("finance_personal_gadgets_items"),H=s?JSON.parse(s):[],W={id:d||`gad-${Date.now()}`,name:t.name,category:t.category,owner:t.owner,serialNumber:t.serialNumber,purchaseDate:t.purchaseDate,purchasePrice:o,currentValue:x,condition:t.condition,location:t.location,notes:t.notes};localStorage.setItem("finance_personal_gadgets_items",JSON.stringify([W,...H])),S.success(d?`Item ${t.name} updated!`:`Item ${t.name} added to Personal Belongings!`),R(!0),setTimeout(()=>{j(`${u}/personal-gadgets`)},1500)}catch{S.error("Failed to save personal gadget")}finally{C(!1)}}};return N?e.jsx("div",{className:"h-full flex items-center justify-center p-6 bg-slate-50 dark:bg-slate-950",children:e.jsxs("div",{className:"max-w-md w-full bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-2xl p-10 text-center shadow-2xl animate-in fade-in zoom-in duration-500",children:[e.jsx("div",{className:"w-20 h-20 bg-emerald-50 dark:bg-emerald-950/40 rounded-full flex items-center justify-center mx-auto mb-6 text-emerald-600",children:e.jsx(J,{className:"w-10 h-10"})}),e.jsx("h2",{className:"text-2xl font-bold text-slate-900 dark:text-slate-100 mb-2",children:d?"Gadget Updated!":"Gadget Successfully Recorded!"}),e.jsxs("p",{className:"text-xs text-slate-500 mb-8 leading-relaxed",children:[e.jsx("span",{className:"font-semibold text-slate-800 dark:text-slate-200",children:t.name})," has been logged into household and personal net worth assets."]}),e.jsx("div",{className:"h-1.5 w-full bg-slate-100 dark:bg-slate-800 rounded-full overflow-hidden mb-4",children:e.jsx("div",{className:"h-full bg-emerald-500 animate-pulse w-full"})}),e.jsx("p",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-semibold",children:"Redirecting to Personal Belongings Register..."})]})}):e.jsxs("div",{className:"flex flex-col flex-1 h-full min-h-0 bg-white dark:bg-slate-900 overflow-y-auto custom-scrollbar",children:[e.jsx("div",{className:"px-6 py-3.5 border-b border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 shrink-0",children:e.jsx(te,{title:d?"Edit Personal Gadget":"New Gadget & Household Asset Entry",subtitle:"Track electronics, premium furniture, personal tech, and residual asset values",actions:e.jsxs(U,{to:`${u}/personal-gadgets`,className:"h-8 px-3 rounded-md border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 hover:bg-slate-50 dark:hover:bg-slate-800 text-xs font-semibold text-slate-700 dark:text-slate-200 inline-flex items-center gap-1.5 transition-colors shadow-2xs",children:[e.jsx(T,{className:"w-3.5 h-3.5"})," Back to Personal Gadgets"]})})}),e.jsx("form",{onSubmit:G,className:"flex-1 flex flex-col",children:e.jsxs($,{value:v,onValueChange:F,className:"w-full flex-1 flex flex-col",children:[e.jsxs("div",{className:"px-6 border-b border-slate-200 dark:border-slate-800 bg-slate-50/70 dark:bg-slate-900/70 flex items-center justify-between",children:[e.jsxs(K,{className:"h-auto p-0 bg-transparent gap-6",children:[e.jsx(A,{value:"particulars",className:"rounded-none border-b-2 border-transparent data-[state=active]:border-blue-600 dar
1k:data-[state=active]:border-blue-400 data-[state=active]:bg-transparent data-[state=active]:text-blue-600 dark:data-[state=active]:text-blue-400 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 text-xs font-semibold px-0 py-3 shadow-none transition-all",children:"1. Device Particulars & Valuation"}),e.jsx(A,{value:"review",className:"rounded-none border-b-2 border-transparent data-[state=active]:border-blue-600 dark:data-[state=active]:border-blue-400 data-[state=active]:bg-transparent data-[state=active]:text-blue-600 dark:data-[state=active]:text-blue-400 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 text-xs font-semibold px-0 py-3 shadow-none transition-all",children:"2. Serial, Warranty & Review"})]}),e.jsx("div",{className:"flex items-center gap-3",children:e.jsx("span",{className:"text-[11px] font-medium text-slate-400",children:v==="particulars"?"Tab 1: Device & Value":"Tab 2: Warranty & Review"})})]}),e.jsxs("div",{className:"w-full flex-1 grid grid-cols-1 lg:grid-cols-12 gap-0 bg-white dark:bg-slate-900",children:[e.jsxs("div",{className:"lg:col-span-9 p-6 border-b lg:border-b-0 lg:border-r border-slate-200 dark:border-slate-800 space-y-6 flex flex-col justify-between",children:[e.jsxs(D,{value:"particulars",className:"space-y-6 mt-0",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-1.5 border-b border-slate-100 dark:border-slate-800/80",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-600 dark:bg-blue-400 shrink-0"}),e.jsx("h3",{className:"text-xs font-bold text-slate-800 dark:text-slate-200 uppercase tracking-wider",children:"Item Identification & Category"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3.5 pt-1",children:[e.jsx(l,{label:"Item Name & Specification",required:!0,error:m.name,hint:"Make & Model",children:e.jsx("input",{type:"text",value:t.name,onChange:a=>{r({...t,name:a.target.value}),m.name&&w(s=>({...s,name:""}))},placeholder:'e.g. Sony 65" 4K OLED Smart TV & Dolby Sound Bar',className:n})}),e.jsx(l,{label:"Belonging Category",required:!0,hint:"Searchable & editable",children:e.jsx(z,{defaultOptions:I,options:I,value:t.category,storageKey:"finance_personal_gadget_categories",onChange:a=>r(s=>({...s,category:a})),onAdd:a=>{L(s=>[...s,a]),r(s=>({...s,category:a}))},placeholder:"Select or add category..."})})]})]}),e.jsxs("div",{className:"space-y-3 pt-2",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-1.5 border-b border-slate-100 dark:border-slate-800/80",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-600 dark:bg-emerald-400 shrink-0"}),e.jsx("h3",{className:"text-xs font-bold text-slate-800 dark:text-slate-200 uppercase tracking-wider",children:"Acquisition Timestamps & Financial Valuation"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3.5 pt-1",children:[e.jsx(l,{label:"Purchase Date & Time",required:!0,hint:"PMS-style selector",children:e.jsx(Y,{value:t.purchaseDate,onChange:a=>r(s=>({...s,purchaseDate:a})),showTime:!0,className:"h-9 text-xs"})}),e.jsx(l,{label:"Purchase Price (â¹ INR)",required:!0,error:m.purchasePrice,children:e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 text-xs font-bold",children:"â¹"}),e.jsx("input",{type:"number",value:t.purchasePrice,onChange:a=>{r({...t,purchasePrice:a.target.value}),m.purchasePrice&&w(s=>({...s,purchasePrice:""}))},placeholder:"0.00",className:V(n,"pl-7 font-mono font-medium")})]})}),e.jsx(l,{label:"Current Estimated Value (â¹ INR)",hint:"Present resale value",children:e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 text-xs font-bold",children:"â¹"}),e.jsx("input",{type:"number",value:t.currentValue,onChange:a=>r({...t,currentValue:a.target.value}),placeholder:t.purchasePrice||"0.00",className:V(n,"pl-7 font-mono font-medium")})]})})]})]}),e.jsxs("div",{className:"space-y-3 pt-2",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-1.5 border-b border-slate-100 dar
1k:border-slate-800/80",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-purple-600 dark:bg-purple-400 shrink-0"}),e.jsx("h3",{className:"text-xs font-bold text-slate-800 dark:text-slate-200 uppercase tracking-wider",children:"Condition Grade & Placement Location"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3.5 pt-1",children:[e.jsx(l,{label:"Physical Condition",children:e.jsxs(h,{value:t.condition,onValueChange:a=>r(s=>({...s,condition:a})),children:[e.jsx(p,{className:n,children:e.jsx(g,{placeholder:"Select Condition"})}),e.jsx(f,{children:re.map(a=>e.jsx(i,{value:a,children:a},a))})]})}),e.jsx(l,{label:"Location / Placement",children:e.jsxs(h,{value:t.location,onValueChange:a=>r(s=>({...s,location:a})),children:[e.jsx(p,{className:n,children:e.jsx(g,{placeholder:"Select Location"})}),e.jsx(f,{children:le.map(a=>e.jsx(i,{value:a,children:a},a))})]})}),e.jsx(l,{label:"Owner / Beneficiary",children:e.jsx("input",{type:"text",value:t.owner,onChange:a=>r({...t,owner:a.target.value}),placeholder:"Personal / Household",className:n})})]}),e.jsxs("div",{className:"p-2.5 rounded-lg border border-blue-100 bg-blue-50/50 dark:bg-blue-950/20 dark:border-blue-900/40 flex items-center gap-2",children:[e.jsx(Q,{className:"w-4 h-4 text-blue-600 dark:text-blue-400 shrink-0"}),e.jsxs("div",{className:"text-[11px] text-slate-600 dark:text-slate-300 leading-tight",children:[e.jsx("span",{className:"font-semibold text-slate-800 dark:text-slate-100",children:"Personal Asset Ledger: "}),"Monitors household goods, electronics, and vehicles to maintain an accurate executive net worth ledger."]})]})]}),e.jsx("div",{className:"flex justify-end pt-3",children:e.jsxs("button",{type:"button",onClick:E,className:"h-9 px-5 rounded-lg bg-blue-600 hover:bg-blue-700 text-white text-xs font-semibold inline-flex items-center gap-1.5 shadow-2xs transition-colors",children:["Next: Serial, Warranty & Review ",e.jsx(X,{className:"w-3.5 h-3.5"})]})})]}),e.jsxs(D,{value:"review",className:"space-y-6 mt-0",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-1.5 border-b border-slate-100 dark:border-slate-800/80",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-600 dark:bg-blue-400 shrink-0"}),e.jsx("h3",{className:"text-xs font-bold text-slate-800 dark:text-slate-200 uppercase tracking-wider",children:"Hardware Serial & Warranty Protection"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3.5 pt-1",children:[e.jsx(l,{label:"Serial Number / IMEI",hint:"Manufacturer ID",children:e.jsx("input",{type:"text",value:t.serialNumber,onChange:a=>r({...t,serialNumber:a.target.value}),placeholder:"e.g. SN-SNY-92019A",className:n})}),e.jsx(l,{label:"Warranty / Insurance Status",children:e.jsxs(h,{defaultValue:"active",children:[e.jsx(p,{className:n,children:e.jsx(g,{placeholder:"Select Status"})}),e.jsxs(f,{children:[e.jsx(i,{value:"active",children:"Active Manufacturer Warranty"}),e.jsx(i,{value:"extended",children:"Extended AppleCare / Protection Plan"}),e.jsx(i,{value:"expired",children:"Standard Warranty Expired"})]})]})})]}),e.jsx("div",{className:"pt-2",children:e.jsx(l,{label:"Purchase Details & Usage Remarks",children:e.jsx("textarea",{value:t.notes,onChange:a=>r({...t,notes:a.target.value}),placeholder:"Retailer invoice details, extended coverage notes, or setup accessories...",rows:3,className:"w-full p-3 rounded-lg border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 text-xs text-slate-800 dark:text-slate-100 placeholder:text-slate-400 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 transition-colors resize-none"})})})]}),e.jsxs("div",{className:"space-y-4 pt-2",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-1.5 border-b border-slate-100 dark:border-slate-800/80",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-purple-600 dark:bg-purple-400 shrink-0"}),e.jsx("h3",{className:"text-xs font-bold text-slate-800 dark:text-slate-200 uppercase tracking-wider",children:"Asset Audit Trail & Executive Approvals"})]}),e.jsx("div",{className:"p-4 bg-slate-50/50 dark:bg-slate-900/50 rounded-xl border border-slate-200 dark:border-slate-800 space-y-4",children:e.jsxs("div",{className:"relative pl-6 space-y-4 before:absolute before:left-2 before:top-2 before:bottom-2 before:w-0.5 before:bg-slate-200 dark:before:bg-slate-800",children:[e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute -left-6 top-0 w-4 h-4 rounded-full bg-emerald-500 text-white flex items-center justify-center text-[10px] font-bold",children:"â"}),e.jsx("div",{className:"text-xs font-bold text-slate-900 dark:text-slate-100",children:"Item Logged"}),e.jsx("div",{className:"text-[11px] text-slate-500",children:"Recorded for Personal / Household Net Worth ⢠Today"}),e.jsxs("p",{className:"text-[11px] text-slate-400 mt-0.5 italic",children:[t.name||"Draft Gadget"," registered."]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute -left-6 top-0 w-4 h-4 rounded-full bg-blue-500 text-white flex items-center justify-center text-[10px] font-bold",children:"i"}),e.jsx("div",{className:"text-xs font-bold text-slate-900 dark:text-slate-100",children:"Valuation & Condition Confirmed"}),e.jsxs("div",{className:"text-[11px] text-slate-500",children:["Value: â¹",x.toLocaleStr
1ing("en-IN")," | Grade: ",t.condition]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"absolute -left-6 top-0 w-4 h-4 rounded-full bg-amber-500 text-white flex items-center justify-center text-[10px] font-bold",children:"!"}),e.jsx("div",{className:"text-xs font-bold text-slate-900 dark:text-slate-100",children:"Net Worth Synchronization"}),e.jsx("div",{className:"text-[11px] text-slate-500",children:"Reflected in overall personal wealth dashboard."})]})]})}),e.jsx("div",{className:"p-4 bg-slate-50/50 dark:bg-slate-900/50 rounded-xl border border-slate-200 dark:border-slate-800 space-y-3",children:e.jsx(l,{label:"Assign Personal Wealth Approver *",required:!0,children:e.jsxs(h,{value:t.approver,onValueChange:a=>r(s=>({...s,approver:a})),children:[e.jsx(p,{className:n,children:e.jsx(g,{placeholder:"Select Approver"})}),e.jsxs(f,{children:[e.jsx(i,{value:"cfo",children:"Pawandeep Kaur (CFO / Managing Director)"}),e.jsx(i,{value:"sarbjit",children:"Sarbjit Singh (PMO Lead)"}),e.jsx(i,{value:"controller",children:"Family Wealth Auditor"})]})]})})})]}),e.jsxs("div",{className:"flex justify-between pt-3",children:[e.jsxs("button",{type:"button",onClick:()=>k("particulars"),className:"h-9 px-3.5 rounded-lg border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 hover:bg-slate-50 dark:hover:bg-slate-800 text-xs font-medium text-slate-700 dark:text-slate-200 inline-flex items-center gap-1.5 transition-colors",children:[e.jsx(T,{className:"w-3.5 h-3.5"})," Back: Device Particulars"]}),e.jsxs("button",{type:"submit",disabled:P,className:"h-9 px-5 rounded-lg bg-emerald-600 hover:bg-emerald-700 text-white text-xs font-semibold inline-flex items-center gap-1.5 shadow-2xs transition-colors disabled:opacity-50",children:[e.jsx(Z,{className:"w-3.5 h-3.5"})," ",P?"Saving...":d?"Update Item":"Record Gadget Asset"]})]})]})]}),e.jsxs("div",{className:"lg:col-span-3 bg-slate-50/60 dark:bg-slate-900/60 p-6 space-y-5 flex flex-col justify-between h-full",children:[e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-200 dark:border-slate-800 pb-3.5",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"p-2 rounded-xl bg-blue-50 dark:bg-blue-950/60 text-blue-600 dark:text-blue-400 border border-blue-100 dark:border-blue-900/40",children:e.jsx(ee,{className:"w-4 h-4"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xs font-bold text-slate-800 dark:text-slate-100 uppercase tracking-wider",children:"Asset Residual Value"}),e.jsx("p",{className:"text-[10px] text-slate-400",children:"Personal Wealth Metrics"})]})]}),e.jsx("span",{className:"px-2 py-0.5 rounded text-[10px] font-bold bg-blue-100 dark:bg-blue-950/80 text-blue-700 dark:text-blue-300 border border-blue-200 dark:border-blue-800/60",children:"INR"})]}),e.jsxs("div",{className:"space-y-2.5",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Original Cost"}),e.jsxs("span",{className:"font-semibold text-slate-800 dark:text-slate-200 font-mono",children:["â¹",o.toLocaleString("en-IN",{minimumFractionDigits:2})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Current Value"}),e.jsxs("span",{className:"font-semibold text-slate-800 dark:text-slate-200 font-mono",children:["â¹",x.toLocaleString("en-IN",{minimumFractionDigits:2})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Value Retention"}),e.jsxs("span",{className:"font-bold text-emerald-600 dark:text-emerald-400 font-mono",children:[O.toFixed(1),"%"]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Condition Grade"}),e.jsx("span",{className:"font-bold text-blue-600 dark:text-blue-400",children:t.condition})]}),e.jsxs("div",{className:"mt-4 p-3.5 rounded-xl bg-blue-50/70 dark:bg-blue-950/40 border border-blue-200 dark:border-blue-900/50 flex flex-col gap-1",children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-blue-700 dark:text-blue-300",children:"Current Residual Equity"}),e.jsxs("span",{className:"text-xl font-black text-blue-900 dark:text-blue-100 font-mono",children:["â¹",x.toLocaleStr
1ing("en-IN",{minimumFractionDigits:2})]})]})]}),e.jsxs("div",{className:"space-y-2 pt-2 border-t border-slate-200 dark:border-slate-800 text-[11px]",children:[e.jsxs("div",{className:"flex items-center justify-between text-slate-500",children:[e.jsx("span",{children:"Category"}),e.jsx("span",{className:"font-semibold text-slate-700 dark:text-slate-300 truncate max-w-[140px]",children:t.category})]}),e.jsxs("div",{className:"flex items-center justify-between text-slate-500",children:[e.jsx("span",{children:"Placement"}),e.jsx("span",{className:"font-semibold text-slate-700 dark:text-slate-300 truncate max-w-[140px]",children:t.location})]}),e.jsxs("div",{className:"flex items-center justify-between text-slate-500",children:[e.jsx("span",{children:"Owner"}),e.jsx("span",{className:"font-semibold text-slate-700 dark:text-slate-300 truncate max-w-[140px]",children:t.owner})]})]})]}),e.jsxs("div",{className:"pt-4 border-t border-slate-200 dark:border-slate-800 flex items-center gap-2 text-[10px] text-slate-400",children:[e.jsx(ae,{className:"w-3.5 h-3.5 text-blue-500 shrink-0"}),e.jsx("span",{children:"Aggregated into personal net worth and tangible asset ledger."})]})]})]})]})})]})}export{ie as NewPersonalGadgetPage};
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.