ux(ui): beginner-friendly guidance across trainee/admin flows + fix AdminUsers to username

- Chat: add 'How to practice' guide card; render revealed persona as readable
  label:value grid instead of JSON.
- AdminUsers: switch create form to username (matches username login), add step guide,
  role explanation (user=ฝึก, admin=ดูแลระบบ).
- Analytics (admin overview) + MyBoard (personal): add plain-Thai explainer subtitle.
- Rebuild dist. Verified user create with username -> 201.
This commit is contained in:
Macky committed 2026-08-08 10:34:24 +07:00
1 parent 39d1aa04e4
commit 22d3e51980
29 files changed
+103 -38

No files matched your search

-1
View File
@@ -1 +0,0 @@
import{k as x,c as r,a,t,u,i as d,w as n,v as m,C as g,e as _,F as U,p as k,q as f,r as p,o as i,z as V}from"./index-B2m5OgR7.js";const b={class:"card",style:{"margin-bottom":"16px"}},C={class:"row"},h={key:0,class:"error"},B={style:{flex:"1"}},M={class:"badge"},D={__name:"AdminUsers",setup(N){const v=p([]),o=p(""),s=p({name:"",email:"",password:"",role:"user"});async function c(){v.value=(await f.adminListUsers()).users}async function w(){o.value="";try{await f.adminCreateUser({...s.value}),s.value={name:"",email:"",password:"",role:"user"},await c()}catch(y){o.value=y.message}}return x(c),(y,l)=>(i(),r("div",null,[a("h2",null,t(u(d).t("users")),1),a("div",b,[a("h4",null,"+ "+t(u(d).t("create"))+" user",1),a("div",C,[n(a("input",{"onUpdate:modelValue":l[0]||(l[0]=e=>s.value.name=e),placeholder:"Name",style:{flex:"1"}},null,512),[[m,s.value.name]]),n(a("input",{"onUpdate:modelValue":l[1]||(l[1]=e=>s.value.email=e),placeholder:"Email",style:{flex:"1"}},null,512),[[m,s.value.email]]),n(a("input",{"onUpdate:modelValue":l[2]||(l[2]=e=>s.value.password=e),type:"password",placeholder:"Temp password",style:{flex:"1"}},null,512),[[m,s.value.password]]),n(a("select",{"onUpdate:modelValue":l[3]||(l[3]=e=>s.value.role=e),style:{flex:"1"}},[...l[4]||(l[4]=[a("option",{value:"user"},"user",-1),a("option",{value:"admin"},"admin",-1)])],512),[[g,s.value.role]]),a("button",{class:"primary",onClick:w},t(u(d).t("create")),1)]),o.value?(i(),r("div",h,t(o.value),1)):_("",!0)]),(i(!0),r(U,null,k(v.value,e=>(i(),r("div",{class:"card",key:e.id,style:{"margin-bottom":"8px",display:"flex","align-items":"center",gap:"12px"}},[a("strong",B,t(e.name)+" ("+t(e.email)+")",1),a("span",M,t(e.role),1),a("span",{class:V(["badge",e.active?"won":"lost"])},t(e.active?"active":"inactive"),3)]))),128))]))}};export{D as default};
+1
View File
@@ -0,0 +1 @@
import{_ as f,k as x,c as o,a as e,t as l,u as d,i,H as w,w as u,v as c,C as U,e as g,F as k,p as V,q as y,r as p,o as n,z as h}from"./index-BhdfH8-z.js";const C={class:"card",style:{"margin-bottom":"16px"}},B={style:{"margin-top":"0"}},L={class:"row"},M={class:"row",style:{"margin-top":"10px"}},N=["disabled"],S={key:0,class:"error"},z={key:0,class:"card empty-state"},A={style:{flex:"1"}},D={class:"badge"},F={__name:"AdminUsers",setup(q){const v=p([]),r=p(""),t=p({username:"",name:"",password:"",role:"user"});async function m(){v.value=(await y.adminListUsers()).users}async function _(){r.value="";try{await y.adminCreateUser({...t.value}),t.value={username:"",name:"",password:"",role:"user"},await m()}catch(b){r.value=b.message}}return x(m),(b,a)=>(n(),o("div",null,[e("h2",null,"👥 "+l(d(i).t("users")),1),a[6]||(a[6]=w('<div class="card guide" data-v-6b85bc80><strong data-v-6b85bc80>📋 วิธีเพิ่มผู้ใช้งาน</strong><ol style="margin:8px 0 0;padding-left:20px;line-height:1.8;" data-v-6b85bc80><li data-v-6b85bc80>กรอก <strong data-v-6b85bc80>ชื่อผู้ใช้ (สำหรับเข้าสู่ระบบ)</strong>, ชื่อ, และรหัสผ่านเริ่มต้น</li><li data-v-6b85bc80>เลือกสิทธิ์: <strong data-v-6b85bc80>user</strong> = ผู้เข้าฝึกขาย, <strong data-v-6b85bc80>admin</strong> = จัดการระบบ</li><li data-v-6b85bc80>กด <strong data-v-6b85bc80>สร้าง</strong> — นำชื่อผู้ใช้ + รหัสผ่านไปแจ้งให้ผู้ใช้นั้นเข้าสู่ระบบได้เลย</li></ol></div>',1)),e("div",C,[e("h4",B,"+ "+l(d(i).t("create"))+" "+l(d(i).t("users").toLowerCase()),1),e("div",L,[u(e("input",{"onUpdate:modelValue":a[0]||(a[0]=s=>t.value.username=s),placeholder:"ชื่อผู้ใช้ (เข้าสู่ระบบ)",style:{flex:"1"}},null,512),[[c,t.value.username]]),u(e("input",{"onUpdate:modelValue":a[1]||(a[1]=s=>t.value.name=s),placeholder:"ชื่อจริง",style:{flex:"1"}},null,512),[[c,t.value.name]]),u(e("input",{"onUpdate:modelValue":a[2]||(a[2]=s=>t.value.password=s),type:"password",placeholder:"รหัสผ่านเริ่มต้น",style:{flex:"1"}},null,512),[[c,t.value.password]])]),e("div",M,[u(e("select",{"onUpdate:modelValue":a[3]||(a[3]=s=>t.value.role=s),style:{flex:"1"}},[...a[4]||(a[4]=[e("option",{value:"user"},"🙂 user — ผู้เข้าฝึก",-1),e("option",{value:"admin"},"🛠 admin — ผู้ดูแลระบบ",-1)])],512),[[U,t.value.role]]),e("button",{class:"primary",onClick:_,disabled:!t.value.username||!t.value.password},"+ "+l(d(i).t("create")),9,N)]),r.value?(n(),o("div",S,l(r.value),1)):g("",!0)]),v.value.length===0?(n(),o("div",z,[...a[5]||(a[5]=[e("strong",null,"ยังไม่มีผู้ใช้งาน",-1),e("span",null,"สร้างผู้ใช้งานคนแรกด้วยฟอร์มด้านบน",-1)])])):g("",!0),(n(!0),o(k,null,V(v.value,s=>(n(),o("div",{class:"card",key:s.id,style:{"margin-bottom":"8px",display:"flex","align-items":"center",gap:"12px"}},[e("strong",A,l(s.name)+" ("+l(s.username)+")",1),e("span",D,l(s.role),1),e("span",{class:h(["badge",s.active?"won":"lost"])},l(s.active?"active":"inactive"),3)]))),128))]))}},H=f(F,[["__scopeId","data-v-6b85bc80"]]);export{H as default};
+1
View File
@@ -0,0 +1 @@
.guide[data-v-6b85bc80]{background:#eef2ff;border-color:#c7d2fe;margin-bottom:16px}
-1
View File
@@ -1 +0,0 @@
.stat[data-v-9558687f]{text-align:center;min-width:110px}.stat div[data-v-9558687f]{color:var(--muted);font-size:12px}.stat strong[data-v-9558687f]{font-size:20px}.filter-bar[data-v-9558687f]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.filter-bar input[type=date][data-v-9558687f]{width:auto}.grid[data-v-9558687f]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.tier-card[data-v-9558687f]{display:flex;flex-direction:column}.badge.won[data-v-9558687f]{background:#dcfce7;color:#166534}.badge.lost[data-v-9558687f]{background:#fee2e2;color:#991b1b}.badge.not_tried[data-v-9558687f]{background:#eef2ff;color:#4338ca}.bar[data-v-9558687f]{background:#eef0f5;border-radius:999px;height:10px;overflow:hidden;margin-top:10px}.bar-fill[data-v-9558687f]{background:linear-gradient(90deg,var(--accent),var(--accent-2));height:100%;border-radius:999px;transition:width .4s ease}.users-btn[data-v-9558687f]{background:#0ea5e9;border-color:transparent;color:#fff;font-weight:600}.users-btn[data-v-9558687f]:not(:disabled):hover{background:#0284c7;box-shadow:0 6px 16px #0ea5e959}
-1
View File
@@ -1 +0,0 @@
import{_ as x,k,c,a as s,t,u as o,i as l,l as m,m as y,w as h,v as f,n as C,e as N,F as V,p as L,q as A,s as B,r as u,o as _}from"./index-B2m5OgR7.js";const S={class:"row",style:{"align-items":"center","margin-bottom":"16px"}},j={style:{margin:"0"}},z={class:"row",style:{"margin-left":"auto",gap:"10px"}},D={class:"users-btn"},F={class:"primary"},M={class:"card filter-bar"},P={class:"muted"},R=["disabled"],T=["disabled"],U={class:"row",style:{gap:"16px",margin:"16px 0"}},W={class:"card stat"},q={class:"card stat"},E={style:{color:"var(--green)"}},I={class:"card stat"},O={style:{color:"var(--red)"}},G={class:"card stat"},H={class:"card stat"},J={class:"card"},K={class:"row",style:{"justify-content":"space-between","align-items":"center"}},Q={class:"bar"},X={class:"muted",style:{"font-size":"12px","margin-top":"6px"}},Y={style:{"margin-top":"20px"}},Z={key:0,class:"card empty-state"},$={class:"grid"},ss={class:"row",style:{"justify-content":"space-between"}},ts={class:"muted"},es={class:"row",style:{"margin-top":"10px",gap:"8px"}},as={class:"badge won"},os={class:"badge lost"},ls={class:"badge not_tried"},ns={class:"muted",style:{"margin-top":"8px"}},is={__name:"Analytics",setup(rs){const a=u({overall:{total_sessions:0,wins:0,losses:0,close_rate:0,avg_score:0},trainee_count:0,hardest_personas:[]}),i=u(""),r=u(""),d=u(!1);async function v(){d.value=!0;try{a.value=await A.analytics({from:i.value,to:r.value})}finally{d.value=!1}}function w(){v()}function b(){i.value="",r.value="",v()}return k(v),(ds,e)=>{const p=B("router-link");return _(),c("div",null,[s("div",S,[s("h2",j,"📊 "+t(o(l).t("adminOverview")),1),s("div",z,[m(p,{to:"/admin/users"},{default:y(()=>[s("button",D,"👥 "+t(o(l).t("users")),1)]),_:1}),m(p,{to:"/admin/new-group"},{default:y(()=>[s("button",F,"+ "+t(o(l).t("addProduct")),1)]),_:1})])]),s("div",M,[s("span",P,"🗓 "+t(o(l).t("dateRange")),1),h(s("input",{type:"date","onUpdate:modelValue":e[0]||(e[0]=n=>i.value=n)},null,512),[[f,i.value]]),e[2]||(e[2]=s("span",null,"–",-1)),h(s("input",{type:"date","onUpdate:modelValue":e[1]||(e[1]=n=>r.value=n)},null,512),[[f,r.value]]),s("button",{class:"primary",onClick:w,disabled:d.value},"→ "+t(o(l).t("apply")),9,R),s("button",{onClick:b,disabled:d.value},t(o(l).t("clear")),9,T)]),s("div",U,[s("div",W,[e[3]||(e[3]=s("div",null,"Sessions",-1)),s("strong",null,t(a.value.overall.total_sessions),1)]),s("div",q,[e[4]||(e[4]=s("div",null,"Wins",-1)),s("strong",E,t(a.value.overall.wins),1)]),s("div",I,[e[5]||(e[5]=s("div",null,"Losses",-1)),s("strong",O,t(a.value.overall.losses),1)]),s("div",G,[e[6]||(e[6]=s("div",null,"Avg score",-1)),s("strong",null,t(a.value.overall.avg_score),1)]),s("div",H,[e[7]||(e[7]=s("div",null,"Trainees",-1)),s("strong",null,t(a.value.trainee_count),1)])]),s("div",J,[s("div",K,[s("strong",null,t(o(l).t("closeRate")),1),s("strong",null,t(a.value.overall.close_rate)+"%",1)]),s("div",Q,[s("div",{class:"bar-fill",style:C({width:(a.value.overall.close_rate||0)+"%"})},null,4)]),s("div",X,t(a.value.overall.wins)+" "+t(o(l).t("won").toLowerCase())+" / "+t(a.value.overall.total_sessions)+" sessions ",1)]),s("h3",Y,t(o(l).t("hardestPersonas")),1),a.value.hardest_personas.length===0?(_(),c("div",Z,[...e[8]||(e[8]=[s("strong",null,"No data",-1),s("span",null,"No sessions in this date range.",-1)])])):N("",!0),s("div",$,[(_(!0),c(V,null,L(a.value.hardest_personas,(n,g)=>(_(),c("div",{key:g,class:"card lift tier-card"},[s("div",ss,[s("strong",null,t(n.persona_name),1),s("span",ts,"#"+t(g+1),1)]),s("div",es,[s("span",as,t(n.wins)+"W",1),s("span",os,t(n.losses)+"L",1),s("span",ls,t(n.plays)+" plays",1)]),s("div",ns,t(o(l).t("score"))+": "+t(n.avg_score),1)]))),128))])])}}},us=x(is,[["__scopeId","data-v-9558687f"]]);export{us as default};
+1
View File
@@ -0,0 +1 @@
import{_ as x,k,c as u,a as s,t,u as a,i as l,l as g,m as y,w as f,v as h,n as C,e as N,F as V,p as L,q as A,s as B,r as c,o as _}from"./index-BhdfH8-z.js";const S={class:"row",style:{"align-items":"center","margin-bottom":"16px"}},j={style:{margin:"0"}},z={class:"row",style:{"margin-left":"auto",gap:"10px"}},D={class:"users-btn"},F={class:"primary"},M={class:"card filter-bar"},P={class:"muted"},R=["disabled"],T=["disabled"],U={class:"row",style:{gap:"16px",margin:"16px 0"}},W={class:"card stat"},q={class:"card stat"},E={style:{color:"var(--green)"}},I={class:"card stat"},O={style:{color:"var(--red)"}},G={class:"card stat"},H={class:"card stat"},J={class:"card"},K={class:"row",style:{"justify-content":"space-between","align-items":"center"}},Q={class:"bar"},X={class:"muted",style:{"font-size":"12px","margin-top":"6px"}},Y={style:{"margin-top":"20px"}},Z={key:0,class:"card empty-state"},$={class:"grid"},ss={class:"row",style:{"justify-content":"space-between"}},ts={class:"muted"},es={class:"row",style:{"margin-top":"10px",gap:"8px"}},os={class:"badge won"},as={class:"badge lost"},ls={class:"badge not_tried"},ns={class:"muted",style:{"margin-top":"8px"}},is={__name:"Analytics",setup(rs){const o=c({overall:{total_sessions:0,wins:0,losses:0,close_rate:0,avg_score:0},trainee_count:0,hardest_personas:[]}),i=c(""),r=c(""),d=c(!1);async function v(){d.value=!0;try{o.value=await A.analytics({from:i.value,to:r.value})}finally{d.value=!1}}function w(){v()}function b(){i.value="",r.value="",v()}return k(v),(ds,e)=>{const p=B("router-link");return _(),u("div",null,[s("div",S,[s("div",null,[s("h2",j,"📊 "+t(a(l).t("adminOverview")),1),e[2]||(e[2]=s("div",{class:"muted",style:{"margin-top":"4px"}},"ภาพรวมผลการฝึกของทีมทั้งหมด — เลือกช่วงเวลาเพื่อดูสถิติ",-1))]),s("div",z,[g(p,{to:"/admin/users"},{default:y(()=>[s("button",D,"👥 "+t(a(l).t("users")),1)]),_:1}),g(p,{to:"/admin/new-group"},{default:y(()=>[s("button",F,"+ "+t(a(l).t("addProduct")),1)]),_:1})])]),s("div",M,[s("span",P,"🗓 "+t(a(l).t("dateRange")),1),f(s("input",{type:"date","onUpdate:modelValue":e[0]||(e[0]=n=>i.value=n)},null,512),[[h,i.value]]),e[3]||(e[3]=s("span",null,"–",-1)),f(s("input",{type:"date","onUpdate:modelValue":e[1]||(e[1]=n=>r.value=n)},null,512),[[h,r.value]]),s("button",{class:"primary",onClick:w,disabled:d.value},"→ "+t(a(l).t("apply")),9,R),s("button",{onClick:b,disabled:d.value},t(a(l).t("clear")),9,T)]),s("div",U,[s("div",W,[e[4]||(e[4]=s("div",null,"Sessions",-1)),s("strong",null,t(o.value.overall.total_sessions),1)]),s("div",q,[e[5]||(e[5]=s("div",null,"Wins",-1)),s("strong",E,t(o.value.overall.wins),1)]),s("div",I,[e[6]||(e[6]=s("div",null,"Losses",-1)),s("strong",O,t(o.value.overall.losses),1)]),s("div",G,[e[7]||(e[7]=s("div",null,"Avg score",-1)),s("strong",null,t(o.value.overall.avg_score),1)]),s("div",H,[e[8]||(e[8]=s("div",null,"Trainees",-1)),s("strong",null,t(o.value.trainee_count),1)])]),s("div",J,[s("div",K,[s("strong",null,t(a(l).t("closeRate")),1),s("strong",null,t(o.value.overall.close_rate)+"%",1)]),s("div",Q,[s("div",{class:"bar-fill",style:C({width:(o.value.overall.close_rate||0)+"%"})},null,4)]),s("div",X,t(o.value.overall.wins)+" "+t(a(l).t("won").toLowerCase())+" / "+t(o.value.overall.total_sessions)+" sessions ",1)]),s("h3",Y,t(a(l).t("hardestPersonas")),1),o.value.hardest_personas.length===0?(_(),u("div",Z,[...e[9]||(e[9]=[s("strong",null,"No data",-1),s("span",null,"No sessions in this date range.",-1)])])):N("",!0),s("div",$,[(_(!0),u(V,null,L(o.value.hardest_personas,(n,m)=>(_(),u("div",{key:m,class:"card lift tier-card"},[s("div",ss,[s("strong",null,t(n.persona_name),1),s("span",ts,"#"+t(m+1),1)]),s("div",es,[s("span",os,t(n.wins)+"W",1),s("span",as,t(n.losses)+"L",1),s("span",ls,t(n.plays)+" plays",1)]),s("div",ns,t(a(l).t("score"))+": "+t(n.avg_score),1)]))),128))])])}}},cs=x(is,[["__scopeId","data-v-45823937"]]);export{cs as default};
+1
View File
@@ -0,0 +1 @@
.stat[data-v-45823937]{text-align:center;min-width:110px}.stat div[data-v-45823937]{color:var(--muted);font-size:12px}.stat strong[data-v-45823937]{font-size:20px}.filter-bar[data-v-45823937]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.filter-bar input[type=date][data-v-45823937]{width:auto}.grid[data-v-45823937]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.tier-card[data-v-45823937]{display:flex;flex-direction:column}.badge.won[data-v-45823937]{background:#dcfce7;color:#166534}.badge.lost[data-v-45823937]{background:#fee2e2;color:#991b1b}.badge.not_tried[data-v-45823937]{background:#eef2ff;color:#4338ca}.bar[data-v-45823937]{background:#eef0f5;border-radius:999px;height:10px;overflow:hidden;margin-top:10px}.bar-fill[data-v-45823937]{background:linear-gradient(90deg,var(--accent),var(--accent-2));height:100%;border-radius:999px;transition:width .4s ease}.users-btn[data-v-45823937]{background:#0ea5e9;border-color:transparent;color:#fff;font-weight:600}.users-btn[data-v-45823937]:not(:disabled):hover{background:#0284c7;box-shadow:0 6px 16px #0ea5e959}
-1
View File
@@ -1 +0,0 @@
import{_ as K,k as M,q as k,c as t,l as S,m as D,u as l,a as s,t as e,z as C,e as i,j as m,i as n,F,p as I,w as q,v as E,b as H,h as J,r as c,B as L,s as O,o}from"./index-B2m5OgR7.js";const P={class:"row",style:{"align-items":"center","margin-bottom":"12px"}},R={style:{margin:"0"}},U={key:0,class:"muted"},$=["disabled"],A={key:0,class:"spinner",style:{"margin-right":"4px"}},G={key:0,class:"card task"},Q={key:0},W={key:0,class:"bubble msg-customer muted"},X={key:2,class:"composer"},Y=["disabled","placeholder"],Z=["disabled"],ee={key:3,class:"card debrief"},se={key:0},ae={class:"json"},te={class:"primary",style:{"margin-top":"12px"}},le={__name:"Chat",setup(ne){const N=J(),_=N.params.gid,g=N.params.pid,r=c(null),f=c(!1),v=c([]),p=c(""),d=c(!1),u=c(null),w=c(""),j=c(null);function T(){L(()=>{y.value&&(y.value.scrollTop=y.value.scrollHeight)})}const y=c(null);M(async()=>{r.value=(await k.getPersona(_,g)).persona;const a=await k.chatStart(_,g);j.value=a.session.id,a.session.task&&(w.value=a.session.task),v.value=a.session.messages||[],f.value=!0,v.value.length&&T()});async function V(){if(p.value.trim()){d.value=!0;try{const a=await k.chatSend(_,g,p.value.trim());v.value=a.messages,p.value="",T()}catch(a){alert(a.message)}finally{d.value=!1}}}async function z(){if(confirm(n.t("finish")+"?")){d.value=!0;try{const a=await k.chatFinish(_,g);u.value=a.debrief,v.value=a.session.messages}catch(a){alert(a.message)}finally{d.value=!1}}}return(a,b)=>{const B=O("router-link");return o(),t("div",null,[S(B,{to:`/groups/${l(_)}/personas`,class:"btn-back"},{default:D(()=>[m("← "+e(l(n).t("personas")),1)]),_:1},8,["to"]),s("div",P,[s("h2",R,e(r.value?r.value.name:"..."),1),s("span",{class:C(["badge",r.value&&r.value.channel])},e(r.value?r.value.channel:""),3),r.value?(o(),t("span",U,e(r.value.profession)+" · "+e(r.value.age_group),1)):i("",!0),s("button",{class:"danger",style:{"margin-left":"auto"},onClick:z,disabled:v.value.length===0||!!u.value},[d.value?(o(),t("span",A)):i("",!0),m(e(l(n).t("finish")),1)],8,$)]),f.value?i("",!0):(o(),t("div",G,[s("strong",null,"📣 "+e(l(n).t("sellerInitiated")),1),w.value?(o(),t("div",Q,e(w.value),1)):i("",!0)])),f.value?(o(),t("div",{key:1,class:"thread",ref_key:"thread",ref:y},[(o(!0),t(F,null,I(v.value,(h,x)=>(o(),t("div",{key:x,class:C(["bubble",h.role==="seller"?"msg-seller":"msg-customer"])},e(h.text),3))),128)),d.value?(o(),t("div",W,"...")):i("",!0)],512)):i("",!0),f.value&&!u.value?(o(),t("div",X,[q(s("input",{"onUpdate:modelValue":b[0]||(b[0]=h=>p.value=h),onKeyup:H(V,["enter"]),disabled:d.value,placeholder:l(n).t("send")},null,40,Y),[[E,p.value]]),s("button",{class:"primary",onClick:V,disabled:d.value||!p.value.trim()},e(l(n).t("send")),9,Z)])):i("",!0),u.value?(o(),t("div",ee,[s("h3",null,e(l(n).t("debrief")),1),s("p",null,[s("span",{class:C(["badge",u.value.outcome])},e(u.value.outcome==="won"?l(n).t("won"):l(n).t("lost")),3),m(" — "+e(l(n).t("score"))+": ",1),s("strong",null,e(u.value.score),1)]),s("p",null,[s("strong",null,e(l(n).t("pain"))+":",1),m(" "+e(u.value.pain||"—"),1)]),s("p",null,[s("strong",null,e(l(n).t("why"))+":",1),m(" "+e(u.value.why),1)]),u.value.coaching&&u.value.coaching.length?(o(),t("div",se,[b[1]||(b[1]=s("strong",null,"Coaching:",-1)),s("ul",null,[(o(!0),t(F,null,I(u.value.coaching,(h,x)=>(o(),t("li",{key:x},e(h),1))),128))])])):i("",!0),s("details",null,[s("summary",null,e(l(n).t("reveal")),1),s("pre",ae,e(JSON.stringify(u.value.revealed_persona,null,2)),1)]),S(B,{to:"/"},{default:D(()=>[s("button",te,e(l(n).t("dashboard")),1)]),_:1})])):i("",!0)])}}},ue=K(le,[["__scopeId","data-v-4f54526a"]]);export{ue as default};
+1
View File
@@ -0,0 +1 @@
import{_ as G,k as K,q as x,c as a,l as j,m as D,u as n,a as s,t,i as o,z as C,e as u,j as m,F as T,p as S,w as M,v as P,b as q,h as H,r as c,B as J,s as O,o as l}from"./index-BhdfH8-z.js";const R={class:"card guide"},U={style:{margin:"6px 0 0","line-height":"1.7"}},$={class:"row",style:{"align-items":"center","margin-bottom":"12px"}},Q={style:{margin:"0"}},W={key:0,class:"muted"},X=["disabled"],Y={key:0,class:"spinner",style:{"margin-right":"4px"}},Z={key:0,class:"card task"},ee={key:0},se={key:0,class:"bubble msg-customer muted"},te={key:2,class:"composer"},ae=["disabled","placeholder"],le=["disabled"],ne={key:3,class:"card debrief"},oe={key:0},ie={key:0,class:"reveal-grid"},re={class:"rk"},ue={class:"rv"},ce={class:"primary",style:{"margin-top":"12px"}},de={__name:"Chat",setup(ve){const B=H(),g=B.params.gid,f=B.params.pid,r=c(null),y=c(!1),_=c([]),p=c(""),d=c(!1),i=c(null),w=c(""),F=c(null);function L(){J(()=>{b.value&&(b.value.scrollTop=b.value.scrollHeight)})}const b=c(null);K(async()=>{r.value=(await x.getPersona(g,f)).persona;const e=await x.chatStart(g,f);F.value=e.session.id,e.session.task&&(w.value=e.session.task),_.value=e.session.messages||[],y.value=!0,_.value.length&&L()});async function N(){if(p.value.trim()){d.value=!0;try{const e=await x.chatSend(g,f,p.value.trim());_.value=e.messages,p.value="",L()}catch(e){alert(e.message)}finally{d.value=!1}}}async function I(){if(confirm(o.t("finish")+"?")){d.value=!0;try{const e=await x.chatFinish(g,f);i.value=e.debrief,_.value=e.session.messages}catch(e){alert(e.message)}finally{d.value=!1}}}const A={name:"ชื่อ",tier:"ระดับ",difficulty:"ความยาก",profession:"อาชีพ",age_group:"ช่วงอายุ",location:"พื้นที่",income:"รายได้",budget:"งบประมาณ",lifestyle:"ไลฟ์สไตล์",background:"ภูมิหลัง",personality:"บุคลิก",communication_style:"สไตล์การสื่อสาร",goal:"เป้าหมาย",decision_timeline:"กรอบตัดสินใจ",pains:"ปัญหา (Pain)",objections:"ข้อโต้แย้ง",negotiation_levers:"สิ่งที่ใช้ต่อรอง",opener:"บทเปิดบทสนทนา",channel:"ช่องทาง",initiation_mode:"ใครเริ่มก่อน",product_context:"บริบทสินค้า"};function E(e){return A[e]||e}function z(e){return Array.isArray(e)?e.join(", "):e&&typeof e=="object"?JSON.stringify(e):String(e??"—")}return(e,k)=>{const V=O("router-link");return l(),a("div",null,[j(V,{to:`/groups/${n(g)}/personas`,class:"btn-back"},{default:D(()=>[m("← "+t(n(o).t("personas")),1)]),_:1},8,["to"]),s("div",R,[s("strong",null,"🎯 "+t(n(o).t("chatGuideTitle")),1),s("p",U,t(n(o).t("chatGuideText")),1)]),s("div",$,[s("h2",Q,t(r.value?r.value.name:"..."),1),s("span",{class:C(["badge",r.value&&r.value.channel])},t(r.value?r.value.channel:""),3),r.value?(l(),a("span",W,t(r.value.profession)+" · "+t(r.value.age_group),1)):u("",!0),s("button",{class:"danger",style:{"margin-left":"auto"},onClick:I,disabled:_.value.length===0||!!i.value},[d.value?(l(),a("span",Y)):u("",!0),m(t(n(o).t("finish")),1)],8,X)]),y.value?u("",!0):(l(),a("div",Z,[s("strong",null,"📣 "+t(n(o).t("sellerInitiated")),1),w.value?(l(),a("div",ee,t(w.value),1)):u("",!0)])),y.value?(l(),a("div",{key:1,class:"thread",ref_key:"thread",ref:b},[(l(!0),a(T,null,S(_.value,(v,h)=>(l(),a("div",{key:h,class:C(["bubble",v.role==="seller"?"msg-seller":"msg-customer"])},t(v.text),3))),128)),d.value?(l(),a("div",se,"...")):u("",!0)],512)):u("",!0),y.value&&!i.value?(l(),a("div",te,[M(s("input",{"onUpdate:modelValue":k[0]||(k[0]=v=>p.value=v),onKeyup:q(N,["enter"]),disabled:d.value,placeholder:n(o).t("send")},null,40,ae),[[P,p.value]]),s("button",{class:"primary",onClick:N,disabled:d.value||!p.value.trim()},t(n(o).t("send")),9,le)])):u("",!0),i.value?(l(),a("div",ne,[s("h3",null,t(n(o).t("debrief")),1),s("p",null,[s("span",{class:C(["badge",i.value.outcome])},t(i.value.outcome==="won"?n(o).t("won"):n(o).t("lost")),3),m(" — "+t(n(o).t("score"))+": ",1),s("strong",null,t(i.value.score),1)]),s("p",null,[s("strong",null,t(n(o).t("pain"))+":",1),m(" "+t(i.value.pain||"—"),1)]),s("p",null,[s("strong",null,t(n(o).t("why"))+":",1),m(" "+t(i.value.why),1)]),i.value.coaching&&i.value.coaching.length?(l(),a("div",oe,[k[1]||(k[1]=s("strong",null,"Coaching:",-1)),s("ul",null,[(l(!0),a(T,null,S(i.value.coaching,(v,h)=>(l(),a("li",{key:h},t(v),1))),128))])])):u("",!0),s("details",null,[s("summary",null,"🔎 "+t(n(o).t("reveal")),1),i.value.revealed_persona?(l(),a("div",ie,[(l(!0),a(T,null,S(i.value.revealed_persona,(v,h)=>(l(),a("div",{key:h,class:"rev"},[s("span",re,t(E(h)),1),s("span",ue,t(z(v)),1)]))),128))])):u("",!0)]),j(V,{to:"/"},{default:D(()=>[s("button",ce,t(n(o).t("dashboard")),1)]),_:1})])):u("",!0)])}}},pe=G(de,[["__scopeId","data-v-16c880f2"]]);export{pe as Line truncated
-1
View File
@@ -1 +0,0 @@
.thread[data-v-4f54526a]{background:#eceff4;border:1px solid var(--border);border-radius:var(--radius);padding:16px;min-height:320px;max-height:52vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.bubble[data-v-4f54526a]{max-width:72%;padding:10px 14px;white-space:pre-wrap;word-break:break-word}.composer[data-v-4f54526a]{display:flex;gap:8px;margin-top:12px}.task[data-v-4f54526a]{margin-bottom:12px;background:#fff7ed;border-color:#fed7aa}.debrief[data-v-4f54526a]{margin-top:16px}.json[data-v-4f54526a]{background:#0f172a;color:#9ca3af;padding:10px;border-radius:8px;font-size:11px;overflow:auto;max-height:260px}button.danger[data-v-4f54526a]{background:var(--red);color:#fff;border:none}
+1
View File
@@ -0,0 +1 @@
.thread[data-v-16c880f2]{background:#eceff4;border:1px solid var(--border);border-radius:var(--radius);padding:16px;min-height:320px;max-height:52vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.bubble[data-v-16c880f2]{max-width:72%;padding:10px 14px;white-space:pre-wrap;word-break:break-word}.composer[data-v-16c880f2]{display:flex;gap:8px;margin-top:12px}.task[data-v-16c880f2]{margin-bottom:12px;background:#fff7ed;border-color:#fed7aa}.debrief[data-v-16c880f2]{margin-top:16px}.json[data-v-16c880f2]{background:#0f172a;color:#9ca3af;padding:10px;border-radius:8px;font-size:11px;overflow:auto;max-height:260px}button.danger[data-v-16c880f2]{background:var(--red);color:#fff;border:none}.guide[data-v-16c880f2]{background:#eef2ff;border-color:#c7d2fe;margin-bottom:12px}.reveal-grid[data-v-16c880f2]{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.rev[data-v-16c880f2]{display:flex;flex-direction:column;background:#f8fafc;border:1px solid var(--border);border-radius:8px;padding:8px 10px}.rk[data-v-16c880f2]{font-size:12px;color:var(--muted)}.rv[data-v-16c880f2]{font-size:13px;color:var(--ink);margin-top:2px}@media (max-width: 640px){.reveal-grid[data-v-16c880f2]{grid-template-columns:1fr}}
@@ -1 +1 @@
import{_ as k,c as f,l as V,m as w,a as e,j as r,t as a,u as s,i as u,w as d,v as m,C as _,e as C,s as B,r as c,q as S,g as U,o as h}from"./index-B2m5OgR7.js";const N={class:"card"},D={style:{"margin-top":"0"}},E={class:"row"},G={style:{flex:"1"}},M={value:"facebook"},P={value:"line"},q={style:{flex:"1"}},F={value:"th"},O={value:"en"},T={key:0,class:"error"},j=["disabled"],A={__name:"GroupBuilder",setup(I){const b=U(),t=c({product:"",segment:"",description:"",channel:"facebook",language:"th"}),v=c([]),i=c(""),p=c(!1);function x(n){v.value=Array.from(n.target.files||[])}async function y(){p.value=!0,i.value="";try{const n=new FormData;n.append("product",t.value.product),n.append("segment",t.value.segment),n.append("description",t.value.description),n.append("channel",t.value.channel),n.append("language",t.value.language),v.value.forEach(o=>n.append("files",o));const g=(await S.createGroup(n)).group.id;b.push(`/admin/groups/${g}/edit`)}catch(n){i.value=n.message}finally{p.value=!1}}return(n,l)=>{const g=B("router-link");return h(),f("div",null,[V(g,{to:"/training",class:"btn-back"},{default:w(()=>[r("← "+a(s(u).t("training")),1)]),_:1}),l[7]||(l[7]=e("div",{class:"card guide"},[e("strong",null,"📋 วิธีสร้างกลุ่มบุคคลต้นแบบ"),e("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[e("li",null,[r("กรอก "),e("strong",null,"ชื่อ/รายละเอียดสินค้าหรือบริการ"),r(" ที่อยากให้ทีมฝึกขาย (ช่องด้านล่าง)")]),e("li",null,"(ไม่บังคับ) ระบุกลุ่มลูกค้าเป้าหมาย หรืออัปโหลดไฟล์เอกสารสินค้า .pdf/.md/.txt"),e("li",null,[r("กด "),e("strong",null,"สร้าง"),r(" — ระบบจะพาไปหน้าสร้างบุคคลต้นแบบ (ลูกค้าจำลอง)")])])],-1)),e("div",N,[e("h2",D,"📦 "+a(s(u).t("addProduct")),1),e("label",null,[r(a(s(u).t("product"))+" ",1),l[5]||(l[5]=e("span",{class:"req"},"*",-1))]),d(e("textarea",{"onUpdate:modelValue":l[0]||(l[0]=o=>t.value.product=o),rows:"3",placeholder:"เช่น ระบบ POS สำหรับร้านอาหาร Cloud POS for small restaurants"},null,512),[[m,t.value.product]]),e("label",null,a(s(u).t("segment")),1),d(e("input",{"onUpdate:modelValue":l[1]||(l[1]=o=>t.value.segment=o),placeholder:"เช่น SMEs ร้านอาหารในกรุงเทพ"},null,512),[[m,t.value.segment]]),e("label",null,a(s(u).t("description")),1),d(e("textarea",{"onUpdate:modelValue":l[2]||(l[2]=o=>t.value.description=o),rows:"3",placeholder:"รายละเอียดเพิ่มเติม เช่น จุดเด่นสินค้า ราคา ฯลฯ (ไม่บังคับ)"},null,512),[[m,t.value.description]]),e("div",E,[e("div",G,[e("label",null,a(s(u).t("channel")),1),d(e("select",{"onUpdate:modelValue":l[3]||(l[3]=o=>t.value.channel=o)},[e("option",M,a(s(u).t("facebook")),1),e("option",P,a(s(u).t("line")),1)],512),[[_,t.value.channel]])]),e("div",q,[e("label",null,a(s(u).t("language")),1),d(e("select",{"onUpdate:modelValue":l[4]||(l[4]=o=>t.value.language=o)},[e("option",F,a(s(u).t("thai")),1),e("option",O,a(s(u).t("english")),1)],512),[[_,t.value.language]])])]),l[6]||(l[6]=e("label",null,"📎 ไฟล์เอกสารสินค้า (.pdf/.md/.txt) — ใช้เป็นข้อมูลให้ระบบได้",-1)),e("input",{type:"file",multiple:"",accept:".pdf,.md,.txt",onChange:x},null,32),i.value?(h(),f("div",T,a(i.value),1)):C("",!0),e("button",{class:"primary",style:{"margin-top":"16px"},disabled:p.value||!t.value.product&&!v.value.length,onClick:y},a(p.value?"กำลังสร้าง…":"➕ สร้างกลุ่มบุคคลต้นแบบ"),9,j)])])}}},$=k(A,[["__scopeId","data-v-c7f3b0ac"]]);export{$ as default};
import{_ as k,c as f,l as V,m as w,a as e,j as r,t as a,u as s,i as u,w as d,v as m,C as _,e as C,s as B,r as c,q as S,g as U,o as h}from"./index-BhdfH8-z.js";const N={class:"card"},D={style:{"margin-top":"0"}},E={class:"row"},G={style:{flex:"1"}},M={value:"facebook"},P={value:"line"},q={style:{flex:"1"}},F={value:"th"},O={value:"en"},T={key:0,class:"error"},j=["disabled"],A={__name:"GroupBuilder",setup(I){const b=U(),t=c({product:"",segment:"",description:"",channel:"facebook",language:"th"}),v=c([]),i=c(""),p=c(!1);function x(n){v.value=Array.from(n.target.files||[])}async function y(){p.value=!0,i.value="";try{const n=new FormData;n.append("product",t.value.product),n.append("segment",t.value.segment),n.append("description",t.value.description),n.append("channel",t.value.channel),n.append("language",t.value.language),v.value.forEach(o=>n.append("files",o));const g=(await S.createGroup(n)).group.id;b.push(`/admin/groups/${g}/edit`)}catch(n){i.value=n.message}finally{p.value=!1}}return(n,l)=>{const g=B("router-link");return h(),f("div",null,[V(g,{to:"/training",class:"btn-back"},{default:w(()=>[r("← "+a(s(u).t("training")),1)]),_:1}),l[7]||(l[7]=e("div",{class:"card guide"},[e("strong",null,"📋 วิธีสร้างกลุ่มบุคคลต้นแบบ"),e("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[e("li",null,[r("กรอก "),e("strong",null,"ชื่อ/รายละเอียดสินค้าหรือบริการ"),r(" ที่อยากให้ทีมฝึกขาย (ช่องด้านล่าง)")]),e("li",null,"(ไม่บังคับ) ระบุกลุ่มลูกค้าเป้าหมาย หรืออัปโหลดไฟล์เอกสารสินค้า .pdf/.md/.txt"),e("li",null,[r("กด "),e("strong",null,"สร้าง"),r(" — ระบบจะพาไปหน้าสร้างบุคคลต้นแบบ (ลูกค้าจำลอง)")])])],-1)),e("div",N,[e("h2",D,"📦 "+a(s(u).t("addProduct")),1),e("label",null,[r(a(s(u).t("product"))+" ",1),l[5]||(l[5]=e("span",{class:"req"},"*",-1))]),d(e("textarea",{"onUpdate:modelValue":l[0]||(l[0]=o=>t.value.product=o),rows:"3",placeholder:"เช่น ระบบ POS สำหรับร้านอาหาร Cloud POS for small restaurants"},null,512),[[m,t.value.product]]),e("label",null,a(s(u).t("segment")),1),d(e("input",{"onUpdate:modelValue":l[1]||(l[1]=o=>t.value.segment=o),placeholder:"เช่น SMEs ร้านอาหารในกรุงเทพ"},null,512),[[m,t.value.segment]]),e("label",null,a(s(u).t("description")),1),d(e("textarea",{"onUpdate:modelValue":l[2]||(l[2]=o=>t.value.description=o),rows:"3",placeholder:"รายละเอียดเพิ่มเติม เช่น จุดเด่นสินค้า ราคา ฯลฯ (ไม่บังคับ)"},null,512),[[m,t.value.description]]),e("div",E,[e("div",G,[e("label",null,a(s(u).t("channel")),1),d(e("select",{"onUpdate:modelValue":l[3]||(l[3]=o=>t.value.channel=o)},[e("option",M,a(s(u).t("facebook")),1),e("option",P,a(s(u).t("line")),1)],512),[[_,t.value.channel]])]),e("div",q,[e("label",null,a(s(u).t("language")),1),d(e("select",{"onUpdate:modelValue":l[4]||(l[4]=o=>t.value.language=o)},[e("option",F,a(s(u).t("thai")),1),e("option",O,a(s(u).t("english")),1)],512),[[_,t.value.language]])])]),l[6]||(l[6]=e("label",null,"📎 ไฟล์เอกสารสินค้า (.pdf/.md/.txt) — ใช้เป็นข้อมูลให้ระบบได้",-1)),e("input",{type:"file",multiple:"",accept:".pdf,.md,.txt",onChange:x},null,32),i.value?(h(),f("div",T,a(i.value),1)):C("",!0),e("button",{class:"primary",style:{"margin-top":"16px"},disabled:p.value||!t.value.product&&!v.value.length,onClick:y},a(p.value?"กำลังสร้าง…":"➕ สร้างกลุ่มบุคคลต้นแบบ"),9,j)])])}}},$=k(A,[["__scopeId","data-v-c7f3b0ac"]]);export{$ as default};
@@ -1,4 +1,4 @@
import{_ as G,D as z,o as v,c as f,a as l,t as i,w as s,v as u,C as A,e as c,E as M,r as k,k as D,l as S,m as I,u as T,i as N,j as y,F as P,p as E,G as q,h as J,q as _,s as R,z as F}from"./index-B2m5OgR7.js";const H={class:"persona-form"},K={class:"muted"},Q={class:"sec"},W={class:"row"},X={class:"f"},Y={class:"f"},Z={class:"f"},h={class:"row"},ll={class:"f"},el={class:"f"},nl={class:"f"},tl={class:"sec"},ol={class:"row"},sl={class:"f"},il={class:"f"},al={class:"f"},ul={class:"sec"},rl={class:"sec"},dl={class:"row"},ml={class:"f"},vl={class:"f"},fl={key:0,class:"muted"},gl={class:"row actions"},bl=["disabled"],yl={__name:"PersonaForm",props:{persona:{type:Object,required:!0}},emits:["save","cancel"],setup(w,{emit:L}){const x=w,$=L,t=M({name:"",difficulty:1,tier:"B",profession:"",age_group:"",location:"",income:"",budget:"",lifestyle:"",background:"",personality:"",communication_style:"",goal:"",decision_timeline:"",opener:"",channel:"line",initiation_mode:"customer",special:""}),d=k(""),b=k(""),m=k(""),V=k(!1);function U(n){return Array.isArray(n)?n.join(`
import{_ as G,D as z,o as v,c as f,a as l,t as i,w as s,v as u,C as A,e as c,E as M,r as k,k as D,l as S,m as I,u as T,i as N,j as y,F as P,p as E,G as q,h as J,q as _,s as R,z as F}from"./index-BhdfH8-z.js";const H={class:"persona-form"},K={class:"muted"},Q={class:"sec"},W={class:"row"},X={class:"f"},Y={class:"f"},Z={class:"f"},h={class:"row"},ll={class:"f"},el={class:"f"},nl={class:"f"},tl={class:"sec"},ol={class:"row"},sl={class:"f"},il={class:"f"},al={class:"f"},ul={class:"sec"},rl={class:"sec"},dl={class:"row"},ml={class:"f"},vl={class:"f"},fl={key:0,class:"muted"},gl={class:"row actions"},bl=["disabled"],yl={__name:"PersonaForm",props:{persona:{type:Object,required:!0}},emits:["save","cancel"],setup(w,{emit:L}){const x=w,$=L,t=M({name:"",difficulty:1,tier:"B",profession:"",age_group:"",location:"",income:"",budget:"",lifestyle:"",background:"",personality:"",communication_style:"",goal:"",decision_timeline:"",opener:"",channel:"line",initiation_mode:"customer",special:""}),d=k(""),b=k(""),m=k(""),V=k(!1);function U(n){return Array.isArray(n)?n.join(`
`):String(n||"")}function C(n){return n.split(`
`).map(e=>e.trim()).filter(Boolean)}z(()=>x.persona,n=>{Object.assign(t,{name:(n==null?void 0:n.name)||"",difficulty:(n==null?void 0:n.difficulty)??1,tier:(n==null?void 0:n.tier)||"B",profession:(n==null?void 0:n.profession)||"",age_group:(n==null?void 0:n.age_group)||"",location:(n==null?void 0:n.location)||"",income:(n==null?void 0:n.income)||"",budget:(n==null?void 0:n.budget)||"",lifestyle:(n==null?void 0:n.lifestyle)||"",background:(n==null?void 0:n.background)||"",personality:(n==null?void 0:n.personality)||"",communication_style:(n==null?void 0:n.communication_style)||"",goal:(n==null?void 0:n.goal)||"",decision_timeline:(n==null?void 0:n.decision_timeline)||"",opener:(n==null?void 0:n.opener)||"",channel:(n==null?void 0:n.channel)||"line",initiation_mode:(n==null?void 0:n.initiation_mode)||"customer",special:(n==null?void 0:n.special)||""}),d.value=U(n==null?void 0:n.pains),b.value=U(n==null?void 0:n.objections),m.value=U(n==null?void 0:n.negotiation_levers)},{immediate:!0});function B(){$("save",{...t,pains:C(d.value),objections:C(b.value),negotiation_levers:C(m.value)})}return(n,e)=>(v(),f("div",H,[l("h3",null,i(w.persona.name||"New persona"),1),l("p",K,i(w.persona.profession)+" · "+i(w.persona.personality),1),l("div",Q,[e[28]||(e[28]=l("h4",null,"👤 ข้อมูลพื้นฐาน",-1)),l("div",W,[l("div",X,[e[21]||(e[21]=l("label",null,"ชื่อ",-1)),s(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.name=o)},null,512),[[u,t.name]])]),l("div",Y,[e[22]||(e[22]=l("label",null,"ระดับความยาก (1-5)",-1)),s(l("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>t.difficulty=o),type:"number",min:"1",max:"5"},null,512),[[u,t.difficulty,void 0,{number:!0}]])]),l("div",Z,[e[24]||(e[24]=l("label",null,"ระดับลูกค้า",-1)),s(l("select",{"onUpdate:modelValue":e[2]||(e[2]=o=>t.tier=o)},[...e[23]||(e[23]=[l("option",{value:"A"},"A — พร้อมตัดสินใจซื้อ",-1),l("option",{value:"B"},"B — ยังไม่แน่ใจ",-1),l("option",{value:"C"},"C — ไม่สนใจแต่มีปัญหา",-1)])],512),[[A,t.tier]])])]),l("div",h,[l("div",ll,[e[25]||(e[25]=l("label",null,"อาชีพ",-1)),s(l("input",{"onUpdate:modelValue":e[3]||(e[3]=o=>t.profession=o)},null,512),[[u,t.profession]])]),l("div",el,[e[26]||(e[26]=l("label",null,"ช่วงอายุ",-1)),s(l("input",{"onUpdate:modelValue":e[4]||(e[4]=o=>t.age_group=o)},null,512),[[u,t.age_group]])]),l("div",nl,[e[27]||(e[27]=l("label",null,"พื้นที่",-1)),s(l("input",{"onUpdate:modelValue":e[5]||(e[5]=o=>t.location=o)},null,512),[[u,t.location]])])])]),l("div",tl,[e[32]||(e[32]=l("h4",null,"💼 ข้อมูลลูกค้า",-1)),l("div",ol,[l("div",sl,[e[29]||(e[29]=l("label",null,"รายได้/สถานะการเงิน",-1)),s(l("input",{"onUpdate:modelValue":e[6]||(e[6]=o=>t.income=o)},null,512),[[u,t.income]])]),l("div",il,[e[30]||(e[30]=l("label",null,"งบประมาณ",-1)),s(l("input",{"onUpdate:modelValue":e[7]||(e[7]=o=>t.budget=o)},null,512),[[u,t.budget]])]),l("div",al,[e[31]||(e[31]=l("label",null,"ไลฟ์สไตล์",-1)),s(l("input",{"onUpdate:modelValue":e[8]||(e[8]=o=>t.lifestyle=o)},null,512),[[u,t.lifestyle]])])]),e[33]||(e[33]=l("label",null,"ภูมิหลัง",-1)),s(l("textarea",{"onUpdate:modelValue":e[9]||(e[9]=o=>t.background=o)},null,512),[[u,t.background]]),e[34]||(e[34]=l("label",null,"บุคลิก / วิธีพูดคุย",-1)),s(l("textarea",{"onUpdate:modelValue":e[10]||(e[10]=o=>t.personality=o)},null,512),[[u,t.personality]]),e[35]||(e[35]=l("label",null,"สไตล์การสื่อสาร",-1)),s(l("textarea",{"onUpdate:modelValue":e[11]||(e[11]=o=>t.communication_style=o)},null,512),[[u,t.communication_style]])]),l("div",ul,[e[36]||(e[36]=l("h4",null,"🎯 การขาย",-1)),e[37]||(e[37]=l("label",null,"เป้าหมาย",-1)),s(l("textarea",{"onUpdate:modelValue":e[12]||(e[12]=o=>t.goal=o)},null,512),[[u,t.goal]]),e[38]||(e[38]=l("label",null,"กรอบเวลาในการตัดสินใจ",-1)),s(l("input",{"onUpdate:modelValue":e[13]||(e[13]=o=>t.decision_timeline=o)},null,512),[[u,t.decision_timeline]]),e[39]||(e[39]=l("label",null,"Pain (ปัญหา) แบบ 1 ต่อบรรทัด",-1)),s(l("textarea",{"onUpdate:modelValue":e[14]||(e[14]=o=>d.value=o),placeholder:`เช่น ต้นทุนสูงเกินไป
ระบบล้าสมัย`},null,512),[[u,d.value]]),e[40]||(e[40]=l("label",null,"ข้อโต้แย้ง (Objections) 1 ต่อบรรทัด",-1)),s(l("textarea",{"onUpdate:modelValue":e[15]||(e[15]=o=>b.value=o)},null,512),[[u,b.value]]),e[41]||(e[41]=l("label",null,"สิ่งที่ใช้ต่อรอง (เช่น ส่วนลด, ฟรีติดตั้ง)",-1)),s(l("textarea",{"onUpdate:modelValue":e[16]||(e[16]=o=>m.value=o)},null,512),[[u,m.value]]),e[42]||(e[42]=l("label",null,"ช่องทางสำหรับลูกค้าเปิดบทสนทนา (opener)",-1)),s(l("textarea",{"onUpdate:modelValue":e[17]||(e[17]=o=>t.opener=o)},null,512),[[u,t.opener]])]),l("div",rl,[e[47]||(e[47]=l("h4",null,"📡 ช่องทาง & โหมด",-1)),l("div",dl,[l("div",ml,[e[44]||(e[44]=l("label",null,"ช่องทาง",-1)),s(l("select",{"onUpdate:modelValue":e[18]||(e[18]=o=>t.channel=o)},[...e[43]||(e[43]=[l("option",{value:"line"},"LINE",-1),l("option",{value:"facebook"},"Facebook",-1)])],512),[[A,t.channel]])]),l("div",vl,[e[46]||(e[46]=l("label",null,"ใครเริ่มคุยก่อน",-1)),s(l("select",{"onUpdate:modelValue":e[19]||(e[19]=o=>t.initiation_mode=o)},[...e[45]||(e[45]=[l("option",{value:"customer"},"ลูกค้าทักก่อน",-1),l("option",{value:"seller"},"เราต้องเริ่มขาย (เชิงรุก)",-1)])],512),[[A,t.initiation_mode]])])]),t.special?(v(),f("label",fl,"พิเศษ: "+i(t.special),1)):c("",!0)]),l("div",gl,[l("button",{class:"primary",onClick:B,disabled:V.value},i(V.value?"กำลังบันทึก…":"💾 บันทึกบุคคลต้นแบบ"),9,bl),l("button",{onClick:e[20]||(e[20]=o=>n.$emit("cancel"))},"ปิด")])]))}},kl=G(yl,[["__scopeId","data-v-738758fc"]]),xl={class:"row",style:{"align-items":"center","margin-bottom":"8px"}},Vl={style:{margin:"0"}},cl={class:"row",style:{"margin-left":"auto",gap:"10px"}},wl=["disabled"],$l={key:0,class:"spinner"},Ul={key:0,class:"muted"},Cl={key:1,class:"error",style:{margin:"12px 0"}},pl={key:2,class:"card empty-state"},_l={class:"grid"},Bl={class:"row",style:{"justify-content":"space-between","align-items":"center"}},jl={class:"diff"},Al={class:"muted"},Nl={class:"muted"},Pl=["onClick"],El={class:"modal"},Ll={__name:"GroupEdit",setup(w){const x=J().params.gid,$=k(null),t=k([]),d=k(!1),b=k(""),m=k(null);async function V(){const a=await _.getGroup(x);$.value=a.group,t.value=(await _.listPersonas(x)).personas}function U(a){return t.value.filter(r=>r.tier===a)}function C(a){return N.t(a==="A"?"tierA":a==="B"?"tierB":"tierC")}function B(a){return{A:"tier-a",B:"tier-b",C:"tier-c"}[a]||""}async function n(){d.value=!0,b.value="";try{const a=await _.analyzeGroup(x);t.value=a.personas,await V()}catch(a){b.value=a.message}finally{d.value=!1}}function e(a){m.value=JSON.parse(JSON.stringify(a))}async function o(a){d.value=!0;try{await _.updatePersona(x,m.value.id,a),m.value=null,await V()}catch(r){b.value=r.message}finally{d.value=!1}}return D(V),(a,r)=>{const O=R("router-link");return v(),f("div",null,[S(O,{to:"/training",class:"btn-back"},{default:I(()=>[y("← "+i(T(N).t("training")),1)]),_:1}),l("div",xl,[l("h2",Vl,"🛠 "+i(T(N).t("managePersonas")),1),l("div",cl,[l("button",{onClick:n,disabled:d.value,class:"primary"},[d.value?(v(),f("span",$l)):c("",!0),y(i(d.value?"กำลังสร้าง…":"✨ สร้าง/วิเคราะห์บุคคลต้นแบบ"),1)],8,wl)])]),$.value?(v(),f("p",Ul,[r[2]||(r[2]=y("สินค้า: ",-1)),l("strong",null,i($.value.title),1)])):c("",!0),b.value?(v(),f("div",Cl,i(b.value),1)):c("",!0),r[4]||(r[4]=l("div",{class:"card guide"},[l("strong",null,"วิธีใช้หน้านี้"),l("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[l("li",null,[y("กดปุ่ม "),l("strong",null,"✨ สร้าง/วิเคราะห์บุคคลต้นแบบ"),y(" เพื่อให้ระบบสร้างลูกค้าจำลอง 15 คน (ระดับ A/B/C)")]),l("li",null,[y("แต่ละการ์ดคือลูกค้าจำลอง 1 คน — กด "),l("strong",null,"✏️ แก้ไข"),y(" เพื่อปรับรายละเอียดให้ตรงใจ")]),l("li",null,[y("เมื่อพร้อมให้ผู้ใช้ฝึก กด "),l("strong",null,"เปิดใช้งาน"),y(" (ยังทำในขั้นถัดไป)")])])],-1)),t.value.length===0&&!d.value?(v(),f("div",pl,[...r[3]||(r[3]=[l("strong",null,"ยังไม่มีบุคคลต้นแบบ",-1),l("span",null,'กด "✨ สร้าง/วิเคราะห์บุคคลต้นแบบ" เพื่อให้ระบบสร้างลูกค้าจำลองให้',-1)])] Line truncated
@@ -1 +1 @@
import{_ as b,c as d,a as e,t as s,u as c,i as o,w as y,v as x,b as w,d as k,e as S,r as l,f,g as V,h as B,o as v}from"./index-B2m5OgR7.js";const C={class:"login-wrap"},D={class:"card login-card"},K={class:"pw-wrap"},E=["type"],L=["aria-label"],M={key:0,class:"error",role:"alert"},N=["disabled"],R={key:0,class:"spinner"},U={key:1},q={__name:"Login",setup(H){const g=B(),_=V(),n=l(""),u=l(""),a=l(!1),r=l(""),i=l(!1);async function m(){r.value="",i.value=!0;try{await f.login(n.value.trim(),u.value),f.mustSetup?_.push({path:"/setup"}):_.push(g.query.redirect||"/")}catch{r.value=o.t("loginError")}finally{i.value=!1}}return(h,t)=>(v(),d("div",C,[e("div",D,[e("h1",null,"🎯 "+s(c(o).t("app")),1),t[3]||(t[3]=e("p",{class:"muted",style:{"margin-top":"-8px"}},"Sales training simulator",-1)),e("label",null,s(c(o).t("username")),1),y(e("input",{"onUpdate:modelValue":t[0]||(t[0]=p=>n.value=p),type:"text",autocomplete:"username",onKeyup:w(m,["enter"])},null,544),[[x,n.value]]),e("label",null,s(c(o).t("password")),1),e("div",K,[y(e("input",{"onUpdate:modelValue":t[1]||(t[1]=p=>u.value=p),type:a.value?"text":"password",autocomplete:"current-password",onKeyup:w(m,["enter"])},null,40,E),[[k,u.value]]),e("button",{type:"button",class:"pw-toggle",onClick:t[2]||(t[2]=p=>a.value=!a.value),"aria-label":a.value?"Hide password":"Show password"},s(a.value?"🙈":"👁"),9,L)]),r.value?(v(),d("div",M,s(r.value),1)):S("",!0),e("button",{class:"primary",style:{width:"100%","margin-top":"16px"},disabled:i.value||!n.value||!u.value,onClick:m},[i.value?(v(),d("span",R)):(v(),d("span",U,s(c(o).t("login")),1))],8,N)])]))}},P=b(q,[["__scopeId","data-v-f7904d9f"]]);export{P as default};
import{_ as b,c as d,a as e,t as s,u as c,i as o,w as y,v as x,b as w,d as k,e as S,r as l,f,g as V,h as B,o as v}from"./index-BhdfH8-z.js";const C={class:"login-wrap"},D={class:"card login-card"},K={class:"pw-wrap"},E=["type"],L=["aria-label"],M={key:0,class:"error",role:"alert"},N=["disabled"],R={key:0,class:"spinner"},U={key:1},q={__name:"Login",setup(H){const g=B(),_=V(),n=l(""),u=l(""),a=l(!1),r=l(""),i=l(!1);async function m(){r.value="",i.value=!0;try{await f.login(n.value.trim(),u.value),f.mustSetup?_.push({path:"/setup"}):_.push(g.query.redirect||"/")}catch{r.value=o.t("loginError")}finally{i.value=!1}}return(h,t)=>(v(),d("div",C,[e("div",D,[e("h1",null,"🎯 "+s(c(o).t("app")),1),t[3]||(t[3]=e("p",{class:"muted",style:{"margin-top":"-8px"}},"Sales training simulator",-1)),e("label",null,s(c(o).t("username")),1),y(e("input",{"onUpdate:modelValue":t[0]||(t[0]=p=>n.value=p),type:"text",autocomplete:"username",onKeyup:w(m,["enter"])},null,544),[[x,n.value]]),e("label",null,s(c(o).t("password")),1),e("div",K,[y(e("input",{"onUpdate:modelValue":t[1]||(t[1]=p=>u.value=p),type:a.value?"text":"password",autocomplete:"current-password",onKeyup:w(m,["enter"])},null,40,E),[[k,u.value]]),e("button",{type:"button",class:"pw-toggle",onClick:t[2]||(t[2]=p=>a.value=!a.value),"aria-label":a.value?"Hide password":"Show password"},s(a.value?"🙈":"👁"),9,L)]),r.value?(v(),d("div",M,s(r.value),1)):S("",!0),e("button",{class:"primary",style:{width:"100%","margin-top":"16px"},disabled:i.value||!n.value||!u.value,onClick:m},[i.value?(v(),d("span",R)):(v(),d("span",U,s(c(o).t("login")),1))],8,N)])]))}},P=b(q,[["__scopeId","data-v-f7904d9f"]]);export{P as default};
-1
View File
@@ -1 +0,0 @@
import{_ as f,k as x,q as v,c as l,a as t,t as s,u as e,i as a,e as m,w as k,x as b,F as B,p as S,r as _,y as c,o as r,z as D}from"./index-B2m5OgR7.js";const M={key:0,class:"row stat-row"},N={class:"card stat"},T={class:"card stat won"},z={class:"card stat lost"},C={class:"card stat"},F={key:1,class:"card"},V={key:2,class:"card empty-state"},j={class:"card",style:{"margin-top":"20px"}},q={style:{"margin-top":"0"}},E={__name:"MyBoard",setup(G){const o=_([]),u=_([]),p=_(!0),y=c(()=>o.value.length),g=c(()=>o.value.filter(n=>n.my_outcome==="won").length),h=c(()=>o.value.filter(n=>n.my_outcome==="lost").length),w=c(()=>o.value.filter(n=>n.my_outcome==="not_tried").length);return x(async()=>{try{o.value=(await v.myBoard()).board||[],u.value=(await v.mySessions()).sessions||[]}finally{p.value=!1}}),(n,i)=>(r(),l("div",null,[t("h2",null,"📊 "+s(e(a).t("myDashboard")),1),p.value?m("",!0):(r(),l("div",M,[t("div",N,[t("span",null,s(e(a).t("total")),1),t("strong",null,s(y.value),1)]),t("div",T,[t("span",null,s(e(a).t("won")),1),t("strong",null,s(g.value),1)]),t("div",z,[t("span",null,s(e(a).t("lost")),1),t("strong",null,s(h.value),1)]),t("div",C,[t("span",null,s(e(a).t("notTried")),1),t("strong",null,s(w.value),1)])])),p.value?(r(),l("div",F,[...i[0]||(i[0]=[t("div",{class:"skeleton",style:{height:"50px"}},null,-1)])])):o.value.length===0?(r(),l("div",V,[...i[1]||(i[1]=[t("strong",null,"No practice yet",-1),t("span",null,"Go to Training and try closing a sale with a persona.",-1)])])):m("",!0),k(t("div",j,[t("h3",q,s(e(a).t("mySessions")),1),(r(!0),l(B,null,S(u.value,d=>(r(),l("div",{key:d.id,style:{display:"flex","justify-content":"space-between",padding:"8px 0","border-bottom":"1px solid var(--border)"}},[t("span",null,s(d.persona_name),1),t("span",{class:D(["badge",d.outcome])},s(d.outcome==="won"?e(a).t("won"):e(a).t("lost")),3)]))),128))],512),[[b,u.value.length]])]))}},L=f(E,[["__scopeId","data-v-1f6ea068"]]);export{L as default};
+1
View File
@@ -0,0 +1 @@
.stat-row[data-v-b92138a0]{gap:16px}.stat[data-v-b92138a0]{text-align:center;min-width:100px}.stat span[data-v-b92138a0]{display:block;font-size:12px;color:var(--muted)}.stat strong[data-v-b92138a0]{font-size:26px}.stat.won strong[data-v-b92138a0]{color:var(--green)}.stat.lost strong[data-v-b92138a0]{color:var(--red)}
-1
View File
@@ -1 +0,0 @@
.stat-row[data-v-1f6ea068]{gap:16px}.stat[data-v-1f6ea068]{text-align:center;min-width:100px}.stat span[data-v-1f6ea068]{display:block;font-size:12px;color:var(--muted)}.stat strong[data-v-1f6ea068]{font-size:26px}.stat.won strong[data-v-1f6ea068]{color:var(--green)}.stat.lost strong[data-v-1f6ea068]{color:var(--red)}
+1
View File
@@ -0,0 +1 @@
import{_ as f,k as x,q as v,c as r,a as t,t as s,u as e,i as a,e as _,w as b,x as k,F as B,p as S,r as m,y as u,o as i,z as D}from"./index-BhdfH8-z.js";const M={style:{margin:"0"}},N={key:0,class:"row stat-row"},T={class:"card stat"},z={class:"card stat won"},C={class:"card stat lost"},F={class:"card stat"},V={key:1,class:"card"},j={key:2,class:"card empty-state"},q={class:"card",style:{"margin-top":"20px"}},E={style:{"margin-top":"0"}},G={__name:"MyBoard",setup(I){const o=m([]),c=m([]),p=m(!0),y=u(()=>o.value.length),g=u(()=>o.value.filter(n=>n.my_outcome==="won").length),h=u(()=>o.value.filter(n=>n.my_outcome==="lost").length),w=u(()=>o.value.filter(n=>n.my_outcome==="not_tried").length);return x(async()=>{try{o.value=(await v.myBoard()).board||[],c.value=(await v.mySessions()).sessions||[]}finally{p.value=!1}}),(n,l)=>(i(),r("div",null,[t("div",null,[t("h2",M,"📈 "+s(e(a).t("myDashboard")),1),l[0]||(l[0]=t("div",{class:"muted",style:{"margin-top":"4px","margin-bottom":"16px"}},"สรุปผลการฝึกของตัวคุณเอง — ดูว่าปิดการขายได้กี่ครั้ง ยังฝึกกับใครบ้าง",-1))]),p.value?_("",!0):(i(),r("div",N,[t("div",T,[t("span",null,s(e(a).t("total")),1),t("strong",null,s(y.value),1)]),t("div",z,[t("span",null,s(e(a).t("won")),1),t("strong",null,s(g.value),1)]),t("div",C,[t("span",null,s(e(a).t("lost")),1),t("strong",null,s(h.value),1)]),t("div",F,[t("span",null,s(e(a).t("notTried")),1),t("strong",null,s(w.value),1)])])),p.value?(i(),r("div",V,[...l[1]||(l[1]=[t("div",{class:"skeleton",style:{height:"50px"}},null,-1)])])):o.value.length===0?(i(),r("div",j,[...l[2]||(l[2]=[t("strong",null,"No practice yet",-1),t("span",null,"Go to Training and try closing a sale with a persona.",-1)])])):_("",!0),b(t("div",q,[t("h3",E,s(e(a).t("mySessions")),1),(i(!0),r(B,null,S(c.value,d=>(i(),r("div",{key:d.id,style:{display:"flex","justify-content":"space-between",padding:"8px 0","border-bottom":"1px solid var(--border)"}},[t("span",null,s(d.persona_name),1),t("span",{class:D(["badge",d.outcome])},s(d.outcome==="won"?e(a).t("won"):e(a).t("lost")),3)]))),128))],512),[[k,c.value.length]])]))}},A=f(G,[["__scopeId","data-v-b92138a0"]]);export{A as default};
@@ -1 +1 @@
import{_ as N,k as V,c as i,l as k,m as u,a as t,t as s,u as a,i as n,f as y,e as b,F as _,p as f,h as z,q as I,s as L,r as x,o,j as w,z as p,A}from"./index-B2m5OgR7.js";const T={class:"row",style:{"align-items":"center"}},j={style:{margin:"0"}},F={class:"muted",style:{"margin-left":"auto"}},q={key:0,class:"card guide"},D={key:1,class:"row",style:{margin:"12px 0",gap:"10px"}},E={class:"primary"},M={class:"grid"},R={class:"row",style:{"justify-content":"space-between"}},S={class:"diff"},G={class:"muted"},H={class:"muted"},J={class:"muted"},K={class:"muted",style:{"margin-top":"6px"}},O={class:"primary",style:{width:"100%"}},Q={class:"primary",style:{width:"100%"}},U={key:1,class:"muted",style:{"margin-top":"auto","font-size":"12px"}},W={__name:"Personas",setup(X){const d=z().params.gid,g=x([]),B=x(!0);async function C(){try{g.value=(await I.listPersonas(d)).personas}finally{B.value=!1}}function P(l){return g.value.filter(r=>r.tier===l)}function $(l){return n.t(l==="A"?"tierA":l==="B"?"tierB":"tierC")}function h(l){return l==="won"?n.t("won"):l==="lost"?n.t("lost"):n.t("notTried")}return V(C),(l,r)=>{const c=L("router-link");return o(),i("div",null,[k(c,{to:"/training",class:"btn-back"},{default:u(()=>[w("← "+s(a(n).t("training")),1)]),_:1}),t("div",T,[t("h2",j,s(a(n).t("personas")),1),t("span",F,s(a(n).t("selectPersona")),1)]),a(y).isAdmin?b("",!0):(o(),i("div",q,[...r[0]||(r[0]=[t("strong",null,"🎯 วิธีฝึก",-1),t("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[t("li",null,"เลือกลูกค้าจำลอง (บุคคลต้นแบบ) คนหนึ่งที่อยากฝึกด้วย"),t("li",null,"ระดับ A ง่ายสุด → ระดับ C ยากสุด (ดูจากดาว ★ ความยาก)"),t("li",null,"กดปุ่มสำหรับฝึกแชทกับลูกค้าคนนั้น (ฝึกได้คนละครั้งเท่านั้น)")],-1)])])),a(y).isAdmin?(o(),i("div",D,[k(c,{to:`/admin/groups/${a(d)}/edit`},{default:u(()=>[t("button",E,"🛠 "+s(a(n).t("managePersonas")),1)]),_:1},8,["to"]),r[1]||(r[1]=t("span",{class:"muted"},"Admin: full persona data + edit available here.",-1))])):b("",!0),(o(),i(_,null,f(["A","B","C"],m=>t("div",{key:m,style:{margin:"20px 0"}},[t("h4",null,s($(m)),1),t("div",M,[(o(!0),i(_,null,f(P(m),e=>(o(),i("div",{key:e.id,class:"card pcard lift"},[t("div",R,[t("strong",null,s(e.name),1),t("span",{class:p(["badge",e.my_outcome])},s(h(e.my_outcome)),3)]),t("div",S,[(o(),i(_,null,f(5,v=>t("span",{key:v,class:p(["star",{on:v<=(e.difficulty||1)}])},"★",2)),64)),t("span",G,s(a(n).t("difficulty"))+" "+s(e.difficulty||1)+"/5",1)]),t("div",H,[w(s(e.profession)+" · "+s(e.age_group)+" · "+s(e.location),1),r[2]||(r[2]=t("br",null,null,-1)),t("span",{class:p(["badge",e.channel])},s(e.channel),3),t("span",J," · "+s(e.initiation_mode==="seller"?a(n).t("sellerInitiated"):a(n).t("customerInitiated")),1)]),t("div",K,s(e.product_context),1),a(y).isAdmin?(o(),A(c,{key:0,to:`/groups/${a(d)}/chat/${e.id}`,style:{"margin-top":"auto"}},{default:u(()=>[t("button",O,s(a(n).t("chat")),1)]),_:1},8,["to"])):(o(),i(_,{key:1},[e.my_outcome==="not_tried"?(o(),A(c,{key:0,to:`/groups/${a(d)}/chat/${e.id}`,style:{"margin-top":"auto"}},{default:u(()=>[t("button",Q,s(a(n).t("chat")),1)]),_:1},8,["to"])):(o(),i("div",U,"✓ "+s(a(n).t("trained"))+" ("+s(h(e.my_outcome))+")",1))],64))]))),128))])])),64))])}}},tt=N(W,[["__scopeId","data-v-0fa25205"]]);export{tt as default};
import{_ as N,k as V,c as i,l as k,m as u,a as t,t as s,u as a,i as n,f as y,e as b,F as _,p as f,h as z,q as I,s as L,r as x,o,j as w,z as p,A}from"./index-BhdfH8-z.js";const T={class:"row",style:{"align-items":"center"}},j={style:{margin:"0"}},F={class:"muted",style:{"margin-left":"auto"}},q={key:0,class:"card guide"},D={key:1,class:"row",style:{margin:"12px 0",gap:"10px"}},E={class:"primary"},M={class:"grid"},R={class:"row",style:{"justify-content":"space-between"}},S={class:"diff"},G={class:"muted"},H={class:"muted"},J={class:"muted"},K={class:"muted",style:{"margin-top":"6px"}},O={class:"primary",style:{width:"100%"}},Q={class:"primary",style:{width:"100%"}},U={key:1,class:"muted",style:{"margin-top":"auto","font-size":"12px"}},W={__name:"Personas",setup(X){const d=z().params.gid,g=x([]),B=x(!0);async function C(){try{g.value=(await I.listPersonas(d)).personas}finally{B.value=!1}}function P(l){return g.value.filter(r=>r.tier===l)}function $(l){return n.t(l==="A"?"tierA":l==="B"?"tierB":"tierC")}function h(l){return l==="won"?n.t("won"):l==="lost"?n.t("lost"):n.t("notTried")}return V(C),(l,r)=>{const c=L("router-link");return o(),i("div",null,[k(c,{to:"/training",class:"btn-back"},{default:u(()=>[w("← "+s(a(n).t("training")),1)]),_:1}),t("div",T,[t("h2",j,s(a(n).t("personas")),1),t("span",F,s(a(n).t("selectPersona")),1)]),a(y).isAdmin?b("",!0):(o(),i("div",q,[...r[0]||(r[0]=[t("strong",null,"🎯 วิธีฝึก",-1),t("ol",{style:{margin:"8px 0 0","padding-left":"20px","line-height":"1.8"}},[t("li",null,"เลือกลูกค้าจำลอง (บุคคลต้นแบบ) คนหนึ่งที่อยากฝึกด้วย"),t("li",null,"ระดับ A ง่ายสุด → ระดับ C ยากสุด (ดูจากดาว ★ ความยาก)"),t("li",null,"กดปุ่มสำหรับฝึกแชทกับลูกค้าคนนั้น (ฝึกได้คนละครั้งเท่านั้น)")],-1)])])),a(y).isAdmin?(o(),i("div",D,[k(c,{to:`/admin/groups/${a(d)}/edit`},{default:u(()=>[t("button",E,"🛠 "+s(a(n).t("managePersonas")),1)]),_:1},8,["to"]),r[1]||(r[1]=t("span",{class:"muted"},"Admin: full persona data + edit available here.",-1))])):b("",!0),(o(),i(_,null,f(["A","B","C"],m=>t("div",{key:m,style:{margin:"20px 0"}},[t("h4",null,s($(m)),1),t("div",M,[(o(!0),i(_,null,f(P(m),e=>(o(),i("div",{key:e.id,class:"card pcard lift"},[t("div",R,[t("strong",null,s(e.name),1),t("span",{class:p(["badge",e.my_outcome])},s(h(e.my_outcome)),3)]),t("div",S,[(o(),i(_,null,f(5,v=>t("span",{key:v,class:p(["star",{on:v<=(e.difficulty||1)}])},"★",2)),64)),t("span",G,s(a(n).t("difficulty"))+" "+s(e.difficulty||1)+"/5",1)]),t("div",H,[w(s(e.profession)+" · "+s(e.age_group)+" · "+s(e.location),1),r[2]||(r[2]=t("br",null,null,-1)),t("span",{class:p(["badge",e.channel])},s(e.channel),3),t("span",J," · "+s(e.initiation_mode==="seller"?a(n).t("sellerInitiated"):a(n).t("customerInitiated")),1)]),t("div",K,s(e.product_context),1),a(y).isAdmin?(o(),A(c,{key:0,to:`/groups/${a(d)}/chat/${e.id}`,style:{"margin-top":"auto"}},{default:u(()=>[t("button",O,s(a(n).t("chat")),1)]),_:1},8,["to"])):(o(),i(_,{key:1},[e.my_outcome==="not_tried"?(o(),A(c,{key:0,to:`/groups/${a(d)}/chat/${e.id}`,style:{"margin-top":"auto"}},{default:u(()=>[t("button",Q,s(a(n).t("chat")),1)]),_:1},8,["to"])):(o(),i("div",U,"✓ "+s(a(n).t("trained"))+" ("+s(h(e.my_outcome))+")",1))],64))]))),128))])])),64))])}}},tt=N(W,[["__scopeId","data-v-0fa25205"]]);export{tt as default};
@@ -1 +1 @@
import{_ as j,r as v,f as u,c as y,a as e,t as o,u as l,i as s,j as x,w as h,v as b,e as k,z as B,q as S,o as f}from"./index-B2m5OgR7.js";const z={class:"card"},D={style:{"margin-top":"0"}},E={class:"muted"},M=["value"],$={class:"row",style:{gap:"10px","margin-top":"16px"}},q=["disabled"],I={key:0,class:"spinner"},L={class:"card",style:{"margin-top":"16px"}},O={style:{"margin-top":"0"}},A={class:"row",style:{gap:"10px","margin-top":"16px"}},F=["disabled"],G={key:0,class:"spinner"},H={class:"card",style:{"margin-top":"16px"}},J={style:{"margin-top":"0"}},K={class:"row"},Q={key:0,class:"error",role:"alert"},R={key:1,class:"ok",role:"status"},W={__name:"Settings",setup(X){var V,C;const m=v(((V=u.user)==null?void 0:V.name)||""),c=v(((C=u.user)==null?void 0:C.email)||""),i=v(""),_=v(""),r=v(""),p=v(""),w=v(!1),g=v(!1);async function U(){var d,a;r.value="",p.value="",w.value=!0;try{const n={};if(m.value&&m.value!==((d=u.user)==null?void 0:d.name)&&(n.name=m.value),c.value&&c.value!==((a=u.user)==null?void 0:a.email)&&(n.email=c.value),Object.keys(n).length){const t=await S.updateProfile(n);u.user=t.user,p.value=s.t("saved")}}catch(n){r.value=n.message}finally{w.value=!1}}async function N(){var d,a,n;if(r.value="",p.value="",i.value.length<4){r.value=s.t("passwordTooShort");return}if(i.value!==_.value){r.value=s.t("passwordMismatch");return}g.value=!0;try{const t=((d=u.user)==null?void 0:d.username)||((a=u.user)==null?void 0:a.id)||"",T=await S.setup({username:t,email:c.value||((n=u.user)==null?void 0:n.email),password:i.value});u.user=T.user,i.value="",_.value="",p.value=s.t("saved")}catch(t){r.value=t.message}finally{g.value=!1}}function P(d){s.set(d)}return(d,a)=>{var n;return f(),y("div",null,[e("h2",null,"⚙️ "+o(l(s).t("settings")),1),e("div",z,[e("h3",D,"👤 "+o(l(s).t("profile")),1),e("label",null,[x(o(l(s).t("username"))+" ",1),e("span",E,"("+o(l(s).t("readonly"))+")",1)]),e("input",{value:((n=l(u).user)==null?void 0:n.username)||"",disabled:""},null,8,M),e("label",null,o(l(s).t("name")),1),h(e("input",{"onUpdate:modelValue":a[0]||(a[0]=t=>m.value=t),type:"text"},null,512),[[b,m.value]]),e("label",null,o(l(s).t("email")),1),h(e("input",{"onUpdate:modelValue":a[1]||(a[1]=t=>c.value=t),type:"email"},null,512),[[b,c.value]]),e("div",$,[e("button",{class:"primary",disabled:w.value,onClick:U},[w.value?(f(),y("span",I)):k("",!0),x(o(l(s).t("saveProfile")),1)],8,q)])]),e("div",L,[e("h3",O,"🔒 "+o(l(s).t("changePassword")),1),e("label",null,o(l(s).t("newPassword")),1),h(e("input",{"onUpdate:modelValue":a[2]||(a[2]=t=>i.value=t),type:"password",autocomplete:"new-password"},null,512),[[b,i.value]]),e("label",null,o(l(s).t("confirmPassword")),1),h(e("input",{"onUpdate:modelValue":a[3]||(a[3]=t=>_.value=t),type:"password",autocomplete:"new-password"},null,512),[[b,_.value]]),e("div",A,[e("button",{class:"primary",disabled:g.value||!i.value||i.value!==_.value,onClick:N},[g.value?(f(),y("span",G)):k("",!0),x(o(l(s).t("save")),1)],8,F)])]),e("div",H,[e("h3",J,"🌐 "+o(l(s).t("language")),1),e("div",K,[e("button",{class:B({active:l(s).locale==="th"}),onClick:a[4]||(a[4]=t=>P("th"))},"ไทย",2),e("button",{class:B({active:l(s).locale==="en"}),onClick:a[5]||(a[5]=t=>P("en"))},"English",2)])]),r.value?(f(),y("div",Q,o(r.value),1)):k("",!0),p.value?(f(),y("div",R,"✅ "+o(p.value),1)):k("",!0)])}}},Z=j(W,[["__scopeId","data-v-2dca72e5"]]);export{Z as default};
import{_ as j,r as v,f as u,c as y,a as e,t as o,u as l,i as s,j as x,w as h,v as b,e as k,z as B,q as S,o as f}from"./index-BhdfH8-z.js";const z={class:"card"},D={style:{"margin-top":"0"}},E={class:"muted"},M=["value"],$={class:"row",style:{gap:"10px","margin-top":"16px"}},q=["disabled"],I={key:0,class:"spinner"},L={class:"card",style:{"margin-top":"16px"}},O={style:{"margin-top":"0"}},A={class:"row",style:{gap:"10px","margin-top":"16px"}},F=["disabled"],G={key:0,class:"spinner"},H={class:"card",style:{"margin-top":"16px"}},J={style:{"margin-top":"0"}},K={class:"row"},Q={key:0,class:"error",role:"alert"},R={key:1,class:"ok",role:"status"},W={__name:"Settings",setup(X){var V,C;const m=v(((V=u.user)==null?void 0:V.name)||""),c=v(((C=u.user)==null?void 0:C.email)||""),i=v(""),_=v(""),r=v(""),p=v(""),w=v(!1),g=v(!1);async function U(){var d,a;r.value="",p.value="",w.value=!0;try{const n={};if(m.value&&m.value!==((d=u.user)==null?void 0:d.name)&&(n.name=m.value),c.value&&c.value!==((a=u.user)==null?void 0:a.email)&&(n.email=c.value),Object.keys(n).length){const t=await S.updateProfile(n);u.user=t.user,p.value=s.t("saved")}}catch(n){r.value=n.message}finally{w.value=!1}}async function N(){var d,a,n;if(r.value="",p.value="",i.value.length<4){r.value=s.t("passwordTooShort");return}if(i.value!==_.value){r.value=s.t("passwordMismatch");return}g.value=!0;try{const t=((d=u.user)==null?void 0:d.username)||((a=u.user)==null?void 0:a.id)||"",T=await S.setup({username:t,email:c.value||((n=u.user)==null?void 0:n.email),password:i.value});u.user=T.user,i.value="",_.value="",p.value=s.t("saved")}catch(t){r.value=t.message}finally{g.value=!1}}function P(d){s.set(d)}return(d,a)=>{var n;return f(),y("div",null,[e("h2",null,"⚙️ "+o(l(s).t("settings")),1),e("div",z,[e("h3",D,"👤 "+o(l(s).t("profile")),1),e("label",null,[x(o(l(s).t("username"))+" ",1),e("span",E,"("+o(l(s).t("readonly"))+")",1)]),e("input",{value:((n=l(u).user)==null?void 0:n.username)||"",disabled:""},null,8,M),e("label",null,o(l(s).t("name")),1),h(e("input",{"onUpdate:modelValue":a[0]||(a[0]=t=>m.value=t),type:"text"},null,512),[[b,m.value]]),e("label",null,o(l(s).t("email")),1),h(e("input",{"onUpdate:modelValue":a[1]||(a[1]=t=>c.value=t),type:"email"},null,512),[[b,c.value]]),e("div",$,[e("button",{class:"primary",disabled:w.value,onClick:U},[w.value?(f(),y("span",I)):k("",!0),x(o(l(s).t("saveProfile")),1)],8,q)])]),e("div",L,[e("h3",O,"🔒 "+o(l(s).t("changePassword")),1),e("label",null,o(l(s).t("newPassword")),1),h(e("input",{"onUpdate:modelValue":a[2]||(a[2]=t=>i.value=t),type:"password",autocomplete:"new-password"},null,512),[[b,i.value]]),e("label",null,o(l(s).t("confirmPassword")),1),h(e("input",{"onUpdate:modelValue":a[3]||(a[3]=t=>_.value=t),type:"password",autocomplete:"new-password"},null,512),[[b,_.value]]),e("div",A,[e("button",{class:"primary",disabled:g.value||!i.value||i.value!==_.value,onClick:N},[g.value?(f(),y("span",G)):k("",!0),x(o(l(s).t("save")),1)],8,F)])]),e("div",H,[e("h3",J,"🌐 "+o(l(s).t("language")),1),e("div",K,[e("button",{class:B({active:l(s).locale==="th"}),onClick:a[4]||(a[4]=t=>P("th"))},"ไทย",2),e("button",{class:B({active:l(s).locale==="en"}),onClick:a[5]||(a[5]=t=>P("en"))},"English",2)])]),r.value?(f(),y("div",Q,o(r.value),1)):k("",!0),p.value?(f(),y("div",R,"✅ "+o(p.value),1)):k("",!0)])}}},Z=j(W,[["__scopeId","data-v-2dca72e5"]]);export{Z as default};
@@ -1 +1 @@
import{_ as x,c as v,a as e,t,u as s,i as a,j as S,f as _,w,v as f,b as y,e as V,r,g as K,o as m}from"./index-B2m5OgR7.js";const T={class:"setup-wrap"},B={class:"card setup-card"},N={class:"muted"},U={key:0,class:"error",role:"alert"},C=["disabled"],D={key:0,class:"spinner"},M={key:1},P={__name:"Setup",setup(j){const k=K(),i=r(""),l=r(""),p=r(""),o=r(""),d=r(!1);async function c(){if(o.value="",l.value.length<4){o.value=a.t("passwordTooShort");return}if(l.value!==p.value){o.value=a.t("passwordMismatch");return}d.value=!0;try{await _.finishSetup(i.value.trim(),l.value),k.push("/")}catch(h){o.value=h.message}finally{d.value=!1}}return(h,u)=>{var b,g;return m(),v("div",T,[e("div",B,[e("h1",null,"🔐 "+t(s(a).t("setupTitle")),1),e("p",N,[S(t(s(a).t("setupSubtitle"))+" ",1),e("strong",null,t(((b=s(_).user)==null?void 0:b.name)||((g=s(_).user)==null?void 0:g.username)),1)]),e("label",null,t(s(a).t("email")),1),w(e("input",{"onUpdate:modelValue":u[0]||(u[0]=n=>i.value=n),type:"email",autocomplete:"email",onKeyup:y(c,["enter"])},null,544),[[f,i.value]]),e("label",null,t(s(a).t("newPassword")),1),w(e("input",{"onUpdate:modelValue":u[1]||(u[1]=n=>l.value=n),type:"password",autocomplete:"new-password",onKeyup:y(c,["enter"])},null,544),[[f,l.value]]),e("label",null,t(s(a).t("confirmPassword")),1),w(e("input",{"onUpdate:modelValue":u[2]||(u[2]=n=>p.value=n),type:"password",autocomplete:"new-password",onKeyup:y(c,["enter"])},null,544),[[f,p.value]]),o.value?(m(),v("div",U,t(o.value),1)):V("",!0),e("button",{class:"primary",style:{width:"100%","margin-top":"16px"},disabled:d.value||!i.value||!l.value||l.value!==p.value,onClick:c},[d.value?(m(),v("span",D)):(m(),v("span",M,t(s(a).t("save")),1))],8,C)])])}}},I=x(P,[["__scopeId","data-v-f190e120"]]);export{I as default};
import{_ as x,c as v,a as e,t,u as s,i as a,j as S,f as _,w,v as f,b as y,e as V,r,g as K,o as m}from"./index-BhdfH8-z.js";const T={class:"setup-wrap"},B={class:"card setup-card"},N={class:"muted"},U={key:0,class:"error",role:"alert"},C=["disabled"],D={key:0,class:"spinner"},M={key:1},P={__name:"Setup",setup(j){const k=K(),i=r(""),l=r(""),p=r(""),o=r(""),d=r(!1);async function c(){if(o.value="",l.value.length<4){o.value=a.t("passwordTooShort");return}if(l.value!==p.value){o.value=a.t("passwordMismatch");return}d.value=!0;try{await _.finishSetup(i.value.trim(),l.value),k.push("/")}catch(h){o.value=h.message}finally{d.value=!1}}return(h,u)=>{var b,g;return m(),v("div",T,[e("div",B,[e("h1",null,"🔐 "+t(s(a).t("setupTitle")),1),e("p",N,[S(t(s(a).t("setupSubtitle"))+" ",1),e("strong",null,t(((b=s(_).user)==null?void 0:b.name)||((g=s(_).user)==null?void 0:g.username)),1)]),e("label",null,t(s(a).t("email")),1),w(e("input",{"onUpdate:modelValue":u[0]||(u[0]=n=>i.value=n),type:"email",autocomplete:"email",onKeyup:y(c,["enter"])},null,544),[[f,i.value]]),e("label",null,t(s(a).t("newPassword")),1),w(e("input",{"onUpdate:modelValue":u[1]||(u[1]=n=>l.value=n),type:"password",autocomplete:"new-password",onKeyup:y(c,["enter"])},null,544),[[f,l.value]]),e("label",null,t(s(a).t("confirmPassword")),1),w(e("input",{"onUpdate:modelValue":u[2]||(u[2]=n=>p.value=n),type:"password",autocomplete:"new-password",onKeyup:y(c,["enter"])},null,544),[[f,p.value]]),o.value?(m(),v("div",U,t(o.value),1)):V("",!0),e("button",{class:"primary",style:{width:"100%","margin-top":"16px"},disabled:d.value||!i.value||!l.value||l.value!==p.value,onClick:c},[d.value?(m(),v("span",D)):(m(),v("span",M,t(s(a).t("save")),1))],8,C)])])}}},I=x(P,[["__scopeId","data-v-f190e120"]]);export{I as default};
@@ -1 +1 @@
import{_ as k,k as x,q as w,f as d,c as r,a as t,t as e,u as s,i as o,A as _,m,e as y,F as b,p as A,r as h,s as C,o as i,z as f}from"./index-B2m5OgR7.js";const B={class:"row",style:{"align-items":"center","margin-bottom":"16px"}},N={style:{margin:"0"}},P={style:{"margin-left":"auto"}},z={class:"primary"},T={class:"muted"},F={key:0,class:"card",style:{"min-height":"80px"}},L={key:1,class:"card empty-state"},S={key:0},V={key:1},$={class:"grid"},j={class:"card lift train-card"},q={class:"row",style:{"justify-content":"space-between"}},D={class:"muted",style:{margin:"6px 0 12px"}},E={class:"row",style:{gap:"8px"}},G={class:"muted"},I={class:"primary",style:{width:"100%","margin-top":"12px"}},M={__name:"Training",setup(H){const c=h([]),u=h(!0);function v(a){return a.sales_kit&&a.sales_kit.productName||a.input&&a.input.product||""}function g(a){return a.personas||a.persona_count||0}return x(async()=>{try{const a=(await w.listGroups()).groups||[];c.value=d.isAdmin?a:a.filter(l=>l.status==="ready")}finally{u.value=!1}}),(a,l)=>{const p=C("router-link");return i(),r("div",null,[t("div",B,[t("h2",N,"🎯 "+e(s(o).t("training")),1),t("div",P,[s(d).isAdmin?(i(),_(p,{key:0,to:"/admin/new-group"},{default:m(()=>[t("button",z,"+ "+e(s(o).t("addProduct")),1)]),_:1})):y("",!0)])]),t("p",T,e(s(o).t("trainingSubtitle")),1),u.value?(i(),r("div",F,[...l[0]||(l[0]=[t("div",{class:"skeleton",style:{height:"50px"}},null,-1)])])):c.value.length===0?(i(),r("div",L,[t("strong",null,e(s(o).t("noTraining")),1),s(d).isAdmin?(i(),r("span",S,'Click "'+e(s(o).t("addProduct"))+'" to create a persona group.',1)):(i(),r("span",V,"Ask an admin to create a persona group first."))])):y("",!0),t("div",$,[(i(!0),r(b,null,A(c.value,n=>(i(),_(p,{key:n.id,to:s(d).isAdmin?`/admin/groups/${n.id}/edit`:`/groups/${n.id}/personas`,style:{"text-decoration":"none"}},{default:m(()=>[t("div",j,[t("div",q,[t("strong",null,e(n.title),1),t("span",{class:f(["badge",n.status==="ready"?"ready":"draft"])},e(n.status),3)]),t("div",D,e(v(n)),1),t("div",E,[t("span",{class:f(["badge",n.channel||"line"])},e(n.channel||"line"),3),t("span",G,e(g(n))+" "+e(s(o).t("personas").toLowerCase()),1)]),t("button",I,e(s(d).isAdmin?n.status==="ready"?s(o).t("managePersonas"):s(o).t("analyze"):s(o).t("selectPersona")),1)])]),_:2},1032,["to"]))),128))])])}}},K=k(M,[["__scopeId","data-v-901c9d3d"]]);export{K as default};
import{_ as k,k as x,q as w,f as d,c as r,a as t,t as e,u as s,i as o,A as _,m,e as y,F as b,p as A,r as h,s as C,o as i,z as f}from"./index-BhdfH8-z.js";const B={class:"row",style:{"align-items":"center","margin-bottom":"16px"}},N={style:{margin:"0"}},P={style:{"margin-left":"auto"}},z={class:"primary"},T={class:"muted"},F={key:0,class:"card",style:{"min-height":"80px"}},L={key:1,class:"card empty-state"},S={key:0},V={key:1},$={class:"grid"},j={class:"card lift train-card"},q={class:"row",style:{"justify-content":"space-between"}},D={class:"muted",style:{margin:"6px 0 12px"}},E={class:"row",style:{gap:"8px"}},G={class:"muted"},I={class:"primary",style:{width:"100%","margin-top":"12px"}},M={__name:"Training",setup(H){const c=h([]),u=h(!0);function v(a){return a.sales_kit&&a.sales_kit.productName||a.input&&a.input.product||""}function g(a){return a.personas||a.persona_count||0}return x(async()=>{try{const a=(await w.listGroups()).groups||[];c.value=d.isAdmin?a:a.filter(l=>l.status==="ready")}finally{u.value=!1}}),(a,l)=>{const p=C("router-link");return i(),r("div",null,[t("div",B,[t("h2",N,"🎯 "+e(s(o).t("training")),1),t("div",P,[s(d).isAdmin?(i(),_(p,{key:0,to:"/admin/new-group"},{default:m(()=>[t("button",z,"+ "+e(s(o).t("addProduct")),1)]),_:1})):y("",!0)])]),t("p",T,e(s(o).t("trainingSubtitle")),1),u.value?(i(),r("div",F,[...l[0]||(l[0]=[t("div",{class:"skeleton",style:{height:"50px"}},null,-1)])])):c.value.length===0?(i(),r("div",L,[t("strong",null,e(s(o).t("noTraining")),1),s(d).isAdmin?(i(),r("span",S,'Click "'+e(s(o).t("addProduct"))+'" to create a persona group.',1)):(i(),r("span",V,"Ask an admin to create a persona group first."))])):y("",!0),t("div",$,[(i(!0),r(b,null,A(c.value,n=>(i(),_(p,{key:n.id,to:s(d).isAdmin?`/admin/groups/${n.id}/edit`:`/groups/${n.id}/personas`,style:{"text-decoration":"none"}},{default:m(()=>[t("div",j,[t("div",q,[t("strong",null,e(n.title),1),t("span",{class:f(["badge",n.status==="ready"?"ready":"draft"])},e(n.status),3)]),t("div",D,e(v(n)),1),t("div",E,[t("span",{class:f(["badge",n.channel||"line"])},e(n.channel||"line"),3),t("span",G,e(g(n))+" "+e(s(o).t("personas").toLowerCase()),1)]),t("button",I,e(s(d).isAdmin?n.status==="ready"?s(o).t("managePersonas"):s(o).t("analyze"):s(o).t("selectPersona")),1)])]),_:2},1032,["to"]))),128))])])}}},K=k(M,[["__scopeId","data-v-901c9d3d"]]);export{K as default};
@@ -1,27 +1,27 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-B_jgPg0c.js","assets/Login-D3svPLnW.css","assets/Setup-CvsspD_8.js","assets/Setup-BdS_6JlN.css","assets/Analytics-CSPAOjOx.js","assets/Analytics-ButgVyTK.css","assets/MyBoard-C90Y_TAq.js","assets/MyBoard-Ch6WeOlD.css","assets/Training-BxzfTOYv.js","assets/Training-BcDA5IbA.css","assets/Personas-C5Hggrz_.js","assets/Personas-Be_DU4st.css","assets/Chat-A2iClHWr.js","assets/Chat-D5cDjkYb.css","assets/Settings-B4k75Ydt.js","assets/Settings-y28ROmym.css","assets/GroupBuilder-DfeKEJj_.js","assets/GroupBuilder-B8gqmNUJ.css","assets/GroupEdit-CZ_bpnDf.js","assets/GroupEdit-b5HdCSuv.css"])))=>i.map(i=>d[i]);
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-DpLtB9t4.js","assets/Login-D3svPLnW.css","assets/Setup-Ax3Eo5U7.js","assets/Setup-BdS_6JlN.css","assets/Analytics-D85JjGgM.js","assets/Analytics-Pg5dwyd7.css","assets/MyBoard-DT8KV0ES.js","assets/MyBoard-CDLgMRNi.css","assets/Training-CIWgzyIG.js","assets/Training-BcDA5IbA.css","assets/Personas-ujsGrehm.js","assets/Personas-Be_DU4st.css","assets/Chat-COdP9j9f.js","assets/Chat-D9rUobmy.css","assets/Settings-DagQxl_z.js","assets/Settings-y28ROmym.css","assets/GroupBuilder-BtLOuOw5.js","assets/GroupBuilder-B8gqmNUJ.css","assets/GroupEdit-CykIW85w.js","assets/GroupEdit-b5HdCSuv.css","assets/AdminUsers-K3vzxj9L.js","assets/AdminUsers-e5df29OL.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/**
* @vue/shared v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Us(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const X={},Ut=[],ze=()=>{},oi=()=>!1,Gn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Kn=e=>e.startsWith("onUpdate:"),fe=Object.assign,Bs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Io=Object.prototype.hasOwnProperty,$=(e,t)=>Io.call(e,t),V=Array.isArray,Bt=e=>En(e)==="[object Map]",Jt=e=>En(e)==="[object Set]",cr=e=>En(e)==="[object Date]",B=e=>typeof e=="function",se=e=>typeof e=="string",Je=e=>typeof e=="symbol",q=e=>e!==null&&typeof e=="object",li=e=>(q(e)||B(e))&&B(e.then)&&B(e.catch),ci=Object.prototype.toString,En=e=>ci.call(e),No=e=>En(e).slice(8,-1),ai=e=>En(e)==="[object Object]",js=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ln=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Do=/-\w/g,ve=Wn(e=>e.replace(Do,t=>t.slice(1).toUpperCase())),Mo=/\B([A-Z])/g,vt=Wn(e=>e.replace(Mo,"-$1").toLowerCase()),$n=Wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),rs=Wn(e=>e?`on${$n(e)}`:""),qe=(e,t)=>!Object.is(e,t),Cn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ui=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},qn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ar;const zn=()=>ar||(ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ks(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=se(s)?Ho(s):ks(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(se(e)||q(e))return e}const Lo=/;(?![^(]*\))/g,Vo=/:([^]+)/,Fo=/\/\*[^]*?\*\//g;function Ho(e){const t={};return e.replace(Fo,"").split(Lo).forEach(n=>{if(n){const s=n.split(Vo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function jt(e){let t="";if(se(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=jt(e[n]);s&&(t+=s+" ")}else if(q(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Uo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Bo=Us(Uo);function fi(e){return!!e||e===""}function jo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=_t(e[s],t[s]);return n}function _t(e,t){if(e===t)return!0;let n=cr(e),s=cr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Je(e),s=Je(t),n||s)return e===t;if(n=V(e),s=V(t),n||s)return n&&s?jo(e,t):!1;if(n=q(e),s=q(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!_t(e[o],t[o]))return!1}}return String(e)===String(t)}function Gs(e,t){return e.findIndex(n=>_t(n,t))}const di=e=>!!(e&&e.__v_isRef===!0),wt=e=>se(e)?e:e==null?"":V(e)||q(e)&&(e.toString===ci||!B(e.toString))?di(e)?wt(e.value):JSON.stringify(e,hi,2):String(e),hi=(e,t)=>di(t)?hi(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[is(s,i)+" =>"]=r,n),{})}:Jt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>is(n))}:Je(t)?is(t):q(t)&&!V(t)&&!ai(t)?String(t):t,is=(e,t="")=>{var n;return Je(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
**/function Us(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const X={},Ut=[],ze=()=>{},oi=()=>!1,Kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wn=e=>e.startsWith("onUpdate:"),fe=Object.assign,Bs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Io=Object.prototype.hasOwnProperty,$=(e,t)=>Io.call(e,t),V=Array.isArray,Bt=e=>En(e)==="[object Map]",Yt=e=>En(e)==="[object Set]",cr=e=>En(e)==="[object Date]",B=e=>typeof e=="function",se=e=>typeof e=="string",Ye=e=>typeof e=="symbol",q=e=>e!==null&&typeof e=="object",li=e=>(q(e)||B(e))&&B(e.then)&&B(e.catch),ci=Object.prototype.toString,En=e=>ci.call(e),No=e=>En(e).slice(8,-1),ai=e=>En(e)==="[object Object]",js=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ln=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$n=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Do=/-\w/g,ve=$n(e=>e.replace(Do,t=>t.slice(1).toUpperCase())),Mo=/\B([A-Z])/g,vt=$n(e=>e.replace(Mo,"-$1").toLowerCase()),qn=$n(e=>e.charAt(0).toUpperCase()+e.slice(1)),is=$n(e=>e?`on${qn(e)}`:""),qe=(e,t)=>!Object.is(e,t),Cn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ui=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},zn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ar;const Yn=()=>ar||(ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gs(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=se(s)?Ho(s):Gs(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(se(e)||q(e))return e}const Lo=/;(?![^(]*\))/g,Vo=/:([^]+)/,Fo=/\/\*[^]*?\*\//g;function Ho(e){const t={};return e.replace(Fo,"").split(Lo).forEach(n=>{if(n){const s=n.split(Vo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function jt(e){let t="";if(se(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=jt(e[n]);s&&(t+=s+" ")}else if(q(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Uo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Bo=Us(Uo);function fi(e){return!!e||e===""}function jo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=_t(e[s],t[s]);return n}function _t(e,t){if(e===t)return!0;let n=cr(e),s=cr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ye(e),s=Ye(t),n||s)return e===t;if(n=V(e),s=V(t),n||s)return n&&s?jo(e,t):!1;if(n=q(e),s=q(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!_t(e[o],t[o]))return!1}}return String(e)===String(t)}function ks(e,t){return e.findIndex(n=>_t(n,t))}const di=e=>!!(e&&e.__v_isRef===!0),wt=e=>se(e)?e:e==null?"":V(e)||q(e)&&(e.toString===ci||!B(e.toString))?di(e)?wt(e.value):JSON.stringify(e,hi,2):String(e),hi=(e,t)=>di(t)?hi(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[os(s,i)+" =>"]=r,n),{})}:Yt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>os(n))}:Ye(t)?os(t):q(t)&&!V(t)&&!ai(t)?String(t):t,os=(e,t="")=>{var n;return Ye(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ae;class ko{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ae&&(ae.active?(this.parent=ae,this.index=(ae.scopes||(ae.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=ae;try{return ae=this,t()}finally{ae=n}}}on(){++this._on===1&&(this.prevScope=ae,ae=this)}off(){if(this._on>0&&--this._on===0){if(ae===this)ae=this.prevScope;else{let t=ae;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Go(){return ae}let Z;const os=new WeakSet;class pi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ae&&(ae.active?ae.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,os.has(this)&&(os.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||mi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ur(this),_i(this);const t=Z,n=Ie;Z=this,Ie=!0;try{return this.fn()}finally{yi(this),Z=t,Ie=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)$s(t);this.deps=this.depsTail=void 0,ur(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?os.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){As(this)&&this.run()}get dirty(){return As(this)}}let gi=0,cn,an;function mi(e,t=!1){if(e.flags|=8,t){e.next=an,an=e;return}e.next=cn,cn=e}function Ks(){gi++}function Ws(){if(--gi>0)return;if(an){let t=an;for(an=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;cn;){let t=cn;for(cn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function _i(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function yi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),$s(s),Ko(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function As(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(vi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function vi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pn)||(e.globalVersion=pn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!As(e))))return;e.flags|=2;const t=e.dep,n=Z,s=Ie;Z=e,Ie=!0;try{_i(e);const r=e.fn(e._value);(t.version===0||qe(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Z=n,Ie=s,yi(e),e.flags&=-3}}function $s(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)$s(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ko(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ie=!0;const bi=[];function ot(){bi.push(Ie),Ie=!1}function lt(){const e=bi.pop();Ie=e===void 0?!0:e}function ur(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Z;Z=void 0;try{t()}finally{Z=n}}}let pn=0;class Wo{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Z||!Ie||Z===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Z)n=this.activeLink=new Wo(Z,this),Z.deps?(n.prevDep=Z.depsTail,Z.depsTail.nextDep=n,Z.depsTail=n):Z.deps=Z.depsTail=n,Ei(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Z.depsTail,n.nextDep=void 0,Z.depsTail.nextDep=n,Z.depsTail=n,Z.deps===n&&(Z.deps=s)}return n}trigger(t){thLine truncated
**/let ue;class Go{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ue&&(ue.active?(this.parent=ue,this.index=(ue.scopes||(ue.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=ue;try{return ue=this,t()}finally{ue=n}}}on(){++this._on===1&&(this.prevScope=ue,ue=this)}off(){if(this._on>0&&--this._on===0){if(ue===this)ue=this.prevScope;else{let t=ue;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function ko(){return ue}let Z;const ls=new WeakSet;class pi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ue&&(ue.active?ue.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ls.has(this)&&(ls.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||mi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ur(this),_i(this);const t=Z,n=Ie;Z=this,Ie=!0;try{return this.fn()}finally{yi(this),Z=t,Ie=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)$s(t);this.deps=this.depsTail=void 0,ur(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ls.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){As(this)&&this.run()}get dirty(){return As(this)}}let gi=0,cn,an;function mi(e,t=!1){if(e.flags|=8,t){e.next=an,an=e;return}e.next=cn,cn=e}function Ks(){gi++}function Ws(){if(--gi>0)return;if(an){let t=an;for(an=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;cn;){let t=cn;for(cn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function _i(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function yi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),$s(s),Ko(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function As(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(vi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function vi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pn)||(e.globalVersion=pn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!As(e))))return;e.flags|=2;const t=e.dep,n=Z,s=Ie;Z=e,Ie=!0;try{_i(e);const r=e.fn(e._value);(t.version===0||qe(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Z=n,Ie=s,yi(e),e.flags&=-3}}function $s(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)$s(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ko(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ie=!0;const bi=[];function ot(){bi.push(Ie),Ie=!1}function lt(){const e=bi.pop();Ie=e===void 0?!0:e}function ur(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Z;Z=void 0;try{t()}finally{Z=n}}}let pn=0;class Wo{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Z||!Ie||Z===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Z)n=this.activeLink=new Wo(Z,this),Z.deps?(n.prevDep=Z.depsTail,Z.depsTail.nextDep=n,Z.depsTail=n):Z.deps=Z.depsTail=n,Ei(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Z.depsTail,n.nextDep=void 0,Z.depsTail.nextDep=n,Z.depsTail=n,Z.deps===n&&(Z.deps=s)}return n}trigger(t){thLine truncated
* @vue/runtime-core v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Sn(e,t,n,s){try{return s?e(...s):e()}catch(r){Yn(r,t,n)}}function Me(e,t,n,s){if(B(e)){const r=Sn(e,t,n,s);return r&&li(r)&&r.catch(i=>{Yn(i,t,n)}),r}if(V(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Me(e[i],t,n,s));return r}}function Yn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||X;if(t){let l=t.parent;const c=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,c,f)===!1)return}l=l.parent}if(i){ot(),Sn(i,null,10,[e,c,f]),lt();return}}ml(e,n,r,s,o)}function ml(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const ye=[];let Ke=-1;const kt=[];let gt=null,Lt=0;const Ii=Promise.resolve();let Mn=null;function Qs(e){const t=Mn||Ii;return e?t.then(this?e.bind(this):e):t}function _l(e){let t=Ke+1,n=ye.length;for(;t<n;){const s=t+n>>>1,r=ye[s],i=mn(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Xs(e){if(!(e.flags&1)){const t=mn(e),n=ye[ye.length-1];!n||!(e.flags&2)&&t>=mn(n)?ye.push(e):ye.splice(_l(t),0,e),e.flags|=1,Ni()}}function Ni(){Mn||(Mn=Ii.then(Mi))}function yl(e){if(!V(e))gt&&e.id===-1?gt.splice(Lt+1,0,e):e.flags&1||(kt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)kt.push(e[t]);Ni()}function dr(e,t,n=Ke+1){for(;n<ye.length;n++){const s=ye[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ye.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Di(e){if(kt.length){const t=[...new Set(kt)].sort((n,s)=>mn(n)-mn(s));if(kt.length=0,gt){for(let n=0;n<t.length;n++)gt.push(t[n]);return}for(gt=t,Lt=0;Lt<gt.length;Lt++){const n=gt[Lt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}gt=null,Lt=0}}const mn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Mi(e){try{for(Ke=0;Ke<ye.length;Ke++){const t=ye[Ke];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Sn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ke<ye.length;Ke++){const t=ye[Ke];t&&(t.flags&=-2)}Ke=-1,ye.length=0,Di(),Mn=null,(ye.length||kt.length)&&Mi()}}let Ae=null,Li=null;function Ln(e){const t=Ae;return Ae=e,Li=e&&e.type.__scopeId||null,t}function Vt(e,t=Ae,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Hn(-1);const i=Ln(t),o=Ot.length;let l;try{l=e(...r)}finally{for(let c=Ot.length;c>o;c--)lo();Ln(i),s._d&&Hn(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Su(e,t){if(Ae===null)return e;const n=ts(Ae),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=X]=t[r];i&&(B(i)&&(i={mounted:i,updated:i}),i.deep&&rt(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function St(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(ot(),Me(c,n,8,[e.el,l,e,t]),lt())}}function On(e,t){if(he){let n=he.provides;const s=he.parent&&he.parent.provides;s===n&&(n=he.provides=Object.create(s)),n[e]=t}}function Ne(e,t,n=!1){const s=mc();if(s||Gt){let r=Gt?Gt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&B(t)?t.call(s&&s.proxy):t}}const vl=Symbol.for("v-scx"),bl=()=>Ne(vl);function In(e,t,n){return Vi(e,t,n)}function Vi(e,t,n=X){const{immediate:s,deep:r,flush:i,once:o}=n,l=fe({},n),c=t&&s||!t&&i!=="post";let f;if(vn){if(i==="sync"){const m=bl();f=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=ze,m.resume=ze,m.pause=ze,m}}const u=he;l.call=(m,I,R)=>Me(m,u,I,R);let h=!1;i==="post"?l.scheduler=m=>{Ee(m,u&&u.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(m,I)=>{I?m():Xs(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const g=gl(e,t,l);return vn&&(f?f.push(g):c&&g()),g}function El(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?Fi(s,e):()=>s[e]:e.bind(s,s);let i;B(t)?i=t:(i=t.handler,n=t);const o=An(this),l=Vi(r,i.bind(s),n);return o(),l}function Fi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Sl=Symbol("_vte"),Qn=e=>e.__isTeleport,as=Symbol("_leaveCb");function Al(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==at){t=n;break}}return t}function Hi(e){if(!er(e))return Qn(e.type)&&e.children?Al(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&B(n.default))return n.default()}}function Zs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Zs(Qn(n.type)&&Hi(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ui(e,t){return B(e)?fe({name:e.name},t,{setup:e}):e}function Bi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Vn=new WeakMap;function un(e,t,n,s,r=!1){if(V(e)){e.forEach((R,U)=>un(R,t&&(V(t)?t[U]:t),n,s,r));return}if(fn(s)&&!r){s.shapeFlag&512&&s. Line truncated
**/function Sn(e,t,n,s){try{return s?e(...s):e()}catch(r){Qn(r,t,n)}}function Me(e,t,n,s){if(B(e)){const r=Sn(e,t,n,s);return r&&li(r)&&r.catch(i=>{Qn(i,t,n)}),r}if(V(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Me(e[i],t,n,s));return r}}function Qn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||X;if(t){let l=t.parent;const c=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,c,f)===!1)return}l=l.parent}if(i){ot(),Sn(i,null,10,[e,c,f]),lt();return}}ml(e,n,r,s,o)}function ml(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const ye=[];let Ke=-1;const Gt=[];let gt=null,Lt=0;const Ii=Promise.resolve();let Ln=null;function Qs(e){const t=Ln||Ii;return e?t.then(this?e.bind(this):e):t}function _l(e){let t=Ke+1,n=ye.length;for(;t<n;){const s=t+n>>>1,r=ye[s],i=mn(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Xs(e){if(!(e.flags&1)){const t=mn(e),n=ye[ye.length-1];!n||!(e.flags&2)&&t>=mn(n)?ye.push(e):ye.splice(_l(t),0,e),e.flags|=1,Ni()}}function Ni(){Ln||(Ln=Ii.then(Mi))}function yl(e){if(!V(e))gt&&e.id===-1?gt.splice(Lt+1,0,e):e.flags&1||(Gt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Gt.push(e[t]);Ni()}function dr(e,t,n=Ke+1){for(;n<ye.length;n++){const s=ye[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ye.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Di(e){if(Gt.length){const t=[...new Set(Gt)].sort((n,s)=>mn(n)-mn(s));if(Gt.length=0,gt){for(let n=0;n<t.length;n++)gt.push(t[n]);return}for(gt=t,Lt=0;Lt<gt.length;Lt++){const n=gt[Lt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}gt=null,Lt=0}}const mn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Mi(e){try{for(Ke=0;Ke<ye.length;Ke++){const t=ye[Ke];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Sn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ke<ye.length;Ke++){const t=ye[Ke];t&&(t.flags&=-2)}Ke=-1,ye.length=0,Di(),Ln=null,(ye.length||Gt.length)&&Mi()}}let Ae=null,Li=null;function Vn(e){const t=Ae;return Ae=e,Li=e&&e.type.__scopeId||null,t}function Vt(e,t=Ae,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Un(-1);const i=Vn(t),o=Ot.length;let l;try{l=e(...r)}finally{for(let c=Ot.length;c>o;c--)lo();Vn(i),s._d&&Un(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Su(e,t){if(Ae===null)return e;const n=ns(Ae),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=X]=t[r];i&&(B(i)&&(i={mounted:i,updated:i}),i.deep&&rt(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function St(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(ot(),Me(c,n,8,[e.el,l,e,t]),lt())}}function On(e,t){if(he){let n=he.provides;const s=he.parent&&he.parent.provides;s===n&&(n=he.provides=Object.create(s)),n[e]=t}}function Ne(e,t,n=!1){const s=mc();if(s||kt){let r=kt?kt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&B(t)?t.call(s&&s.proxy):t}}const vl=Symbol.for("v-scx"),bl=()=>Ne(vl);function In(e,t,n){return Vi(e,t,n)}function Vi(e,t,n=X){const{immediate:s,deep:r,flush:i,once:o}=n,l=fe({},n),c=t&&s||!t&&i!=="post";let f;if(vn){if(i==="sync"){const m=bl();f=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=ze,m.resume=ze,m.pause=ze,m}}const u=he;l.call=(m,I,R)=>Me(m,u,I,R);let h=!1;i==="post"?l.scheduler=m=>{Ee(m,u&&u.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(m,I)=>{I?m():Xs(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const g=gl(e,t,l);return vn&&(f?f.push(g):c&&g()),g}function El(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?Fi(s,e):()=>s[e]:e.bind(s,s);let i;B(t)?i=t:(i=t.handler,n=t);const o=An(this),l=Vi(r,i.bind(s),n);return o(),l}function Fi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Sl=Symbol("_vte"),Xn=e=>e.__isTeleport,us=Symbol("_leaveCb");function Al(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==at){t=n;break}}return t}function Hi(e){if(!er(e))return Xn(e.type)&&e.children?Al(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&B(n.default))return n.default()}}function Zs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Zs(Xn(n.type)&&Hi(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ui(e,t){return B(e)?fe({name:e.name},t,{setup:e}):e}function Bi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Fn=new WeakMap;function un(e,t,n,s,r=!1){if(V(e)){e.forEach((R,U)=>un(R,t&&(V(t)?t[U]:t),n,s,r));return}if(fn(s)&&!r){s.shapeFlag&512&&s. Line truncated
* @vue/runtime-dom v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ds;const Cr=typeof window<"u"&&window.trustedTypes;if(Cr)try{Ds=Cr.createPolicy("vue",{createHTML:e=>e})}catch{}const po=Ds?e=>Ds.createHTML(e):e=>e,wc="http://www.w3.org/2000/svg",Rc="http://www.w3.org/1998/Math/MathML",et=typeof document<"u"?document:null,Or=et&&et.createElement("template"),xc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?et.createElementNS(wc,e):t==="mathml"?et.createElementNS(Rc,e):n?et.createElement(e,{is:n}):et.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>et.createTextNode(e),createComment:e=>et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Or.innerHTML=po(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Or.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tc=Symbol("_vtc");function Pc(e,t,n){const s=e[Tc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const kn=Symbol("_vod"),go=Symbol("_vsh"),wu={name:"show",beforeMount(e,{value:t},{transition:n}){e[kn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),tn(e,!0),s.enter(e)):s.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[kn]:"none",e[go]=!t}const Cc=Symbol(""),Oc=/(?:^|;)\s*display\s*:/;function Ic(e,t,n){const s=e.style,r=se(n);let i=!1;if(n&&!r){if(t)if(se(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&on(s,l,"")}else for(const o in t)n[o]==null&&on(s,o,"");for(const o in n){o==="display"&&(i=!0);const l=n[o];l!=null?Dc(e,o,!se(t)&&t?t[o]:void 0,l)||on(s,o,l):on(s,o,"")}}else if(r){if(t!==n){const o=s[Cc];o&&(n+=";"+o),s.cssText=n,i=Oc.test(n)}}else t&&e.removeAttribute("style");kn in e&&(e[kn]=i?s.display:"",e[go]&&(s.display="none"))}const Ir=/\s*!important$/;function on(e,t,n){if(V(n))n.forEach(s=>on(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Nc(e,t);Ir.test(n)?e.setProperty(vt(s),n.replace(Ir,""),"important"):e[s]=n}}const Nr=["Webkit","Moz","ms"],hs={};function Nc(e,t){const n=hs[t];if(n)return n;let s=ve(t);if(s!=="filter"&&s in e)return hs[t]=s;s=$n(s);for(let r=0;r<Nr.length;r++){const i=Nr[r]+s;if(i in e)return hs[t]=i}return t}function Dc(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&se(s)&&n===s}const Dr="http://www.w3.org/1999/xlink";function Mr(e,t,n,s,r,i=Bo(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Dr,t.slice(6,t.length)):e.setAttributeNS(Dr,t,n):n==null||i&&!fi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Je(n)?String(n):n)}function Lr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?po(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=fi(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function it(e,t,n,s){e.addEventListener(t,n,s)}function Mc(e,t,n,s){e.removeEventListener(t,n,s)}const Vr=Symbol("_vei");function Lc(e,t,n,s,r=null){const i=e[Vr]||(e[Vr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Hc(t);if(s){const f=i[t]=jc(s,r);it(e,l,f,c)}else o&&(Mc(e,l,o,c),i[t]=void 0)}}const Vc=/(Once|Passive|Capture)$/,Fc=/^on:?(?:Once|Passive|Capture)$/;function Hc(e){let t,n;for(;(n=e.match(Vc))&&!Fc.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):vt(e.slice(2)),t]}let ps=0;const Uc=Promise.resolve(),Bc=()=>ps||(Uc.then(()=>ps=0),ps=Date.now());function jc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(V(r)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const o=r.slice(),l=[s];for(let c=0;c<o.length&&!s._stopped;c++){const f=o[c];f&&Me(f,t,5,l)}}else Me(r,t,5,[s])};return n.value=e,n.attached=Bc(),n}const Fr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,kc=(e,t,n,s,r Line truncated
`))),e[Re]=yt(r);const i=s||r.props&&r.props.type==="number";it(e,t?"change":"input",o=>{o.target.composing||e[Re](gs(e.value,n,i))}),(n||i)&&it(e,"change",()=>{e.value=gs(e.value,n,i)}),t||(it(e,"compositionstart",Wc),it(e,"compositionend",Hr),it(e,"change",Hr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",i=e[Tn];delete e[Tn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Re](gs(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Re]=yt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?qn(e.value):e.value,c=t??"";if(l===c)return;const f=e.getRootNode();(f instanceof Document||f instanceof ShadowRoot)&&f.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},$c={deep:!0,created(e,t,n){e[Re]=yt(n),it(e,"change",()=>{const s=e._modelValue,r=$t(e),i=e.checked,o=e[Re];if(V(s)){const l=Gs(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const f=[...s];f.splice(l,1),o(f)}}else if(Jt(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(mo(e,i))})},mounted:Br,beforeUpdate(e,t,n){e[Re]=yt(n),Br(e,t,n)}};function Br(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(V(t))r=Gs(t,s.props.value)>-1;else if(Jt(t))r=t.has(s.props.value);else{if(t===n)return;r=_t(t,mo(e,!0))}e.checked!==r&&(e.checked=r)}const qc={created(e,{value:t},n){e.checked=_t(t,n.props.value),e[Re]=yt(n),it(e,"change",()=>{e[Re]($t(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Re]=yt(s),t!==n&&(e.checked=_t(t,s.props.value))}},zc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,it(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?qn($t(i)):$t(i));e[Re](e.multiple?Jt(e._modelValue)?new Set(r):r:r[0]),e._assigning=!0,Qs(()=>{e._assigning=!1})}),e[Re]=yt(s)},mounted(e,{value:t}){jr(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Re]=yt(n)},updated(e,{value:t}){e._assigning||jr(e,t)}};function jr(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!Jt(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=$t(o);if(n)if(s){const c=typeof l;c==="string"||c==="number"?o.selected=t.some(f=>String(f)===String(l)):o.selected=Gs(t,l)>-1}else o.selected=t.has(l);else if(_t($t(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function $t(e){return"_value"in e?e._value:e.value}function mo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ru={created(e,t,n){Pn(e,t,n,null,"created")},mounted(e,t,n){Pn(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Pn(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Pn(e,t,n,s,"updated")}};function Jc(e,t){switch(e){case"SELECT":return zc;case"TEXTAREA":return Ur;default:switch(t){case"checkbox":return $c;case"radio":return qc;default:return Ur}}}function Pn(e,t,n,s,r){const o=Jc(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}const Yc=["ctrl","shift","alt","meta"],Qc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Yc.some(n=>e[`${n}Key`]&&!t.includes(n))},xu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=Qc[t[o]];if(l&&l(r,t))return}return e(r,...i)})},Xc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Tu=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=vt(r.key);if(t.some(o=>o===i||Xc[o]===i))return e(r)})},Zc=fe({patchProp:kc},xc);let kr;function ea(){return kr||(kr=ic(Zc))}const ta=(...e)=>{const t=ea().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=sa(s);if(!r)return;const i=t._component;!B(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,na(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function na(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function sa(e){return se(e)?document.querySelector(e):e}/*!
**/let Ds;const Cr=typeof window<"u"&&window.trustedTypes;if(Cr)try{Ds=Cr.createPolicy("vue",{createHTML:e=>e})}catch{}const po=Ds?e=>Ds.createHTML(e):e=>e,wc="http://www.w3.org/2000/svg",Rc="http://www.w3.org/1998/Math/MathML",et=typeof document<"u"?document:null,Or=et&&et.createElement("template"),xc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?et.createElementNS(wc,e):t==="mathml"?et.createElementNS(Rc,e):n?et.createElement(e,{is:n}):et.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>et.createTextNode(e),createComment:e=>et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Or.innerHTML=po(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Or.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tc=Symbol("_vtc");function Pc(e,t,n){const s=e[Tc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const kn=Symbol("_vod"),go=Symbol("_vsh"),Ru={name:"show",beforeMount(e,{value:t},{transition:n}){e[kn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),tn(e,!0),s.enter(e)):s.leave(e,()=>{tn(e,!1)}):tn(e,t))},beforeUnmount(e,{value:t}){tn(e,t)}};function tn(e,t){e.style.display=t?e[kn]:"none",e[go]=!t}const Cc=Symbol(""),Oc=/(?:^|;)\s*display\s*:/;function Ic(e,t,n){const s=e.style,r=se(n);let i=!1;if(n&&!r){if(t)if(se(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&on(s,l,"")}else for(const o in t)n[o]==null&&on(s,o,"");for(const o in n){o==="display"&&(i=!0);const l=n[o];l!=null?Dc(e,o,!se(t)&&t?t[o]:void 0,l)||on(s,o,l):on(s,o,"")}}else if(r){if(t!==n){const o=s[Cc];o&&(n+=";"+o),s.cssText=n,i=Oc.test(n)}}else t&&e.removeAttribute("style");kn in e&&(e[kn]=i?s.display:"",e[go]&&(s.display="none"))}const Ir=/\s*!important$/;function on(e,t,n){if(V(n))n.forEach(s=>on(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Nc(e,t);Ir.test(n)?e.setProperty(vt(s),n.replace(Ir,""),"important"):e[s]=n}}const Nr=["Webkit","Moz","ms"],hs={};function Nc(e,t){const n=hs[t];if(n)return n;let s=ve(t);if(s!=="filter"&&s in e)return hs[t]=s;s=qn(s);for(let r=0;r<Nr.length;r++){const i=Nr[r]+s;if(i in e)return hs[t]=i}return t}function Dc(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&se(s)&&n===s}const Dr="http://www.w3.org/1999/xlink";function Mr(e,t,n,s,r,i=Bo(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Dr,t.slice(6,t.length)):e.setAttributeNS(Dr,t,n):n==null||i&&!fi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ye(n)?String(n):n)}function Lr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?po(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=fi(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function it(e,t,n,s){e.addEventListener(t,n,s)}function Mc(e,t,n,s){e.removeEventListener(t,n,s)}const Vr=Symbol("_vei");function Lc(e,t,n,s,r=null){const i=e[Vr]||(e[Vr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Hc(t);if(s){const f=i[t]=jc(s,r);it(e,l,f,c)}else o&&(Mc(e,l,o,c),i[t]=void 0)}}const Vc=/(Once|Passive|Capture)$/,Fc=/^on:?(?:Once|Passive|Capture)$/;function Hc(e){let t,n;for(;(n=e.match(Vc))&&!Fc.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):vt(e.slice(2)),t]}let ps=0;const Uc=Promise.resolve(),Bc=()=>ps||(Uc.then(()=>ps=0),ps=Date.now());function jc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(V(r)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const o=r.slice(),l=[s];for(let c=0;c<o.length&&!s._stopped;c++){const f=o[c];f&&Me(f,t,5,l)}}else Me(r,t,5,[s])};return n.value=e,n.attached=Bc(),n}const Fr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gc=(e,t,n,s,r Line truncated
`))),e[Re]=yt(r);const i=s||r.props&&r.props.type==="number";it(e,t?"change":"input",o=>{o.target.composing||e[Re](gs(e.value,n,i))}),(n||i)&&it(e,"change",()=>{e.value=gs(e.value,n,i)}),t||(it(e,"compositionstart",Wc),it(e,"compositionend",Hr),it(e,"change",Hr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",i=e[Tn];delete e[Tn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Re](gs(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Re]=yt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?zn(e.value):e.value,c=t??"";if(l===c)return;const f=e.getRootNode();(f instanceof Document||f instanceof ShadowRoot)&&f.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},$c={deep:!0,created(e,t,n){e[Re]=yt(n),it(e,"change",()=>{const s=e._modelValue,r=$t(e),i=e.checked,o=e[Re];if(V(s)){const l=ks(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const f=[...s];f.splice(l,1),o(f)}}else if(Yt(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(mo(e,i))})},mounted:Br,beforeUpdate(e,t,n){e[Re]=yt(n),Br(e,t,n)}};function Br(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(V(t))r=ks(t,s.props.value)>-1;else if(Yt(t))r=t.has(s.props.value);else{if(t===n)return;r=_t(t,mo(e,!0))}e.checked!==r&&(e.checked=r)}const qc={created(e,{value:t},n){e.checked=_t(t,n.props.value),e[Re]=yt(n),it(e,"change",()=>{e[Re]($t(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Re]=yt(s),t!==n&&(e.checked=_t(t,s.props.value))}},zc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,it(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?zn($t(i)):$t(i));e[Re](e.multiple?Yt(e._modelValue)?new Set(r):r:r[0]),e._assigning=!0,Qs(()=>{e._assigning=!1})}),e[Re]=yt(s)},mounted(e,{value:t}){jr(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Re]=yt(n)},updated(e,{value:t}){e._assigning||jr(e,t)}};function jr(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!Yt(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=$t(o);if(n)if(s){const c=typeof l;c==="string"||c==="number"?o.selected=t.some(f=>String(f)===String(l)):o.selected=ks(t,l)>-1}else o.selected=t.has(l);else if(_t($t(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function $t(e){return"_value"in e?e._value:e.value}function mo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xu={created(e,t,n){Pn(e,t,n,null,"created")},mounted(e,t,n){Pn(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Pn(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Pn(e,t,n,s,"updated")}};function Yc(e,t){switch(e){case"SELECT":return zc;case"TEXTAREA":return Ur;default:switch(t){case"checkbox":return $c;case"radio":return qc;default:return Ur}}}function Pn(e,t,n,s,r){const o=Yc(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}const Jc=["ctrl","shift","alt","meta"],Qc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Jc.some(n=>e[`${n}Key`]&&!t.includes(n))},Tu=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=Qc[t[o]];if(l&&l(r,t))return}return e(r,...i)})},Xc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Pu=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=vt(r.key);if(t.some(o=>o===i||Xc[o]===i))return e(r)})},Zc=fe({patchProp:Gc},xc);let Gr;function ea(){return Gr||(Gr=ic(Zc))}const ta=(...e)=>{const t=ea().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=sa(s);if(!r)return;const i=t._component;!B(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,na(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function na(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function sa(e){return se(e)?document.querySelector(e):e}/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Ht=typeof document<"u";function _o(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ra(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&_o(e.default)}const K=Object.assign;function ms(e,t){const n={};for(const s in t){const r=t[s];n[s]=Le(r)?r.map(e):e(r)}return n}const hn=()=>{},Le=Array.isArray;function Gr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const yo=/#/g,ia=/&/g,oa=/\//g,la=/=/g,ca=/\?/g,vo=/\+/g,aa=/%5B/g,ua=/%5D/g,bo=/%5E/g,fa=/%60/g,Eo=/%7B/g,da=/%7C/g,So=/%7D/g,ha=/%20/g;function sr(e){return e==null?"":encodeURI(""+e).replace(da,"|").replace(aa,"[").replace(ua,"]")}function pa(e){return sr(e).replace(Eo,"{").replace(So,"}").replace(bo,"^")}function Ms(e){return sr(e).replace(vo,"%2B").replace(ha,"+").replace(yo,"%23").replace(ia,"%26").replace(fa,"`").replace(Eo,"{").replace(So,"}").replace(bo,"^")}function ga(e){return Ms(e).replace(la,"%3D")}function ma(e){return sr(e).replace(yo,"%23").replace(ca,"%3F")}function _a(e){return ma(e).replace(oa,"%2F")}function bn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const ya=/\/$/,va=e=>e.replace(ya,"");function _s(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,l>0?l:t.length),r=e(i.slice(1))),l>=0&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=Aa(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:bn(o)}}function ba(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ea(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&qt(t.matched[s],n.matched[r])&&Ao(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ao(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Sa(e[n],t[n]))return!1;return!0}function Sa(e,t){return Le(e)?Wr(e,t):Le(t)?Wr(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Wr(e,t){return Le(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Aa(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,l;for(o=0;o<s.length;o++)if(l=s[o],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const pt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ls=function(e){return e.pop="pop",e.push="push",e}({}),ys=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function wa(e){if(!e)if(Ht){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),va(e)}const Ra=/^[^#]+#/;function xa(e,t){return e.replace(Ra,"#")+t}function Ta(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const ns=()=>({left:window.scrollX,top:window.scrollY});function Pa(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ta(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $r(e,t){return(history.state?history.state.position-t:-1)+e}const Vs=new Map;function Ca(e,t){Vs.set(e,t)}function Oa(e){const t=Vs.get(e);return Vs.delete(e),t}function Ia(e){return typeof e=="string"||e&&typeof e=="object"}function wo(e){return typeof e=="string"||typeof e=="symbol"}let ne=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Ro=Symbol("");ne.MATCHER_NOT_FOUND+"",ne.NAVIGATION_GUARD_REDIRECT+"",ne.NAVIGATION_ABORTED+"",ne.NAVIGATION_CANCELLED+"",ne.NAVIGATION_DUPLICATED+"";function zt(e,t){return K(new Error,{type:e,[Ro]:!0},t)}function Xe(e,t){return e instanceof Error&&Ro in e&&(t==null||!!(e.type&t))}const Na=["params","query","hash"];function Da(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Na)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ma(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(vo," "),i=r.indexOf("="),o=bn(i<0?r:r.slice(0,i)),l=i<0?null:bn(r.slice(i+1));if(o in t){let c=t[o];Le(c)||(c=t[o]=[c]),c.push(l)}else t[o]=l}reLine truncated
*/const Ht=typeof document<"u";function _o(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ra(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&_o(e.default)}const K=Object.assign;function ms(e,t){const n={};for(const s in t){const r=t[s];n[s]=Le(r)?r.map(e):e(r)}return n}const hn=()=>{},Le=Array.isArray;function kr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const yo=/#/g,ia=/&/g,oa=/\//g,la=/=/g,ca=/\?/g,vo=/\+/g,aa=/%5B/g,ua=/%5D/g,bo=/%5E/g,fa=/%60/g,Eo=/%7B/g,da=/%7C/g,So=/%7D/g,ha=/%20/g;function sr(e){return e==null?"":encodeURI(""+e).replace(da,"|").replace(aa,"[").replace(ua,"]")}function pa(e){return sr(e).replace(Eo,"{").replace(So,"}").replace(bo,"^")}function Ms(e){return sr(e).replace(vo,"%2B").replace(ha,"+").replace(yo,"%23").replace(ia,"%26").replace(fa,"`").replace(Eo,"{").replace(So,"}").replace(bo,"^")}function ga(e){return Ms(e).replace(la,"%3D")}function ma(e){return sr(e).replace(yo,"%23").replace(ca,"%3F")}function _a(e){return ma(e).replace(oa,"%2F")}function bn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const ya=/\/$/,va=e=>e.replace(ya,"");function _s(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,l>0?l:t.length),r=e(i.slice(1))),l>=0&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=Aa(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:bn(o)}}function ba(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ea(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&qt(t.matched[s],n.matched[r])&&Ao(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ao(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Sa(e[n],t[n]))return!1;return!0}function Sa(e,t){return Le(e)?Wr(e,t):Le(t)?Wr(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Wr(e,t){return Le(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Aa(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,l;for(o=0;o<s.length;o++)if(l=s[o],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const pt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ls=function(e){return e.pop="pop",e.push="push",e}({}),ys=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function wa(e){if(!e)if(Ht){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),va(e)}const Ra=/^[^#]+#/;function xa(e,t){return e.replace(Ra,"#")+t}function Ta(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const ss=()=>({left:window.scrollX,top:window.scrollY});function Pa(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ta(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $r(e,t){return(history.state?history.state.position-t:-1)+e}const Vs=new Map;function Ca(e,t){Vs.set(e,t)}function Oa(e){const t=Vs.get(e);return Vs.delete(e),t}function Ia(e){return typeof e=="string"||e&&typeof e=="object"}function wo(e){return typeof e=="string"||typeof e=="symbol"}let ne=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Ro=Symbol("");ne.MATCHER_NOT_FOUND+"",ne.NAVIGATION_GUARD_REDIRECT+"",ne.NAVIGATION_ABORTED+"",ne.NAVIGATION_CANCELLED+"",ne.NAVIGATION_DUPLICATED+"";function zt(e,t){return K(new Error,{type:e,[Ro]:!0},t)}function Xe(e,t){return e instanceof Error&&Ro in e&&(t==null||!!(e.type&t))}const Na=["params","query","hash"];function Da(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Na)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ma(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(vo," "),i=r.indexOf("="),o=bn(i<0?r:r.slice(0,i)),l=i<0?null:bn(r.slice(i+1));if(o in t){let c=t[o];Le(c)||(c=t[o]=[c]),c.push(l)}else t[o]=l}reLine truncated
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Ha=()=>location.protocol+"//"+location.host;function xo(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),Kr(l,"")}return Kr(n,e)+s+r}function Ua(e,t,n,s){let r=[],i=[],o=null;const l=({state:g})=>{const m=xo(e,location),I=n.value,R=t.value;let U=0;if(g){if(n.value=m,t.value=g,o&&o===I){o=null;return}U=R?g.position-R.position:0}else s(m);r.forEach(F=>{F(n.value,I,{delta:U,type:Ls.pop,direction:U?U>0?ys.forward:ys.back:ys.unknown})})};function c(){o=n.value}function f(g){r.push(g);const m=()=>{const I=r.indexOf(g);I>-1&&r.splice(I,1)};return i.push(m),m}function u(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(K({},g.state,{scroll:ns()}),"")}}function h(){for(const g of i)g();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:c,listen:f,destroy:h}}function Jr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?ns():null}}function Ba(e){const{history:t,location:n}=window,s={value:xo(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,f,u){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Ha()+e+c;try{t[u?"replaceState":"pushState"](f,"",g),r.value=f}catch(m){console.error(m),n[u?"replace":"assign"](g)}}function o(c,f){i(c,K({},t.state,Jr(r.value.back,c,r.value.forward,!0),f,{position:r.value.position}),!0),s.value=c}function l(c,f){const u=K({},r.value,t.state,{forward:c,scroll:ns()});i(u.current,u,!0),i(c,K({},Jr(s.value,c,null),{position:u.position+1},f),!1),s.value=c}return{location:s,state:r,push:l,replace:o}}function ja(e){e=wa(e);const t=Ba(e),n=Ua(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=K({location:"",base:e,go:s,createHref:xa.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Tt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var oe=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(oe||{});const ka={type:Tt.Static,value:""},Ga=/[a-zA-Z0-9_]/;function Ka(e){if(!e)return[[]];if(e==="/")return[[ka]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=oe.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,c,f="",u="";function h(){f&&(n===oe.Static?i.push({type:Tt.Static,value:f}):n===oe.Param||n===oe.ParamRegExp||n===oe.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Tt.Param,value:f,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function g(){f+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==oe.ParamRegExp){s=n,n=oe.EscapeNext;continue}switch(n){case oe.Static:c==="/"?(f&&h(),o()):c===":"?(h(),n=oe.Param):g();break;case oe.EscapeNext:g(),n=s;break;case oe.Param:c==="("?n=oe.ParamRegExp:Ga.test(c)?g():(h(),n=oe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case oe.ParamRegExp:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=oe.ParamRegExpEnd:u+=c;break;case oe.ParamRegExpEnd:h(),n=oe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===oe.ParamRegExp&&t(`Unfinished custom RegExp for param "${f}"`),h(),o(),r}const Yr="[^/]+?",Wa={sensitive:!1,strict:!1,start:!0,end:!0};var me=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(me||{});const $a=/[.+*?^${}()[\]/\\]/g;function qa(e,t){const n=K({},Wa,t),s=[];let r=n.start?"^":"";const i=[];for(const f of e){const u=f.length?[]:[me.Root];n.strict&&!f.length&&(r+="/");for(let h=0;h<f.length;h++){const g=f[h];let m=me.Segment+(n.sensitive?me.BonusCaseSensitive:0);if(g.type===Tt.Static)h||(r+="/"),r+=g.value.replace($a,"\\$&"),m+=me.Static;else if(g.type===Tt.Param){const{value:I,repeatable:R,optional:U,regexp:F}=g;i.push({name:I,repeatable:R,optional:U});const P=F||Yr;if(P!==Yr){m+=me.BonusCustomLine truncated
*/let Ha=()=>location.protocol+"//"+location.host;function xo(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),Kr(l,"")}return Kr(n,e)+s+r}function Ua(e,t,n,s){let r=[],i=[],o=null;const l=({state:g})=>{const m=xo(e,location),I=n.value,R=t.value;let U=0;if(g){if(n.value=m,t.value=g,o&&o===I){o=null;return}U=R?g.position-R.position:0}else s(m);r.forEach(F=>{F(n.value,I,{delta:U,type:Ls.pop,direction:U?U>0?ys.forward:ys.back:ys.unknown})})};function c(){o=n.value}function f(g){r.push(g);const m=()=>{const I=r.indexOf(g);I>-1&&r.splice(I,1)};return i.push(m),m}function u(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(K({},g.state,{scroll:ss()}),"")}}function h(){for(const g of i)g();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:c,listen:f,destroy:h}}function Yr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?ss():null}}function Ba(e){const{history:t,location:n}=window,s={value:xo(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,f,u){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Ha()+e+c;try{t[u?"replaceState":"pushState"](f,"",g),r.value=f}catch(m){console.error(m),n[u?"replace":"assign"](g)}}function o(c,f){i(c,K({},t.state,Yr(r.value.back,c,r.value.forward,!0),f,{position:r.value.position}),!0),s.value=c}function l(c,f){const u=K({},r.value,t.state,{forward:c,scroll:ss()});i(u.current,u,!0),i(c,K({},Yr(s.value,c,null),{position:u.position+1},f),!1),s.value=c}return{location:s,state:r,push:l,replace:o}}function ja(e){e=wa(e);const t=Ba(e),n=Ua(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=K({location:"",base:e,go:s,createHref:xa.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Tt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var oe=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(oe||{});const Ga={type:Tt.Static,value:""},ka=/[a-zA-Z0-9_]/;function Ka(e){if(!e)return[[]];if(e==="/")return[[Ga]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=oe.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,c,f="",u="";function h(){f&&(n===oe.Static?i.push({type:Tt.Static,value:f}):n===oe.Param||n===oe.ParamRegExp||n===oe.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Tt.Param,value:f,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function g(){f+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==oe.ParamRegExp){s=n,n=oe.EscapeNext;continue}switch(n){case oe.Static:c==="/"?(f&&h(),o()):c===":"?(h(),n=oe.Param):g();break;case oe.EscapeNext:g(),n=s;break;case oe.Param:c==="("?n=oe.ParamRegExp:ka.test(c)?g():(h(),n=oe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case oe.ParamRegExp:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:n=oe.ParamRegExpEnd:u+=c;break;case oe.ParamRegExpEnd:h(),n=oe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===oe.ParamRegExp&&t(`Unfinished custom RegExp for param "${f}"`),h(),o(),r}const Jr="[^/]+?",Wa={sensitive:!1,strict:!1,start:!0,end:!0};var me=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(me||{});const $a=/[.+*?^${}()[\]/\\]/g;function qa(e,t){const n=K({},Wa,t),s=[];let r=n.start?"^":"";const i=[];for(const f of e){const u=f.length?[]:[me.Root];n.strict&&!f.length&&(r+="/");for(let h=0;h<f.length;h++){const g=f[h];let m=me.Segment+(n.sensitive?me.BonusCaseSensitive:0);if(g.type===Tt.Static)h||(r+="/"),r+=g.value.replace($a,"\\$&"),m+=me.Static;else if(g.type===Tt.Param){const{value:I,repeatable:R,optional:U,regexp:F}=g;i.push({name:I,repeatable:R,optional:U});const P=F||Jr;if(P!==Jr){m+=me.BonusCustomLine truncated
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sales Trainer</title>
<script type="module" crossorigin src="/assets/index-B2m5OgR7.js"></script>
<script type="module" crossorigin src="/assets/index-BhdfH8-z.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-HCrojZU7.css">
</head>
<body>
+4
View File
@@ -66,6 +66,8 @@ const messages = {
tierB: 'Tier B — Unsure',
tierC: 'Tier C — Not interested but has pain',
selectPersona: 'Select a persona to practice',
chatGuideTitle: 'How to practice',
chatGuideText: 'You are playing the salesperson. Chat with this customer and try to close the sale. Ask about their needs, solve their pain, and handle their objections. When you are done, press "Finish & get result" to see your score and coaching.',
chat: 'Chat',
start: 'Start',
send: 'Send',
@@ -149,6 +151,8 @@ const messages = {
tierB: 'ระดับ B — ยังไม่แน่ใจ',
tierC: 'ระดับ C — ไม่สนใจแต่มีปัญหา',
selectPersona: 'เลือกบุคคลต้นแบบเพื่อฝึก',
chatGuideTitle: 'วิธีฝึก',
chatGuideText: 'คุณรับบทเป็นพนักงานขาย พูดคุยกับลูกค้าคนนี้เพื่อพยายามปิดการขายให้ได้ สอบถามความต้องการ แก้ไขปัญหาของลูกค้า และรับมือกับข้อโต้แย้ง เมื่อพอใจแล้วกด "สรุปผล" เพื่อดูคะแนนและข้อเสนอแนะ',
chat: 'แชท',
start: 'เริ่มต้น',
send: 'ส่ง',
+30 -11
View File
@@ -1,23 +1,38 @@
<template>
<div>
<h2>{{ i18n.t('users') }}</h2>
<h2>👥 {{ i18n.t('users') }}</h2>
<div class="card guide">
<strong>📋 วิธีเพิ่มผู้ใช้งาน</strong>
<ol style="margin:8px 0 0;padding-left:20px;line-height:1.8">
<li>กรอก <strong>ชื่อผู้ใช้ (สำหรับเข้าสู่ระบบ)</strong>, ชื่อ, และรหัสผ่านเริ่มต้น</li>
<li>เลือกสิทธิ์: <strong>user</strong> = ผู้เข้าฝึกขาย, <strong>admin</strong> = จัดการระบบ</li>
<li>กด <strong>สร้าง</strong> — นำชื่อผู้ใช้ + รหัสผ่านไปแจ้งให้ผู้ใช้นั้นเข้าสู่ระบบได้เลย</li>
</ol>
</div>
<div class="card" style="margin-bottom:16px">
<h4>+ {{ i18n.t('create') }} user</h4>
<h4 style="margin-top:0">+ {{ i18n.t('create') }} {{ i18n.t('users').toLowerCase() }}</h4>
<div class="row">
<input v-model="form.name" placeholder="Name" style="flex:1" />
<input v-model="form.email" placeholder="Email" style="flex:1" />
<input v-model="form.password" type="password" placeholder="Temp password" style="flex:1" />
<input v-model="form.username" placeholder="ชื่อผู้ใช้ (เข้าสู่ระบบ)" style="flex:1" />
<input v-model="form.name" placeholder="ชื่อจริง" style="flex:1" />
<input v-model="form.password" type="password" placeholder="รหัสผ่านเริ่มต้น" style="flex:1" />
</div>
<div class="row" style="margin-top:10px">
<select v-model="form.role" style="flex:1">
<option value="user">user</option>
<option value="admin">admin</option>
<option value="user">🙂 user — ผู้เข้าฝึก</option>
<option value="admin">🛠 admin — ผู้ดูแลระบบ</option>
</select>
<button class="primary" @click="create">{{ i18n.t('create') }}</button>
<button class="primary" @click="create" :disabled="!form.username || !form.password">+ {{ i18n.t('create') }}</button>
</div>
<div class="error" v-if="error">{{ error }}</div>
</div>
<div v-if="users.length === 0" class="card empty-state">
<strong>ยังไม่มีผู้ใช้งาน</strong><span>สร้างผู้ใช้งานคนแรกด้วยฟอร์มด้านบน</span>
</div>
<div class="card" v-for="u in users" :key="u.id" style="margin-bottom:8px;display:flex;align-items:center;gap:12px">
<strong style="flex:1">{{ u.name }} ({{ u.email }})</strong>
<strong style="flex:1">{{ u.name }} ({{ u.username }})</strong>
<span class="badge">{{ u.role }}</span>
<span class="badge" :class="u.active ? 'won' : 'lost'">{{ u.active ? 'active' : 'inactive' }}</span>
</div>
@@ -31,16 +46,20 @@ import { i18n } from '../i18n'
const users = ref([])
const error = ref('')
const form = ref({ name: '', email: '', password: '', role: 'user' })
const form = ref({ username: '', name: '', password: '', role: 'user' })
async function load() { users.value = (await api.adminListUsers()).users }
async function create() {
error.value = ''
try {
await api.adminCreateUser({ ...form.value })
form.value = { name: '', email: '', password: '', role: 'user' }
form.value = { username: '', name: '', password: '', role: 'user' }
await load()
} catch (e) { error.value = e.message }
}
onMounted(load)
</script>
<style scoped>
.guide { background: #eef2ff; border-color: #c7d2fe; margin-bottom: 16px; }
</style>
+4 -1
View File
@@ -1,7 +1,10 @@
<template>
<div>
<div class="row" style="align-items:center;margin-bottom:16px">
<h2 style="margin:0">📊 {{ i18n.t('adminOverview') }}</h2>
<div>
<h2 style="margin:0">📊 {{ i18n.t('adminOverview') }}</h2>
<div class="muted" style="margin-top:4px">ภาพรวมผลการฝึกของทีมทั้งหมด — เลือกช่วงเวลาเพื่อดูสถิติ</div>
</div>
<div class="row" style="margin-left:auto;gap:10px">
<router-link to="/admin/users"><button class="users-btn">👥 {{ i18n.t('users') }}</button></router-link>
<router-link to="/admin/new-group"><button class="primary">+ {{ i18n.t('addProduct') }}</button></router-link>
+37 -2
View File
@@ -1,6 +1,13 @@
<template>
<div>
<router-link :to="`/groups/${gid}/personas`" class="btn-back">← {{ i18n.t('personas') }}</router-link>
<!-- How-to-train guide -->
<div class="card guide">
<strong>🎯 {{ i18n.t('chatGuideTitle') }}</strong>
<p style="margin:6px 0 0;line-height:1.7">{{ i18n.t('chatGuideText') }}</p>
</div>
<div class="row" style="align-items:center;margin-bottom:12px">
<h2 style="margin:0">{{ persona ? persona.name : '...' }}</h2>
<span class="badge" :class="persona && persona.channel">{{ persona ? persona.channel : '' }}</span>
@@ -42,8 +49,13 @@
<ul><li v-for="(c, i) in debrief.coaching" :key="i">{{ c }}</li></ul>
</div>
<details>
<summary>{{ i18n.t('reveal') }}</summary>
<pre class="json">{{ JSON.stringify(debrief.revealed_persona, null, 2) }}</pre>
<summary>🔎 {{ i18n.t('reveal') }}</summary>
<div class="reveal-grid" v-if="debrief.revealed_persona">
<div v-for="(v, k) in debrief.revealed_persona" :key="k" class="rev">
<span class="rk">{{ fieldLabel(k) }}</span>
<span class="rv">{{ fmt(v) }}</span>
</div>
</div>
</details>
<router-link to="/"><button class="primary" style="margin-top:12px">{{ i18n.t('dashboard') }}</button></router-link>
</div>
@@ -116,6 +128,23 @@ async function finish() {
sending.value = false
}
}
const FIELD_LABELS = {
name: 'ชื่อ', tier: 'ระดับ', difficulty: 'ความยาก', profession: 'อาชีพ',
age_group: 'ช่วงอายุ', location: 'พื้นที่', income: 'รายได้', budget: 'งบประมาณ',
lifestyle: 'ไลฟ์สไตล์', background: 'ภูมิหลัง', personality: 'บุคลิก',
communication_style: 'สไตล์การสื่อสาร', goal: 'เป้าหมาย', decision_timeline: 'กรอบตัดสินใจ',
pains: 'ปัญหา (Pain)', objections: 'ข้อโต้แย้ง', negotiation_levers: 'สิ่งที่ใช้ต่อรอง',
opener: 'บทเปิดบทสนทนา', channel: 'ช่องทาง', initiation_mode: 'ใครเริ่มก่อน', product_context: 'บริบทสินค้า',
}
function fieldLabel(k) {
return FIELD_LABELS[k] || k
}
function fmt(v) {
if (Array.isArray(v)) return v.join(', ')
if (v && typeof v === 'object') return JSON.stringify(v)
return String(v == null ? '—' : v)
}
</script>
<style scoped>
@@ -137,4 +166,10 @@ async function finish() {
.debrief { margin-top: 16px; }
.json { background: #0f172a; color: #9ca3af; padding: 10px; border-radius: 8px; font-size: 11px; overflow: auto; max-height: 260px; }
button.danger { background: var(--red); color: #fff; border: none; }
.guide { background: #eef2ff; border-color: #c7d2fe; margin-bottom: 12px; }
.reveal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.rev { display: flex; flex-direction: column; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.rk { font-size: 12px; color: var(--muted); }
.rv { font-size: 13px; color: var(--ink); margin-top: 2px; }
@media (max-width: 640px) { .reveal-grid { grid-template-columns: 1fr; } }
</style>
+4 -1
View File
@@ -1,6 +1,9 @@
<template>
<div>
<h2>📊 {{ i18n.t('myDashboard') }}</h2>
<div>
<h2 style="margin:0">📈 {{ i18n.t('myDashboard') }}</h2>
<div class="muted" style="margin-top:4px;margin-bottom:16px">สรุปผลการฝึกของตัวคุณเอง — ดูว่าปิดการขายได้กี่ครั้ง ยังฝึกกับใครบ้าง</div>
</div>
<!-- Win/Lose summary -->
<div class="row stat-row" v-if="!loading">