(function(t){function e(e){for(var n,r,s=e[0],l=e[1],c=e[2],h=0,u=[];h0){var e=t.activeNodes[0];t.img=e.getData("image"),t.imgTitle=e.getData("imageTitle")}else t.img="",t.imgTitle=""})),this.$bus.$on("showNodeImage",(function(){t.dialogVisible=!0}))},methods:{cancel:function(){this.dialogVisible=!1},confirm:function(){var t=this;return Object(m["a"])(regeneratorRuntime.mark((function e(){var i,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$refs.ImgUpload.getSize();case 3:i=e.sent,n=i.width,a=i.height,t.activeNodes.forEach((function(e){e.setImage({url:t.img||"none",title:t.imgTitle,width:n,height:a})})),t.cancel(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),console.log(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))()}}},N=D,z=(n("3af4"),Object(c["a"])(N,x,y,!1,null,"2a345810",null)),E=z.exports,S=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{staticClass:"nodeDialog",attrs:{title:"超链接",visible:t.dialogVisible,width:"500"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{staticClass:"item"},[i("span",{staticClass:"name"},[t._v("链接")]),i("el-input",{attrs:{size:"mini",placeholder:"http://xxxx.com/"},model:{value:t.link,callback:function(e){t.link=e},expression:"link"}})],1),i("div",{staticClass:"item"},[i("span",{staticClass:"name"},[t._v("名称")]),i("el-input",{attrs:{size:"mini"},model:{value:t.linkTitle,callback:function(e){t.linkTitle=e},expression:"linkTitle"}})],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.cancel}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确 定")])],1)])},B=[],T=(n("9911"),{name:"NodeHyperlink",data:function(){return{dialogVisible:!1,link:"",linkTitle:"",activeNodes:[]}},created:function(){var t=this;this.$bus.$on("node_active",(function(){if(t.activeNodes=arguments.length<=1?void 0:arguments[1],t.activeNodes.length>0){var e=t.activeNodes[0];t.link=e.getData("hyperlink"),t.linkTitle=e.getData("hyperlinkTitle")}else t.link="",t.linkTitle=""})),this.$bus.$on("showNodeLink",(function(){t.dialogVisible=!0}))},methods:{cancel:function(){this.dialogVisible=!1},confirm:function(){var t=this;this.activeNodes.forEach((function(e){e.setHyperlink(t.link,t.linkTitle),t.cancel()}))}}}),I=T,A=(n("c867"),Object(c["a"])(I,S,B,!1,null,"35cf8a8d",null)),O=A.exports,R=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{staticClass:"nodeDialog",attrs:{title:"图标",visible:t.dialogVisible,width:"500"},on:{"update:visible":function(e){t.dialogVisible=e}}},t._l(t.nodeIconList,(function(e){return i("div",{key:e.name,staticClass:"item"},[i("div",{staticClass:"title"},[t._v(t._s(e.name))]),i("div",{staticClass:"list"},t._l(e.list,(function(n){return i("div",{key:n.name,staticClass:"icon",domProps:{innerHTML:t._s(n.icon)},on:{click:function(i){return t.setIcon(e.type,n.name)}}})})),0)])})),0)},L=[],j=n("2909"),$=(n("c740"),n("ac1f"),n("1276"),n("a434"),n("b0c0"),''),W='',H=[{name:"优先级图标",type:"priority",list:[{name:"1",icon:''},{name:"2",icon:''},{name:"3",icon:''},{name:"4",icon:''},{name:"5",icon:''},{name:"6",icon:''},{name:"7",icon:''},{name:"8",icon:''},{name:"9",icon:''},{name:"10",icon:''}]},{name:"进度图标",type:"progress",list:[{name:"1",icon:''},{name:"2",icon:''},{name:"3",icon:''},{name:"4",icon:''},{name:"5",icon:''},{name:"6",icon:''},{name:"7",icon:''},{name:"8",icon:''}]},{name:"表情图标",type:"expression",list:[{name:"1",icon:''},{name:"2",icon:''},{name:"3",icon:''},{name:"4",icon:''},{name:"5",icon:''},{name:"6",icon:''},{name:"7",icon:''},{name:"8",icon:''},{name:"9",icon:''},{name:"10",icon:''},{name:"11",icon:''},{name:"12",icon:''},{name:"13",icon:''},{name:"14",icon:''},{name:"15",icon:''},{name:"16",icon:''},{name:"17",icon:''},{name:"18",icon:''},{name:"19",icon:''},{name:"20",icon:''}]},{name:"标记图标",type:"sign",list:[{name:"1",icon:''},{name:"2",icon:''},{name:"3",icon:''},{name:"4",icon:''},{name:"5",icon:''},{name:"6",icon:''},{name:"7",icon:''},{name:"8",icon:''},{name:"9",icon:''},{name:"10",icon:''},{name:"11",icon:''},{name:"12",icon:''},{name:"13",icon:''},{name:"14",icon:''},{name:"15",icon:''},{name:"16",icon:''},{name:"17",icon:''},{name:"18",icon:''},{name:"19",icon:''},{name:"20",icon:''},{name:"21",icon:''},{name:"22",icon:''},{name:"23",icon:''}]}],V=function(t){var e=t.split("_"),i=H.find((function(t){return t.type===e[0]}));return i.list.find((function(t){return t.name===e[1]})).icon},Y={hyperlink:$,note:W,nodeIconList:H,getNodeIconListIcon:V},Z={name:"NodeIcon",data:function(){return{nodeIconList:H,dialogVisible:!1,icon:[],activeNodes:[]}},created:function(){var t=this;this.$bus.$on("node_active",(function(){if(t.activeNodes=arguments.length<=1?void 0:arguments[1],t.activeNodes.length>0){var e=t.activeNodes[0];t.icon=e.getData("icon")||[]}else t.icon=[]})),this.$bus.$on("showNodeIcon",(function(){t.dialogVisible=!0}))},methods:{setIcon:function(t,e){var i=this,n=this.icon.findIndex((function(e){return e.split("_")[0]===t}));-1!==n?this.icon.splice(n,1,t+"_"+e):this.icon.push(t+"_"+e),this.activeNodes.forEach((function(t){t.setIcon(Object(j["a"])(i.icon))}))}}},X=Z,P=(n("a0b5"),Object(c["a"])(X,R,L,!1,null,"74f45ed3",null)),G=P.exports,U=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{staticClass:"nodeDialog",attrs:{title:"备注",visible:t.dialogVisible,width:"500"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:5},placeholder:"请输入内容"},model:{value:t.note,callback:function(e){t.note=e},expression:"note"}}),i("div",{staticClass:"tip"},[t._v("换行请使用:Enter+Shift")]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.cancel}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确 定")])],1)],1)},J=[],K={name:"NodeNote",data:function(){return{dialogVisible:!1,note:"",activeNodes:[]}},created:function(){var t=this;this.$bus.$on("node_active",(function(){if(t.activeNodes=arguments.length<=1?void 0:arguments[1],t.activeNodes.length>0){var e=t.activeNodes[0];t.note=e.getData("note")}else t.note=""})),this.$bus.$on("showNodeNote",(function(){t.dialogVisible=!0}))},methods:{cancel:function(){this.dialogVisible=!1},confirm:function(){var t=this;this.activeNodes.forEach((function(e){e.setNote(t.note)})),this.cancel()}}},Q=K,q=(n("67a6"),Object(c["a"])(Q,U,J,!1,null,"7ec74be8",null)),tt=q.exports,et=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{staticClass:"nodeDialog",attrs:{title:"标签",visible:t.dialogVisible,width:"500"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("el-input",{attrs:{disabled:t.tagArr.length>=t.max,placeholder:"请按回车键添加"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.add.apply(null,arguments)}},model:{value:t.tag,callback:function(e){t.tag=e},expression:"tag"}}),i("div",{staticClass:"tagList"},t._l(t.tagArr,(function(e,n){return i("div",{key:n,staticClass:"tagItem",style:{backgroundColor:t.tagColorList[n].background,color:t.tagColorList[n].color}},[t._v(" "+t._s(e)+" "),i("div",{staticClass:"delBtn",on:{click:function(e){return t.del(n)}}},[i("span",{staticClass:"iconfont iconshanchu"})])])})),0),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.cancel}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确 定")])],1)],1)},it=[],nt=[{color:"rgb(77, 65, 0)",background:"rgb(255, 244, 179)"},{color:"rgb(0, 50, 77)",background:"rgb(179, 229, 255)"},{color:"rgb(77, 0, 73)",background:"rgb(255, 179, 251)"},{color:"rgb(57, 77, 0)",background:"rgb(236, 255, 179)"},{color:"rgb(0, 77, 47)",background:"rgb(179, 255, 226)"}],at=[{name:"逻辑结构图",value:"logicalStructure",img:n("0930")},{name:"思维导图",value:"mindMap",img:n("9910")},{name:"组织结构图",value:"organizationStructure",img:n("6967")},{name:"目录组织图",value:"catalogOrganization",img:n("ac18")}],ot=["logicalStructure","mindMap","catalogOrganization","organizationStructure"],rt=[{name:"默认",value:"default",img:n("3556")},{name:"脑图经典",value:"classic",img:n("8617")},{name:"小黄人",value:"minions",img:n("f260")},{name:"粉红葡萄",value:"pinkGrape",img:n("b2e8")},{name:"薄荷",value:"mint",img:n("db73")},{name:"金色vip",value:"gold",img:n("6ef5")},{name:"活力橙",value:"vitalityOrange",img:n("08be")},{name:"绿叶",value:"greenLeaf",img:n("72ed")},{name:"暗色2",value:"dark2",img:n("42c9")},{name:"天清绿",value:"skyGreen",img:n("7f82")},{name:"脑图经典2",value:"classic2",img:n("a3a6")},{name:"脑图经典3",value:"classic3",img:n("c0d2")},{name:"经典绿",value:"classicGreen",img:n("43f9")},{name:"经典蓝",value:"classicBlue",img:n("0d2c")},{name:"天空蓝",value:"blueSky",img:n("b533")},{name:"脑残粉",value:"brainImpairedPink",img:n("074d")},{name:"暗色",value:"dark",img:n("181c")},{name:"泥土黄",value:"earthYellow",img:n("1a34")},{name:"清新绿",value:"freshGreen",img:n("7dda")},{name:"清新红",value:"freshRed",img:n("ca62")},{name:"浪漫紫",value:"romanticPurple",img:n("c612")}],st={name:"NodeTag",data:function(){return{dialogVisible:!1,tagColorList:nt,tagArr:[],tag:"",activeNodes:[],max:5}},created:function(){var t=this;this.$bus.$on("node_active",(function(){if(t.activeNodes=arguments.length<=1?void 0:arguments[1],t.activeNodes.length>0){var e=t.activeNodes[0];t.tagArr=e.getData("tag")||[]}else t.tagArr=[],t.tag=""})),this.$bus.$on("showNodeTag",(function(){t.dialogVisible=!0}))},methods:{add:function(){this.tagArr.push(this.tag),this.tag=""},del:function(t){this.tagArr.splice(t,1)},cancel:function(){this.dialogVisible=!1},confirm:function(){var t=this;this.activeNodes.forEach((function(e){e.setTag(t.tagArr)})),this.cancel()}}},lt=st,ct=(n("a180"),Object(c["a"])(lt,et,it,!1,null,"e9b30800",null)),dt=ct.exports,ht=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{staticClass:"nodeDialog",attrs:{title:"导出",visible:t.dialogVisible,width:"500"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",[i("div",{staticClass:"nameInputBox"},[i("span",{staticClass:"name"},[t._v("导出文件名称")]),i("el-input",{staticStyle:{width:"300px"},attrs:{size:"mini"},model:{value:t.fileName,callback:function(e){t.fileName=e},expression:"fileName"}})],1),i("el-radio-group",{model:{value:t.exportType,callback:function(e){t.exportType=e},expression:"exportType"}},[i("el-radio",{attrs:{label:"png"}},[t._v("图片文件(PNG)")]),i("el-radio",{attrs:{label:"svg"}},[t._v("svg文件(SVG)")])],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.cancel}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确 定")])],1)])},ut=[],pt={name:"Export",data:function(){return{dialogVisible:!1,exportType:"png",fileName:"思维导图"}},created:function(){var t=this;this.$bus.$on("showExport",(function(){t.dialogVisible=!0}))},methods:{cancel:function(){this.dialogVisible=!1},confirm:function(){this.$bus.$emit("export",this.exportType),this.cancel()}}},ft=pt,vt=(n("c69c"),Object(c["a"])(ft,ht,ut,!1,null,"6145284c",null)),mt=vt.exports,gt={name:"Toolbar",components:{NodeImage:E,NodeHyperlink:O,NodeIcon:G,NodeNote:tt,NodeTag:dt,Export:mt},data:function(){return{activeNodes:[],backEnd:!1,forwardEnd:!0}},computed:{hasRoot:function(){return this.activeNodes.find((function(t){return t.isRoot}))}},created:function(){var t=this;this.$bus.$on("node_active",(function(){t.activeNodes=arguments.length<=1?void 0:arguments[1]})),this.$bus.$on("back_forward",(function(e,i){t.backEnd=e<=0,t.forwardEnd=e>=i-1}))}},bt=gt,xt=(n("9e58"),Object(c["a"])(bt,g,b,!1,null,"2aeb29c1",null)),yt=xt.exports,Ct=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"editContainer"},[i("div",{ref:"mindMapContainer",staticClass:"mindMapContainer"}),i("Count"),i("NavigatorToolbar",{attrs:{mindMap:t.mindMap}}),i("Outline"),i("Style"),i("BaseStyle",{attrs:{data:t.mindMapData,mindMap:t.mindMap}}),i("Theme",{attrs:{mindMap:t.mindMap}}),i("Structure",{attrs:{mindMap:t.mindMap}}),i("ShortcutKey")],1)},wt=[],Mt=(n("99af"),n("d4ec")),kt=n("bee2"),Ft=(n("b693"),n("caad"),n("2532"),function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(Mt["a"])(this,t),this.opt=e,this.mindMap=this.opt.mindMap,this.scale=1,this.sx=0,this.sy=0,this.x=0,this.y=0,this.bind()}return Object(kt["a"])(t,[{key:"bind",value:function(){var t=this;this.mindMap.keyCommand.addShortcut("Control+=",(function(){t.enlarge()})),this.mindMap.keyCommand.addShortcut("Control+-",(function(){t.narrow()})),this.mindMap.keyCommand.addShortcut("Control+Enter",(function(){t.reset()})),this.mindMap.event.on("mousedown",(function(){t.sx=t.x,t.sy=t.y})),this.mindMap.event.on("drag",(function(e,i){t.x=t.sx+i.mousemoveOffset.x,t.y=t.sy+i.mousemoveOffset.y,t.transform()})),this.mindMap.event.on("mousewheel",(function(e,i){"down"===i?t.enlarge():t.narrow()}))}},{key:"translateX",value:function(t){this.x+=t,this.transform()}},{key:"translateY",value:function(t){this.y+=t,this.transform()}},{key:"transform",value:function(){this.mindMap.draw.transform({scale:this.scale,origin:"left center",translate:[this.x,this.y]})}},{key:"reset",value:function(){this.mindMap.draw.transform();this.scale=1,this.x=0,this.y=0,this.mindMap.draw.transform({scale:this.scale,origin:"left center",translate:[this.x,this.y]})}},{key:"narrow",value:function(){this.scale-this.mindMap.opt.scaleRatio>.1?this.scale-=this.mindMap.opt.scaleRatio:this.scale=.1,this.transform(),this.mindMap.emit("scale",this.scale)}},{key:"enlarge",value:function(){this.scale+=this.mindMap.opt.scaleRatio,this.transform(),this.mindMap.emit("scale",this.scale)}},{key:"setViewBox",value:function(t){var e=t.x,i=t.y,n=t.width,a=t.height;this.opt.draw.viewbox(e,i,n,a)}}]),t}()),_t=Ft,Dt=n("262e"),Nt=n("2caf"),zt=n("91d2"),Et=n.n(zt),St=function(t){Object(Dt["a"])(i,t);var e=Object(Nt["a"])(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(Mt["a"])(this,i),t=e.call(this),t.opt=n,t.mindMap=n.mindMap,t.isLeftMousedown=!1,t.mousedownPos={x:0,y:0},t.mousemovePos={x:0,y:0},t.mousemoveOffset={x:0,y:0},t.bindFn(),t.bind(),t}return Object(kt["a"])(i,[{key:"bindFn",value:function(){this.onDrawClick=this.onDrawClick.bind(this),this.onMousedown=this.onMousedown.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.onMousewheel=this.onMousewheel.bind(this),this.onContextmenu=this.onContextmenu.bind(this)}},{key:"bind",value:function(){this.mindMap.svg.on("click",this.onDrawClick),this.mindMap.el.addEventListener("mousedown",this.onMousedown),window.addEventListener("mousemove",this.onMousemove),window.addEventListener("mouseup",this.onMouseup),-1!=window.navigator.userAgent.toLowerCase().indexOf("firefox")?this.mindMap.el.addEventListener("DOMMouseScroll",this.onMousewheel):this.mindMap.el.addEventListener("mousewheel",this.onMousewheel),this.mindMap.svg.on("contextmenu",this.onContextmenu)}},{key:"unbind",value:function(){this.mindMap.svg.off("click",this.onDrawClick),this.mindMap.el.removeEventListener("mousedown",this.onMousedown),window.removeEventListener("mousemove",this.onMousemove),window.removeEventListener("mouseup",this.onMouseup),this.mindMap.el.removeEventListener("mousewheel",this.onMousewheel),this.mindMap.svg.off("contextmenu",this.onContextmenu)}},{key:"onDrawClick",value:function(t){this.emit("draw_click",t)}},{key:"onMousedown",value:function(t){t.preventDefault(),1===t.which&&(this.isLeftMousedown=!0),this.mousedownPos.x=t.clientX,this.mousedownPos.y=t.clientY,this.emit("mousedown",t,this)}},{key:"onMousemove",value:function(t){t.preventDefault(),this.mousemovePos.x=t.clientX,this.mousemovePos.y=t.clientY,this.mousemoveOffset.x=t.clientX-this.mousedownPos.x,this.mousemoveOffset.y=t.clientY-this.mousedownPos.y,this.emit("mousemove",t,this),this.isLeftMousedown&&this.emit("drag",t,this)}},{key:"onMouseup",value:function(t){this.isLeftMousedown=!1,this.emit("mouseup",t,this)}},{key:"onMousewheel",value:function(t){var e;t.stopPropagation(),t.preventDefault(),e=(t.wheelDeltaY||t.detail)>0?"up":"down",this.emit("mousewheel",t,e,this)}},{key:"onContextmenu",value:function(t){t.preventDefault(),this.emit("contextmenu",t)}}]),i}(Et.a),Bt=St,Tt=n("ade3"),It=(n("b64b"),n("682c")),At=n.n(It),Ot=(n("d81d"),n("cb29"),n("fb6a"),["paddingX","paddingY"]),Rt=function(){function t(e,i){Object(Mt["a"])(this,t),this.ctx=e,this.themeConfig=i}return Object(kt["a"])(t,[{key:"updateThemeConfig",value:function(t){this.themeConfig=t}},{key:"merge",value:function(t,e,i){var n=this.themeConfig.node;if(e||Ot.includes(t)?n=this.themeConfig:0===this.ctx.layerIndex?n=this.themeConfig.root:1===this.ctx.layerIndex&&(n=this.themeConfig.second),void 0!==i?i:this.ctx.nodeData.data.isActive){if(this.ctx.nodeData.data.activeStyle&&void 0!==this.ctx.nodeData.data.activeStyle[t])return this.ctx.nodeData.data.activeStyle[t];if(n.active&&n.active[t])return n.active[t]}return void 0!==this.ctx.nodeData.data[t]?this.ctx.nodeData.data[t]:n[t]}},{key:"rect",value:function(t){t.fill({color:this.merge("fillColor")}).stroke({color:this.merge("borderColor"),width:this.merge("borderWidth"),dasharray:this.merge("borderDasharray")}).radius(this.merge("borderRadius"))}},{key:"text",value:function(t){t.fill({color:this.merge("color")}).css({"font-family":this.merge("fontFamily"),"font-size":this.merge("fontSize"),"font-weight":this.merge("fontWeight"),"font-style":this.merge("fontStyle"),"text-decoration":this.merge("textDecoration")})}},{key:"domText",value:function(t){t.style.fontFamily=this.merge("fontFamily"),t.style.fontSize=this.merge("fontSize")+"px",t.style.fontWeight=this.merge("fontWeight")||"normal"}},{key:"tagText",value:function(t,e){t.fill({color:nt[e].color}).css({"font-size":"12px"})}},{key:"tagRect",value:function(t,e){t.fill({color:nt[e].background})}},{key:"iconNode",value:function(t){t.attr({fill:this.merge("color")})}},{key:"line",value:function(t){t.stroke({width:this.merge("lineWidth",!0),color:this.merge("lineColor",!0)}).fill({color:"none"})}},{key:"iconBtn",value:function(t,e){t.fill({color:"#808080"}),e.fill({color:"#fff"})}}],[{key:"setBackgroundStyle",value:function(t,e){var i=e.backgroundColor,n=e.backgroundImage,a=e.backgroundRepeat;t.style.backgroundColor=i,n&&(t.style.backgroundImage="url(".concat(n,")"),t.style.backgroundRepeat=a)}}]),t}(),Lt=Rt,jt=(n("5319"),function t(e,i,n,a,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,l=!1;if(n&&(l=n(e,i,o,r,s)),!l&&e.children&&e.children.length>0){var c=r+1;e.children.forEach((function(i,o){t(i,e,n,a,!1,c,o)}))}a&&a(e,i,o,r,s)}),$t=function(t,e){e(t);var i=[t];while(i.length){var n=i.shift();n.children&&n.children.length&&n.children.forEach((function(t){i.push(t),e(t)}))}},Wt=function(t,e,i,n){var a=t/e,o=[];if(i&&n)if(t<=i&&e<=n)o=[t,e];else{var r=i/n;o=a>r?[a*n,n]:[i,i/a]}else i?o=t<=i?[t,e]:[i,i/a]:n&&(o=e<=n?[t,e]:[a*n,n]);return o},Ht=function(t){t=t.replace(/
/gim,"\n");var e=document.createElement("div");return e.innerHTML=t,t=e.textContent,t},Vt=function(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return null}},Yt=function t(e,i){return e.data=Vt(i.data),e.children=[],i.children&&i.children.length>0&&i.children.forEach((function(i,n){e.children[n]=t({},i)})),e},Zt=function(t){return new Promise((function(i,n){var a=new Image;a.setAttribute("crossOrigin","anonymous"),a.onload=function(){try{var t=document.createElement("canvas");t.width=a.width,t.height=a.height;var o=t.getContext("2d");o.drawImage(a,0,0,a.width,a.height),i(t.toDataURL())}catch(r){n(e)}},a.onerror=function(t){n(t)},a.src=t}))},Xt=function(t,e){var i=document.createElement("a");i.href=t,i.download=e,i.click()},Pt=function(t){var e=arguments.length>2?arguments[2]:void 0,i=null;return function(){i||(i=setTimeout((function(){t.call(e),i=null}),300))}},Gt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},i=0,n=t.length;if(!(n<=0)){var a=function a(){i>=n?e():(t[i](),setTimeout((function(){i++,a()}),0))};a()}},Ut=n("8a19"),Jt='',Kt='',Qt={open:Jt,close:Kt},qt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(Mt["a"])(this,t),this.nodeData=this.handleData(e.data||{}),this.uid=e.uid,this.mindMap=e.mindMap,this.renderer=e.renderer,this.draw=e.draw||null,this.themeConfig=this.mindMap.themeConfig,this.style=new Lt(this,this.themeConfig),this.isRoot=void 0!==e.isRoot&&e.isRoot,this.layerIndex=void 0===e.layerIndex?0:e.layerIndex,this.width=e.width||0,this.height=e.height||0,this.left=e.left||0,this.top=e.top||0,this.parent=e.parent||null,this.children=e.children||[],this.group=null,this._imgData=null,this._iconData=null,this._textData=null,this._hyperlinkData=null,this._tagData=null,this._noteData=null,this._expandBtn=null,this._lines=[],this._rectInfo=Object(Tt["a"])({imgContentWidth:0,imgContentHeight:0,textContentHeight:0},"textContentHeight",0),this.textContentItemMargin=this.mindMap.opt.textContentMargin,this.blockContentMargin=this.mindMap.opt.imgTextMargin,this.expandBtnSize=this.mindMap.opt.expandBtnSize,this.initRender=!0,this.createNodeData(),this.getSize()}return Object(kt["a"])(t,[{key:"updateThemeConfig",value:function(){this.themeConfig=this.mindMap.themeConfig,this.style.updateThemeConfig(this.themeConfig)}},{key:"reset",value:function(){this.children=[],this.parent=null,this.isRoot=!1,this.layerIndex=0,this.left=0,this.top=0}},{key:"handleData",value:function(t){return t.data.expand=!1!==t.data.expand,t.data.isActive=!0===t.data.isActive,t.children=t.children||[],t}},{key:"addChildren",value:function(t){this.children.push(t)}},{key:"createNodeData",value:function(){this._imgData=this.createImgNode(),this._iconData=this.createIconNode(),this._textData=this.createTextNode(),this._hyperlinkData=this.createHyperlinkNode(),this._tagData=this.createTagNode(),this._noteData=this.createNoteNode()}},{key:"removeAllEvent",value:function(){this._noteData&&this._noteData.node.off(["mouseover","mouseout"]),this._expandBtn&&this._expandBtn.off(["mouseover","mouseout","click"]),this.group&&this.group.off(["click","dblclick","contextmenu"])}},{key:"removeAllNode",value:function(){[this._imgData,this._iconData,this._textData,this._hyperlinkData,this._tagData,this._noteData].forEach((function(t){t&&t.node&&t.node.remove()})),this._imgData=null,this._iconData=null,this._textData=null,this._hyperlinkData=null,this._tagData=null,this._noteData=null,this._expandBtn&&(this._expandBtn.remove(),this._expandBtn=null),this.group&&(this.group.clear(),this.group.remove(),this.group=null)}},{key:"getSize",value:function(){this.removeAllNode(),this.createNodeData();var t=this.getNodeRect(),e=t.width,i=t.height,n=this.width!==e||this.height!==i;return this.width=e,this.height=i,n}},{key:"getNodeRect",value:function(){var t=this,e=0,i=0,n=0,a=0;this._imgData&&(this._rectInfo.imgContentWidth=e=this._imgData.width,this._rectInfo.imgContentHeight=i=this._imgData.height),this._iconData.length>0&&(n+=this._iconData.reduce((function(e,i){return a=Math.max(a,i.height),e+(i.width+t.textContentItemMargin)}),0)),this._textData&&(n+=this._textData.width,a=Math.max(a,this._textData.height)),this._hyperlinkData&&(n+=this._hyperlinkData.width,a=Math.max(a,this._hyperlinkData.height)),this._tagData.length>0&&(n+=this._tagData.reduce((function(e,i){return a=Math.max(a,i.height),e+(i.width+t.textContentItemMargin)}),0)),this._noteData&&(n+=this._noteData.width,a=Math.max(a,this._noteData.height)),this._rectInfo.textContentWidth=n,this._rectInfo.textContentHeight=a;var o=i>0&&a>0?this.blockContentMargin:0,r=this.getPaddingVale(),s=r.paddingX,l=r.paddingY;return{width:Math.max(e,n)+2*s,height:i+a+2*l+o}}},{key:"createImgNode",value:function(){var t,e=this.nodeData.data.image;if(e){var i=this.getImgShowSize(),n=(t=(new Ut["d"]).load(e)).size.apply(t,Object(j["a"])(i));return this.nodeData.data.imageTitle&&n.attr("title",this.nodeData.data.imageTitle),{node:n,width:i[0],height:i[1]}}}},{key:"getImgShowSize",value:function(){return Wt(this.nodeData.data.imageSize.width,this.nodeData.data.imageSize.height,this.themeConfig.imgMaxWidth,this.themeConfig.imgMaxHeight)}},{key:"createIconNode",value:function(){var t=this.nodeData.data;if(!t.icon||t.icon.length<=0)return[];var e=this.themeConfig.iconSize;return t.icon.map((function(t){return{node:Object(Ut["f"])(Y.getNodeIconListIcon(t)).size(e,e),width:e,height:e}}))}},{key:"createTextNode",value:function(){var t=this,e=new Ut["c"],i=this.getStyle("fontSize",this.isRoot,this.nodeData.data.isActive),n=this.getStyle("lineHeight",this.isRoot,this.nodeData.data.isActive);this.nodeData.data.text.split(/\n/gim).forEach((function(a,o){var r=(new Ut["g"]).text(a);t.style.text(r),r.y(i*n*o),e.add(r)}));var a=e.bbox(),o=a.width,r=a.height;return{node:e,width:o,height:r}}},{key:"createHyperlinkNode",value:function(){var t=this.nodeData.data,e=t.hyperlink,i=t.hyperlinkTitle;if(e){var n=this.themeConfig.iconSize,a=new Ut["f"],o=(new Ut["a"]).to(e).target("_blank");o.node.addEventListener("click",(function(t){t.stopPropagation()})),i&&o.attr("title",i),o.rect(n,n).fill({color:"transparent"});var r=Object(Ut["f"])(Y.hyperlink).size(n,n);return this.style.iconNode(r),o.add(r),a.add(o),{node:a,width:n,height:n}}}},{key:"createTagNode",value:function(){var t=this,e=this.nodeData.data.tag;if(!e||e.length<=0)return[];var i=[];return e.slice(0,this.mindMap.opt.maxTag).forEach((function(e,n){var a=new Ut["c"],o=(new Ut["g"]).text(e).x(8).cy(10);t.style.tagText(o,n);var r=o.bbox(),s=r.width,l=(r.height,(new Ut["e"]).size(s+16,20));t.style.tagRect(l,n),a.add(l).add(o),i.push({node:a,width:s+16,height:20})})),i}},{key:"createNoteNode",value:function(){if(!this.nodeData.data.note)return null;var t=this.themeConfig.iconSize,e=(new Ut["f"]).attr("cursor","pointer");e.add((new Ut["e"]).size(t,t).fill({color:"transparent"}));var i=Object(Ut["f"])(Y.note).size(t,t);this.style.iconNode(i),e.add(i);var n=document.createElement("div");return n.style.cssText="\n position: absolute;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 2px 5px rgb(0 0 0 / 10%);\n display: none;\n background-color: #fff;\n ",n.innerText=this.nodeData.data.note,document.body.appendChild(n),e.on("mouseover",(function(){var i=e.node.getBoundingClientRect(),a=i.left,o=i.top;n.style.left=a+"px",n.style.top=o+t+"px",n.style.display="block"})),e.on("mouseout",(function(){n.style.display="none"})),{node:e,width:t,height:t}}},{key:"layout",value:function(){var t=this,e=this.width,i=this.height,n=this.textContentItemMargin,a=this.getPaddingVale(),o=a.paddingY;this.group=new Ut["c"],this.draw.add(this.group),this.update(!0),this.style.rect(this.group.rect(e,i));var r=0;this._imgData&&(r=this._imgData.height,this.group.add(this._imgData.node),this._imgData.node.cx(e/2).y(o));var s=new Ut["c"],l=0,c=new Ut["c"];if(this._iconData&&this._iconData.length>0){var d=0;this._iconData.forEach((function(e){e.node.x(l+d).y((t._rectInfo.textContentHeight-e.height)/2),c.add(e.node),d+=e.width+n})),s.add(c),l+=d}this._textData&&(this._textData.node.x(l).y(0),s.add(this._textData.node),l+=this._textData.width+n),this._hyperlinkData&&(this._hyperlinkData.node.x(l).y((this._rectInfo.textContentHeight-this._hyperlinkData.height)/2),s.add(this._hyperlinkData.node),l+=this._hyperlinkData.width+n);var h=new Ut["c"];if(this._tagData&&this._tagData.length>0){var u=0;this._tagData.forEach((function(e){e.node.x(l+u).y((t._rectInfo.textContentHeight-e.height)/2),h.add(e.node),u+=e.width+n})),s.add(h),l+=u}this._noteData&&(this._noteData.node.x(l).y((this._rectInfo.textContentHeight-this._noteData.height)/2),s.add(this._noteData.node),l+=this._noteData.width),s.translate(e/2-s.bbox().width/2,r+o+(r>0&&this._rectInfo.textContentHeight>0?this.blockContentMargin:0)),this.group.add(s),this.group.on("click",(function(e){t.active(e)})),this.group.on("dblclick",(function(){t.mindMap.emit("node_dblclick",t)})),this.group.on("contextmenu",(function(t){t.stopPropagation(),t.preventDefault()}))}},{key:"active",value:function(t){t.stopPropagation(),this.nodeData.data.isActive||(this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.renderer.clearActive(),this.mindMap.execCommand("SET_NODE_ACTIVE",this,!this.nodeData.data.isActive),this.renderer.addActiveNode(this),this.mindMap.emit("node_active",this,this.renderer.activeNodeList))}},{key:"renderNode",value:function(){this.removeAllEvent(),this.removeAllNode(),this.createNodeData(),this.layout()}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.group){this._expandBtn&&this.nodeData.children.length<=0?this.removeExpandBtn():!this._expandBtn&&this.nodeData.children.length>0?this.renderExpandBtn():this.updateExpandBtnPos();var e=this.group.transform();t?this.group.translate(this.left-e.translateX,this.top-e.translateY):this.group.animate(300).translate(this.left-e.translateX,this.top-e.translateY)}}},{key:"render",value:function(){this.renderLine(),this.initRender?(this.initRender=!1,this.renderNode()):this.update(),this.children&&this.children.length&&!1!==this.nodeData.data.expand&&Gt(this.children.map((function(t){return function(){t.render()}})))}},{key:"remove",value:function(){this.initRender=!0,this.removeAllEvent(),this.removeAllNode(),this.removeLine(),this.children&&this.children.length&&Gt(this.children.map((function(t){return function(){t.remove()}})))}},{key:"renderLine",value:function(){var t=this;if(!1!==this.nodeData.data.expand){var e=this.nodeData.children.length;e>this._lines.length?new Array(e-this._lines.length).fill(0).forEach((function(){t._lines.push(t.draw.path())})):e0&&void 0!==arguments[0]?arguments[0]:{};this.mindMap.execCommand("SET_NODE_DATA",this,t)}},{key:"setText",value:function(t){this.mindMap.execCommand("SET_NODE_TEXT",this,t)}},{key:"setImage",value:function(t){this.mindMap.execCommand("SET_NODE_IMAGE",this,t)}},{key:"setIcon",value:function(t){this.mindMap.execCommand("SET_NODE_ICON",this,t)}},{key:"setHyperlink",value:function(t,e){this.mindMap.execCommand("SET_NODE_HYPERLINK",this,t,e)}},{key:"setNote",value:function(t){this.mindMap.execCommand("SET_NODE_NOTE",this,t)}},{key:"setTag",value:function(t){this.mindMap.execCommand("SET_NODE_TAG",this,t)}}]),t}(),te=qt,ee=function(){function t(e){Object(Mt["a"])(this,t),this.renderer=e,this.mindMap=e.mindMap,this.draw=this.mindMap.draw,this.root=null}return Object(kt["a"])(t,[{key:"doLayout",value:function(){throw new Error("【computed】方法为必要方法,需要子类进行重写!")}},{key:"renderLine",value:function(){throw new Error("【renderLine】方法为必要方法,需要子类进行重写!")}},{key:"renderExpandBtn",value:function(){throw new Error("【renderExpandBtn】方法为必要方法,需要子类进行重写!")}},{key:"createNode",value:function(t,e,i,n){var a=null;return t&&t._node&&!this.renderer.reRender?(a=t._node,a.reset(),a.layerIndex=n):(a=new te({data:t,uid:this.mindMap.uid++,renderer:this.renderer,mindMap:this.mindMap,draw:this.draw,layerIndex:n}),a.getSize(),t._node=a),i?(a.isRoot=!0,this.root=a):(a.parent=e._node,e._node.addChildren(a)),a}},{key:"updateChildren",value:function(t,e,i){var n=this;t.forEach((function(t){t[e]+=i,t.children&&t.children.length&&n.updateChildren(t.children,e,i)}))}},{key:"quadraticCurvePath",value:function(t,e,i,n){var a=t+.2*(i-t),o=e+.8*(n-e);return"M ".concat(t,",").concat(e," Q ").concat(a,",").concat(o," ").concat(i,",").concat(n)}},{key:"cubicBezierPath",value:function(t,e,i,n){var a=t+(i-t)/2,o=e,r=i-(i-t)/2,s=n;return"M ".concat(t,",").concat(e," C ").concat(a,",").concat(o," ").concat(r,",").concat(s," ").concat(i,",").concat(n)}},{key:"getMarginX",value:function(t){return 1===t?this.mindMap.themeConfig.second.marginX:this.mindMap.themeConfig.node.marginX}},{key:"getMarginY",value:function(t){return 1===t?this.mindMap.themeConfig.second.marginY:this.mindMap.themeConfig.node.marginY}}]),t}(),ie=ee,ne=function(t){Object(Dt["a"])(i,t);var e=Object(Nt["a"])(i);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(Mt["a"])(this,i),e.call(this,t)}return Object(kt["a"])(i,[{key:"doLayout",value:function(t){var e=this,i=[function(){e.computedBaseValue()},function(){e.computedTopValue()},function(){e.adjustTopValue()},function(){t(e.root)}];Gt(i)}},{key:"computedBaseValue",value:function(){var t=this;jt(this.renderer.renderTree,null,(function(e,i,n,a){var o=t.createNode(e,i,n,a);if(n?(o.left=(t.mindMap.width-o.width)/2,o.top=(t.mindMap.height-o.height)/2):o.left=i._node.left+i._node.width+t.getMarginX(a),!e.data.expand)return!0}),(function(e,i,n,a){var o=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaHeight=o?e._node.children.reduce((function(t,e){return t+e.height}),0)+(o+1)*t.getMarginY(a+1):0}),!0,0)}},{key:"computedTopValue",value:function(){var t=this;jt(this.root,null,(function(e,i,n,a){if(e.nodeData.data.expand&&e.children&&e.children.length){var o=t.getMarginY(a+1),r=e.top+e.height/2-e.childrenAreaHeight/2,s=r+o;e.children.forEach((function(t){t.top=s,s+=t.height+o}))}}),null,!0)}},{key:"adjustTopValue",value:function(){var t=this;jt(this.root,null,(function(e,i,n,a){if(e.nodeData.data.expand){var o=e.childrenAreaHeight-2*t.getMarginY(a+1)-e.height;o>0&&t.updateBrothers(e,o/2)}}),null,!0)}},{key:"updateBrothers",value:function(t,e){var i=this;if(t.parent){var n=t.parent.children,a=n.findIndex((function(e){return e===t}));n.forEach((function(t,n){var o=0;na&&(o=e),t.top+=o,t.children&&t.children.length&&i.updateChildren(t.children,"top",o)})),this.updateBrothers(t.parent,e)}}},{key:"renderLine",value:function(t,e){var i=this;if(t.children.length<=0)return[];var n=t.left,a=t.top,o=t.width,r=t.height;t.children.forEach((function(s,l){var c=0===t.layerIndex?n+o/2:n+o+20,d=(t.layerIndex,a+r/2),h=s.left,u=s.top+s.height/2,p="";p=t.isRoot?i.quadraticCurvePath(c,d,h,u):i.cubicBezierPath(c,d,h,u),e[l].plot(p)}))}},{key:"renderExpandBtn",value:function(t,e){var i=t.width,n=t.height,a=e.transform(),o=a.translateX,r=a.translateY;e.translate(i-o,n/2-r)}}]),i}(ie),ae=ne,oe=(n("4de4"),function(t){Object(Dt["a"])(i,t);var e=Object(Nt["a"])(i);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(Mt["a"])(this,i),e.call(this,t)}return Object(kt["a"])(i,[{key:"doLayout",value:function(t){var e=this,i=[function(){e.computedBaseValue()},function(){e.computedTopValue()},function(){e.adjustTopValue()},function(){t(e.root)}];Gt(i)}},{key:"computedBaseValue",value:function(){var t=this;jt(this.renderer.renderTree,null,(function(e,i,n,a,o){var r=t.createNode(e,i,n,a);if(n?(r.left=(t.mindMap.width-r.width)/2,r.top=(t.mindMap.height-r.height)/2):(i._node.dir?r.dir=i._node.dir:r.dir=o%2===0?"right":"left",r.left="right"===r.dir?i._node.left+i._node.width+t.getMarginX(a):i._node.left-t.getMarginX(a)-r.width),!e.data.expand)return!0}),(function(e,i,n,a){if(!e.data.expand)return e._node.leftChildrenAreaHeight=0,void(e._node.rightChildrenAreaHeight=0);var o=0,r=0,s=0,l=0;e._node.children.forEach((function(t){"left"===t.dir?(o++,s+=t.height):(r++,l+=t.height)})),e._node.leftChildrenAreaHeight=s+(o+1)*t.getMarginY(a+1),e._node.rightChildrenAreaHeight=l+(r+1)*t.getMarginY(a+1)}),!0,0)}},{key:"computedTopValue",value:function(){var t=this;jt(this.root,null,(function(e,i,n,a){if(e.nodeData.data.expand&&e.children&&e.children.length){var o=t.getMarginY(a+1),r=e.top+e.height/2+o,s=r-e.leftChildrenAreaHeight/2,l=r-e.rightChildrenAreaHeight/2;e.children.forEach((function(t){"left"===t.dir?(t.top=s,s+=t.height+o):(t.top=l,l+=t.height+o)}))}}),null,!0)}},{key:"adjustTopValue",value:function(){var t=this;jt(this.root,null,(function(e,i,n,a){if(e.nodeData.data.expand){var o=2*t.getMarginY(a+1)+e.height,r=e.leftChildrenAreaHeight-o,s=e.rightChildrenAreaHeight-o;(r>0||s>0)&&t.updateBrothers(e,r/2,s/2)}}),null,!0)}},{key:"updateBrothers",value:function(t,e,i){var n=this;if(t.parent){var a=t.parent.children.filter((function(e){return e.dir===t.dir})),o=a.findIndex((function(e){return e===t}));a.forEach((function(t,a){var r=0,s="left"===t.dir?e:i;ao&&(r=s),t.top+=r,t.children&&t.children.length&&n.updateChildren(t.children,"top",r)})),this.updateBrothers(t.parent,e,i)}}},{key:"renderLine",value:function(t,e){var i=this;if(t.children.length<=0)return[];var n=t.left,a=t.top,o=t.width,r=t.height,s=t.expandBtnSize;t.children.forEach((function(l,c){var d=0===t.layerIndex?n+o/2:"left"===l.dir?n-s:n+o+20,h=(t.layerIndex,a+r/2),u="left"===l.dir?l.left+l.width:l.left,p=l.top+l.height/2,f="";f=t.isRoot?i.quadraticCurvePath(d,h,u,p):i.cubicBezierPath(d,h,u,p),e[c].plot(f)}))}},{key:"renderExpandBtn",value:function(t,e){var i=t.width,n=t.height,a=t.expandBtnSize,o=e.transform(),r=o.translateX,s=o.translateY,l=("left"===t.dir?0-a:i)-r,c=n/2-s;e.translate(l,c)}}]),i}(ie)),re=oe,se=function(t){Object(Dt["a"])(i,t);var e=Object(Nt["a"])(i);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(Mt["a"])(this,i),e.call(this,t)}return Object(kt["a"])(i,[{key:"doLayout",value:function(t){var e=this,i=[function(){e.computedBaseValue()},function(){e.computedLeftTopValue()},function(){e.adjustLeftTopValue()},function(){t(e.root)}];Gt(i)}},{key:"computedBaseValue",value:function(){var t=this;jt(this.renderer.renderTree,null,(function(e,i,n,a){var o=t.createNode(e,i,n,a);if(n?(o.left=(t.mindMap.width-o.width)/2,o.top=(t.mindMap.height-o.height)/2):i._node.isRoot&&(o.top=i._node.top+i._node.height+t.getMarginX(a)),!e.data.expand)return!0}),(function(e,i,n,a){if(n){var o=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaWidth=o?e._node.children.reduce((function(t,e){return t+e.width}),0)+(o+1)*t.getMarginX(a+1):0}}),!0,0)}},{key:"computedLeftTopValue",value:function(){var t=this;jt(this.root,null,(function(e,i,n,a){if(e.nodeData.data.expand&&e.children&&e.children.length){var o=t.getMarginX(a+1),r=t.getMarginY(a+1);if(n){var s=e.left+e.width/2-e.childrenAreaWidth/2,l=s+o;e.children.forEach((function(t){t.left=l,l+=t.width+o}))}else{var c=e.top+e.height+r+e.expandBtnSize;e.children.forEach((function(t){t.left=e.left+.5*e.width,t.top=c,c+=t.height+r+e.expandBtnSize}))}}}),null,!0)}},{key:"adjustLeftTopValue",value:function(){var t=this;jt(this.root,null,(function(e,i,n,a){if(e.nodeData.data.expand){if(i&&i.isRoot){var o=t.getNodeAreaWidth(e),r=o-e.width;r>0&&t.updateBrothersLeft(e,r/2)}var s=e.children.length;if(i&&!i.isRoot&&s>0){var l=t.getMarginY(a+1),c=e.children.reduce((function(t,e){return t+e.height}),0)+(s+1)*l+s*e.expandBtnSize;t.updateBrothersTop(e,c)}}}),null,!0)}},{key:"getNodeAreaWidth",value:function(t){var e=[],i=function t(i,n){i.children.length?(n+=i.width/2,i.children.forEach((function(e){t(e,n)}))):(n+=i.width,e.push(n))};return i(t,0),Math.max.apply(Math,e)}},{key:"updateBrothersLeft",value:function(t,e){var i=this;if(t.parent){var n=t.parent.children,a=n.findIndex((function(e){return e===t}));if(0===a||a===n.length-1){var o=0===a?-e:e;t.left+=o,t.children&&t.children.length&&this.updateChildren(t.children,"left",o)}n.forEach((function(t,n){var o=0;na&&(o=e),t.left+=o,t.children&&t.children.length&&i.updateChildren(t.children,"left",o)})),this.updateBrothersLeft(t.parent,e)}}},{key:"updateBrothersTop",value:function(t,e){var i=this;if(t.parent&&!t.parent.isRoot){var n=t.parent.children,a=n.findIndex((function(e){return e===t}));n.forEach((function(t,n){var o=0;n>a&&(o=e),t.top+=o,t.children&&t.children.length&&i.updateChildren(t.children,"top",o)})),this.updateBrothersTop(t.parent,e)}}},{key:"renderLine",value:function(t,e){if(t.children.length<=0)return[];var i=t.left,n=t.top,a=t.width,o=t.height,r=t.expandBtnSize,s=t.children.length,l=this.getMarginX(t.layerIndex+1);if(t.isRoot){var c=i+a/2,d=n+o,h=.7*l,u=0,p=0;t.children.forEach((function(t,i){var n=t.left+t.width/2,a=t.top;0===i?u=n:i>=s-1&&(p=n);var o="M ".concat(n,",").concat(d+h," L ").concat(n,",").concat(a);e[i].plot(o)}));var f=this.draw.path();if(t.style.line(f),f.plot("M ".concat(c,",").concat(d," L ").concat(c,",").concat(d+h)),t._lines.push(f),s>1){var v=this.draw.path();t.style.line(v),v.plot("M ".concat(u,",").concat(d+h," L ").concat(p,",").concat(d+h)),t._lines.push(v)}}else{var m=n+o,g=0,b=t.left+.3*t.width;if(t.children.forEach((function(i,n){var a=i.top+i.height/2;n>=s-1&&(g=a);var o="M ".concat(b,",").concat(a," L ").concat(b+.2*t.width,",").concat(a);e[n].plot(o)})),s>0){var x=this.draw.path();r=s>0?r:0,t.style.line(x),x.plot("M ".concat(b,",").concat(m+r," L ").concat(b,",").concat(g)),t._lines.push(x)}}}},{key:"renderExpandBtn",value:function(t,e){var i=t.width,n=t.height,a=t.expandBtnSize,o=t.isRoot;if(!o){var r=e.transform(),s=r.translateX,l=r.translateY;e.translate(.3*i-a/2-s,n+a/2-l)}}}]),i}(ie),le=se,ce=function(t){Object(Dt["a"])(i,t);var e=Object(Nt["a"])(i);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(Mt["a"])(this,i),e.call(this,t)}return Object(kt["a"])(i,[{key:"doLayout",value:function(t){var e=this,i=[function(){e.computedBaseValue()},function(){e.computedLeftValue()},function(){e.adjustLeftValue()},function(){t(e.root)}];Gt(i)}},{key:"computedBaseValue",value:function(){var t=this;jt(this.renderer.renderTree,null,(function(e,i,n,a){var o=t.createNode(e,i,n,a);if(n?(o.left=(t.mindMap.width-o.width)/2,o.top=(t.mindMap.height-o.height)/2):o.top=i._node.top+i._node.height+t.getMarginX(a),!e.data.expand)return!0}),(function(e,i,n,a){var o=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaWidth=o?e._node.children.reduce((function(t,e){return t+e.width}),0)+(o+1)*t.getMarginY(a+1):0}),!0,0)}},{key:"computedLeftValue",value:function(){var t=this;jt(this.root,null,(function(e,i,n,a){if(e.nodeData.data.expand&&e.children&&e.children.length){var o=t.getMarginY(a+1),r=e.left+e.width/2-e.childrenAreaWidth/2,s=r+o;e.children.forEach((function(t){t.left=s,s+=t.width+o}))}}),null,!0)}},{key:"adjustLeftValue",value:function(){var t=this;jt(this.root,null,(function(e,i,n,a){if(e.nodeData.data.expand){var o=e.childrenAreaWidth-2*t.getMarginY(a+1)-e.width;o>0&&t.updateBrothers(e,o/2)}}),null,!0)}},{key:"updateBrothers",value:function(t,e){var i=this;if(t.parent){var n=t.parent.children,a=n.findIndex((function(e){return e===t}));n.forEach((function(t,n){var o=0;na&&(o=e),t.left+=o,t.children&&t.children.length&&i.updateChildren(t.children,"left",o)})),this.updateBrothers(t.parent,e)}}},{key:"renderLine",value:function(t,e){if(t.children.length<=0)return[];var i=t.left,n=t.top,a=t.width,o=t.height,r=t.expandBtnSize,s=t.isRoot,l=i+a/2,c=n+o,d=this.getMarginX(t.layerIndex+1),h=.7*d,u=0,p=0,f=t.children.length;t.children.forEach((function(t,i){var n=t.left+t.width/2,a=t.top;0===i?u=n:i>=f-1&&(p=n);var o="M ".concat(n,",").concat(c+h," L ").concat(n,",").concat(a);e[i].plot(o)}));var v=this.draw.path();if(t.style.line(v),r=f>0&&!s?r:0,v.plot("M ".concat(l,",").concat(c+r," L ").concat(l,",").concat(c+h)),t._lines.push(v),f>1){var m=this.draw.path();t.style.line(m),m.plot("M ".concat(u,",").concat(c+h," L ").concat(p,",").concat(c+h)),t._lines.push(m)}}},{key:"renderExpandBtn",value:function(t,e){var i=t.width,n=t.height,a=t.expandBtnSize,o=e.transform(),r=o.translateX,s=o.translateY;e.translate(i/2-a/2-r,n+a/2-s)}}]),i}(ie),de=ce,he=(n("a15b"),function(){function t(e){Object(Mt["a"])(this,t),this.renderer=e,this.mindMap=e.mindMap,this.textEditNode=null,this.showTextEdit=!1,this.bindEvent()}return Object(kt["a"])(t,[{key:"bindEvent",value:function(){var t=this;this.show=this.show.bind(this),this.mindMap.on("node_dblclick",this.show),this.mindMap.on("draw_click",(function(){t.hideEditTextBox()})),this.mindMap.on("expand_btn_click",(function(){t.hideEditTextBox()})),this.mindMap.on("before_node_active",(function(){t.hideEditTextBox()})),this.mindMap.keyCommand.addShortcut("Enter",(function(){t.hideEditTextBox()})),this.mindMap.keyCommand.addShortcut("F2",(function(){t.renderer.activeNodeList.length<=0||t.show(t.renderer.activeNodeList[0])}))}},{key:"show",value:function(t){this.showEditTextBox(t,t._textData.node.node.getBoundingClientRect())}},{key:"showEditTextBox",value:function(t,e){this.textEditNode||(this.textEditNode=document.createElement("div"),this.textEditNode.style.cssText="position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: 3px 5px;margin-left: -5px;margin-top: -3px;outline: none;",this.textEditNode.setAttribute("contenteditable",!0),document.body.appendChild(this.textEditNode)),t.style.domText(this.textEditNode),this.textEditNode.innerHTML=t.nodeData.data.text.split(/\n/gim).join("
"),this.textEditNode.style.minWidth=e.width+10+"px",this.textEditNode.style.minHeight=e.height+6+"px",this.textEditNode.style.left=e.left+"px",this.textEditNode.style.top=e.top+"px",this.textEditNode.style.display="block",this.showTextEdit=!0}},{key:"hideEditTextBox",value:function(){var t=this;this.showTextEdit&&(this.renderer.activeNodeList.forEach((function(e){var i=Ht(t.textEditNode.innerHTML);t.mindMap.execCommand("SET_NODE_TEXT",e,i),t.mindMap.render()})),this.mindMap.emit("hide_text_edit",this.textEditNode,this.renderer.activeNodeList),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.textEditNode.style.fontFamily="inherit",this.textEditNode.style.fontSize="inherit",this.textEditNode.style.fontWeight="normal",this.showTextEdit=!1)}}]),t}()),ue={logicalStructure:ae,mindMap:re,catalogOrganization:le,organizationStructure:de},pe=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(Mt["a"])(this,t),this.opt=e,this.mindMap=e.mindMap,this.themeConfig=this.mindMap.themeConfig,this.draw=this.mindMap.draw,this.renderTree=At()({},this.mindMap.opt.data||{}),this.reRender=!1,this.activeNodeList=[],this.root=null,this.setLayout(),this.bindEvent(),this.registerCommands(),this.registerShortcutKeys(),this.textEdit=new he(this)}return Object(kt["a"])(t,[{key:"setLayout",value:function(){this.layout=new(ue[this.mindMap.opt.layout]?ue[this.mindMap.opt.layout]:ue.logicalStructure)(this)}},{key:"bindEvent",value:function(){var t=this;this.mindMap.on("draw_click",(function(){t.activeNodeList.length>0&&(t.clearActive(),t.mindMap.emit("node_active",null,[]))}))}},{key:"registerCommands",value:function(){this.back=this.back.bind(this),this.mindMap.command.add("BACK",this.back),this.forward=this.forward.bind(this),this.mindMap.command.add("FORWARD",this.forward),this.insertNode=this.insertNode.bind(this),this.mindMap.command.add("INSERT_NODE",this.insertNode),this.insertChildNode=this.insertChildNode.bind(this),this.mindMap.command.add("INSERT_CHILD_NODE",this.insertChildNode),this.removeNode=this.removeNode.bind(this),this.mindMap.command.add("REMOVE_NODE",this.removeNode),this.setNodeStyle=this.setNodeStyle.bind(this),this.mindMap.command.add("SET_NODE_STYLE",this.setNodeStyle),this.setNodeActive=this.setNodeActive.bind(this),this.mindMap.command.add("SET_NODE_ACTIVE",this.setNodeActive),this.clearActive=this.clearActive.bind(this),this.mindMap.command.add("CLEAR_ACTIVE_NODE",this.clearActive),this.setNodeExpand=this.setNodeExpand.bind(this),this.mindMap.command.add("SET_NODE_EXPAND",this.setNodeExpand),this.setNodeData=this.setNodeData.bind(this),this.mindMap.command.add("SET_NODE_DATA",this.setNodeData),this.setNodeText=this.setNodeText.bind(this),this.mindMap.command.add("SET_NODE_TEXT",this.setNodeText),this.setNodeImage=this.setNodeImage.bind(this),this.mindMap.command.add("SET_NODE_IMAGE",this.setNodeImage),this.setNodeIcon=this.setNodeIcon.bind(this),this.mindMap.command.add("SET_NODE_ICON",this.setNodeIcon),this.setNodeHyperlink=this.setNodeHyperlink.bind(this),this.mindMap.command.add("SET_NODE_HYPERLINK",this.setNodeHyperlink),this.setNodeNote=this.setNodeNote.bind(this),this.mindMap.command.add("SET_NODE_NOTE",this.setNodeNote),this.setNodeTag=this.setNodeTag.bind(this),this.mindMap.command.add("SET_NODE_TAG",this.setNodeTag)}},{key:"registerShortcutKeys",value:function(){var t=this;this.mindMap.keyCommand.addShortcut("Tab",(function(){t.insertChildNode()})),this.mindMap.keyCommand.addShortcut("Enter",(function(){t.textEdit.showTextEdit||t.insertNode()})),this.mindMap.keyCommand.addShortcut("/",(function(){t.activeNodeList.forEach((function(e){e.nodeData.children.length<=0||t.toggleNodeExpand(e)}))})),this.mindMap.keyCommand.addShortcut("Del|Backspace",(function(){t.removeNode()}))}},{key:"render",value:function(){var t=this;this.layout.doLayout((function(e){t.root=e,t.root.render()}))}},{key:"clearActive",value:function(){var t=this;this.activeNodeList.forEach((function(e){t.mindMap.execCommand("SET_NODE_ACTIVE",e,!1)})),this.activeNodeList=[]}},{key:"addActiveNode",value:function(t){var e=this.findActiveNodeIndex(t);-1===e&&this.activeNodeList.push(t)}},{key:"removeActiveNode",value:function(t){var e=this.findActiveNodeIndex(t);this.activeNodeList.splice(e,1)}},{key:"findActiveNodeIndex",value:function(t){return this.activeNodeList.findIndex((function(e){return e===t}))}},{key:"getNodeIndex",value:function(t){return t.parent?t.parent.children.findIndex((function(e){return e===t})):0}},{key:"back",value:function(t){var e=this.mindMap.command.back(t);e&&(this.renderTree=e,this.mindMap.reRender())}},{key:"forward",value:function(t){var e=this.mindMap.command.forward(t);e&&(this.renderTree=e,this.mindMap.reRender())}},{key:"insertNode",value:function(){if(!(this.activeNodeList.length<=0)){var t=this.activeNodeList[0];if(t.isRoot)this.insertChildNode();else{var e=this.getNodeIndex(t);t.parent.nodeData.children.splice(e+1,0,{data:{text:"分支主题",expand:!0},children:[]}),this.mindMap.render()}}}},{key:"insertChildNode",value:function(){var t=this;this.activeNodeList.length<=0||(this.activeNodeList.forEach((function(e,i){e.nodeData.children||(e.nodeData.children=[]),e.nodeData.children.push({data:{text:"分支主题",expand:!0},children:[]}),e.isRoot&&t.mindMap.batchExecution.push("renderNode"+i,(function(){e.renderNode()}))})),this.mindMap.render())}},{key:"removeNode",value:function(){if(!(this.activeNodeList.length<=0)){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:"";this.setNodeDataRender(t,{hyperlink:e,hyperlinkTitle:i})}},{key:"setNodeNote",value:function(t,e){this.setNodeDataRender(t,{note:e})}},{key:"setNodeTag",value:function(t,e){this.setNodeDataRender(t,{tag:e})}},{key:"setNodeData",value:function(t,e){Object.keys(e).forEach((function(i){t.nodeData.data[i]=e[i]}))}},{key:"setNodeDataRender",value:function(t,e){this.setNodeData(t,e);var i=t.getSize();t.renderNode(),i&&this.mindMap.render()}}]),t}(),fe=pe,ve={paddingX:15,paddingY:5,imgMaxWidth:100,imgMaxHeight:100,iconSize:20,lineWidth:1,lineColor:"#549688",backgroundColor:"#fafafa",backgroundImage:"none",backgroundRepeat:"no-repeat",root:{fillColor:"#549688",fontFamily:"微软雅黑, Microsoft YaHei",color:"#fff",fontSize:16,fontWeight:"bold",fontStyle:"normal",lineHeight:1.5,borderColor:"transparent",borderWidth:0,borderDasharray:"none",borderRadius:5,textDecoration:"none",active:{borderColor:"rgb(57, 80, 96)",borderWidth:3,borderDasharray:"none"}},second:{marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none",active:{borderColor:"rgb(57, 80, 96)",borderWidth:3,borderDasharray:"none"}},node:{marginX:50,marginY:0,fillColor:"transparent",fontFamily:"微软雅黑, Microsoft YaHei",color:"#6a6d6c",fontSize:14,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"transparent",borderWidth:0,borderRadius:5,borderDasharray:"none",textDecoration:"none",active:{borderColor:"rgb(57, 80, 96)",borderWidth:3,borderDasharray:"none"}}},me=At()(ve,{lineColor:"#333",backgroundColor:"#d1f6ec",root:{fillColor:"#1fb27d"},second:{fillColor:"#fff",color:"#565656",borderColor:"transparent",borderWidth:0}}),ge=At()(ve,{lineColor:"rgb(115, 161, 191)",backgroundColor:"rgb(251, 251, 251)",root:{fillColor:"rgb(115, 161, 191)",active:{borderColor:"rgb(57, 80, 96)"}},second:{fillColor:"rgb(238, 243, 246)",color:"#333",borderColor:"rgb(115, 161, 191)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(57, 80, 96)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(57, 80, 96)"}}}),be=At()(ve,{lineColor:"rgb(191, 115, 148)",backgroundColor:"rgb(251, 251, 251)",root:{fillColor:"rgb(191, 115, 148)",active:{borderColor:"rgb(96, 57, 74)"}},second:{fillColor:"rgb(246, 238, 242)",color:"#333",borderColor:"rgb(191, 115, 148)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(96, 57, 74)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(96, 57, 74)"}}}),xe=At()(ve,{lineColor:"rgb(123, 115, 191)",backgroundColor:"rgb(251, 251, 251)",root:{fillColor:"rgb(123, 115, 191)",active:{borderColor:"rgb(61, 57, 96)"}},second:{fillColor:"rgb(239, 238, 246)",color:"#333",borderColor:"rgb(123, 115, 191)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(61, 57, 96)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(61, 57, 96)"}}}),ye=At()(ve,{lineColor:"rgb(191, 115, 115)",backgroundColor:"rgb(251, 251, 251)",root:{fillColor:"rgb(191, 115, 115)",active:{borderColor:"rgb(96, 57, 57)"}},second:{fillColor:"rgb(246, 238, 238)",color:"#333",borderColor:"rgb(191, 115, 115)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(96, 57, 57)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(96, 57, 57)"}}}),Ce=At()(ve,{lineColor:"rgb(191, 147, 115)",backgroundColor:"rgb(251, 251, 251)",root:{fillColor:"rgb(191, 147, 115)",active:{borderColor:"rgb(96, 73, 57)"}},second:{fillColor:"rgb(246, 242, 238)",color:"#333",borderColor:"rgb(191, 147, 115)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(96, 73, 57)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(96, 73, 57)"}}}),we=At()(ve,{lineColor:"#fff",lineWidth:3,backgroundColor:"rgb(58, 65, 68)",backgroundImage:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=",backgroundRepeat:"repeat",root:{fillColor:"rgb(233, 223, 152)",color:"#333",fontSize:24,borderRadius:21,active:{fillColor:"rgb(254, 219, 0)",borderColor:"transparent"}},second:{fillColor:"rgb(164, 197, 192)",borderColor:"transparent",color:"#333",fontSize:16,borderRadius:10,active:{fillColor:"rgb(254, 219, 0)",borderColor:"transparent"}},node:{fontSize:12,color:"#fff",fontWeight:"bold",active:{fillColor:"rgb(254, 219, 0)",borderColor:"transparent"}}}),Me=At()(ve,{lineColor:"rgb(51, 51, 51)",lineWidth:2,backgroundColor:"#fff",root:{fillColor:"rgb(18, 187, 55)",color:"#fff",fontSize:24,borderRadius:10,active:{borderColor:"rgb(51, 51, 51)"}},second:{fillColor:"rgb(241, 242, 241)",borderColor:"transparent",color:"#1a1a1a",fontSize:18,borderRadius:10,active:{borderColor:"rgb(51, 51, 51)"}},node:{fontSize:14,color:"#1a1a1a",active:{borderColor:"rgb(51, 51, 51)"}}}),ke=At()(ve,{lineColor:"rgb(94, 202, 110)",lineWidth:2,backgroundColor:"rgb(241, 241, 241)",root:{fillColor:"rgb(255, 245, 214)",color:"#1a1a1a",fontSize:24,borderRadius:10,borderColor:"rgb(249, 199, 84)",borderWidth:1,active:{borderColor:"rgb(94, 202, 110)"}},second:{fillColor:"rgb(255, 245, 214)",borderColor:"rgb(249, 199, 84)",borderWidth:1,color:"#1a1a1a",fontSize:18,borderRadius:10,active:{borderColor:"rgb(94, 202, 110)"}},node:{fontSize:14,color:"#1a1a1a",active:{borderColor:"rgb(94, 202, 110)"}}}),Fe=At()(ve,{lineColor:"rgb(17, 68, 23)",lineWidth:2,backgroundColor:"rgb(15, 16, 17)",root:{fillColor:"rgb(28, 178, 43)",color:"#fff",fontSize:24,borderRadius:10,active:{borderColor:"rgb(17, 68, 23)"}},second:{fillColor:"rgb(55, 56, 58)",color:"rgb(147,148,149)",fontSize:18,borderRadius:10,borderWidth:0,active:{borderColor:"rgb(17, 68, 23)"}},node:{fontSize:14,color:"rgb(147, 148, 149)",active:{borderColor:"rgb(17, 68, 23)"}}}),_e=At()(ve,{lineColor:"rgb(123, 199, 120)",backgroundColor:"rgb(236, 245, 231)",root:{fillColor:"rgb(253, 244, 217)",color:"#222",active:{borderColor:"rgb(94, 199, 248)"}},second:{fillColor:"rgb(253, 244, 217)",color:"#222",borderColor:"rgb(242, 200, 104)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(94, 199, 248)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(94, 199, 248)"}}}),De=At()(ve,{lineColor:"rgb(51, 51, 51)",lineWidth:2,backgroundColor:"rgb(239, 248, 250)",root:{fillColor:"rgb(255, 255, 255)",color:"#222",active:{borderColor:"rgb(94, 199, 248)"}},second:{fillColor:"rgb(255, 255, 255)",color:"#222",borderColor:"rgb(255, 255, 255)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(94, 199, 248)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(94, 199, 248)"}}}),Ne=At()(ve,{lineColor:"rgb(51, 51, 51)",lineWidth:3,backgroundColor:"rgb(248, 215, 49)",root:{fillColor:"rgb(55, 165, 255)",borderColor:"rgb(51, 51, 51)",borderWidth:3,active:{borderColor:"rgb(255, 160, 36)"}},second:{fillColor:"rgb(255, 160, 36)",color:"#222",borderColor:"rgb(51, 51, 51)",borderWidth:3,fontSize:14,active:{borderColor:"rgb(55, 165, 255)"}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(55, 165, 255)"}}}),ze=At()(ve,{lineColor:"rgb(166, 101, 106)",lineWidth:3,backgroundColor:"rgb(255, 208, 211)",root:{fillColor:"rgb(139, 109, 225)",borderColor:"",borderWidth:0,active:{borderColor:"rgb(243, 104, 138)",borderWidth:2}},second:{fillColor:"rgb(243, 104, 138)",color:"#fff",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"rgb(139, 109, 225)",borderWidth:2}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(139, 109, 225)"}}}),Ee=At()(ve,{lineColor:"rgb(104, 204, 202)",lineWidth:3,backgroundColor:"rgb(239, 255, 255)",root:{fillColor:"rgb(0, 192, 184)",borderColor:"",borderWidth:0,active:{borderColor:"rgb(255, 160, 36)",borderWidth:3}},second:{fillColor:"#fff",color:"#222",borderColor:"rgb(184, 235, 233)",borderWidth:2,fontSize:14,active:{borderColor:"rgb(0, 192, 184)"}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(0, 192, 184)"}}}),Se=At()(ve,{lineColor:"rgb(51, 56, 62)",lineWidth:3,backgroundColor:"#fff",root:{fillColor:"rgb(51, 56, 62)",color:"rgb(247, 208, 160)",borderColor:"",borderWidth:0,active:{borderColor:"rgb(247, 208, 160)",borderWidth:3}},second:{fillColor:"rgb(239, 209, 176)",color:"rgb(81, 58, 42)",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"rgb(51, 56, 62)",borderWidth:2}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(0, 192, 184)"}}}),Be=At()(ve,{lineColor:"rgb(254, 146, 0)",lineWidth:3,backgroundColor:"rgb(255, 246, 243)",root:{fillColor:"rgb(255, 112, 52)",color:"#fff",borderColor:"",borderWidth:0,active:{borderColor:"rgb(51, 51, 51)",borderWidth:3}},second:{fillColor:"#fff",color:"rgb(51, 51, 51)",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"rgb(255, 112, 52)",borderWidth:2}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(255, 112, 52)"}}}),Te=At()(ve,{lineColor:"rgb(40, 193, 84)",lineWidth:3,backgroundColor:"rgb(238, 255, 243)",root:{fillColor:"rgb(25, 193, 73)",color:"#fff",borderColor:"",borderWidth:0,active:{borderColor:"#222",borderWidth:3}},second:{fillColor:"#fff",color:"rgb(69, 149, 96)",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"rgb(25, 193, 73)",borderWidth:2}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(25, 193, 73)"}}}),Ie=At()(ve,{lineColor:"rgb(75, 81, 78)",lineWidth:3,backgroundColor:"rgb(27, 31, 34)",root:{fillColor:"rgb(36, 179, 96)",color:"#fff",borderColor:"",borderWidth:0,active:{borderColor:"rgb(254, 199, 13)",borderWidth:3}},second:{fillColor:"rgb(254, 199, 13)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"rgb(36, 179, 96)",borderWidth:2}},node:{fontSize:12,color:"rgb(204, 204, 204)",active:{borderColor:"rgb(254, 199, 13)"}}}),Ae=At()(ve,{lineColor:"#fff",lineWidth:3,backgroundColor:"rgb(80, 156, 170)",root:{fillColor:"#fff",borderColor:"",borderWidth:0,color:"rgb(65, 89, 158)",active:{borderColor:"rgb(251, 227, 188)",borderWidth:3}},second:{fillColor:"rgb(251, 227, 188)",color:"rgb(65, 89, 158)",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"#fff",borderWidth:2}},node:{fontSize:12,color:"rgb(65, 89, 158)",active:{borderColor:"rgb(251, 227, 188)"}}}),Oe={default:ve,freshGreen:me,blueSky:ge,brainImpairedPink:be,romanticPurple:xe,freshRed:ye,earthYellow:Ce,classic:we,classic2:Me,classic3:ke,dark:Fe,classicGreen:_e,classicBlue:De,minions:Ne,pinkGrape:ze,mint:Ee,gold:Se,vitalityOrange:Be,greenLeaf:Te,dark2:Ie,skyGreen:Ae},Re=n("53ca"),Le={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Esc:27,Spacebar:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190,direction:{37:1,38:1,39:1,40:1},controlKeys:{16:1,17:1,18:1,20:1,91:1,224:1},notContentChange:{13:1,9:1,33:1,34:1,35:1,36:1,16:1,17:1,18:1,20:1,91:1,37:1,38:1,39:1,40:1,113:1,114:1,115:1,144:1,27:1},isSelectedNodeKey:{37:1,38:1,39:1,40:1,13:1,9:1}},je=0;je<=9;je++)Le[je]=je+48;"abcdefghijklmnopqrstuvwxyz".split("").forEach((function(t,e){Le[t]=e+65}));var $e=Le,We=function(){function t(e){Object(Mt["a"])(this,t),this.opt=e,this.mindMap=e.mindMap,this.shortcutMap={},this.bindEvent()}return Object(kt["a"])(t,[{key:"bindEvent",value:function(){var t=this;window.addEventListener("keydown",(function(e){Object.keys(t.shortcutMap).forEach((function(i){t.checkKey(e,i)&&(e.stopPropagation(),e.preventDefault(),t.shortcutMap[i].forEach((function(t){t()})))}))}))}},{key:"checkKey",value:function(t,e){var i=this.getOriginEventCodeArr(t),n=this.getKeyCodeArr(e);if(i.length!==n.length)return!1;for(var a=function(t){var e=n.findIndex((function(e){return e===i[t]}));if(-1===e)return{v:!1};n.splice(e,1)},o=0;o0&&void 0!==arguments[0]?arguments[0]:{};Object(Mt["a"])(this,t),this.opt=e,this.mindMap=e.mindMap,this.commands={},this.history=[],this.activeHistoryIndex=0}return Object(kt["a"])(t,[{key:"exec",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:1;if(this.activeHistoryIndex-t>=0)return this.activeHistoryIndex-=t,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length),Vt(this.history[this.activeHistoryIndex])}},{key:"forward",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.history.length;if(this.activeHistoryIndex+t<=e-1)return this.activeHistoryIndex+=t,this.mindMap.emit("back_forward",this.activeHistoryIndex),Vt(this.history[this.activeHistoryIndex])}},{key:"getCopyData",value:function(){return Yt({},this.mindMap.renderer.renderTree)}}]),t}(),Ve=He,Ye=function(t,e){var i=!1,n=null,a=function(){i=!1,e?t.call(e):t()};if("undefined"!==typeof MutationObserver){var o=1,r=new MutationObserver(a),s=document.createTextNode(o);r.observe(s,{characterData:!0}),n=function(){o=(o+1)%2,s.data=o}}else n=setTimeout;return function(t,e){i||(i=!0,n(a,0))}},Ze=function(){function t(){Object(Mt["a"])(this,t),this.has={},this.queue=[],this.nextTick=Ye(this.flush,this)}return Object(kt["a"])(t,[{key:"push",value:function(t,e){this.has[t]||(this.has[t]=!0,this.queue.push({name:t,fn:e}),this.nextTick())}},{key:"flush",value:function(){var t=this,e=this.queue.slice(0);this.queue=[],e.forEach((function(e){var i=e.name,n=e.fn;t.has[i]=!1,n()}))}}]),t}(),Xe=Ze,Pe=(n("3ca3"),n("ddb0"),n("2b3d"),window.URL||window.webkitURL||window),Ge=function(){function t(e){Object(Mt["a"])(this,t),this.mindMap=e.mindMap,this.exportPadding=this.mindMap.opt.exportPadding}return Object(kt["a"])(t,[{key:"export",value:function(){var t=Object(m["a"])(regeneratorRuntime.mark((function t(e){var i,n,a=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=!(a.length>1&&void 0!==a[1])||a[1],!this[e]){t.next=9;break}return t.next=4,this[e]();case 4:return n=t.sent,i&&Xt(n,"思维导图."+e),t.abrupt("return",n);case 9:return t.abrupt("return",null);case 10:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getSvgData",value:function(){var t=Object(m["a"])(regeneratorRuntime.mark((function t(){var e,i,n,a,o,r,s,l,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.mindMap.svg,i=this.mindMap.draw,n=e.width(),a=e.height(),o=i.transform(),i.scale(1/o.scaleX,1/o.scaleY).translate(0,0),r=i.rbox(),e.size(r.wdith,r.height),i.translate(-r.x,-r.y),s=e.clone(),e.size(n,a),i.transform(o),l=s.find("image"),c=l.map(function(){var t=Object(m["a"])(regeneratorRuntime.mark((function t(e){var i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.attr("href")||e.attr("xlink:href"),t.next=3,Zt(i);case 3:n=t.sent,e.attr("href",n);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t.next=16,Promise.all(c);case 16:return t.abrupt("return",{node:s,str:s.svg()});case 17:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"svgToPng",value:function(t){var e=this;return new Promise((function(i,n){var a=new Image;a.setAttribute("crossOrigin","anonymous"),a.onload=Object(m["a"])(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,o=document.createElement("canvas"),o.width=a.width+2*e.exportPadding,o.height=a.height+2*e.exportPadding,r=o.getContext("2d"),t.next=7,e.drawBackgroundToCanvas(r,o.width,o.height);case 7:r.drawImage(a,0,0,a.width,a.height,e.exportPadding,e.exportPadding,a.width,a.height),i(o.toDataURL()),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),n(t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])}))),a.onerror=function(t){n(t)},a.src=t}))}},{key:"drawBackgroundToCanvas",value:function(t,e,i){var n=this;return new Promise((function(a,o){var r=n.mindMap.themeConfig,s=r.backgroundColor,l=void 0===s?"#fff":s,c=r.backgroundImage,d=r.backgroundRepeat,h=void 0===d?"repeat":d;if(t.save(),t.rect(0,0,e,i),t.fillStyle=l,t.fill(),t.restore(),c&&"none"!==c){t.save();var u=new Image;u.src=c,u.onload=function(){var n=t.createPattern(u,h);t.rect(0,0,e,i),t.fillStyle=n,t.fill(),t.restore(),a()},u.onerror=function(t){o(t)}}else a()}))}},{key:"png",value:function(){var t=Object(m["a"])(regeneratorRuntime.mark((function t(){var e,i,n,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getSvgData();case 2:return e=t.sent,i=e.str,n=new Blob([i],{type:"image/svg+xml"}),a=Pe.createObjectURL(n),t.next=8,this.svgToPng(a);case 8:return o=t.sent,Pe.revokeObjectURL(a),t.abrupt("return",o);case 11:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"drawBackgroundToSvg",value:function(t){var e=this;return new Promise(function(){var i=Object(m["a"])(regeneratorRuntime.mark((function i(n,a){var o,r,s,l,c,d,h;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(o=e.mindMap.themeConfig,r=o.backgroundColor,s=void 0===r?"#fff":r,l=o.backgroundImage,c=o.backgroundRepeat,d=void 0===c?"repeat":c,t.css("background-color",s),!l||"none"===l){i.next=11;break}return i.next=5,Zt(l);case 5:h=i.sent,t.css("background-image","url(".concat(h,")")),t.css("background-repeat",d),n(),i.next=12;break;case 11:n();case 12:case"end":return i.stop()}}),i)})));return function(t,e){return i.apply(this,arguments)}}())}},{key:"svg",value:function(){var t=Object(m["a"])(regeneratorRuntime.mark((function t(){var e,i,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getSvgData();case 2:return e=t.sent,i=e.node,t.next=6,this.drawBackgroundToSvg(i);case 6:return n=i.svg(),a=new Blob([n],{type:"image/svg+xml"}),t.abrupt("return",Pe.createObjectURL(a));case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),t}(),Ue=Ge,Je=function(){function t(e){var i=e.mindMap;Object(Mt["a"])(this,t),this.mindMap=i,this.rect=null,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.bindEvent()}return Object(kt["a"])(t,[{key:"bindEvent",value:function(){var t=this;this.checkInNodes=Pt(this.checkInNodes,500,this),this.mindMap.on("mousedown",(function(e){if(3===e.which){t.isMousedown=!0;var i=t.toPos(e.clientX,e.clientY),n=i.x,a=i.y;t.mouseDownX=n,t.mouseDownY=a,t.createRect(n,a)}})),this.mindMap.on("mousemove",(function(e){if(t.isMousedown){var i=t.toPos(e.clientX,e.clientY),n=i.x,a=i.y;t.mouseMoveX=n,t.mouseMoveY=a,t.rect.plot([[t.mouseDownX,t.mouseDownY],[t.mouseMoveX,t.mouseDownY],[t.mouseMoveX,t.mouseMoveY],[t.mouseDownX,t.mouseMoveY]]),t.checkInNodes(),t.move(n,a)}})),this.mindMap.on("mouseup",(function(e){t.isMousedown&&(t.mindMap.emit("node_active",null,t.mindMap.renderer.activeNodeList),t.isMousedown=!1,t.rect&&t.rect.remove(),t.rect=null)}))}},{key:"move",value:function(t,e){var i=this.mindMap.opt.selectTranslateStep,n=this.mindMap.opt.selectTranslateLimit;t<=this.mindMap.elRect.left+n&&(this.mouseDownX+=i,this.mindMap.view.translateX(i)),t>=this.mindMap.elRect.right-n&&(this.mouseDownX-=i,this.mindMap.view.translateX(-i)),e<=this.mindMap.elRect.top+n&&(this.mouseDownY+=i,this.mindMap.view.translateY(i)),e>=this.mindMap.elRect.bottom-n&&(this.mouseDownY-=i,this.mindMap.view.translateY(-i))}},{key:"createRect",value:function(t,e){this.rect=this.mindMap.svg.polygon().stroke({color:"#0984e3"}).fill({color:"rgba(9,132,227,0.3)"}).plot([[t,e]])}},{key:"toPos",value:function(t,e){return{x:t-this.mindMap.elRect.left,y:e-this.mindMap.elRect.top}}},{key:"checkInNodes",value:function(){var t=this,e=this.mindMap.draw.transform(),i=e.scaleX,n=e.scaleY,a=e.translateX,o=e.translateY,r=Math.min(this.mouseDownX,this.mouseMoveX),s=Math.min(this.mouseDownY,this.mouseMoveY),l=Math.max(this.mouseDownX,this.mouseMoveX),c=Math.max(this.mouseDownY,this.mouseMoveY);$t(this.mindMap.renderer.root,(function(e){var d=e.left,h=e.top,u=e.width,p=e.height,f=(d+u)*i+a,v=(h+p)*n+o;d=d*i+a,h=h*n+o,d>=r&&f<=l&&h>=s&&v<=c?t.mindMap.batchExecution.push("activeNode"+e.uid,(function(){e.nodeData.data.isActive||(t.mindMap.execCommand("SET_NODE_ACTIVE",e,!0),t.mindMap.renderer.addActiveNode(e))})):e.nodeData.data.isActive&&t.mindMap.batchExecution.push("activeNode"+e.uid,(function(){e.nodeData.data.isActive&&(t.mindMap.execCommand("SET_NODE_ACTIVE",e,!1),t.mindMap.renderer.removeActiveNode(e))}))}))}}]),t}(),Ke=Je,Qe={layout:"logicalStructure",theme:"default",themeConfig:{},scaleRatio:.1,maxTag:5,exportPadding:20,expandBtnSize:20,imgTextMargin:5,textContentMargin:2,selectTranslateStep:3,selectTranslateLimit:20},qe=function(){function t(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(Mt["a"])(this,t),this.opt=this.handleOpt(At()(Qe,i)),this.el=this.opt.el,this.elRect=this.el.getBoundingClientRect(),this.width=this.elRect.width,this.height=this.elRect.height,this.svg=Object(Ut["f"])().addTo(this.el).size(this.width,this.height),this.draw=this.svg.group(),this.uid=0,this.initTheme(),this.event=new Bt({mindMap:this}),this.keyCommand=new We({mindMap:this}),this.command=new Ve({mindMap:this}),this.renderer=new fe({mindMap:this}),this.view=new _t({mindMap:this,draw:this.draw}),this.doExport=new Ue({mindMap:this}),this.select=new Ke({mindMap:this}),this.batchExecution=new Xe,this.reRender(),setTimeout((function(){e.command.addHistory()}),0)}return Object(kt["a"])(t,[{key:"handleOpt",value:function(t){return ot.includes(t.layout)||(t.layout="logicalStructure"),t.theme=t.theme&&Oe[t.theme]?t.theme:"default",t}},{key:"render",value:function(){var t=this;this.batchExecution.push("render",(function(){t.initTheme(),t.renderer.reRender=!1,t.renderer.render()}))}},{key:"reRender",value:function(){var t=this;this.batchExecution.push("render",(function(){t.draw.clear(),t.initTheme(),t.renderer.reRender=!0,t.renderer.render()}))}},{key:"resize",value:function(){this.elRect=this.el.getBoundingClientRect(),this.width=this.elRect.width,this.height=this.elRect.height,this.svg.size(this.width,this.height)}},{key:"on",value:function(t,e){this.event.on(t,e)}},{key:"emit",value:function(t){for(var e,i=arguments.length,n=new Array(i>1?i-1:0),a=1;a0?i("div",{staticClass:"sidebarContent"},[i("div",{staticClass:"title noTop"},[t._v("文字")]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("字体")]),i("el-select",{attrs:{size:"mini",placeholder:""},on:{change:function(e){return t.update("fontFamily")}},model:{value:t.style.fontFamily,callback:function(e){t.$set(t.style,"fontFamily",e)},expression:"style.fontFamily"}},t._l(t.fontFamilyList,(function(t){return i("el-option",{key:t.value,style:{fontFamily:t.value},attrs:{label:t.name,value:t.value}})})),1)],1)]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("字号")]),i("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(e){return t.update("fontSize")}},model:{value:t.style.fontSize,callback:function(e){t.$set(t.style,"fontSize",e)},expression:"style.fontSize"}},t._l(t.fontSizeList,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("行高")]),i("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(e){return t.update("lineHeight")}},model:{value:t.style.lineHeight,callback:function(e){t.$set(t.style,"lineHeight",e)},expression:"style.lineHeight"}},t._l(t.lineHeightList,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)]),i("div",{staticClass:"row"},[i("div",{staticClass:"btnGroup"},[i("el-tooltip",{attrs:{content:"颜色",placement:"bottom"}},[i("div",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],staticClass:"styleBtn"},[t._v(" A "),i("span",{staticClass:"colorShow",style:{backgroundColor:t.style.color||"#eee"}})])]),i("el-tooltip",{attrs:{content:"加粗",placement:"bottom"}},[i("div",{staticClass:"styleBtn",class:{actived:"bold"===t.style.fontWeight},on:{click:t.toggleFontWeight}},[t._v(" B ")])]),i("el-tooltip",{attrs:{content:"斜体",placement:"bottom"}},[i("div",{staticClass:"styleBtn i",class:{actived:"italic"===t.style.fontStyle},on:{click:t.toggleFontStyle}},[t._v(" I ")])]),i("el-tooltip",{attrs:{content:"划线",placement:"bottom"}},[i("div",{directives:[{name:"popover",rawName:"v-popover:popover2",arg:"popover2"}],staticClass:"styleBtn u",style:{textDecoration:t.style.textDecoration||"none"}},[t._v(" U ")])])],1),i("el-popover",{ref:"popover",attrs:{placement:"bottom",trigger:"click"}},[i("Color",{attrs:{color:t.style.color},on:{change:t.changeFontColor}})],1),i("el-popover",{ref:"popover2",attrs:{placement:"bottom",trigger:"click"}},[i("el-radio-group",{attrs:{size:"mini"},on:{change:function(e){return t.update("textDecoration")}},model:{value:t.style.textDecoration,callback:function(e){t.$set(t.style,"textDecoration",e)},expression:"style.textDecoration"}},[i("el-radio-button",{attrs:{label:"underline"}},[t._v("下划线")]),i("el-radio-button",{attrs:{label:"line-through"}},[t._v("中划线")]),i("el-radio-button",{attrs:{label:"overline"}},[t._v("上划线")])],1)],1)],1),i("div",{staticClass:"title"},[t._v("边框")]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("颜色")]),i("span",{directives:[{name:"popover",rawName:"v-popover:popover3",arg:"popover3"}],staticClass:"block",style:{width:"80px",backgroundColor:t.style.borderColor}}),i("el-popover",{ref:"popover3",attrs:{placement:"bottom",trigger:"click"}},[i("Color",{attrs:{color:t.style.borderColor},on:{change:t.changeBorderColor}})],1)],1),i("div",{staticClass:"rowItem"},[i("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"name"},[t._v("样式")]),i("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(e){return t.update("borderDasharray")}},model:{value:t.style.borderDasharray,callback:function(e){t.$set(t.style,"borderDasharray",e)},expression:"style.borderDasharray"}},t._l(t.borderDasharrayList,(function(t){return i("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("宽度")]),i("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(e){return t.update("borderWidth")}},model:{value:t.style.borderWidth,callback:function(e){t.$set(t.style,"borderWidth",e)},expression:"style.borderWidth"}},t._l(t.borderWidthList,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("圆角")]),i("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(e){return t.update("borderRadius")}},model:{value:t.style.borderRadius,callback:function(e){t.$set(t.style,"borderRadius",e)},expression:"style.borderRadius"}},t._l(t.borderRadiusList,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)]),i("div",{staticClass:"title"},[t._v("背景")]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("颜色")]),i("span",{directives:[{name:"popover",rawName:"v-popover:popover4",arg:"popover4"}],staticClass:"block",style:{backgroundColor:t.style.fillColor}}),i("el-popover",{ref:"popover4",attrs:{placement:"bottom",trigger:"click"}},[i("Color",{attrs:{color:t.style.fillColor},on:{change:t.changeFillColor}})],1)],1)]),i("div",{staticClass:"title noTop"},[t._v("节点内边距")]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("水平")]),i("el-slider",{staticStyle:{width:"200px"},on:{change:function(e){return t.update("paddingX")}},model:{value:t.style.paddingX,callback:function(e){t.$set(t.style,"paddingX",e)},expression:"style.paddingX"}})],1)]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("垂直")]),i("el-slider",{staticStyle:{width:"200px"},on:{change:function(e){return t.update("paddingY")}},model:{value:t.style.paddingY,callback:function(e){t.$set(t.style,"paddingY",e)},expression:"style.paddingY"}})],1)])]):t._e()],1)])},Fi=[],_i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"colorList"},t._l(t.colorList,(function(e){return i("span",{key:e,staticClass:"colorItem",style:{backgroundColor:e},on:{click:function(i){return t.clickColorItem(e)}}})})),0),i("div",{staticClass:"moreColor"},[i("span",[t._v("更多颜色")]),i("el-color-picker",{attrs:{size:"mini"},on:{change:t.changeColor},model:{value:t.selectColor,callback:function(e){t.selectColor=e},expression:"selectColor"}})],1)])},Di=[],Ni={name:"Color",props:{color:{type:String,default:""}},data:function(){return{colorList:li,selectColor:""}},watch:{color:function(){this.selectColor=this.color}},created:function(){this.selectColor=this.color},methods:{clickColorItem:function(t){this.$emit("change",t)},changeColor:function(){this.$emit("change",this.selectColor)}}},zi=Ni,Ei=(n("031a"),Object(c["a"])(zi,_i,Di,!1,null,"f216261e",null)),Si=Ei.exports,Bi={name:"Style",components:{Sidebar:xi,Color:Si},data:function(){return{fontFamilyList:oi,fontSizeList:ri,borderWidthList:ci,borderDasharrayList:di,borderRadiusList:hi,lineHeightList:si,activeNodes:[],activeTab:"normal",style:{paddingX:0,paddingY:0,color:"",fontFamily:"",fontSize:"",lineHeight:"",textDecoration:"",fontWeight:"",fontStyle:"",borderWidth:"",borderColor:"",fillColor:"",borderDasharray:"",borderRadius:""}}},created:function(){var t=this;this.$bus.$on("node_active",(function(){for(var e=arguments.length,i=new Array(e),n=0;n0,t.initNodeStyle()}))}))},methods:{handleTabClick:function(){this.initNodeStyle()},initNodeStyle:function(){var t=this;this.activeNodes.length<=0?this.activeTab="normal":["paddingX","paddingY","color","fontFamily","fontSize","lineHeight","textDecoration","fontWeight","fontStyle","borderWidth","borderColor","fillColor","borderDasharray","borderRadius"].forEach((function(e){t.style[e]=t.activeNodes[0].getStyle(e,!1,"active"===t.activeTab)}))},update:function(t){var e=this;this.activeNodes.forEach((function(i){i.setStyle(t,e.style[t],"active"===e.activeTab)}))},toggleFontWeight:function(){"bold"===this.style.fontWeight?this.style.fontWeight="normal":this.style.fontWeight="bold",this.update("fontWeight")},toggleFontStyle:function(){"italic"===this.style.fontStyle?this.style.fontStyle="normal":this.style.fontStyle="italic",this.update("fontStyle")},changeFontColor:function(t){this.style.color=t,this.update("color")},changeBorderColor:function(t){this.style.borderColor=t,this.update("borderColor")},changeFillColor:function(t){this.style.fillColor=t,this.update("fillColor")}}},Ti=Bi,Ii=(n("3278"),Object(c["a"])(Ti,ki,Fi,!1,null,"66ea57f1",null)),Ai=Ii.exports,Oi=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("Sidebar",{ref:"sidebar",attrs:{title:"基础样式"}},[t.data?i("div",{staticClass:"sidebarContent"},[i("div",{staticClass:"title noTop"},[t._v("背景")]),i("div",{staticClass:"row"},[i("el-tabs",{staticClass:"tab",model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"颜色",name:"color"}},[i("Color",{attrs:{color:t.style.backgroundColor},on:{change:function(e){t.update("backgroundColor",e)}}})],1),i("el-tab-pane",{attrs:{label:"图片",name:"image"}},[i("ImgUpload",{staticClass:"imgUpload",on:{change:function(e){t.update("backgroundImage",e)}},model:{value:t.style.backgroundImage,callback:function(e){t.$set(t.style,"backgroundImage",e)},expression:"style.backgroundImage"}}),i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("图片重复")]),i("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:function(e){t.update("backgroundRepeat",e)}},model:{value:t.style.backgroundRepeat,callback:function(e){t.$set(t.style,"backgroundRepeat",e)},expression:"style.backgroundRepeat"}},t._l(t.backgroundRepeatList,(function(t){return i("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)],1)],1)],1),i("div",{staticClass:"title noTop"},[t._v("连线")]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("颜色")]),i("span",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],staticClass:"block",style:{backgroundColor:t.style.lineColor}}),i("el-popover",{ref:"popover",attrs:{placement:"bottom",trigger:"click"}},[i("Color",{attrs:{color:t.style.lineColor},on:{change:function(e){t.update("lineColor",e)}}})],1)],1),i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("粗细")]),i("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(e){t.update("lineWidth",e)}},model:{value:t.style.lineWidth,callback:function(e){t.$set(t.style,"lineWidth",e)},expression:"style.lineWidth"}},t._l(t.lineWidthList,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)]),i("div",{staticClass:"title noTop"},[t._v("节点内边距")]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("水平")]),i("el-slider",{staticStyle:{width:"200px"},on:{change:function(e){t.update("paddingX",e)}},model:{value:t.style.paddingX,callback:function(e){t.$set(t.style,"paddingX",e)},expression:"style.paddingX"}})],1)]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("垂直")]),i("el-slider",{staticStyle:{width:"200px"},on:{change:function(e){t.update("paddingY",e)}},model:{value:t.style.paddingY,callback:function(e){t.$set(t.style,"paddingY",e)},expression:"style.paddingY"}})],1)]),i("div",{staticClass:"title noTop"},[t._v("图片")]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("显示的最大宽度")]),i("el-slider",{staticStyle:{width:"140px"},attrs:{min:10,max:300},on:{change:function(e){t.update("imgMaxWidth",e)}},model:{value:t.style.imgMaxWidth,callback:function(e){t.$set(t.style,"imgMaxWidth",e)},expression:"style.imgMaxWidth"}})],1)]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("显示的最大高度")]),i("el-slider",{staticStyle:{width:"140px"},attrs:{min:10,max:300},on:{change:function(e){t.update("imgMaxHeight",e)}},model:{value:t.style.imgMaxHeight,callback:function(e){t.$set(t.style,"imgMaxHeight",e)},expression:"style.imgMaxHeight"}})],1)]),i("div",{staticClass:"title noTop"},[t._v("图标")]),i("div",{staticClass:"row"},[i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("大小")]),i("el-slider",{staticStyle:{width:"200px"},attrs:{min:12,max:50},on:{change:function(e){t.update("iconSize",e)}},model:{value:t.style.iconSize,callback:function(e){t.$set(t.style,"iconSize",e)},expression:"style.iconSize"}})],1)]),i("div",{staticClass:"title noTop"},[t._v("节点外边距")]),i("div",{staticClass:"row column"},[i("el-tabs",{staticClass:"tab",on:{"tab-click":t.initMarginStyle},model:{value:t.marginActiveTab,callback:function(e){t.marginActiveTab=e},expression:"marginActiveTab"}},[i("el-tab-pane",{attrs:{label:"二级节点",name:"second"}}),i("el-tab-pane",{attrs:{label:"三级及以下节点",name:"node"}})],1),i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("水平")]),i("el-slider",{staticStyle:{width:"200px"},attrs:{max:200},on:{change:function(e){t.updateMargin("marginX",e)}},model:{value:t.style.marginX,callback:function(e){t.$set(t.style,"marginX",e)},expression:"style.marginX"}})],1),i("div",{staticClass:"rowItem"},[i("span",{staticClass:"name"},[t._v("垂直")]),i("el-slider",{staticStyle:{width:"200px"},attrs:{max:200},on:{change:function(e){t.updateMargin("marginY",e)}},model:{value:t.style.marginY,callback:function(e){t.$set(t.style,"marginY",e)},expression:"style.marginY"}})],1)],1)]):t._e()])},Ri=[],Li={name:"BaseStyle",components:{Sidebar:xi,Color:Si,ImgUpload:_},props:{data:{type:[Object,null],default:null},mindMap:{type:Object}},data:function(){return{lineWidthList:ui,backgroundRepeatList:pi,activeTab:"color",marginActiveTab:"second",style:{backgroundColor:"",lineColor:"",lineWidth:"",paddingX:0,paddingY:0,imgMaxWidth:0,imgMaxHeight:0,iconSize:0,backgroundImage:"",backgroundRepeat:"no-repeat",marginX:0,marginY:0}}},created:function(){var t=this;this.$bus.$on("showBaseStyle",(function(){t.$refs.sidebar.show=!1,t.$nextTick((function(){t.$refs.sidebar.show=!0,t.initStyle()}))}))},methods:{initStyle:function(){var t=this;["backgroundColor","lineWidth","lineColor","paddingX","paddingY","imgMaxWidth","imgMaxHeight","iconSize","backgroundImage","backgroundRepeat"].forEach((function(e){t.style[e]=t.mindMap.getThemeConfig(e),"backgroundImage"===e&&"none"===t.style[e]&&(t.style[e]="")})),this.initMarginStyle()},initMarginStyle:function(){var t=this;["marginX","marginY"].forEach((function(e){t.style[e]=t.mindMap.getThemeConfig()[t.marginActiveTab][e]}))},update:function(t,e){this.style[t]="backgroundImage"===t&&"none"===e?"":e,this.data.theme.config[t]=e,this.mindMap.setThemeConfig(this.data.theme.config)},updateMargin:function(t,e){this.style[t]=e,this.data.theme.config[this.marginActiveTab]||(this.data.theme.config[this.marginActiveTab]={}),this.data.theme.config[this.marginActiveTab][t]=e,this.mindMap.setThemeConfig(this.data.theme.config)}}},ji=Li,$i=(n("49b5"),Object(c["a"])(ji,Oi,Ri,!1,null,"89b7c67e",null)),Wi=$i.exports,Hi=function(){return{image:"/enJFNMHnedQTYTESGfDkctCp2.jpeg",imageTitle:"图片名称",imageSize:{width:1e3,height:563},icon:["priority_1"],tag:["标签1","标签2"],hyperlink:"http://lxqnsys.com/",hyperlinkTitle:"理想青年实验室",note:"理想青年实验室\n一个有意思的角落"}},Vi=(Object(v["a"])({text:"子节点"},Hi()),Object(v["a"])({text:"子节点"},Hi()),{root:{data:{text:"一周安排"},children:[{data:{text:"生活"},children:[{data:{text:"锻炼"},children:[{data:{text:"晨跑"},children:[{data:{text:"7:00-8:00"},children:[]}]},{data:{text:"夜跑"},children:[{data:{text:"20:00-21:00"},children:[]}]}]},{data:{text:"饮食"},children:[{data:{text:"早餐"},children:[{data:{text:"8:30"},children:[]}]},{data:{text:"午餐"},children:[{data:{text:"11:30"},children:[]}]},{data:{text:"晚餐"},children:[{data:{text:"19:00"},children:[]}]}]},{data:{text:"休息"},children:[{data:{text:"午休"},children:[{data:{text:"12:30-13:00"},children:[]}]},{data:{text:"晚休"},children:[{data:{text:"23:00-6:30"},children:[]}]}]}]},{data:{text:"工作日\n周一至周五"},children:[{data:{text:"日常工作"},children:[{data:{text:"9:00-18:00"},children:[]}]},{data:{text:"工作总结"},children:[{data:{text:"21:00-22:00"},children:[]}]}]},{data:{text:"学习"},children:[{data:{text:"工作日"},children:[{data:{text:"早间新闻"},children:[{data:{text:"8:00-8:30"},children:[]}]},{data:{text:"阅读"},children:[{data:{text:"21:00-23:00"},children:[]}]}]},{data:{text:"休息日"},children:[{data:{text:"财务管理"},children:[{data:{text:"9:00-10:30"},children:[]}]},{data:{text:"职场技能"},children:[{data:{text:"14:00-15:30"},children:[]}]},{data:{text:"其他书籍"},children:[{data:{text:"16:00-18:00"},children:[]}]}]}]},{data:{text:"休闲娱乐"},children:[{data:{text:"看电影"},children:[{data:{text:"1~2部"},children:[]}]},{data:{text:"逛街"},children:[{data:{text:"1~2次"},children:[]}]}]}]}}),Yi=Object(v["a"])(Object(v["a"])({},Vi),{},{theme:{template:"default",config:{}},layout:"logicalStructure"}),Zi=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("Sidebar",{ref:"sidebar",attrs:{title:"主题"}},[i("div",{staticClass:"themeList"},t._l(t.themeList,(function(e){return i("div",{key:e.value,staticClass:"themeItem",class:{active:e.value===t.theme},on:{click:function(i){return t.useTheme(e)}}},[i("div",{staticClass:"imgBox"},[i("img",{attrs:{src:e.img,alt:""}})]),i("div",{staticClass:"name"},[t._v(t._s(e.name))])])})),0)])},Xi=[],Pi={name:"Theme",components:{Sidebar:xi},props:{mindMap:{type:Object}},data:function(){return{themeList:rt,theme:""}},created:function(){var t=this;this.$bus.$on("showTheme",(function(){t.$refs.sidebar.show=!1,t.$nextTick((function(){t.theme=t.mindMap.getTheme(),t.$refs.sidebar.show=!0}))}))},methods:{useTheme:function(t){this.theme=t.value,this.mindMap.setTheme(t.value)}}},Gi=Pi,Ui=(n("593a"),Object(c["a"])(Gi,Zi,Xi,!1,null,"3c88e3c4",null)),Ji=Ui.exports,Ki=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("Sidebar",{ref:"sidebar",attrs:{title:"结构"}},[i("div",{staticClass:"layoutList"},t._l(t.layoutList,(function(e){return i("div",{key:e.value,staticClass:"layoutItem",class:{active:e.value===t.layout},on:{click:function(i){return t.useLayout(e)}}},[i("div",{staticClass:"imgBox"},[i("img",{attrs:{src:e.img,alt:""}})]),i("div",{staticClass:"name"},[t._v(t._s(e.name))])])})),0)])},Qi=[],qi={name:"Structure",components:{Sidebar:xi},props:{mindMap:{type:Object}},data:function(){return{layoutList:at,layout:""}},created:function(){var t=this;this.$bus.$on("showStructure",(function(){t.$refs.sidebar.show=!1,t.$nextTick((function(){t.layout=t.mindMap.getLayout(),t.$refs.sidebar.show=!0}))}))},methods:{useLayout:function(t){this.layout=t.value,this.mindMap.setLayout(t.value)}}},tn=qi,en=(n("16f4"),Object(c["a"])(tn,Ki,Qi,!1,null,"b8b8fa6c",null)),nn=en.exports,an=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"countContainer"},[i("div",{staticClass:"item"},[i("span",{staticClass:"name"},[t._v("字数")]),i("span",{staticClass:"value"},[t._v(t._s(t.words))])]),i("div",{staticClass:"item"},[i("span",{staticClass:"name"},[t._v("节点")]),i("span",{staticClass:"value"},[t._v(t._s(t.num))])])])},on=[],rn={name:"Count",props:{},data:function(){return{words:0,num:0}},created:function(){var t=this;this.$bus.$on("data_change",(function(e){t.words=0,t.num=0,t.walk(e)}))},methods:{walk:function(t){var e=this;this.num++,this.words+=(String(t.data.text)||"").length,t.children&&t.children.length>0&&t.children.forEach((function(t){e.walk(t)}))}}},sn=rn,ln=(n("a529"),Object(c["a"])(sn,an,on,!1,null,"806811fa",null)),cn=ln.exports,dn=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"navigatorContainer"},[i("div",{staticClass:"item"},[i("Scale",{attrs:{mindMap:t.mindMap}})],1),i("div",{staticClass:"item"},[i("Fullscreen",{attrs:{mindMap:t.mindMap}})],1)])},hn=[],un=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"scaleContainer"},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"缩小",placement:"top"}},[i("div",{staticClass:"btn el-icon-minus",on:{click:t.narrow}})]),i("div",{staticClass:"scaleInfo"},[t._v(t._s(t.scaleNum)+"%")]),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"放大",placement:"top"}},[i("div",{staticClass:"btn el-icon-plus",on:{click:t.enlarge}})])],1)},pn=[],fn=(n("b680"),{name:"Scale",props:{mindMap:{type:Object}},data:function(){return{scaleNum:100}},watch:{mindMap:function(t,e){var i=this;t&&!e&&this.mindMap.on("scale",(function(t){i.scaleNum=(100*t).toFixed(0)}))}},methods:{narrow:function(){this.mindMap.view.narrow()},enlarge:function(){this.mindMap.view.enlarge()}}}),vn=fn,mn=(n("8c9d"),Object(c["a"])(vn,un,pn,!1,null,"0b274764",null)),gn=mn.exports,bn=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"fullscreenContainer"},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"全屏",placement:"top"}},[i("div",{staticClass:"btn iconfont iconquanping",on:{click:t.toFullscreen}})])],1)},xn=[],yn=function(){return document.documentElement.requestFullScreen?"onfullscreenchange":document.documentElement.webkitRequestFullScreen?"onwebkitfullscreenchange":document.documentElement.mozRequestFullScreen?"onmozfullscreenchange":document.documentElement.msRequestFullscreen?"onmsfullscreenchange":void 0},Cn=yn(),wn=function(t){t.requestFullScreen?t.requestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen&&t.mozRequestFullScreen()},Mn={name:"Fullscreen",props:{mindMap:{type:Object}},data:function(){return{}},watch:{mindMap:function(t,e){}},created:function(){var t=this;document[Cn]=function(e){setTimeout((function(){t.mindMap.resize()}),1e3)}},methods:{toFullscreen:function(){wn(this.mindMap.el)}}},kn=Mn,Fn=(n("616b"),Object(c["a"])(kn,bn,xn,!1,null,"5046d7c1",null)),_n=Fn.exports,Dn={name:"NavigatorToolbar",components:{Scale:gn,Fullscreen:_n},props:{mindMap:{type:Object}}},Nn=Dn,zn=(n("9f99"),Object(c["a"])(Nn,dn,hn,!1,null,"03ce7430",null)),En=zn.exports,Sn=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("Sidebar",{ref:"sidebar",attrs:{title:"快捷键"}},[i("div",{staticClass:"box"},t._l(t.shortcutKeyList,(function(e){return i("div",{key:e.type},[i("div",{staticClass:"title"},[t._v(t._s(e.type))]),t._l(e.list,(function(e){return i("div",{key:e.value,staticClass:"list"},[i("div",{staticClass:"item"},[e.icon?i("span",{staticClass:"icon iconfont",class:[e.icon]}):t._e(),i("span",{staticClass:"name"},[t._v(t._s(e.name))]),i("div",{staticClass:"value"},[t._v(t._s(e.value))])])])}))],2)})),0)])},Bn=[],Tn={name:"ShortcutKey",components:{Sidebar:xi},data:function(){return{shortcutKeyList:vi}},created:function(){var t=this;this.$bus.$on("showShortcutKey",(function(){t.$refs.sidebar.show=!1,t.$nextTick((function(){t.$refs.sidebar.show=!0}))}))}},In=Tn,An=(n("f6e3"),Object(c["a"])(In,Sn,Bn,!1,null,"0c889c85",null)),On=An.exports,Rn={name:"Edit",components:{Outline:Mi,Style:Ai,BaseStyle:Wi,Theme:Ji,Structure:nn,Count:cn,NavigatorToolbar:En,ShortcutKey:On},data:function(){return{mindMap:null,mindMapData:null,prevImg:""}},mounted:function(){this.getData(),this.init(),this.$bus.$on("execCommand",this.execCommand),this.$bus.$on("export",this.export)},methods:{getData:function(){this.mindMapData=Yi},init:function(){var t=this,e=this.mindMapData,i=e.root,n=e.layout,a=e.theme;this.mindMap=new ti({el:this.$refs.mindMapContainer,data:i,layout:n,theme:a.template,themeConfig:a.config}),this.mindMap.on("node_active",(function(){for(var e,i=arguments.length,n=new Array(i),a=0;a