1import{d as j,r as i,j as e,M as C,P as S,h as M,m as U,b as q,v as F,U as Q}from"./index-D2z8m8GB.js";import{M as b}from"./mail-DAXSDKdI.js";import{C as h,S as D,a as L}from"./shield-BcGkS7uN.js";import{C as A,a as E}from"./chevron-up-CWxIeavT.js";/** 2 * @license lucide-react v0.518.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const _=[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]],$=j("bug",_);/** 7 * @license lucide-react v0.518.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const H=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],u=j("external-link",H),a=r=>{const c=new Date;return c.setDate(c.getDate()-r),c.toISOString().split("T")[0]},I=[{id:"1",question:"å¦ä½è¨»åæçºæå¡ï¼",answer:"æ¨å¯ä»¥é»æç¶²ç«å³ä¸è§çãç»è¨ãæéï¼å¡«å¯«åºæ¬è³è¨å æ¬ç¨æ¶åãé»åéµä»¶åå¯ç¢¼å³å¯å®æè¨»åã註å徿¨å°è½å¤ ç¼è¡¨éè¨ãåèè¨è«å使ç¨å人ååè½ã",category:"帳æ¶ç®¡ç",helpful:245,lastUpdated:a(5)},{id:"2",question:"å¿è¨å¯ç¢¼æéº¼è¾¦ï¼",answer:"å¨ç»å ¥é é¢é»æãå¿è¨å¯ç¢¼ãé£çµï¼è¼¸å ¥æ¨è¨»åæä½¿ç¨çé»åéµä»¶å°åï¼ç³»çµ±æç¼éå¯ç¢¼éç½®é£çµå°æ¨çéµç®±ãè«æª¢æ¥åå¾éµä»¶å¤¾ï¼å¦ææ²ææ¶å°éµä»¶ï¼è«è¯çµ¡å®¢æã",category:"帳æ¶ç®¡ç",helpful:189,lastUpdated:a(8)},{id:"3",question:"å¦ä½æå°ç¹å®çæ 鿝é»ï¼",answer:"æ¨å¯ä»¥ä½¿ç¨ç¶²ç«çæå°åè½ï¼è¼¸å ¥æ¯é»å稱ãå叿ééµåé²è¡æå°ãæåçé«ç´æå°æ¯æ´å¤ç¨®ç¯©é¸æ¢ä»¶ï¼å æ¬å°åãé¡åãè©åçï¼å¹«å©æ¨å¿«éæ¾å°å¿åçç®çå°ã",category:"ç¶²ç«åè½",helpful:312,lastUpdated:a(2)},{id:"4",question:"å¦ä½ç¼è¡¨æ ééè¨ï¼",answer:"ç»å ¥å¸³æ¶å¾ï¼é»æãéè¨ãé é¢çã寫éè¨ãæéãæ¨å¯ä»¥æ·»å æ¨é¡ãå §å®¹ãç §çåæ¨ç±¤ãæå建è°å å«è©³ç´°çè¡ç¨å®æã實ç¨å»ºè°åå人æåï¼é樣è½çºå ¶ä»æ è¡è æä¾æ´æå¹å¼çåèã",category:"å §å®¹ç¼å¸",helpful:267,lastUpdated:a(10)},{id:"5",question:"ç¶²ç«æ¯å¦æ¯æ´ææ©ç覽ï¼",answer:"æ¯çï¼æåçç¶²ç«æ¡ç¨é¿æå¼è¨è¨ï¼å®å ¨æ¯æ´ææ©åå¹³æ¿é»è ¦çè¦½ãæ¨å¯ä»¥å¨ä»»ä½è¨åä¸äº«å宿´çåè½é«é©ï¼å æ¬æå°ãé±è®éè¨ã使ç¨å°åçã",category:"æè¡æ¯æ´",helpful:156,lastUpdated:a(12)},{id:"6",question:"å¦ä½è¯çµ¡å®¢æï¼",answer:"æ¨å¯ä»¥ééå¤ç¨®æ¹å¼è¯çµ¡æåï¼1) å¨ç·å®¢æï¼é±ä¸è³é±äº 9:00-18:00ï¼2) é»åéµä»¶ï¼[email protected] 3) 客æé»è©±ï¼400-123-4567 4) 卿¬é é¢æäº¤æ¯æ´è«æ±è¡¨å®ã",category:"å®¢æ¶æå",helpful:198,lastUpdated:a(15)},{id:"7",question:"åäººè³æå®å ¨åï¼",answer:"æåé常éè¦ç¨æ¶é±ç§åè³æå®å ¨ãææåäººè³æé½ç¶éå å¯åå²ï¼æåå´æ ¼éµå¾ªè³æä¿è·æ³è¦ï¼ä¸æå°æ¨çåäººè³æåäº«çµ¦ç¬¬ä¸æ¹ã詳細è³è¨è«æ¥çæåçé±ç§æ¿çã",category:"é±ç§å®å ¨",helpful:234,lastUpdated:a(17)},{id:"8",question:"å¦ä½ä½¿ç¨äºåå°ååè½ï¼",answer:"äºåå°åæ¯æ´ç¸®æ¾ãææ½å黿æ¨è¨æ¥ç詳細è³è¨ãæ¨å¯ä»¥åæä¸åçå層顯示ï¼å æ¬æ¯é»ã交éãä½å®¿çãå¨è¡ç¨è¦å模å¼ä¸ï¼éå¯ä»¥æ·»å è·¯ç·åæ¥çè·é¢ã",category:"ç¶²ç«åè½",helpful:178,lastUpdated:a(20)}],T=[{type:"chat",title:"å¨ç·å®¢æ",description:"峿èå¤©æ¯æ´ï¼å¿«é解決åé¡",contact:"黿éå§å°è©±",hours:"é±ä¸è³é±äº 9:00-18:00",icon:C,color:"blue"}
11,{type:"email",title:"é»åéµä»¶",description:"詳細åé¡æè¿°ï¼24å°æå
§åè¦",contact:"[email protected]",hours:"24å°æåç",icon:b,color:"green"},{type:"phone",title:"客æé»è©±",description:"ç·æ¥å顿è¤é諮詢",contact:"400-123-4567",hours:"é±ä¸è³é±æ¥ 8:00-20:00",icon:S,color:"red"},{type:"feedback",title:"æè¦åé¥",description:"建è°åæ¹é²æè¦",contact:"[email protected]",hours:"鍿æ¡è¿",icon:M,color:"yellow"}],p=["å
¨é¨","帳æ¶ç®¡ç","ç¶²ç«åè½","å
§å®¹ç¼å¸","æè¡æ¯æ´","å®¢æ¶æå","é±ç§å®å
¨","ä»è²»æå"];function O(){const[r,c]=i.useState("å
¨é¨"),[d,y]=i.useState(""),[x,N]=i.useState(null),[n,l]=i.useState({name:"",email:"",subject:"",category:"general",message:"",priority:"normal"}),[o,g]=i.useState("idle"),m=I.filter(s=>{const t=r==="å
¨é¨"||s.category===r,k=d===""||s.question.toLowerCase().includes(d.toLowerCase())||s.answer.toLowerCase().includes(d.toLowerCase());return t&&k}),f=s=>{N(x===s?null:s)},v=s=>{s.preventDefault(),g("success"),l({name:"",email:"",subject:"",category:"general",message:"",priority:"normal"}),setTimeout(()=>g("idle"),5e3)},w=s=>{const t={blue:"bg-blue-50 border-blue-200 text-blue-800",green:"bg-green-50 border-green-200 text-green-800",red:"bg-red-50 border-red-200 text-red-800",yellow:"bg-yellow-50 border-yellow-200 text-yellow-800"};return t[s]||t.blue};return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-500 to-indigo-600 text-white rounded-lg p-8",children:[e.jsx("h1",{className:"text-3xl font-bold mb-4",children:"説æåæ¯æ´"}),e.jsx("p",{className:"text-blue-100 text-lg",children:"æåé¨æçºæ¨æä¾åå©ï¼è®æ¨çæ
è¡è¦åæ´å é å©"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:T.map(s=>{const t=s.icon;return e.jsxs("div",{className:`border-2 rounded-lg p-6 hover:shadow-md transition-all cursor-pointer ${w(s.color)}`,children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-3",children:[e.jsx(t,{className:"w-8 h-8"}),e.jsx("h3",{className:"font-semibold",children:s.title})]}),e.jsx("p",{className:"text-sm mb-3",children:s.description}),e.jsx("p",{className:"text-sm font-medium mb-2",children:s.contact}),e.jsxs("div",{className:"flex items-center space-x-1 text-xs",children:[e.jsx(U,{className:"w-3 h-3"}),e.jsx("span",{children:s.hours})]})]},s.type)})}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center lg:justify-between space-y-4 lg:space-y-0 mb-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-800",children:"常è¦åé¡"}),e.jsxs("div",{className:"flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(q,{className:"absolute left-3 top-3 w-4 h-4 text-gray-400"}),e.jsx("input",{type:"text",placeholder:"æå°å¸¸è¦åé¡...",value:d,onChange:s=>y(s.target.value),className:"pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent w-64"})]}),e.jsx("select",{value:r,onChange:s=>c(s.target.value),className:"px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500",children:p.map(s=>e.jsx("option",{value:s,children:s},s))})]})]}),e.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:p.map(s=>e.jsx("button",{onClick:()=>c(s),className:`px-4 py-2 rounded-lg text-sm font-medium ${r===s?"bg-blue-600 text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,children:s},s))}),e.jsx("div",{className:"mb-6",children:e.jsxs("p",{className:"text-gray-600",children:["æ¾å° ",m.length," å常è¦åé¡"]})}),e.jsx("div",{className:"space-y-4",children:m.map(s=>e.jsxs("div",{className:"border border-gray-200 rounded-lg",children:[e.jsxs("button",{onClick:()=>f(s.id),className:"w-full p-4 text-left flex items-center justify-between hover:bg-gray-50",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-medium text-gray-800",children:s.question}),e.jsxs("div",{className:"flex items-center space-x-4 mt-2 text-sm text-gray-500",children:[e.jsx("span",{className:"bg-gray-100 px-2 py-1 rounded text-xs",children:s.category}),e.jsxs("span",{className:"flex items-center space-x-1",children:[e.jsx(h,{className:"w-3 h-3"}
11),e.jsxs("span",{children:[s.helpful," äººè¦ºå¾æç¨"]})]}),e.jsxs("span",{children:["æ´æ°: ",s.lastUpdated]})]})]}),x===s.id?e.jsx(A,{className:"w-5 h-5 text-gray-400"}):e.jsx(E,{className:"w-5 h-5 text-gray-400"})]}),x===s.id&&e.jsx("div",{className:"px-4 pb-4",children:e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 mt-3",children:[e.jsx("p",{className:"text-gray-700",children:s.answer}),e.jsxs("div",{className:"flex items-center space-x-4 mt-4 text-sm",children:[e.jsxs("button",{className:"flex items-center space-x-1 text-green-600 hover:text-green-700",children:[e.jsx(h,{className:"w-4 h-4"}),e.jsx("span",{children:"æç¨"})]}),e.jsx("button",{className:"text-gray-500 hover:text-gray-700",children:"éè¦æ´å¤å¹«å©"})]})]})})]},s.id))}),m.length===0&&e.jsxs("div",{className:"text-center py-12",children:[e.jsx(F,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"æ²ææ¾å°ç¸éåé¡"}),e.jsx("p",{className:"text-gray-500",children:"è«åè©¦èª¿æ´æå°æ¢ä»¶æç´æ¥è¯çµ¡å®¢æ"})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-800 mb-6",children:"æäº¤æ¯æ´è«æ±"}),e.jsxs("form",{onSubmit:v,className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:[e.jsx(Q,{className:"w-4 h-4 inline mr-1"}),"æ¨çå§å *"]}),e.jsx("input",{type:"text",required:!0,value:n.name,onChange:s=>l(t=>({...t,name:s.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500",placeholder:"è«è¼¸å
¥æ¨çå§å"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:[e.jsx(b,{className:"w-4 h-4 inline mr-1"}),"é»åéµä»¶ *"]}),e.jsx("input",{type:"email",required:!0,value:n.email,onChange:s=>l(t=>({...t,email:s.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500",placeholder:"è«è¼¸å
¥æ¨çé»åéµä»¶"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"ä¸»é¡ *"}),e.jsx("input",{type:"text",required:!0,value:n.subject,onChange:s=>l(t=>({...t,subject:s.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500",placeholder:"ç°¡è¦æè¿°æ¨çåé¡"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"åé¡åé¡"}),e.jsxs("select",{value:n.category,onChange:s=>l(t=>({...t,category:s.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"general",children:"ä¸è¬è«®è©¢"}),e.jsx("option",{value:"technical",children:"æè¡åé¡"}),e.jsx("option",{value:"account",children:"帳æ¶åé¡"}),e.jsx("option",{value:"billing",children:"ä»è²»ç¸é"}),e.jsx("option",{value:"content",children:"å
§å®¹åé¡"}),e.jsx("option",{value:"feedback",children:"æè¦å»ºè°"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"åªå
ç´"}),e.jsxs("select",{value:n.priority,onChange:s=>l(t=>({...t,priority:s.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500",children:[e.jsx("option",{value:"low",children:"ä½"}),e.jsx("option",{value:"normal",children:"ä¸è¬"}),e.jsx("option",{value:"high",children:"é«"}),e.jsx("option",{value:"urgent",children:"ç·æ¥"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"詳細æè¿° *"}),e.jsx("textarea",{required:!0,rows:6,value:n.message,onChange:s=>l(t=>({...t,message:s.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500",placeholder:"è«è©³ç´°æè¿°æ¨éå°çå顿éè¦çåå©..."})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("p",{className:"text-sm text-gray-500",children:"æåæå¨24å°æå
§
11åè¦æ¨çè«æ±"}),e.jsxs("div",{className:"flex items-center space-x-4",children:[o==="success"&&e.jsxs("span",{className:"text-green-600 flex items-center text-sm font-medium animate-fade-in",children:[e.jsx(h,{className:"w-4 h-4 mr-1"}),"å·²æäº¤æåï¼"]}),e.jsx("button",{type:"submit",disabled:o==="success",className:`px-6 py-3 rounded-lg font-medium text-white transition-colors ${o==="success"?"bg-green-600 hover:bg-green-700 cursor-default":"bg-blue-600 hover:bg-blue-700"}`,children:o==="success"?"å·²ç¼é":"æäº¤è«æ±"})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx(D,{className:"w-8 h-8 text-green-600"}),e.jsx("h3",{className:"font-semibold text-gray-800",children:"é±ç§èå®å
¨"})]}),e.jsx("p",{className:"text-gray-600 text-sm mb-4",children:"äºè§£æåå¦ä½ä¿è·æ¨çåäººè³æå帳æ¶å®å
¨"}),e.jsxs("button",{className:"flex items-center space-x-1 text-blue-600 hover:text-blue-700 text-sm",children:[e.jsx("span",{children:"æ¥çé±ç§æ¿ç"}),e.jsx(u,{className:"w-3 h-3"})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx(L,{className:"w-8 h-8 text-blue-600"}),e.jsx("h3",{className:"font-semibold text-gray-800",children:"ä»è²»è帳å®"})]}),e.jsx("p",{className:"text-gray-600 text-sm mb-4",children:"äºè§£ä»è²»æåã右宿¥è©¢å鿬¾æ¿ç"}),e.jsxs("button",{className:"flex items-center space-x-1 text-blue-600 hover:text-blue-700 text-sm",children:[e.jsx("span",{children:"æ¥çä»è²»èªªæ"}),e.jsx(u,{className:"w-3 h-3"})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[e.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[e.jsx($,{className:"w-8 h-8 text-red-600"}),e.jsx("h3",{className:"font-semibold text-gray-800",children:"åé¡åå ±"})]}),e.jsx("p",{className:"text-gray-600 text-sm mb-4",children:"ç¼ç¾ç¶²ç«å顿é¯èª¤ï¼è«å訴æå"}),e.jsxs("button",{className:"flex items-center space-x-1 text-blue-600 hover:text-blue-700 text-sm",children:[e.jsx("span",{children:"åå ±åé¡"}),e.jsx(u,{className:"w-3 h-3"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-800 mb-4",children:"系統çæ
"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between p-3 bg-green-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full"}),e.jsx("span",{className:"font-medium text-gray-800",children:"ç¶²ç«æå"})]}),e.jsx("span",{className:"text-green-600 text-sm",children:"æ£å¸¸éè¡"})]}),e.jsxs("div",{className:"flex items-center justify-between p-3 bg-green-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full"}),e.jsx("span",{className:"font-medium text-gray-800",children:"æå°åè½"})]}),e.jsx("span",{className:"text-green-600 text-sm",children:"æ£å¸¸éè¡"})]}),e.jsxs("div",{className:"flex items-center justify-between p-3 bg-green-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full"}),e.jsx("span",{className:"font-medium text-gray-800",children:"å°åæå"})]}),e.jsx("span",{className:"text-green-600 text-sm",children:"æ£å¸¸éè¡"})]}),e.jsxs("div",{className:"flex items-center justify-between p-3 bg-yellow-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"w-3 h-3 bg-yellow-500 rounded-full"}),e.jsx("span",{className:"font-medium text-gray-800",children:"éµä»¶ç³»çµ±"})]}),e.jsx("span",{className:"text-yellow-600 text-sm",children:"ç¶è·ä¸"})]})]}),e.jsx("p",{className:"text-sm text-gray-500 mt-4",children:"æå¾æ´æ°: 2024-06-20 14:30 GMT+8"})]})]})}export{O 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.