!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,n,o){var a;return a=function(e,n){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,n||"default");if("object"!=t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"),(n="symbol"==t(a)?a:a+"")in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}System.register(["./config-legacy-D-lOy4oz.js","./vendor-legacy-DQtxcMkF.js","./vant-legacy-CcaMRBwM.js","./vue-legacy-CPRnImtR.js","./libs-legacy-BVzMRD_v.js"],(function(t,n){"use strict";var o,a,i,r,s,c,l,u,d,m,f,p,v,g,h,b,y,w;return{setters:[function(t){o=t.C},function(t){a=t.T,i=t.c,r=t.d,s=t._},function(t){c=t.h,l=t.B},function(t){u=t.m,d=t.L,m=t.J,f=t.K,p=t.W,v=t.R,g=t.l,h=t.Q,b=t.F,y=t.D,w=t.S},null],execute:function(){var n=document.createElement("style");n.textContent=".svg-mindmap[data-v-8a713626]{position:absolute;top:50%;transform:translateY(-50%)}.back-view-btn[data-v-8a713626]{position:absolute;z-index:2023;top:54px;left:16px;width:44px;height:44px;background:url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9697%202.98439C12.2626%202.69149%2012.7375%202.69149%2013.0304%202.98439C13.306%203.26005%2013.3223%203.69692%2013.079%203.99155L13.0304%204.04505L5.07507%2012.0004L13.0304%2019.955C13.306%2020.2306%2013.3223%2020.6675%2013.079%2020.9621L13.0304%2021.0156C12.7547%2021.2913%2012.3178%2021.3075%2012.0232%2021.0643L11.9697%2021.0156L3.48443%2012.5303C3.20877%2012.2547%203.19255%2011.8178%203.43579%2011.5232L3.48443%2011.4697L11.9697%202.98439Z'%20fill='white'/%3e%3c/svg%3e\") no-repeat center center/24px 24px}.van-button[data-v-8a713626]{position:absolute;z-index:2023;bottom:58px;left:50%;transform:translate(-50%);height:36px;border-radius:30px;padding:8px 32px;font-size:14px;font-style:normal;font-weight:600;line-height:20px}\n",document.head.appendChild(n);var x=u({components:e(e({},c.name,c),l.name,l),setup:function(){var t=localStorage.getItem("docAssistantMindmapText")||"";return{markmapData:(new a).transform(t).root,nodeColor:function(t){var e;switch(null!==(e=null==t?void 0:t.depth)&&void 0!==e?e:0){case 0:return"#19BCAA";case 1:return"#FF9500";case 2:return"#FF3500";case 3:return"#189D18;";case 4:return"#027DCB";default:return"#2A3695"}}}},data:function(){return{images:[],svgShow:!0}},mounted:function(){var t=this,e=this.$refs.svgRef;i.create(e,{duration:0,autoFit:!0,zoom:!1,pan:!1,maxWidth:1e3,spacingVertical:8,spacingHorizontal:20,color:this.nodeColor}).setData(this.markmapData),setTimeout((function(){var e=t.$refs.svgRef;r.svgAsPngUri(e,{backgroundColor:"white",encoderOptions:1,scale:2.5}).then((function(e){t.images.push(e)}))}),0)},beforeUnmount:function(){localStorage.removeItem("docAssistantMindmapText")},methods:{back:function(){o.back_view()},handleSaveMindmapClick:function(){o.save_img({data:{url:this.images[0]}})}}}),C={key:0,ref:"svgRef",class:"svg-mindmap",width:"100%",height:"210"};t("default",s(x,[["render",function(t,e,n,o,a,i){var r=d("van-button"),s=d("van-image-preview");return m(),f(b,null,[t.svgShow?(m(),f("svg",C,null,512)):p("",!0),v("div",{class:"back-view-btn",onClick:e[0]||(e[0]=function(){return t.back&&t.back.apply(t,arguments)})}),g(r,{color:"#19BCAA",onClick:t.handleSaveMindmapClick},{default:h((function(){return[y(w(t.$t("cs_644_ai_04")),1)]})),_:1},8,["onClick"]),g(s,{show:!0,"show-index":!1,images:t.images},null,8,["images"])],64)}],["__scopeId","data-v-8a713626"]]))}}}))}();
