1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6349],{6781:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},15818:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},16076:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},25527:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},28249:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},28419:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},36867:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},46293:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},47798:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},50057:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},50276:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},58011:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]])},58725:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},63812:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/support",function(){return a(73524)}])},63906:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},66143:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]])},66782:(e,t,a)=>{"use strict";a.d(t,{K:()=>r,o:()=>i});var s=a(37876),l=a(88509);function r(e){let{listTitle:t,list:a,detail:r,detailTitle:i,empty
1Detail:n,onClearDetail:c,backLabel:d,detailActions:o}=e,u=!!r,{t:p}=(0,l.o)();return(0,s.jsxs)("div",{className:"panel-split grid gap-4 lg:grid-cols-[minmax(0,4fr),minmax(0,7fr)]","data-testid":"panel-split",children:[(0,s.jsxs)("section",{className:"panel-split-list min-h-0 flex-col ".concat(u?"hidden lg:flex":"flex"),children:[(0,s.jsx)("h2",{className:"panel-list-heading",children:t}),(0,s.jsx)("div",{className:"panel-split-body",children:a})]}),(0,s.jsxs)("section",{className:"panel-split-detail min-h-0 flex-col ".concat(u?"flex":"hidden lg:flex"),children:[i&&(0,s.jsxs)("div",{className:"panel-detail-heading flex items-center gap-3",children:[c&&(0,s.jsxs)("button",{type:"button",onClick:c,className:"text-sky-700 hover:underline lg:hidden",children:["â¹ ",d]}),(0,s.jsx)("h2",{className:"min-w-0 flex-1 break-words",children:i}),c&&(0,s.jsx)("button",{type:"button",className:"hidden shrink-0 px-2 py-1 text-slate-500 lg:block",onClick:c,"aria-label":p("adminClose"),children:"\xd7"})]}),(0,s.jsx)("div",{className:"panel-split-body panel-detail-body",children:null!=r?r:(0,s.jsx)("p",{className:"panel-empty-detail",children:n})}),u&&o&&(0,s.jsx)("footer",{className:"panel-detail-actions",children:o})]})]})}function i(e){let{index:t,title:a,lines:l,actions:r,onOpen:i,active:n}=e;return(0,s.jsxs)("div",{role:i?"button":void 0,tabIndex:i?0:void 0,"aria-pressed":i?!!n:void 0,onClick:e=>{var t;if(!i)return;let a=e.target;null!=a&&null!=(t=a.closest)&&t.call(a,"a,button,input,select,textarea,[role='menu']")||i()},onKeyDown:e=>{i&&e.target===e.currentTarget&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),i())},className:"panel-record-row border px-3 py-2.5 text-[13px] leading-[1.55] transition-colors ".concat(i?"cursor-pointer":""," ").concat(n?"is-selected border-sky-300 bg-sky-50/70":"border-slate-200 bg-white hover:border-slate-300 hover:bg-slate-50"," focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-emerald-600"),children:[(0,s.jsxs)("p",{className:"flex min-w-0 items-baseline gap-1 font-bold text-slate-900",children:[null!=t&&(0,s.jsxs)("span",{className:"shrink-0 text-slate-500",children:[t,"."]}),i?(0,s.jsx)("button",{onClick:i,className:"min-w-0 flex-1 truncate text-left hover:underline",children:a}):(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate",children:a})]}),l.map((e,t)=>null==e||""===e?null:(0,s.jsx)("div",{className:"min-w-0 break-words text-slate-700",children:e},t)),r&&(0,s.jsx)("div",{className:"mt-1 flex flex-wrap gap-x-3 text-[13px]",children:r})]})}},69659:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},70200:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("store",[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]])},73291:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},73305:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])},73524:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>y});var s=a(37876),l=a(94128),r=a(14232),i=a(66782),n=a(88509),c=a(62097),d=a(95680),o=a(69876);let u=["open","investigating","resolved","dismissed"],p=["all","review_appeal","billing_dispute"],h=e=>{if(!e)return"-";let t=new Date(e);
1return Number.isNaN(t.getTime())?e:t.toLocaleString()},m=e=>e.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),x=e=>{if(null==e)return"-";if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return String(e);try{return JSON.stringify(e)}catch(t){return String(e)}};function b(){let{adminToken:e}=(0,c.A)(),{t,lang:a}=(0,n.o)(),l=(e,t)=>"vi"===a?t:e,b=(0,r.useRef)({}),y=(0,r.useRef)(!1),f=(0,r.useRef)(0),{guard:g}=(0,o.i9)("admin","/admin/support"),[v,k]=(0,r.useState)([]),[j,N]=(0,r.useState)(null),[w,A]=(0,r.useState)({total:0,limit:20,offset:0}),[_,S]=(0,r.useState)(0),[C,M]=(0,r.useState)(20),[z,E]=(0,r.useState)("open"),[L,T]=(0,r.useState)("all"),[q,O]=(0,r.useState)(""),[D,P]=(0,r.useState)(""),[R,B]=(0,r.useState)(!1),[V,H]=(0,r.useState)(null),[K,F]=(0,r.useState)(null),[J,U]=(0,r.useState)(!1),[Y,I]=(0,r.useState)("open"),[X,$]=(0,r.useState)(""),G=(0,r.useMemo)(()=>v.find(e=>e.id===j)||null,[v,j]),Q=(0,r.useMemo)(()=>(null==G?void 0:G.details)&&"object"==typeof G.details?Object.entries(G.details).filter(e=>
1{let[t,a]=e;return"admin_note"!==t&&null!=a&&""!==x(a).trim()}).map(e=>{let[t,a]=e;return{key:t,label:m(t),value:x(a)}}):[],[G]);(0,r.useEffect)(()=>{let e=setTimeout(()=>{P(q.trim())},250);return()=>clearTimeout(e)},[q]),(0,r.useEffect)(()=>{var e,t,a,s;if(!G)return;I((null==(e=b.current[G.id])?void 0:e.status)||G.status||"open");let l="string"==typeof(null==(t=G.details)?void 0:t.admin_note)?G.details.admin_note:"";$(null!=(s=null==(a=b.current[G.id])?void 0:a.note)?s:l)},[G]),(0,r.useEffect)(()=>{let t=++f.current;return(async()=>{if(!e){k([]),H("Admin token required.");return}B(!0),H(null),F(null);try{let a=_*C,s=new URLSearchParams({limit:String(C),offset:String(a),status:z,case_type:L,q:D}),l=await fetch((0,d.y0)("/api/admin/support-cases?".concat(s.toString())),{headers:e&&"__cookie__"!==e?{Authorization:"Bearer ".concat(e)}:void 0,credentials:"include"});if(t!==f.current)return;if(!l.ok){let{handled:e,payload:t}=await g(l);if(e)return;throw Error("string"==typeof(null==t?void 0:t.error)&&t.error||"string"==typeof(null==t?void 0:t.message)&&t.message||"Failed to load support cases.")}let r=await (0,d.s$)(l,{});if(t!==f.current)return;let i=Array.isArray(r.items)?r.items:[];k(i),A({total:null!=r.total?Number(r.total):i.length,limit:null!=r.limit?Number(r.limit):C,offset:null!=r.offset?Number(r.offset):a}),N(e=>{var t,a;return e&&i.some(t=>t.id===e)?e:null!=(a=null==(t=i[0])?void 0:t.id)?a:null})}catch(e){if(t!==f.current)return;k([]),N(null),A(e=>({...e,total:0,offset:0})),H(e instanceof Error?e.message:"Failed to load support cases.")}finally{t===f.current&&B(!1)}})(),()=>{f.current=t+1}},[e,L,g,C,_,D,z]);let Z=_>0,W=w.offset+C<w.total,ee=async()=>{if(G&&!y.current){y.current=!0,U(!0),H(null),F(null);try{let t=await fetch((0,d.y0)("/api/admin/support-cases/".concat(G.id,"/status")),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...e&&"__cookie__"!==e?{Authorization:"Bearer ".concat(e)}:{}},body:JSON.stringify({status:Y,note:X})});if(!t.ok){let{handled:e,payload:a}=await g(t);if(e)return;throw Error("string"==typeof(null==a?void 0:a.error)&&a.error||"string"==typeof(null==a?void 0:a.message)&&a.message||"Could not update support case.")}let a=(await (0,d.s$)(t,{})).case;if(!a)throw Error("Could not update support case.");delete b.current[a.id],k(e=>e.map(e=>e.id===a.id?a:e).filter(e=>"all"===z||e.status===z)),"all"!==z&&a.status!==z&&A(e=>({...e,total:Math.max(0,e.total-1)})),F("Updated ".concat(a.case_key," to ").concat(m(a.status),"."))}catch(e){H(e instanceof Error?e.message:"Could not update support case.")}finally{y.current=!1,U(!1)}}};return(0,s.jsxs)("section",{className:"panel-page space-y-4",children:[(0,s.jsx)("header",{className:"panel-page-heading",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{children:l("Support case inbox","Há»p thư há» trợ")}),(0,s.jsx)("p",{children:l("Keep the customer request, account, and staff notes together.","Y\xeau cầu cá»§a kh\xe1ch, t\xe0i khoản v\xe0 ghi ch\xfa á» c\xf9ng má»t nÆ¡i.")})]})}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3 text-sm",children:[(0,s.jsx)("select",{"aria-label":"Queue status filter",value:z,onChange:e=>{E(e.target.value),S(0)},className:"border border-slate-300 p-2",children:[...u,"all"].map(e=>(0,s.jsx)("option",{value:e,children:m(e)},e))}),(0,s.jsx)("select",{"aria-label":"Case type filter",value:L,onChange:e=>{T(e.target.value),S(0)},className:"border border-slate-300 p-2",children:p.map(e=>(0,s.jsx)("option",{value:e,children:m(e)},e))}),(0,s.jsx)("select",{"aria-label":"Cases per page",value:C,onChange:e=>{M(Number(e.target.value)),S(0)},className:"border border-slate-300 p-2",children:[20,50,100].map(e=>(0,s.jsx)("option",{value:e,children:t("adminPerPage",{count:e})},e))})]}),V&&(0,s.jsx)("p",{role:"alert",className:"text-sm text-amber-700",children:V}),K&&(0,s.jsx)("p",{role:"status",className:"text-sm text-emerald-700",children:K}),(0,s.jsx)(i.K,{listTitle:l("Support cases","Y\xeau cầu há» trợ"),detailTitle:null==G?void 0:G.case_key,emptyDetail:l("Select a support case to review.","Chá»n y\xeau cầu há» trợ Äá» xem."),onClearDetail:()=>
1N(null),backLabel:t("adminBizBack"),list:(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{"aria-label":"Search support cases",value:q,onChange:e=>{O(e.target.value),S(0)},placeholder:l("Case ID, email, business, or issue","M\xe3 y\xeau cầu, email, doanh nghiá»p hoặc ná»i dung"),className:"w-full border border-slate-300 px-3 py-2 text-sm"}),R?(0,s.jsx)("p",{children:t("commonLoading")}):0===v.length?(0,s.jsx)("p",{children:l("No matching cases.","Kh\xf4ng c\xf3 y\xeau cầu ph\xf9 hợp.")}):v.map(e=>(0,s.jsx)(i.o,{title:e.summary||e.case_key,active:(null==G?void 0:G.id)===e.id,onOpen:()=>N(e.id),lines:[e.business_name,e.case_key,m(e.status),e.account_email]},e.id)),(0,s.jsxs)("div",{className:"flex justify-between border-t border-slate-200 pt-3",children:[(0,s.jsx)("button",{className:"text-sky-700 disabled:opacity-40",disabled:!Z,onClick:()=>S(e=>Math.max(0,e-1)),children:t("adminPrev")}),(0,s.jsx)("button",{className:"text-sky-700 disabled:opacity-40",disabled:!W,onClick:()=>S(e=>e+1),children:t("adminNext")})]})]}),detail:G?(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-slate-500",children:l("Selected case","Y\xeau cầu Äang xem")}),(0,s.jsx)("h2",{className:"text-lg font-bold text-slate-900",children:G.case_key}),(0,s.jsx)("p",{className:"text-sm text-slate-600",children:m(G.case_type)})]}),(0,s.jsxs)("div",{className:"grid gap-3 text-sm",children:[(0,s.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,s.jsxs)("div",{className:"border-b border-slate-200 pb-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-slate-500",children:l("Business","Doanh nghiá»p")}),(0,s.jsx)("p",{className:"mt-1 text-slate-900",children:G.business_name})]}),(0,s.jsxs)("div",{className:"border-b border-slate-200 pb-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-slate-500",children:l("Account email","Email t\xe0i khoản")}),(0,s.jsx)("p",{className:"mt-1 text-slate-900",children:G.account_email})]}),(0,s.jsxs)("div",{className:"border-b border-slate-200 pb-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-slate-500",children:l("Submitted","Ä\xe3 gá»i")}),(0,s.jsx)("p",{className:"mt-1 text-slate-900",children:h(G.created_at)})]}),(0,s.jsxs)("div",{className:"border-b border-slate-200 pb-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-slate-500",children:l("Last reviewed","Lần duyá»t gần nhất")}),(0,s.jsx)("p",{className:"mt-1 text-slate-900",children:G.reviewed_at?"".concat(h(G.reviewed_at)).concat(G.reviewed_by_email?" by ".concat(G.reviewed_by_email):""):"-"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-slate-500",children:l("Summary","Ná»i dung")}),(0,s.jsx)("p",{className:"mt-1 whitespace-pre-wrap border-b border-slate-200 pb-3 text-slate-800",children:G.summary})]}),Q.length?(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-slate-500",children:l("Case details","Chi tiết y\xeau cầu")}),(0,s.jsx)("div",{className:"mt-2 grid gap-2",children:Q.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-slate-200 bg-white p-3",children:[(0,s.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-slate-500",children:e.label}),(0,s.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-sm text-slate-800",children:e.value})]},e.key))})]}):null,(0,s.jsxs)("details",{className:"border-b border-slate-200 pb-3",children:[(0,s.jsx)("summary",{className:"cursor-pointer text-xs font-semibold uppercase tracking-wide text-slate-500",children:"Raw case JSON"}),(0,s.jsx)("pre",{className:"mt-3 overflow-auto text-xs leading-6 text-slate-700",children:JSON.stringify(G.details,null,2)})]})]}),(0,s.jsxs)("div",{className:"space-y-3 border-t border-slate-200 pt-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"support-case-status",className:"mb-1 block text-xs font-semibold uppercase tracking-wide text-slate-500",children:l("Case status","Trạng th\xe1i há» trợ")}),(0,s.jsx)("select",{id:"support-case-status","aria-label":"Case status",value:Y,onChange:e=>{I(e.target.value),b.current[G.id]={status:e.target.value,note:X}},className:"w-full rounded-lg border border-slate-200 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500",children:u.map(e=>(0,s.jsx)("option",{value:e,children:m(e)},e))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"support-case-note",className:"mb-1 block text-xs font-semibold uppercase tracking-wide text-slate-500",children:l("Resolution note","Ghi ch\xfa ná»i bá»")}),(0,s.jsx)("textarea",{id:"support-case-note","aria-label":"Resolution note",value:X,onChange:e=>{$(e.target.value),b.current[G.id]={status:Y,note:e.target.value}},rows:5,placeholder:"Document what you checked and what happens next.",className:"w-full rounded-lg border border-slate-200 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500"})]})]})]}):void 0,detailActions:G?(0,s.jsx)("button",{className:"panel-button panel-button-primary",disabled:J,onClick:()=>void ee(),children:J?l("Saving...","Äang lưu..."):l("Save case review","Lưu cáºp nháºt")}):void 0})]})}function y(){return(0,s.jsx)(l.i,{active:"support",children:(0,s.jsx)(b,{})})}},88628:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},90434:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(17963).A)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])}},e=>{e.O(0,[4e3,7915,1747,636,6593,8792],()=>e(e.s=63812)),_N_E=e.O()}]);
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.