(window.webpackJsonp=window.webpackJsonp||[]).push([[108],{309:function(t,e,i){"use strict";e.a={welcome:function(t){return{steps:[{intro:"<div style=\"height: 480px;width: 620px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:start;align-items:center;font-size: 16px;padding-top: 20px\"><div style='width: 100%; line-height: 28px; text-align: center'><span>HI，</span><span style='font-weight: bold'>".concat(t,'</span><span>您好！</span></div><span>欢迎进入godiva数据分析平台</span><img style="height: 282px;width: 348px;margin: 38px 0 20px 0" src="public/image/guide/welcome.png"></img><div id="goGuide_btn">进入新手指引</div></div>')},{element:"#app-bar-guide",intro:"<div style=\"width: 230px;display:flex;flex-direction:column;justify-content:start;align-items:start;font-size: 14px\"><span style='line-height:22px;font-weight:bold;'>帮助中心</span><span style=\"margin-top: 8px\">您可以在右上角'帮助中心'中再次进入新手指引</span></div>"}],doneLabel:"完成",nextLabel:"跳过此步骤",exitOnOverlayClick:!1,showStepNumbers:!1,showBullets:!1,hidePrev:!0,tooltipClass:"godiva-guide_choice",highlightClass:"godiva-guide_highlight"}},bye:{steps:[{intro:"<div style=\"height: 460px;width: 620px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:start;align-items:center;font-size: 16px;padding-top: 20px\"><div style='line-height:24px'><span style='width: 376px'>您完成了新手指引！想了解更多功能请参照</span><a id=\"markdown_btn\">帮助文档</a></div><div style='line-height:24px'><span style='width: 376px'>您还可以在右上角</span><i class='el-icon-question'></i><span>重复进入新手引导</span></div><img style=\"height: 272px;width: 246px;margin: 38px 0 20px 0\" src=\"public/image/guide/bye.png\"></img><div id=\"exitGuide_btn\">恭喜，已完成</div></div>"}],doneLabel:"再来一次",exitOnOverlayClick:!1,showStepNumbers:!1,showBullets:!1,hidePrev:!0,tooltipClass:"godiva-guide_choice",highlightClass:"godiva-guide_highlight"},getOffset:function(t){var e=document.body,i=document.documentElement,n=window.pageYOffset||i.scrollTop||e.scrollTop,o=window.pageXOffset||i.scrollLeft||e.scrollLeft,s=t.getBoundingClientRect();return{top:s.top+n,width:s.width,height:s.height,left:s.left+o}},setStyle:function(t){return"position: fixed;box-sizing: content-box;position: absolute;z-index: 999999;background-color: rgba(255,255,255,.9);border: 1px solid rgba(0,0,0,.5);border-radius: 4px;box-shadow: 0 2px 15px rgba(0,0,0,.4);transition: all 0.3s ease-out;width: "+(t.width+16)+"px; height:"+(t.height+16)+"px; top:"+(t.top-8)+"px;left: "+(t.left-8)+"px;"}}},436:function(t,e,i){},674:function(t,e,i){"use strict";var n=i(436);i.n(n).a},968:function(t,e,i){"use strict";i.r(e),i(34);var n=i(0),o=i.n(n),s=(i(8),i(1)),a=i.n(s),l=i(309),r=i(280),d=i.n(r),p={mounted:function(){var t=this;return a()(o.a.mark((function e(){var i,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$route.query.guide&&(d()().setOptions({steps:[{element:"#addSetStep1",intro:"<div id='container'><span class='title'>新建图表</span><span class='context'>点击“新建图表”选择刚刚导入的数据，新建一个空白的图表</span></div>"}],disableInteraction:!0,showBullets:!1,showStepNumbers:!1,tooltipClass:"normal_intro",hideNext:!0,hidePrev:!0,doneLabel:"跳过",nextLabel:"下一步",skipLabel:"跳过",exitOnOverlayClick:!1}).start().onexit((function(){t.$store.dispatch({type:"setOperation",target:"finish_godiva_guide",needClose:!0})})),(i=document.createElement("a")).setAttribute("class","introjs-button introjs-nextbutton"),i.innerText="下一步",(n=document.querySelectorAll(".introjs-tooltipbuttons")[0]).appendChild(i),i.onclick=function(){t.$emit("changeStep",1),n.removeChild(i),d()().exit()});case 1:case"end":return e.stop()}}),e)})))()},methods:{startGuide:function(){var t=this,e=this.$store.state.appbar.user.name;d()().setOptions(l.a.welcome(e)).start().onchange((function(){document.querySelectorAll(".introjs-tooltipbuttons")[0].style["justify-content"]="flex-end"})).oncomplete((function(){t.$store.dispatch({type:"setOperation",target:"finish_godiva_guide"})})),document.querySelectorAll("#goGuide_btn")[0].onclick=function(){window.open("/godiva/datasource?guide=true"),d()().exit()}}}},c=(i(674),i(88)),u=Object(c.a)(p,(function(){var t=this;t.$createElement;return t._self._c,t._m(0)}),[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"home"},[i("img",{attrs:{src:"public/image/table_relation.png",width:"260",height:"180"}}),i("span",[t._v("请在左侧选择或添加图表和报表")])])}],!1,null,"3d9b2132",null);e.default=u.exports}}]);