dev-process-kit 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/chunks/{shared-B_MRyp8K.js → shared-8NAMqG0U.js} +1 -1
  2. package/dist/chunks/{shared-CLSKGVCT.js → shared-B00JP4in.js} +1 -1
  3. package/dist/chunks/shared-B5lBiq5s.js +1 -0
  4. package/dist/chunks/{shared-OIF3QVAa.js → shared-BtN-8ibq.js} +1 -1
  5. package/dist/chunks/{shared-BnGxP2qu.js → shared-C6QYWD8M.js} +1 -1
  6. package/dist/chunks/{shared-QJPpnJIO.js → shared-CUPe-wfx.js} +1 -1
  7. package/dist/chunks/{shared-C_Ru__JO.js → shared-CWKqlSx3.js} +1 -1
  8. package/dist/chunks/shared-CpTDkEui.js +3751 -0
  9. package/dist/chunks/{shared-Bnqz77V3.js → shared-DEjjuQMh.js} +1 -1
  10. package/dist/chunks/{shared-DG16QEdg.js → shared-DRvgJdY6.js} +1 -1
  11. package/dist/chunks/{shared-3uutHtJD.js → shared-DWY93NpU.js} +1 -1
  12. package/dist/chunks/{shared-CjhDJ2vV.js → shared-DXaIVZ_z.js} +1 -1
  13. package/dist/chunks/{shared-D7TEJdR2.js → shared-DzxR5Yzc.js} +1 -1
  14. package/dist/chunks/{shared-XCFMpX43.js → shared-Ezic-gbC.js} +1 -1
  15. package/dist/chunks/{shared-B9XMvOh-.js → shared-IQ2sflGo.js} +1 -1
  16. package/dist/components.js +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/templates/delegation-poker.js +1 -1
  19. package/dist/templates/event-storming.js +1 -1
  20. package/dist/templates/example-mapping.js +1 -1
  21. package/dist/templates/grill.js +1 -1
  22. package/dist/templates/plain.js +1 -1
  23. package/dist/templates/prototype.js +1 -1
  24. package/dist/templates/slides.js +1 -1
  25. package/dist/templates/task-board.js +1 -1
  26. package/dist/templates/usm.js +1 -1
  27. package/dist/templates/whiteboard.js +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/shared-DdefS1nG.js +0 -1
  30. package/dist/chunks/shared-DmOHk6B_.js +0 -3457
@@ -1,3457 +0,0 @@
1
- import{ad as ya,aP as ka,ae as F,af as B,ag as D,aB as _,ah as u,aA as L,aj as v,ak as k,ai as _e,aO as Je,b5 as xa,b6 as Ea,ax as he,b7 as Ae,al as be,ay as wa,b8 as Sa,p as g,at as Qe,au as f,v as X,ap as $a,az as P,P as Ta,e as _a,a0 as Aa,V as T,R as x,aU as R,a2 as Z,a4 as d,a3 as m,a7 as I,a8 as et,aa as tt,G as Ia,j as La,aS as Ma,aT as Da,A as Ra,l as j,b3 as Ie,a5 as O,aE as K,J as Oa,B as Na,b9 as at,K as Le,aF as Ca,aI as Ba,z as Me,h as Ya,T as st,a1 as Ua,a9 as za,aJ as Pa,ba as Fa}from"./shared-CjhDJ2vV.js";import{s as nt}from"./shared-D4K7KsfJ.js";import{L as Ga,D as De}from"./shared-CtHWU02m.js";import{r as Re,D as Va}from"./shared-DdefS1nG.js";const Ha=[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1"}]],Ka=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16 9-5.5 5.5L8 12"}]],Wa=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"}]],qa=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9"}]],ja=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z"}],["circle",{cx:"12",cy:"12",r:"10"}]],Xa=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],Za=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]],Ja=[["circle",{cx:"12",cy:"12",r:"10"}]],Qa=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]],es=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]],ts=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"}]],as=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}],["path",{d:"M9 18h6"}],["path",{d:"M10 22h4"}]],ss=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]],ns=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]],it=e=>new Map(e.map(t=>[t.id,t.blockedBy??[]])),Oe=(e,t,a)=>{const s=it(e),n=new Set,i=[...s.get(t)??[]];for(;i.length>0;){const r=i.pop();if(!(r===void 0||n.has(r))){if(r===a)return!0;n.add(r),i.push(...s.get(r)??[])}}return!1},is=e=>{const t=it(e),a=new Set,s=(n,i)=>{const r=i.indexOf(n);if(r>=0)return[...i.slice(r),n];if(a.has(n))return null;for(const o of t.get(n)??[]){const l=s(o,[...i,n]);if(l)return l}return a.add(n),null};for(const n of e){const i=s(n.id,[]);if(i)return i}return null},ge=["gray","blue","violet","green","amber","accent"],rt=["progress","circle","lightbulb","flag","play","clock","eye","pause","check","x"],fe=["estimates","assignees"],ot=v(u(),Sa(),Je(e=>{const[t=0,a=0,s=0]=e.split("-").map(Number),n=new Date(Date.UTC(t,a-1,s));return n.getUTCMonth()===a-1&&n.getUTCDate()===s},"a due date must be a calendar day")),dt=v(be(),Ae(),he(0)),Ne=v(be(),Ae(),he(0)),lt=F({milestoneId:_(v(u(),k(1))),statusId:_(v(u(),k(1))),stories:v(be(),wa(),he(0)),points:v(be(),Ae(),he(0))}),pt=v(u(),Ea()),rs=F({id:v(u(),k(1)),name:v(u(),k(1))}),os=F({id:L,name:v(u(),k(1)),actor:_(u()),steps:B(D(rs),[])}),ds=F({id:v(u(),k(1)),name:v(u(),k(1)),timeframe:_(u()),description:_(u()),dueDate:_(ot)}),J=_e(ge),Ce=_e(rt),Be=v(u(),xa(),Je(e=>/^https?:\/\//i.test(e),"a link must be an http(s) URL")),ls=F({url:Be,label:_(v(u(),k(1)))}),ps=F({id:L,name:v(u(),k(1)),tone:B(J),icon:B(Ce),weight:_(dt)}),cs=F({id:L,name:v(u(),k(1)),tone:B(J)}),us=F({id:L,name:v(u(),k(1)),description:_(u()),activityId:v(u(),k(1)),stepId:v(u(),k(1)),milestoneId:_(u()),statusId:_(u()),links:_(D(ls)),labelIds:_(D(v(u(),k(1)))),blockedBy:_(D(v(u(),k(1)))),estimateId:_(v(u(),k(1))),assigneeId:_(v(u(),k(1)))}),ms=F({id:L,name:v(u(),k(1)),tone:B(J)}),ct=_e(fe),hs=F({id:L,name:v(u(),k(1)),points:Ne}),bs=F({id:L,at:pt,tally:D(lt)}),gs=F({title:_(u()),features:B(D(ct),[]),activities:B(D(os),[]),milestones:B(D(ds),[]),statuses:B(D(ps),[]),labels:B(D(cs),[]),members:B(D(ms),[]),estimates:B(D(hs),[]),stories:B(D(us),[]),snapshots:B(D(bs),[])}),Ye=e=>ge[e%ge.length]??"gray",ve=e=>Ye(e+1),ut=e=>{const t=ya(gs,e);if(new Set(t.features).size!==t.features.length)throw new Error("the base turns a feature on twice");const a=t.statuses[0]?.id,s={...t,stories:a===void 0?t.stories:t.stories.map(c=>c.statusId===void 0?{...c,statusId:a}:c),statuses:t.statuses.map((c,b)=>({...c,tone:c.tone??Ye(b),icon:c.icon??"progress"})),labels:t.labels.map((c,b)=>({...c,tone:c.tone??ve(b)})),members:t.members.map((c,b)=>({...c,tone:c.tone??ve(b)})),features:fe.filter(c=>t.features.includes(c))},n=new Map;for(const c of s.activities)for(const b of c.steps)n.set(b.id,c.id);const i=new Set(s.milestones.map(c=>c.id)),r=new Set(s.statuses.map(c=>c.id)),o=new Set(s.labels.map(c=>c.id)),l=new Set,p=(c,b)=>{if(l.has(b))throw new Error(`duplicate id "${b}" in ${c}`);l.add(b)};for(const c of s.activities){p("activities",c.id);for(const b of c.steps)p("steps",b.id)}for(const c of s.milestones)p("milestones",c.id);for(const c of s.statuses)p("statuses",c.id);for(const c of s.labels)p("labels",c.id);for(const c of s.members)p("members",c.id);for(const c of s.estimates)p("estimates",c.id);for(const c of s.snapshots)p("snapshots",c.id);const h=new Set(s.estimates.map(c=>c.id)),$=new Set(s.members.map(c=>c.id));for(const c of s.stories){p("stories",c.id);const b=n.get(c.stepId);if(b===void 0||b!==c.activityId)throw new Error(`story "${c.id}" references unknown activityId/stepId`);if(c.milestoneId!==void 0&&!i.has(c.milestoneId))throw new Error(`story "${c.id}" references unknown milestoneId "${c.milestoneId}"`);const te=(c.links??[]).map(Te=>Te.url);if(new Set(te).size!==te.length)throw new Error(`story "${c.id}" links the same URL twice`);if(c.statusId!==void 0&&!r.has(c.statusId))throw new Error(`story "${c.id}" references unknown statusId "${c.statusId}"`);const de=c.labelIds??[];if(new Set(de).size!==de.length)throw new Error(`story "${c.id}" has a label twice`);const Ze=de.find(Te=>!o.has(Te));if(Ze!==void 0)throw new Error(`story "${c.id}" references unknown labelId "${Ze}"`);if(c.estimateId!==void 0&&!h.has(c.estimateId))throw new Error(`story "${c.id}" references unknown estimateId "${c.estimateId}"`);if(c.assigneeId!==void 0&&!$.has(c.assigneeId))throw new Error(`story "${c.id}" references unknown assigneeId "${c.assigneeId}"`)}for(const c of s.snapshots){const b=mt(s,c.tally);if(b!==null)throw new Error(`snapshot "${c.id}" ${b}`)}const w=new Set(s.stories.map(c=>c.id));for(const c of s.stories){const b=c.blockedBy??[];if(b.includes(c.id))throw new Error(`story "${c.id}" is blocked by itself`);if(new Set(b).size!==b.length)throw new Error(`story "${c.id}" has a blocker twice`);const te=b.find(de=>!w.has(de));if(te!==void 0)throw new Error(`story "${c.id}" references unknown blocker "${te}"`)}const E=is(s.stories);if(E!==null)throw new Error(`stories block one another in a cycle: ${E.join(" \u2192 ")}`);return s},mt=(e,t)=>{const a=new Set;for(const s of t){if(s.milestoneId!==void 0&&!Y(e,s.milestoneId))return`references unknown milestoneId "${s.milestoneId}"`;if(s.statusId!==void 0&&!C(e,s.statusId))return`references unknown statusId "${s.statusId}"`;const n=ye(s);if(a.has(n))return`tallies "${n}" twice`;a.add(n)}return null},ye=e=>`${e.milestoneId??""}/${e.statusId??""}`,ht=()=>({features:[],activities:[],milestones:[],statuses:[],labels:[],members:[],estimates:[],stories:[],snapshots:[]}),Q=(e,t)=>{if(t!==void 0)return e.activities.find(a=>a.id===t)},ke=(e,t)=>`${e}.${t}`,N=(e,t)=>{if(t===void 0)return;const a=ka(t,2);if(a){const[s,n]=a;if(s===void 0||n===void 0)return;const i=e.activities.find(o=>o.id===s),r=i?.steps.find(o=>o.id===n);return i&&r?{activity:i,step:r}:void 0}if(!t.includes("."))for(const s of e.activities){const n=s.steps.find(i=>i.id===t);if(n)return{activity:s,step:n}}},Y=(e,t)=>{if(t!==void 0)return e.milestones.find(a=>a.id===t)},C=(e,t)=>{if(t!==void 0)return e.statuses.find(a=>a.id===t)},G=(e,t)=>{if(t!==void 0)return e.labels.find(a=>a.id===t)},W=(e,t)=>e.features.includes(t),U=(e,t)=>{if(t!==void 0)return e.members.find(a=>a.id===t)},fs=(e,t)=>U(e,t.assigneeId),z=(e,t)=>{if(t!==void 0)return e.estimates.find(a=>a.id===t)},le=(e,t)=>{if(t!==void 0)return e.snapshots.find(a=>a.id===t)},vs=(e,t)=>{const a=new Set(t.labelIds??[]);return e.labels.filter(s=>a.has(s.id))},S=(e,t)=>{if(t!==void 0)return e.stories.find(a=>a.id===t)},Ue=e=>e.activities.flatMap(t=>t.steps.map(a=>({activity:t,step:a}))),ys=e=>({...e,stories:nt(e.stories,[t=>`${t.activityId}/${t.stepId}/${t.milestoneId??""}`])}),xe=(e,t,a)=>e.stories.filter(s=>s.stepId===t&&(s.milestoneId??void 0)===a),bt=(e,t,a)=>e.stories.filter(s=>s.activityId===t&&(s.milestoneId??void 0)===a),q=e=>[...e.activities.map(t=>t.id),...e.activities.flatMap(t=>t.steps.map(a=>a.id)),...e.milestones.map(t=>t.id),...e.statuses.map(t=>t.id),...e.labels.map(t=>t.id),...e.members.map(t=>t.id),...e.estimates.map(t=>t.id),...e.stories.map(t=>t.id),...e.snapshots.map(t=>t.id)],gt=(e,t)=>e.stories.filter(a=>a.stepId===t).length,ft=f({feature:ct,enabled:$a()}),y={SET_ACTIVITY_NAME:g("SET_ACTIVITY_NAME","activity",f({name:v(u(),k(1))})),SET_ACTIVITY_ACTOR:g("SET_ACTIVITY_ACTOR","activity",f({actor:u()})),SET_STEP_NAME:g("SET_STEP_NAME","step",f({name:v(u(),k(1))})),REORDER_STEP:g("REORDER_STEP","step",f({after:P(u())}),{mode:"sequence"}),ADD_ACTIVITY:g("ADD_ACTIVITY","page",f({id:L,name:v(u(),k(1))}),{dedupeKey:X}),ADD_STEP:g("ADD_STEP","activity",f({id:L,name:v(u(),k(1))}),{dedupeKey:X}),DELETE_ACTIVITY:g("DELETE_ACTIVITY","activity",f({})),DELETE_STEP:g("DELETE_STEP","step",f({})),SET_STORY_NAME:g("SET_STORY_NAME","story",f({name:v(u(),k(1))})),SET_STORY_DESCRIPTION:g("SET_STORY_DESCRIPTION","story",f({description:u()})),SET_STORY_MILESTONE:g("SET_STORY_MILESTONE","story",f({milestoneId:P(u())})),MOVE_STORY:g("MOVE_STORY","story",f({activityId:v(u(),k(1)),stepId:v(u(),k(1)),milestoneId:P(u()),after:P(u())}),{mode:"sequence"}),REORDER_STORY:g("REORDER_STORY","story",f({after:P(u())}),{mode:"sequence"}),ADD_STORY:g("ADD_STORY","step",f({id:L,name:v(u(),k(1)),activityId:v(u(),k(1)),milestoneId:_(u())}),{dedupeKey:X}),DELETE_STORY:g("DELETE_STORY","story",f({})),ADD_STORY_LINK:g("ADD_STORY_LINK","story",f({url:Be,label:_(v(u(),k(1)))})),REMOVE_STORY_LINK:g("REMOVE_STORY_LINK","story",f({url:u()})),SET_STORY_STATUS:g("SET_STORY_STATUS","story",f({statusId:v(u(),k(1))})),SET_MILESTONE_NAME:g("SET_MILESTONE_NAME","milestone",f({name:v(u(),k(1))})),ADD_MILESTONE:g("ADD_MILESTONE","page",f({id:L,name:v(u(),k(1))}),{dedupeKey:X}),DELETE_MILESTONE:g("DELETE_MILESTONE","milestone",f({})),REORDER_MILESTONE:g("REORDER_MILESTONE","milestone",f({after:P(u())}),{mode:"sequence"}),SET_MILESTONE_DUE_DATE:g("SET_MILESTONE_DUE_DATE","milestone",f({dueDate:P(ot)})),ADD_STATUS:g("ADD_STATUS","page",f({id:L,name:v(u(),k(1)),tone:J,icon:_(Ce)}),{dedupeKey:X}),SET_STATUS_NAME:g("SET_STATUS_NAME","status",f({name:v(u(),k(1))})),SET_STATUS_TONE:g("SET_STATUS_TONE","status",f({tone:J})),SET_STATUS_ICON:g("SET_STATUS_ICON","status",f({icon:Ce})),SET_STATUS_WEIGHT:g("SET_STATUS_WEIGHT","status",f({weight:dt})),DELETE_STATUS:g("DELETE_STATUS","status",f({})),REORDER_STATUS:g("REORDER_STATUS","status",f({after:P(u())}),{mode:"sequence"}),ADD_LABEL:g("ADD_LABEL","page",f({id:L,name:v(u(),k(1)),tone:J}),{dedupeKey:X}),SET_LABEL_NAME:g("SET_LABEL_NAME","label",f({name:v(u(),k(1))})),SET_LABEL_TONE:g("SET_LABEL_TONE","label",f({tone:J})),DELETE_LABEL:g("DELETE_LABEL","label",f({})),REORDER_LABEL:g("REORDER_LABEL","label",f({after:P(u())}),{mode:"sequence"}),ADD_STORY_LABEL:g("ADD_STORY_LABEL","story",f({labelId:v(u(),k(1))})),REMOVE_STORY_LABEL:g("REMOVE_STORY_LABEL","story",f({labelId:v(u(),k(1))})),ADD_STORY_BLOCKER:g("ADD_STORY_BLOCKER","story",f({blockerId:v(u(),k(1))})),REMOVE_STORY_BLOCKER:g("REMOVE_STORY_BLOCKER","story",f({blockerId:v(u(),k(1))})),ADD_MEMBER:g("ADD_MEMBER","page",f({id:L,name:v(u(),k(1)),tone:J}),{dedupeKey:X}),SET_MEMBER_NAME:g("SET_MEMBER_NAME","member",f({name:v(u(),k(1))})),SET_MEMBER_TONE:g("SET_MEMBER_TONE","member",f({tone:J})),DELETE_MEMBER:g("DELETE_MEMBER","member",f({})),REORDER_MEMBER:g("REORDER_MEMBER","member",f({after:P(u())}),{mode:"sequence"}),SET_STORY_ASSIGNEE:g("SET_STORY_ASSIGNEE","story",f({memberId:P(v(u(),k(1)))})),ADD_ESTIMATE:g("ADD_ESTIMATE","page",f({id:L,name:v(u(),k(1)),points:Ne}),{dedupeKey:X}),SET_ESTIMATE_NAME:g("SET_ESTIMATE_NAME","estimate",f({name:v(u(),k(1))})),SET_ESTIMATE_POINTS:g("SET_ESTIMATE_POINTS","estimate",f({points:Ne})),DELETE_ESTIMATE:g("DELETE_ESTIMATE","estimate",f({})),REORDER_ESTIMATE:g("REORDER_ESTIMATE","estimate",f({after:P(u())}),{mode:"sequence"}),SET_STORY_ESTIMATE:g("SET_STORY_ESTIMATE","story",f({estimateId:P(v(u(),k(1)))})),RECORD_SNAPSHOT:g("RECORD_SNAPSHOT","page",f({id:L,at:pt,tally:D(lt)}),{dedupeKey:X}),DELETE_SNAPSHOT:g("DELETE_SNAPSHOT","snapshot",f({})),SET_FEATURE:g("SET_FEATURE","page",ft,{dedupeKey:e=>{const t=Qe(ft,e.payload);return`SET_FEATURE|${t.success?t.output.feature:JSON.stringify(e.payload)}`}})},ks={setActivityName:(e,t)=>({type:"SET_ACTIVITY_NAME",target:{type:"activity",id:e},payload:{name:t}}),setStepName:(e,t)=>({type:"SET_STEP_NAME",target:{type:"step",id:e},payload:{name:t}})},vt=(e,t)=>{const a=Ta(y,t);if(a===null)return null;const s=a.target.id;switch(a.type){case"SET_ACTIVITY_NAME":{const{name:n}=a.payload;return e.activities.some(i=>i.id===s)?{...e,activities:e.activities.map(i=>i.id===s?{...i,name:n}:i)}:null}case"SET_ACTIVITY_ACTOR":{const n=a.payload.actor.trim();return e.activities.some(i=>i.id===s)?{...e,activities:e.activities.map(i=>{if(i.id!==s)return i;const{actor:r,...o}=i;return n===""?o:{...o,actor:n}})}:null}case"SET_STEP_NAME":{const{name:n}=a.payload,i=N(e,s);return i?{...e,activities:e.activities.map(r=>r.id===i.activity.id?{...r,steps:r.steps.map(o=>o.id===i.step.id?{...o,name:n}:o)}:r)}:null}case"REORDER_STEP":{const{after:n}=a.payload,i=N(e,s);if(!i)return null;const r=n===null?null:N(e,n);if(n!==null&&(!r||r.activity.id!==i.activity.id))return null;const o=re(i.activity.steps,i.step.id,r?.step.id??null);return o===null?null:{...e,activities:e.activities.map(l=>l.id===i.activity.id?{...l,steps:o}:l)}}case"ADD_ACTIVITY":{const n=a.payload;return e.activities.some(i=>i.id===n.id)?e:{...e,activities:[...e.activities,{id:n.id,name:n.name,steps:[]}]}}case"ADD_STEP":{const n=a.payload,i=e.activities.find(r=>r.id===s);return i?i.steps.some(r=>r.id===n.id)?e:{...e,activities:e.activities.map(r=>r.id===s?{...r,steps:[...r.steps,{id:n.id,name:n.name}]}:r)}:null}case"DELETE_ACTIVITY":{const n=e.activities.find(r=>r.id===s);if(!n)return null;const i=new Set(n.steps.map(r=>r.id));return Pe({...e,activities:e.activities.filter(r=>r.id!==s)},r=>r.activityId===s||i.has(r.stepId))}case"DELETE_STEP":{const n=N(e,s);return n?Pe({...e,activities:e.activities.map(i=>i.id===n.activity.id?{...i,steps:i.steps.filter(r=>r.id!==n.step.id)}:i)},i=>i.activityId===n.activity.id&&i.stepId===n.step.id):null}case"SET_STORY_NAME":{const{name:n}=a.payload;return V(e,s,i=>({...i,name:n}))}case"SET_STORY_DESCRIPTION":{const{description:n}=a.payload;return V(e,s,i=>({...i,description:n}))}case"SET_STORY_MILESTONE":{const{milestoneId:n}=a.payload;return n!==null&&!Y(e,n)?null:V(e,s,i=>n===null?ze(i):{...i,milestoneId:n})}case"MOVE_STORY":{const n=a.payload,i=S(e,s);if(!i)return null;const r=N(e,n.stepId);if(!r||r.activity.id!==n.activityId||n.milestoneId!==null&&!Y(e,n.milestoneId))return null;const o=n.milestoneId??void 0,l=o===void 0?{...ze(i),activityId:r.activity.id,stepId:r.step.id}:{...i,activityId:r.activity.id,stepId:r.step.id,milestoneId:o};return xt(e,l,n.after)}case"REORDER_STORY":{const{after:n}=a.payload,i=S(e,s);return i?xt(e,i,n,!0):null}case"ADD_STORY":{const n=a.payload,i=N(e,t.target.id);if(!i||i.activity.id!==n.activityId||n.milestoneId!==void 0&&!Y(e,n.milestoneId))return null;if(e.stories.some(o=>o.id===n.id))return e;const r={id:n.id,name:n.name,activityId:n.activityId,stepId:i.step.id,...n.milestoneId===void 0?{}:{milestoneId:n.milestoneId},...e.statuses[0]===void 0?{}:{statusId:e.statuses[0].id}};return{...e,stories:[...e.stories,r]}}case"DELETE_STORY":return e.stories.some(n=>n.id===s)?Pe(e,n=>n.id===s):null;case"ADD_STORY_LINK":{const{url:n,label:i}=a.payload,r=S(e,s);if(!r)return null;if(r.links?.some(l=>l.url===n))return e;const o=i===void 0?{url:n}:{url:n,label:i};return V(e,s,l=>({...l,links:[...l.links??[],o]}))}case"REMOVE_STORY_LINK":{const{url:n}=a.payload;return S(e,s)?.links?.some(r=>r.url===n)?V(e,s,r=>{const o=(r.links??[]).filter(h=>h.url!==n),{links:l,...p}=r;return o.length===0?p:{...p,links:o}}):null}case"SET_STORY_STATUS":{const{statusId:n}=a.payload;return C(e,n)?V(e,s,i=>({...i,statusId:n})):null}case"SET_MILESTONE_NAME":{const{name:n}=a.payload;return e.milestones.some(i=>i.id===s)?{...e,milestones:e.milestones.map(i=>i.id===s?{...i,name:n}:i)}:null}case"ADD_MILESTONE":{const n=a.payload;return e.milestones.some(i=>i.id===n.id)?e:{...e,milestones:[...e.milestones,{id:n.id,name:n.name}]}}case"DELETE_MILESTONE":return e.milestones.some(n=>n.id===s)?{...e,milestones:e.milestones.filter(n=>n.id!==s),stories:e.stories.map(n=>n.milestoneId===s?ze(n):n),snapshots:Fe(e,n=>n.milestoneId===s?ae(n,"milestoneId"):n)}:null;case"REORDER_MILESTONE":{const{after:n}=a.payload,i=re(e.milestones,s,n);return i===null?null:{...e,milestones:i}}case"SET_MILESTONE_DUE_DATE":{const{dueDate:n}=a.payload;return Y(e,s)?{...e,milestones:e.milestones.map(i=>i.id!==s?i:n===null?ae(i,"dueDate"):{...i,dueDate:n})}:null}case"ADD_STATUS":{const{id:n,name:i,tone:r,icon:o}=a.payload;if(e.statuses.some(p=>p.id===n))return e;const l=[...e.statuses,{id:n,name:i,tone:r,icon:o??"progress"}];return e.statuses.length===0?{...e,statuses:l,stories:e.stories.map(p=>({...p,statusId:n})),snapshots:Fe(e,p=>({...p,statusId:n}))}:{...e,statuses:l}}case"SET_STATUS_NAME":{const{name:n}=a.payload;return C(e,s)?{...e,statuses:e.statuses.map(i=>i.id===s?{...i,name:n}:i)}:null}case"SET_STATUS_TONE":{const{tone:n}=a.payload;return C(e,s)?{...e,statuses:e.statuses.map(i=>i.id===s?{...i,tone:n}:i)}:null}case"SET_STATUS_ICON":{const{icon:n}=a.payload;return C(e,s)?{...e,statuses:e.statuses.map(i=>i.id===s?{...i,icon:n}:i)}:null}case"SET_STATUS_WEIGHT":{const{weight:n}=a.payload;return C(e,s)?{...e,statuses:e.statuses.map(i=>i.id===s?{...i,weight:n}:i)}:null}case"DELETE_STATUS":{if(!C(e,s))return null;const n=e.statuses.filter(r=>r.id!==s),i=n[0]?.id;return{...e,statuses:n,stories:e.stories.map(r=>r.statusId!==s?r:i===void 0?xs(r):{...r,statusId:i}),snapshots:Fe(e,r=>r.statusId!==s?r:i===void 0?ae(r,"statusId"):{...r,statusId:i})}}case"REORDER_STATUS":{const{after:n}=a.payload,i=re(e.statuses,s,n);return i===null?null:{...e,statuses:i}}case"ADD_LABEL":{const{id:n,name:i,tone:r}=a.payload;return G(e,n)?e:{...e,labels:[...e.labels,{id:n,name:i,tone:r}]}}case"SET_LABEL_NAME":{const{name:n}=a.payload;return G(e,s)?{...e,labels:e.labels.map(i=>i.id===s?{...i,name:n}:i)}:null}case"SET_LABEL_TONE":{const{tone:n}=a.payload;return G(e,s)?{...e,labels:e.labels.map(i=>i.id===s?{...i,tone:n}:i)}:null}case"DELETE_LABEL":return G(e,s)?{...e,labels:e.labels.filter(n=>n.id!==s),stories:e.stories.map(n=>n.labelIds?.includes(s)?yt(n,s):n)}:null;case"REORDER_LABEL":{const{after:n}=a.payload,i=re(e.labels,s,n);return i===null?null:{...e,labels:i}}case"ADD_STORY_LABEL":{const{labelId:n}=a.payload,i=S(e,s);return!i||!G(e,n)?null:i.labelIds?.includes(n)?e:V(e,s,r=>({...r,labelIds:[...r.labelIds??[],n]}))}case"REMOVE_STORY_LABEL":{const{labelId:n}=a.payload;return S(e,s)?.labelIds?.includes(n)?V(e,s,i=>yt(i,n)):null}case"ADD_STORY_BLOCKER":{const{blockerId:n}=a.payload,i=S(e,s);return!i||!S(e,n)?null:i.blockedBy?.includes(n)?e:n===s||Oe(e.stories,n,s)?null:V(e,s,r=>({...r,blockedBy:[...r.blockedBy??[],n]}))}case"REMOVE_STORY_BLOCKER":{const{blockerId:n}=a.payload;return S(e,s)?.blockedBy?.includes(n)?V(e,s,i=>kt(i,new Set([n]))):null}case"ADD_MEMBER":{const{id:n,name:i,tone:r}=a.payload;return U(e,n)?e:{...e,members:[...e.members,{id:n,name:i,tone:r}]}}case"SET_MEMBER_NAME":{const{name:n}=a.payload;return U(e,s)?{...e,members:e.members.map(i=>i.id===s?{...i,name:n}:i)}:null}case"SET_MEMBER_TONE":{const{tone:n}=a.payload;return U(e,s)?{...e,members:e.members.map(i=>i.id===s?{...i,tone:n}:i)}:null}case"DELETE_MEMBER":return U(e,s)?{...e,members:e.members.filter(n=>n.id!==s),stories:e.stories.map(n=>n.assigneeId===s?ae(n,"assigneeId"):n)}:null;case"REORDER_MEMBER":{const{after:n}=a.payload,i=re(e.members,s,n);return i===null?null:{...e,members:i}}case"SET_STORY_ASSIGNEE":{const{memberId:n}=a.payload;return n!==null&&!U(e,n)?null:V(e,s,i=>n===null?ae(i,"assigneeId"):{...i,assigneeId:n})}case"ADD_ESTIMATE":{const{id:n,name:i,points:r}=a.payload;return z(e,n)?e:{...e,estimates:[...e.estimates,{id:n,name:i,points:r}]}}case"SET_ESTIMATE_NAME":{const{name:n}=a.payload;return z(e,s)?{...e,estimates:e.estimates.map(i=>i.id===s?{...i,name:n}:i)}:null}case"SET_ESTIMATE_POINTS":{const{points:n}=a.payload;return z(e,s)?{...e,estimates:e.estimates.map(i=>i.id===s?{...i,points:n}:i)}:null}case"DELETE_ESTIMATE":return z(e,s)?{...e,estimates:e.estimates.filter(n=>n.id!==s),stories:e.stories.map(n=>n.estimateId===s?ae(n,"estimateId"):n)}:null;case"REORDER_ESTIMATE":{const{after:n}=a.payload,i=re(e.estimates,s,n);return i===null?null:{...e,estimates:i}}case"SET_STORY_ESTIMATE":{const{estimateId:n}=a.payload;return n!==null&&!z(e,n)?null:V(e,s,i=>n===null?ae(i,"estimateId"):{...i,estimateId:n})}case"RECORD_SNAPSHOT":{const{id:n,at:i,tally:r}=a.payload;return le(e,n)?e:mt(e,r)!==null?null:{...e,snapshots:[...e.snapshots,{id:n,at:i,tally:r}]}}case"DELETE_SNAPSHOT":return le(e,s)?{...e,snapshots:e.snapshots.filter(n=>n.id!==s)}:null;case"SET_FEATURE":{const{feature:n,enabled:i}=a.payload;if(e.features.includes(n)===i)return e;const r=fe.filter(o=>o===n?i:e.features.includes(o));return{...e,features:r}}default:return _a(a)}},V=(e,t,a)=>e.stories.some(s=>s.id===t)?{...e,stories:e.stories.map(s=>s.id===t?a(s):s)}:null,ze=e=>{const{milestoneId:t,...a}=e;return a},yt=(e,t)=>{const{labelIds:a=[],...s}=e,n=a.filter(i=>i!==t);return n.length===0?s:{...s,labelIds:n}},kt=(e,t)=>{const{blockedBy:a=[],...s}=e,n=a.filter(i=>!t.has(i));return n.length===0?s:{...s,blockedBy:n}},Pe=(e,t)=>{const a=new Set(e.stories.filter(t).map(s=>s.id));return{...e,stories:e.stories.filter(s=>!a.has(s.id)).map(s=>s.blockedBy?.some(n=>a.has(n))?kt(s,a):s)}},ae=(e,t)=>{const{[t]:a,...s}=e;return s},Fe=(e,t)=>e.snapshots.map(a=>{const s=new Map;for(const n of a.tally.map(t)){const i=ye(n),r=s.get(i);s.set(i,r?{...r,stories:r.stories+n.stories,points:r.points+n.points}:n)}return{...a,tally:[...s.values()]}}),xs=e=>{const{statusId:t,...a}=e;return a},xt=(e,t,a,s=!1)=>{const n=t.milestoneId??void 0,i=e.stories.filter(E=>E.id!==t.id),r=i.filter(E=>E.stepId===t.stepId&&(E.milestoneId??void 0)===n);if(a!==null){const E=i.find(c=>c.id===a);if(!E||E.stepId!==t.stepId||(E.milestoneId??void 0)!==n)return null;if(s){const c=S(e,t.id);if(!c||E.stepId!==c.stepId||(E.milestoneId??void 0)!==(c.milestoneId??void 0))return null}}const o=a===null?[t,...r]:Et(r,t,a),l=i.findIndex(E=>E.stepId===t.stepId&&(E.milestoneId??void 0)===n),p=new Set(r.map(E=>E.id)),h=i.filter(E=>!p.has(E.id)),$=l<0?h.length:Math.min(l,h.length),w=[...h.slice(0,$),...o,...h.slice($)];return{...e,stories:w}},re=(e,t,a)=>{if(!e.some(i=>i.id===t)||a!==null&&!e.some(i=>i.id===a))return null;if(a===t)return[...e];const s=e.find(i=>i.id===t);if(s===void 0)return null;const n=e.filter(i=>i.id!==t);return Et(n,s,a)},Et=(e,t,a)=>{const s=[...e],n=a===null?-1:s.findIndex(i=>i.id===a);return s.splice(n+1,0,t),s},pe=Aa({en:{renameActivity:"Rename activity",changeActivityActor:"Change whose experience",renameStep:"Rename step",reorderStep:"Reorder step",addActivity:"Add activity",addStep:"Add step",deleteActivity:"Delete activity",deleteStep:"Delete step",renameStory:"Rename story",updateStoryDescription:"Update story description",changeMilestone:"Change milestone",moveStory:"Move story",reorderStory:"Reorder story",addStory:"Add story",deleteStory:"Delete story",renameMilestone:"Rename milestone",addMilestone:"Add milestone",deleteMilestone:"Delete milestone",reorderMilestone:"Reorder milestone",changeStoryStatus:"Change story status",addStatus:"Add status",renameStatus:"Rename status",changeStatusTone:"Change status color",changeStatusIcon:"Change status icon",addStoryLink:"Link to story",removeStoryLink:"Unlink from story",deleteStatus:"Delete status",reorderStatus:"Reorder status",addLabel:"Add label",renameLabel:"Rename label",changeLabelTone:"Change label color",deleteLabel:"Delete label",reorderLabel:"Reorder label",addStoryLabel:"Label story",removeStoryLabel:"Unlabel story",addStoryBlocker:"Make story wait on",removeStoryBlocker:"Stop story waiting on",changeMilestoneDueDate:"Change milestone due date",changeStatusWeight:"Change status weight",addEstimate:"Add estimate",renameEstimate:"Rename estimate",changeEstimatePoints:"Change estimate points",deleteEstimate:"Delete estimate",reorderEstimate:"Reorder estimate",setStoryEstimate:"Estimate story",recordSnapshot:"Record burndown snapshot",deleteSnapshot:"Delete burndown snapshot",toValue:e=>`\u2192 \u201C${e}\u201D`,fromTo:(e,t)=>`\u201C${e}\u201D \u2192 \u201C${t}\u201D`,added:e=>`+ \u201C${e}\u201D`,removed:e=>`\u2212 \u201C${e}\u201D`,toFront:"\u2192 To the front",afterName:e=>`\u2192 Right after \u201C${e}\u201D`,toUnassigned:"\u2192 Unassigned",toName:e=>`\u2192 ${e}`,snapshotSummary:(e,t)=>`${e} \xB7 ${t===1?"1 story":`${t} stories`}`,activityGroup:"Activity",stepGroup:"Step",storyGroup:"Story",milestoneGroup:"Milestone",statusGroup:"Status",labelGroup:"Label",estimateGroup:"Estimate",snapshotGroup:"Snapshot",mapGroup:"Map",targetLabel:(e,t)=>`${e} \xB7 ${t}`,targetMissing:(e,t)=>`${e} \xB7 ${t} (missing)`,wholeMap:"Whole map",unassigned:"Unassigned",emptyTitle:"No backbone yet",emptyBody:"Add activities and steps, and the story map appears here.",firstActivityButton:"+ First activity",groupingLabel:"Group by",groupViewTab:"Activity group",groupAxisHeader:"Activity group \u2192",activityAxis:"Activity \u2192",milestoneAxis:"Milestone \u2193",stepNameLabel:"Step name",activityNameLabel:"Activity name",milestoneNameLabel:"Milestone name",addStepAria:"Add a step to this activity",newActivityButton:"+ Activity",newMilestoneButton:"+ Milestone",addCellButton:"+ Add",addStoryCellAria:"Add a story to this cell",storyCount:e=>e===1?"1 story":`${e} stories`,pageTabsLabel:"Page",mapTab:"User Story Mapping",milestonesTab:"Milestones",statusesTab:"Statuses",labelsTab:"Labels",burndownTab:"Burndown",shareOfStories:e=>`${e}% of all stories`,coverageLabel:"Backbone coverage",coverage:(e,t)=>`${e} / ${t} steps`,storiesLabel:"Stories",timeframeUnset:"Timing not set",milestoneNoDescription:"No description yet.",noMilestonesTitle:"No milestones yet",noMilestonesBody:"Add a milestone to slice the map into releases.",commentCountAria:e=>e===1?"1 comment":`${e} comments`,statusNameLabel:"Status name",statusToneLabel:"Color",toneName:e=>({gray:"Gray",blue:"Blue",violet:"Violet",green:"Green",amber:"Amber",accent:"Orange"})[e],statusIconLabel:"Icon",iconName:e=>({progress:"Progress ring",circle:"Circle",lightbulb:"Light bulb",flag:"Flag",play:"Play",clock:"Clock",eye:"Eye",pause:"Pause",check:"Check",x:"Cross"})[e],statusShare:(e,t)=>`${e===1?"1 story":`${e} stories`} \xB7 ${t}%`,filterLabel:"Filter",filterKeyLabel:e=>({status:"Status",label:"Label",estimate:"Estimate",assignee:"Assignee"})[e],filterAll:"All",noLabel:"No label",unestimatedFilter:"Not estimated",clearFilter:"Clear",progressAria:e=>`Progress: ${e}`,activityActorLabel:"Who",noStatusesTitle:"No statuses yet",noStatusesBody:"Add statuses such as Idea / Ready / Done, and the map colors each story by where it stands.",newStatusButton:"+ Status",moveUpAria:"Move up",moveDownAria:"Move down",deleteStatusAria:"Delete this status",statusWeightLabel:"Weight to next",statusWeightHint:"The effort of moving a story on to the next status. The burndown weighs the work left by it.",labelNameLabel:"Label name",noLabelsTitle:"No labels yet",noLabelsBody:"Add labels such as Dev / PdM to sort stories however the team likes. The kit gives them no meaning.",newLabelButton:"+ Label",deleteLabelAria:"Delete this label",burndownMilestoneLabel:"Milestone",dueDateLabel:"Due",noDueDate:"No due date",unitLabel:"Count",unitName:e=>({points:"Points",stories:"Stories"})[e],recordSnapshotButton:"Record snapshot",recordSnapshotHint:"Keeps today\u2019s totals per milestone and status, so the lines have a point to start from.",combinedChartTitle:"Weighted burndown",combinedChartHint:e=>`${e} of each story \xD7 the status weights it still has ahead of it. It reaches 0 when every story is done.`,statusChartTitle:e=>`Left to reach \u201C${e}\u201D`,statusChartsLabel:"By status",chartNow:"Now",chartToday:"Today",chartDue:"Due",chartIdeal:"Ideal",chartActual:"Actual",chartAbout:"How this chart is counted",axisDate:(e,t)=>wt("en-US",e,t),chartAria:(e,t)=>`${e}: ${t} now`,chartLatest:e=>`Now ${e}`,chartNeedsSnapshot:"Record a snapshot to draw the line from.",snapshotsLabel:"Snapshots",noSnapshots:"No snapshot yet.",deleteSnapshotAria:e=>`Delete the snapshot of ${e}`,noMilestonesForBurndown:"Add a milestone on the Milestones tab to see its burndown.",unestimatedNote:e=>`${e===1?"1 story has":`${e} stories have`} no estimate and count as 1 point each.`,estimatesLabel:"Estimate scale",estimatesHint:"Name and points of each size a story can be estimated at (1, 2, 3 \u2026 or S, M, L).",estimateNameLabel:"Estimate name",estimatePointsLabel:"Points",newEstimateButton:"+ Estimate",deleteEstimateAria:"Delete this estimate",noEstimates:"No estimate scale yet: the burndown counts stories.",moveDialogLabel:"Step to move to",moveDialogSelectLabel:"Destination",moveConfirm:"Move",moveCancel:"Cancel",storyStatusLabel:"Status",panelLabel:e=>`Story: ${e}`,closePanelAria:"Close",storyTitleLabel:"Title",storyDescriptionLabel:"Description",storyLinksLabel:"Links",storyLabelsLabel:"Labels",storyNoLabels:"No labels yet.",manageLabels:"Manage labels",storyDependenciesLabel:"Dependencies",storyBlockersLabel:"Waits on",storyDependentsLabel:"Holds up",storyNoBlockers:"Nothing to wait on.",storyNoDependents:"No story waits on this one.",addBlockerPlaceholder:"+ Wait on a story\u2026",addDependentPlaceholder:"+ Make a story wait on this\u2026",blockerFinished:"Done",removeBlockerAria:e=>`Stop waiting on ${e}`,removeDependentAria:e=>`Stop ${e} waiting on this`,blocksChip:e=>`Blocks ${e}`,waitsChip:e=>`Waits on ${e}`,blocksChipTitle:e=>`${e} ${e===1?"story waits":"stories wait"} on this one`,waitsChipTitle:e=>`Waits on ${e} unfinished ${e===1?"story":"stories"}`,storyEstimateLabel:"Estimate",unestimated:"None",estimateText:(e,t)=>e===String(t)?e:`${e} (${t} pt)`,estimateChipTitle:e=>`Estimate: ${e}`,manageEstimates:"Manage the scale",linkUrlLabel:"URL",addLinkButton:"Add",removeLinkAria:e=>`Remove ${e}`,deleteStoryButton:"Delete story",storyCommentsLabel:"Comments",commentSubmit:"Comment",storyStatusAria:e=>`Status: ${e}`,addMember:"Add member",renameMember:"Rename member",changeMemberTone:"Change member color",deleteMember:"Delete member",reorderMember:"Reorder member",setStoryAssignee:"Assign story",memberGroup:"Member",membersTab:"Members",memberNameLabel:"Member name",noMembersTitle:"No members yet",noMembersBody:"Add the people on the team, then assign each story to the one who takes it on.",newMemberButton:"+ Member",deleteMemberAria:"Delete this member",storyAssigneeLabel:"Assignee",noAssignee:"No one",storyNoMembers:"No members yet.",manageMembers:"Manage members",assigneeChipTitle:e=>`Assigned to ${e}`,noAssigneeFilter:"Unassigned",featuresButton:"Features",featuresMenuLabel:"Optional features",enableFeature:"Turn on feature",disableFeature:"Turn off feature",featureName:e=>({estimates:"Estimates & burndown",assignees:"Members & assignees"})[e],featureHint:e=>({estimates:"An estimate scale for the stories, status weights and a burndown per milestone.",assignees:"The members of the team and who each story is assigned to."})[e],featuresNote:"Turning a feature off only hides it: what it holds is kept.",newActivityName:"New activity",newStepName:"New step",newMilestoneName:"New milestone",newStoryName:"New story",newStatusName:"New status",newLabelName:"New label",newMemberName:"New member",newEstimateName:"New"},ja:{renameActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u540D\u3092\u5909\u66F4",changeActivityActor:"\u4F53\u9A13\u3059\u308B\u4EBA\u3092\u5909\u66F4",renameStep:"\u30B9\u30C6\u30C3\u30D7\u540D\u3092\u5909\u66F4",reorderStep:"\u30B9\u30C6\u30C3\u30D7\u306E\u9806\u5E8F\u3092\u5909\u66F4",addActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8FFD\u52A0",addStep:"\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0",deleteActivity:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u524A\u9664",deleteStep:"\u30B9\u30C6\u30C3\u30D7\u3092\u524A\u9664",renameStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u540D\u3092\u5909\u66F4",updateStoryDescription:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u8AAC\u660E\u3092\u66F4\u65B0",changeMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u5909\u66F4",moveStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u79FB\u52D5",reorderStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u9806\u5E8F\u3092\u5909\u66F4",addStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0",deleteStory:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u524A\u9664",renameMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u540D\u3092\u5909\u66F4",addMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0",deleteMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u524A\u9664",reorderMilestone:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u306E\u9806\u5E8F\u3092\u5909\u66F4",changeStoryStatus:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u5909\u66F4",addStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8FFD\u52A0",renameStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u540D\u3092\u5909\u66F4",changeStatusTone:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u8272\u3092\u5909\u66F4",changeStatusIcon:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u30A2\u30A4\u30B3\u30F3\u3092\u5909\u66F4",addStoryLink:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30EA\u30F3\u30AF\u3092\u8FFD\u52A0",removeStoryLink:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30EA\u30F3\u30AF\u3092\u524A\u9664",deleteStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",reorderStatus:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u9806\u5E8F\u3092\u5909\u66F4",addLabel:"\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0",renameLabel:"\u30E9\u30D9\u30EB\u540D\u3092\u5909\u66F4",changeLabelTone:"\u30E9\u30D9\u30EB\u306E\u8272\u3092\u5909\u66F4",deleteLabel:"\u30E9\u30D9\u30EB\u3092\u524A\u9664",reorderLabel:"\u30E9\u30D9\u30EB\u306E\u9806\u5E8F\u3092\u5909\u66F4",addStoryLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u30E9\u30D9\u30EB\u3092\u4ED8\u4E0E",removeStoryLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u30E9\u30D9\u30EB\u3092\u5916\u3059",addStoryBlocker:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F9D\u5B58\u5148\u3092\u8FFD\u52A0",removeStoryBlocker:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u4F9D\u5B58\u5148\u3092\u5916\u3059",changeMilestoneDueDate:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u306E\u671F\u65E5\u3092\u5909\u66F4",changeStatusWeight:"\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3092\u5909\u66F4",addEstimate:"\u898B\u7A4D\u3082\u308A\u3092\u8FFD\u52A0",renameEstimate:"\u898B\u7A4D\u3082\u308A\u540D\u3092\u5909\u66F4",changeEstimatePoints:"\u898B\u7A4D\u3082\u308A\u306E\u30DD\u30A4\u30F3\u30C8\u3092\u5909\u66F4",deleteEstimate:"\u898B\u7A4D\u3082\u308A\u3092\u524A\u9664",reorderEstimate:"\u898B\u7A4D\u3082\u308A\u306E\u9806\u5E8F\u3092\u5909\u66F4",setStoryEstimate:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u898B\u7A4D\u3082\u308B",recordSnapshot:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332",deleteSnapshot:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u524A\u9664",toValue:e=>`\u2192 \u300C${e}\u300D`,fromTo:(e,t)=>`\u300C${e}\u300D\u2192\u300C${t}\u300D`,added:e=>`+ \u300C${e}\u300D`,removed:e=>`\u2212 \u300C${e}\u300D`,toFront:"\u2192 \u5148\u982D\u3078",afterName:e=>`\u2192 \u300C${e}\u300D\u306E\u76F4\u5F8C\u3078`,toUnassigned:"\u2192 \u672A\u5272\u5F53\u3078",toName:e=>`\u2192 ${e}`,snapshotSummary:(e,t)=>`${e} \xB7 ${t} \u30B9\u30C8\u30FC\u30EA\u30FC`,activityGroup:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",stepGroup:"\u30B9\u30C6\u30C3\u30D7",storyGroup:"\u30B9\u30C8\u30FC\u30EA\u30FC",milestoneGroup:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",statusGroup:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelGroup:"\u30E9\u30D9\u30EB",estimateGroup:"\u898B\u7A4D\u3082\u308A",snapshotGroup:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",mapGroup:"\u30DE\u30C3\u30D7",targetLabel:(e,t)=>`${e} \xB7 ${t}`,targetMissing:(e,t)=>`${e} \xB7 ${t} (missing)`,wholeMap:"\u30DE\u30C3\u30D7\u5168\u4F53",unassigned:"\u672A\u5272\u5F53",emptyTitle:"\u30D0\u30C3\u30AF\u30DC\u30FC\u30F3\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",emptyBody:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3068\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u3053\u3053\u306B\u30B9\u30C8\u30FC\u30EA\u30FC\u30DE\u30C3\u30D7\u304C\u73FE\u308C\u307E\u3059\u3002",firstActivityButton:"+ \u6700\u521D\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",groupingLabel:"\u307E\u3068\u3081\u308B\u5358\u4F4D",groupViewTab:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7",groupAxisHeader:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30B0\u30EB\u30FC\u30D7 \u2192",activityAxis:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3 \u2192",milestoneAxis:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3 \u2193",stepNameLabel:"\u30B9\u30C6\u30C3\u30D7\u540D",activityNameLabel:"\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u540D",milestoneNameLabel:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u540D",addStepAria:"\u3053\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u306B\u30B9\u30C6\u30C3\u30D7\u3092\u8FFD\u52A0",newActivityButton:"+ \u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",newMilestoneButton:"+ \u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",addCellButton:"+ \u8FFD\u52A0",addStoryCellAria:"\u3053\u306E\u30DE\u30B9\u306B\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0",storyCount:e=>`${e} \u30B9\u30C8\u30FC\u30EA\u30FC`,pageTabsLabel:"\u30DA\u30FC\u30B8",mapTab:"User Story Mapping",milestonesTab:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",statusesTab:"\u30B9\u30C6\u30FC\u30BF\u30B9",labelsTab:"\u30E9\u30D9\u30EB",burndownTab:"\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",shareOfStories:e=>`\u5168\u30B9\u30C8\u30FC\u30EA\u30FC\u306E ${e}%`,coverageLabel:"\u30D0\u30C3\u30AF\u30DC\u30FC\u30F3\u306E\u7DB2\u7F85",coverage:(e,t)=>`${e} / ${t} \u30B9\u30C6\u30C3\u30D7`,storiesLabel:"\u30B9\u30C8\u30FC\u30EA\u30FC",timeframeUnset:"\u6642\u671F\u672A\u5B9A",milestoneNoDescription:"\u8AAC\u660E\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",noMilestonesTitle:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noMilestonesBody:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30DE\u30C3\u30D7\u3092\u30EA\u30EA\u30FC\u30B9\u3054\u3068\u306B\u533A\u5207\u308C\u307E\u3059\u3002",commentCountAria:e=>`\u30B3\u30E1\u30F3\u30C8 ${e} \u4EF6`,statusNameLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u540D",statusToneLabel:"\u8272",toneName:e=>({gray:"\u30B0\u30EC\u30FC",blue:"\u9752",violet:"\u7D2B",green:"\u7DD1",amber:"\u9EC4",accent:"\u30AA\u30EC\u30F3\u30B8"})[e],statusIconLabel:"\u30A2\u30A4\u30B3\u30F3",iconName:e=>({progress:"\u9032\u6357\u30EA\u30F3\u30B0",circle:"\u5186",lightbulb:"\u96FB\u7403",flag:"\u65D7",play:"\u518D\u751F",clock:"\u6642\u8A08",eye:"\u76EE",pause:"\u4E00\u6642\u505C\u6B62",check:"\u30C1\u30A7\u30C3\u30AF",x:"\u30D0\u30C4"})[e],statusShare:(e,t)=>`${e} \u30B9\u30C8\u30FC\u30EA\u30FC \xB7 ${t}%`,filterLabel:"\u30D5\u30A3\u30EB\u30BF\u30FC",filterKeyLabel:e=>({status:"\u30B9\u30C6\u30FC\u30BF\u30B9",label:"\u30E9\u30D9\u30EB",estimate:"\u898B\u7A4D\u3082\u308A",assignee:"\u62C5\u5F53\u8005"})[e],filterAll:"\u3059\u3079\u3066",noLabel:"\u30E9\u30D9\u30EB\u306A\u3057",unestimatedFilter:"\u898B\u7A4D\u3082\u308A\u306A\u3057",clearFilter:"\u30AF\u30EA\u30A2",progressAria:e=>`\u9032\u307F\u5177\u5408: ${e}`,activityActorLabel:"\u8AB0\u306E\u4F53\u9A13",noStatusesTitle:"\u30B9\u30C6\u30FC\u30BF\u30B9\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noStatusesBody:"Idea / Ready / Done \u306E\u3088\u3046\u306A\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30DE\u30C3\u30D7\u306E\u30AB\u30FC\u30C9\u304C\u9032\u307F\u5177\u5408\u3067\u8272\u5206\u3051\u3055\u308C\u307E\u3059\u3002",newStatusButton:"+ \u30B9\u30C6\u30FC\u30BF\u30B9",moveUpAria:"\u4E0A\u3078\u79FB\u52D5",moveDownAria:"\u4E0B\u3078\u79FB\u52D5",deleteStatusAria:"\u3053\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u524A\u9664",statusWeightLabel:"\u6B21\u3078\u306E\u91CD\u307F",statusWeightHint:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u6B21\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3078\u9032\u3081\u308B\u624B\u9593\u3067\u3059\u3002\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306F\u6B8B\u4F5C\u696D\u3092\u3053\u306E\u91CD\u307F\u3067\u91CF\u308A\u307E\u3059\u3002",labelNameLabel:"\u30E9\u30D9\u30EB\u540D",noLabelsTitle:"\u30E9\u30D9\u30EB\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093",noLabelsBody:"Dev / PdM \u306E\u3088\u3046\u306A\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u30C1\u30FC\u30E0\u306E\u904B\u7528\u306B\u5408\u308F\u305B\u3066\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u533A\u5206\u3051\u3067\u304D\u307E\u3059\u3002\u30E9\u30D9\u30EB\u306E\u610F\u5473\u306F\u4ED5\u7D44\u307F\u5074\u3067\u306F\u6C7A\u3081\u307E\u305B\u3093\u3002",newLabelButton:"+ \u30E9\u30D9\u30EB",deleteLabelAria:"\u3053\u306E\u30E9\u30D9\u30EB\u3092\u524A\u9664",burndownMilestoneLabel:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",dueDateLabel:"\u671F\u65E5",noDueDate:"\u671F\u65E5\u306A\u3057",unitLabel:"\u6570\u3048\u308B\u5358\u4F4D",unitName:e=>({points:"\u30DD\u30A4\u30F3\u30C8",stories:"\u30B9\u30C8\u30FC\u30EA\u30FC\u6570"})[e],recordSnapshotButton:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332",recordSnapshotHint:"\u4ECA\u306E\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3 \xD7 \u30B9\u30C6\u30FC\u30BF\u30B9\u3054\u3068\u306E\u96C6\u8A08\u3092\u6B8B\u3057\u3001\u7DDA\u306E\u8D77\u70B9\u306B\u3057\u307E\u3059\u3002",combinedChartTitle:"\u91CD\u307F\u4ED8\u304D\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u30C1\u30E3\u30FC\u30C8",combinedChartHint:e=>`\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E${e} \xD7 \u305D\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u304C\u3053\u306E\u5148\u901A\u308B\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3002\u3059\u3079\u3066 Done \u306B\u306A\u308B\u3068 0 \u3067\u3059\u3002`,statusChartTitle:e=>`\u300C${e}\u300D\u306B\u5C4A\u304F\u307E\u3067\u306E\u6B8B\u308A`,statusChartsLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9\u5225",chartNow:"\u73FE\u5728",chartToday:"\u4ECA\u65E5",chartDue:"\u671F\u65E5",chartIdeal:"\u7406\u60F3",chartActual:"\u5B9F\u7E3E",chartAbout:"\u3053\u306E\u30C1\u30E3\u30FC\u30C8\u306E\u6570\u3048\u65B9",axisDate:(e,t)=>wt("ja-JP",e,t),chartAria:(e,t)=>`${e}: \u73FE\u5728 ${t}`,chartLatest:e=>`\u73FE\u5728 ${e}`,chartNeedsSnapshot:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u8A18\u9332\u3059\u308B\u3068\u7DDA\u304C\u5F15\u304B\u308C\u307E\u3059\u3002",snapshotsLabel:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",noSnapshots:"\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",deleteSnapshotAria:e=>`${e} \u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u524A\u9664`,noMilestonesForBurndown:"\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u30BF\u30D6\u3067\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3092\u8FFD\u52A0\u3059\u308B\u3068\u3001\u305D\u306E\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u304C\u898B\u3089\u308C\u307E\u3059\u3002",unestimatedNote:e=>`${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u898B\u7A4D\u3082\u308A\u304C\u306A\u304F\u30011 \u4EF6 1 \u30DD\u30A4\u30F3\u30C8\u3068\u3057\u3066\u6570\u3048\u3066\u3044\u307E\u3059\u3002`,estimatesLabel:"\u898B\u7A4D\u3082\u308A\u306E\u76EE\u76DB\u308A",estimatesHint:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306B\u4ED8\u3051\u3089\u308C\u308B\u898B\u7A4D\u3082\u308A\u306E\u540D\u524D\u3068\u30DD\u30A4\u30F3\u30C8\uFF081, 2, 3 \u2026 \u3084 S, M, L\uFF09\u3002",estimateNameLabel:"\u898B\u7A4D\u3082\u308A\u540D",estimatePointsLabel:"\u30DD\u30A4\u30F3\u30C8",newEstimateButton:"+ \u898B\u7A4D\u3082\u308A",deleteEstimateAria:"\u3053\u306E\u898B\u7A4D\u3082\u308A\u3092\u524A\u9664",noEstimates:"\u898B\u7A4D\u3082\u308A\u306E\u76EE\u76DB\u308A\u304C\u307E\u3060\u306A\u3044\u305F\u3081\u3001\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u306F\u30B9\u30C8\u30FC\u30EA\u30FC\u6570\u3067\u6570\u3048\u307E\u3059\u3002",moveDialogLabel:"\u79FB\u52D5\u5148\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",moveDialogSelectLabel:"\u79FB\u52D5\u5148",moveConfirm:"\u79FB\u52D5\u3059\u308B",moveCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",storyStatusLabel:"\u30B9\u30C6\u30FC\u30BF\u30B9",panelLabel:e=>`\u30B9\u30C8\u30FC\u30EA\u30FC: ${e}`,closePanelAria:"\u9589\u3058\u308B",storyTitleLabel:"\u30BF\u30A4\u30C8\u30EB",storyDescriptionLabel:"\u8AAC\u660E",storyLinksLabel:"\u30EA\u30F3\u30AF",storyLabelsLabel:"\u30E9\u30D9\u30EB",storyNoLabels:"\u30E9\u30D9\u30EB\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",manageLabels:"\u30E9\u30D9\u30EB\u3092\u7BA1\u7406",storyDependenciesLabel:"\u4F9D\u5B58\u95A2\u4FC2",storyBlockersLabel:"\u4F9D\u5B58\u5148\uFF08\u5148\u306B\u7D42\u3048\u308B\uFF09",storyDependentsLabel:"\u4F9D\u5B58\u5143\uFF08\u3053\u308C\u3092\u5F85\u3064\uFF09",storyNoBlockers:"\u5F85\u3063\u3066\u3044\u308B\u30B9\u30C8\u30FC\u30EA\u30FC\u306F\u3042\u308A\u307E\u305B\u3093\u3002",storyNoDependents:"\u3053\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F85\u3064\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",addBlockerPlaceholder:"+ \u4F9D\u5B58\u5148\u3092\u8FFD\u52A0\u2026",addDependentPlaceholder:"+ \u3053\u308C\u3092\u5F85\u3064\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u8FFD\u52A0\u2026",blockerFinished:"\u5B8C\u4E86",removeBlockerAria:e=>`${e} \u3078\u306E\u4F9D\u5B58\u3092\u5916\u3059`,removeDependentAria:e=>`${e} \u304B\u3089\u306E\u4F9D\u5B58\u3092\u5916\u3059`,blocksChip:e=>`${e} \u4EF6\u3092\u30D6\u30ED\u30C3\u30AF`,waitsChip:e=>`${e} \u4EF6\u5F85\u3061`,blocksChipTitle:e=>`${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u304C\u3053\u308C\u3092\u5F85\u3063\u3066\u3044\u307E\u3059`,waitsChipTitle:e=>`\u672A\u5B8C\u4E86\u306E ${e} \u4EF6\u306E\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F85\u3063\u3066\u3044\u307E\u3059`,storyEstimateLabel:"\u898B\u7A4D\u3082\u308A",unestimated:"\u306A\u3057",estimateText:(e,t)=>e===String(t)?e:`${e}\uFF08${t} pt\uFF09`,estimateChipTitle:e=>`\u898B\u7A4D\u3082\u308A: ${e}`,manageEstimates:"\u76EE\u76DB\u308A\u3092\u7BA1\u7406",linkUrlLabel:"URL",addLinkButton:"\u8FFD\u52A0",removeLinkAria:e=>`${e} \u3092\u5916\u3059`,deleteStoryButton:"\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u524A\u9664",storyCommentsLabel:"\u30B3\u30E1\u30F3\u30C8",commentSubmit:"\u30B3\u30E1\u30F3\u30C8\u3059\u308B",storyStatusAria:e=>`\u30B9\u30C6\u30FC\u30BF\u30B9: ${e}`,addMember:"\u30E1\u30F3\u30D0\u30FC\u3092\u8FFD\u52A0",renameMember:"\u30E1\u30F3\u30D0\u30FC\u540D\u3092\u5909\u66F4",changeMemberTone:"\u30E1\u30F3\u30D0\u30FC\u306E\u8272\u3092\u5909\u66F4",deleteMember:"\u30E1\u30F3\u30D0\u30FC\u3092\u524A\u9664",reorderMember:"\u30E1\u30F3\u30D0\u30FC\u306E\u9806\u5E8F\u3092\u5909\u66F4",setStoryAssignee:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u62C5\u5F53\u8005\u3092\u5909\u66F4",memberGroup:"\u30E1\u30F3\u30D0\u30FC",membersTab:"\u30E1\u30F3\u30D0\u30FC",memberNameLabel:"\u30E1\u30F3\u30D0\u30FC\u540D",noMembersTitle:"\u30E1\u30F3\u30D0\u30FC\u304C\u307E\u3060\u3044\u307E\u305B\u3093",noMembersBody:"\u30C1\u30FC\u30E0\u306E\u30E1\u30F3\u30D0\u30FC\u3092\u8FFD\u52A0\u3057\u3001\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u3092\u5F15\u304D\u53D7\u3051\u308B\u4EBA\u306B\u5272\u308A\u5F53\u3066\u307E\u3059\u3002",newMemberButton:"+ \u30E1\u30F3\u30D0\u30FC",deleteMemberAria:"\u3053\u306E\u30E1\u30F3\u30D0\u30FC\u3092\u524A\u9664",storyAssigneeLabel:"\u62C5\u5F53\u8005",noAssignee:"\u306A\u3057",storyNoMembers:"\u30E1\u30F3\u30D0\u30FC\u306F\u307E\u3060\u3044\u307E\u305B\u3093\u3002",manageMembers:"\u30E1\u30F3\u30D0\u30FC\u3092\u7BA1\u7406",assigneeChipTitle:e=>`\u62C5\u5F53: ${e}`,noAssigneeFilter:"\u62C5\u5F53\u8005\u306A\u3057",featuresButton:"\u6A5F\u80FD",featuresMenuLabel:"\u8FFD\u52A0\u3067\u304D\u308B\u6A5F\u80FD",enableFeature:"\u6A5F\u80FD\u3092\u6709\u52B9\u5316",disableFeature:"\u6A5F\u80FD\u3092\u7121\u52B9\u5316",featureName:e=>({estimates:"\u898B\u7A4D\u3082\u308A\u3068\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3",assignees:"\u30E1\u30F3\u30D0\u30FC\u3068\u62C5\u5F53\u8005"})[e],featureHint:e=>({estimates:"\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u898B\u7A4D\u3082\u308A\u3001\u30B9\u30C6\u30FC\u30BF\u30B9\u306E\u91CD\u307F\u3001\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3\u3054\u3068\u306E\u30D0\u30FC\u30F3\u30C0\u30A6\u30F3\u3002",assignees:"\u30C1\u30FC\u30E0\u306E\u30E1\u30F3\u30D0\u30FC\u3068\u3001\u5404\u30B9\u30C8\u30FC\u30EA\u30FC\u306E\u62C5\u5F53\u8005\u3002"})[e],featuresNote:"\u7121\u52B9\u306B\u3057\u3066\u3082\u96A0\u3059\u3060\u3051\u3067\u3001\u5165\u529B\u3057\u305F\u5185\u5BB9\u306F\u6B8B\u308A\u307E\u3059\u3002",newActivityName:"\u65B0\u3057\u3044\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3",newStepName:"\u65B0\u3057\u3044\u30B9\u30C6\u30C3\u30D7",newMilestoneName:"\u65B0\u3057\u3044\u30DE\u30A4\u30EB\u30B9\u30C8\u30FC\u30F3",newStoryName:"\u65B0\u3057\u3044\u30B9\u30C8\u30FC\u30EA\u30FC",newStatusName:"\u65B0\u3057\u3044\u30B9\u30C6\u30FC\u30BF\u30B9",newLabelName:"\u65B0\u3057\u3044\u30E9\u30D9\u30EB",newMemberName:"\u65B0\u3057\u3044\u30E1\u30F3\u30D0\u30FC",newEstimateName:"\u65B0\u898F"}}),wt=(e,t,a)=>{const s=new Date(t);switch(a){case"day":case"week":case"biweek":return`${s.getMonth()+1}/${s.getDate()}`;case"month":case"quarter":return new Intl.DateTimeFormat(e,{month:"short",...s.getMonth()===0?{year:"numeric"}:{}}).format(s);case"year":return new Intl.DateTimeFormat(e,{year:"numeric"}).format(s)}},Ge=/^[A-Z][A-Z0-9]+-\d+$/,St=e=>{let t=e;try{t=decodeURIComponent(e)}catch{}return t.replace(/[-_+]+/g," ").trim()},Es=(e,t)=>{if(e!=="github.com")return null;const[a,s,n,i]=t;if(a===void 0)return{kind:"github",text:"GitHub",title:"github.com"};if(s===void 0)return{kind:"github",text:a,title:a};const r=`${a}/${s}`;return(n==="issues"||n==="pull"||n==="discussions")&&i&&/^\d+$/.test(i)?{kind:"github",text:`#${i}`,title:`${r}#${i}`}:n==="commit"&&i?{kind:"github",text:i.slice(0,7),title:`${r}@${i}`}:{kind:"github",text:r,title:r}},ws=(e,t)=>{if(e!=="gitlab.com")return null;const a=t.indexOf("-"),s=(a<0?t:t.slice(0,a)).join("/"),n=a<0?void 0:t[a+1],i=a<0?void 0:t[a+2];if(i&&/^\d+$/.test(i)){if(n==="issues")return{kind:"gitlab",text:`#${i}`,title:`${s}#${i}`};if(n==="merge_requests")return{kind:"gitlab",text:`!${i}`,title:`${s}!${i}`}}return{kind:"gitlab",text:s||"GitLab",title:s||e}},Ss=(e,t,a)=>{if(!t.endsWith(".atlassian.net")&&!t.startsWith("jira."))return null;const s=(a[0]==="browse"?a[1]:void 0)??e.searchParams.get("selectedIssue")??a.find(n=>Ge.test(n));return s&&Ge.test(s)?{kind:"jira",text:s,title:`${t} ${s}`}:{kind:"jira",text:"Jira",title:t}},$s=(e,t)=>{if(e!=="linear.app")return null;const a=t[1]==="issue"?t[2]?.toUpperCase():void 0;return a&&Ge.test(a)?{kind:"linear",text:a,title:a}:{kind:"linear",text:"Linear",title:e}},Ts=(e,t)=>{if(e!=="figma.com")return null;const[a,,s]=t;if((a==="file"||a==="design"||a==="proto"||a==="board")&&s){const n=St(s);return{kind:"figma",text:n,title:n}}return{kind:"figma",text:"Figma",title:e}},_s=(e,t)=>{if(e!=="notion.so"&&!e.endsWith(".notion.site"))return null;const s=(t.at(-1)??"").replace(/-?[0-9a-f]{32}$/i,""),n=s===""?"Notion":St(s);return{kind:"notion",text:n,title:n}},Ee=e=>{let t;try{t=new URL(e)}catch{return{kind:"web",text:e,title:e}}const a=t.hostname.replace(/^www\./,""),s=t.pathname.split("/").filter(n=>n!=="");return Es(a,s)??ws(a,s)??Ss(t,a,s)??$s(a,s)??Ts(a,s)??_s(a,s)??{kind:"web",text:a,title:e}},As=["map","milestones","statuses","labels","members","burndown"],Is={members:"assignees",burndown:"estimates"},$t=e=>As.filter(t=>{const a=Is[t];return a===void 0||W(e,a)}),Tt=(e,t)=>$t(e).find(a=>a===t.tab)??"map",Ve=["points","stories"],Ls=(e,t)=>e.milestones.find(a=>a.id===t.milestone)??e.milestones.find(a=>a.dueDate!==void 0)??e.milestones[0],Ms=(e,t)=>Ve.find(a=>a===t.unit)??(e.estimates.length>0?"points":"stories"),_t=e=>e.weight??1,Ds=1,Rs=(e,t)=>z(e,t.estimateId)?.points??Ds,At=e=>{const t=new Map;for(const n of e.stories){const i={...n.milestoneId===void 0?{}:{milestoneId:n.milestoneId},...n.statusId===void 0?{}:{statusId:n.statusId}},r=ye(i),o=t.get(r)??{...i,stories:0,points:0};t.set(r,{...o,stories:o.stories+1,points:o.points+Rs(e,n)})}const a=[...e.milestones.map(n=>n.id),void 0],s=e.statuses.length===0?[void 0]:e.statuses.map(n=>n.id);return a.flatMap(n=>s.flatMap(i=>{const r=t.get(ye({milestoneId:n,statusId:i}));return r?[r]:[]}))},Os=(e,t,a,s)=>{const i=[...nt(e.snapshots.map(l=>({at:Date.parse(l.at),tally:l.tally,snapshotId:l.id})),[l=>l.at]),{at:s,tally:At(e)}].map(l=>({at:l.at,...l.snapshotId===void 0?{}:{snapshotId:l.snapshotId},values:Ns(e.statuses,l.tally,t,a)})),r=Cs(e.statuses),o=(l,p)=>({at:l.at,value:p,...l.snapshotId===void 0?{}:{snapshotId:l.snapshotId}});return{due:Bs(e.milestones.find(l=>l.id===t)?.dueDate),combined:i.map(l=>o(l,l.values.reduce((p,h,$)=>p+h*(r[$]??0),0))),byStatus:e.statuses.slice(1).map((l,p)=>({status:l,points:i.map(h=>o(h,He(h.values.slice(0,p+1))))}))}},Ns=(e,t,a,s)=>e.map(n=>He(t.filter(i=>i.milestoneId===a&&i.statusId===n.id).map(i=>s==="points"?i.points:i.stories))),Cs=e=>e.map((t,a)=>He(e.slice(a,-1).map(_t))),Bs=e=>{if(e===void 0)return null;const[t=0,a=1,s=1]=e.split("-").map(Number);return new Date(t,a-1,s,23,59,59).getTime()},se=e=>{const t=new Date(e),a=s=>String(s).padStart(2,"0");return`${t.getFullYear()}-${a(t.getMonth()+1)}-${a(t.getDate())} ${a(t.getHours())}:${a(t.getMinutes())}`},He=e=>e.reduce((t,a)=>t+a,0),ce=["status","label","estimate","assignee"],ee="~none",oe=(e,t)=>{switch(t){case"status":return e.statuses.map(a=>a.id);case"label":return e.labels.length===0?[]:[...e.labels.map(a=>a.id),ee];case"estimate":return!W(e,"estimates")||e.estimates.length===0?[]:[...e.estimates.map(a=>a.id),ee];case"assignee":return!W(e,"assignees")||e.members.length===0?[]:[...e.members.map(a=>a.id),ee]}},we=(e,t)=>{const a=s=>{const n=t[s];if(n===void 0||n==="")return new Set;const i=new Set(n.split(","));return new Set(oe(e,s).filter(r=>i.has(r)))};return{status:a("status"),label:a("label"),estimate:a("estimate"),assignee:a("assignee")}},It=(e,t,a)=>{const s=oe(e,t).filter(n=>a.has(n));return s.length===0?null:s.join(",")},Ys=(e,t)=>{const a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a},Us=e=>ce.some(t=>e[t].size>0),Lt=(e,t)=>{const a=t.labelIds??[];return Se(e.status,t.statusId===void 0?[]:[t.statusId])&&Se(e.label,a.length===0?[ee]:a)&&Se(e.estimate,[t.estimateId??ee])&&Se(e.assignee,[t.assigneeId??ee])},Se=(e,t)=>e.size===0||t.some(a=>e.has(a)),M=(e,t,a)=>{const s=typeof a=="string"?a:"",n=typeof t=="string"?t:void 0;return n===void 0?e.toValue(s):e.fromTo(n,s)},ne=(e,t)=>typeof t=="string"?e.afterName(t):e.toFront,zs={SET_ACTIVITY_NAME:(e,t,a)=>({title:e.renameActivity,tone:"update",body:M(e,Q(a,t.target.id)?.name,x(y.SET_ACTIVITY_NAME,t).name??"")}),SET_ACTIVITY_ACTOR:(e,t,a)=>{const s=x(y.SET_ACTIVITY_ACTOR,t).actor.trim();return{title:e.changeActivityActor,tone:"update",body:s===""?e.removed(Q(a,t.target.id)?.actor??""):M(e,Q(a,t.target.id)?.actor,s)}},SET_STEP_NAME:(e,t,a)=>({title:e.renameStep,tone:"update",body:M(e,N(a,t.target.id)?.step.name,x(y.SET_STEP_NAME,t).name??"")}),REORDER_STEP:(e,t)=>({title:e.reorderStep,tone:"move",body:ne(e,x(y.REORDER_STEP,t).after)}),ADD_ACTIVITY:(e,t)=>({title:e.addActivity,tone:"create",body:e.added(String(x(y.ADD_ACTIVITY,t).name??""))}),ADD_STEP:(e,t)=>({title:e.addStep,tone:"create",body:e.added(String(x(y.ADD_STEP,t).name??""))}),DELETE_ACTIVITY:(e,t,a)=>({title:e.deleteActivity,tone:"delete",body:e.removed(Q(a,t.target.id)?.name??t.target.id)}),DELETE_STEP:(e,t,a)=>({title:e.deleteStep,tone:"delete",body:e.removed(N(a,t.target.id)?.step.name??t.target.id)}),SET_STORY_NAME:(e,t,a)=>({title:e.renameStory,tone:"update",body:M(e,S(a,t.target.id)?.name,x(y.SET_STORY_NAME,t).name??"")}),SET_STORY_DESCRIPTION:(e,t)=>({title:e.updateStoryDescription,tone:"update",body:e.toValue(String(x(y.SET_STORY_DESCRIPTION,t).description??"").slice(0,90))}),SET_STORY_MILESTONE:(e,t,a)=>{const s=x(y.SET_STORY_MILESTONE,t).milestoneId;return{title:e.changeMilestone,tone:"move",body:s==null?e.toUnassigned:e.toName(Y(a,String(s))?.name??String(s))}},MOVE_STORY:(e,t,a)=>({title:e.moveStory,tone:"move",body:e.toName(N(a,String(x(y.MOVE_STORY,t).stepId))?.step.name??String(x(y.MOVE_STORY,t).stepId??""))}),REORDER_STORY:(e,t)=>({title:e.reorderStory,tone:"move",body:ne(e,x(y.REORDER_STORY,t).after)}),ADD_STORY:(e,t)=>({title:e.addStory,tone:"create",body:e.added(String(x(y.ADD_STORY,t).name??""))}),DELETE_STORY:(e,t,a)=>({title:e.deleteStory,tone:"delete",body:e.removed(S(a,t.target.id)?.name??t.target.id)}),SET_MILESTONE_NAME:(e,t,a)=>({title:e.renameMilestone,tone:"update",body:M(e,Y(a,t.target.id)?.name,x(y.SET_MILESTONE_NAME,t).name??"")}),ADD_MILESTONE:(e,t)=>({title:e.addMilestone,tone:"create",body:e.added(String(x(y.ADD_MILESTONE,t).name??""))}),DELETE_MILESTONE:(e,t,a)=>({title:e.deleteMilestone,tone:"delete",body:e.removed(Y(a,t.target.id)?.name??t.target.id)}),REORDER_MILESTONE:(e,t)=>({title:e.reorderMilestone,tone:"move",body:ne(e,x(y.REORDER_MILESTONE,t).after)}),ADD_STORY_LINK:(e,t)=>{const{url:a,label:s}=x(y.ADD_STORY_LINK,t);return{title:e.addStoryLink,tone:"create",body:e.added(s??Ee(a).title)}},REMOVE_STORY_LINK:(e,t,a)=>{const{url:s}=x(y.REMOVE_STORY_LINK,t),n=S(a,t.target.id)?.links?.find(i=>i.url===s);return{title:e.removeStoryLink,tone:"delete",body:e.removed(n?.label??Ee(s).title)}},SET_STORY_STATUS:(e,t,a)=>{const s=x(y.SET_STORY_STATUS,t).statusId;return{title:e.changeStoryStatus,tone:"update",body:e.toName(C(a,s)?.name??s)}},ADD_STATUS:(e,t)=>({title:e.addStatus,tone:"create",body:e.added(x(y.ADD_STATUS,t).name)}),SET_STATUS_NAME:(e,t,a)=>({title:e.renameStatus,tone:"update",body:M(e,C(a,t.target.id)?.name,x(y.SET_STATUS_NAME,t).name)}),SET_STATUS_TONE:(e,t,a)=>{const s=C(a,t.target.id)?.tone,n=x(y.SET_STATUS_TONE,t).tone;return{title:e.changeStatusTone,tone:"update",body:M(e,s===void 0?void 0:e.toneName(s),e.toneName(n))}},SET_STATUS_ICON:(e,t,a)=>{const s=C(a,t.target.id)?.icon,n=x(y.SET_STATUS_ICON,t).icon;return{title:e.changeStatusIcon,tone:"update",body:M(e,s===void 0?void 0:e.iconName(s),e.iconName(n))}},DELETE_STATUS:(e,t,a)=>({title:e.deleteStatus,tone:"delete",body:e.removed(C(a,t.target.id)?.name??t.target.id)}),REORDER_STATUS:(e,t)=>({title:e.reorderStatus,tone:"move",body:ne(e,x(y.REORDER_STATUS,t).after)}),ADD_LABEL:(e,t)=>({title:e.addLabel,tone:"create",body:e.added(x(y.ADD_LABEL,t).name)}),SET_LABEL_NAME:(e,t,a)=>({title:e.renameLabel,tone:"update",body:M(e,G(a,t.target.id)?.name,x(y.SET_LABEL_NAME,t).name)}),SET_LABEL_TONE:(e,t,a)=>{const s=G(a,t.target.id)?.tone,n=x(y.SET_LABEL_TONE,t).tone;return{title:e.changeLabelTone,tone:"update",body:M(e,s===void 0?void 0:e.toneName(s),e.toneName(n))}},DELETE_LABEL:(e,t,a)=>({title:e.deleteLabel,tone:"delete",body:e.removed(G(a,t.target.id)?.name??t.target.id)}),REORDER_LABEL:(e,t)=>({title:e.reorderLabel,tone:"move",body:ne(e,x(y.REORDER_LABEL,t).after)}),ADD_STORY_LABEL:(e,t,a)=>{const s=x(y.ADD_STORY_LABEL,t).labelId;return{title:e.addStoryLabel,tone:"create",body:e.added(G(a,s)?.name??s)}},REMOVE_STORY_LABEL:(e,t,a)=>{const s=x(y.REMOVE_STORY_LABEL,t).labelId;return{title:e.removeStoryLabel,tone:"delete",body:e.removed(G(a,s)?.name??s)}},ADD_STORY_BLOCKER:(e,t,a)=>{const s=x(y.ADD_STORY_BLOCKER,t).blockerId;return{title:e.addStoryBlocker,tone:"create",body:e.added(S(a,s)?.name??s)}},REMOVE_STORY_BLOCKER:(e,t,a)=>{const s=x(y.REMOVE_STORY_BLOCKER,t).blockerId;return{title:e.removeStoryBlocker,tone:"delete",body:e.removed(S(a,s)?.name??s)}},SET_MILESTONE_DUE_DATE:(e,t,a)=>{const s=x(y.SET_MILESTONE_DUE_DATE,t).dueDate;return{title:e.changeMilestoneDueDate,tone:s===null?"delete":"update",body:s===null?e.noDueDate:M(e,Y(a,t.target.id)?.dueDate,s)}},SET_STATUS_WEIGHT:(e,t,a)=>{const s=C(a,t.target.id)?.weight,n=x(y.SET_STATUS_WEIGHT,t).weight;return{title:e.changeStatusWeight,tone:"update",body:M(e,s===void 0?void 0:String(s),String(n))}},ADD_MEMBER:(e,t)=>({title:e.addMember,tone:"create",body:e.added(x(y.ADD_MEMBER,t).name)}),SET_MEMBER_NAME:(e,t,a)=>({title:e.renameMember,tone:"update",body:M(e,U(a,t.target.id)?.name,x(y.SET_MEMBER_NAME,t).name)}),SET_MEMBER_TONE:(e,t,a)=>{const s=U(a,t.target.id)?.tone,n=x(y.SET_MEMBER_TONE,t).tone;return{title:e.changeMemberTone,tone:"update",body:M(e,s===void 0?void 0:e.toneName(s),e.toneName(n))}},DELETE_MEMBER:(e,t,a)=>({title:e.deleteMember,tone:"delete",body:e.removed(U(a,t.target.id)?.name??t.target.id)}),REORDER_MEMBER:(e,t)=>({title:e.reorderMember,tone:"move",body:ne(e,x(y.REORDER_MEMBER,t).after)}),SET_STORY_ASSIGNEE:(e,t,a)=>{const s=x(y.SET_STORY_ASSIGNEE,t).memberId;if(s===null){const n=U(a,S(a,t.target.id)?.assigneeId);return{title:e.setStoryAssignee,tone:"delete",body:e.removed(n?.name??e.noAssignee)}}return{title:e.setStoryAssignee,tone:"update",body:e.toValue(U(a,s)?.name??s)}},ADD_ESTIMATE:(e,t)=>{const{name:a,points:s}=x(y.ADD_ESTIMATE,t);return{title:e.addEstimate,tone:"create",body:e.added(e.estimateText(a,s))}},SET_ESTIMATE_NAME:(e,t,a)=>({title:e.renameEstimate,tone:"update",body:M(e,z(a,t.target.id)?.name,x(y.SET_ESTIMATE_NAME,t).name)}),SET_ESTIMATE_POINTS:(e,t,a)=>{const s=z(a,t.target.id)?.points,n=x(y.SET_ESTIMATE_POINTS,t).points;return{title:e.changeEstimatePoints,tone:"update",body:M(e,s===void 0?void 0:String(s),String(n))}},DELETE_ESTIMATE:(e,t,a)=>({title:e.deleteEstimate,tone:"delete",body:e.removed(z(a,t.target.id)?.name??t.target.id)}),REORDER_ESTIMATE:(e,t)=>({title:e.reorderEstimate,tone:"move",body:ne(e,x(y.REORDER_ESTIMATE,t).after)}),SET_STORY_ESTIMATE:(e,t,a)=>{const s=x(y.SET_STORY_ESTIMATE,t).estimateId;return s===null?{title:e.setStoryEstimate,tone:"delete",body:e.toValue(e.unestimated)}:{title:e.setStoryEstimate,tone:"update",body:e.toValue(z(a,s)?.name??s)}},RECORD_SNAPSHOT:(e,t)=>{const{at:a,tally:s}=x(y.RECORD_SNAPSHOT,t),n=s.reduce((i,r)=>i+r.stories,0);return{title:e.recordSnapshot,tone:"create",body:e.snapshotSummary(se(a),n)}},DELETE_SNAPSHOT:(e,t,a)=>{const s=le(a,t.target.id);return{title:e.deleteSnapshot,tone:"delete",body:e.removed(s?se(s.at):t.target.id)}},SET_FEATURE:(e,t)=>{const{feature:a,enabled:s}=x(y.SET_FEATURE,t);return{title:s?e.enableFeature:e.disableFeature,tone:s?"create":"delete",body:e.featureName(a)}}},Mt=(e,t,a,s)=>{let n;try{const i=zs[t.type];n=i?i(e,t,s??a):{title:t.type,tone:"meta"}}catch{n={title:t.type,tone:"meta"}}return{title:n.title,targetLabel:Rt(e,a,t.target),tone:n.tone,...n.body===void 0?{}:{summary:n.body}}},Dt=e=>`${e.type} ${T(e.target)} ${JSON.stringify(e.payload)}`,Rt=(e,t,a)=>{try{switch(a.type){case"activity":{const s=Q(t,a.id);return s?e.targetLabel(e.activityGroup,s.name):e.targetMissing(e.activityGroup,a.id)}case"step":{const s=N(t,a.id)?.step;return s?e.targetLabel(e.stepGroup,s.name):e.targetMissing(e.stepGroup,a.id)}case"story":{const s=S(t,a.id);return s?e.targetLabel(e.storyGroup,s.name):e.targetMissing(e.storyGroup,a.id)}case"milestone":{const s=Y(t,a.id);return s?e.targetLabel(e.milestoneGroup,s.name):e.targetMissing(e.milestoneGroup,a.id)}case"status":{const s=C(t,a.id);return s?e.targetLabel(e.statusGroup,s.name):e.targetMissing(e.statusGroup,a.id)}case"label":{const s=G(t,a.id);return s?e.targetLabel(e.labelGroup,s.name):e.targetMissing(e.labelGroup,a.id)}case"member":{const s=U(t,a.id);return s?e.targetLabel(e.memberGroup,s.name):e.targetMissing(e.memberGroup,a.id)}case"estimate":{const s=z(t,a.id);return s?e.targetLabel(e.estimateGroup,s.name):e.targetMissing(e.estimateGroup,a.id)}case"snapshot":{const s=le(t,a.id);return s?e.targetLabel(e.snapshotGroup,se(s.at)):e.targetMissing(e.snapshotGroup,a.id)}case"page":return e.targetLabel(e.mapGroup,Ke(t));default:return`${a.type} \xB7 ${a.id}`}}catch{return`${a.type} \xB7 ${a.id}`}},Ot=(e,t,a)=>{const s=[{value:"page:usm",label:e.wholeMap,group:e.mapGroup}];for(const n of t.activities){s.push({value:T({type:"activity",id:n.id}),label:n.name,group:e.activityGroup});for(const i of n.steps)s.push({value:T({type:"step",id:ke(n.id,i.id)}),label:`${n.name} \u203A ${i.name}`,group:e.stepGroup})}for(const n of t.milestones)s.push({value:T({type:"milestone",id:n.id}),label:n.name,group:e.milestoneGroup});for(const n of t.statuses)s.push({value:T({type:"status",id:n.id}),label:n.name,group:e.statusGroup});for(const n of t.labels)s.push({value:T({type:"label",id:n.id}),label:n.name,group:e.labelGroup});for(const n of t.members)s.push({value:T({type:"member",id:n.id}),label:n.name,group:e.memberGroup});for(const n of t.estimates)s.push({value:T({type:"estimate",id:n.id}),label:e.estimateText(n.name,n.points),group:e.estimateGroup});for(const n of t.snapshots)s.push({value:T({type:"snapshot",id:n.id}),label:se(n.at),group:e.snapshotGroup});for(const n of t.stories)s.push({value:T({type:"story",id:n.id}),label:n.name,group:e.storyGroup});return s},Nt=(e,t,a)=>{const s=t.stories.find(n=>n.id===a.story);if(s)return{value:T({type:"story",id:s.id}),label:s.name,group:e.storyGroup};for(const n of t.activities){const i=n.steps.find(r=>r.id===a.step);if(i)return{value:T({type:"step",id:ke(n.id,i.id)}),label:i.name,group:e.stepGroup}}return null},Ke=e=>e.title??"User Story Mapping",Ps=(e,t)=>{switch(t.type){case"story":return{tab:null,...Object.fromEntries(ce.map(a=>[a,null]))};case"step":case"activity":return{tab:null,view:null};case"milestone":return{tab:"milestones"};case"status":return{tab:"statuses"};case"label":return{tab:"labels"};case"member":return W(e,"assignees")?{tab:"members"}:null;case"estimate":case"snapshot":return W(e,"estimates")?{tab:"burndown"}:null;default:return null}},Ct=(e,t)=>{const a=N(e,t.step),s=a?.activity??Q(e,t.activity)??e.activities[0],n=a?.step??s?.steps.find(p=>p.id===t.step)??s?.steps[0],i=S(e,t.story),r={...t};s?r.activity=s.id:delete r.activity,n?r.step=n.id:delete r.step,i?r.story=i.id:delete r.story,r.view=t.view==="group"?"group":"activity";const o=we(e,t);for(const p of ce){const h=It(e,p,o[p]);h===null?delete r[p]:r[p]=h}const l=Tt(e,t);return l==="map"?delete r.tab:r.tab=l,Y(e,t.milestone)||delete r.milestone,Ve.some(p=>p===t.unit)||delete r.unit,r},Bt=(e,t)=>{switch(t.type){case"activity":return Q(e,t.id)!==void 0;case"step":return N(e,t.id)!==void 0;case"story":return S(e,t.id)!==void 0;case"milestone":return Y(e,t.id)!==void 0;case"status":return C(e,t.id)!==void 0;case"label":return G(e,t.id)!==void 0;case"member":return U(e,t.id)!==void 0;case"estimate":return z(e,t.id)!==void 0;case"snapshot":return le(e,t.id)!==void 0;case"page":return!0;default:return!1}},Yt=e=>{const t=pe(e);return{name:"usm",label:"User Story Mapping",parseBase:ut,emptyBase:ht,actions:y,apply:vt,canonicalState:ys,hasTarget:Bt,canonicalTarget:(a,s)=>{if(s.type!=="step")return s;const n=N(a,s.id);return n?{...s,id:ke(n.activity.id,n.step.id)}:s},describe:(a,s,n)=>Mt(t,a,s,n),serialize:Dt,resolveNavigation:Ct,navigationFor:Ps,commentTargets:(a,s)=>Ot(t,a),currentTarget:(a,s)=>Nt(t,a,s),title:Ke}},We=1440*60*1e3,Fs=48,Gs=8,Vs=(e,t,a,s)=>{const n={left:s.inset.left,top:s.inset.top,right:s.width-s.inset.right,bottom:s.height-s.inset.bottom},i=[...e.map(b=>b.at),a,...t===null?[]:[t]];let r=Math.min(...i),o=Math.max(...i);o-r<We&&(r-=We/2,o+=We/2);const l=Hs(Math.max(0,...e.map(b=>b.value))),p=l.at(-1)??1,h=b=>n.left+(b-r)/(o-r)*(n.right-n.left),$=b=>n.bottom-b/p*(n.bottom-n.top),w=e.map(b=>({x:h(b.at),y:$(b.value),at:b.at,value:b.value,...b.snapshotId===void 0?{}:{snapshotId:b.snapshotId}})),E=w[0],c=Ws(r,o,Math.floor((n.right-n.left)/Fs));return{size:s,plot:n,line:w.map(b=>`${ue(b.x)},${ue(b.y)}`).join(" "),dots:w,ideal:t===null||!E?null:{x1:E.x,y1:E.y,x2:h(t),y2:$(0)},nowX:h(a),dueX:t===null?null:h(t),yTicks:l.map(b=>({y:$(b),value:b})),valueTop:p,xUnit:c.unit,xTicks:c.ats.map(b=>({x:h(b),at:b})),domain:{start:r,end:o},idealSpan:t===null||!E?null:{at:E.at,value:E.value,due:t}}},Hs=e=>{const t=Ks(e/4),a=Math.max(1,Math.ceil(e/t));return Array.from({length:a+1},(s,n)=>n*t)},Ks=e=>{if(e<=1)return 1;const t=10**Math.floor(Math.log10(e));return([1,2,2.5,5,10].find(s=>Number.isInteger(s*t)&&s*t>=e)??10)*t},ue=e=>Math.round(e*100)/100,Ws=(e,t,a)=>{const s=Math.max(1,a),n=["day","week","biweek","month","quarter"];for(const i of n){const r=Ut(i,e,t,s);if(r!==null)return{unit:i,ats:r}}return{unit:"year",ats:Ut("year",e,t,1/0)??[]}},Ut=(e,t,a,s)=>{const n=[];for(let i=qs(e,t);i<=a;i=js(e,i)){if(n.length===s)return null;n.push(i)}return n},qs=(e,t)=>{const a=new Date(t),[s,n,i]=[a.getFullYear(),a.getMonth(),a.getDate()],r=(o,l)=>o.getTime()>=t?o.getTime():l().getTime();switch(e){case"day":return r(new Date(s,n,i),()=>new Date(s,n,i+1));case"week":case"biweek":{const o=r(new Date(s,n,i),()=>new Date(s,n,i+1)),l=new Date(o),p=(8-l.getDay())%7;return new Date(l.getFullYear(),l.getMonth(),l.getDate()+p).getTime()}case"month":return r(new Date(s,n,1),()=>new Date(s,n+1,1));case"quarter":{const o=n-n%3;return r(new Date(s,o,1),()=>new Date(s,o+3,1))}case"year":return r(new Date(s,0,1),()=>new Date(s+1,0,1))}},js=(e,t)=>{const a=new Date(t),[s,n,i]=[a.getFullYear(),a.getMonth(),a.getDate()],r={day:1,week:7,biweek:14},o={month:1,quarter:3,year:12};return e==="day"||e==="week"||e==="biweek"?new Date(s,n,i+r[e]).getTime():new Date(s,n+o[e],1).getTime()},zt=(e,t)=>{const{plot:a,domain:s,dots:n}=e,i=Math.min(a.right,Math.max(a.left,t)),r=n.reduce((w,E)=>w===null||Math.abs(E.x-i)<Math.abs(w.x-i)?E:w,null),o=r!==null&&Math.abs(r.x-i)<=Gs?r:null,l=o?.at??s.start+(i-a.left)/(a.right-a.left)*(s.end-s.start),p=o?.value??Xs(n,l),h=Zs(e,l),$=w=>w===null?null:ue(a.bottom-w/e.valueTop*(a.bottom-a.top));return{x:o?.x??i,at:l,actual:p,ideal:h,actualY:$(p),idealY:$(h),dot:o}},Xs=(e,t)=>{const a=e.findIndex(i=>i.at>=t),s=e[a];if(!s)return null;if(s.at===t)return s.value;const n=e[a-1];return n?ue(n.value+(s.value-n.value)*(t-n.at)/(s.at-n.at)):null},Zs=(e,t)=>{const a=e.idealSpan;return a===null||t<a.at||t>a.due?null:ue(a.value*(a.due-t)/(a.due-a.at))},A=e=>`--usm-tone: var(--dpk-${e==null||e==="gray"?"ink-faint":e})`,Pt={circle:R(Ja),lightbulb:R(as),flag:R(ts),play:R(ja),clock:R(Qa),eye:R(es),pause:R(qa),check:R(Ka),x:R(Za)},Js=R(Wa),Qs=e=>{if(e>=1)return Pt.check();const t=2*Math.PI*4.5;return d`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
2
- <circle cx="12" cy="12" r="10"></circle>
3
- ${e>0?I`<circle
4
- class="si-pie"
5
- cx="12"
6
- cy="12"
7
- r="4.5"
8
- stroke-dasharray=${`${e*t} ${t}`}
9
- transform="rotate(-90 12 12)"
10
- ></circle>`:m}
11
- </svg>`},ie=e=>{const t=e===void 0?Js():e.icon==="progress"?Qs(e.progress??1):Pt[e.icon]();return d`<span class="status-icon">${t}</span>`},Ft=(e,t)=>e.length===0?m:d`<span class="status-bar" role="img" aria-label=${t}>
12
- ${e.map(a=>d`<span
13
- class="status-bar-part"
14
- data-status=${a.id}
15
- title=${`${a.name}: ${a.count}`}
16
- style=${`${A(a.tone)};flex-grow:${a.count}`}
17
- ></span>`)}
18
- </span>`,Gt=Z`
19
- .status-icon {
20
- display: block;
21
- flex: none;
22
- width: 16px;
23
- height: 16px;
24
- color: var(--usm-tone);
25
- }
26
- .status-icon svg {
27
- display: block;
28
- width: 100%;
29
- height: 100%;
30
- }
31
- .status-icon .si-pie {
32
- stroke-width: 9;
33
- }
34
- .status-bar {
35
- display: flex;
36
- gap: 2px;
37
- height: 6px;
38
- min-width: 0;
39
- }
40
- .status-bar-part {
41
- min-width: 4px;
42
- border-radius: 3px;
43
- background: var(--usm-tone);
44
- }
45
- .status-bar-part[data-status=''] {
46
- background: color-mix(in srgb, var(--dpk-ink-faint) 30%, transparent);
47
- }
48
- `,en=Z`
49
- :host {
50
- position: relative;
51
- display: block;
52
- }
53
- .bd-plot {
54
- position: relative;
55
- border-radius: var(--dpk-radius-sm);
56
- outline: none;
57
- }
58
- .bd-plot:focus-visible {
59
- box-shadow: var(--dpk-focus);
60
- }
61
- .bd-svg {
62
- display: block;
63
- width: 100%;
64
- height: auto;
65
- overflow: visible;
66
- touch-action: pan-y;
67
- }
68
- .bd-grid-line {
69
- stroke: var(--dpk-rule);
70
- stroke-width: 1;
71
- }
72
- .bd-grid-line[data-axis='x'] {
73
- stroke-dasharray: 1 3;
74
- }
75
- .bd-tick,
76
- .bd-marker {
77
- fill: var(--dpk-ink-faint);
78
- font-family: var(--dpk-mono);
79
- font-size: 10px;
80
- }
81
- .bd-marker {
82
- font-weight: 650;
83
- }
84
- .bd-marker[data-marker='due'] {
85
- fill: var(--dpk-amber);
86
- }
87
- .bd-marker[data-marker='today'] {
88
- fill: var(--dpk-blue);
89
- }
90
- .bd-due {
91
- stroke: var(--dpk-amber);
92
- stroke-width: 1.5;
93
- }
94
- .bd-now {
95
- stroke: var(--dpk-blue);
96
- stroke-width: 1;
97
- stroke-dasharray: 2 3;
98
- }
99
- .bd-ideal {
100
- stroke: var(--dpk-ink-faint);
101
- stroke-width: 1.25;
102
- stroke-dasharray: 5 4;
103
- }
104
- .bd-line {
105
- fill: none;
106
- stroke: var(--usm-tone);
107
- stroke-width: 2.25;
108
- stroke-linejoin: round;
109
- stroke-linecap: round;
110
- }
111
- .bd-dot {
112
- fill: var(--dpk-paper-raised);
113
- stroke: var(--usm-tone);
114
- stroke-width: 2;
115
- }
116
- .bd-dot[data-now] {
117
- fill: var(--usm-tone);
118
- }
119
- .bd-cross {
120
- stroke: var(--dpk-ink-soft);
121
- stroke-width: 1;
122
- pointer-events: none;
123
- }
124
- .bd-mark {
125
- stroke: var(--dpk-paper-raised);
126
- stroke-width: 2;
127
- pointer-events: none;
128
- }
129
- .bd-mark[data-line='actual'] {
130
- fill: var(--usm-tone);
131
- }
132
- .bd-mark[data-line='ideal'] {
133
- fill: var(--dpk-ink-faint);
134
- }
135
- .bd-tip {
136
- position: absolute;
137
- z-index: 1;
138
- display: grid;
139
- gap: 3px;
140
- min-width: 116px;
141
- padding: 7px 10px;
142
- border: 1px solid var(--dpk-rule-strong);
143
- border-radius: var(--dpk-radius-sm);
144
- background: var(--dpk-paper-raised);
145
- box-shadow: var(--dpk-shadow-sm);
146
- font-size: 11.5px;
147
- pointer-events: none;
148
- white-space: nowrap;
149
- transform: translateX(10px);
150
- }
151
- .bd-tip[data-side='left'] {
152
- transform: translateX(calc(-100% - 10px));
153
- }
154
- .bd-tip-at {
155
- color: var(--dpk-ink-soft);
156
- font-family: var(--dpk-mono);
157
- font-size: 10.5px;
158
- }
159
- .bd-tip-row {
160
- display: flex;
161
- align-items: center;
162
- gap: 6px;
163
- color: var(--dpk-ink-soft);
164
- }
165
- .bd-tip-row b {
166
- margin-left: auto;
167
- padding-left: 12px;
168
- color: var(--dpk-ink);
169
- font-family: var(--dpk-mono);
170
- font-variant-numeric: tabular-nums;
171
- }
172
- .bd-swatch {
173
- flex: none;
174
- width: 12px;
175
- height: 0;
176
- border-top: 2.25px solid var(--usm-tone);
177
- }
178
- .bd-swatch[data-line='ideal'] {
179
- border-top: 1.5px dashed var(--dpk-ink-faint);
180
- }
181
- `;class tn extends et{static{this.styles=[en]}static{this.properties={points:{attribute:!1},due:{attribute:!1},now:{attribute:!1},size:{attribute:!1},tone:{attribute:!1},label:{attribute:!1},readout:{state:!0}}}#s=new tt(this);constructor(){super(),this.points=[],this.due=null,this.now=0,this.size={width:320,height:160,inset:{top:12,right:12,bottom:24,left:32}},this.tone="accent",this.label="",this.readout=null}render(){const t=pe(this.#s.locale),a=Vs(this.points,this.due,this.now,this.size),{size:s}=a,n=this.points.at(-1)?.value??0;return d`<div
182
- class="bd-plot"
183
- tabindex="0"
184
- role="img"
185
- aria-label=${t.chartAria(this.label,n)}
186
- style=${A(this.tone)}
187
- @pointermove=${i=>this.#e(a,i)}
188
- @pointerleave=${()=>this.readout=null}
189
- @focus=${()=>this.#t(a,a.dots.length-1)}
190
- @blur=${()=>this.readout=null}
191
- @keydown=${i=>this.#a(a,i)}
192
- >
193
- <svg class="bd-svg" viewBox=${`0 0 ${s.width} ${s.height}`} aria-hidden="true">
194
- ${an(t,a)} ${sn(a)} ${this.readout?nn(a,this.readout):m}
195
- </svg>
196
- ${this.readout?rn(t,a,this.readout):m}
197
- </div>`}#e(t,a){const s=this.renderRoot.querySelector("svg")?.getBoundingClientRect();!s||s.width===0||(this.readout=zt(t,(a.clientX-s.left)/s.width*t.size.width))}#t(t,a){const s=t.dots[a];this.readout=s?zt(t,s.x):null}#a(t,a){const s=t.dots.length-1,n=t.dots.findIndex(r=>r===this.readout?.dot),i=(()=>{switch(a.key){case"ArrowLeft":return Math.max(0,(n===-1?s:n)-1);case"ArrowRight":return Math.min(s,(n===-1?s:n)+1);case"Home":return 0;case"End":return s;default:return null}})();i!==null&&(a.preventDefault(),this.#t(t,i))}}const an=(e,t)=>{const{plot:a,size:s}=t,n=s.height-8;return I`
198
- ${t.yTicks.map(i=>I`<line class="bd-grid-line" x1=${a.left} x2=${a.right} y1=${i.y} y2=${i.y}></line>
199
- <text class="bd-tick" x=${a.left-6} y=${i.y} text-anchor="end" dominant-baseline="middle">${i.value}</text>`)}
200
- ${t.xTicks.map(i=>I`<line class="bd-grid-line" data-axis="x" x1=${i.x} x2=${i.x} y1=${a.top} y2=${a.bottom}></line>
201
- <text class="bd-tick" data-axis="x" x=${i.x} y=${n} text-anchor="middle">${e.axisDate(i.at,t.xUnit)}</text>`)}
202
- ${t.dueX===null||t.idealSpan===null?m:I`<line class="bd-due" x1=${t.dueX} x2=${t.dueX} y1=${a.top} y2=${a.bottom}></line>
203
- <text class="bd-marker" data-marker="due" x=${t.dueX-4} y=${a.top+10} text-anchor="end">${`${e.chartDue} ${e.axisDate(t.idealSpan.due,"day")}`}</text>`}
204
- <line class="bd-now" x1=${t.nowX} x2=${t.nowX} y1=${a.top} y2=${a.bottom}></line>
205
- <text class="bd-marker" data-marker="today" x=${t.nowX+4} y=${a.top+10} text-anchor="start">${e.chartToday}</text>
206
- `},sn=e=>I`
207
- ${e.ideal?I`<line class="bd-ideal" x1=${e.ideal.x1} y1=${e.ideal.y1} x2=${e.ideal.x2} y2=${e.ideal.y2}></line>`:m}
208
- <polyline class="bd-line" points=${e.line}></polyline>
209
- ${e.dots.map(t=>I`<circle class="bd-dot" data-now=${t.snapshotId===void 0?"true":m} cx=${t.x} cy=${t.y} r="3.5"></circle>`)}
210
- `,nn=(e,t)=>I`
211
- <line class="bd-cross" x1=${t.x} x2=${t.x} y1=${e.plot.top} y2=${e.plot.bottom}></line>
212
- ${t.idealY===null?m:I`<circle class="bd-mark" data-line="ideal" cx=${t.x} cy=${t.idealY} r="3.5"></circle>`}
213
- ${t.actualY===null?m:I`<circle class="bd-mark" data-line="actual" cx=${t.x} cy=${t.actualY} r="4.5"></circle>`}
214
- `,rn=(e,t,a)=>{const{size:s,plot:n}=t,i=a.x>s.width*.6?"left":"right",r=a.dot?a.dot.snapshotId===void 0?`${e.chartNow} \xB7 ${se(a.dot.at)}`:se(a.dot.at):e.axisDate(a.at,"day");return d`<div
215
- class="bd-tip"
216
- data-testid="usm-chart-readout"
217
- data-side=${i}
218
- style=${`left: ${a.x/s.width*100}%; top: calc(${n.top/s.height*100}% + 20px)`}
219
- >
220
- <span class="bd-tip-at">${r}</span>
221
- ${a.actual===null?m:d`<span class="bd-tip-row" data-line="actual"
222
- ><span class="bd-swatch" data-line="actual"></span>${e.chartActual}<b>${a.actual}</b></span
223
- >`}
224
- ${a.ideal===null?m:d`<span class="bd-tip-row" data-line="ideal"
225
- ><span class="bd-swatch" data-line="ideal"></span>${e.chartIdeal}<b>${a.ideal}</b></span
226
- >`}
227
- </div>`},on=()=>{customElements.get("dpk-internal-usm-burndown-chart")||customElements.define("dpk-internal-usm-burndown-chart",tn)},dn=new Intl.Segmenter(void 0,{granularity:"grapheme"}),qe=e=>{const[t]=dn.segment(e.trim());return t?t.segment.toUpperCase():"?"},ln={github:I`<path fill-rule="evenodd" d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"></path>`,gitlab:I`<path d="M8 15 1.2 9.9a.7.7 0 0 1-.25-.78L2.7 2.6a.35.35 0 0 1 .66 0L5.1 7.6h5.8l1.74-5a.35.35 0 0 1 .66 0l1.75 6.52a.7.7 0 0 1-.25.78z"></path>`,jira:I`<path d="M14.6 7.4 8.6 1.4 8 .8 3.5 5.3 1.4 7.4a.85.85 0 0 0 0 1.2l4.1 4.1L8 15.2l4.5-4.5.07-.07 2.03-2.03a.85.85 0 0 0 0-1.2zM8 9.9 5.9 8 8 5.9 10.1 8z"></path>`,linear:I`<path d="M1.2 9.4a6.9 6.9 0 0 0 5.4 5.4zM1 7.3l7.7 7.7a7 7 0 0 0 1.9-.5L1.5 5.4a7 7 0 0 0-.5 1.9zm1.2-3.1 9.6 9.6a7 7 0 0 0 1.2-1.1L3.3 3a7 7 0 0 0-1.1 1.2zM4.3 2.3a7 7 0 1 1 9.4 9.4z"></path>`,figma:I`<path d="M5.5 1h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm2.3 0h2.3a2.3 2.3 0 1 1 0 4.6H7.8zm2.3 4.6a2.3 2.3 0 1 1 0 4.6 2.3 2.3 0 0 1 0-4.6zM5.5 5.6h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm0 4.6h2.3v2.3a2.3 2.3 0 1 1-2.3-2.3z"></path>`,notion:I`<path fill-rule="evenodd" d="M2.5 1.6 11 1c1 0 1.3.1 2 .6l2.1 1.5c.4.3.5.4.5.7v9.6c0 .7-.3 1.1-1.1 1.2l-9.4.6c-.6 0-.9-.1-1.2-.5L1.9 12c-.3-.5-.5-.8-.5-1.3V2.8c0-.6.3-1.1 1.1-1.2zM5 4.4v8.9l8.6-.5V4zm1 1.2 2.9-.2 3 4.7V5.6l-.8-.1v-.5l2-.1v.6l-.6.1v6.1l-.9.1-3.5-5.4v4.9l.8.2v.5l-2.3.1v-.5l.6-.2V6.4l-.8-.1z"></path>`},Vt=e=>e==="web"?Ia():d`<svg class="link-mark" viewBox="0 0 16 16" aria-hidden="true">${ln[e]}</svg>`,Ht=Z`
228
- .link-mark {
229
- fill: currentColor;
230
- }
231
- .link-chip {
232
- display: inline-flex;
233
- align-items: center;
234
- gap: 5px;
235
- min-width: 0;
236
- max-width: 100%;
237
- padding: 1px 8px 1px 6px;
238
- border: 1px solid var(--dpk-rule-strong);
239
- border-radius: 999px;
240
- background: var(--dpk-paper-raised);
241
- color: var(--dpk-ink-soft);
242
- font-family: var(--dpk-mono);
243
- font-size: 10.5px;
244
- font-weight: 600;
245
- line-height: 18px;
246
- text-decoration: none;
247
- transition:
248
- color 140ms var(--dpk-ease),
249
- border-color 140ms var(--dpk-ease);
250
- }
251
- .link-chip:hover {
252
- border-color: var(--dpk-ink-faint);
253
- color: var(--dpk-ink);
254
- }
255
- .link-chip:focus-visible {
256
- outline: none;
257
- box-shadow: var(--dpk-focus);
258
- }
259
- .link-chip svg {
260
- flex: none;
261
- width: 12px;
262
- height: 12px;
263
- }
264
- .link-chip span {
265
- overflow: hidden;
266
- text-overflow: ellipsis;
267
- white-space: nowrap;
268
- }
269
- `,me=e=>{const t=e.statuses.length-1;return e.statuses.map((a,s)=>({id:a.id,name:a.name,tone:a.tone,icon:a.icon,progress:t<=0?1:s/t}))},Kt=(e,t)=>e.find(a=>a.id===t.statusId),Wt=(e,t)=>me(e).map(a=>({...a,count:t.filter(s=>s.statusId===a.id).length})).filter(a=>a.count>0),pn=R(ss),cn=R(Ga),un=3,mn=Z`
270
- /*
271
- * The card wears its status's color the way a modern board does: a flat,
272
- * barely tinted face and a hairline edge in that hue, with a neutral, soft
273
- * elevation. Tints are mixed in OKLab so every hue stays clean instead of
274
- * turning muddy.
275
- */
276
- :host {
277
- --card-tone: var(--usm-tone, var(--dpk-ink-faint));
278
- position: relative;
279
- display: grid;
280
- gap: 8px;
281
- padding: 12px 13px;
282
- border: 1px solid color-mix(in oklab, var(--card-tone) 24%, var(--dpk-rule));
283
- border-radius: 12px;
284
- background: color-mix(in oklab, var(--card-tone) 6%, var(--dpk-paper-raised));
285
- box-shadow:
286
- 0 1px 1px var(--dpk-shade-1),
287
- 0 2px 6px -3px var(--dpk-shade-2);
288
- cursor: pointer;
289
- transition:
290
- box-shadow 180ms var(--dpk-ease),
291
- transform 180ms var(--dpk-ease),
292
- border-color 180ms var(--dpk-ease);
293
- }
294
-
295
- :host(:hover) {
296
- border-color: color-mix(in oklab, var(--card-tone) 45%, var(--dpk-rule));
297
- box-shadow:
298
- 0 1px 2px var(--dpk-shade-1),
299
- 0 8px 20px -10px var(--dpk-shade-3);
300
- transform: translateY(-1px);
301
- }
302
-
303
- :host([focused]) {
304
- border-color: var(--dpk-blue);
305
- box-shadow:
306
- 0 0 0 3px color-mix(in oklab, var(--dpk-blue) 20%, transparent),
307
- 0 8px 20px -10px var(--dpk-shade-3);
308
- }
309
-
310
- /* The card is the button that opens its story; the keyboard ring is the focused look. */
311
- :host(:focus-visible) {
312
- outline: none;
313
- border-color: var(--dpk-blue);
314
- box-shadow: var(--dpk-focus);
315
- }
316
-
317
- :host([dragging]) {
318
- opacity: 0.45;
319
- transform: none;
320
- }
321
-
322
- .card-head {
323
- display: flex;
324
- align-items: flex-start;
325
- gap: 8px;
326
- min-width: 0;
327
- }
328
-
329
- /* The estimate and the assignee sit at the end of the head, small, like a ticket's size and owner. */
330
- .card-meta {
331
- flex: none;
332
- display: inline-flex;
333
- align-items: center;
334
- gap: 4px;
335
- margin-left: auto;
336
- }
337
- .estimate-chip {
338
- padding: 0 6px;
339
- border: 1px solid color-mix(in oklab, var(--card-tone) 30%, var(--dpk-rule-strong));
340
- border-radius: 5px;
341
- background: var(--dpk-paper-raised);
342
- color: var(--dpk-ink-soft);
343
- font-family: var(--dpk-mono);
344
- font-size: 10.5px;
345
- font-weight: 650;
346
- line-height: 17px;
347
- font-variant-numeric: tabular-nums;
348
- white-space: nowrap;
349
- }
350
-
351
- .assignee-avatar {
352
- display: inline-grid;
353
- place-items: center;
354
- width: 18px;
355
- height: 18px;
356
- border-radius: 50%;
357
- background: var(--usm-tone);
358
- color: var(--dpk-paper-raised);
359
- font-size: 10px;
360
- font-weight: 700;
361
- line-height: 1;
362
- }
363
-
364
- .card-status {
365
- flex: none;
366
- display: inline-flex;
367
- margin-top: 1.5px;
368
- }
369
-
370
- .card-name {
371
- flex: 1 1 auto;
372
- min-width: 0;
373
- color: var(--dpk-ink);
374
- font-size: 13px;
375
- font-weight: 600;
376
- letter-spacing: -0.01em;
377
- line-height: 1.45;
378
- overflow-wrap: anywhere;
379
- }
380
-
381
- /* The description, rendered from Markdown and cut after three lines. */
382
- .card-text {
383
- display: -webkit-box;
384
- -webkit-box-orient: vertical;
385
- -webkit-line-clamp: 3;
386
- overflow: hidden;
387
- color: var(--dpk-ink-soft);
388
- font-size: 12px;
389
- line-height: 1.55;
390
- overflow-wrap: anywhere;
391
- }
392
-
393
- .card-text > * {
394
- margin: 0;
395
- }
396
-
397
- /* A heading in the description reads as a line of the preview, not a title over the card. */
398
- .card-text :is(h1, h2, h3, h4, h5, h6) {
399
- font-size: inherit;
400
- font-weight: 650;
401
- }
402
-
403
- .card-text ul,
404
- .card-text ol {
405
- padding-left: 1.2em;
406
- }
407
-
408
- .card-text code {
409
- padding: 0 3px;
410
- border-radius: 4px;
411
- background: var(--dpk-paper-inset);
412
- font-family: var(--dpk-mono);
413
- font-size: 0.92em;
414
- }
415
-
416
- .card-text a {
417
- color: var(--dpk-blue);
418
- }
419
-
420
- /* Where the story sits and what was said about it. */
421
- .card-foot {
422
- display: flex;
423
- align-items: center;
424
- gap: 6px;
425
- min-width: 0;
426
- }
427
-
428
- .card-chip {
429
- display: inline-flex;
430
- align-items: center;
431
- gap: 4px;
432
- min-width: 0;
433
- padding: 1px 7px;
434
- border-radius: 6px;
435
- background: color-mix(in oklab, var(--card-tone) 10%, var(--dpk-paper-sunken));
436
- color: var(--dpk-ink-soft);
437
- font-size: 10.5px;
438
- font-weight: 600;
439
- line-height: 18px;
440
- }
441
-
442
- .card-chip span {
443
- overflow: hidden;
444
- text-overflow: ellipsis;
445
- white-space: nowrap;
446
- }
447
-
448
- .card-chip[data-kind='comments'] {
449
- margin-left: auto;
450
- background: transparent;
451
- color: var(--dpk-ink-faint);
452
- font-family: var(--dpk-mono);
453
- font-variant-numeric: tabular-nums;
454
- }
455
-
456
- .card-chip svg {
457
- flex: none;
458
- width: 12px;
459
- height: 12px;
460
- }
461
-
462
- /* The labels the story carries, each in its own color. */
463
- .card-labels {
464
- display: flex;
465
- flex-wrap: wrap;
466
- gap: 4px;
467
- min-width: 0;
468
- }
469
-
470
- .label-chip {
471
- display: inline-flex;
472
- align-items: center;
473
- gap: 5px;
474
- min-width: 0;
475
- max-width: 100%;
476
- padding: 0 7px;
477
- border: 1px solid color-mix(in oklab, var(--usm-tone) 35%, transparent);
478
- border-radius: 999px;
479
- background: color-mix(in oklab, var(--usm-tone) 12%, var(--dpk-paper-raised));
480
- color: var(--dpk-ink);
481
- font-size: 10.5px;
482
- font-weight: 600;
483
- line-height: 17px;
484
- overflow: hidden;
485
- text-overflow: ellipsis;
486
- white-space: nowrap;
487
- }
488
-
489
- .label-chip::before {
490
- content: '';
491
- flex: none;
492
- width: 6px;
493
- height: 6px;
494
- border-radius: 50%;
495
- background: var(--usm-tone);
496
- }
497
-
498
- /*
499
- * Where the story sits among the others. A story that holds others up is
500
- * work to pull forward (a spike), so its chip is the loud one; one still
501
- * waiting reads quieter and goes away once its blockers are done.
502
- */
503
- .card-deps {
504
- display: flex;
505
- flex-wrap: wrap;
506
- gap: 4px;
507
- }
508
-
509
- .dep-chip {
510
- display: inline-flex;
511
- align-items: center;
512
- gap: 4px;
513
- padding: 0 7px;
514
- border-radius: 6px;
515
- font-size: 10.5px;
516
- font-weight: 650;
517
- line-height: 18px;
518
- white-space: nowrap;
519
- }
520
-
521
- .dep-chip svg {
522
- flex: none;
523
- width: 12px;
524
- height: 12px;
525
- }
526
-
527
- .dep-chip[data-kind='blocks'] {
528
- background: var(--dpk-amber);
529
- color: var(--dpk-paper-raised);
530
- }
531
-
532
- .dep-chip[data-kind='waits'] {
533
- border: 1px dashed color-mix(in oklab, var(--dpk-ink-faint) 60%, transparent);
534
- color: var(--dpk-ink-soft);
535
- }
536
-
537
- /* With a story open, the cards it waits on and the cards waiting on it stand out. */
538
- :host([data-relation]) {
539
- outline: 2px dashed var(--relation-tone);
540
- outline-offset: 2px;
541
- }
542
-
543
- :host([data-relation='blocker']) {
544
- --relation-tone: var(--dpk-amber);
545
- }
546
-
547
- :host([data-relation='dependent']) {
548
- --relation-tone: var(--dpk-violet);
549
- }
550
-
551
- .card-links {
552
- display: flex;
553
- flex-wrap: wrap;
554
- gap: 4px;
555
- min-width: 0;
556
- }
557
-
558
- .card-links .link-chip {
559
- border-color: color-mix(in oklab, var(--card-tone) 16%, var(--dpk-rule));
560
- background: var(--dpk-paper-raised);
561
- }
562
- `;class hn extends et{static{this.styles=[La,Gt,Ht,mn]}static{this.properties={story:{attribute:!1},stepName:{attribute:!1},statuses:{attribute:!1},labels:{attribute:!1},notes:{attribute:!1},estimate:{attribute:!1},assignee:{attribute:!1},blocks:{type:Number},waits:{type:Number},focused:{type:Boolean,reflect:!0},dragging:{type:Boolean,reflect:!0}}}#s=new tt(this);constructor(){super(),this.story=null,this.stepName="",this.statuses=[],this.labels=[],this.notes=[],this.estimate=null,this.assignee=null,this.blocks=0,this.waits=0,this.focused=!1,this.dragging=!1}render(){const t=this.story;if(!t)return m;const a=pe(this.#s.locale),s=this.stepName!==""||this.notes.length>0;return d`
563
- <div class="card-head">
564
- ${this.statuses.length===0?m:this.#e(a,t)}
565
- <div class="card-name"><span>${t.name}</span></div>
566
- ${this.estimate||this.assignee?this.#t(a):m}
567
- </div>
568
- ${t.description?d`<div class="card-text" @click=${gn}>${Ma(Da(t.description))}</div>`:m}
569
- ${this.blocks>0||this.waits>0?this.#a(a):m}
570
- ${this.labels.length>0?bn(this.labels):m}
571
- ${t.links&&t.links.length>0?this.#n(t.links):m}
572
- ${s?d`<div class="card-foot">
573
- ${this.stepName===""?m:d`<span class="card-chip" data-kind="step"><span>${this.stepName}</span></span>`}
574
- ${this.notes.length>0?d`<span
575
- class="card-chip"
576
- data-kind="comments"
577
- aria-label=${a.commentCountAria(this.notes.length)}
578
- >
579
- ${Ra()}<span>${this.notes.length}</span>
580
- </span>`:m}
581
- </div>`:m}
582
- `}#e(t,a){const s=Kt(this.statuses,a);if(!s)return m;const n=s.name;return d`<span class="card-status" role="img" aria-label=${t.storyStatusAria(n)} title=${n}>
583
- ${ie(s)}
584
- </span>`}#t(t){const{estimate:a,assignee:s}=this;return d`<span class="card-meta">
585
- ${a?d`<span
586
- class="estimate-chip"
587
- title=${t.estimateChipTitle(t.estimateText(a.name,a.points))}
588
- >${a.name}</span
589
- >`:m}
590
- ${s?d`<span
591
- class="assignee-avatar"
592
- style=${A(s.tone)}
593
- title=${t.assigneeChipTitle(s.name)}
594
- >${qe(s.name)}</span
595
- >`:m}
596
- </span>`}#a(t){return d`<div class="card-deps">
597
- ${this.blocks>0?d`<span class="dep-chip" data-kind="blocks" title=${t.blocksChipTitle(this.blocks)}
598
- >${pn()}${t.blocksChip(this.blocks)}</span
599
- >`:m}
600
- ${this.waits>0?d`<span class="dep-chip" data-kind="waits" title=${t.waitsChipTitle(this.waits)}
601
- >${cn()}${t.waitsChip(this.waits)}</span
602
- >`:m}
603
- </div>`}#n(t){const a=t.slice(0,un);return d`<div class="card-links">
604
- ${a.map(s=>{const n=Ee(s.url);return d`<a
605
- class="link-chip"
606
- data-kind=${n.kind}
607
- href=${s.url}
608
- target="_blank"
609
- rel="noopener noreferrer"
610
- title=${s.label??n.title}
611
- draggable="false"
612
- tabindex="-1"
613
- @click=${i=>i.stopPropagation()}
614
- >${Vt(n.kind)}<span>${s.label??n.text}</span></a
615
- >`})}
616
- ${t.length>a.length?d`<span class="link-chip">+${t.length-a.length}</span>`:m}
617
- </div>`}}const bn=e=>d`<div class="card-labels">
618
- ${e.map(t=>d`<span class="label-chip" data-label=${t.id} style=${A(t.tone)}>${t.name}</span>`)}
619
- </div>`,gn=e=>{e.target instanceof Element&&e.target.closest("a")&&e.stopPropagation()},fn=()=>{customElements.get("dpk-internal-usm-story-card")||customElements.define("dpk-internal-usm-story-card",hn)},vn=(e,t,a)=>{const s=e.at(-1)??null;if(t===null||a==="end")return s;const n=e.indexOf(t);return n<0?s:a==="after"?t:n===0?null:e.at(n-1)??null},qt=(e,t,a,s,n)=>{const i=xe(e,t.stepId,t.milestoneId).map(r=>r.id);return{type:"MOVE_STORY",target:{type:"story",id:a},payload:{activityId:t.activityId,stepId:t.stepId,milestoneId:t.milestoneId??null,after:Re(i,a,s,n)}}},jt=(e,t,a,s,n,i)=>{const r=S(e,s);if(!r||r.activityId!==t)return null;const o=bt(e,t,a).map(l=>l.id);return{type:"MOVE_STORY",target:{type:"story",id:s},payload:{activityId:t,stepId:r.stepId,milestoneId:a??null,after:Re(o,s,n,i)}}},Xt=(e,t,a,s,n)=>{const i=xe(e,s,n).filter(r=>r.id!==t);return{type:"MOVE_STORY",target:{type:"story",id:t},payload:{activityId:a,stepId:s,milestoneId:n??null,after:i.at(-1)?.id??null}}},Zt=(e,t,a,s)=>e.includes(t)?{type:"REORDER_MILESTONE",target:{type:"milestone",id:t},payload:{after:Re(e,t,a,s)}}:null,yn=e=>{const t=e.stories.length;return{rows:e.labels.map((s,n)=>{const i=e.stories.filter(r=>r.labelIds?.includes(s.id)).length;return{id:s.id,name:s.name,tone:s.tone,previousId:e.labels[n-1]?.id??null,nextId:e.labels[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},kn=e=>{const t=e.stories.length;return{rows:e.members.map((s,n)=>{const i=e.stories.filter(r=>r.assigneeId===s.id).length;return{id:s.id,name:s.name,tone:s.tone,previousId:e.members[n-1]?.id??null,nextId:e.members[n+1]?.id??null,storyCount:i,share:t===0?0:i/t}})}},xn=e=>{const t=e.stories.length,a=Ue(e);return e.milestones.map((s,n)=>{const i=e.stories.filter(o=>o.milestoneId===s.id),r=new Set(i.map(o=>o.stepId));return{id:s.id,ordinal:n+1,name:s.name,timeframe:s.timeframe?.trim()??"",description:s.description?.trim()??"",storyCount:i.length,share:t===0?0:i.length/t,coverage:{covered:a.filter(({step:o})=>r.has(o.id)).length,total:a.length},progress:Wt(e,i)}})},Jt=(e,t)=>{const a=j("new-activity",q(t.state));if(!t.dispatch({type:"ADD_ACTIVITY",target:{type:"page",id:"usm"},payload:{id:a,name:e.newActivityName}}).ok)return;const n=j("new-step",[...q(t.state),a]);t.dispatch({type:"ADD_STEP",target:{type:"activity",id:a},payload:{id:n,name:e.newStepName}}),t.navigate({activity:a,step:null,story:null})},En=(e,t,a)=>{const s=j("new-step",q(t.state));t.dispatch({type:"ADD_STEP",target:{type:"activity",id:a},payload:{id:s,name:e.newStepName}})},Qt=(e,t)=>{const a=j("new-milestone",q(t.state));t.dispatch({type:"ADD_MILESTONE",target:{type:"page",id:"usm"},payload:{id:a,name:e.newMilestoneName}})},ea=(e,t,a,s,n)=>{const i=j("new-story",q(t.state));t.dispatch({type:"ADD_STORY",target:{type:"step",id:s},payload:{id:i,name:e.newStoryName,activityId:a,...n===void 0?{}:{milestoneId:n}}}).ok&&t.navigate({activity:a,step:s,story:i})},wn=(e,t)=>{const a=j("new-status",q(t.state));t.dispatch({type:"ADD_STATUS",target:{type:"page",id:"usm"},payload:{id:a,name:e.newStatusName,tone:Ye(t.state.statuses.length)}})},Sn=(e,t)=>{const a=j("new-label",q(t.state));t.dispatch({type:"ADD_LABEL",target:{type:"page",id:"usm"},payload:{id:a,name:e.newLabelName,tone:ve(t.state.labels.length)}})},$n=(e,t)=>{const a=j("new-member",q(t.state));t.dispatch({type:"ADD_MEMBER",target:{type:"page",id:"usm"},payload:{id:a,name:e.newMemberName,tone:ve(t.state.members.length)}})},Tn=(e,t)=>{const a=j("new-estimate",q(t.state)),s=Math.max(0,...t.state.estimates.map(n=>n.points))+1;t.dispatch({type:"ADD_ESTIMATE",target:{type:"page",id:"usm"},payload:{id:a,name:e.newEstimateName,points:s}})},_n=(e,t)=>{const a=j(`snapshot-${t.toISOString().slice(0,10)}`,q(e.state));e.dispatch({type:"RECORD_SNAPSHOT",target:{type:"page",id:"usm"},payload:{id:a,at:t.toISOString(),tally:At(e.state)}})},ta=(e,t)=>{const a=e.statuses.at(-1);return a!==void 0&&t.statusId===a.id},aa=(e,t)=>{const a=S(e,t)?.blockedBy??[];return{blockers:a,openBlockers:a.filter(s=>{const n=S(e,s);return n!==void 0&&!ta(e,n)}).length,dependents:e.stories.filter(s=>s.blockedBy?.includes(t)).map(s=>s.id)}},An=(e,t)=>{const a=new Set(S(e,t)?.blockedBy??[]);return e.stories.filter(s=>s.id!==t&&!a.has(s.id)&&!Oe(e.stories,s.id,t))},In=(e,t)=>e.stories.filter(a=>a.id!==t&&!a.blockedBy?.includes(t)&&!Oe(e.stories,t,a.id)),Ln=(e,t,a)=>{const{state:s}=t,n=ce.filter(o=>oe(s,o).length>0);if(n.length===0)return m;const i=we(s,t.navigation),r=Object.fromEntries(ce.map(o=>[o,null]));return d`<div class="map-toolbar" role="group" aria-label=${e.filterLabel} data-testid="usm-map-filter">
620
- ${n.map(o=>Mn(e,t,i,o,a))}
621
- ${Us(i)?d`<a class="filter-clear" href=${t.hashFor(r)}>${e.clearFilter}</a>`:m}
622
- </div>`},Mn=(e,t,a,s,n)=>{const i=a[s],r=On(e,t.state,s),o=r.filter(p=>i.has(p.id)),l=n.openFor===s;return d`<span class="filter-field">
623
- <button
624
- class="dpk-select filter-select"
625
- type="button"
626
- data-filter-trigger=${s}
627
- data-active=${String(o.length>0)}
628
- aria-haspopup="menu"
629
- aria-expanded=${String(l)}
630
- @click=${()=>n.toggle(s)}
631
- >
632
- <span class="filter-key">${e.filterKeyLabel(s)}</span>
633
- <span class="filter-value">${Dn(e,o)}</span>
634
- </button>
635
- ${l?Rn(e,t,s,i,r,n):m}
636
- </span>`},Dn=(e,t)=>{const[a]=t;return a?t.length===1?a.name:`${a.name} +${t.length-1}`:e.filterAll},Rn=(e,t,a,s,n,i)=>d`<div
637
- id="filter-menu"
638
- class="comment-pop filter-menu"
639
- popover="manual"
640
- role="menu"
641
- aria-label=${e.filterKeyLabel(a)}
642
- data-filter=${a}
643
- @keydown=${r=>{r.key==="Escape"&&(r.preventDefault(),i.close())}}
644
- >
645
- <a
646
- class="filter-option"
647
- role="menuitemcheckbox"
648
- data-option=""
649
- aria-checked=${String(s.size===0)}
650
- href=${t.hashFor({[a]:null})}
651
- >
652
- <span class="filter-check">${s.size===0?Ie():m}</span>
653
- <span class="filter-name">${e.filterAll}</span>
654
- </a>
655
- ${n.map(r=>{const o=s.has(r.id);return d`<a
656
- class="filter-option"
657
- role="menuitemcheckbox"
658
- data-option=${r.id}
659
- data-none=${r.id===ee?"true":m}
660
- aria-checked=${String(o)}
661
- style=${r.style}
662
- href=${t.hashFor({[a]:It(t.state,a,Ys(s,r.id))})}
663
- >
664
- <span class="filter-check">${o?Ie():m}</span>
665
- ${r.mark}
666
- <span class="filter-name" title=${r.name}>${r.name}</span>
667
- <span class="filter-count">${r.count}</span>
668
- </a>`})}
669
- </div>`,On=(e,t,a)=>{const s=n=>t.stories.filter(n).length;switch(a){case"status":return me(t).map(n=>({id:n.id,name:n.name,count:s(i=>i.statusId===n.id),mark:ie(n),style:A(n.tone)}));case"label":return oe(t,a).map(n=>{const i=t.labels.find(r=>r.id===n);return{id:n,name:i?.name??e.noLabel,count:s(r=>i?(r.labelIds??[]).includes(n):(r.labelIds??[]).length===0),mark:d`<span class="filter-dot"></span>`,style:A(i?.tone)}});case"estimate":return oe(t,a).map(n=>{const i=z(t,n);return{id:n,name:i?.name??e.unestimatedFilter,count:s(r=>(r.estimateId??ee)===n),mark:i?d`<span class="filter-points">${i.points}pt</span>`:m,style:""}});case"assignee":return oe(t,a).map(n=>{const i=U(t,n);return{id:n,name:i?.name??e.noAssigneeFilter,count:s(r=>(r.assigneeId??ee)===n),mark:d`<span class="filter-dot"></span>`,style:A(i?.tone)}})}},Nn=Z`
670
- .map-toolbar {
671
- display: flex;
672
- flex-wrap: wrap;
673
- align-items: center;
674
- gap: 8px;
675
- margin: 16px 0 12px;
676
- }
677
- .filter-field {
678
- min-width: 0;
679
- }
680
- .filter-select {
681
- display: inline-flex;
682
- align-items: baseline;
683
- gap: 6px;
684
- width: auto;
685
- max-width: 260px;
686
- text-align: left;
687
- }
688
- .filter-select[data-active='true'] {
689
- border-color: color-mix(in oklab, var(--dpk-blue) 55%, var(--dpk-rule-strong));
690
- background-color: color-mix(in oklab, var(--dpk-blue) 8%, var(--dpk-paper-raised));
691
- }
692
- .filter-key {
693
- flex: none;
694
- color: var(--dpk-ink-faint);
695
- font-size: 11.5px;
696
- font-weight: 600;
697
- }
698
- .filter-value {
699
- min-width: 0;
700
- overflow: hidden;
701
- color: var(--dpk-ink);
702
- font-weight: 600;
703
- text-overflow: ellipsis;
704
- white-space: nowrap;
705
- }
706
- .filter-clear {
707
- margin-left: 2px;
708
- color: var(--dpk-blue);
709
- font-size: 12px;
710
- font-weight: 600;
711
- text-decoration: none;
712
- }
713
- .filter-clear:hover {
714
- text-decoration: underline;
715
- }
716
- .comment-pop.filter-menu {
717
- gap: 1px;
718
- padding: 6px;
719
- }
720
- .filter-option {
721
- display: flex;
722
- align-items: center;
723
- gap: 8px;
724
- min-height: 30px;
725
- padding: 4px 8px;
726
- border-radius: var(--dpk-radius-sm);
727
- color: var(--dpk-ink);
728
- font-size: 12.5px;
729
- font-weight: 550;
730
- text-decoration: none;
731
- }
732
- .filter-option[data-none] .filter-name {
733
- color: var(--dpk-ink-soft);
734
- font-style: italic;
735
- }
736
- .filter-option:hover,
737
- .filter-option:focus-visible {
738
- outline: none;
739
- background: var(--dpk-paper-sunken);
740
- }
741
- .filter-option:focus-visible {
742
- box-shadow: var(--dpk-focus);
743
- }
744
- .filter-check {
745
- flex: none;
746
- display: inline-grid;
747
- place-items: center;
748
- width: 16px;
749
- height: 16px;
750
- color: var(--dpk-blue);
751
- }
752
- .filter-check svg {
753
- width: 14px;
754
- height: 14px;
755
- }
756
- .filter-name {
757
- flex: 1;
758
- min-width: 0;
759
- overflow: hidden;
760
- text-overflow: ellipsis;
761
- white-space: nowrap;
762
- }
763
- .filter-dot {
764
- flex: none;
765
- width: 8px;
766
- height: 8px;
767
- border-radius: 50%;
768
- background: var(--usm-tone, var(--dpk-ink-faint));
769
- }
770
- .filter-points,
771
- .filter-count {
772
- color: var(--dpk-ink-faint);
773
- font-family: var(--dpk-mono);
774
- font-size: 10.5px;
775
- font-variant-numeric: tabular-nums;
776
- }
777
- `,sa=(e,t)=>{const a=s=>t.stories.filter(n=>n.milestoneId===s).length;return[...t.milestones.map(({id:s,name:n,timeframe:i})=>({id:s,name:n,timeframe:i?.trim()??"",storyCount:a(s)})),{id:void 0,name:e.unassigned,timeframe:"",storyCount:a(void 0)}]},Cn=(e,t)=>d`
778
- <div class="empty">
779
- <h2>${e.emptyTitle}</h2>
780
- <p>${e.emptyBody}</p>
781
- <button class="dpk-btn dpk-btn--accent" type="button" @click=${()=>Jt(e,t)}>
782
- ${e.firstActivityButton}
783
- </button>
784
- </div>
785
- `,Bn=e=>{const{m:t,context:a}=e,s=Ue(a.state);return s.length===0?Cn(t,a):d`${Ln(t,a,e.filterMenu)}
786
- ${na(a)==="activity"?Un(e,s):zn(e)}`},na=e=>e.navigation.view==="group"?"group":"activity",Yn=(e,t)=>{const a=na(t);return d`<div class="segmented view-tabs" role="tablist" aria-label=${e.groupingLabel}>
787
- ${ia(t,"activity",a,e.activityGroup)}
788
- ${ia(t,"group",a,e.groupViewTab)}
789
- </div>`},ia=(e,t,a,s)=>{const n=t===a;return d`<a
790
- class="tab"
791
- role="tab"
792
- data-current=${String(n)}
793
- aria-selected=${n?"true":"false"}
794
- href=${e.hashFor({view:t})}
795
- >${s}</a
796
- >`},Un=(e,t)=>{const{m:a,context:s}=e,{state:n}=s,i=sa(a,n);return d`
797
- <div class="map-scroll">
798
- <div class="map" style=${`--cols:${t.length+1}`} data-testid="usm-map">
799
- <div class="map-head">
800
- <div class="map-row">
801
- <div class="corner">
802
- <span class="dpk-label">${a.groupAxisHeader}</span>
803
- </div>
804
- ${O(n.activities,r=>r.id,r=>oa(a,s,r.id,`grid-column: span ${Math.max(r.steps.length,1)}`))}
805
- ${da(a,s)}
806
- </div>
807
- <div class="map-row">
808
- ${ra(a)}
809
- ${O(t,({activity:r,step:o})=>`${r.id}.${o.id}`,({activity:r,step:o})=>d`
810
- <div
811
- class="col-head"
812
- data-current=${String(s.navigation.step===o.id)}
813
- data-dpk-target=${T({type:"step",id:ke(r.id,o.id)})}
814
- >
815
- <h4>
816
- <dpk-component-inline-edit
817
- .value=${o.name}
818
- .label=${a.stepNameLabel}
819
- @dpk-commit=${K(l=>s.dispatch({type:"SET_STEP_NAME",target:{type:"step",id:o.id},payload:{name:l}}))}
820
- @click=${l=>l.stopPropagation()}
821
- ></dpk-component-inline-edit>
822
- </h4>
823
- <span class="count">${gt(n,o.id)}</span>
824
- </div>
825
- `)}
826
- <div class="corner"><span class="dpk-label">—</span></div>
827
- </div>
828
- </div>
829
- ${O(i,r=>r.id,r=>pa(e,r,d`${O(t,({activity:o,step:l})=>`${o.id}.${l.id}`,({activity:o,step:l})=>Fn(e,{activityId:o.id,stepId:l.id,milestoneId:r.id}))}`))}
830
- ${la(a,s,t.length)}
831
- </div>
832
- </div>
833
- `},zn=e=>{const{m:t,context:a}=e,{state:s}=a,n=sa(t,s);return d`
834
- <div class="map-scroll">
835
- <div class="map" style=${`--cols:${s.activities.length+1}`} data-testid="usm-map-group">
836
- <div class="map-head">
837
- <div class="map-row">
838
- ${ra(t)}
839
- ${O(s.activities,i=>i.id,i=>oa(t,a,i.id,void 0,!0))}
840
- ${da(t,a)}
841
- </div>
842
- </div>
843
- ${O(n,i=>i.id,i=>pa(e,i,d`${O(s.activities,r=>r.id,r=>Gn(e,r.id,i.id))}`))}
844
- ${la(t,a,s.activities.length)}
845
- </div>
846
- </div>
847
- `},ra=e=>d`<div class="corner">
848
- <span class="dpk-label">${e.activityAxis}</span>
849
- <span class="dpk-label">${e.milestoneAxis}</span>
850
- </div>`,oa=(e,t,a,s,n=!1)=>{const{state:i}=t,r=i.activities.find(p=>p.id===a);if(!r)return d`<div class="act-head"></div>`;const o=i.stories.filter(p=>p.activityId===r.id),l=Wt(i,o);return d`
851
- <div
852
- class="act-head"
853
- style=${s??""}
854
- data-activity=${r.id}
855
- data-dpk-target=${T({type:"activity",id:r.id})}
856
- >
857
- <div class="act-title">
858
- <dpk-component-inline-edit
859
- .value=${r.name}
860
- .label=${e.activityNameLabel}
861
- @dpk-commit=${K(p=>t.dispatch({type:"SET_ACTIVITY_NAME",target:{type:"activity",id:r.id},payload:{name:p}}))}
862
- ></dpk-component-inline-edit>
863
- <span class="count">${o.length}</span>
864
- <button
865
- class="dpk-icon-btn"
866
- type="button"
867
- aria-label=${e.addStepAria}
868
- @click=${()=>En(e,t,r.id)}
869
- >
870
- ${Oa()}
871
- </button>
872
- </div>
873
- <div class="act-meta">
874
- <span class="act-actor" data-empty=${String(r.actor===void 0)}>
875
- <dpk-component-inline-edit
876
- truncate
877
- .value=${r.actor??""}
878
- .label=${e.activityActorLabel}
879
- .placeholder=${e.activityActorLabel}
880
- @dpk-commit=${K(p=>t.dispatch({type:"SET_ACTIVITY_ACTOR",target:{type:"activity",id:r.id},payload:{actor:p}}))}
881
- ></dpk-component-inline-edit>
882
- </span>
883
- ${Ft(l,e.progressAria(l.map(p=>`${p.name} ${p.count}`).join(", ")))}
884
- </div>
885
- ${n&&r.steps.length>0?d`<ol class="act-steps">
886
- ${r.steps.map(p=>d`<li>${p.name}</li>`)}
887
- </ol>`:m}
888
- </div>
889
- `},da=(e,t)=>d`<div class="act-head">
890
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Jt(e,t)}>
891
- ${e.newActivityButton}
892
- </button>
893
- </div>`,la=(e,t,a)=>d`<div class="map-row">
894
- <div class="row-lead">
895
- <div class="row-head">
896
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Qt(e,t)}>
897
- ${e.newMilestoneButton}
898
- </button>
899
- </div>
900
- </div>
901
- ${Array.from({length:a+1},()=>d`<div class="cell"></div>`)}
902
- </div>`,pa=(e,t,a)=>{const{m:s,context:n,drag:i,handlers:r}=e,o=t.id;if(o===void 0)return d`<div
903
- class="map-row"
904
- data-unassigned="true"
905
- data-draggable="false"
906
- data-row-dragging="false"
907
- data-row-drop="false"
908
- >
909
- <div class="row-lead">
910
- <div class="row-head" data-milestone="" draggable="false"><span>${t.name}</span></div>
911
- ${ca(s,t)}
912
- </div>
913
- ${a}
914
- <div class="cell"></div>
915
- </div>`;const l=Pn(s,n,o,t.name),p=`row:${o}`,h=i.target({key:p,accepts:"milestone",hovered:Kn,onDrop:w=>r.dropOnMilestoneRow(o,w)}),$=i.source({type:"milestone",id:o});return d`
916
- <div
917
- class="map-row"
918
- data-draggable="true"
919
- data-row-dragging=${String(i.isDragging("milestone",o))}
920
- data-row-drop=${String(i.isOver(p))}
921
- @dragenter=${h.dragenter}
922
- @dragover=${h.dragover}
923
- @dragleave=${h.dragleave}
924
- @drop=${h.drop}
925
- >
926
- <div class="row-lead">
927
- <div
928
- class="row-head"
929
- data-milestone=${o}
930
- data-dpk-target=${T({type:"milestone",id:o})}
931
- draggable="true"
932
- @dragstart=${w=>{Hn(w),$.dragstart(w)}}
933
- @dragend=${$.dragend}
934
- >
935
- <span class="row-grip" aria-hidden="true">${Na()}</span>${l}
936
- </div>
937
- ${ca(s,t)}
938
- </div>
939
- ${a}
940
- <div class="cell"></div>
941
- </div>
942
- `},ca=(e,t)=>d`<div class="row-meta">
943
- ${t.timeframe===""?m:d`<span class="row-timeframe">${t.timeframe}</span>`}
944
- <span class="row-count">${e.storyCount(t.storyCount)}</span>
945
- </div>`,Pn=(e,t,a,s)=>d`<dpk-component-inline-edit
946
- draggable="false"
947
- .value=${s}
948
- .label=${e.milestoneNameLabel}
949
- @dpk-commit=${K(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:a},payload:{name:n}}))}
950
- ></dpk-component-inline-edit>`,Fn=(e,t)=>{const{m:a,context:s,drag:n,handlers:i}=e,r=we(s.state,s.navigation),o=xe(s.state,t.stepId,t.milestoneId).filter(h=>Lt(r,h)),l=`cell:${t.stepId}:${t.milestoneId??""}`,p=n.target({key:l,accepts:"story",hovered:ma,onDrop:h=>i.dropOnCell(t,h)});return d`
951
- <div
952
- class="cell"
953
- data-step=${t.stepId}
954
- data-milestone=${t.milestoneId??""}
955
- data-drop=${String(n.isOver(l))}
956
- @dragenter=${p.dragenter}
957
- @dragover=${p.dragover}
958
- @dragleave=${p.dragleave}
959
- @drop=${p.drop}
960
- >
961
- <div class="card-list" data-testid=${`cell-${t.stepId}-${t.milestoneId??"unassigned"}`}>
962
- ${O(o,h=>h.id,h=>ua(e,h,""))}
963
- </div>
964
- <button
965
- class="dpk-btn dpk-btn--ghost add-cell"
966
- type="button"
967
- title=${a.addStoryCellAria}
968
- @click=${()=>ea(a,s,t.activityId,t.stepId,t.milestoneId)}
969
- >
970
- ${a.addCellButton}
971
- </button>
972
- </div>
973
- `},Gn=(e,t,a)=>{const{m:s,context:n,drag:i,handlers:r}=e,{state:o}=n,l=we(o,n.navigation),p=bt(o,t,a).filter(b=>Lt(l,b)),h=o.activities.find(b=>b.id===t)?.steps??[],$=h[0],w=b=>h.find(te=>te.id===b)?.name??"",E=`group:${t}:${a??""}`,c=i.target({key:E,accepts:"story",hovered:ma,onDrop:b=>r.dropOnGroupCell(t,a,b)});return d`
974
- <div
975
- class="cell"
976
- data-activity=${t}
977
- data-milestone=${a??""}
978
- data-drop=${String(i.isOver(E))}
979
- @dragenter=${c.dragenter}
980
- @dragover=${c.dragover}
981
- @dragleave=${c.dragleave}
982
- @drop=${c.drop}
983
- >
984
- <div class="card-list" data-testid=${`group-cell-${t}-${a??"unassigned"}`}>
985
- ${O(p,b=>b.id,b=>ua(e,b,w(b.stepId)))}
986
- </div>
987
- ${$?d`<button
988
- class="dpk-btn dpk-btn--ghost add-cell"
989
- type="button"
990
- aria-label=${s.addStoryCellAria}
991
- @click=${()=>ea(s,n,t,$.id,a)}
992
- >
993
- ${s.addCellButton}
994
- </button>`:m}
995
- </div>
996
- `},ua=(e,t,a)=>{const{context:s,drag:n,handlers:i}=e,r=me(s.state),o=s.comments.filter(h=>h.target.type==="story"&&h.target.id===t.id),l=n.source({type:"story",id:t.id}),p=aa(s.state,t.id);return d`<dpk-internal-usm-story-card
997
- data-story=${t.id}
998
- data-status=${t.statusId??""}
999
- data-relation=${Vn(s.state,s.navigation.story,t)??m}
1000
- data-dpk-target=${T({type:"story",id:t.id})}
1001
- draggable="true"
1002
- tabindex="0"
1003
- role="button"
1004
- aria-haspopup="dialog"
1005
- aria-label=${t.name}
1006
- style=${A(Kt(r,t)?.tone)}
1007
- .story=${t}
1008
- .stepName=${a}
1009
- .statuses=${r}
1010
- .labels=${vs(s.state,t)}
1011
- .notes=${o}
1012
- .estimate=${W(s.state,"estimates")?z(s.state,t.estimateId)??null:null}
1013
- .assignee=${W(s.state,"assignees")?fs(s.state,t)??null:null}
1014
- .blocks=${p.dependents.length}
1015
- .waits=${p.openBlockers}
1016
- @click=${()=>i.selectStory(t.id)}
1017
- @keydown=${h=>{h.composedPath()[0]!==h.currentTarget||h.key!=="Enter"&&h.key!==" "||(h.preventDefault(),i.selectStory(t.id))}}
1018
- ?focused=${s.navigation.story===t.id}
1019
- ?dragging=${n.isDragging("story",t.id)}
1020
- @dragstart=${l.dragstart}
1021
- @dragend=${l.dragend}
1022
- ></dpk-internal-usm-story-card>`},Vn=(e,t,a)=>{if(!(t===void 0||t===a.id))return a.blockedBy?.includes(t)?"dependent":e.stories.find(s=>s.id===t)?.blockedBy?.includes(a.id)?"blocker":void 0},ma=e=>{const t=e.target instanceof Element?e.target.closest("dpk-internal-usm-story-card"):null;return t?{id:t.getAttribute("data-story"),element:t}:null},Hn=e=>{const a=(e.currentTarget instanceof Element?e.currentTarget:null)?.closest(".map-row");if(!a||!e.dataTransfer)return;const s=a.getBoundingClientRect();e.dataTransfer.setDragImage(a,e.clientX-s.left,e.clientY-s.top)},Kn=e=>{const t=e.target instanceof Element?e.target.closest(".map-row"):null,a=t?.querySelector(".row-head[data-milestone]");if(!t||!a)return null;const s=a.getAttribute("data-milestone");return{id:s===""?null:s,element:t}},ha=(e,t)=>at((a,s)=>{const n=a.trim()===""?Number.NaN:Number(a);if(!Number.isFinite(n)||n<0){s.value=String(e);return}n!==e&&t(n)}),Wn=(e,t,a,s)=>d`
1023
- <section class="st-overview" data-testid="usm-statuses">
1024
- ${a.rows.length===0?d`<div class="empty">
1025
- <h2>${e.noStatusesTitle}</h2>
1026
- <p>${e.noStatusesBody}</p>
1027
- </div>`:m}
1028
- <ol class="st-list">
1029
- ${O(a.rows,n=>n.id,n=>qn(e,t,n,s))}
1030
- </ol>
1031
- <div>
1032
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>wn(e,t)}>
1033
- ${e.newStatusButton}
1034
- </button>
1035
- </div>
1036
- </section>
1037
- `,qn=(e,t,a,s)=>{const n=s.openFor===a.id,i={type:"status",id:a.id},r=l=>{t.dispatch({type:"REORDER_STATUS",target:i,payload:{after:l}})},o=W(t.state,"estimates");return d`
1038
- <li
1039
- class=${o?"st-row st-row--weighted":"st-row"}
1040
- data-status=${a.id}
1041
- data-dpk-target=${T(i)}
1042
- style=${A(a.tone)}
1043
- >
1044
- <button
1045
- class="st-icon-trigger"
1046
- type="button"
1047
- data-icon-trigger=${a.id}
1048
- aria-haspopup="menu"
1049
- aria-expanded=${String(n)}
1050
- aria-label=${`${e.statusIconLabel}: ${e.iconName(a.icon)}`}
1051
- title=${e.iconName(a.icon)}
1052
- @click=${()=>s.toggle(a.id)}
1053
- >
1054
- ${ie(a)}
1055
- </button>
1056
- ${n?Xn(e,t,a,s):m}
1057
- <span class="st-name">
1058
- <dpk-component-inline-edit
1059
- .value=${a.name}
1060
- .label=${e.statusNameLabel}
1061
- @dpk-commit=${K(l=>t.dispatch({type:"SET_STATUS_NAME",target:i,payload:{name:l}}))}
1062
- ></dpk-component-inline-edit>
1063
- </span>
1064
- ${Xe(e,a.storyCount,a.share)} ${o?jn(e,t,a):m}
1065
- ${je(e,a.tone,l=>t.dispatch({type:"SET_STATUS_TONE",target:i,payload:{tone:l}}))}
1066
- ${$e(e,{ids:t.state.statuses.map(l=>l.id),row:a,deleteLabel:e.deleteStatusAria,reorder:r,remove:()=>t.dispatch({type:"DELETE_STATUS",target:i,payload:{}})})}
1067
- </li>
1068
- `},jn=(e,t,a)=>{if(a.weight===null)return d`<span class="st-weight" aria-hidden="true"></span>`;const s=a.weight;return d`<label class="st-weight" title=${e.statusWeightHint}>
1069
- <span class="st-weight-label">${e.statusWeightLabel}</span>
1070
- <input
1071
- class="dpk-input"
1072
- type="number"
1073
- min="0"
1074
- step="any"
1075
- inputmode="decimal"
1076
- data-role="weight"
1077
- .value=${String(s)}
1078
- @change=${ha(s,n=>t.dispatch({type:"SET_STATUS_WEIGHT",target:{type:"status",id:a.id},payload:{weight:n}}))}
1079
- />
1080
- </label>`},Xn=(e,t,a,s)=>d`<div
1081
- id="icon-menu"
1082
- class="comment-pop icon-menu"
1083
- popover="manual"
1084
- role="menu"
1085
- aria-label=${e.statusIconLabel}
1086
- style=${A(a.tone)}
1087
- @keydown=${n=>{n.key==="Escape"&&(n.preventDefault(),s.close())}}
1088
- >
1089
- ${rt.map(n=>d`<button
1090
- class="icon-option"
1091
- type="button"
1092
- role="menuitemradio"
1093
- data-icon=${n}
1094
- title=${e.iconName(n)}
1095
- aria-label=${e.iconName(n)}
1096
- aria-checked=${String(n===a.icon)}
1097
- @click=${()=>{n!==a.icon&&t.dispatch({type:"SET_STATUS_ICON",target:{type:"status",id:a.id},payload:{icon:n}}),s.close()}}
1098
- >
1099
- ${ie({icon:n,progress:a.progress})}
1100
- </button>`)}
1101
- </div>`,je=(e,t,a)=>d`<span class="st-tones" role="radiogroup" aria-label=${e.statusToneLabel}>
1102
- ${ge.map(s=>d`<button
1103
- class="st-tone"
1104
- type="button"
1105
- role="radio"
1106
- data-tone=${s}
1107
- style=${A(s)}
1108
- title=${e.toneName(s)}
1109
- aria-label=${e.toneName(s)}
1110
- aria-checked=${s===t?"true":"false"}
1111
- @click=${()=>{s!==t&&a(s)}}
1112
- ></button>`)}
1113
- </span>`,$e=(e,t)=>d`<span class="st-tools">
1114
- <button
1115
- class="dpk-icon-btn"
1116
- type="button"
1117
- aria-label=${e.moveUpAria}
1118
- ?disabled=${t.row.previousId===null}
1119
- @click=${()=>t.reorder(Zn(t.ids,t.row.previousId))}
1120
- >
1121
- ↑
1122
- </button>
1123
- <button
1124
- class="dpk-icon-btn"
1125
- type="button"
1126
- aria-label=${e.moveDownAria}
1127
- ?disabled=${t.row.nextId===null}
1128
- @click=${()=>t.reorder(t.row.nextId)}
1129
- >
1130
- ↓
1131
- </button>
1132
- <button class="dpk-icon-btn" type="button" data-role="delete" aria-label=${t.deleteLabel} @click=${t.remove}>
1133
- ${Le()}
1134
- </button>
1135
- </span>`,Zn=(e,t)=>{const a=t===null?-1:e.indexOf(t);return a<=0?null:e[a-1]??null},Xe=(e,t,a)=>d`
1136
- <span class="st-share">
1137
- <span class="st-share-text">${e.statusShare(t,Math.round(a*100))}</span>
1138
- <span class="st-meter" aria-hidden="true"><span style=${`width:${a*100}%`}></span></span>
1139
- </span>
1140
- `,Jn=R(Xa),Qn=R(ns),ei={width:720,height:240,inset:{top:16,right:20,bottom:26,left:40}},ti={width:340,height:150,inset:{top:12,right:14,bottom:24,left:32}},ai=(e,t,a)=>{const{state:s,navigation:n}=t,i=Ls(s,n);return d`
1141
- <section class="bd-overview" data-testid="usm-burndown">
1142
- ${i?si(e,t,i,a):d`<div class="empty">
1143
- <h2>${e.burndownTab}</h2>
1144
- <p>${e.noMilestonesForBurndown}</p>
1145
- </div>`}
1146
- <div class="bd-side">${ni(e,t)} ${ii(e,t)}</div>
1147
- </section>
1148
- `},si=(e,t,a,s)=>{const{state:n,navigation:i}=t,r=Ms(n,i),o=Os(n,a.id,r,s.getTime()),l=n.stories.filter(p=>p.milestoneId===a.id&&p.estimateId===void 0).length;return d`
1149
- <header class="bd-bar">
1150
- <label class="bd-control">
1151
- <span>${e.burndownMilestoneLabel}</span>
1152
- <select
1153
- class="dpk-select"
1154
- data-role="milestone"
1155
- @change=${Ca(p=>t.navigate({milestone:p}))}
1156
- >
1157
- ${n.milestones.map(p=>d`<option value=${p.id} ?selected=${p.id===a.id}>${p.name}</option>`)}
1158
- </select>
1159
- </label>
1160
- <label class="bd-control" data-dpk-target=${T({type:"milestone",id:a.id})}>
1161
- <span>${e.dueDateLabel}</span>
1162
- <input
1163
- class="dpk-input"
1164
- type="date"
1165
- data-role="due-date"
1166
- .value=${a.dueDate??""}
1167
- @change=${at(p=>{const h=p===""?null:p;h!==(a.dueDate??null)&&t.dispatch({type:"SET_MILESTONE_DUE_DATE",target:{type:"milestone",id:a.id},payload:{dueDate:h}})})}
1168
- />
1169
- </label>
1170
- <span class="bd-control">
1171
- <span id="bd-unit-label">${e.unitLabel}</span>
1172
- <span class="bd-units" role="radiogroup" aria-labelledby="bd-unit-label">
1173
- ${Ve.map(p=>d`<a
1174
- class="bd-unit"
1175
- role="radio"
1176
- data-unit=${p}
1177
- aria-checked=${String(p===r)}
1178
- href=${t.hashFor({unit:p})}
1179
- >${e.unitName(p)}</a
1180
- >`)}
1181
- </span>
1182
- </span>
1183
- <span class="bd-record">
1184
- <button
1185
- class="dpk-btn dpk-btn--primary"
1186
- type="button"
1187
- data-role="record-snapshot"
1188
- title=${e.recordSnapshotHint}
1189
- @click=${()=>_n(t,new Date)}
1190
- >
1191
- ${e.recordSnapshotButton}
1192
- </button>
1193
- </span>
1194
- </header>
1195
- ${r==="points"&&l>0?d`<p class="bd-warning" role="note" data-testid="usm-unestimated-warning">
1196
- ${Qn()}<span>${e.unestimatedNote(l)}</span>
1197
- </p>`:m}
1198
- <figure class="bd-chart bd-chart--combined">
1199
- <figcaption>
1200
- <span class="bd-chart-title">${e.combinedChartTitle}</span>
1201
- <span class="bd-about">
1202
- <button class="bd-about-btn" type="button" aria-label=${e.chartAbout} aria-describedby="bd-about-tip">
1203
- ${Jn()}
1204
- </button>
1205
- <span class="bd-about-tip" id="bd-about-tip" role="tooltip">${e.combinedChartHint(e.unitName(r))}</span>
1206
- </span>
1207
- <span class="bd-chart-latest">${e.chartLatest(ga(o.combined))}</span>
1208
- </figcaption>
1209
- ${ba({chart:"combined",title:e.combinedChartTitle,points:o.combined,due:o.due,now:s.getTime(),size:ei,tone:"accent"})}
1210
- </figure>
1211
- ${o.byStatus.length===0?m:d`<section class="bd-multiples" aria-label=${e.statusChartsLabel}>
1212
- <h3>${e.statusChartsLabel}</h3>
1213
- <div class="bd-grid">
1214
- ${o.byStatus.map(({status:p,points:h})=>d`<figure class="bd-chart" data-status=${p.id}>
1215
- <figcaption>
1216
- <span class="bd-chart-title">${e.statusChartTitle(p.name)}</span>
1217
- <span class="bd-chart-latest">${e.chartLatest(ga(h))}</span>
1218
- </figcaption>
1219
- ${ba({chart:"status",statusId:p.id,title:e.statusChartTitle(p.name),points:h,due:o.due,now:s.getTime(),size:ti,tone:p.tone})}
1220
- </figure>`)}
1221
- </div>
1222
- </section>`}
1223
- `},ba=e=>d`<dpk-internal-usm-burndown-chart
1224
- data-chart=${e.chart}
1225
- data-status=${e.statusId??m}
1226
- .points=${e.points}
1227
- .due=${e.due}
1228
- .now=${e.now}
1229
- .size=${e.size}
1230
- .tone=${e.tone}
1231
- .label=${e.title}
1232
- ></dpk-internal-usm-burndown-chart>`,ni=(e,t)=>{const a=[...t.state.snapshots].reverse();return d`<section class="bd-panel">
1233
- <h3>${e.snapshotsLabel}<span class="bd-count">${a.length}</span></h3>
1234
- ${a.length===0?d`<p class="bd-empty">${e.noSnapshots} ${e.chartNeedsSnapshot}</p>`:d`<ol class="bd-snapshots">
1235
- ${O(a,s=>s.id,s=>{const n={type:"snapshot",id:s.id},i=se(s.at),r=s.tally.reduce((o,l)=>o+l.stories,0);return d`<li data-snapshot=${s.id} data-dpk-target=${T(n)}>
1236
- <span class="bd-snapshot-at">${i}</span>
1237
- <span class="bd-snapshot-sum">${e.storyCount(r)}</span>
1238
- <button
1239
- class="dpk-icon-btn"
1240
- type="button"
1241
- data-role="delete-snapshot"
1242
- aria-label=${e.deleteSnapshotAria(i)}
1243
- @click=${()=>t.dispatch({type:"DELETE_SNAPSHOT",target:n,payload:{}})}
1244
- >
1245
- ${Le()}
1246
- </button>
1247
- </li>`})}
1248
- </ol>`}
1249
- </section>`},ii=(e,t)=>{const{estimates:a}=t.state;return d`<section class="bd-panel" data-testid="usm-estimates">
1250
- <h3>${e.estimatesLabel}<span class="bd-count">${a.length}</span></h3>
1251
- <p class="bd-empty">${e.estimatesHint}</p>
1252
- ${a.length===0?m:d`<ol class="bd-estimates">
1253
- ${O(a,s=>s.id,(s,n)=>ri(e,t,s,n))}
1254
- </ol>`}
1255
- <div>
1256
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Tn(e,t)}>
1257
- ${e.newEstimateButton}
1258
- </button>
1259
- </div>
1260
- </section>`},ri=(e,t,a,s)=>{const{estimates:n}=t.state,i={type:"estimate",id:a.id};return d`<li data-estimate=${a.id} data-dpk-target=${T(i)}>
1261
- <span class="bd-estimate-name">
1262
- <dpk-component-inline-edit
1263
- .value=${a.name}
1264
- .label=${e.estimateNameLabel}
1265
- @dpk-commit=${K(r=>t.dispatch({type:"SET_ESTIMATE_NAME",target:i,payload:{name:r}}))}
1266
- ></dpk-component-inline-edit>
1267
- </span>
1268
- <label class="bd-estimate-points">
1269
- <input
1270
- class="dpk-input"
1271
- type="number"
1272
- min="0"
1273
- step="any"
1274
- inputmode="decimal"
1275
- data-role="points"
1276
- aria-label=${e.estimatePointsLabel}
1277
- .value=${String(a.points)}
1278
- @change=${ha(a.points,r=>t.dispatch({type:"SET_ESTIMATE_POINTS",target:i,payload:{points:r}}))}
1279
- />
1280
- <span>pt</span>
1281
- </label>
1282
- ${$e(e,{ids:n.map(r=>r.id),row:{previousId:n[s-1]?.id??null,nextId:n[s+1]?.id??null},deleteLabel:e.deleteEstimateAria,reorder:r=>t.dispatch({type:"REORDER_ESTIMATE",target:i,payload:{after:r}}),remove:()=>t.dispatch({type:"DELETE_ESTIMATE",target:i,payload:{}})})}
1283
- </li>`},ga=e=>e.at(-1)?.value??0,oi=Z`
1284
- .bd-overview {
1285
- display: grid;
1286
- gap: 18px;
1287
- max-width: 1040px;
1288
- padding: 28px 0 40px;
1289
- }
1290
- .bd-bar {
1291
- display: flex;
1292
- flex-wrap: wrap;
1293
- align-items: flex-end;
1294
- gap: 12px 16px;
1295
- }
1296
- .bd-control {
1297
- display: grid;
1298
- gap: 4px;
1299
- min-width: 0;
1300
- }
1301
- .bd-control > span:first-child {
1302
- color: var(--dpk-ink-faint);
1303
- font-size: 11px;
1304
- font-weight: 600;
1305
- }
1306
- .bd-control .dpk-select {
1307
- min-width: 160px;
1308
- }
1309
- .bd-control .dpk-input {
1310
- width: 160px;
1311
- font-family: var(--dpk-mono);
1312
- font-variant-numeric: tabular-nums;
1313
- }
1314
- .bd-units {
1315
- display: inline-flex;
1316
- padding: 2px;
1317
- border: 1px solid var(--dpk-rule-strong);
1318
- border-radius: var(--dpk-radius-sm);
1319
- background: var(--dpk-paper-sunken);
1320
- }
1321
- .bd-unit {
1322
- padding: 4px 12px;
1323
- border-radius: calc(var(--dpk-radius-sm) - 2px);
1324
- color: var(--dpk-ink-soft);
1325
- font-size: 12.5px;
1326
- font-weight: 600;
1327
- text-decoration: none;
1328
- }
1329
- .bd-unit[aria-checked='true'] {
1330
- background: var(--dpk-paper-raised);
1331
- color: var(--dpk-ink);
1332
- box-shadow: var(--dpk-shadow-xs);
1333
- }
1334
- .bd-unit:focus-visible {
1335
- outline: none;
1336
- box-shadow: var(--dpk-focus);
1337
- }
1338
- .bd-record {
1339
- margin-left: auto;
1340
- }
1341
- .bd-warning {
1342
- display: flex;
1343
- align-items: flex-start;
1344
- gap: 8px;
1345
- margin: 0;
1346
- padding: 8px 12px;
1347
- border: 1px solid color-mix(in oklab, var(--dpk-amber) 40%, var(--dpk-rule));
1348
- border-radius: var(--dpk-radius-sm);
1349
- background: color-mix(in oklab, var(--dpk-amber) 10%, var(--dpk-paper-raised));
1350
- color: var(--dpk-ink);
1351
- font-size: 12.5px;
1352
- line-height: 1.5;
1353
- }
1354
- .bd-warning svg {
1355
- flex: none;
1356
- width: 15px;
1357
- height: 15px;
1358
- margin-top: 2px;
1359
- color: var(--dpk-amber);
1360
- }
1361
- .bd-empty {
1362
- margin: 0;
1363
- color: var(--dpk-ink-faint);
1364
- font-size: 12px;
1365
- line-height: 1.5;
1366
- }
1367
- .bd-chart {
1368
- display: grid;
1369
- gap: 8px;
1370
- margin: 0;
1371
- padding: 14px 16px 10px;
1372
- border: 1px solid var(--dpk-rule);
1373
- border-radius: var(--dpk-radius-lg);
1374
- background: var(--dpk-paper-raised);
1375
- box-shadow: var(--dpk-shadow-xs);
1376
- }
1377
- .bd-chart figcaption {
1378
- display: flex;
1379
- flex-wrap: wrap;
1380
- align-items: baseline;
1381
- gap: 4px 12px;
1382
- }
1383
- .bd-chart-title {
1384
- font-size: 13.5px;
1385
- font-weight: 650;
1386
- }
1387
- .bd-chart-latest {
1388
- margin-left: auto;
1389
- color: var(--dpk-ink-soft);
1390
- font-family: var(--dpk-mono);
1391
- font-size: 12px;
1392
- font-variant-numeric: tabular-nums;
1393
- }
1394
- .bd-about {
1395
- position: relative;
1396
- display: inline-flex;
1397
- align-self: center;
1398
- }
1399
- .bd-about-btn {
1400
- display: inline-grid;
1401
- place-items: center;
1402
- width: 20px;
1403
- height: 20px;
1404
- padding: 0;
1405
- border: 0;
1406
- border-radius: 50%;
1407
- background: none;
1408
- color: var(--dpk-ink-faint);
1409
- cursor: help;
1410
- }
1411
- .bd-about-btn:hover,
1412
- .bd-about-btn:focus-visible {
1413
- outline: none;
1414
- color: var(--dpk-ink);
1415
- }
1416
- .bd-about-btn:focus-visible {
1417
- box-shadow: var(--dpk-focus);
1418
- }
1419
- .bd-about-btn svg {
1420
- width: 15px;
1421
- height: 15px;
1422
- }
1423
- .bd-about-tip {
1424
- position: absolute;
1425
- top: calc(100% + 6px);
1426
- left: -8px;
1427
- z-index: 2;
1428
- width: max-content;
1429
- max-width: 360px;
1430
- padding: 8px 10px;
1431
- border: 1px solid var(--dpk-rule-strong);
1432
- border-radius: var(--dpk-radius-sm);
1433
- background: var(--dpk-paper-raised);
1434
- box-shadow: var(--dpk-shadow-sm);
1435
- color: var(--dpk-ink-soft);
1436
- font-size: 12px;
1437
- font-weight: 400;
1438
- line-height: 1.5;
1439
- visibility: hidden;
1440
- opacity: 0;
1441
- transition: opacity 120ms var(--dpk-ease);
1442
- }
1443
- .bd-about:hover .bd-about-tip,
1444
- .bd-about-btn:focus-visible + .bd-about-tip {
1445
- visibility: visible;
1446
- opacity: 1;
1447
- }
1448
- .bd-multiples {
1449
- display: grid;
1450
- gap: 10px;
1451
- }
1452
- .bd-multiples h3,
1453
- .bd-panel h3 {
1454
- display: flex;
1455
- align-items: center;
1456
- gap: 8px;
1457
- margin: 0;
1458
- color: var(--dpk-ink-soft);
1459
- font-size: 12px;
1460
- font-weight: 650;
1461
- letter-spacing: 0.02em;
1462
- }
1463
- .bd-grid {
1464
- display: grid;
1465
- grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
1466
- gap: 12px;
1467
- }
1468
- .bd-side {
1469
- display: grid;
1470
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
1471
- gap: 12px;
1472
- align-items: start;
1473
- }
1474
- .bd-panel {
1475
- display: grid;
1476
- gap: 10px;
1477
- padding: 14px 16px;
1478
- border: 1px solid var(--dpk-rule);
1479
- border-radius: var(--dpk-radius-lg);
1480
- background: var(--dpk-paper-raised);
1481
- box-shadow: var(--dpk-shadow-xs);
1482
- }
1483
- .bd-count {
1484
- color: var(--dpk-ink-faint);
1485
- font-family: var(--dpk-mono);
1486
- font-weight: 500;
1487
- }
1488
- .bd-snapshots,
1489
- .bd-estimates {
1490
- display: grid;
1491
- margin: 0;
1492
- padding: 0;
1493
- list-style: none;
1494
- }
1495
- .bd-snapshots li,
1496
- .bd-estimates li {
1497
- display: grid;
1498
- align-items: center;
1499
- gap: 10px;
1500
- min-height: 34px;
1501
- }
1502
- .bd-snapshots li {
1503
- grid-template-columns: minmax(0, 1fr) auto 26px;
1504
- }
1505
- .bd-estimates li {
1506
- grid-template-columns: minmax(0, 1fr) 96px auto;
1507
- }
1508
- .bd-snapshots li + li,
1509
- .bd-estimates li + li {
1510
- border-top: 1px solid var(--dpk-rule);
1511
- }
1512
- .bd-snapshot-at,
1513
- .bd-snapshot-sum {
1514
- font-family: var(--dpk-mono);
1515
- font-size: 12px;
1516
- font-variant-numeric: tabular-nums;
1517
- }
1518
- .bd-snapshot-sum {
1519
- color: var(--dpk-ink-faint);
1520
- }
1521
- .bd-snapshots .dpk-icon-btn {
1522
- width: 26px;
1523
- height: 26px;
1524
- }
1525
- .bd-estimate-name {
1526
- min-width: 0;
1527
- font-family: var(--dpk-mono);
1528
- font-size: 13px;
1529
- font-weight: 650;
1530
- }
1531
- .bd-estimate-points {
1532
- display: inline-flex;
1533
- align-items: center;
1534
- gap: 5px;
1535
- color: var(--dpk-ink-faint);
1536
- font-size: 11px;
1537
- }
1538
- .bd-estimate-points .dpk-input {
1539
- min-height: 28px;
1540
- padding: 3px 8px;
1541
- font-family: var(--dpk-mono);
1542
- font-size: 12px;
1543
- font-variant-numeric: tabular-nums;
1544
- }
1545
- @media (max-width: 640px) {
1546
- .bd-record {
1547
- margin-left: 0;
1548
- }
1549
- .bd-control .dpk-select,
1550
- .bd-control .dpk-input {
1551
- width: 100%;
1552
- min-width: 0;
1553
- }
1554
- }
1555
- `,di=R(Ha),li=(e,t,a)=>d`<span class="features-field">
1556
- <button
1557
- class="dpk-btn dpk-btn--ghost features-trigger"
1558
- type="button"
1559
- data-features-trigger
1560
- aria-haspopup="menu"
1561
- aria-expanded=${String(a.open)}
1562
- @click=${a.toggle}
1563
- >
1564
- ${di()}<span>${e.featuresButton}</span>
1565
- </button>
1566
- ${a.open?d`<div
1567
- id="features-menu"
1568
- class="comment-pop features-menu"
1569
- popover="manual"
1570
- role="menu"
1571
- aria-label=${e.featuresMenuLabel}
1572
- @keydown=${s=>{s.key==="Escape"&&(s.preventDefault(),a.close())}}
1573
- >
1574
- ${fe.map(s=>pi(e,t,s))}
1575
- <p class="features-note">${e.featuresNote}</p>
1576
- </div>`:m}
1577
- </span>`,pi=(e,t,a)=>{const s=W(t.state,a);return d`<button
1578
- class="feature-option"
1579
- type="button"
1580
- role="menuitemcheckbox"
1581
- data-feature=${a}
1582
- aria-checked=${String(s)}
1583
- @click=${()=>t.dispatch({type:"SET_FEATURE",target:{type:"page",id:"usm"},payload:{feature:a,enabled:!s}})}
1584
- >
1585
- <span class="feature-check" aria-hidden="true">${s?Ie():m}</span>
1586
- <span class="feature-text">
1587
- <span class="feature-name">${e.featureName(a)}</span>
1588
- <span class="feature-hint">${e.featureHint(a)}</span>
1589
- </span>
1590
- </button>`},ci=Z`
1591
- .features-field {
1592
- display: inline-flex;
1593
- }
1594
- .features-trigger {
1595
- gap: 6px;
1596
- }
1597
- .features-trigger svg {
1598
- width: 14px;
1599
- height: 14px;
1600
- }
1601
- .features-trigger[aria-expanded='true'] {
1602
- background: var(--dpk-paper-inset);
1603
- color: var(--dpk-ink);
1604
- }
1605
- .comment-pop.features-menu {
1606
- gap: 2px;
1607
- padding: 6px;
1608
- }
1609
- .feature-option {
1610
- display: flex;
1611
- align-items: flex-start;
1612
- gap: 10px;
1613
- width: 100%;
1614
- padding: 8px;
1615
- border: 0;
1616
- border-radius: var(--dpk-radius-sm);
1617
- background: none;
1618
- color: var(--dpk-ink);
1619
- font: inherit;
1620
- text-align: left;
1621
- cursor: pointer;
1622
- }
1623
- .feature-option:hover,
1624
- .feature-option:focus-visible {
1625
- outline: none;
1626
- background: var(--dpk-paper-sunken);
1627
- }
1628
- .feature-check {
1629
- flex: none;
1630
- display: inline-grid;
1631
- place-items: center;
1632
- width: 16px;
1633
- height: 16px;
1634
- margin-top: 1px;
1635
- border: 1px solid var(--dpk-rule-strong);
1636
- border-radius: 4px;
1637
- background: var(--dpk-paper-raised);
1638
- }
1639
- .feature-option[aria-checked='true'] .feature-check {
1640
- border-color: var(--dpk-usm-accent);
1641
- background: var(--dpk-usm-accent);
1642
- color: var(--dpk-paper-raised);
1643
- }
1644
- .feature-check svg {
1645
- width: 12px;
1646
- height: 12px;
1647
- stroke-width: 3;
1648
- }
1649
- .feature-text {
1650
- display: grid;
1651
- gap: 2px;
1652
- min-width: 0;
1653
- }
1654
- .feature-name {
1655
- font-size: 13px;
1656
- font-weight: 650;
1657
- }
1658
- .feature-hint {
1659
- color: var(--dpk-ink-soft);
1660
- font-size: 11.5px;
1661
- line-height: 1.45;
1662
- }
1663
- .features-note {
1664
- margin: 4px 8px 4px;
1665
- padding-top: 8px;
1666
- border-top: 1px solid var(--dpk-rule);
1667
- color: var(--dpk-ink-faint);
1668
- font-size: 11px;
1669
- line-height: 1.45;
1670
- }
1671
- `,ui=(e,t,a)=>d`
1672
- <section class="st-overview" data-testid="usm-labels">
1673
- ${a.rows.length===0?d`<div class="empty">
1674
- <h2>${e.noLabelsTitle}</h2>
1675
- <p>${e.noLabelsBody}</p>
1676
- </div>`:m}
1677
- <ol class="st-list">
1678
- ${O(a.rows,s=>s.id,s=>mi(e,t,s))}
1679
- </ol>
1680
- <div>
1681
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Sn(e,t)}>
1682
- ${e.newLabelButton}
1683
- </button>
1684
- </div>
1685
- </section>
1686
- `,mi=(e,t,a)=>{const s={type:"label",id:a.id};return d`
1687
- <li class="st-row" data-label=${a.id} data-dpk-target=${T(s)} style=${A(a.tone)}>
1688
- <span class="label-swatch" aria-hidden="true"></span>
1689
- <span class="st-name">
1690
- <dpk-component-inline-edit
1691
- .value=${a.name}
1692
- .label=${e.labelNameLabel}
1693
- @dpk-commit=${K(n=>t.dispatch({type:"SET_LABEL_NAME",target:s,payload:{name:n}}))}
1694
- ></dpk-component-inline-edit>
1695
- </span>
1696
- ${Xe(e,a.storyCount,a.share)}
1697
- ${je(e,a.tone,n=>t.dispatch({type:"SET_LABEL_TONE",target:s,payload:{tone:n}}))}
1698
- ${$e(e,{ids:t.state.labels.map(n=>n.id),row:a,deleteLabel:e.deleteLabelAria,reorder:n=>t.dispatch({type:"REORDER_LABEL",target:s,payload:{after:n}}),remove:()=>t.dispatch({type:"DELETE_LABEL",target:s,payload:{}})})}
1699
- </li>
1700
- `},hi=(e,t,a)=>d`
1701
- <section class="st-overview" data-testid="usm-members">
1702
- ${a.rows.length===0?d`<div class="empty">
1703
- <h2>${e.noMembersTitle}</h2>
1704
- <p>${e.noMembersBody}</p>
1705
- </div>`:m}
1706
- <ol class="st-list">
1707
- ${O(a.rows,s=>s.id,s=>bi(e,t,s))}
1708
- </ol>
1709
- <div>
1710
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>$n(e,t)}>
1711
- ${e.newMemberButton}
1712
- </button>
1713
- </div>
1714
- </section>
1715
- `,bi=(e,t,a)=>{const s={type:"member",id:a.id};return d`
1716
- <li class="st-row" data-member=${a.id} data-dpk-target=${T(s)} style=${A(a.tone)}>
1717
- <span class="member-avatar" aria-hidden="true">${qe(a.name)}</span>
1718
- <span class="st-name">
1719
- <dpk-component-inline-edit
1720
- .value=${a.name}
1721
- .label=${e.memberNameLabel}
1722
- @dpk-commit=${K(n=>t.dispatch({type:"SET_MEMBER_NAME",target:s,payload:{name:n}}))}
1723
- ></dpk-component-inline-edit>
1724
- </span>
1725
- ${Xe(e,a.storyCount,a.share)}
1726
- ${je(e,a.tone,n=>t.dispatch({type:"SET_MEMBER_TONE",target:s,payload:{tone:n}}))}
1727
- ${$e(e,{ids:t.state.members.map(n=>n.id),row:a,deleteLabel:e.deleteMemberAria,reorder:n=>t.dispatch({type:"REORDER_MEMBER",target:s,payload:{after:n}}),remove:()=>t.dispatch({type:"DELETE_MEMBER",target:s,payload:{}})})}
1728
- </li>
1729
- `},gi=(e,t,a)=>d`
1730
- <section class="ms-overview" data-testid="usm-milestones">
1731
- ${a.length===0?d`<div class="empty">
1732
- <h2>${e.noMilestonesTitle}</h2>
1733
- <p>${e.noMilestonesBody}</p>
1734
- </div>`:m}
1735
- <ol class="ms-timeline">
1736
- ${O(a,s=>s.id,s=>fi(e,t,s))}
1737
- <li class="ms-add">
1738
- <span class="ms-when" aria-hidden="true"></span>
1739
- <span class="ms-rail" aria-hidden="true"><span class="ms-node ms-node--add"></span></span>
1740
- <div class="ms-body">
1741
- <button class="dpk-btn dpk-btn--ghost" type="button" @click=${()=>Qt(e,t)}>
1742
- ${e.newMilestoneButton}
1743
- </button>
1744
- </div>
1745
- </li>
1746
- </ol>
1747
- </section>
1748
- `,fi=(e,t,a)=>{const s=a.id;return d`
1749
- <li class="ms-entry" data-milestone-card=${s} data-dpk-target=${T({type:"milestone",id:s})}>
1750
- <div class="ms-when">
1751
- ${a.timeframe===""?d`<span class="ms-timeframe" data-empty="true">${e.timeframeUnset}</span>`:d`<span class="ms-timeframe">${a.timeframe}</span>`}
1752
- </div>
1753
- <span class="ms-rail" aria-hidden="true"><span class="ms-node">${a.ordinal}</span></span>
1754
- <article class="ms-body">
1755
- <h3 class="ms-name">
1756
- <dpk-component-inline-edit
1757
- .value=${a.name}
1758
- .label=${e.milestoneNameLabel}
1759
- @dpk-commit=${K(n=>t.dispatch({type:"SET_MILESTONE_NAME",target:{type:"milestone",id:s},payload:{name:n}}))}
1760
- ></dpk-component-inline-edit>
1761
- </h3>
1762
- ${a.description===""?d`<p class="ms-description" data-empty="true">${e.milestoneNoDescription}</p>`:d`<p class="ms-description">${a.description}</p>`}
1763
- <dl class="ms-facts">
1764
- <div>
1765
- <dt>${e.storiesLabel}</dt>
1766
- <dd>
1767
- <strong>${a.storyCount}</strong>
1768
- <span>${e.shareOfStories(Math.round(a.share*100))}</span>
1769
- </dd>
1770
- </div>
1771
- <div>
1772
- <dt>${e.coverageLabel}</dt>
1773
- <dd>
1774
- <strong>${e.coverage(a.coverage.covered,a.coverage.total)}</strong>
1775
- <span class="ms-meter" aria-hidden="true">
1776
- <span
1777
- style=${`width:${a.coverage.total===0?0:a.coverage.covered/a.coverage.total*100}%`}
1778
- ></span>
1779
- </span>
1780
- </dd>
1781
- </div>
1782
- </dl>
1783
- ${a.progress.length===0?m:vi(e,a)}
1784
- </article>
1785
- </li>
1786
- `},vi=(e,t)=>d`
1787
- <div class="ms-breakdown">
1788
- ${Ft(t.progress,e.progressAria(t.progress.map(a=>`${a.name} ${a.count}`).join(", ")))}
1789
- <ul class="ms-legend" aria-hidden="true">
1790
- ${t.progress.map(a=>d`<li data-status=${a.id} style=${A(a.tone)}>
1791
- ${ie(a)}
1792
- <span class="ms-breakdown-name">${a.name}</span>
1793
- <span class="ms-breakdown-count">${a.count}</span>
1794
- </li>`)}
1795
- </ul>
1796
- </div>
1797
- `,yi=(e,t,a,s)=>{if(a.kind!=="picking-step")return m;const n=S(t.state,a.storyId),i=Q(t.state,a.activityId);if(!n||!i)return m;const r=i.steps[0]?.id;return d`<div class="comment-pop move-dialog" id="move-dialog" popover="manual">
1798
- <span class="dpk-label">${e.moveDialogLabel}</span>
1799
- <select class="dpk-select" aria-label=${e.moveDialogSelectLabel} data-move-dialog>
1800
- ${i.steps.map(o=>d`<option value=${o.id} ?selected=${o.id===r}>${o.name}</option>`)}
1801
- </select>
1802
- <div class="pop-actions">
1803
- <button
1804
- class="dpk-btn dpk-btn--accent"
1805
- type="button"
1806
- @click=${o=>{const p=(Ba(o.currentTarget,HTMLElement)?.closest("#move-dialog")??null)?.querySelector("select")?.value??r;p?s.confirm(p):s.cancel()}}
1807
- >
1808
- ${e.moveConfirm}
1809
- </button>
1810
- <button class="dpk-btn" type="button" @click=${s.cancel}>${e.moveCancel}</button>
1811
- </div>
1812
- </div>`},ki=(e,t,a,s)=>{const{state:n}=t;return d`
1813
- <div class="board-bar">
1814
- <div class="page-tabs" role="tablist" aria-label=${e.pageTabsLabel}>
1815
- ${$t(n).map(i=>wi(t,i,a,xi(e,i),Ei(n,i)))}
1816
- </div>
1817
- ${a==="map"&&n.activities.some(i=>i.steps.length>0)?Yn(e,t):m}
1818
- ${li(e,t,s)}
1819
- </div>
1820
- `},xi=(e,t)=>{switch(t){case"map":return e.mapTab;case"milestones":return e.milestonesTab;case"statuses":return e.statusesTab;case"labels":return e.labelsTab;case"members":return e.membersTab;case"burndown":return e.burndownTab}},Ei=(e,t)=>{switch(t){case"map":return e.stories.length;case"milestones":return e.milestones.length;case"statuses":return e.statuses.length;case"labels":return e.labels.length;case"members":return e.members.length;case"burndown":return e.snapshots.length}},wi=(e,t,a,s,n)=>d`<a
1821
- role="tab"
1822
- data-tab=${t}
1823
- aria-selected=${t===a?"true":"false"}
1824
- href=${e.hashFor({tab:t==="map"?null:t})}
1825
- >${s}<span class="page-tab-count">${n}</span></a
1826
- >`,Si=e=>S(e.state,e.navigation.story),$i=(e,t,a)=>{const{state:s}=t,n={type:"story",id:a.id},i=()=>t.navigate({story:null}),r=N(s,`${a.activityId}.${a.stepId}`),o=Y(s,a.milestoneId);return d`<aside
1827
- class="story-panel"
1828
- role="dialog"
1829
- aria-label=${e.panelLabel(a.name)}
1830
- data-testid="usm-story-panel"
1831
- data-story=${a.id}
1832
- tabindex="-1"
1833
- >
1834
- <header class="sp-head">
1835
- <span class="sp-where">
1836
- ${r?d`<span>${r.activity.name}</span><span>${r.step.name}</span>`:m}
1837
- <span>${o?.name??e.unassigned}</span>
1838
- </span>
1839
- <button class="dpk-icon-btn" type="button" data-role="close" aria-label=${e.closePanelAria} @click=${i}>
1840
- ${Me()}
1841
- </button>
1842
- </header>
1843
- <div class="sp-body">
1844
- <h2 class="sp-title">
1845
- <dpk-component-inline-edit
1846
- wrap
1847
- .value=${a.name}
1848
- .label=${e.storyTitleLabel}
1849
- @dpk-commit=${K(l=>t.dispatch({type:"SET_STORY_NAME",target:n,payload:{name:l}}))}
1850
- ></dpk-component-inline-edit>
1851
- </h2>
1852
- ${s.statuses.length===0?m:Ti(e,t,a)}
1853
- ${W(s,"estimates")?_i(e,t,a):m}
1854
- ${W(s,"assignees")?Ai(e,t,a):m}
1855
- ${Ii(e,t,a)} ${Li(e,t,a)}
1856
- <section class="sp-field">
1857
- <h3>${e.storyDescriptionLabel}</h3>
1858
- <dpk-component-inline-edit
1859
- multiline
1860
- markdown
1861
- class="sp-description"
1862
- .value=${a.description??""}
1863
- .label=${e.storyDescriptionLabel}
1864
- @dpk-commit=${K(l=>t.dispatch({type:"SET_STORY_DESCRIPTION",target:n,payload:{description:l}}))}
1865
- ></dpk-component-inline-edit>
1866
- </section>
1867
- ${Mi(e,t,a)} ${Di(e,t,a)}
1868
- </div>
1869
- <footer class="sp-foot">
1870
- <button
1871
- class="dpk-btn dpk-btn--ghost sp-delete"
1872
- type="button"
1873
- @click=${()=>{t.dispatch({type:"DELETE_STORY",target:n,payload:{}}).ok&&i()}}
1874
- >
1875
- ${Le()}<span>${e.deleteStoryButton}</span>
1876
- </button>
1877
- </footer>
1878
- </aside>`},Ti=(e,t,a)=>{const s=me(t.state),n=a.statusId;return d`<section class="sp-field">
1879
- <h3 id="sp-status-label">${e.storyStatusLabel}</h3>
1880
- <div class="sp-statuses" role="radiogroup" aria-labelledby="sp-status-label">
1881
- ${s.map(i=>d`<button
1882
- class="sp-status"
1883
- type="button"
1884
- role="radio"
1885
- data-status=${i.id}
1886
- aria-checked=${String(i.id===n)}
1887
- style=${A(i.tone)}
1888
- @click=${()=>{i.id!==n&&t.dispatch({type:"SET_STORY_STATUS",target:{type:"story",id:a.id},payload:{statusId:i.id}})}}
1889
- >
1890
- ${ie(i)}<span>${i.name}</span>
1891
- </button>`)}
1892
- </div>
1893
- </section>`},_i=(e,t,a)=>{const s=a.estimateId??null,n=r=>()=>{r!==s&&t.dispatch({type:"SET_STORY_ESTIMATE",target:{type:"story",id:a.id},payload:{estimateId:r}})},i=[{id:null,name:e.unestimated,title:e.unestimated},...t.state.estimates.map(r=>({id:r.id,name:r.name,title:e.estimateText(r.name,r.points)}))];return d`<section class="sp-field">
1894
- <h3 id="sp-estimate-label" class="sp-field-head">
1895
- <span>${e.storyEstimateLabel}</span>
1896
- <a class="sp-manage" href=${t.hashFor({tab:"burndown",story:null})}>${e.manageEstimates}</a>
1897
- </h3>
1898
- ${t.state.estimates.length===0?d`<p class="sp-empty">${e.noEstimates}</p>`:d`<div class="sp-estimates" role="radiogroup" aria-labelledby="sp-estimate-label">
1899
- ${i.map(r=>d`<button
1900
- class="sp-estimate"
1901
- type="button"
1902
- role="radio"
1903
- data-estimate=${r.id??""}
1904
- title=${r.title}
1905
- aria-checked=${String(r.id===s)}
1906
- @click=${n(r.id)}
1907
- >
1908
- ${r.name}
1909
- </button>`)}
1910
- </div>`}
1911
- </section>`},Ai=(e,t,a)=>{const s=a.assigneeId??null,n=i=>()=>{i!==s&&t.dispatch({type:"SET_STORY_ASSIGNEE",target:{type:"story",id:a.id},payload:{memberId:i}})};return d`<section class="sp-field">
1912
- <h3 id="sp-assignee-label" class="sp-field-head">
1913
- <span>${e.storyAssigneeLabel}</span>
1914
- <a class="sp-manage" href=${t.hashFor({tab:"members",story:null})}>${e.manageMembers}</a>
1915
- </h3>
1916
- ${t.state.members.length===0?d`<p class="sp-empty">${e.storyNoMembers}</p>`:d`<div class="sp-assignees" role="radiogroup" aria-labelledby="sp-assignee-label">
1917
- <button
1918
- class="sp-assignee"
1919
- type="button"
1920
- role="radio"
1921
- data-assignee=""
1922
- aria-checked=${String(s===null)}
1923
- @click=${n(null)}
1924
- >
1925
- ${e.noAssignee}
1926
- </button>
1927
- ${t.state.members.map(i=>d`<button
1928
- class="sp-assignee"
1929
- type="button"
1930
- role="radio"
1931
- data-assignee=${i.id}
1932
- aria-checked=${String(i.id===s)}
1933
- style=${A(i.tone)}
1934
- @click=${n(i.id)}
1935
- >
1936
- <span class="sp-avatar" aria-hidden="true">${qe(i.name)}</span>${i.name}
1937
- </button>`)}
1938
- </div>`}
1939
- </section>`},Ii=(e,t,a)=>{const s={type:"story",id:a.id},n=new Set(a.labelIds??[]);return d`<section class="sp-field">
1940
- <h3 id="sp-labels-label" class="sp-field-head">
1941
- <span>${e.storyLabelsLabel}</span>
1942
- <a class="sp-manage" href=${t.hashFor({tab:"labels",story:null})}>${e.manageLabels}</a>
1943
- </h3>
1944
- ${t.state.labels.length===0?d`<p class="sp-empty">${e.storyNoLabels}</p>`:d`<div class="sp-labels" role="group" aria-labelledby="sp-labels-label">
1945
- ${t.state.labels.map(i=>{const r=n.has(i.id);return d`<button
1946
- class="sp-label"
1947
- type="button"
1948
- data-label=${i.id}
1949
- aria-pressed=${String(r)}
1950
- style=${A(i.tone)}
1951
- @click=${()=>t.dispatch({type:r?"REMOVE_STORY_LABEL":"ADD_STORY_LABEL",target:s,payload:{labelId:i.id}})}
1952
- >
1953
- <span class="sp-label-dot" aria-hidden="true"></span><span>${i.name}</span>
1954
- </button>`})}
1955
- </div>`}
1956
- </section>`},Li=(e,t,a)=>{const{state:s}=t,n=aa(s,a.id),i=(l,p,h)=>t.dispatch({type:l,target:{type:"story",id:p},payload:{blockerId:h}}),r=(l,p,h,$)=>{const w=S(s,p);if(!w)return m;const E=me(s).find(c=>c.id===w.statusId);return d`<li
1957
- data-blocker=${l==="data-blocker"?p:m}
1958
- data-dependent=${l==="data-dependent"?p:m}
1959
- data-finished=${String(ta(s,w))}
1960
- >
1961
- <a class="sp-dep-name" href=${t.hashFor({story:p})} style=${A(E?.tone)}>
1962
- ${E?ie(E):m}<span>${w.name}</span>
1963
- </a>
1964
- <button
1965
- class="dpk-icon-btn"
1966
- type="button"
1967
- data-role="remove"
1968
- aria-label=${h(w.name)}
1969
- @click=${$}
1970
- >
1971
- ${Me()}
1972
- </button>
1973
- </li>`},o=(l,p,h,$)=>h.length===0?m:d`<select
1974
- class="dpk-select sp-dep-add"
1975
- data-role=${l}
1976
- aria-label=${p}
1977
- @change=${w=>{const E=w.currentTarget instanceof HTMLSelectElement?w.currentTarget:null;!E||E.value===""||($(E.value),E.value="")}}
1978
- >
1979
- <option value="" selected>${p}</option>
1980
- ${h.map(w=>d`<option value=${w.id}>${w.name}</option>`)}
1981
- </select>`;return d`<section class="sp-field sp-deps">
1982
- <h3>${e.storyDependenciesLabel}</h3>
1983
- <div class="sp-dep-side">
1984
- <h4>${e.storyBlockersLabel}</h4>
1985
- ${n.blockers.length===0?d`<p class="sp-empty">${e.storyNoBlockers}</p>`:d`<ul class="sp-dep-list">
1986
- ${n.blockers.map(l=>r("data-blocker",l,e.removeBlockerAria,()=>i("REMOVE_STORY_BLOCKER",a.id,l)))}
1987
- </ul>`}
1988
- ${o("add-blocker",e.addBlockerPlaceholder,An(s,a.id),l=>i("ADD_STORY_BLOCKER",a.id,l))}
1989
- </div>
1990
- <div class="sp-dep-side">
1991
- <h4>${e.storyDependentsLabel}</h4>
1992
- ${n.dependents.length===0?d`<p class="sp-empty">${e.storyNoDependents}</p>`:d`<ul class="sp-dep-list">
1993
- ${n.dependents.map(l=>r("data-dependent",l,e.removeDependentAria,()=>i("REMOVE_STORY_BLOCKER",l,a.id)))}
1994
- </ul>`}
1995
- ${o("add-dependent",e.addDependentPlaceholder,In(s,a.id),l=>i("ADD_STORY_BLOCKER",l,a.id))}
1996
- </div>
1997
- </section>`},Mi=(e,t,a)=>{const s={type:"story",id:a.id},n=a.links??[],i=r=>{r.preventDefault();const o=r.currentTarget instanceof HTMLFormElement?r.currentTarget:null,l=o?.querySelector("input");if(!o||!l)return;const p=l.value.trim();if(!Qe(Be,p).success){l.setAttribute("aria-invalid","true");return}t.dispatch({type:"ADD_STORY_LINK",target:s,payload:{url:p}}).ok&&(l.removeAttribute("aria-invalid"),o.reset())};return d`<section class="sp-field">
1998
- <h3>${e.storyLinksLabel}</h3>
1999
- ${n.length===0?m:d`<ul class="sp-links">
2000
- ${n.map(r=>{const o=Ee(r.url),l=r.label??o.text;return d`<li data-kind=${o.kind}>
2001
- <a class="sp-link" href=${r.url} target="_blank" rel="noopener noreferrer" title=${r.url}>
2002
- ${Vt(o.kind)}
2003
- <span class="sp-link-text">${l}</span>
2004
- <span class="sp-link-url">${o.title===l?r.url:o.title}</span>
2005
- </a>
2006
- <button
2007
- class="dpk-icon-btn"
2008
- type="button"
2009
- aria-label=${e.removeLinkAria(l)}
2010
- @click=${()=>t.dispatch({type:"REMOVE_STORY_LINK",target:s,payload:{url:r.url}})}
2011
- >
2012
- ${Me()}
2013
- </button>
2014
- </li>`})}
2015
- </ul>`}
2016
- <form class="sp-add-link" @submit=${i}>
2017
- <input
2018
- class="dpk-input"
2019
- type="url"
2020
- inputmode="url"
2021
- placeholder="https://"
2022
- aria-label=${e.linkUrlLabel}
2023
- @input=${r=>{r.currentTarget instanceof HTMLInputElement&&r.currentTarget.removeAttribute("aria-invalid")}}
2024
- />
2025
- <button class="dpk-btn" type="submit">${e.addLinkButton}</button>
2026
- </form>
2027
- </section>`},Di=(e,t,a)=>{const s=t.comments.filter(i=>i.target.type==="story"&&i.target.id===a.id),n=i=>{const r=i.querySelector("textarea"),o=r?.value.trim()??"";if(!r||o==="")return;t.dispatch({type:"comment",target:`story:${a.id}`,payload:{body:o}}).ok&&(r.value="")};return d`<section class="sp-field sp-comments">
2028
- <h3>${e.storyCommentsLabel}${s.length>0?d`<span class="sp-count">${s.length}</span>`:m}</h3>
2029
- ${s.length===0?m:d`<ol class="sp-comment-list">
2030
- ${s.map(i=>d`<li>${Ya(i)}</li>`)}
2031
- </ol>`}
2032
- <form
2033
- class="sp-comment-form"
2034
- @submit=${i=>{i.preventDefault(),i.currentTarget instanceof HTMLFormElement&&n(i.currentTarget)}}
2035
- >
2036
- <textarea
2037
- class="dpk-textarea"
2038
- rows="3"
2039
- aria-label=${e.storyCommentsLabel}
2040
- data-dpk-text-key=${`story:${a.id}`}
2041
- @keydown=${i=>{if(i.isComposing||i.key!=="Enter"||!(i.ctrlKey||i.metaKey))return;i.preventDefault();const r=i.currentTarget instanceof HTMLElement?i.currentTarget.closest("form"):null;r&&n(r)}}
2042
- ></textarea>
2043
- <div class="sp-comment-actions">
2044
- <button class="dpk-btn dpk-btn--accent" type="submit">${e.commentSubmit}</button>
2045
- </div>
2046
- </form>
2047
- </section>`},Ri=Z`
2048
- /* Over the main column's edge, below the header: the page's own controls stay in reach. */
2049
- .story-panel {
2050
- position: absolute;
2051
- top: 0;
2052
- right: 0;
2053
- bottom: 0;
2054
- z-index: 20;
2055
- display: grid;
2056
- grid-template-rows: auto minmax(0, 1fr) auto;
2057
- width: min(420px, 100%);
2058
- border-left: 1px solid var(--dpk-rule-strong);
2059
- background: var(--dpk-paper-raised);
2060
- box-shadow: var(--dpk-shadow-lg);
2061
- animation: sp-slide-in 220ms var(--dpk-ease);
2062
- }
2063
- /* The panel takes the focus when it opens; the ring belongs to its controls. */
2064
- .story-panel:focus {
2065
- outline: none;
2066
- }
2067
- @keyframes sp-slide-in {
2068
- from {
2069
- opacity: 0;
2070
- transform: translateX(24px);
2071
- }
2072
- }
2073
- .sp-head {
2074
- display: flex;
2075
- align-items: center;
2076
- gap: 10px;
2077
- padding: 14px 22px 12px;
2078
- min-height: 60px;
2079
- box-sizing: border-box;
2080
- border-bottom: 1px solid var(--dpk-rule);
2081
- }
2082
- .sp-where {
2083
- display: flex;
2084
- flex-wrap: wrap;
2085
- gap: 2px 0;
2086
- flex: 1 1 auto;
2087
- min-width: 0;
2088
- color: var(--dpk-ink-faint);
2089
- font-size: 11.5px;
2090
- font-weight: 600;
2091
- }
2092
- .sp-where > span + span::before {
2093
- content: '›';
2094
- margin: 0 6px;
2095
- color: var(--dpk-rule-strong);
2096
- }
2097
- .sp-body {
2098
- display: grid;
2099
- align-content: start;
2100
- gap: 22px;
2101
- overflow: auto;
2102
- padding: 18px 22px 24px;
2103
- }
2104
- .sp-title {
2105
- margin: 0;
2106
- font-size: 19px;
2107
- font-weight: 700;
2108
- letter-spacing: -0.015em;
2109
- line-height: 1.35;
2110
- }
2111
- .sp-title dpk-component-inline-edit {
2112
- display: block;
2113
- margin: 0 -4px;
2114
- }
2115
- .sp-field {
2116
- display: grid;
2117
- gap: 8px;
2118
- }
2119
- .sp-field h3 {
2120
- margin: 0;
2121
- color: var(--dpk-ink-faint);
2122
- font-size: 11px;
2123
- font-weight: 650;
2124
- letter-spacing: 0.04em;
2125
- text-transform: uppercase;
2126
- }
2127
- .sp-statuses {
2128
- display: flex;
2129
- flex-wrap: wrap;
2130
- gap: 6px;
2131
- }
2132
- .sp-status {
2133
- display: inline-flex;
2134
- align-items: center;
2135
- gap: 7px;
2136
- padding: 5px 12px 5px 9px;
2137
- border: 1px solid var(--dpk-rule-strong);
2138
- border-radius: 999px;
2139
- background: var(--dpk-paper-raised);
2140
- color: var(--dpk-ink);
2141
- font: inherit;
2142
- font-size: 12.5px;
2143
- font-weight: 600;
2144
- cursor: pointer;
2145
- transition:
2146
- background 140ms var(--dpk-ease),
2147
- border-color 140ms var(--dpk-ease);
2148
- }
2149
- .sp-status:hover {
2150
- border-color: color-mix(in oklab, var(--usm-tone) 60%, var(--dpk-rule-strong));
2151
- }
2152
- .sp-status:focus-visible {
2153
- outline: none;
2154
- box-shadow: var(--dpk-focus);
2155
- }
2156
- .sp-status[aria-checked='true'] {
2157
- border-color: var(--usm-tone);
2158
- background: color-mix(in oklab, var(--usm-tone) 14%, var(--dpk-paper-raised));
2159
- box-shadow: inset 0 0 0 1px var(--usm-tone);
2160
- }
2161
- .sp-estimates {
2162
- display: flex;
2163
- flex-wrap: wrap;
2164
- gap: 4px;
2165
- }
2166
- .sp-estimate {
2167
- min-width: 34px;
2168
- padding: 4px 10px;
2169
- border: 1px solid var(--dpk-rule-strong);
2170
- border-radius: var(--dpk-radius-sm);
2171
- background: var(--dpk-paper-raised);
2172
- color: var(--dpk-ink-soft);
2173
- font: inherit;
2174
- font-family: var(--dpk-mono);
2175
- font-size: 12px;
2176
- font-weight: 650;
2177
- font-variant-numeric: tabular-nums;
2178
- cursor: pointer;
2179
- transition:
2180
- background 140ms var(--dpk-ease),
2181
- border-color 140ms var(--dpk-ease);
2182
- }
2183
- .sp-estimate[data-estimate=''] {
2184
- font-family: inherit;
2185
- font-weight: 550;
2186
- }
2187
- .sp-estimate:hover {
2188
- border-color: var(--dpk-rule-hover);
2189
- }
2190
- .sp-estimate:focus-visible {
2191
- outline: none;
2192
- box-shadow: var(--dpk-focus);
2193
- }
2194
- .sp-estimate[aria-checked='true'] {
2195
- border-color: var(--dpk-ink);
2196
- background: var(--dpk-ink);
2197
- color: var(--dpk-paper-raised);
2198
- }
2199
- .sp-assignees {
2200
- display: flex;
2201
- flex-wrap: wrap;
2202
- gap: 4px;
2203
- }
2204
- .sp-assignee {
2205
- display: inline-flex;
2206
- align-items: center;
2207
- gap: 6px;
2208
- padding: 3px 10px 3px 4px;
2209
- border: 1px solid var(--dpk-rule-strong);
2210
- border-radius: 999px;
2211
- background: var(--dpk-paper-raised);
2212
- color: var(--dpk-ink-soft);
2213
- font: inherit;
2214
- font-size: 12px;
2215
- font-weight: 600;
2216
- cursor: pointer;
2217
- transition:
2218
- background 140ms var(--dpk-ease),
2219
- border-color 140ms var(--dpk-ease);
2220
- }
2221
- .sp-assignee[data-assignee=''] {
2222
- padding-left: 10px;
2223
- }
2224
- .sp-assignee:hover {
2225
- border-color: var(--dpk-rule-hover);
2226
- }
2227
- .sp-assignee:focus-visible {
2228
- outline: none;
2229
- box-shadow: var(--dpk-focus);
2230
- }
2231
- .sp-assignee[aria-checked='true'] {
2232
- border-color: var(--usm-tone, var(--dpk-ink));
2233
- background: color-mix(in oklab, var(--usm-tone, var(--dpk-ink)) 12%, var(--dpk-paper-raised));
2234
- color: var(--dpk-ink);
2235
- }
2236
- .sp-avatar {
2237
- display: inline-grid;
2238
- place-items: center;
2239
- width: 18px;
2240
- height: 18px;
2241
- border-radius: 50%;
2242
- background: var(--usm-tone);
2243
- color: var(--dpk-paper-raised);
2244
- font-size: 10px;
2245
- font-weight: 700;
2246
- line-height: 1;
2247
- }
2248
- .sp-field-head {
2249
- display: flex;
2250
- align-items: baseline;
2251
- justify-content: space-between;
2252
- gap: 8px;
2253
- }
2254
- .sp-manage {
2255
- color: var(--dpk-ink-faint);
2256
- font-size: 11px;
2257
- font-weight: 600;
2258
- letter-spacing: 0;
2259
- text-transform: none;
2260
- }
2261
- .sp-manage:hover {
2262
- color: var(--dpk-blue);
2263
- }
2264
- .sp-empty {
2265
- margin: 0;
2266
- color: var(--dpk-ink-faint);
2267
- font-size: 12.5px;
2268
- }
2269
- .sp-labels {
2270
- display: flex;
2271
- flex-wrap: wrap;
2272
- gap: 6px;
2273
- }
2274
- .sp-label {
2275
- display: inline-flex;
2276
- align-items: center;
2277
- gap: 6px;
2278
- padding: 3px 10px 3px 8px;
2279
- border: 1px dashed var(--dpk-rule-strong);
2280
- border-radius: 999px;
2281
- background: transparent;
2282
- color: var(--dpk-ink-soft);
2283
- font: inherit;
2284
- font-size: 12px;
2285
- font-weight: 600;
2286
- cursor: pointer;
2287
- transition:
2288
- background 140ms var(--dpk-ease),
2289
- border-color 140ms var(--dpk-ease);
2290
- }
2291
- .sp-label:hover {
2292
- border-color: color-mix(in oklab, var(--usm-tone) 60%, var(--dpk-rule-strong));
2293
- }
2294
- .sp-label:focus-visible {
2295
- outline: none;
2296
- box-shadow: var(--dpk-focus);
2297
- }
2298
- .sp-label[aria-pressed='true'] {
2299
- border-style: solid;
2300
- border-color: color-mix(in oklab, var(--usm-tone) 55%, transparent);
2301
- background: color-mix(in oklab, var(--usm-tone) 14%, var(--dpk-paper-raised));
2302
- color: var(--dpk-ink);
2303
- }
2304
- .sp-label-dot {
2305
- width: 7px;
2306
- height: 7px;
2307
- border-radius: 50%;
2308
- background: var(--usm-tone);
2309
- opacity: 0.5;
2310
- }
2311
- .sp-label[aria-pressed='true'] .sp-label-dot {
2312
- opacity: 1;
2313
- }
2314
- .sp-deps {
2315
- gap: 12px;
2316
- }
2317
- .sp-dep-side {
2318
- display: grid;
2319
- gap: 6px;
2320
- }
2321
- .sp-dep-side h4 {
2322
- margin: 0;
2323
- color: var(--dpk-ink-soft);
2324
- font-size: 11.5px;
2325
- font-weight: 650;
2326
- }
2327
- .sp-dep-list {
2328
- display: grid;
2329
- gap: 4px;
2330
- margin: 0;
2331
- padding: 0;
2332
- list-style: none;
2333
- }
2334
- .sp-dep-list li {
2335
- display: flex;
2336
- align-items: center;
2337
- gap: 4px;
2338
- border: 1px solid var(--dpk-rule);
2339
- border-radius: var(--dpk-radius-sm);
2340
- background: var(--dpk-paper-sunken);
2341
- }
2342
- .sp-dep-name {
2343
- display: flex;
2344
- align-items: center;
2345
- gap: 8px;
2346
- flex: 1 1 auto;
2347
- min-width: 0;
2348
- padding: 6px 4px 6px 10px;
2349
- color: var(--dpk-ink);
2350
- font-size: 12.5px;
2351
- font-weight: 600;
2352
- text-decoration: none;
2353
- }
2354
- .sp-dep-name span {
2355
- overflow: hidden;
2356
- text-overflow: ellipsis;
2357
- white-space: nowrap;
2358
- }
2359
- .sp-dep-name:hover span {
2360
- text-decoration: underline;
2361
- }
2362
- .sp-dep-list li[data-finished='true'] .sp-dep-name span {
2363
- color: var(--dpk-ink-faint);
2364
- text-decoration: line-through;
2365
- }
2366
- .sp-dep-add {
2367
- width: 100%;
2368
- }
2369
- .sp-description {
2370
- display: block;
2371
- margin: 0 -4px;
2372
- color: var(--dpk-ink-soft);
2373
- font-size: 13px;
2374
- line-height: 1.65;
2375
- }
2376
- .sp-links {
2377
- display: grid;
2378
- gap: 4px;
2379
- margin: 0;
2380
- padding: 0;
2381
- list-style: none;
2382
- }
2383
- .sp-links li {
2384
- display: flex;
2385
- align-items: center;
2386
- gap: 4px;
2387
- border: 1px solid var(--dpk-rule);
2388
- border-radius: var(--dpk-radius-sm);
2389
- background: var(--dpk-paper-sunken);
2390
- }
2391
- .sp-link {
2392
- display: grid;
2393
- grid-template-columns: 16px minmax(0, 1fr);
2394
- column-gap: 9px;
2395
- align-items: center;
2396
- flex: 1 1 auto;
2397
- min-width: 0;
2398
- padding: 7px 4px 7px 10px;
2399
- color: var(--dpk-ink);
2400
- text-decoration: none;
2401
- }
2402
- .sp-link:hover .sp-link-text {
2403
- text-decoration: underline;
2404
- }
2405
- .sp-link svg {
2406
- grid-row: span 2;
2407
- width: 16px;
2408
- height: 16px;
2409
- color: var(--dpk-ink-soft);
2410
- }
2411
- .sp-link-text {
2412
- overflow: hidden;
2413
- font-family: var(--dpk-mono);
2414
- font-size: 12.5px;
2415
- font-weight: 650;
2416
- text-overflow: ellipsis;
2417
- white-space: nowrap;
2418
- }
2419
- .sp-link-url {
2420
- overflow: hidden;
2421
- color: var(--dpk-ink-faint);
2422
- font-size: 11px;
2423
- text-overflow: ellipsis;
2424
- white-space: nowrap;
2425
- }
2426
- .sp-add-link {
2427
- display: flex;
2428
- gap: 6px;
2429
- }
2430
- .sp-add-link input {
2431
- flex: 1 1 auto;
2432
- min-width: 0;
2433
- }
2434
- .sp-add-link input[aria-invalid='true'] {
2435
- border-color: var(--dpk-accent);
2436
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--dpk-accent) 22%, transparent);
2437
- }
2438
- /* The handoff dock floats at the bottom right, so the footer keeps left. */
2439
- .sp-field h3 .sp-count {
2440
- margin-left: 6px;
2441
- font-family: var(--dpk-mono);
2442
- letter-spacing: 0;
2443
- }
2444
- .sp-comment-list {
2445
- display: grid;
2446
- gap: 6px;
2447
- margin: 0;
2448
- padding: 0;
2449
- list-style: none;
2450
- }
2451
- .sp-comment-list li {
2452
- padding: 8px 11px;
2453
- border-radius: var(--dpk-radius-sm);
2454
- background: var(--dpk-paper-sunken);
2455
- color: var(--dpk-ink);
2456
- font-size: 12.5px;
2457
- line-height: 1.6;
2458
- white-space: pre-wrap;
2459
- overflow-wrap: anywhere;
2460
- }
2461
- .sp-comment-form {
2462
- display: grid;
2463
- gap: 6px;
2464
- }
2465
- .sp-comment-form textarea {
2466
- resize: vertical;
2467
- min-height: 64px;
2468
- }
2469
- .sp-comment-actions {
2470
- display: flex;
2471
- justify-content: flex-end;
2472
- }
2473
- .sp-foot {
2474
- display: flex;
2475
- justify-content: flex-start;
2476
- padding: 12px 22px;
2477
- border-top: 1px solid var(--dpk-rule);
2478
- }
2479
- .sp-delete {
2480
- display: inline-flex;
2481
- align-items: center;
2482
- gap: 6px;
2483
- color: var(--dpk-ink-soft);
2484
- }
2485
- .sp-delete svg {
2486
- width: 14px;
2487
- height: 14px;
2488
- }
2489
- `,Oi=e=>{const t=e.stories.length,a=i=>t===0?0:i/t,s=i=>e.stories.filter(r=>r.statusId===i).length;return{rows:e.statuses.map((i,r)=>{const o=s(i.id);return{id:i.id,name:i.name,tone:i.tone,icon:i.icon,progress:e.statuses.length<=1?1:r/(e.statuses.length-1),previousId:e.statuses[r-1]?.id??null,nextId:e.statuses[r+1]?.id??null,weight:r===e.statuses.length-1?null:_t(i),storyCount:o,share:a(o)}})}},Ni=Z`
2490
- :host {
2491
- --dpk-usm-accent: var(--dpk-blue);
2492
- }
2493
- /*
2494
- * A wide table must scroll inside itself and never widen the template shell.
2495
- * It scrolls both ways so the backbone can stick to its top and the
2496
- * milestone column to its left: a box that scrolls only sideways still
2497
- * becomes the sticky ancestor, and its top would never move. Capped near the
2498
- * viewport height, it fits under the tab bar once the page brings it up.
2499
- */
2500
- .map-scroll {
2501
- min-width: 0;
2502
- max-width: 100%;
2503
- max-height: max(320px, calc(100dvh - 170px));
2504
- overflow: auto;
2505
- overscroll-behavior-x: contain;
2506
- border: 1px solid var(--dpk-rule);
2507
- border-radius: var(--dpk-radius-lg);
2508
- background: var(--dpk-paper-sunken);
2509
- box-shadow: var(--dpk-shadow);
2510
- }
2511
- .map {
2512
- display: grid;
2513
- gap: 0;
2514
- min-width: max-content;
2515
- /* The map scrolls on its own: its last row clears the hand-off dock at the end of that scroll. */
2516
- padding-bottom: var(--dpk-dock-clearance, 0px);
2517
- }
2518
- .map-row {
2519
- display: grid;
2520
- grid-template-columns: 140px repeat(var(--cols), minmax(180px, 240px));
2521
- }
2522
- .map-row + .map-row {
2523
- border-top: 1px solid var(--dpk-rule);
2524
- }
2525
-
2526
- /* The backbone (activities and steps) stays at the top while the rows scroll. */
2527
- .map-head {
2528
- position: sticky;
2529
- top: 0;
2530
- z-index: 3;
2531
- border-bottom: 1px solid var(--dpk-rule-strong);
2532
- box-shadow: 0 8px 14px -12px var(--dpk-shade-3);
2533
- }
2534
-
2535
- /* The leading column (axis corners and milestone labels) stays at the left
2536
- while the steps scroll sideways; it is opaque so cards pass under it. */
2537
- .corner:first-child,
2538
- .row-lead {
2539
- position: sticky;
2540
- left: 0;
2541
- z-index: 2;
2542
- box-shadow: 1px 0 0 var(--dpk-rule);
2543
- }
2544
- .row-lead {
2545
- display: flex;
2546
- flex-direction: column;
2547
- align-items: flex-start;
2548
- justify-content: center;
2549
- gap: 2px;
2550
- min-width: 0;
2551
- padding: 8px 6px 8px 4px;
2552
- background: var(--dpk-paper-sunken);
2553
- }
2554
- /* Row names and their meta line share one column: past the grip (15px), its
2555
- gap (6px) and the inline edit's own padding (4px). */
2556
- .row-lead {
2557
- --usm-row-indent: 25px;
2558
- }
2559
- .row-meta {
2560
- display: flex;
2561
- flex-wrap: wrap;
2562
- gap: 2px 8px;
2563
- padding-left: var(--usm-row-indent);
2564
- font-size: 10.5px;
2565
- color: var(--dpk-ink-faint);
2566
- }
2567
- .row-timeframe {
2568
- color: var(--dpk-ink-soft);
2569
- font-weight: 600;
2570
- }
2571
- .row-count {
2572
- font-family: var(--dpk-mono);
2573
- font-variant-numeric: tabular-nums;
2574
- }
2575
- .corner,
2576
- .act-head,
2577
- .col-head,
2578
- .row-head,
2579
- .cell {
2580
- padding: 10px;
2581
- }
2582
- .corner {
2583
- background: var(--dpk-paper-sunken);
2584
- display: grid;
2585
- gap: 3px;
2586
- align-content: start;
2587
- }
2588
-
2589
- /* Above the content: the page tabs (map / milestones) and, on the map, the
2590
- unit toggle (group band vs one column per activity). */
2591
-
2592
- .board-bar {
2593
- border-bottom: 1px solid var(--dpk-rule);
2594
- /* Stays on top while a long milestone list scrolls under it. */
2595
- position: sticky;
2596
- top: 0;
2597
- z-index: 5;
2598
- margin: -24px -24px 0;
2599
- padding: 12px 24px;
2600
- background: var(--dpk-glass);
2601
- backdrop-filter: saturate(1.6) blur(14px);
2602
- display: flex;
2603
- flex-wrap: wrap;
2604
- align-items: center;
2605
- gap: 10px 14px;
2606
- min-width: 0;
2607
- }
2608
-
2609
- /* The two pages: an underlined tab strip, heavier than the view toggle. It
2610
- scrolls sideways on a phone rather than cutting off the last tab; the
2611
- bottom padding keeps the selected tab's underline inside the scroller. */
2612
- .page-tabs {
2613
- display: inline-flex;
2614
- gap: 4px;
2615
- min-width: 0;
2616
- max-width: 100%;
2617
- margin-right: auto;
2618
- margin-bottom: -13px;
2619
- padding-bottom: 13px;
2620
- overflow-x: auto;
2621
- scrollbar-width: none;
2622
- }
2623
- .page-tabs [role='tab'] {
2624
- position: relative;
2625
- display: inline-flex;
2626
- align-items: center;
2627
- gap: 8px;
2628
- padding: 7px 12px;
2629
- border-radius: var(--dpk-radius-sm);
2630
- color: var(--dpk-ink-soft);
2631
- font-size: 13.5px;
2632
- font-weight: 600;
2633
- letter-spacing: -0.005em;
2634
- text-decoration: none;
2635
- white-space: nowrap;
2636
- transition:
2637
- color 160ms var(--dpk-ease),
2638
- background 160ms var(--dpk-ease);
2639
- }
2640
- .page-tabs [role='tab']:hover {
2641
- color: var(--dpk-ink);
2642
- background: var(--dpk-paper-inset);
2643
- }
2644
- .page-tabs [role='tab']:focus-visible {
2645
- outline: none;
2646
- box-shadow: var(--dpk-focus);
2647
- }
2648
- .page-tabs [role='tab'][aria-selected='true'] {
2649
- color: var(--dpk-ink);
2650
- font-weight: 700;
2651
- }
2652
- .page-tabs [role='tab'][aria-selected='true']::after {
2653
- content: '';
2654
- position: absolute;
2655
- left: 12px;
2656
- right: 12px;
2657
- bottom: -13px;
2658
- height: 2px;
2659
- border-radius: 2px;
2660
- background: var(--dpk-usm-accent);
2661
- }
2662
- .page-tab-count {
2663
- min-width: 18px;
2664
- padding: 0 6px;
2665
- border-radius: 999px;
2666
- background: var(--dpk-rule);
2667
- color: var(--dpk-ink-soft);
2668
- font-family: var(--dpk-mono);
2669
- font-size: 10.5px;
2670
- font-weight: 650;
2671
- font-variant-numeric: tabular-nums;
2672
- line-height: 17px;
2673
- text-align: center;
2674
- }
2675
- [role='tab'][aria-selected='true'] .page-tab-count {
2676
- background: var(--dpk-blue-soft);
2677
- color: var(--dpk-blue);
2678
- }
2679
-
2680
- /* A sunken track with the selected segment raised on top of it. */
2681
- .segmented {
2682
- display: inline-flex;
2683
- gap: 2px;
2684
- padding: 3px;
2685
- max-width: 100%;
2686
- overflow-x: auto;
2687
- scrollbar-width: none;
2688
- border: 1px solid var(--dpk-rule);
2689
- border-radius: 999px;
2690
- background: var(--dpk-paper-sunken);
2691
- box-shadow: inset 0 1px 3px var(--dpk-shade-1);
2692
- }
2693
-
2694
- .tab {
2695
- padding: 5px 14px;
2696
- border-radius: 999px;
2697
- font-size: 12px;
2698
- font-weight: 550;
2699
- text-decoration: none;
2700
- color: var(--dpk-ink-soft);
2701
- white-space: nowrap;
2702
- transition:
2703
- background 160ms var(--dpk-ease),
2704
- color 160ms var(--dpk-ease),
2705
- box-shadow 160ms var(--dpk-ease);
2706
- }
2707
-
2708
- .tab:hover {
2709
- color: var(--dpk-ink);
2710
- background: var(--dpk-paper-inset);
2711
- }
2712
-
2713
- .tab[data-current='true'] {
2714
- background: var(--dpk-paper-raised);
2715
- color: var(--dpk-ink);
2716
- font-weight: 650;
2717
- box-shadow: var(--dpk-bevel), var(--dpk-shadow-xs);
2718
- }
2719
-
2720
- /* Activity band: raised above the working canvas. A head spans its steps,
2721
- so its contents stay in view beside the sticky column while the map
2722
- scrolls sideways. */
2723
- .act-head {
2724
- position: relative;
2725
- display: grid;
2726
- align-content: start;
2727
- gap: 7px;
2728
- border-left: 1px solid var(--dpk-rule);
2729
- background: var(--dpk-paper-raised);
2730
- box-shadow:
2731
- var(--dpk-bevel),
2732
- inset 0 -1px 0 var(--dpk-rule-strong);
2733
- font-size: 13px;
2734
- font-weight: 650;
2735
- letter-spacing: -0.005em;
2736
- }
2737
- .act-title,
2738
- .act-meta,
2739
- .act-steps {
2740
- position: sticky;
2741
- left: 150px;
2742
- width: min(100%, 340px);
2743
- min-width: 0;
2744
- }
2745
- .act-title {
2746
- display: flex;
2747
- align-items: center;
2748
- gap: 8px;
2749
- }
2750
- .act-title > dpk-component-inline-edit {
2751
- flex: 1 1 auto;
2752
- min-width: 0;
2753
- }
2754
- .act-meta {
2755
- display: flex;
2756
- align-items: center;
2757
- gap: 10px;
2758
- }
2759
- .act-meta .status-bar {
2760
- flex: 1 1 auto;
2761
- }
2762
- /* Whose experience the activity is: a label, editable in place. */
2763
- .act-actor {
2764
- flex: none;
2765
- max-width: 60%;
2766
- padding: 0 4px;
2767
- border-radius: 999px;
2768
- background: var(--dpk-blue-soft);
2769
- color: var(--dpk-blue);
2770
- font-size: 11px;
2771
- font-weight: 650;
2772
- line-height: 20px;
2773
- }
2774
- .act-actor[data-empty='true'] {
2775
- background: transparent;
2776
- opacity: 0;
2777
- transition: opacity 150ms ease;
2778
- }
2779
- .act-head:hover .act-actor[data-empty='true'],
2780
- .act-actor[data-empty='true']:focus-within {
2781
- opacity: 1;
2782
- }
2783
- /* The group view gives the steps no columns; the head lists them instead. */
2784
- .act-steps {
2785
- display: grid;
2786
- gap: 3px;
2787
- margin: 0;
2788
- padding: 0 0 0 18px;
2789
- color: var(--dpk-ink-soft);
2790
- font-size: 11.5px;
2791
- font-weight: 500;
2792
- line-height: 1.45;
2793
- }
2794
- .act-steps li::marker {
2795
- color: var(--dpk-ink-faint);
2796
- font-family: var(--dpk-mono);
2797
- font-size: 10px;
2798
- }
2799
- .act-head .count,
2800
- .col-head .count {
2801
- flex: 0 0 auto;
2802
- padding: 0 6px;
2803
- border-radius: 999px;
2804
- background: var(--dpk-rule);
2805
- line-height: 16px;
2806
- }
2807
- .col-head {
2808
- display: flex;
2809
- align-items: center;
2810
- gap: 6px;
2811
- border-left: 1px solid var(--dpk-rule);
2812
- background: var(--dpk-paper-sunken);
2813
- transition: background 160ms var(--dpk-ease);
2814
- }
2815
- .col-head h4 {
2816
- flex: 1 1 auto;
2817
- min-width: 0;
2818
- }
2819
- .col-head[data-current='true'] {
2820
- background: color-mix(in srgb, var(--dpk-usm-accent) 8%, var(--dpk-paper-sunken));
2821
- }
2822
- .col-head h4 {
2823
- font-size: 13px;
2824
- font-weight: 600;
2825
- margin: 0;
2826
- }
2827
-
2828
- .row-head {
2829
- display: flex;
2830
- align-items: center;
2831
- gap: 6px;
2832
- }
2833
-
2834
- /* Milestone row label: plain text with a grip, not a chip. The "add
2835
- milestone" row reuses \`.row-head\` for its ghost button. */
2836
- .row-head[data-milestone] {
2837
- align-self: stretch;
2838
- margin: 0;
2839
- padding: 0 6px 0 0;
2840
- color: var(--dpk-ink);
2841
- font-size: 12.5px;
2842
- font-weight: 650;
2843
- max-width: 100%;
2844
- }
2845
-
2846
- .row-head[draggable='true'] {
2847
- cursor: grab;
2848
- -webkit-user-select: none;
2849
- user-select: none;
2850
- }
2851
-
2852
- .row-head[draggable='true'] dpk-component-inline-edit {
2853
- -webkit-user-drag: none;
2854
- }
2855
-
2856
- .row-head[draggable='true']:active {
2857
- cursor: grabbing;
2858
- }
2859
-
2860
- .row-grip {
2861
- flex: 0 0 auto;
2862
- display: inline-flex;
2863
- color: var(--dpk-ink-faint);
2864
- }
2865
-
2866
- .row-grip svg {
2867
- display: block;
2868
- width: 15px;
2869
- height: 15px;
2870
- }
2871
-
2872
- /* Row-level drag affordance: only the grip answers the hover. */
2873
- .map-row[data-draggable='true']:hover .row-grip {
2874
- color: var(--dpk-blue);
2875
- }
2876
- .map-row[data-draggable='true'] {
2877
- cursor: grab;
2878
- }
2879
- .map-row[data-draggable='true']:active {
2880
- cursor: grabbing;
2881
- }
2882
-
2883
- /*
2884
- * Dragging state: entire row fades. Never disable pointer events on the
2885
- * source here: Lit applies this state in the microtask right after
2886
- * \`dragstart\`, and Blink then re-hit-tests the pointer and aborts the drag
2887
- * when the source is no longer under it.
2888
- */
2889
- .map-row[data-row-dragging='true'] {
2890
- opacity: 0.45;
2891
- }
2892
-
2893
- /* Drop target: entire row highlights. */
2894
- .map-row[data-row-drop='true'] {
2895
- outline: 2px dashed var(--dpk-blue);
2896
- outline-offset: -2px;
2897
- }
2898
-
2899
- /* Unassigned is a holding area, not a release: its label is quieter. */
2900
- .map-row[data-unassigned='true'] .row-head {
2901
- padding-left: var(--usm-row-indent);
2902
- color: var(--dpk-ink-soft);
2903
- }
2904
-
2905
- /* Cells are the working canvas: sunken, with a quiet dot lattice, so raised
2906
- story cards read as things placed on the board. */
2907
- .cell {
2908
- border-left: 1px solid var(--dpk-rule);
2909
- border-top: 1px solid var(--dpk-rule);
2910
- display: flex;
2911
- flex-direction: column;
2912
- gap: 8px;
2913
- min-height: 100px;
2914
- background: var(--dpk-dots), var(--dpk-paper-sunken);
2915
- transition: background 160ms var(--dpk-ease);
2916
- }
2917
- .cell[data-drop='true'] {
2918
- outline: 2px dashed var(--dpk-blue);
2919
- outline-offset: -2px;
2920
- }
2921
- .card-list {
2922
- display: grid;
2923
- gap: 10px;
2924
- align-content: start;
2925
- flex: 1 1 auto;
2926
- }
2927
- .add-cell {
2928
- margin-top: auto;
2929
- opacity: 0;
2930
- transition:
2931
- opacity 180ms var(--dpk-ease),
2932
- background 160ms var(--dpk-ease),
2933
- border-color 160ms var(--dpk-ease),
2934
- color 160ms var(--dpk-ease);
2935
- border: 1px dashed var(--dpk-rule-strong);
2936
- border-radius: var(--dpk-radius-sm);
2937
- background: transparent;
2938
- color: var(--dpk-ink-faint);
2939
- padding: 4px 8px;
2940
- font-size: 11.5px;
2941
- }
2942
- .add-cell:hover {
2943
- background: var(--dpk-blue-soft);
2944
- border-color: var(--dpk-blue);
2945
- color: var(--dpk-blue);
2946
- }
2947
- .cell:hover .add-cell {
2948
- opacity: 1;
2949
- }
2950
- .empty {
2951
- border: 1px dashed var(--dpk-rule-strong);
2952
- border-radius: var(--dpk-radius-lg);
2953
- padding: 28px 24px;
2954
- background: var(--dpk-dots), var(--dpk-paper-sunken);
2955
- max-width: 620px;
2956
- display: grid;
2957
- gap: 10px;
2958
- }
2959
- .count {
2960
- font-family: var(--dpk-mono);
2961
- font-variant-numeric: tabular-nums;
2962
- font-size: 10px;
2963
- color: var(--dpk-ink-faint);
2964
- }
2965
-
2966
- /* ------------------------------------------------------ milestones tab */
2967
-
2968
- /* The release slices as a timeline, like the experience section of a
2969
- portfolio: when on the left, one node per slice on a single rail, what
2970
- and how big on the right. Nothing is boxed; the rail carries the order. */
2971
- .ms-overview {
2972
- --ms-node: 30px;
2973
- --ms-when: 132px;
2974
- --ms-gap: 44px;
2975
- display: grid;
2976
- gap: 28px;
2977
- max-width: 920px;
2978
- padding: 28px 0 40px;
2979
- }
2980
- .ms-timeline {
2981
- margin: 0;
2982
- padding: 0;
2983
- list-style: none;
2984
- }
2985
- .ms-entry,
2986
- .ms-add {
2987
- display: grid;
2988
- grid-template-columns: var(--ms-when) var(--ms-node) minmax(0, 1fr);
2989
- grid-template-areas: 'when rail body';
2990
- column-gap: 24px;
2991
- }
2992
- .ms-entry {
2993
- padding-bottom: var(--ms-gap);
2994
- }
2995
- .ms-when {
2996
- grid-area: when;
2997
- display: flex;
2998
- justify-content: flex-end;
2999
- padding-top: 5px;
3000
- }
3001
- .ms-timeframe {
3002
- color: var(--dpk-ink);
3003
- font-size: 13px;
3004
- font-weight: 650;
3005
- font-variant-numeric: tabular-nums;
3006
- letter-spacing: 0.01em;
3007
- text-align: right;
3008
- }
3009
- .ms-timeframe[data-empty='true'] {
3010
- color: var(--dpk-ink-faint);
3011
- font-weight: 500;
3012
- }
3013
-
3014
- /* The rail runs through every entry's padding, so the nodes read as one line;
3015
- it starts at the first node and fades out into the add node. */
3016
- .ms-rail {
3017
- grid-area: rail;
3018
- position: relative;
3019
- display: flex;
3020
- justify-content: center;
3021
- }
3022
- .ms-rail::before {
3023
- content: '';
3024
- position: absolute;
3025
- top: 0;
3026
- bottom: calc(-1 * var(--ms-gap));
3027
- left: calc(50% - 1px);
3028
- width: 2px;
3029
- border-radius: 1px;
3030
- background: var(--dpk-rule-strong);
3031
- }
3032
- .ms-entry:first-child .ms-rail::before {
3033
- top: calc(var(--ms-node) / 2);
3034
- }
3035
- .ms-add .ms-rail::before {
3036
- bottom: auto;
3037
- height: calc(var(--ms-node) / 2);
3038
- background: repeating-linear-gradient(to bottom, var(--dpk-rule-strong) 0 3px, transparent 3px 7px);
3039
- }
3040
- .ms-node {
3041
- position: relative;
3042
- display: grid;
3043
- place-items: center;
3044
- width: var(--ms-node);
3045
- height: var(--ms-node);
3046
- box-sizing: border-box;
3047
- border: 1px solid var(--dpk-rule-strong);
3048
- border-radius: 50%;
3049
- background: var(--dpk-paper-raised);
3050
- color: var(--dpk-ink);
3051
- font-family: var(--dpk-mono);
3052
- font-size: 12px;
3053
- font-weight: 700;
3054
- font-variant-numeric: tabular-nums;
3055
- /* A ring of page color cuts the rail around the node. */
3056
- box-shadow:
3057
- 0 0 0 5px var(--dpk-paper),
3058
- var(--dpk-bevel),
3059
- var(--dpk-shadow-xs);
3060
- transition:
3061
- border-color 160ms var(--dpk-ease),
3062
- color 160ms var(--dpk-ease);
3063
- }
3064
- .ms-entry:hover .ms-node,
3065
- .ms-entry:focus-within .ms-node {
3066
- border-color: var(--dpk-blue);
3067
- color: var(--dpk-blue-strong);
3068
- }
3069
- .ms-node--add {
3070
- border-style: dashed;
3071
- background: var(--dpk-paper);
3072
- box-shadow: 0 0 0 5px var(--dpk-paper);
3073
- }
3074
- .ms-node--add::before,
3075
- .ms-node--add::after {
3076
- content: '';
3077
- position: absolute;
3078
- left: 50%;
3079
- top: 50%;
3080
- width: 10px;
3081
- height: 1.5px;
3082
- border-radius: 1px;
3083
- background: var(--dpk-ink-faint);
3084
- transform: translate(-50%, -50%);
3085
- }
3086
- .ms-node--add::after {
3087
- transform: translate(-50%, -50%) rotate(90deg);
3088
- }
3089
- .ms-add .ms-body {
3090
- display: flex;
3091
- align-items: center;
3092
- min-height: var(--ms-node);
3093
- }
3094
- /* The label lines up with the names above; the button's padding hangs out. */
3095
- .ms-add .dpk-btn {
3096
- margin-left: -12px;
3097
- }
3098
-
3099
- .ms-body {
3100
- grid-area: body;
3101
- display: grid;
3102
- gap: 10px;
3103
- min-width: 0;
3104
- justify-items: start;
3105
- }
3106
- .ms-name {
3107
- justify-self: stretch;
3108
- min-width: 0;
3109
- margin: 0;
3110
- padding-top: 1px;
3111
- font-size: 19px;
3112
- font-weight: 700;
3113
- line-height: 1.4;
3114
- letter-spacing: -0.015em;
3115
- }
3116
- /* The field pads its text by 4px; pull it out by as much so the name lines
3117
- up with the description and keeps its place when editing starts. */
3118
- .ms-name dpk-component-inline-edit {
3119
- display: block;
3120
- margin: 0 -4px;
3121
- }
3122
- .ms-description {
3123
- margin: 0;
3124
- max-width: 64ch;
3125
- color: var(--dpk-ink-soft);
3126
- font-size: 14px;
3127
- line-height: 1.75;
3128
- white-space: pre-wrap;
3129
- }
3130
- .ms-description[data-empty='true'] {
3131
- color: var(--dpk-ink-faint);
3132
- font-size: 13px;
3133
- }
3134
- .ms-facts {
3135
- display: flex;
3136
- flex-wrap: wrap;
3137
- gap: 10px 36px;
3138
- margin: 6px 0 0;
3139
- }
3140
- .ms-facts dt {
3141
- margin-bottom: 3px;
3142
- color: var(--dpk-ink-faint);
3143
- font-size: 11px;
3144
- font-weight: 600;
3145
- letter-spacing: 0.02em;
3146
- }
3147
- .ms-facts dd {
3148
- display: flex;
3149
- align-items: center;
3150
- gap: 10px;
3151
- margin: 0;
3152
- color: var(--dpk-ink-faint);
3153
- font-size: 12px;
3154
- }
3155
- .ms-facts strong {
3156
- color: var(--dpk-ink);
3157
- font-size: 15px;
3158
- font-weight: 650;
3159
- font-variant-numeric: tabular-nums;
3160
- }
3161
- .ms-meter {
3162
- display: block;
3163
- width: 72px;
3164
- height: 4px;
3165
- border-radius: 2px;
3166
- background: var(--dpk-paper-inset);
3167
- overflow: hidden;
3168
- }
3169
- .ms-meter > span {
3170
- display: block;
3171
- height: 100%;
3172
- border-radius: inherit;
3173
- background: var(--dpk-blue);
3174
- }
3175
-
3176
- /* Where the slice's stories sit across the backbone, in activity tones. */
3177
- .ms-breakdown {
3178
- display: grid;
3179
- gap: 10px;
3180
- width: min(100%, 460px);
3181
- margin-top: 4px;
3182
- }
3183
- .ms-breakdown .status-bar {
3184
- height: 8px;
3185
- }
3186
- .ms-legend {
3187
- display: flex;
3188
- flex-wrap: wrap;
3189
- gap: 6px 16px;
3190
- margin: 0;
3191
- padding: 0;
3192
- list-style: none;
3193
- }
3194
- .ms-legend li {
3195
- display: inline-flex;
3196
- align-items: center;
3197
- gap: 6px;
3198
- color: var(--dpk-ink-soft);
3199
- font-size: 12px;
3200
- }
3201
- .ms-breakdown-count {
3202
- color: var(--dpk-ink-faint);
3203
- font-family: var(--dpk-mono);
3204
- font-size: 11px;
3205
- font-variant-numeric: tabular-nums;
3206
- }
3207
-
3208
- /* Narrow: the date moves above the name, the rail stays on the left. */
3209
- @media (max-width: 640px) {
3210
- .ms-overview {
3211
- --ms-node: 26px;
3212
- }
3213
- .ms-entry,
3214
- .ms-add {
3215
- grid-template-columns: var(--ms-node) minmax(0, 1fr);
3216
- grid-template-areas:
3217
- 'rail when'
3218
- 'rail body';
3219
- column-gap: 16px;
3220
- }
3221
- .ms-add {
3222
- grid-template-areas: 'rail body';
3223
- }
3224
- .ms-add .ms-when {
3225
- display: none;
3226
- }
3227
- .ms-when {
3228
- justify-content: flex-start;
3229
- padding: 4px 0 2px;
3230
- }
3231
- .ms-timeframe {
3232
- text-align: left;
3233
- }
3234
- }
3235
-
3236
- /* ------------------------------------------------------- statuses tab */
3237
-
3238
- /* The statuses in order, one row each: color, name, how many stories stand
3239
- there, the palette to recolor it, and the order / delete tools. */
3240
- .st-overview {
3241
- display: grid;
3242
- gap: 20px;
3243
- max-width: 1040px;
3244
- padding: 28px 0 40px;
3245
- }
3246
- .st-list {
3247
- display: grid;
3248
- margin: 0;
3249
- padding: 0;
3250
- list-style: none;
3251
- border: 1px solid var(--dpk-rule);
3252
- border-radius: var(--dpk-radius-lg);
3253
- background: var(--dpk-paper-raised);
3254
- box-shadow: var(--dpk-shadow-xs);
3255
- }
3256
- .st-row {
3257
- display: grid;
3258
- /* Fixed tool columns keep the unset row, which has no tools, in line. */
3259
- grid-template-columns: 16px minmax(120px, 1fr) minmax(140px, 200px) 150px 84px;
3260
- align-items: center;
3261
- gap: 14px;
3262
- padding: 12px 16px;
3263
- }
3264
- /* A status also has the weight of the step to the next one. */
3265
- .st-row--weighted {
3266
- grid-template-columns: 16px minmax(120px, 1fr) minmax(140px, 200px) 96px 150px 84px;
3267
- }
3268
- .st-weight {
3269
- display: grid;
3270
- gap: 3px;
3271
- }
3272
- .st-weight-label {
3273
- color: var(--dpk-ink-faint);
3274
- font-size: 10.5px;
3275
- font-weight: 600;
3276
- letter-spacing: 0.02em;
3277
- }
3278
- .st-weight .dpk-input {
3279
- width: 100%;
3280
- min-height: 28px;
3281
- padding: 3px 8px;
3282
- font-family: var(--dpk-mono);
3283
- font-size: 12px;
3284
- font-variant-numeric: tabular-nums;
3285
- }
3286
- .st-row + .st-row {
3287
- border-top: 1px solid var(--dpk-rule);
3288
- }
3289
- .st-name {
3290
- min-width: 0;
3291
- font-size: 14px;
3292
- font-weight: 650;
3293
- }
3294
- .st-share {
3295
- display: grid;
3296
- gap: 5px;
3297
- }
3298
- .st-share-text {
3299
- color: var(--dpk-ink-faint);
3300
- font-family: var(--dpk-mono);
3301
- font-size: 11px;
3302
- font-variant-numeric: tabular-nums;
3303
- }
3304
- .st-meter {
3305
- height: 5px;
3306
- border-radius: 3px;
3307
- background: var(--dpk-paper-sunken);
3308
- overflow: hidden;
3309
- }
3310
- .st-meter > span {
3311
- display: block;
3312
- height: 100%;
3313
- border-radius: 3px;
3314
- background: var(--usm-tone);
3315
- }
3316
- .st-tones {
3317
- display: inline-flex;
3318
- flex-wrap: wrap;
3319
- gap: 5px;
3320
- }
3321
- /* The status's own icon opens the menu of icons. */
3322
- .st-icon-trigger {
3323
- display: inline-grid;
3324
- place-items: center;
3325
- width: 30px;
3326
- height: 30px;
3327
- margin: -7px;
3328
- padding: 0;
3329
- border: 1px solid transparent;
3330
- border-radius: var(--dpk-radius-sm);
3331
- background: transparent;
3332
- cursor: pointer;
3333
- transition:
3334
- background 140ms var(--dpk-ease),
3335
- border-color 140ms var(--dpk-ease);
3336
- }
3337
- .st-icon-trigger:hover,
3338
- .st-icon-trigger[aria-expanded='true'] {
3339
- border-color: var(--dpk-rule-strong);
3340
- background: var(--dpk-paper-raised);
3341
- box-shadow: var(--dpk-shadow-xs);
3342
- }
3343
- .st-icon-trigger:focus-visible {
3344
- outline: none;
3345
- box-shadow: var(--dpk-focus);
3346
- }
3347
- .comment-pop.icon-menu {
3348
- grid-template-columns: repeat(5, 36px);
3349
- gap: 4px;
3350
- padding: 8px;
3351
- }
3352
- .icon-option {
3353
- display: inline-grid;
3354
- place-items: center;
3355
- width: 36px;
3356
- height: 36px;
3357
- padding: 0;
3358
- border: 1px solid transparent;
3359
- border-radius: var(--dpk-radius-sm);
3360
- background: transparent;
3361
- cursor: pointer;
3362
- }
3363
- .icon-option .status-icon {
3364
- width: 18px;
3365
- height: 18px;
3366
- }
3367
- .icon-option:hover,
3368
- .icon-option:focus-visible {
3369
- outline: none;
3370
- background: var(--dpk-paper-inset);
3371
- }
3372
- .icon-option[aria-checked='true'] {
3373
- border-color: color-mix(in oklab, var(--usm-tone) 55%, transparent);
3374
- background: color-mix(in oklab, var(--usm-tone) 12%, transparent);
3375
- }
3376
- .st-tone {
3377
- width: 18px;
3378
- height: 18px;
3379
- padding: 0;
3380
- border: 2px solid var(--dpk-paper-raised);
3381
- border-radius: 50%;
3382
- background: var(--usm-tone);
3383
- box-shadow: 0 0 0 1px var(--dpk-rule-strong);
3384
- cursor: pointer;
3385
- transition: box-shadow 150ms ease;
3386
- }
3387
- .st-tone:hover {
3388
- box-shadow: 0 0 0 1px var(--usm-tone);
3389
- }
3390
- .st-tone[aria-checked='true'] {
3391
- box-shadow: 0 0 0 2px var(--usm-tone);
3392
- }
3393
- .st-tone:focus-visible {
3394
- outline: none;
3395
- box-shadow: var(--dpk-focus);
3396
- }
3397
- /* A label's color, where a status shows its icon. */
3398
- .label-swatch {
3399
- width: 12px;
3400
- height: 12px;
3401
- border-radius: 4px;
3402
- background: var(--usm-tone);
3403
- }
3404
- /* A member's initial in their color, where a label shows its swatch. */
3405
- .member-avatar {
3406
- display: inline-grid;
3407
- place-items: center;
3408
- width: 22px;
3409
- height: 22px;
3410
- border-radius: 50%;
3411
- background: var(--usm-tone);
3412
- color: var(--dpk-paper-raised);
3413
- font-size: 11px;
3414
- font-weight: 700;
3415
- line-height: 1;
3416
- }
3417
- .st-tools {
3418
- display: inline-flex;
3419
- gap: 2px;
3420
- }
3421
- .st-tools .dpk-icon-btn {
3422
- width: 26px;
3423
- height: 26px;
3424
- font-size: 13px;
3425
- }
3426
- @media (max-width: 640px) {
3427
- .st-row {
3428
- grid-template-columns: 16px minmax(0, 1fr) auto;
3429
- row-gap: 8px;
3430
- }
3431
- .st-row--weighted {
3432
- grid-template-columns: 16px minmax(0, 1fr) auto;
3433
- }
3434
- .st-share,
3435
- .st-weight,
3436
- .st-tones {
3437
- grid-column: 2 / -1;
3438
- }
3439
- .st-weight:empty {
3440
- display: none;
3441
- }
3442
- /* The tools stay on the name's row, so the rows below are the name's width. */
3443
- .st-tools {
3444
- grid-column: 3;
3445
- grid-row: 1;
3446
- }
3447
- }
3448
-
3449
- /* Step picker shown after a cross-activity drop. */
3450
- .move-dialog {
3451
- min-width: 220px;
3452
- }
3453
- `,H={kind:"idle"},Ci={width:300,height:240},Bi={width:228,height:116},Yi=240,Ui=31,zi=14,Pi={width:320,height:220};class fa extends st{static{this.styles=[st.styles,Ni,Gt,Ht,Ri,oi,Nn,ci,Ua]}definitionFor(t){return Yt(t)}static{this.properties={mode:{state:!0}}}#s=new Va(this);#e=new za(this);#t=null;#a=null;constructor(){super(),this.mode=H,new De(this,{open:()=>this.#n()!==null,closesOn:t=>this.#i(t),ownsEscape:t=>this.mode.kind==="idle"&&(t.includes(this)||t[0]===document.body||t[0]===document.documentElement),dismiss:()=>this.context().navigate({story:null})}),new De(this,{open:()=>this.mode.kind==="filtering",closesOn:t=>!t.some(a=>a instanceof Element&&(a.id==="filter-menu"||a.hasAttribute("data-filter-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=H}),new De(this,{open:()=>this.mode.kind==="choosing-features",closesOn:t=>!t.some(a=>a instanceof Element&&(a.id==="features-menu"||a.hasAttribute("data-features-trigger"))),ownsEscape:()=>!0,dismiss:()=>this.mode=H})}renderRegions(t){return{main:this.#d(t)}}updated(){if(super.updated(),this.#o(),this.#r(),this.mode.kind==="picking-icon"){const a=this.renderRoot.querySelector("#icon-menu"),s=this.renderRoot.querySelector(`[data-icon-trigger="${CSS.escape(this.mode.statusId)}"]`);a&&s&&this.#e.open(a,s,Bi);return}if(this.mode.kind==="filtering"){const a=this.renderRoot.querySelector("#filter-menu"),s=this.renderRoot.querySelector(`[data-filter-trigger="${CSS.escape(this.mode.key)}"]`),n=(a?.childElementCount??0)*Ui+zi;a&&s&&this.#e.open(a,s,{width:Yi,height:n});return}if(this.mode.kind==="choosing-features"){const a=this.renderRoot.querySelector("#features-menu"),s=this.renderRoot.querySelector("[data-features-trigger]");a&&s&&this.#e.open(a,s,Pi);return}if(this.mode.kind!=="picking-step")return;const t=this.renderRoot.querySelector("#move-dialog");t&&this.#e.open(t,Pa(this.mode.point.x,this.mode.point.y),Ci)}#n(){return this.renderRoot.querySelector(".story-panel")}#i(t){const a=this.#n(),s=this.renderRoot.querySelector(".dpk-main");return!a||!s||t.includes(a)||!t.includes(s)?!1:!t.some(n=>n instanceof Element&&(n.localName==="dpk-internal-usm-story-card"||n.hasAttribute("popover")))}#r(){const t=this.#n(),a=t?.dataset.story??null,s=this.#t;if(a===s)return;this.#t=a;const n=this.shadowRoot?.activeElement??null;if(t){(!n||!t.contains(n))&&t.focus({preventScroll:!0});return}s===null||n!==null&&n.isConnected||this.renderRoot.querySelector(`dpk-internal-usm-story-card[data-story="${CSS.escape(s)}"]`)?.focus({preventScroll:!0})}#o(){const t=this.renderRoot.querySelector(".page-tabs"),a=t?.querySelector('[aria-selected="true"]'),s=a?.getAttribute("href")??null;!t||!a||s===this.#a||(this.#a=s,Fa(t,a))}#d(t){const a=pe(this.locale),s=Tt(t.state,t.navigation);return d`
3454
- ${ki(a,t,s,{open:this.mode.kind==="choosing-features",toggle:()=>this.mode=this.mode.kind==="choosing-features"?H:{kind:"choosing-features"},close:()=>this.mode=H})}
3455
- ${this.#p(a,t,s)} ${this.#l(a,t,s)}
3456
- ${yi(a,t,this.mode,{confirm:n=>this.#g(n),cancel:()=>this.mode=H})}
3457
- `}#l(t,a,s){if(s!=="map")return m;const n=Si(a);return n?$i(t,a,n):m}#p(t,a,s){switch(s){case"milestones":return gi(t,a,xn(a.state));case"statuses":return Wn(t,a,Oi(a.state),{openFor:this.mode.kind==="picking-icon"?this.mode.statusId:null,toggle:n=>{const i=this.mode.kind==="picking-icon"&&this.mode.statusId===n;this.mode=i?H:{kind:"picking-icon",statusId:n}},close:()=>this.mode=H});case"labels":return ui(t,a,yn(a.state));case"members":return hi(t,a,kn(a.state));case"burndown":return ai(t,a,new Date);case"map":return this.#c(t,a)}}#c(t,a){return Bn({m:t,context:a,drag:this.#s,handlers:{selectStory:s=>this.#u(s),dropOnCell:(s,n)=>this.#m(s,n),dropOnGroupCell:(s,n,i)=>this.#h(s,n,i),dropOnMilestoneRow:(s,n)=>this.#b(s,n)},filterMenu:{openFor:this.mode.kind==="filtering"?this.mode.key:null,toggle:s=>{const n=this.mode.kind==="filtering"&&this.mode.key===s;this.mode=n?H:{kind:"filtering",key:s}},close:()=>this.mode=H}})}#u(t){const a=this.context(),s=S(a.state,t);s&&a.navigate({step:s.stepId,story:s.id})}#m(t,a){const s=this.context();s.dispatch(qt(s.state,t,a.item.id,a.hoveredId,a.place))}#h(t,a,s){const n=this.context(),i=S(n.state,s.item.id);if(!i)return;if(i.activityId!==t){this.mode={kind:"picking-step",storyId:i.id,activityId:t,milestoneId:a,point:{x:s.event.clientX,y:s.event.clientY}};return}const r=jt(n.state,t,a,i.id,s.hoveredId,s.place);r&&n.dispatch(r)}#b(t,a){const s=this.context(),n=s.state.milestones.map(r=>r.id),i=Zt(n,a.item.id,a.hoveredId,a.place);i&&s.dispatch(i)}#g(t){const a=this.mode;if(a.kind!=="picking-step")return;const s=this.context();s.dispatch(Xt(s.state,a.storyId,a.activityId,t,a.milestoneId)),this.mode=H}}const va=()=>{fn(),on(),customElements.get("dpk-template-usm")||customElements.define("dpk-template-usm",fa)},Fi=Object.freeze(Object.defineProperty({__proto__:null,DpkTemplateUsm:fa,IDLE_MODE:H,allUsmIds:q,applyUsmAction:vt,defineUsmElement:va,describeUsmAction:Mt,dropAfter:vn,emptyUsmBase:ht,findActivity:Q,findMilestone:Y,findStep:N,findStory:S,flatSteps:Ue,parseUsmBase:ut,resolveCellDrop:qt,resolveGroupDrop:jt,resolveMilestoneDrop:Zt,resolvePickedStepMove:Xt,resolveUsmNavigation:Ct,serializeUsmAction:Dt,storiesInCell:xe,storyCountForStep:gt,usmAction:ks,usmActions:y,usmCommentTargets:Ot,usmCurrentTarget:Nt,usmDefinitionFor:Yt,usmHasTarget:Bt,usmMessages:pe,usmTargetLabel:Rt,usmTitle:Ke},Symbol.toStringTag,{value:"Module"}));export{va as d,Fi as i};