"use strict";(self.webpackChunkwebpackcloud=self.webpackChunkwebpackcloud||[]).push([[489],{10727:(t,e,n)=>{n.r(e),n.d(e,{IntroJsHelper:()=>o,insertHelpButton:()=>r});n(41539),n(39714),n(54747),n(92222);function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.hint,n=t.defaultStep,i=t.stepConfig;o.insertHelpButton({hint:e,defaultStep:n,stepConfig:i})}var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,n=null,r=[{key:"insertHelpButton",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.hint,i=e.defaultStep,r=e.stepConfig;if(!$("#btnHelpIntroJs").length){var o=$('\n\t\t\t\t<div class="kt-portlet__nav-item" style="opacity: 0; transition: opacity 1.5s">\n\t\t\t\t\t<a \n\t\t\t\t\t\tid="btnHelpIntroJs"\n\t\t\t\t\t\thref="#"\n\t\t\t\t\t\tdata-toggle="kt-tooltip"\n\t\t\t\t\t\tclass="btn btn-icon btn-sm btn-icon-md"\n\t\t\t\t\t\tdata-direction="left"\n\t\t\t\t\t\tdata-width="auto"\n\t\t\t\t\t\ttitle=""\n\t\t\t\t\t\tdata-original-title="'.concat(n||"",'">\n\t\t\t\t\t\t<i class="flaticon-info"></i>\n\t\t\t\t\t</a>\t\n\t\t\t\t</div>\n\t\t\t'));$(".card-toolbar").eq(1).prepend(o),o.on("click",(function(){return t.beginIntroJs(r,i)})),setTimeout((function(){return o.css("opacity",1)}))}}},{key:"beginIntroJs",value:function(e,n){var i=$(".tab-pane.wizardtab.active").first().attr("id");t.startHelpBox(e,i||n)}},{key:"startHelpBox",value:function(e,n){var i=t.introJs(),r=t.buildSteps(e[n].steps);i.setOptions({steps:r}),i.start()}},{key:"introJs",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){var t=introJs();return t.setOptions({doneLabel:"Finalizar",nextLabel:"Próximo",prevLabel:"Voltar",skipLabel:"Pular",showProgress:"true"}),t}))},{key:"buildSteps",value:function(e){var n=[];return e.forEach((function(e){n.push({element:t.getElementForIntro(e),intro:t.setStepContent(e),step:e.step,group:e.group})})),n}},{key:"getElementForIntro",value:function(t){var e=t.element,n=t.mobileElement;if(n){var i=n.id?document.getElementById(n.id):document.getElementsByClassName(n.class)[n.indexClass];if(i.offsetParent)return i}return e.id?document.getElementById(e.id):document.getElementsByClassName(e.class)[e.indexClass]}},{key:"setStepContent",value:function(t){return'<h5 style="text-align:center">'.concat(t.title||"",'</h5> <p style="text-align: left"> ').concat(t.text||""," </p>")}}],n&&i(e.prototype,n),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()}}]);