var sp_floatinghelp1widget_ready=e=>{"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)},sp_floatinghelp1widget_ctrl=null;function sp_floating_help1(e,t){var i,n=sp_floatinghelp1widget_ctrl.sp_widgetobj.pageurl;("open"==e?(sp_floatinghelp1widget_ctrl.openSideBar(),(i=new Object).id="sp_floatinghelp1",i.cmd="openstate",document.getElementById("sp_floatinghelp1widget_buttonframe")):"close"==e?(sp_floatinghelp1widget_ctrl.closeSideBar(),(i=new Object).id="sp_floatinghelp1",i.cmd="closestate",document.getElementById("sp_floatinghelp1widget_buttonframe")):(null==e||"article"==e?n="/article/"+t:"category"==e?n="/category/"+t:"contact"==e?n="/contact/":null!=e&&"home"!=e||(n=""),(i=new Object).id="sp_floatinghelp1",i.cmd="openstate",document.getElementById("sp_floatinghelp1widget_buttonframe").contentWindow.postMessage(JSON.stringify(i),"*"),(i=new Object).id="sp_floatinghelp1",i.cmd="openurl",i.pageurl=n,document.getElementById("sp_floatinghelp1widget_frame"))).contentWindow.postMessage(JSON.stringify(i),"*")}function sp_floatinghelp1widget_main(){var o=this;this.sp_widgetobj={properties:{zindex:1500,position:"right",maxWidth:500,icon:'',iconType:"question-lg",showAlways:!0,extraUI:["button"]},styles:{titleColor:"#ffffff",background1:"#673AB7",background2:"#9C27B0",backgroundType:"lineargradient",helpcenterLinkColor:"#015FFB",helpcenterBackground:"#ffffff",helpcenterText:"#000000",lineColor:"#f0f0f0",buttonBackground:"#673AB7",buttonText:"#ffffff"}},this.preview=!1,this.sp_ui_url="https://view.subpage.app/widgets/Mu68xjg5bpb/MgjBxWIrjpb/ui.html",this.sp_page_url="https://support.mockflow.com?widgetid=MgjBxWIrjpb",this.sp_button_url="https://view.subpage.app/widgets/Mu68xjg5bpb/MgjBxWIrjpb/button.html",this.maxwidth=500,this.opened=!1,this.openSideBar=function(){o.sp_openframe()},this.closeSideBar=function(){o.sp_closeframe()},this.createWidget=function(){var e,t='";e=' ",document.body.insertAdjacentHTML("beforeend",t),document.body.insertAdjacentHTML("beforeend",e),document.getElementById("sp_floatinghelp1widget_buttonframe").style.zIndex=o.sp_widgetobj.properties.zindex,document.getElementById("sp_floatinghelp1widget_frame").style.zIndex=o.sp_widgetobj.properties.zindex,o.sp_widgetobj.properties.showAlways&&(document.getElementById("sp_floatinghelp1widget_buttonframe").style.display="block"),"left"==o.sp_widgetobj.properties.position&&(document.getElementById("sp_floatinghelp1widget_buttonframe").style.right="",document.getElementById("sp_floatinghelp1widget_buttonframe").style.left="20px",document.getElementById("sp_floatinghelp1widget_frame").style.right="",document.getElementById("sp_floatinghelp1widget_frame").style.left="20px"),document.getElementById("sp_floatinghelp1widget_buttonframe").onload=function(){var e=new Object;e.id="sp_floatinghelp1",0==o.sp_widgetobj.showAlways&&(e.cmd="closealways"),1==o.sp_widgetobj.showAlways&&(e.cmd="openalways"),document.getElementById("sp_floatinghelp1widget_buttonframe").contentWindow.postMessage(JSON.stringify(e),"*")},document.getElementById("sp_floatinghelp1widget_frame").onload=function(){document.getElementById("sp_floatinghelp1widget_frame").style.visibility="visible",o.resizeFrame()},window.addEventListener("resize",function(e){o.resizeFrame()},!0);try{for(var i=document.querySelectorAll("."+o.sp_widgetobj.properties.triggerButtonClass),n=0;n(t-=50)?document.getElementById("sp_floatinghelp1widget_frame").style.width=t+"px":document.getElementById("sp_floatinghelp1widget_frame").style.width=o.maxwidth+"px",document.getElementById("sp_floatinghelp1widget_frame").style.height=e+"px"},this.sp_openframe=function(){o.opened=!0,o.resizeFrame(),o.sp_widgetobj.properties.showAlways||(document.getElementById("sp_floatinghelp1widget_buttonframe").style.display="block"),document.getElementById("sp_floatinghelp1widget_buttonframe").style.visibility="visible",document.getElementById("sp_floatinghelp1widget_frame").style.display="block",document.getElementById("sp_floatinghelp1widget_frame").classList.add("sp_fadeIn")},this.sp_closeframe=function(){o.opened=!1,o.sp_widgetobj.properties.showAlways||(document.getElementById("sp_floatinghelp1widget_buttonframe").style.display="none"),document.getElementById("sp_floatinghelp1widget_frame").style.display="none",document.getElementById("sp_floatinghelp1widget_frame").classList.remove("sp_fadeIn"),0==o.sp_widgetobj.showAlways&&(document.getElementById("sp_floatinghelp1widget_buttonframe").style.visibility="hidden")}}sp_floatinghelp1widget_ready(()=>{(sp_floatinghelp1widget_ctrl=new sp_floatinghelp1widget_main).createWidget(),window.addEventListener("message",function(e){try{var t=JSON.parse(e.data);"sp_floatinghelp1"==t.id&&("openframe"==t.cmd?sp_floatinghelp1widget_ctrl.sp_openframe():sp_floatinghelp1widget_ctrl.sp_closeframe(),"closesidebar"==t.cmd&&(sp_floatinghelp1widget_ctrl.opened=!1,sp_floatinghelp1widget_ctrl.preview||(document.dispatchEvent(new CustomEvent("sp_floatinghelp1",{detail:"closed"})),document.getElementById("sp_floatinghelp1widget_frame").style.display="none")),"opensidebar"==t.cmd)&&(sp_floatinghelp1widget_ctrl.opened=!0,sp_floatinghelp1widget_ctrl.preview||sp_floatinghelp1widget_ctrl.sp_openframe())}catch(e){}})});