f7cloud_client/apps/text/js/kanban-definition-3W4ZIXB7-DT07df9K.chunk.mjs
2026-03-05 13:40:40 +00:00

91 lines
20 KiB
JavaScript

import{_ as o,l as ee,c as H,K as de,ai as ye,aj as fe,ak as me,ac as be,H as V,i as U,v as _e,J as Ee,ad as Se,ae,af as ce}from"./mermaid.core-DrJfu-9d.chunk.mjs";import{g as ke}from"./chunk-FMBD7UC4-Dznk2lEa.chunk.mjs";import"./index-CRQM6PVi.chunk.mjs";import"./emoji-picker-MDCGxHB0.chunk.mjs";import"./NcLoadingIcon-ZJnsd-es.chunk.mjs";import"./vue.runtime.esm-CLeelJur.chunk.mjs";import"./index-DxwFe63_.chunk.mjs";var Q=function(){var t=o(function(d,e,n,r){for(n=n||{},r=d.length;r--;n[d[r]]=e);return n},"o"),g=[1,4],p=[1,13],s=[1,12],u=[1,15],f=[1,16],_=[1,20],c=[1,19],x=[6,7,8],I=[1,26],h=[1,24],$=[1,25],k=[6,7,11],T=[1,31],O=[6,7,11,24],b=[1,6,13,16,17,20,23],A=[1,35],w=[1,36],C=[1,6,7,11,13,16,17,20,23],G=[1,38],M={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(d,e,n,r,l,i,E){var a=i.length-1;switch(l){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",i[a-1].id),r.addNode(i[a-2].length,i[a-1].id,i[a-1].descr,i[a-1].type,i[a]);break;case 16:r.getLogger().info("Node: ",i[a].id),r.addNode(i[a-1].length,i[a].id,i[a].descr,i[a].type);break;case 17:r.getLogger().trace("Icon: ",i[a]),r.decorateNode({icon:i[a]});break;case 18:case 23:r.decorateNode({class:i[a]});break;case 19:r.getLogger().trace("SPACELIST");break;case 20:r.getLogger().trace("Node: ",i[a-1].id),r.addNode(0,i[a-1].id,i[a-1].descr,i[a-1].type,i[a]);break;case 21:r.getLogger().trace("Node: ",i[a].id),r.addNode(0,i[a].id,i[a].descr,i[a].type);break;case 22:r.decorateNode({icon:i[a]});break;case 27:r.getLogger().trace("node found ..",i[a-2]),this.$={id:i[a-1],descr:i[a-1],type:r.getType(i[a-2],i[a])};break;case 28:this.$={id:i[a],descr:i[a],type:0};break;case 29:r.getLogger().trace("node found ..",i[a-3]),this.$={id:i[a-3],descr:i[a-1],type:r.getType(i[a-2],i[a])};break;case 30:this.$=i[a-1]+i[a];break;case 31:this.$=i[a];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:u,17:f,18:17,19:18,20:_,23:c},t(x,[2,3]),{1:[2,2]},t(x,[2,4]),t(x,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:u,17:f,18:17,19:18,20:_,23:c},{6:p,9:22,12:11,13:s,14:14,16:u,17:f,18:17,19:18,20:_,23:c},{6:I,7:h,10:23,11:$},t(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:_,23:c}),t(k,[2,19]),t(k,[2,21],{15:30,24:T}),t(k,[2,22]),t(k,[2,23]),t(O,[2,25]),t(O,[2,26]),t(O,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:h,10:34,11:$},{1:[2,7],6:p,12:21,13:s,14:14,16:u,17:f,18:17,19:18,20:_,23:c},t(b,[2,14],{7:A,11:w}),t(C,[2,8]),t(C,[2,9]),t(C,[2,10]),t(k,[2,16],{15:37,24:T}),t(k,[2,17]),t(k,[2,18]),t(k,[2,20],{24:G}),t(O,[2,31]),{21:[1,39]},{22:[1,40]},t(b,[2,13],{7:A,11:w}),t(C,[2,11]),t(C,[2,12]),t(k,[2,15],{24:G}),t(O,[2,30]),{22:[1,41]},t(O,[2,27]),t(O,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(d,e){if(e.recoverable)this.trace(d);else{var n=new Error(d);throw n.hash=e,n}},"parseError"),parse:o(function(d){var e=this,n=[0],r=[],l=[null],i=[],E=this.table,a="",W=0,ne=0,he=2,se=1,ge=i.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(R.yy[q]=this.yy[q]);m.setInput(d,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var z=m.yylloc;i.push(z);var ue=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(N){n.length=n.length-2*N,l.length=l.length-N,i.length=i.length-N}o(pe,"popStack");function re(){var N;return N=r.pop()||m.lex()||se,typeof N!="number"&&(N instanceof Array&&(r=N,N=r.pop()),N=e.symbols_[N]||N),N}o(re,"lex");for(var S,B,D,K,F={},j,v,oe,X;;){if(B=n[n.length-1],this.defaultActions[B]?D=this.defaultActions[B]:((S===null||typeof S>"u")&&(S=re()),D=E[B]&&E[B][S]),typeof D>"u"||!D.length||!D[0]){var J="";X=[];for(j in E[B])this.terminals_[j]&&j>he&&X.push("'"+this.terminals_[j]+"'");m.showPosition?J="Parse error on line "+(W+1)+`:
`+m.showPosition()+`
Expecting `+X.join(", ")+", got '"+(this.terminals_[S]||S)+"'":J="Parse error on line "+(W+1)+": Unexpected "+(S==se?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(J,{text:m.match,token:this.terminals_[S]||S,line:m.yylineno,loc:z,expected:X})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+S);switch(D[0]){case 1:n.push(S),l.push(m.yytext),i.push(m.yylloc),n.push(D[1]),S=null,ne=m.yyleng,a=m.yytext,W=m.yylineno,z=m.yylloc;break;case 2:if(v=this.productions_[D[1]][1],F.$=l[l.length-v],F._$={first_line:i[i.length-(v||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(v||1)].first_column,last_column:i[i.length-1].last_column},ue&&(F._$.range=[i[i.length-(v||1)].range[0],i[i.length-1].range[1]]),K=this.performAction.apply(F,[a,ne,W,R.yy,D[1],l,i].concat(ge)),typeof K<"u")return K;v&&(n=n.slice(0,-1*v*2),l=l.slice(0,-1*v),i=i.slice(0,-1*v)),n.push(this.productions_[D[1]][0]),l.push(F.$),i.push(F._$),oe=E[n[n.length-2]][n[n.length-1]],n.push(oe);break;case 3:return!0}}return!0},"parse")},Y=function(){var d={EOF:1,parseError:o(function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},"parseError"),setInput:o(function(e,n){return this.yy=n||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var n=e.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:o(function(e){var n=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===l.length?this.yylloc.first_column:0)+l[l.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(e){this.unput(this.match.slice(e))},"less"),pastInput:o(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var e=this.pastInput(),n=new Array(e.length+1).join("-");return e+this.upcomingInput()+`
`+n+"^"},"showPosition"),test_match:o(function(e,n){var r,l,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),l=e[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var E in i)this[E]=i[E];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,n,r,l;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),E=0;E<i.length;E++)if(r=this._input.match(this.rules[i[E]]),r&&(!n||r[0].length>n[0].length)){if(n=r,l=E,this.options.backtrack_lexer){if(e=this.test_match(r,i[E]),e!==!1)return e;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(e=this.test_match(n,i[l]),e!==!1?e:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var e=this.next();return e||this.lex()},"lex"),begin:o(function(e){this.conditionStack.push(e)},"begin"),popState:o(function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:o(function(e){this.begin(e)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(e,n,r,l){switch(r){case 0:return this.pushState("shapeData"),n.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const i=/\n\s*/g;return n.yytext=n.yytext.replace(i,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace("Found comment",n.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return e.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace("end icon"),this.popState();break;case 16:return e.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return e.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return e.getLogger().trace("description:",n.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),e.getLogger().trace("node end ...",n.yytext),"NODE_DEND";case 36:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 41:return e.getLogger().trace("Long description:",n.yytext),21;case 42:return e.getLogger().trace("Long description:",n.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return d}();M.lexer=Y;function P(){this.yy={}}return o(P,"Parser"),P.prototype=M,M.Parser=P,new P}();Q.parser=Q;var Ne=Q,L=[],te=[],Z=0,ie={},De=o(()=>{L=[],te=[],Z=0,ie={}},"clear"),Le=o(t=>{if(L.length===0)return null;const g=L[0].level;let p=null;for(let s=L.length-1;s>=0;s--)if(L[s].level===g&&!p&&(p=L[s]),L[s].level<g)throw new Error('Items without section detected, found section ("'+L[s].label+'")');return t===p?.level?null:p},"getSection"),le=o(function(){return te},"getSections"),xe=o(function(){const t=[],g=[],p=le(),s=H();for(const u of p){const f={id:u.id,label:U(u.label??"",s),isGroup:!0,ticket:u.ticket,shape:"kanbanSection",level:u.level,look:s.look};g.push(f);const _=L.filter(c=>c.parentId===u.id);for(const c of _){const x={id:c.id,parentId:u.id,label:U(c.label??"",s),isGroup:!1,ticket:c?.ticket,priority:c?.priority,assigned:c?.assigned,icon:c?.icon,shape:"kanbanItem",level:c.level,rx:5,ry:5,cssStyles:["text-align: left"]};g.push(x)}}return{nodes:g,edges:t,other:{},config:H()}},"getData"),Oe=o((t,g,p,s,u)=>{const f=H();let _=f.mindmap?.padding??V.mindmap.padding;switch(s){case y.ROUNDED_RECT:case y.RECT:case y.HEXAGON:_*=2}const c={id:U(g,f)||"kbn"+Z++,level:t,label:U(p,f),width:f.mindmap?.maxNodeWidth??V.mindmap.maxNodeWidth,padding:_,isGroup:!1};if(u!==void 0){let I;u.includes(`
`)?I=u+`
`:I=`{
`+u+`
}`;const h=_e(I,{schema:Ee});if(h.shape&&(h.shape!==h.shape.toLowerCase()||h.shape.includes("_")))throw new Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);h?.shape&&h.shape==="kanbanItem"&&(c.shape=h?.shape),h?.label&&(c.label=h?.label),h?.icon&&(c.icon=h?.icon.toString()),h?.assigned&&(c.assigned=h?.assigned.toString()),h?.ticket&&(c.ticket=h?.ticket.toString()),h?.priority&&(c.priority=h?.priority)}const x=Le(t);x?c.parentId=x.id||"kbn"+Z++:te.push(c),L.push(c)},"addNode"),y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ie=o((t,g)=>{switch(ee.debug("In get type",t,g),t){case"[":return y.RECT;case"(":return g===")"?y.ROUNDED_RECT:y.CLOUD;case"((":return y.CIRCLE;case")":return y.CLOUD;case"))":return y.BANG;case"{{":return y.HEXAGON;default:return y.DEFAULT}},"getType"),ve=o((t,g)=>{ie[t]=g},"setElementForId"),Ae=o(t=>{if(!t)return;const g=H(),p=L[L.length-1];t.icon&&(p.icon=U(t.icon,g)),t.class&&(p.cssClasses=U(t.class,g))},"decorateNode"),we=o(t=>{switch(t){case y.DEFAULT:return"no-border";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded-rect";case y.CIRCLE:return"circle";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Ce=o(()=>ee,"getLogger"),$e=o(t=>ie[t],"getElementById"),Te={clear:De,addNode:Oe,getSections:le,getData:xe,nodeType:y,getType:Ie,setElementForId:ve,decorateNode:Ae,type2Str:we,getLogger:Ce,getElementById:$e},Re=Te,Be=o(async(t,g,p,s)=>{ee.debug(`Rendering kanban diagram
`+t);const u=s.db.getData(),f=H();f.htmlLabels=!1;const _=de(g),c=_.append("g");c.attr("class","sections");const x=_.append("g");x.attr("class","items");const I=u.nodes.filter(b=>b.isGroup);let h=0;const $=10,k=[];let T=25;for(const b of I){const A=f?.kanban?.sectionWidth||200;h=h+1,b.x=A*h+(h-1)*$/2,b.width=A,b.y=0,b.height=A*3,b.rx=5,b.ry=5,b.cssClasses=b.cssClasses+" section-"+h;const w=await ye(c,b);T=Math.max(T,w?.labelBBox?.height),k.push(w)}let O=0;for(const b of I){const A=k[O];O=O+1;const w=f?.kanban?.sectionWidth||200,C=-w*3/2+T;let G=C;const M=u.nodes.filter(d=>d.parentId===b.id);for(const d of M){if(d.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");d.x=b.x,d.width=w-1.5*$;const e=(await fe(x,d,{config:f})).node().getBBox();d.y=G+e.height/2,await me(d),G=d.y+e.height/2+$/2}const Y=A.cluster.select("rect"),P=Math.max(G-C+3*$,50)+(T-25);Y.attr("height",P)}be(void 0,_,f.mindmap?.padding??V.kanban.padding,f.mindmap?.useMaxWidth??V.kanban.useMaxWidth)},"draw"),Ge={draw:Be},Pe=o(t=>{let g="";for(let s=0;s<t.THEME_COLOR_LIMIT;s++)t["lineColor"+s]=t["lineColor"+s]||t["cScaleInv"+s],Se(t["lineColor"+s])?t["lineColor"+s]=ae(t["lineColor"+s],20):t["lineColor"+s]=ce(t["lineColor"+s],20);const p=o((s,u)=>t.darkMode?ce(s,u):ae(s,u),"adjuster");for(let s=0;s<t.THEME_COLOR_LIMIT;s++){const u=""+(17-3*s);g+=`
.section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} polygon, .section-${s-1} path {
fill: ${p(t["cScale"+s],10)};
stroke: ${p(t["cScale"+s],10)};
}
.section-${s-1} text {
fill: ${t["cScaleLabel"+s]};
}
.node-icon-${s-1} {
font-size: 40px;
color: ${t["cScaleLabel"+s]};
}
.section-edge-${s-1}{
stroke: ${t["cScale"+s]};
}
.edge-depth-${s-1}{
stroke-width: ${u};
}
.section-${s-1} line {
stroke: ${t["cScaleInv"+s]} ;
stroke-width: 3;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${t.background};
stroke: ${t.nodeBorder};
stroke-width: 1px;
}
.kanban-ticket-link {
fill: ${t.background};
stroke: ${t.nodeBorder};
text-decoration: underline;
}
`}return g},"genSections"),Fe=o(t=>`
.edge {
stroke-width: 3;
}
${Pe(t)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${t.git0};
}
.section-root text {
fill: ${t.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.cluster-label, .label {
color: ${t.textColor};
fill: ${t.textColor};
}
.kanban-label {
dy: 1em;
alignment-baseline: middle;
text-anchor: middle;
dominant-baseline: middle;
text-align: center;
}
${ke()}
`,"getStyles"),Ue=Fe,qe={db:Re,renderer:Ge,parser:Ne,styles:Ue};export{qe as diagram};
//# sourceMappingURL=kanban-definition-3W4ZIXB7-DT07df9K.chunk.mjs.map