"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../types.js");require("../../confirm-button/index.js");require("../../count-down-button/index.js");require("../../ellipsis/index.js");const h=require("../../rich-text-editor/index.js");require("../../form-fileds/index.js");require("../../pro-form/index.js");require("../../pro-table/index.js");require("../../pro-descriptions/index.js");require("../../layout/index.js");require("../index.js");require("../../guide/index.js");const t=require("element-plus"),p=require("../../node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.4.21/node_modules/@element-plus/icons-vue/dist/index.js"),v={class:"asise-inner-treedata"},C=e.defineComponent({name:"WetProHelp",__name:"index",props:f.wetProHelpProps,setup(d){const n=d,o=t.useNamespace("pro-help"),l=e.shallowRef(""),s=r=>{(!r.children||r.children.length===0)&&(l.value=r.key)},u=e.shallowRef(!0),c=()=>{u.value=!u.value};return(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o).b()])},[e.createVNode(e.unref(t.ElContainer),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElHeader),null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(o).e("title")])}," 帮助中心 ",2),e.createVNode(e.unref(t.ElSpace),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElButton),{link:"",onClick:c},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElIcon),{size:16},{default:e.withCtx(()=>[e.createVNode(e.unref(p.Memo))]),_:1})]),_:1}),e.createVNode(e.unref(t.ElTreeSelect),{placeholder:"问题查询",modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=a=>l.value=a),props:{label:"title",value:"key"},data:n.dataTree,filterable:"",style:{width:"150px"},size:"small"},null,8,["modelValue","data"])]),_:1})]),_:1}),e.createVNode(e.unref(t.ElContainer),null,{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(t.ElAside),{width:"200px"},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(e.unref(t.ElTree),{props:{label:"title"},"node-key":"key","current-node-key":l.value,data:n.dataTree,onNodeClick:s},null,8,["current-node-key","data"])])]),_:1},512),[[e.vShow,u.value]]),e.createVNode(e.unref(t.ElContainer),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElMain),{style:{padding:"0"}},{default:e.withCtx(()=>{var a;return[e.createVNode(e.unref(h.WetRichEditor),{style:{height:"100%"},"initial-value":((a=n.dataSource)==null?void 0:a[l.value])||"","show-toolsbar":!1,"read-only":!0},null,8,["initial-value"])]}),_:1})]),_:1})]),_:1})]),_:1})],2))}});exports.default=C;
