feat(ui): 3-tab layout (Admin overview / My dashboard / Training) + Settings page
- App.vue: top tab bar (Admin overview [admin], My dashboard, Training) + Settings icon - router: / = admin overview, /my/board, /training, /settings; non-admin '/' -> /my/board - New views: Training.vue (pick ready product group -> personas), MyBoard.vue (win/lose + sessions summary), Settings.vue (change email/password, language) - Backend: allow /api/me/board + /api/chat/sessions for any authenticated user (so the My dashboard tab works for admins too), not just 'user' role - i18n EN/TH keys; rebuilt frontend/dist Verified: build ok, /api/me/board + /api/chat/sessions + /api/groups all 200 for admin.
This commit is contained in:
1 parent
aec596d1d6
commit
ac35be8906
32 files changed
+308
-61
No files matched your search
@@ -168,7 +168,6 @@ def finish_session(gid: str, pid: str):
|
||||
|
||||
@chat_bp.get("/sessions")
|
||||
@require_auth
|
||||
@require_roles("user")
|
||||
def my_sessions():
|
||||
s = _stores()
|
||||
uid = current_user()["id"]
|
||||
|
||||
@@ -23,9 +23,8 @@ def _stores():
|
||||
|
||||
@me_bp.get("/board")
|
||||
@require_auth
|
||||
@require_roles("user")
|
||||
def win_lose_board():
|
||||
"""Per-persona won/lost/not-tried across all groups the user sees."""
|
||||
"""Per-persona won/lost/not-tried across all groups the user sees (any authenticated user)."""
|
||||
s = _stores()
|
||||
uid = current_user()["id"]
|
||||
my_sessions = s["sessions"].list_for_user(uid)
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{k as x,c as r,a,t,u,i as d,w as n,v as m,z as g,e as _,F as U,p as k,l as f,r as p,o as i,s as V}from"./index-BA-KDOrj.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};
|
||||
import{k as x,c as r,a,t,u,i as d,w as n,v as m,B as g,e as _,F as U,p as k,l as f,r as p,o as i,s as V}from"./index-EpRXsI-R.js";const b={class:"card",style:{"margin-bottom":"16px"}},B={class:"row"},C={key:0,class:"error"},h={style:{flex:"1"}},M={class:"badge"},E={__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",B,[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",C,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",h,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{E as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{_ as i,k as d,l as v,c as o,a as s,t,u as _,i as u,F as c,p as g,r as p,o as n}from"./index-BA-KDOrj.js";const m={class:"row",style:{gap:"16px",margin:"16px 0"}},y={class:"card stat"},f={class:"card stat"},w={style:{color:"var(--green)"}},x={class:"card stat"},h={style:{color:"var(--red)"}},k={class:"card stat"},b={class:"card stat"},A={class:"badge lost"},B={class:"badge won"},L={class:"muted"},F={__name:"Analytics",setup(S){const l=p({overall:{total_sessions:0,wins:0,losses:0,close_rate:0,avg_score:0},trainee_count:0,hardest_personas:[]});return d(async()=>{l.value=await v.analytics()}),(W,a)=>(n(),o("div",null,[s("h2",null,t(_(u).t("analytics")),1),s("div",m,[s("div",y,[a[0]||(a[0]=s("div",null,"Sessions",-1)),s("strong",null,t(l.value.overall.total_sessions),1)]),s("div",f,[a[1]||(a[1]=s("div",null,"Wins",-1)),s("strong",w,t(l.value.overall.wins),1)]),s("div",x,[a[2]||(a[2]=s("div",null,"Losses",-1)),s("strong",h,t(l.value.overall.losses),1)]),s("div",k,[a[3]||(a[3]=s("div",null,"Close rate",-1)),s("strong",null,t(l.value.overall.close_rate)+"%",1)]),s("div",b,[a[4]||(a[4]=s("div",null,"Avg score",-1)),s("strong",null,t(l.value.overall.avg_score),1)])]),s("h3",null,"Trainees: "+t(l.value.trainee_count),1),a[5]||(a[5]=s("h3",null,"Hardest personas",-1)),(n(!0),o(c,null,g(l.value.hardest_personas,(e,r)=>(n(),o("div",{class:"card",key:r,style:{"margin-bottom":"8px"}},[s("strong",null,t(e.persona_name),1),s("span",A,t(e.losses)+"L",1),s("span",B,t(e.wins)+"W",1),s("span",L,"· avg "+t(e.avg_score),1)]))),128))]))}},D=i(F,[["__scopeId","data-v-8828276e"]]);export{D as default};
|
||||
import{_ as i,k as d,l as v,c as o,a as s,t,u as _,i as u,F as c,p as g,r as p,o as n}from"./index-EpRXsI-R.js";const m={class:"row",style:{gap:"16px",margin:"16px 0"}},y={class:"card stat"},f={class:"card stat"},w={style:{color:"var(--green)"}},x={class:"card stat"},h={style:{color:"var(--red)"}},k={class:"card stat"},b={class:"card stat"},A={class:"badge lost"},B={class:"badge won"},L={class:"muted"},F={__name:"Analytics",setup(S){const l=p({overall:{total_sessions:0,wins:0,losses:0,close_rate:0,avg_score:0},trainee_count:0,hardest_personas:[]});return d(async()=>{l.value=await v.analytics()}),(W,a)=>(n(),o("div",null,[s("h2",null,t(_(u).t("analytics")),1),s("div",m,[s("div",y,[a[0]||(a[0]=s("div",null,"Sessions",-1)),s("strong",null,t(l.value.overall.total_sessions),1)]),s("div",f,[a[1]||(a[1]=s("div",null,"Wins",-1)),s("strong",w,t(l.value.overall.wins),1)]),s("div",x,[a[2]||(a[2]=s("div",null,"Losses",-1)),s("strong",h,t(l.value.overall.losses),1)]),s("div",k,[a[3]||(a[3]=s("div",null,"Close rate",-1)),s("strong",null,t(l.value.overall.close_rate)+"%",1)]),s("div",b,[a[4]||(a[4]=s("div",null,"Avg score",-1)),s("strong",null,t(l.value.overall.avg_score),1)])]),s("h3",null,"Trainees: "+t(l.value.trainee_count),1),a[5]||(a[5]=s("h3",null,"Hardest personas",-1)),(n(!0),o(c,null,g(l.value.hardest_personas,(e,r)=>(n(),o("div",{class:"card",key:r,style:{"margin-bottom":"8px"}},[s("strong",null,t(e.persona_name),1),s("span",A,t(e.losses)+"L",1),s("span",B,t(e.wins)+"W",1),s("span",L,"· avg "+t(e.avg_score),1)]))),128))]))}},D=i(F,[["__scopeId","data-v-8828276e"]]);export{D as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{_ as M,k as q,l as k,c as t,m as B,n as D,u as l,a as s,t as e,s as C,e as i,j as m,i as n,F,p as I,w as z,v as E,b as H,h as J,r as c,y as L,q as O,o}from"./index-BA-KDOrj.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);q(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 K(){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 S=O("router-link");return o(),t("div",null,[B(S,{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:K,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,[z(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)]),B(S,{to:"/"},{default:D(()=>[s("button",te,e(l(n).t("dashboard")),1)]),_:1})])):i("",!0)])}}},ue=M(le,[["__scopeId","data-v-4f54526a"]]);export{ue as default};
|
||||
import{_ as M,k as q,l as k,c as t,m as B,n as D,u as l,a as s,t as e,s as C,e as i,j as m,i as n,F,p as I,w as z,v as A,b as E,h as H,r as c,A as J,q as L,o}from"./index-EpRXsI-R.js";const O={class:"row",style:{"align-items":"center","margin-bottom":"12px"}},P={style:{margin:"0"}},R={key:0,class:"muted"},U=["disabled"],$={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=H(),_=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(){J(()=>{y.value&&(y.value.scrollTop=y.value.scrollHeight)})}const y=c(null);q(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 K(){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 S=L("router-link");return o(),t("div",null,[B(S,{to:`/groups/${l(_)}/personas`,class:"btn-back"},{default:D(()=>[m("← "+e(l(n).t("personas")),1)]),_:1},8,["to"]),s("div",O,[s("h2",P,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",R,e(r.value.profession)+" · "+e(r.value.age_group),1)):i("",!0),s("button",{class:"danger",style:{"margin-left":"auto"},onClick:K,disabled:v.value.length===0||!!u.value},[d.value?(o(),t("span",$)):i("",!0),m(e(l(n).t("finish")),1)],8,U)]),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,[z(s("input",{"onUpdate:modelValue":b[0]||(b[0]=h=>p.value=h),onKeyup:E(V,["enter"]),disabled:d.value,placeholder:l(n).t("send")},null,40,Y),[[A,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)]),B(S,{to:"/"},{default:D(()=>[s("button",te,e(l(n).t("dashboard")),1)]),_:1})])):i("",!0)])}}},ue=M(le,[["__scopeId","data-v-4f54526a"]]);export{ue as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{_ as k,k as v,l as g,c as r,a as t,t as e,u as s,i as a,f as d,m as c,n as l,e as u,F as f,p as x,r as y,q as b,o,s as w,x as h}from"./index-BA-KDOrj.js";const A={class:"row",style:{"margin-bottom":"16px"}},B={style:{margin:"0"}},N={key:0,style:{"margin-left":"auto"}},C={class:"primary"},D={key:0,class:"row",style:{gap:"16px","margin-bottom":"20px"}},V={class:"card link-card"},F={class:"card link-card"},P={key:1,class:"row",style:{gap:"16px","margin-bottom":"20px"}},$={class:"card link-card"},j={class:"card link-card"},q={class:"card link-card"},z={key:2,class:"card",style:{"min-height":"120px"}},E={key:3,class:"card empty-state"},G={key:0},I={key:1},L={class:"grid"},M={class:"row",style:{"justify-content":"space-between"}},S={class:"muted",style:{margin:"6px 0 12px"}},T={class:"primary"},H={__name:"Dashboard",setup(J){const _=y([]),p=y(!0);return v(async()=>{try{_.value=(await g.listGroups()).groups}finally{p.value=!1}}),(K,m)=>{const i=b("router-link");return o(),r("div",null,[t("div",A,[t("h2",B,e(s(a).t("dashboard")),1),s(d).isAdmin?(o(),r("div",N,[c(i,{to:"/admin/new-group"},{default:l(()=>[t("button",C,e(s(a).t("groupBuilder"))+" +",1)]),_:1})])):u("",!0)]),s(d).isAdmin?(o(),r("div",D,[c(i,{to:"/admin/users",style:{"text-decoration":"none"}},{default:l(()=>[t("div",V,"👥 "+e(s(a).t("users")),1)]),_:1}),c(i,{to:"/admin/analytics",style:{"text-decoration":"none"}},{default:l(()=>[t("div",F,"📊 "+e(s(a).t("analytics")),1)]),_:1})])):u("",!0),s(d).role==="user"?(o(),r("div",P,[c(i,{to:"/my/sessions",style:{"text-decoration":"none"}},{default:l(()=>[t("div",$,"🎯 "+e(s(a).t("myTraining")),1)]),_:1}),c(i,{to:"/my/weak-areas",style:{"text-decoration":"none"}},{default:l(()=>[t("div",j,"⚠️ "+e(s(a).t("weakAreas")),1)]),_:1}),c(i,{to:"/my/generate",style:{"text-decoration":"none"}},{default:l(()=>[t("div",q,"✨ "+e(s(a).t("generatePersona")),1)]),_:1})])):u("",!0),t("h3",null,e(s(a).t("groups")),1),p.value?(o(),r("div",z,[...m[0]||(m[0]=[t("div",{class:"skeleton",style:{height:"60px"}},null,-1),t("div",{class:"skeleton",style:{height:"60px","margin-top":"10px"}},null,-1)])])):_.value.length===0?(o(),r("div",E,[t("strong",null,e(s(d).isAdmin?"No persona groups yet":"No groups available"),1),s(d).isAdmin?(o(),r("span",G,e(s(a).t("groupBuilder"))+" to start.",1)):(o(),r("span",I,"Ask an admin to create a group."))])):u("",!0),t("div",L,[(o(!0),r(f,null,x(_.value,n=>(o(),r("div",{key:n.id,class:"card group-card lift"},[t("div",M,[t("strong",null,e(n.title),1),t("span",{class:w(["badge",n.status])},e(n.status),3)]),t("div",S,e(n.sales_kit&&n.sales_kit.productName||n.input&&n.input.product||""),1),s(d).isAdmin?(o(),h(i,{key:0,to:`/admin/groups/${n.id}/edit`},{default:l(()=>[t("button",null,e(s(a).t("personas"))+" / "+e(s(a).t("create")),1)]),_:1},8,["to"])):n.status==="ready"?(o(),h(i,{key:1,to:`/groups/${n.id}/personas`},{default:l(()=>[t("button",T,e(s(a).t("selectPersona")),1)]),_:1},8,["to"])):u("",!0)]))),128))])])}}},Q=k(H,[["__scopeId","data-v-559fb44c"]]);export{Q as default};
|
||||
import{_ as k,k as v,l as g,c as r,a as t,t as e,u as s,i as a,f as d,m as c,n as l,e as u,F as f,p as x,r as y,q as b,o,s as w,x as h}from"./index-EpRXsI-R.js";const A={class:"row",style:{"margin-bottom":"16px"}},B={style:{margin:"0"}},N={key:0,style:{"margin-left":"auto"}},C={class:"primary"},D={key:0,class:"row",style:{gap:"16px","margin-bottom":"20px"}},V={class:"card link-card"},F={class:"card link-card"},P={key:1,class:"row",style:{gap:"16px","margin-bottom":"20px"}},$={class:"card link-card"},j={class:"card link-card"},q={class:"card link-card"},z={key:2,class:"card",style:{"min-height":"120px"}},E={key:3,class:"card empty-state"},G={key:0},I={key:1},L={class:"grid"},M={class:"row",style:{"justify-content":"space-between"}},S={class:"muted",style:{margin:"6px 0 12px"}},T={class:"primary"},H={__name:"Dashboard",setup(J){const _=y([]),p=y(!0);return v(async()=>{try{_.value=(await g.listGroups()).groups}finally{p.value=!1}}),(K,m)=>{const i=b("router-link");return o(),r("div",null,[t("div",A,[t("h2",B,e(s(a).t("dashboard")),1),s(d).isAdmin?(o(),r("div",N,[c(i,{to:"/admin/new-group"},{default:l(()=>[t("button",C,e(s(a).t("groupBuilder"))+" +",1)]),_:1})])):u("",!0)]),s(d).isAdmin?(o(),r("div",D,[c(i,{to:"/admin/users",style:{"text-decoration":"none"}},{default:l(()=>[t("div",V,"👥 "+e(s(a).t("users")),1)]),_:1}),c(i,{to:"/admin/analytics",style:{"text-decoration":"none"}},{default:l(()=>[t("div",F,"📊 "+e(s(a).t("analytics")),1)]),_:1})])):u("",!0),s(d).role==="user"?(o(),r("div",P,[c(i,{to:"/my/sessions",style:{"text-decoration":"none"}},{default:l(()=>[t("div",$,"🎯 "+e(s(a).t("myTraining")),1)]),_:1}),c(i,{to:"/my/weak-areas",style:{"text-decoration":"none"}},{default:l(()=>[t("div",j,"⚠️ "+e(s(a).t("weakAreas")),1)]),_:1}),c(i,{to:"/my/generate",style:{"text-decoration":"none"}},{default:l(()=>[t("div",q,"✨ "+e(s(a).t("generatePersona")),1)]),_:1})])):u("",!0),t("h3",null,e(s(a).t("groups")),1),p.value?(o(),r("div",z,[...m[0]||(m[0]=[t("div",{class:"skeleton",style:{height:"60px"}},null,-1),t("div",{class:"skeleton",style:{height:"60px","margin-top":"10px"}},null,-1)])])):_.value.length===0?(o(),r("div",E,[t("strong",null,e(s(d).isAdmin?"No persona groups yet":"No groups available"),1),s(d).isAdmin?(o(),r("span",G,e(s(a).t("groupBuilder"))+" to start.",1)):(o(),r("span",I,"Ask an admin to create a group."))])):u("",!0),t("div",L,[(o(!0),r(f,null,x(_.value,n=>(o(),r("div",{key:n.id,class:"card group-card lift"},[t("div",M,[t("strong",null,e(n.title),1),t("span",{class:w(["badge",n.status])},e(n.status),3)]),t("div",S,e(n.sales_kit&&n.sales_kit.productName||n.input&&n.input.product||""),1),s(d).isAdmin?(o(),h(i,{key:0,to:`/admin/groups/${n.id}/edit`},{default:l(()=>[t("button",null,e(s(a).t("personas"))+" / "+e(s(a).t("create")),1)]),_:1},8,["to"])):n.status==="ready"?(o(),h(i,{key:1,to:`/groups/${n.id}/personas`},{default:l(()=>[t("button",T,e(s(a).t("selectPersona")),1)]),_:1},8,["to"])):u("",!0)]))),128))])])}}},Q=k(H,[["__scopeId","data-v-559fb44c"]]);export{Q as default};
|
||||
@@ -1 +0,0 @@
|
||||
button.active[data-v-d299d1b3]{background:var(--accent);color:#fff;border-color:var(--accent)}.grid[data-v-d299d1b3]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.pcard[data-v-d299d1b3]{display:flex;flex-direction:column;min-height:140px}
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{_ as x,r as l,k as C,c as r,a as e,t,u as m,i as v,s as p,F as k,w as P,v as M,e as N,p as V,h as $,l as w,q as B,o as u,m as D,n as G}from"./index-BA-KDOrj.js";const I={class:"card",style:{"margin-bottom":"16px"}},T={class:"row"},q={key:1,class:"muted"},z=["disabled"],E={key:2,class:"error"},F={class:"grid"},L={class:"muted"},R={class:"primary",style:{width:"100%"}},S={__name:"GenPersona",setup(U){const b=$(),o=l(b.query.mode==="weak"?"weak-area":"manual"),i=l(""),d=l(!1),c=l(""),y=l([]),g=l(null);async function _(){const n=await w.myPersonas();g.value=n.group.id,y.value=n.personas}C(_);async function f(){d.value=!0,c.value="";try{const n=o.value==="weak-area"?{mode:"weak-area",spec:{}}:{mode:"manual",spec:{description:i.value}};await w.generatePersona(n),await _()}catch(n){c.value=n.message}finally{d.value=!1}}return(n,a)=>{const h=B("router-link");return u(),r("div",null,[e("h2",null,t(m(v).t("generatePersona")),1),e("div",I,[a[4]||(a[4]=e("label",null,"Mode",-1)),e("div",T,[e("button",{class:p({active:o.value==="manual"}),onClick:a[0]||(a[0]=s=>o.value="manual")},"✏️ "+t(m(v).t("manual")),3),e("button",{class:p({active:o.value==="weak-area"}),onClick:a[1]||(a[1]=s=>o.value="weak-area")},"🔒 Weak-area lock",2)]),o.value==="manual"?(u(),r(k,{key:0},[a[3]||(a[3]=e("label",null,"Describe the persona you want to practice against",-1)),P(e("textarea",{"onUpdate:modelValue":a[2]||(a[2]=s=>i.value=s),rows:"4",placeholder:"e.g. a price-hardball restaurant owner on LINE who stalls when I bring up costs"},null,512),[[M,i.value]])],64)):(u(),r("p",q,"The system will analyze your losses and auto-generate a harder persona targeting your weak points.")),e("button",{class:"primary",style:{"margin-top":"16px"},disabled:d.value||o.value==="manual"&&!i.value.trim(),onClick:f},t(d.value?"...":m(v).t("generatePersona")),9,z),c.value?(u(),r("div",E,t(c.value),1)):N("",!0)]),a[5]||(a[5]=e("h3",null,"My personas",-1)),e("div",F,[(u(!0),r(k,null,V(y.value,s=>(u(),r("div",{key:s.id,class:"card pcard"},[e("strong",null,t(s.name),1),e("span",{class:p(["badge",s.tier])},"Tier "+t(s.tier),3),e("div",L,t(s.profession)+" · "+t(s.age_group),1),D(h,{to:`/groups/${g.value}/chat/${s.id}`,style:{"margin-top":"auto"}},{default:G(()=>[e("button",R,t(m(v).t("chat")),1)]),_:1},8,["to"])]))),128))])])}}},j=x(S,[["__scopeId","data-v-d299d1b3"]]);export{j as default};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{c as g,a as e,t as l,u as o,i as n,w as r,v,z as m,e as x,r as p,g as k,o as f,l as w}from"./index-BA-KDOrj.js";const V={class:"card"},B={class:"row"},U={style:{flex:"1"}},C={value:"facebook"},D={value:"line"},F={style:{flex:"1"}},S={value:"th"},E={value:"en"},G={key:0,class:"error"},M=["disabled"],A={__name:"GroupBuilder",setup(N){const h=k(),t=p({product:"",segment:"",description:"",channel:"facebook",language:"th"}),c=p([]),d=p(""),i=p(!1);function _(a){c.value=Array.from(a.target.files||[])}async function b(){i.value=!0,d.value="";try{const a=new FormData;a.append("product",t.value.product),a.append("segment",t.value.segment),a.append("description",t.value.description),a.append("channel",t.value.channel),a.append("language",t.value.language),c.value.forEach(y=>a.append("files",y));const u=(await w.createGroup(a)).group.id;h.push(`/admin/groups/${u}/edit`)}catch(a){d.value=a.message}finally{i.value=!1}}return(a,s)=>(f(),g("div",V,[e("h2",null,l(o(n).t("groupBuilder")),1),e("label",null,l(o(n).t("product")),1),r(e("textarea",{"onUpdate:modelValue":s[0]||(s[0]=u=>t.value.product=u),rows:"3",placeholder:"e.g. Cloud POS for small restaurants"},null,512),[[v,t.value.product]]),e("label",null,l(o(n).t("segment")),1),r(e("input",{"onUpdate:modelValue":s[1]||(s[1]=u=>t.value.segment=u)},null,512),[[v,t.value.segment]]),e("label",null,l(o(n).t("description")),1),r(e("textarea",{"onUpdate:modelValue":s[2]||(s[2]=u=>t.value.description=u),rows:"3"},null,512),[[v,t.value.description]]),e("div",B,[e("div",U,[e("label",null,l(o(n).t("channel")),1),r(e("select",{"onUpdate:modelValue":s[3]||(s[3]=u=>t.value.channel=u)},[e("option",C,l(o(n).t("facebook")),1),e("option",D,l(o(n).t("line")),1)],512),[[m,t.value.channel]])]),e("div",F,[e("label",null,l(o(n).t("language")),1),r(e("select",{"onUpdate:modelValue":s[4]||(s[4]=u=>t.value.language=u)},[e("option",S,l(o(n).t("thai")),1),e("option",E,l(o(n).t("english")),1)],512),[[m,t.value.language]])])]),e("label",null,"📎 Files (.pdf/.md/.txt) — "+l(o(n).t("product"))+" can come from here",1),e("input",{type:"file",multiple:"",accept:".pdf,.md,.txt",onChange:_},null,32),d.value?(f(),g("div",G,l(d.value),1)):x("",!0),e("button",{class:"primary",style:{"margin-top":"16px"},disabled:i.value||!t.value.product&&!c.value.length,onClick:b},l(i.value?"...":o(n).t("create")),9,M)]))}};export{A as default};
|
||||
import{c as g,a as e,t as l,u as o,i as n,w as r,v,B as m,e as x,r as p,g as k,o as f,l as w}from"./index-EpRXsI-R.js";const V={class:"card"},B={class:"row"},U={style:{flex:"1"}},C={value:"facebook"},D={value:"line"},F={style:{flex:"1"}},S={value:"th"},E={value:"en"},G={key:0,class:"error"},M=["disabled"],O={__name:"GroupBuilder",setup(N){const h=k(),t=p({product:"",segment:"",description:"",channel:"facebook",language:"th"}),c=p([]),d=p(""),i=p(!1);function _(a){c.value=Array.from(a.target.files||[])}async function b(){i.value=!0,d.value="";try{const a=new FormData;a.append("product",t.value.product),a.append("segment",t.value.segment),a.append("description",t.value.description),a.append("channel",t.value.channel),a.append("language",t.value.language),c.value.forEach(y=>a.append("files",y));const u=(await w.createGroup(a)).group.id;h.push(`/admin/groups/${u}/edit`)}catch(a){d.value=a.message}finally{i.value=!1}}return(a,s)=>(f(),g("div",V,[e("h2",null,l(o(n).t("groupBuilder")),1),e("label",null,l(o(n).t("product")),1),r(e("textarea",{"onUpdate:modelValue":s[0]||(s[0]=u=>t.value.product=u),rows:"3",placeholder:"e.g. Cloud POS for small restaurants"},null,512),[[v,t.value.product]]),e("label",null,l(o(n).t("segment")),1),r(e("input",{"onUpdate:modelValue":s[1]||(s[1]=u=>t.value.segment=u)},null,512),[[v,t.value.segment]]),e("label",null,l(o(n).t("description")),1),r(e("textarea",{"onUpdate:modelValue":s[2]||(s[2]=u=>t.value.description=u),rows:"3"},null,512),[[v,t.value.description]]),e("div",B,[e("div",U,[e("label",null,l(o(n).t("channel")),1),r(e("select",{"onUpdate:modelValue":s[3]||(s[3]=u=>t.value.channel=u)},[e("option",C,l(o(n).t("facebook")),1),e("option",D,l(o(n).t("line")),1)],512),[[m,t.value.channel]])]),e("div",F,[e("label",null,l(o(n).t("language")),1),r(e("select",{"onUpdate:modelValue":s[4]||(s[4]=u=>t.value.language=u)},[e("option",S,l(o(n).t("thai")),1),e("option",E,l(o(n).t("english")),1)],512),[[m,t.value.language]])])]),e("label",null,"📎 Files (.pdf/.md/.txt) — "+l(o(n).t("product"))+" can come from here",1),e("input",{type:"file",multiple:"",accept:".pdf,.md,.txt",onChange:_},null,32),d.value?(f(),g("div",G,l(d.value),1)):x("",!0),e("button",{class:"primary",style:{"margin-top":"16px"},disabled:i.value||!t.value.product&&!c.value.length,onClick:b},l(i.value?"...":o(n).t("create")),9,M)]))}};export{O as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{_ as S,k as E,c as n,m as J,n as O,a as t,t as e,u as d,i as l,e as m,j as k,F as b,p as x,h as z,l as y,q as G,r as v,o}from"./index-BA-KDOrj.js";const V={class:"row",style:{"align-items":"center","margin-bottom":"16px"}},j={style:{margin:"0"}},A=["disabled"],P={key:0,class:"spinner",style:{"margin-right":"4px"}},F={key:0,class:"error"},I={key:1,class:"card empty-state"},L={class:"grid"},T={class:"row"},q={key:0,class:"badge"},D={class:"muted"},M={class:"muted",style:{"margin-top":"4px"}},R={style:{"margin-top":"8px"},open:""},$={class:"json"},H=["onClick"],K={__name:"GroupEdit",setup(Q){const _=z().params.gid,g=v(null),p=v([]),i=v(!1),u=v("");async function f(){const s=await y.getGroup(_);g.value=s.group,p.value=(await y.listPersonas(_)).personas}function N(s){return p.value.filter(r=>r.tier===s)}function w(s){return l.t(s==="A"?"tierA":s==="B"?"tierB":"tierC")}async function C(){i.value=!0,u.value="";try{const s=await y.analyzeGroup(_);p.value=s.personas,await f()}catch(s){u.value=s.message}finally{i.value=!1}}function B(s){const r=prompt("Edit persona JSON (full fields):",JSON.stringify(s,null,2));if(r)try{const c=JSON.parse(r);y.updatePersona(_,s.id,c).then(f)}catch(c){u.value="Invalid JSON: "+c.message}}return E(f),(s,r)=>{const c=G("router-link");return o(),n("div",null,[J(c,{to:"/",class:"btn-back"},{default:O(()=>[k("← "+e(d(l).t("dashboard")),1)]),_:1}),t("div",V,[t("h2",j,e(d(l).t("groupBuilder"))+" — "+e(g.value&&g.value.title),1),t("button",{class:"primary",style:{"margin-left":"auto"},onClick:C,disabled:i.value},[i.value?(o(),n("span",P)):m("",!0),k(e(d(l).t("analyze")),1)],8,A)]),u.value?(o(),n("div",F,e(u.value),1)):m("",!0),p.value.length===0&&!i.value?(o(),n("div",I,[r[0]||(r[0]=t("strong",null,"No personas yet",-1)),t("span",null,"Click "+e(d(l).t("analyze"))+" to generate the 15 personas (5 per tier).",1)])):m("",!0),(o(),n(b,null,x(["A","B","C"],h=>t("div",{key:h,style:{"margin-bottom":"20px"}},[t("h4",null,e(w(h)),1),t("div",L,[(o(!0),n(b,null,x(N(h),a=>(o(),n("div",{key:a.id,class:"card pcard"},[t("div",T,[t("strong",null,e(a.name),1),a.special==="wrong_text"?(o(),n("span",q,"⚠️ wrong_text")):m("",!0)]),t("div",D,e(a.profession)+" · "+e(a.age_group)+" · "+e(a.channel)+" · "+e(a.initiation_mode),1),t("div",M,"diff "+e(a.difficulty)+" · "+e(a.income)+" · "+e(a.personality),1),t("details",R,[t("summary",null,e(d(l).t("reveal")),1),t("pre",$,e(JSON.stringify(a,null,2)),1)]),t("button",{onClick:W=>B(a)},"✏️ Edit",8,H)]))),128))])])),64))])}}},Y=S(K,[["__scopeId","data-v-ee1c1944"]]);export{Y as default};
|
||||
import{_ as S,k as E,c as n,m as J,n as O,a as t,t as e,u as d,i as l,e as m,j as k,F as b,p as x,h as z,l as y,q as G,r as v,o}from"./index-EpRXsI-R.js";const V={class:"row",style:{"align-items":"center","margin-bottom":"16px"}},j={style:{margin:"0"}},A=["disabled"],P={key:0,class:"spinner",style:{"margin-right":"4px"}},F={key:0,class:"error"},I={key:1,class:"card empty-state"},L={class:"grid"},T={class:"row"},q={key:0,class:"badge"},D={class:"muted"},M={class:"muted",style:{"margin-top":"4px"}},R={style:{"margin-top":"8px"},open:""},$={class:"json"},H=["onClick"],K={__name:"GroupEdit",setup(Q){const _=z().params.gid,g=v(null),p=v([]),i=v(!1),u=v("");async function f(){const s=await y.getGroup(_);g.value=s.group,p.value=(await y.listPersonas(_)).personas}function N(s){return p.value.filter(r=>r.tier===s)}function w(s){return l.t(s==="A"?"tierA":s==="B"?"tierB":"tierC")}async function C(){i.value=!0,u.value="";try{const s=await y.analyzeGroup(_);p.value=s.personas,await f()}catch(s){u.value=s.message}finally{i.value=!1}}function B(s){const r=prompt("Edit persona JSON (full fields):",JSON.stringify(s,null,2));if(r)try{const c=JSON.parse(r);y.updatePersona(_,s.id,c).then(f)}catch(c){u.value="Invalid JSON: "+c.message}}return E(f),(s,r)=>{const c=G("router-link");return o(),n("div",null,[J(c,{to:"/",class:"btn-back"},{default:O(()=>[k("← "+e(d(l).t("dashboard")),1)]),_:1}),t("div",V,[t("h2",j,e(d(l).t("groupBuilder"))+" — "+e(g.value&&g.value.title),1),t("button",{class:"primary",style:{"margin-left":"auto"},onClick:C,disabled:i.value},[i.value?(o(),n("span",P)):m("",!0),k(e(d(l).t("analyze")),1)],8,A)]),u.value?(o(),n("div",F,e(u.value),1)):m("",!0),p.value.length===0&&!i.value?(o(),n("div",I,[r[0]||(r[0]=t("strong",null,"No personas yet",-1)),t("span",null,"Click "+e(d(l).t("analyze"))+" to generate the 15 personas (5 per tier).",1)])):m("",!0),(o(),n(b,null,x(["A","B","C"],h=>t("div",{key:h,style:{"margin-bottom":"20px"}},[t("h4",null,e(w(h)),1),t("div",L,[(o(!0),n(b,null,x(N(h),a=>(o(),n("div",{key:a.id,class:"card pcard"},[t("div",T,[t("strong",null,e(a.name),1),a.special==="wrong_text"?(o(),n("span",q,"⚠️ wrong_text")):m("",!0)]),t("div",D,e(a.profession)+" · "+e(a.age_group)+" · "+e(a.channel)+" · "+e(a.initiation_mode),1),t("div",M,"diff "+e(a.difficulty)+" · "+e(a.income)+" · "+e(a.personality),1),t("details",R,[t("summary",null,e(d(l).t("reveal")),1),t("pre",$,e(JSON.stringify(a,null,2)),1)]),t("button",{onClick:W=>B(a)},"✏️ Edit",8,H)]))),128))])])),64))])}}},Y=S(K,[["__scopeId","data-v-ee1c1944"]]);export{Y as default};
|
||||
+1
-1
@@ -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-BA-KDOrj.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-EpRXsI-R.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
@@ -0,0 +1 @@
|
||||
.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
@@ -0,0 +1 @@
|
||||
import{_ as f,k,l as v,c as l,a as t,t as s,u as e,i as a,e as m,w as x,y as b,F as B,p as S,r as _,z as c,o as r,s as D}from"./index-EpRXsI-R.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"}},E={style:{"margin-top":"0"}},G={__name:"MyBoard",setup(I){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 k(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),x(t("div",j,[t("h3",E,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]])]))}},q=f(G,[["__scopeId","data-v-1f6ea068"]]);export{q as default};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{k as l,l as c,c as a,a as s,t,u as d,i as u,F as m,p,e as i,r as _,o as n,s as y}from"./index-BA-KDOrj.js";const g={class:"row",style:{"justify-content":"space-between"}},f={class:"muted"},v={key:0,class:"muted",style:{"margin-top":"4px"}},k={key:0,class:"card empty-state"},S={__name:"MySessions",setup(b){const o=_([]);return l(async()=>{o.value=(await c.mySessions()).sessions}),(h,r)=>(n(),a("div",null,[s("h2",null,t(d(u).t("myTraining")),1),(n(!0),a(m,null,p(o.value,e=>(n(),a("div",{class:"card",key:e.id,style:{"margin-bottom":"10px"}},[s("div",g,[s("strong",null,t(e.persona_name),1),s("span",{class:y(["badge",e.outcome||"not_tried"])},t(e.outcome||"—"),3)]),s("div",f,t(e.persona_id)+" · "+t(new Date(e.created_at).toLocaleString()),1),e.debrief?(n(),a("div",v," Score "+t(e.debrief.score)+" — "+t(e.debrief.why),1)):i("",!0)]))),128)),o.value.length===0?(n(),a("div",k,[...r[0]||(r[0]=[s("strong",null,"No training sessions yet",-1),s("span",null,"Pick a persona from a group and practice closing a sale.",-1)])])):i("",!0)]))}};export{S as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{_ as B,k as C,c as l,m as L,n as y,a as t,t as s,u as r,i as o,F as p,p as f,h as T,l as A,q as I,r as g,o as i,j as h,s as v,x as N}from"./index-BA-KDOrj.js";const P={class:"row",style:{"align-items":"center"}},V={style:{margin:"0"}},z={class:"grid"},F={class:"row"},$={class:"muted"},j={class:"muted"},q={class:"muted",style:{"margin-top":"6px"}},D={class:"primary",style:{width:"100%"}},E={key:1,class:"muted",style:{"margin-top":"auto","font-size":"12px"}},M={__name:"Personas",setup(R){const d=T().params.gid,u=g([]),k=g(!0);async function b(){try{u.value=(await A.listPersonas(d)).personas}finally{k.value=!1}}function x(a){return u.value.filter(n=>n.tier===a)}function w(a){return o.t(a==="A"?"tierA":a==="B"?"tierB":"tierC")}function _(a){return a==="won"?o.t("won"):a==="lost"?o.t("lost"):o.t("notTried")}return C(b),(a,n)=>{const m=I("router-link");return i(),l("div",null,[L(m,{to:"/",class:"btn-back"},{default:y(()=>[h("← "+s(r(o).t("dashboard")),1)]),_:1}),t("div",P,[t("h2",V,s(r(o).t("personas")),1),n[0]||(n[0]=t("span",{class:"muted",style:{"margin-left":"auto"}},"Levels: choose one to practice (one-shot)",-1))]),(i(),l(p,null,f(["A","B","C"],c=>t("div",{key:c,style:{margin:"20px 0"}},[t("h4",null,s(w(c)),1),t("div",z,[(i(!0),l(p,null,f(x(c),e=>(i(),l("div",{key:e.id,class:"card pcard lift"},[t("div",F,[t("strong",null,s(e.name),1),t("span",{class:v(["badge",e.my_outcome])},s(_(e.my_outcome)),3)]),t("div",$,[h(s(e.profession)+" · "+s(e.age_group)+" · "+s(e.location),1),n[1]||(n[1]=t("br",null,null,-1)),t("span",{class:v(["badge",e.channel])},s(e.channel),3),t("span",j," · "+s(e.initiation_mode==="seller"?r(o).t("sellerInitiated"):r(o).t("customerInitiated")),1)]),t("div",q,s(e.product_context),1),e.my_outcome==="not_tried"?(i(),N(m,{key:0,to:`/groups/${r(d)}/chat/${e.id}`,style:{"margin-top":"auto"}},{default:y(()=>[t("button",D,s(r(o).t("chat")),1)]),_:1},8,["to"])):(i(),l("div",E,"✓ Trained ("+s(_(e.my_outcome))+")",1))]))),128))])])),64))])}}},H=B(M,[["__scopeId","data-v-88c74e17"]]);export{H as default};
|
||||
import{_ as B,k as C,c as l,m as L,n as y,a as t,t as s,u as r,i as o,F as p,p as f,h as T,l as A,q as I,r as g,o as i,j as h,s as v,x as N}from"./index-EpRXsI-R.js";const P={class:"row",style:{"align-items":"center"}},V={style:{margin:"0"}},z={class:"grid"},F={class:"row"},$={class:"muted"},j={class:"muted"},q={class:"muted",style:{"margin-top":"6px"}},D={class:"primary",style:{width:"100%"}},E={key:1,class:"muted",style:{"margin-top":"auto","font-size":"12px"}},M={__name:"Personas",setup(R){const d=T().params.gid,u=g([]),k=g(!0);async function b(){try{u.value=(await A.listPersonas(d)).personas}finally{k.value=!1}}function x(a){return u.value.filter(n=>n.tier===a)}function w(a){return o.t(a==="A"?"tierA":a==="B"?"tierB":"tierC")}function _(a){return a==="won"?o.t("won"):a==="lost"?o.t("lost"):o.t("notTried")}return C(b),(a,n)=>{const m=I("router-link");return i(),l("div",null,[L(m,{to:"/",class:"btn-back"},{default:y(()=>[h("← "+s(r(o).t("dashboard")),1)]),_:1}),t("div",P,[t("h2",V,s(r(o).t("personas")),1),n[0]||(n[0]=t("span",{class:"muted",style:{"margin-left":"auto"}},"Levels: choose one to practice (one-shot)",-1))]),(i(),l(p,null,f(["A","B","C"],c=>t("div",{key:c,style:{margin:"20px 0"}},[t("h4",null,s(w(c)),1),t("div",z,[(i(!0),l(p,null,f(x(c),e=>(i(),l("div",{key:e.id,class:"card pcard lift"},[t("div",F,[t("strong",null,s(e.name),1),t("span",{class:v(["badge",e.my_outcome])},s(_(e.my_outcome)),3)]),t("div",$,[h(s(e.profession)+" · "+s(e.age_group)+" · "+s(e.location),1),n[1]||(n[1]=t("br",null,null,-1)),t("span",{class:v(["badge",e.channel])},s(e.channel),3),t("span",j," · "+s(e.initiation_mode==="seller"?r(o).t("sellerInitiated"):r(o).t("customerInitiated")),1)]),t("div",q,s(e.product_context),1),e.my_outcome==="not_tried"?(i(),N(m,{key:0,to:`/groups/${r(d)}/chat/${e.id}`,style:{"margin-top":"auto"}},{default:y(()=>[t("button",D,s(r(o).t("chat")),1)]),_:1},8,["to"])):(i(),l("div",E,"✓ Trained ("+s(_(e.my_outcome))+")",1))]))),128))])])),64))])}}},H=B(M,[["__scopeId","data-v-88c74e17"]]);export{H as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{_ as N,r as i,f as r,c as m,a as e,t as l,u as s,i as t,w,v as k,j as x,e as y,s as C,l as S,o as _}from"./index-EpRXsI-R.js";const D={class:"card"},E={style:{"margin-top":"0"}},T=["value"],U={class:"muted"},$={key:0,class:"error",role:"alert"},j={key:1,class:"ok",role:"status"},z=["disabled"],I={key:0,class:"spinner"},M={class:"card",style:{"margin-top":"16px"}},P={style:{"margin-top":"0"}},q={class:"row"},A={__name:"Settings",setup(F){var f,h,b;const c=i(((f=r.user)==null?void 0:f.email)||""),o=i(""),d=i(""),v=i(""),p=i(!1),V=((h=r.user)==null?void 0:h.username)||((b=r.user)==null?void 0:b.id)||"";async function B(){d.value="",v.value="",p.value=!0;try{if(c.value||o.value){const n={username:V,email:c.value};o.value&&(n.password=o.value);const a=await S.setup(n);r.user=a.user,v.value=t.t("saved")}}catch(n){d.value=n.message}finally{p.value=!1}}return(n,a)=>{var g;return _(),m("div",null,[e("h2",null,"⚙️ "+l(s(t).t("settings")),1),e("div",D,[e("h3",E,l(s(t).t("account")),1),e("label",null,l(s(t).t("username")),1),e("input",{value:((g=s(r).user)==null?void 0:g.username)||"",disabled:""},null,8,T),e("label",null,l(s(t).t("email")),1),w(e("input",{"onUpdate:modelValue":a[0]||(a[0]=u=>c.value=u),type:"email"},null,512),[[k,c.value]]),e("label",null,[x(l(s(t).t("newPassword"))+" ",1),e("span",U,"("+l(s(t).t("optional"))+")",1)]),w(e("input",{"onUpdate:modelValue":a[1]||(a[1]=u=>o.value=u),type:"password",autocomplete:"new-password"},null,512),[[k,o.value]]),d.value?(_(),m("div",$,l(d.value),1)):y("",!0),v.value?(_(),m("div",j,"✅ "+l(v.value),1)):y("",!0),e("button",{class:"primary",style:{"margin-top":"16px"},disabled:p.value,onClick:B},[p.value?(_(),m("span",I)):y("",!0),x(l(s(t).t("save")),1)],8,z)]),e("div",M,[e("h3",P,l(s(t).t("language")),1),e("div",q,[e("button",{class:C({active:s(t).locale==="th"}),onClick:a[2]||(a[2]=u=>s(t).set("th"))},"ไทย",2),e("button",{class:C({active:s(t).locale==="en"}),onClick:a[3]||(a[3]=u=>s(t).set("en"))},"English",2)])])])}}},H=N(A,[["__scopeId","data-v-ce5f07b9"]]);export{H as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
.active[data-v-ce5f07b9]{border-color:var(--accent);color:var(--accent);font-weight:600}.ok[data-v-ce5f07b9]{color:var(--green);font-size:13px;margin-top:8px}
|
||||
+1
-1
@@ -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-BA-KDOrj.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-EpRXsI-R.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
@@ -0,0 +1 @@
|
||||
import{_ as m,k as y,l as v,c as r,a as t,t as n,u as d,i as u,e as g,F as f,p as k,r as c,q as x,o,x as h,n as b,s as w}from"./index-EpRXsI-R.js";const N={key:0,class:"card",style:{"min-height":"80px"}},B={key:1,class:"card empty-state"},C={class:"grid"},F={class:"card lift train-card"},P={class:"row",style:{"justify-content":"space-between"}},T={class:"muted",style:{margin:"6px 0 12px"}},V={class:"primary",style:{width:"100%","margin-top":"12px"}},j={__name:"Training",setup(q){const l=c([]),i=c(!0);function p(e){return e.sales_kit&&e.sales_kit.productName||e.input&&e.input.product||""}return y(async()=>{try{const e=(await v.listGroups()).groups||[];l.value=e.filter(s=>s.status==="ready")}finally{i.value=!1}}),(e,s)=>{const _=x("router-link");return o(),r("div",null,[t("h2",null,"🎯 "+n(d(u).t("training")),1),s[3]||(s[3]=t("p",{class:"muted"},"Pick a product group to practice closing a sale.",-1)),i.value?(o(),r("div",N,[...s[0]||(s[0]=[t("div",{class:"skeleton",style:{height:"50px"}},null,-1)])])):l.value.length===0?(o(),r("div",B,[...s[1]||(s[1]=[t("strong",null,"No training groups available",-1),t("span",null,"Ask an admin to create a persona group first.",-1)])])):g("",!0),t("div",C,[(o(!0),r(f,null,k(l.value,a=>(o(),h(_,{key:a.id,to:`/groups/${a.id}/personas`,style:{"text-decoration":"none"}},{default:b(()=>[t("div",F,[t("div",P,[t("strong",null,n(a.title),1),s[2]||(s[2]=t("span",{class:"badge ready"},"ready",-1))]),t("div",T,n(p(a)),1),t("div",{class:w(["badge",a.channel])},n(a.channel||"line"),3),t("button",V,n(d(u).t("selectPersona")),1)])]),_:2},1032,["to"]))),128))])])}}},A=m(j,[["__scopeId","data-v-493baf1e"]]);export{A as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
.grid[data-v-493baf1e]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.train-card[data-v-493baf1e]{display:flex;flex-direction:column;height:100%}.badge.ready[data-v-493baf1e]{background:#dcfce7;color:#166534}
|
||||
-1
@@ -1 +0,0 @@
|
||||
.stat[data-v-dd8a8071]{text-align:center;min-width:100px}.stat div[data-v-dd8a8071]{color:var(--muted);font-size:12px}.stat strong[data-v-dd8a8071]{font-size:22px}
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{_ as p,k as m,l as c,c as l,a as s,t,u as v,i as y,m as g,n as k,F as r,p as i,e as w,r as x,q as f,o as n,s as b,j as d}from"./index-BA-KDOrj.js";const N={class:"row",style:{"align-items":"center"}},h={style:{margin:"0"}},A={class:"row",style:{gap:"16px",margin:"16px 0"}},C={class:"card stat"},T={class:"card stat"},V={class:"card stat"},B={key:0,class:"card muted"},W={class:"muted"},F={__name:"WeakAreas",setup(L){const a=x({wins:0,losses:0,total_sessions:0,by_tier:[],top_loss_personas:[]});return m(async()=>{a.value=(await c.weakAreas()).insight}),(j,e)=>{const u=f("router-link");return n(),l("div",null,[s("div",N,[s("h2",h,t(v(y).t("weakAreas")),1),g(u,{to:"/my/generate?mode=weak",style:{"margin-left":"auto"}},{default:k(()=>[...e[0]||(e[0]=[s("button",{class:"primary"},"🔒 Generate a lock persona",-1)])]),_:1})]),s("div",A,[s("div",C,[e[1]||(e[1]=s("div",null,"Wins",-1)),s("strong",null,t(a.value.wins),1)]),s("div",T,[e[2]||(e[2]=s("div",null,"Losses",-1)),s("strong",null,t(a.value.losses),1)]),s("div",V,[e[3]||(e[3]=s("div",null,"Total",-1)),s("strong",null,t(a.value.total_sessions),1)])]),(n(!0),l(r,null,i(a.value.by_tier,o=>(n(),l("div",{key:o.value,class:"card",style:{"margin-bottom":"8px"}},[s("span",{class:b(["badge",o.value])},"Tier "+t(o.value),3),d(" — "+t(o.losses)+" losses ",1)]))),128)),e[5]||(e[5]=s("h3",{style:{"margin-top":"20px"}},"Top loss personas",-1)),!a.value.top_loss_personas||!a.value.top_loss_personas.length?(n(),l("div",B,"No losses yet — 🎉")):w("",!0),(n(!0),l(r,null,i(a.value.top_loss_personas,(o,_)=>(n(),l("div",{class:"card",key:_,style:{"margin-bottom":"8px"}},[s("strong",null,t(o.persona_name),1),d(" — score "+t(o.score),1),e[4]||(e[4]=s("br",null,null,-1)),s("span",W,t(o.why),1)]))),128))])}}},z=p(F,[["__scopeId","data-v-dd8a8071"]]);export{z as default};
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-CY2HomOW.js","assets/Login-D3svPLnW.css","assets/Setup-BZ-GDYWY.js","assets/Setup-BdS_6JlN.css","assets/Dashboard-Btd0pap_.js","assets/Dashboard-DD-9mkhT.css","assets/Personas-CNMd2u86.js","assets/Personas-GPRGTf-A.css","assets/Chat-DWAKiJ5k.js","assets/Chat-D5cDjkYb.css","assets/WeakAreas-mVHNUVcG.js","assets/WeakAreas-CZWFyB_H.css","assets/GenPersona-DWlMmhuC.js","assets/GenPersona-CDFUWMM8.css","assets/GroupEdit-gE6WVEsc.js","assets/GroupEdit-BpqVXcH5.css","assets/Analytics-2sy93Xf6.js","assets/Analytics-CtniKRSj.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 Ms(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const X={},Ft=[],ze=()=>{},ti=()=>!1,Bn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hn=e=>e.startsWith("onUpdate:"),ae=Object.assign,Ds=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Co=Object.prototype.hasOwnProperty,$=(e,t)=>Co.call(e,t),V=Array.isArray,Bt=e=>mn(e)==="[object Map]",$t=e=>mn(e)==="[object Set]",sr=e=>mn(e)==="[object Date]",U=e=>typeof e=="function",se=e=>typeof e=="string",Je=e=>typeof e=="symbol",q=e=>e!==null&&typeof e=="object",ni=e=>(q(e)||U(e))&&U(e.then)&&U(e.catch),si=Object.prototype.toString,mn=e=>si.call(e),Po=e=>mn(e).slice(8,-1),ri=e=>mn(e)==="[object Object]",Ls=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tn=Ms(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Oo=/-\w/g,_e=Un(e=>e.replace(Oo,t=>t.slice(1).toUpperCase())),Io=/\B([A-Z])/g,yt=Un(e=>e.replace(Io,"-$1").toLowerCase()),jn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zn=Un(e=>e?`on${jn(e)}`:""),qe=(e,t)=>!Object.is(e,t),wn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ii=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let rr;const Gn=()=>rr||(rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vs(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=se(s)?Lo(s):Vs(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(se(e)||q(e))return e}const No=/;(?![^(]*\))/g,Mo=/:([^]+)/,Do=/\/\*[^]*?\*\//g;function Lo(e){const t={};return e.replace(Do,"").split(No).forEach(n=>{if(n){const s=n.split(Mo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Fs(e){let t="";if(se(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=Fs(e[n]);s&&(t+=s+" ")}else if(q(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Vo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Fo=Ms(Vo);function oi(e){return!!e||e===""}function Bo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=mt(e[s],t[s]);return n}function mt(e,t){if(e===t)return!0;let n=sr(e),s=sr(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?Bo(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||!mt(e[o],t[o]))return!1}}return String(e)===String(t)}function Bs(e,t){return e.findIndex(n=>mt(n,t))}const li=e=>!!(e&&e.__v_isRef===!0),Dt=e=>se(e)?e:e==null?"":V(e)||q(e)&&(e.toString===si||!U(e.toString))?li(e)?Dt(e.value):JSON.stringify(e,ci,2):String(e),ci=(e,t)=>li(t)?ci(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[es(s,i)+" =>"]=r,n),{})}:$t(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>es(n))}:Je(t)?es(t):q(t)&&!V(t)&&!ri(t)?String(t):t,es=(e,t="")=>{var n;return Je(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 ue;class Ho{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 Uo(){return ue}let Z;const ts=new WeakSet;class ui{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,ts.has(this)&&(ts.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ir(this),di(this);const t=Z,n=Ie;Z=this,Ie=!0;try{return this.fn()}finally{hi(this),Z=t,Ie=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)js(t);this.deps=this.depsTail=void 0,ir(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ts.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ys(this)&&this.run()}get dirty(){return ys(this)}}let ai=0,nn,sn;function fi(e,t=!1){if(e.flags|=8,t){e.next=sn,sn=e;return}e.next=nn,nn=e}function Hs(){ai++}function Us(){if(--ai>0)return;if(sn){let t=sn;for(sn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;nn;){let t=nn;for(nn=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 di(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),js(s),jo(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ys(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(pi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function pi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===un)||(e.globalVersion=un,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ys(e))))return;e.flags|=2;const t=e.dep,n=Z,s=Ie;Z=e,Ie=!0;try{di(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,hi(e),e.flags&=-3}}function js(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)js(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function jo(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 gi=[];function it(){gi.push(Ie),Ie=!1}function ot(){const e=gi.pop();Ie=e===void 0?!0:e}function ir(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Z;Z=void 0;try{t()}finally{Z=n}}}let un=0;class ko{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 ks{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 ko(Z,this),Z.deps?(n.prevDep=Z.depsTail,Z.depsTail.nextDep=n,Z.depsTail=n):Z.deps=Z.depsTail=n,mi(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 _n(e,t,n,s){try{return s?e(...s):e()}catch(r){Wn(r,t,n)}}function De(e,t,n,s){if(U(e)){const r=_n(e,t,n,s);return r&&ni(r)&&r.catch(i=>{Wn(i,t,n)}),r}if(V(e)){const r=[];for(let i=0;i<e.length;i++)r.push(De(e[i],t,n,s));return r}}function Wn(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 a=l.ec;if(a){for(let h=0;h<a.length;h++)if(a[h](e,c,f)===!1)return}l=l.parent}if(i){it(),_n(i,null,10,[e,c,f]),ot();return}}hl(e,n,r,s,o)}function hl(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const me=[];let Ke=-1;const Ht=[];let pt=null,Lt=0;const Ri=Promise.resolve();let On=null;function $s(e){const t=On||Ri;return e?t.then(this?e.bind(this):e):t}function pl(e){let t=Ke+1,n=me.length;for(;t<n;){const s=t+n>>>1,r=me[s],i=fn(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function qs(e){if(!(e.flags&1)){const t=fn(e),n=me[me.length-1];!n||!(e.flags&2)&&t>=fn(n)?me.push(e):me.splice(pl(t),0,e),e.flags|=1,Ti()}}function Ti(){On||(On=Ri.then(Pi))}function gl(e){if(!V(e))pt&&e.id===-1?pt.splice(Lt+1,0,e):e.flags&1||(Ht.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Ht.push(e[t]);Ti()}function lr(e,t,n=Ke+1){for(;n<me.length;n++){const s=me[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;me.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ci(e){if(Ht.length){const t=[...new Set(Ht)].sort((n,s)=>fn(n)-fn(s));if(Ht.length=0,pt){for(let n=0;n<t.length;n++)pt.push(t[n]);return}for(pt=t,Lt=0;Lt<pt.length;Lt++){const n=pt[Lt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pt=null,Lt=0}}const fn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Pi(e){try{for(Ke=0;Ke<me.length;Ke++){const t=me[Ke];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_n(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ke<me.length;Ke++){const t=me[Ke];t&&(t.flags&=-2)}Ke=-1,me.length=0,Ci(),On=null,(me.length||Ht.length)&&Pi()}}let Ae=null,Oi=null;function In(e){const t=Ae;return Ae=e,Oi=e&&e.type.__scopeId||null,t}function Ii(e,t=Ae,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Dn(-1);const i=In(t),o=Ct.length;let l;try{l=e(...r)}finally{for(let c=Ct.length;c>o;c--)so();In(i),s._d&&Dn(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function va(e,t){if(Ae===null)return e;const n=Yn(Ae),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=X]=t[r];i&&(U(i)&&(i={mounted:i,updated:i}),i.deep&&st(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function Et(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&&(it(),De(c,n,8,[e.el,l,e,t]),ot())}}function xn(e,t){if(de){let n=de.provides;const s=de.parent&&de.parent.provides;s===n&&(n=de.provides=Object.create(s)),n[e]=t}}function Ne(e,t,n=!1){const s=pc();if(s||Ut){let r=Ut?Ut._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&&U(t)?t.call(s&&s.proxy):t}}const ml=Symbol.for("v-scx"),_l=()=>Ne(ml);function Rn(e,t,n){return Ni(e,t,n)}function Ni(e,t,n=X){const{immediate:s,deep:r,flush:i,once:o}=n,l=ae({},n),c=t&&s||!t&&i!=="post";let f;if(pn){if(i==="sync"){const m=_l();f=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=ze,m.resume=ze,m.pause=ze,m}}const a=de;l.call=(m,I,x)=>De(m,a,I,x);let h=!1;i==="post"?l.scheduler=m=>{ve(m,a&&a.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(m,I)=>{I?m():qs(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,a&&(m.id=a.uid,m.i=a))};const g=dl(e,t,l);return pn&&(f?f.push(g):c&&g()),g}function yl(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?Mi(s,e):()=>s[e]:e.bind(s,s);let i;U(t)?i=t:(i=t.handler,n=t);const o=yn(this),l=Ni(r,i.bind(s),n);return o(),l}function Mi(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 vl=Symbol("_vte"),$n=e=>e.__isTeleport,rs=Symbol("_leaveCb");function bl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ct){t=n;break}}return t}function Di(e){if(!Js(e))return $n(e.type)&&e.children?bl(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&&U(n.default))return n.default()}}function zs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;zs($n(n.type)&&Di(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 Li(e,t){return U(e)?ae({name:e.name},t,{setup:e}):e}function Vi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function cr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Nn=new WeakMap;function rn(e,t,n,s,r=!1){if(V(e)){e.forEach((x,H)=>rn(x,t&&(V(t)?t[H]:t),n,s,r));return}if(on(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 Ts;const Ar=typeof window<"u"&&window.trustedTypes;if(Ar)try{Ts=Ar.createPolicy("vue",{createHTML:e=>e})}catch{}const fo=Ts?e=>Ts.createHTML(e):e=>e,Sc="http://www.w3.org/2000/svg",Ac="http://www.w3.org/1998/Math/MathML",Ze=typeof document<"u"?document:null,wr=Ze&&Ze.createElement("template"),wc={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"?Ze.createElementNS(Sc,e):t==="mathml"?Ze.createElementNS(Ac,e):n?Ze.createElement(e,{is:n}):Ze.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ze.createTextNode(e),createComment:e=>Ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ze.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{wr.innerHTML=fo(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=wr.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]}},xc=Symbol("_vtc");function Rc(e,t,n){const s=e[xc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const xr=Symbol("_vod"),Tc=Symbol("_vsh"),Cc=Symbol(""),Pc=/(?:^|;)\s*display\s*:/;function Oc(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&&en(s,l,"")}else for(const o in t)n[o]==null&&en(s,o,"");for(const o in n){o==="display"&&(i=!0);const l=n[o];l!=null?Nc(e,o,!se(t)&&t?t[o]:void 0,l)||en(s,o,l):en(s,o,"")}}else if(r){if(t!==n){const o=s[Cc];o&&(n+=";"+o),s.cssText=n,i=Pc.test(n)}}else t&&e.removeAttribute("style");xr in e&&(e[xr]=i?s.display:"",e[Tc]&&(s.display="none"))}const Rr=/\s*!important$/;function en(e,t,n){if(V(n))n.forEach(s=>en(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Ic(e,t);Rr.test(n)?e.setProperty(yt(s),n.replace(Rr,""),"important"):e[s]=n}}const Tr=["Webkit","Moz","ms"],cs={};function Ic(e,t){const n=cs[t];if(n)return n;let s=_e(t);if(s!=="filter"&&s in e)return cs[t]=s;s=jn(s);for(let r=0;r<Tr.length;r++){const i=Tr[r]+s;if(i in e)return cs[t]=i}return t}function Nc(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&se(s)&&n===s}const Cr="http://www.w3.org/1999/xlink";function Pr(e,t,n,s,r,i=Fo(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Cr,t.slice(6,t.length)):e.setAttributeNS(Cr,t,n):n==null||i&&!oi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Je(n)?String(n):n)}function Or(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?fo(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=oi(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 rt(e,t,n,s){e.addEventListener(t,n,s)}function Mc(e,t,n,s){e.removeEventListener(t,n,s)}const Ir=Symbol("_vei");function Dc(e,t,n,s,r=null){const i=e[Ir]||(e[Ir]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Fc(t);if(s){const f=i[t]=Uc(s,r);rt(e,l,f,c)}else o&&(Mc(e,l,o,c),i[t]=void 0)}}const Lc=/(Once|Passive|Capture)$/,Vc=/^on:?(?:Once|Passive|Capture)$/;function Fc(e){let t,n;for(;(n=e.match(Lc))&&!Vc.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):yt(e.slice(2)),t]}let us=0;const Bc=Promise.resolve(),Hc=()=>us||(Bc.then(()=>us=0),us=Date.now());function Uc(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&&De(f,t,5,l)}}else De(r,t,5,[s])};return n.value=e,n.attached=Hc(),n}const Nr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Rc(e,s,o):t==="style"?Oc(e,n,s):Bn(t)?Hn(t)||Dc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):kc(e,t,s,o))?(Or(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pr(e,t,s,o,i,t!=="value")):e._isVueCE&&(Gc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!se(s)))?Or(e,_e(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._fals
Line truncated
|
||||
`))),e[xe]=_t(r);const i=s||r.props&&r.props.type==="number";rt(e,t?"change":"input",o=>{o.target.composing||e[xe](as(e.value,n,i))}),(n||i)&&rt(e,"change",()=>{e.value=as(e.value,n,i)}),t||(rt(e,"compositionstart",Kc),rt(e,"compositionend",Mr),rt(e,"change",Mr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",i=e[Sn];delete e[Sn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[xe](as(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[xe]=_t(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?kn(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)}},Wc={deep:!0,created(e,t,n){e[xe]=_t(n),rt(e,"change",()=>{const s=e._modelValue,r=Gt(e),i=e.checked,o=e[xe];if(V(s)){const l=Bs(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($t(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(ho(e,i))})},mounted:Lr,beforeUpdate(e,t,n){e[xe]=_t(n),Lr(e,t,n)}};function Lr(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(V(t))r=Bs(t,s.props.value)>-1;else if($t(t))r=t.has(s.props.value);else{if(t===n)return;r=mt(t,ho(e,!0))}e.checked!==r&&(e.checked=r)}const $c={created(e,{value:t},n){e.checked=mt(t,n.props.value),e[xe]=_t(n),rt(e,"change",()=>{e[xe](Gt(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[xe]=_t(s),t!==n&&(e.checked=mt(t,s.props.value))}},qc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,rt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?kn(Gt(i)):Gt(i));e[xe](e.multiple?$t(e._modelValue)?new Set(r):r:r[0]),e._assigning=!0,$s(()=>{e._assigning=!1})}),e[xe]=_t(s)},mounted(e,{value:t}){Vr(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[xe]=_t(n)},updated(e,{value:t}){e._assigning||Vr(e,t)}};function Vr(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!$t(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=Gt(o);if(n)if(s){const c=typeof l;c==="string"||c==="number"?o.selected=t.some(f=>String(f)===String(l)):o.selected=Bs(t,l)>-1}else o.selected=t.has(l);else if(mt(Gt(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Gt(e){return"_value"in e?e._value:e.value}function ho(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ea={created(e,t,n){An(e,t,n,null,"created")},mounted(e,t,n){An(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){An(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){An(e,t,n,s,"updated")}};function zc(e,t){switch(e){case"SELECT":return qc;case"TEXTAREA":return Dr;default:switch(t){case"checkbox":return Wc;case"radio":return $c;default:return Dr}}}function An(e,t,n,s,r){const o=zc(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}const Jc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Sa=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=yt(r.key);if(t.some(o=>o===i||Jc[o]===i))return e(r)})},Yc=ae({patchProp:jc},wc);let Fr;function Qc(){return Fr||(Fr=nc(Yc))}const Xc=(...e)=>{const t=Qc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=eu(s);if(!r)return;const i=t._component;!U(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Zc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Zc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function eu(e){return se(e)?document.querySelector(e):e}/*!
|
||||
* vue-router v4.6.4
|
||||
* (c) 2025 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const Vt=typeof document<"u";function po(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function tu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&po(e.default)}const K=Object.assign;function fs(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 cn=()=>{},Le=Array.isArray;function Br(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const go=/#/g,nu=/&/g,su=/\//g,ru=/=/g,iu=/\?/g,mo=/\+/g,ou=/%5B/g,lu=/%5D/g,_o=/%5E/g,cu=/%60/g,yo=/%7B/g,uu=/%7C/g,vo=/%7D/g,au=/%20/g;function Xs(e){return e==null?"":encodeURI(""+e).replace(uu,"|").replace(ou,"[").replace(lu,"]")}function fu(e){return Xs(e).replace(yo,"{").replace(vo,"}").replace(_o,"^")}function Cs(e){return Xs(e).replace(mo,"%2B").replace(au,"+").replace(go,"%23").replace(nu,"%26").replace(cu,"`").replace(yo,"{").replace(vo,"}").replace(_o,"^")}function du(e){return Cs(e).replace(ru,"%3D")}function hu(e){return Xs(e).replace(go,"%23").replace(iu,"%3F")}function pu(e){return hu(e).replace(su,"%2F")}function gn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const gu=/\/$/,mu=e=>e.replace(gu,"");function ds(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=bu(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:gn(o)}}function _u(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Hr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function yu(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Kt(t.matched[s],n.matched[r])&&bo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Kt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!vu(e[n],t[n]))return!1;return!0}function vu(e,t){return Le(e)?Ur(e,t):Le(t)?Ur(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Ur(e,t){return Le(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function bu(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 ht={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ps=function(e){return e.pop="pop",e.push="push",e}({}),hs=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Eu(e){if(!e)if(Vt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),mu(e)}const Su=/^[^#]+#/;function Au(e,t){return e.replace(Su,"#")+t}function wu(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 Qn=()=>({left:window.scrollX,top:window.scrollY});function xu(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=wu(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 jr(e,t){return(history.state?history.state.position-t:-1)+e}const Os=new Map;function Ru(e,t){Os.set(e,t)}function Tu(e){const t=Os.get(e);return Os.delete(e),t}function Cu(e){return typeof e=="string"||e&&typeof e=="object"}function Eo(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 So=Symbol("");ne.MATCHER_NOT_FOUND+"",ne.NAVIGATION_GUARD_REDIRECT+"",ne.NAVIGATION_ABORTED+"",ne.NAVIGATION_CANCELLED+"",ne.NAVIGATION_DUPLICATED+"";function Wt(e,t){return K(new Error,{type:e,[So]:!0},t)}function Xe(e,t){return e instanceof Error&&So in e&&(t==null||!!(e.type&t))}const Pu=["params","query","hash"];function Ou(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Pu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Iu(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(mo," "),i=r.indexOf("="),o=gn(i<0?r:r.slice(0,i)),l=i<0?null:gn(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 Lu=()=>location.protocol+"//"+location.host;function Ao(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),Hr(l,"")}return Hr(n,e)+s+r}function Vu(e,t,n,s){let r=[],i=[],o=null;const l=({state:g})=>{const m=Ao(e,location),I=n.value,x=t.value;let H=0;if(g){if(n.value=m,t.value=g,o&&o===I){o=null;return}H=x?g.position-x.position:0}else s(m);r.forEach(F=>{F(n.value,I,{delta:H,type:Ps.pop,direction:H?H>0?hs.forward:hs.back:hs.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 a(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(K({},g.state,{scroll:Qn()}),"")}}function h(){for(const g of i)g();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{pauseListeners:c,listen:f,destroy:h}}function Kr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Qn():null}}function Fu(e){const{history:t,location:n}=window,s={value:Ao(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,a){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Lu()+e+c;try{t[a?"replaceState":"pushState"](f,"",g),r.value=f}catch(m){console.error(m),n[a?"replace":"assign"](g)}}function o(c,f){i(c,K({},t.state,Kr(r.value.back,c,r.value.forward,!0),f,{position:r.value.position}),!0),s.value=c}function l(c,f){const a=K({},r.value,t.state,{forward:c,scroll:Qn()});i(a.current,a,!0),i(c,K({},Kr(s.value,c,null),{position:a.position+1},f),!1),s.value=c}return{location:s,state:r,push:l,replace:o}}function Bu(e){e=Eu(e);const t=Fu(e),n=Vu(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:Au.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 xt=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 Hu={type:xt.Static,value:""},Uu=/[a-zA-Z0-9_]/;function ju(e){if(!e)return[[]];if(e==="/")return[[Hu]];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="",a="";function h(){f&&(n===oe.Static?i.push({type:xt.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:xt.Param,value:f,regexp:a,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:Uu.test(c)?g():(h(),n=oe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case oe.ParamRegExp:c===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+c:n=oe.ParamRegExpEnd:a+=c;break;case oe.ParamRegExpEnd:h(),n=oe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,a="";break;default:t("Unknown state");break}}return n===oe.ParamRegExp&&t(`Unfinished custom RegExp for param "${f}"`),h(),o(),r}const Wr="[^/]+?",ku={sensitive:!1,strict:!1,start:!0,end:!0};var ge=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}(ge||{});const Gu=/[.+*?^${}()[\]/\\]/g;function Ku(e,t){const n=K({},ku,t),s=[];let r=n.start?"^":"";const i=[];for(const f of e){const a=f.length?[]:[ge.Root];n.strict&&!f.length&&(r+="/");for(let h=0;h<f.length;h++){const g=f[h];let m=ge.Segment+(n.sensitive?ge.BonusCaseSensitive:0);if(g.type===xt.Static)h||(r+="/"),r+=g.value.replace(Gu,"\\$&"),m+=ge.Static;else if(g.type===xt.Param){const{value:I,repeatable:x,optional:H,regexp:F}=g;i.push({name:I,repeatable:x,optional:H});const C=F||Wr;if(C!==Wr){m+=ge.BonusCustomLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
.topnav[data-v-6307d773]{display:flex;align-items:center;justify-content:space-between;padding:12px 24px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.brand[data-v-6307d773]{font-weight:800;text-decoration:none;color:var(--ink)}.nav-right[data-v-6307d773]{display:flex;align-items:center;gap:12px}.lang[data-v-6307d773]{padding:6px 10px}.main[data-v-6307d773]{max-width:1080px;margin:0 auto;padding:24px}:root{--bg: #f6f7fb;--card: #ffffff;--border: #e5e8ef;--ink: #1a1d29;--muted: #6b7280;--accent: #4f46e5;--accent-2: #7c3aed;--green: #16a34a;--red: #dc2626;--amber: #d97706;--radius: 14px;--shadow: 0 1px 3px rgba(20, 24, 40, .08)}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans Thai,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}#app{min-height:100vh}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}button{font-family:inherit;cursor:pointer;border:1px solid var(--border);background:var(--card);padding:10px 16px;border-radius:10px;font-size:14px;color:var(--ink)}button.primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;border:none}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-family:inherit;font-size:14px}label{font-size:13px;color:var(--muted);display:block;margin:10px 0 4px}.row{display:flex;gap:12px;flex-wrap:wrap}.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600}.badge.A{background:#dcfce7;color:#166534}.badge.B{background:#fef9c3;color:#854d0e}.badge.C{background:#fee2e2;color:#991b1b}.badge.won{background:#dcfce7;color:#166534}.badge.lost{background:#fee2e2;color:#991b1b}.badge.not_tried{background:#eef2ff;color:#4338ca}.error{color:var(--red);font-size:13px}.muted{color:var(--muted)}.msg-seller{background:var(--accent);color:#fff;align-self:flex-end;border-radius:16px 16px 4px}.msg-customer{background:#fff;align-self:flex-start;border-radius:16px 16px 16px 4px;border:1px solid var(--border)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}a{color:inherit}a:focus{outline:2px solid var(--accent);outline-offset:2px}button{min-height:44px;transition:transform .15s ease,box-shadow .2s ease,background .2s ease,opacity .2s ease}button:not(:disabled):hover{box-shadow:0 4px 12px #1418281a}button:not(:disabled):active{transform:scale(.97)}button.primary:not(:disabled):hover{box-shadow:0 6px 18px #4f46e559}input,select,textarea{min-height:44px;transition:border-color .15s ease,box-shadow .15s ease}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #4f46e526}textarea{min-height:88px;resize:vertical}.card.lift{transition:transform .2s ease,box-shadow .25s ease}.card.lift:hover{transform:translateY(-2px);box-shadow:0 10px 24px #1418281a}button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.btn-back{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;margin-bottom:12px;background:transparent;border:1px solid var(--border);border-radius:10px;color:var(--muted);font-size:13px;text-decoration:none}.btn-back:hover{color:var(--ink);border-color:var(--accent)}.spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{border-radius:8px;background:linear-gradient(90deg,#eef0f5 25%,#e2e5ec 37%,#eef0f5 63%);background-size:400% 100%;animation:shimmer 1.4s ease infinite}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.empty-state{text-align:center;padding:40px 20px;color:var(--muted)}.empty-state strong{display:block;margin-bottom:4px;color:var(--ink)}.field-error{color:var(--red);font-size:12px;margin-top:4px}@media (max-width: 640px){.main{padding:16px}.row{gap:10px}.msg-seller,.msg-customer{max-width:84%}}
|
||||
.topnav[data-v-836c19dc]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 24px;background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10;flex-wrap:wrap}.brand[data-v-836c19dc]{font-weight:800;text-decoration:none;color:var(--ink);white-space:nowrap}.tabs[data-v-836c19dc]{display:flex;gap:4px;flex-wrap:wrap}.tab[data-v-836c19dc]{text-decoration:none;color:var(--muted);padding:8px 16px;border-radius:10px;font-weight:600;font-size:14px;white-space:nowrap}.tab[data-v-836c19dc]:hover{background:#f1f3f9;color:var(--ink)}.tab.active[data-v-836c19dc]{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff}.nav-right[data-v-836c19dc]{display:flex;align-items:center;gap:8px}.lang[data-v-836c19dc],.logout-btn[data-v-836c19dc]{padding:8px 12px}.icon-btn[data-v-836c19dc]{text-decoration:none;font-size:18px;padding:6px 10px;border-radius:8px}.icon-btn[data-v-836c19dc]:hover{background:#f1f3f9}.main[data-v-836c19dc]{max-width:1080px;margin:0 auto;padding:24px}@media (max-width: 640px){.topnav[data-v-836c19dc]{padding:10px 12px}.tab[data-v-836c19dc]{padding:8px 12px;font-size:13px}.logout-btn span[data-v-836c19dc]{display:none}}:root{--bg: #f6f7fb;--card: #ffffff;--border: #e5e8ef;--ink: #1a1d29;--muted: #6b7280;--accent: #4f46e5;--accent-2: #7c3aed;--green: #16a34a;--red: #dc2626;--amber: #d97706;--radius: 14px;--shadow: 0 1px 3px rgba(20, 24, 40, .08)}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans Thai,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}#app{min-height:100vh}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}button{font-family:inherit;cursor:pointer;border:1px solid var(--border);background:var(--card);padding:10px 16px;border-radius:10px;font-size:14px;color:var(--ink)}button.primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;border:none}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-family:inherit;font-size:14px}label{font-size:13px;color:var(--muted);display:block;margin:10px 0 4px}.row{display:flex;gap:12px;flex-wrap:wrap}.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600}.badge.A{background:#dcfce7;color:#166534}.badge.B{background:#fef9c3;color:#854d0e}.badge.C{background:#fee2e2;color:#991b1b}.badge.won{background:#dcfce7;color:#166534}.badge.lost{background:#fee2e2;color:#991b1b}.badge.not_tried{background:#eef2ff;color:#4338ca}.error{color:var(--red);font-size:13px}.muted{color:var(--muted)}.msg-seller{background:var(--accent);color:#fff;align-self:flex-end;border-radius:16px 16px 4px}.msg-customer{background:#fff;align-self:flex-start;border-radius:16px 16px 16px 4px;border:1px solid var(--border)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}a{color:inherit}a:focus{outline:2px solid var(--accent);outline-offset:2px}button{min-height:44px;transition:transform .15s ease,box-shadow .2s ease,background .2s ease,opacity .2s ease}button:not(:disabled):hover{box-shadow:0 4px 12px #1418281a}button:not(:disabled):active{transform:scale(.97)}button.primary:not(:disabled):hover{box-shadow:0 6px 18px #4f46e559}input,select,textarea{min-height:44px;transition:border-color .15s ease,box-shadow .15s ease}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #4f46e526}textarea{min-height:88px;resize:vertical}.card.lift{transition:transform .2s ease,box-shadow .25s ease}.card.lift:hover{transform:translateY(-2px);box-shadow:0 10px 24px #1418281a}button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.btn-back{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;margin-bottom:12px;background:transparent;border:1px solid var(--border);border-radius:10px;color:var(--muted);font-size:13px;text-decoration:none}.btn-back:hover{color:var(--ink);border-color:var(--accent)}.spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{border-radius:8px;background:linear-gradient(90deg,#eef0f5 25%,#e2e5ec 37%,#eef0f5 63%);background-size:400% 100%;animation:shimmer 1.4s ease infinite}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.empty-state{text-align:center;padding:40px 20px;color:var(--muted)}.empty-state strong{display:block;margin-bottom:4px;color:var(--ink)}.field-error{color:var(--red);font-size:12px;margin-topLine truncated
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-UjplVdwp.js","assets/Login-D3svPLnW.css","assets/Setup-CyivCZlz.js","assets/Setup-BdS_6JlN.css","assets/Dashboard-DjOv0iIA.js","assets/Dashboard-DD-9mkhT.css","assets/MyBoard-qZOQiP9N.js","assets/MyBoard-Ch6WeOlD.css","assets/Training-C6-agrok.js","assets/Training-pw_LnE8u.css","assets/Personas-CTk61h5L.js","assets/Personas-GPRGTf-A.css","assets/Chat-7XHaeyl4.js","assets/Chat-D5cDjkYb.css","assets/Settings-DGkBq3Wj.js","assets/Settings-Dz8QiOGl.css","assets/GroupEdit-BiJ0CMA0.js","assets/GroupEdit-BpqVXcH5.css","assets/Analytics-CGaIuAYs.js","assets/Analytics-CtniKRSj.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,Hs=(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,Ht=e=>En(e)==="[object Map]",Jt=e=>En(e)==="[object Set]",cr=e=>En(e)==="[object Date]",H=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)||H(e))&&H(e.then)&&H(e.catch),ci=Object.prototype.toString,En=e=>ci.call(e),No=e=>En(e).slice(8,-1),ui=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),Pn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ai=(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 ur;const zn=()=>ur||(ur=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)?Bo(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 Bo(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",Ho=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||!H(e.toString))?di(e)?wt(e.value):JSON.stringify(e,hi,2):String(e),hi=(e,t)=>di(t)?hi(e,t.value):Ht(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)&&!ui(t)?String(t):t,is=(e,t="")=>{var n;return Je(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 ue;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&&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 Go(){return ue}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,ue&&(ue.active?ue.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,ar(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,ar(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,un;function mi(e,t=!1){if(e.flags|=8,t){e.next=un,un=e;return}e.next=cn,cn=e}function Ks(){gi++}function Ws(){if(--gi>0)return;if(un){let t=un;for(un=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 ar(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(H(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 a=l.ec;if(a){for(let h=0;h<a.length;h++)if(a[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&&Bn(-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&&Bn(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function ba(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&&(H(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&&H(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 a=he;l.call=(m,I,R)=>Me(m,a,I,R);let h=!1;i==="post"?l.scheduler=m=>{Ee(m,a&&a.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(m,I)=>{I?m():Xs(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,a&&(m.id=a.uid,m.i=a))};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;H(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,us=Symbol("_leaveCb");function Al(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ut){t=n;break}}return t}function Bi(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&&H(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)&&Bi(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 H(e)?fe({name:e.name},t,{setup:e}):e}function Hi(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 an(e,t,n,s,r=!1){if(V(e)){e.forEach((R,U)=>an(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 Pr=typeof window<"u"&&window.trustedTypes;if(Pr)try{Ds=Pr.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 Cc(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"),Sa={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 Pc=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[Pc];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=Ho(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]=Bc(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 Bc(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(),Hc=()=>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=Hc(),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",Br),it(e,"change",Br))},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:Hr,beforeUpdate(e,t,n){e[Re]=yt(n),Hr(e,t,n)}};function Hr(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 Aa={created(e,t,n){Cn(e,t,n,null,"created")},mounted(e,t,n){Cn(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Cn(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Cn(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 Cn(e,t,n,s,r){const o=Jc(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}const Yc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},wa=(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||Yc[o]===i))return e(r)})},Qc=fe({patchProp:kc},xc);let kr;function Xc(){return kr||(kr=ic(Qc))}const Zc=(...e)=>{const t=Xc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=tu(s);if(!r)return;const i=t._component;!H(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,eu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function eu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function tu(e){return se(e)?document.querySelector(e):e}/*!
|
||||
* vue-router v4.6.4
|
||||
* (c) 2025 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const Bt=typeof document<"u";function _o(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function nu(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,su=/&/g,ru=/\//g,iu=/=/g,ou=/\?/g,vo=/\+/g,lu=/%5B/g,cu=/%5D/g,bo=/%5E/g,uu=/%60/g,Eo=/%7B/g,au=/%7C/g,So=/%7D/g,fu=/%20/g;function sr(e){return e==null?"":encodeURI(""+e).replace(au,"|").replace(lu,"[").replace(cu,"]")}function du(e){return sr(e).replace(Eo,"{").replace(So,"}").replace(bo,"^")}function Ms(e){return sr(e).replace(vo,"%2B").replace(fu,"+").replace(yo,"%23").replace(su,"%26").replace(uu,"`").replace(Eo,"{").replace(So,"}").replace(bo,"^")}function hu(e){return Ms(e).replace(iu,"%3D")}function pu(e){return sr(e).replace(yo,"%23").replace(ou,"%3F")}function gu(e){return pu(e).replace(ru,"%2F")}function bn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const mu=/\/$/,_u=e=>e.replace(mu,"");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=Eu(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:bn(o)}}function yu(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 vu(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(!bu(e[n],t[n]))return!1;return!0}function bu(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 Eu(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 Su(e){if(!e)if(Bt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),_u(e)}const Au=/^[^#]+#/;function wu(e,t){return e.replace(Au,"#")+t}function Ru(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 xu(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=Ru(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 Tu(e,t){Vs.set(e,t)}function Cu(e){const t=Vs.get(e);return Vs.delete(e),t}function Pu(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 Ou=["params","query","hash"];function Iu(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ou)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Nu(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 Vu=()=>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 Fu(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 a(){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",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{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 Bu(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,a){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Vu()+e+c;try{t[a?"replaceState":"pushState"](f,"",g),r.value=f}catch(m){console.error(m),n[a?"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 a=K({},r.value,t.state,{forward:c,scroll:ns()});i(a.current,a,!0),i(c,K({},Jr(s.value,c,null),{position:a.position+1},f),!1),s.value=c}return{location:s,state:r,push:l,replace:o}}function Uu(e){e=Su(e);const t=Bu(e),n=Fu(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:wu.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 Hu={type:Tt.Static,value:""},ju=/[a-zA-Z0-9_]/;function ku(e){if(!e)return[[]];if(e==="/")return[[Hu]];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="",a="";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:a,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:ju.test(c)?g():(h(),n=oe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case oe.ParamRegExp:c===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+c:n=oe.ParamRegExpEnd:a+=c;break;case oe.ParamRegExpEnd:h(),n=oe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,a="";break;default:t("Unknown state");break}}return n===oe.ParamRegExp&&t(`Unfinished custom RegExp for param "${f}"`),h(),o(),r}const Yr="[^/]+?",Gu={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 Ku=/[.+*?^${}()[\]/\\]/g;function Wu(e,t){const n=K({},Gu,t),s=[];let r=n.start?"^":"";const i=[];for(const f of e){const a=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(Ku,"\\$&"),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 C=F||Yr;if(C!==Yr){m+=me.BonusCustomLine truncated
|
||||
Vendored
+2
-2
@@ -4,8 +4,8 @@
|
||||
<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-BA-KDOrj.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CYRckR7U.css">
|
||||
<script type="module" crossorigin src="/assets/index-EpRXsI-R.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CSFE-aMG.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
+40
-9
@@ -1,16 +1,26 @@
|
||||
<template>
|
||||
<div class="app">
|
||||
<nav v-if="auth.user" class="topnav">
|
||||
<router-link to="/" class="brand">{{ i18n.t('app') }}</router-link>
|
||||
<router-link to="/" class="brand">🎯 {{ i18n.t('app') }}</router-link>
|
||||
<div class="tabs">
|
||||
<router-link v-if="auth.isAdmin" to="/" class="tab" :class="{ active: $route.path === '/' }">
|
||||
{{ i18n.t('adminOverview') }}
|
||||
</router-link>
|
||||
<router-link to="/my/board" class="tab" :class="{ active: $route.path === '/my/board' }">
|
||||
{{ i18n.t('myDashboard') }}
|
||||
</router-link>
|
||||
<router-link to="/training" class="tab" :class="{ active: $route.path === '/training' }">
|
||||
{{ i18n.t('training') }}
|
||||
</router-link>
|
||||
</div>
|
||||
<div class="nav-right">
|
||||
<button @click="toggleLang" class="lang">{{ i18n.locale === 'th' ? 'EN' : 'TH' }}</button>
|
||||
<span class="muted">{{ auth.user.name }} ({{ auth.role }})</span>
|
||||
<button @click="logout">⏻ {{ i18n.t('logout') }}</button>
|
||||
<router-link to="/settings" class="icon-btn" title="Settings">⚙️</router-link>
|
||||
<button @click="logout" class="logout-btn">⏻ {{ i18n.t('logout') }}</button>
|
||||
</div>
|
||||
</nav>
|
||||
<main class="main">
|
||||
<!-- :key forces each view to re-evaluate i18n.t() when the locale changes,
|
||||
so switching language updates the whole page reliably. -->
|
||||
<!-- :key forces each view to re-evaluate i18n.t() when locale changes -->
|
||||
<router-view :key="i18n.locale" />
|
||||
</main>
|
||||
</div>
|
||||
@@ -41,15 +51,36 @@ onMounted(() => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 24px;
|
||||
gap: 16px;
|
||||
padding: 10px 24px;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid var(--border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.brand { font-weight: 800; text-decoration: none; color: var(--ink); }
|
||||
.nav-right { display: flex; align-items: center; gap: 12px; }
|
||||
.lang { padding: 6px 10px; }
|
||||
.brand { font-weight: 800; text-decoration: none; color: var(--ink); white-space: nowrap; }
|
||||
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
|
||||
.tab {
|
||||
text-decoration: none;
|
||||
color: var(--muted);
|
||||
padding: 8px 16px;
|
||||
border-radius: 10px;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tab:hover { background: #f1f3f9; color: var(--ink); }
|
||||
.tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
|
||||
.nav-right { display: flex; align-items: center; gap: 8px; }
|
||||
.lang, .logout-btn { padding: 8px 12px; }
|
||||
.icon-btn { text-decoration: none; font-size: 18px; padding: 6px 10px; border-radius: 8px; }
|
||||
.icon-btn:hover { background: #f1f3f9; }
|
||||
.main { max-width: 1080px; margin: 0 auto; padding: 24px; }
|
||||
@media (max-width: 640px) {
|
||||
.topnav { padding: 10px 12px; }
|
||||
.tab { padding: 8px 12px; font-size: 13px; }
|
||||
.logout-btn span { display: none; }
|
||||
}
|
||||
</style>
|
||||
@@ -18,6 +18,14 @@ const messages = {
|
||||
setupSubtitle: 'First login for ',
|
||||
loginError: 'Invalid credentials',
|
||||
dashboard: 'Dashboard',
|
||||
training: 'Training',
|
||||
myDashboard: 'My dashboard',
|
||||
adminOverview: 'Admin overview',
|
||||
settings: 'Settings',
|
||||
account: 'Account',
|
||||
optional: 'optional',
|
||||
saved: 'Saved',
|
||||
total: 'Total',
|
||||
groups: 'Persona Groups',
|
||||
myTraining: 'My Training',
|
||||
adminTools: 'Admin Tools',
|
||||
@@ -77,6 +85,14 @@ const messages = {
|
||||
setupSubtitle: 'เข้าสู่ระบบครั้งแรกสำหรับ ',
|
||||
loginError: 'ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง',
|
||||
dashboard: 'หน้าหลัก',
|
||||
training: 'การฝึก',
|
||||
myDashboard: 'แดชบอร์ดของฉัน',
|
||||
adminOverview: 'ภาพรวม Admin',
|
||||
settings: 'การตั้งค่า',
|
||||
account: 'บัญชี',
|
||||
optional: 'ไม่บังคับ',
|
||||
saved: 'บันทึกแล้ว',
|
||||
total: 'ทั้งหมด',
|
||||
groups: 'กลุ่มลูกค้า (Persona)',
|
||||
myTraining: 'การฝึกของฉัน',
|
||||
adminTools: 'เครื่องมือ Admin',
|
||||
|
||||
@@ -4,12 +4,17 @@ import { auth } from '../store/auth'
|
||||
const routes = [
|
||||
{ path: '/login', component: () => import('../views/Login.vue'), meta: { public: true } },
|
||||
{ path: '/setup', component: () => import('../views/Setup.vue') },
|
||||
{ path: '/', component: () => import('../views/Dashboard.vue') },
|
||||
// Tab 1: Admin overview (admin only)
|
||||
{ path: '/', component: () => import('../views/Dashboard.vue'), meta: { admin: true } },
|
||||
// Tab 2: My dashboard (everyone, incl admin)
|
||||
{ path: '/my/board', component: () => import('../views/MyBoard.vue') },
|
||||
// Tab 3: Training — product list -> personas -> chat
|
||||
{ path: '/training', component: () => import('../views/Training.vue') },
|
||||
{ path: '/groups/:gid/personas', component: () => import('../views/Personas.vue') },
|
||||
{ path: '/groups/:gid/chat/:pid', component: () => import('../views/Chat.vue') },
|
||||
{ path: '/my/sessions', component: () => import('../views/MySessions.vue') },
|
||||
{ path: '/my/weak-areas', component: () => import('../views/WeakAreas.vue') },
|
||||
{ path: '/my/generate', component: () => import('../views/GenPersona.vue') },
|
||||
// Settings
|
||||
{ path: '/settings', component: () => import('../views/Settings.vue') },
|
||||
// Admin management
|
||||
{ path: '/admin/new-group', component: () => import('../views/GroupBuilder.vue'), meta: { admin: true } },
|
||||
{ path: '/admin/groups/:gid/edit', component: () => import('../views/GroupEdit.vue'), meta: { admin: true } },
|
||||
{ path: '/admin/users', component: () => import('../views/AdminUsers.vue'), meta: { admin: true } },
|
||||
@@ -33,8 +38,12 @@ router.beforeEach(async (to) => {
|
||||
if (auth.mustSetup && to.path !== '/setup') {
|
||||
return { path: '/setup' }
|
||||
}
|
||||
// Non-admin landing page: send to My dashboard.
|
||||
if (to.path === '/' && !auth.isAdmin) {
|
||||
return { path: '/my/board' }
|
||||
}
|
||||
if (to.meta.admin && !auth.isAdmin) {
|
||||
return { path: '/' }
|
||||
return { path: '/my/board' }
|
||||
}
|
||||
return true
|
||||
})
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>📊 {{ i18n.t('myDashboard') }}</h2>
|
||||
|
||||
<!-- Win/Lose summary -->
|
||||
<div class="row stat-row" v-if="!loading">
|
||||
<div class="card stat"><span>{{ i18n.t('total') }}</span><strong>{{ total }}</strong></div>
|
||||
<div class="card stat won"><span>{{ i18n.t('won') }}</span><strong>{{ won }}</strong></div>
|
||||
<div class="card stat lost"><span>{{ i18n.t('lost') }}</span><strong>{{ lost }}</strong></div>
|
||||
<div class="card stat"><span>{{ i18n.t('notTried') }}</span><strong>{{ notTried }}</strong></div>
|
||||
</div>
|
||||
|
||||
<div v-if="loading" class="card"><div class="skeleton" style="height:50px"></div></div>
|
||||
<div v-else-if="items.length === 0" class="card empty-state">
|
||||
<strong>No practice yet</strong>
|
||||
<span>Go to Training and try closing a sale with a persona.</span>
|
||||
</div>
|
||||
|
||||
<!-- Recent sessions -->
|
||||
<div v-show="sessions.length" class="card" style="margin-top:20px">
|
||||
<h3 style="margin-top:0">{{ i18n.t('mySessions') }}</h3>
|
||||
<div v-for="s in sessions" :key="s.id" style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border)">
|
||||
<span>{{ s.persona_name }}</span>
|
||||
<span class="badge" :class="s.outcome">{{ s.outcome === 'won' ? i18n.t('won') : i18n.t('lost') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
import { api } from '../api'
|
||||
import { i18n } from '../i18n'
|
||||
|
||||
const items = ref([])
|
||||
const sessions = ref([])
|
||||
const loading = ref(true)
|
||||
|
||||
const total = computed(() => items.value.length)
|
||||
const won = computed(() => items.value.filter((i) => i.my_outcome === 'won').length)
|
||||
const lost = computed(() => items.value.filter((i) => i.my_outcome === 'lost').length)
|
||||
const notTried = computed(() => items.value.filter((i) => i.my_outcome === 'not_tried').length)
|
||||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
items.value = (await api.myBoard()).board || []
|
||||
sessions.value = (await api.mySessions()).sessions || []
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.stat-row { gap: 16px; }
|
||||
.stat { text-align: center; min-width: 100px; }
|
||||
.stat span { display: block; font-size: 12px; color: var(--muted); }
|
||||
.stat strong { font-size: 26px; }
|
||||
.stat.won strong { color: var(--green); }
|
||||
.stat.lost strong { color: var(--red); }
|
||||
</style>
|
||||
@@ -0,0 +1,71 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>⚙️ {{ i18n.t('settings') }}</h2>
|
||||
|
||||
<div class="card">
|
||||
<h3 style="margin-top:0">{{ i18n.t('account') }}</h3>
|
||||
|
||||
<label>{{ i18n.t('username') }}</label>
|
||||
<input :value="auth.user?.username || ''" disabled />
|
||||
|
||||
<label>{{ i18n.t('email') }}</label>
|
||||
<input v-model="email" type="email" />
|
||||
|
||||
<label>{{ i18n.t('newPassword') }} <span class="muted">({{ i18n.t('optional') }})</span></label>
|
||||
<input v-model="password" type="password" autocomplete="new-password" />
|
||||
|
||||
<div class="error" v-if="error" role="alert">{{ error }}</div>
|
||||
<div class="ok" v-if="ok" role="status">✅ {{ ok }}</div>
|
||||
|
||||
<button class="primary" style="margin-top:16px" :disabled="busy" @click="save">
|
||||
<span v-if="busy" class="spinner"></span>{{ i18n.t('save') }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="card" style="margin-top:16px">
|
||||
<h3 style="margin-top:0">{{ i18n.t('language') }}</h3>
|
||||
<div class="row">
|
||||
<button :class="{ active: i18n.locale === 'th' }" @click="i18n.set('th')">ไทย</button>
|
||||
<button :class="{ active: i18n.locale === 'en' }" @click="i18n.set('en')">English</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { auth } from '../store/auth'
|
||||
import { api } from '../api'
|
||||
import { i18n } from '../i18n'
|
||||
|
||||
const email = ref(auth.user?.email || '')
|
||||
const password = ref('')
|
||||
const error = ref('')
|
||||
const ok = ref('')
|
||||
const busy = ref(false)
|
||||
const username = auth.user?.username || auth.user?.id || ''
|
||||
|
||||
async function save() {
|
||||
error.value = ''
|
||||
ok.value = ''
|
||||
busy.value = true
|
||||
try {
|
||||
if (email.value || password.value) {
|
||||
const body = { username, email: email.value }
|
||||
if (password.value) body.password = password.value
|
||||
const data = await api.setup(body)
|
||||
auth.user = data.user
|
||||
ok.value = i18n.t('saved')
|
||||
}
|
||||
} catch (e) {
|
||||
error.value = e.message
|
||||
} finally {
|
||||
busy.value = false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
|
||||
.ok { color: var(--green); font-size: 13px; margin-top: 8px; }
|
||||
</style>
|
||||
@@ -0,0 +1,60 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>🎯 {{ i18n.t('training') }}</h2>
|
||||
<p class="muted">Pick a product group to practice closing a sale.</p>
|
||||
|
||||
<div v-if="loading" class="card" style="min-height:80px">
|
||||
<div class="skeleton" style="height:50px"></div>
|
||||
</div>
|
||||
<div v-else-if="groups.length === 0" class="card empty-state">
|
||||
<strong>No training groups available</strong>
|
||||
<span>Ask an admin to create a persona group first.</span>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<router-link
|
||||
v-for="g in groups"
|
||||
:key="g.id"
|
||||
:to="`/groups/${g.id}/personas`"
|
||||
style="text-decoration:none"
|
||||
>
|
||||
<div class="card lift train-card">
|
||||
<div class="row" style="justify-content:space-between">
|
||||
<strong>{{ g.title }}</strong>
|
||||
<span class="badge ready">ready</span>
|
||||
</div>
|
||||
<div class="muted" style="margin:6px 0 12px">{{ productName(g) }}</div>
|
||||
<div class="badge" :class="g.channel">{{ g.channel || 'line' }}</div>
|
||||
<button class="primary" style="width:100%;margin-top:12px">{{ i18n.t('selectPersona') }}</button>
|
||||
</div>
|
||||
</router-link>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { api } from '../api'
|
||||
import { i18n } from '../i18n'
|
||||
|
||||
const groups = ref([])
|
||||
const loading = ref(true)
|
||||
|
||||
function productName(g) {
|
||||
return (g.sales_kit && g.sales_kit.productName) || (g.input && g.input.product) || ''
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
const all = (await api.listGroups()).groups || []
|
||||
groups.value = all.filter((g) => g.status === 'ready')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
|
||||
.train-card { display: flex; flex-direction: column; height: 100%; }
|
||||
.badge.ready { background: #dcfce7; color: #166534; }
|
||||
</style>
|
||||
Reference in new issue
Block a user