(function(e){function t(t){for(var n,o,l=t[0],r=t[1],c=t[2],d=0,p=[];d0},on:{click:e.exitOnboarding}},[e.promisesResolved&&0===e.installingPlugins.length?t("span",{directives:[{name:"icon",rawName:"v-icon:close",arg:"close"}]}):e._e(),e.promisesResolved&&0===e.installingPlugins.length?t("span",[e._v(e._s(e.texts.exit))]):e._e(),!e.promisesResolved||e.installingPlugins.length>0?t("span",[e._v(e._s(e.texts.wait))]):e._e()]):e._e()])]),t("header",{staticClass:"userfeedback-onboarding-head"},[t("figure",{staticClass:"userfeedback-onboarding-head__logo"},[t("img",{attrs:{src:e.$uf.assets+"/img/user-feedback-logo-full.svg",alt:""}})])]),t("main",{staticClass:"userfeedback-onboarding-wrapper"},[t("user-feedback-onboarding-progress"),t("section",{staticClass:"userfeedback-onboarding-card"},[e.currentStepIndex>0?t("span",{staticClass:"userfeedback-onboarding-step-count"},[e._v(e._s(e.texts.stepCount))]):e._e(),t("onboarding-step-"+e.currentStep.key,{tag:"component",class:"step-"+e.currentStep.key}),e.$uf.is_pro||"install-complete"!==e.currentStep.key?t("user-feedback-onboarding-nav"):t("div",{staticClass:"userfeedback-onboarding-lite-footer"},[t("button",{attrs:{type:"button"},on:{click:e.completeOnboarding}},[e._v("No thanks, exit to dashboard")])])],1),"features"===e.currentStep.key?t("section",{staticClass:"userfeedback-onboarding-help"},[e.showPluginsText.length>0?t("p",[t("span",[e._v(e._s(e.texts.installText))]),t("span",[e._v(e._s(e.showPluginsText.join(", ")))])]):e._e()]):e._e()],1)])},l=[],r=(s("14d9"),s("561c")),c=s("2f62"),u=s("a878"),d=function(){var e=this,t=e._self._c;return t("div",{staticClass:"onboarding-progress"},e._l(e.steps,(function(s,n){return t("span",{key:s.key,staticClass:"onboarding-step-indicator",class:{"is-current":n===e.currentStepIndex,"is-complete":n0&&!e.hidePrevButton?t("button",{staticClass:"button user-feedback-button is-secondary",attrs:{type:"button"},on:{click:e.goBack}},[t("span",{directives:[{name:"icon",rawName:"v-icon:chevron-left",arg:"chevron-left"}]}),t("span",[e._v(e._s(e.texts.back))])]):e._e()]),t("div",{staticClass:"userfeedback-onboarding-nav__end"},[e.currentStep.skippable?t("button",{staticClass:"button user-feedback-button is-link",attrs:{type:"button"}},[e._v(e._s(e.texts.skip))]):e._e(),e.nextStep?t("button",{staticClass:"button user-feedback-button",attrs:{type:"button",disabled:!e.canContinue},on:{click:e.advance}},[e.currentStepIndex>0?t("span",[e._v(e._s(e.texts.nextStep)+e._s(e.nextStep.label))]):t("span",[e._v(e._s(e.texts.start))]),t("span",{directives:[{name:"icon",rawName:"v-icon:chevron-right",arg:"chevron-right"}]})]):t("button",{staticClass:"button user-feedback-button",attrs:{type:"button",disabled:!e.canExitToDashboard},on:{click:e.completeOnboarding}},[e._v(e._s(e.texts.exitToDashboard))])])])},k=[],v={name:"UserFeedbackOnboardingNav",computed:{...Object(c["e"])("onboarding",["currentStepIndex","steps"]),...Object(c["c"])("onboarding",["currentStep","nextStep","canContinue","canExitToDashboard"]),texts(){return{back:Object(r["a"])("Back",this.$textDomain),start:Object(r["a"])("Start",this.$textDomain),skip:Object(r["a"])("Skip for now",this.$textDomain),nextStep:Object(r["a"])("Next Step: ",this.$textDomain),exitToDashboard:Object(r["a"])("Exit to dashboard",this.$textDomain)}},hidePrevButton(){return this.currentStepIndex===this.steps.length-1}},methods:{...Object(c["b"])("onboarding",["advance","goBack","completeOnboarding"])}},_=v,y=Object(m["a"])(_,x,k,!1,null,null,null),O=y.exports,j=function(){var e=this,t=e._self._c;return t("div",{staticClass:"userfeedback-onboarding-step"},[t("header",{staticClass:"userfeedback-onboarding-step__header"},[t("h1",{staticClass:"title"},[e._v(e._s(e.texts.title))]),t("p",[e._v(e._s(e.texts.intro))])]),t("section",{staticClass:"userfeedback-onboarding-step__block"},[t("p",[t("b",[e._v(e._s(e.texts.blockTitle))])]),t("ul",{staticClass:"icon-list is-success"},e._l(e.texts.listItems,(function(s,n){return t("li",{key:n},[t("span",{staticClass:"icon-list__item-icon"},[t("span",{directives:[{name:"icon",rawName:"v-icon:check",arg:"check"}]})]),t("span",[e._v(e._s(s))])])})),0)])])},w=[],P={name:"OnboardingStepWelcome",computed:{texts(){const e=this.$uf.is_pro?"":"Lite ";return{title:Object(r["a"])("Welcome to UserFeedback! 🎉 ",this.$textDomain),intro:Object(r["a"])("This setup process should only take a couple of minutes.",this.$textDomain),blockTitle:Object(r["d"])(Object(r["a"])("With UserFeedback you can easily boost sales and traffic with actionable user insights. With UserFeedback %syou can:",this.$textDomain),e),listItems:[Object(r["a"])("Create an unlimited number of surveys",this.$textDomain),Object(r["a"])("Ask an unlimited number of questions within each survey",this.$textDomain),Object(r["a"])("Collect feedback for blog post ideas, product opportunities, and increase engagement",this.$textDomain)]}}}},$=P,I=Object(m["a"])($,j,w,!1,null,null,null),S=I.exports,D=function(){var e=this,t=e._self._c;return t("div",{staticClass:"userfeedback-onboarding-step"},[t("header",{staticClass:"userfeedback-onboarding-step__header"},[t("h1",{staticClass:"title"},[e._v(e._s(e.texts.title))]),t("p",[e._v(e._s(e.texts.intro))])]),t("section",{staticClass:"userfeedback-onboarding-step__block"},[t("div",{staticClass:"userfeedback-onboarding-survey__questions"},[t("h3",{staticClass:"userfeedback-onboarding-survey__questions-heading"},[e._v(e._s(e.texts.blockTitle))]),t("div",{staticClass:"onboarding-inner-block"},[e._l(e.predefinedQuestions,(function(s,n){return t("div",{key:n,staticClass:"field"},[t("radio",{attrs:{"input-value":n,name:"first_question"},model:{value:e.selectedQuestionIndex,callback:function(t){e.selectedQuestionIndex=t},expression:"selectedQuestionIndex"}},[e._v(" "+e._s(s)+" ")])],1)})),t("div",{staticClass:"field"},[t("radio",{attrs:{"input-value":-1,name:"first_question"},model:{value:e.selectedQuestionIndex,callback:function(t){e.selectedQuestionIndex=t},expression:"selectedQuestionIndex"}},[e._v(" "+e._s(e.texts.createYourOwn)+" ")]),-1===e.selectedQuestionIndex?t("div",{staticClass:"subfield"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.customQuestion,expression:"customQuestion"}],ref:"customQuestionInput",staticClass:"input",attrs:{type:"text",disabled:e.selectedQuestionIndex>-1},domProps:{value:e.customQuestion},on:{input:function(t){t.target.composing||(e.customQuestion=t.target.value)}}})]):e._e()],1)],2)]),t("div",{staticClass:"userfeedback-onboarding-survey__preview"},[e.newSurvey?t("div",{staticClass:"userfeedback-onboarding-preview"},[t("user-feedback-widget",{attrs:{"use-survey":e.newSurvey,"hide-logo":e.addLogo,"is-preview":""}})],1):e._e(),t("div",{staticClass:"field"},[t("br"),t("checkbox",{model:{value:e.addLogo,callback:function(t){e.addLogo=t},expression:"addLogo"}},[e._v(e._s(e.texts.addUFLogo))])],1)])])])},C=[],T=s("cd4d"),U=s("9849"),F=s("d4a7"),A={name:"OnboardingStepFirstSurvey",components:{Radio:T["default"],Checkbox:U["default"],UserFeedbackWidget:F["a"]},data(){return{selectedQuestionIndex:0,customQuestion:""}},computed:{...Object(c["e"])("onboarding",["newSurvey","currentStepIndex","addUFLogoToSurveys"]),addLogo:{get(){return this.addUFLogoToSurveys},set(e){this.setAddUFLogo(e)}},selectedQuestionTitle(){return this.selectedQuestionIndex>-1?this.predefinedQuestions[this.selectedQuestionIndex]:this.customQuestion},predefinedQuestions(){return[Object(r["a"])("What do you like about this page?",this.$textDomain),Object(r["a"])("What would make this website better?",this.$textDomain)]},texts(){return{title:Object(r["a"])("Build your first UserFeedback survey",this.$textDomain),intro:Object(r["a"])("You can easily change or customize these settings later.",this.$textDomain),blockTitle:Object(r["a"])("What question do you want to ask your website visitors?",this.$textDomain),createYourOwn:Object(r["a"])("Create your own",this.$textDomain),addUFLogo:Object(r["a"])("Add the UserFeedback logo to my surveys.",this.$textDomain)}}},methods:{...Object(c["d"])("onboarding",["createSurvey","updateSurvey","setAddUFLogo"]),updateWidgetQuestionTitle(e){if(!this.newSurvey||!this.newSurvey.questions.length)return;const t={...this.newSurvey};t.questions[0].title=e,this.updateSurvey(t)}},beforeMount(){if(!this.newSurvey)return this.createSurvey({title:Object(r["a"])("First Survey",this.$textDomain),status:"publish",notifications:{email:{addresses:this.$uf.admin_email}}}),void this.updateWidgetQuestionTitle(this.selectedQuestionTitle);const{questions:e,settings:{theming:t}}=this.newSurvey,s=this.predefinedQuestions.findIndex(t=>t===e[0].title);this.selectedQuestionIndex=s,-1===s&&(this.customQuestion=e[0].title),this.addUFLogo=t.show_logo},watch:{selectedQuestionTitle(e){this.updateWidgetQuestionTitle(e)},selectedQuestionIndex(e){-1===e&&this.$nextTick(()=>{this.$refs.customQuestionInput.focus()})}}},N=A,Q=Object(m["a"])(N,D,C,!1,null,null,null),W=Q.exports,E=function(){var e=this,t=e._self._c;return t("div",{staticClass:"userfeedback-onboarding-step"},[t("header",{staticClass:"userfeedback-onboarding-step__header"},[t("h1",{staticClass:"title"},[e._v(e._s(e.texts.title))]),t("p",[e._v(e._s(e.texts.intro))])]),t("section",{staticClass:"userfeedback-onboarding-step__block"},e._l(e.features,(function(s,n){return t("article",{directives:[{name:"show",rawName:"v-show",value:!s.group_parent||s.group_parent&&s.group_parent===e.activeGroup,expression:"!feature.group_parent || (feature.group_parent && feature.group_parent === activeGroup)"}],key:n,staticClass:"userfeedback-onboarding-feature"},[t("div",{staticClass:"userfeedback-onboarding-feature__content"},[t("p",{staticClass:"userfeedback-onboarding-feature__title"},[t("span",[e._v(e._s(s.title))]),s.group?t("a",{staticClass:"toggle-icon",on:{click:function(t){return e.toggleGroup(s.group)}}},[e.activeGroup===s.group?t("span",{directives:[{name:"icon",rawName:"v-icon:caret-down",arg:"caret-down"}]}):t("span",{directives:[{name:"icon",rawName:"v-icon:caret-up",arg:"caret-up"}]})]):e._e(),s.isPro?t("span",{staticClass:"feature-tag"},[e._v(e._s(e.texts.pro))]):e._e()]),t("p",[e._v(e._s(s.description))]),s.checked&&s.installText?t("p",{staticClass:"userfeedback-onboarding-feature__install-text"},[e._v(" "+e._s(s.disabled?s.installedText:s.installText)+" ")]):e._e()]),t("label",{staticClass:"feature-indicator",class:{"is-default":s.installedByDefault}},[t("input",{attrs:{type:"checkbox",disabled:s.disabled||s.installedByDefault},domProps:{checked:s.checked},on:{change:t=>{e.onRadioToggle(t,s)}}}),t("span",{staticClass:"feature-indicator__skin"},[t("span",{directives:[{name:"icon",rawName:"v-icon:check",arg:"check"}]})])])])})),0)])},B=[],L={name:"OnboardingStepFeatures",data(){return{activeGroup:""}},computed:{...Object(c["e"])("onboarding",["enableNotifications","installAioseo","installUncanny"]),features(){return[{title:Object(r["a"])("UserFeedback Widget",this.$textDomain),description:Object(r["a"])("Create an unlimited number of widgets anywhere on your website.",this.$textDomain),installedByDefault:!0,checked:!0,isPro:!1},{title:Object(r["a"])("Responses and Reporting",this.$textDomain),description:Object(r["a"])("View responses in realtime and track feedback trends.",this.$textDomain),installedByDefault:!0,checked:!0,isPro:!1},{title:Object(r["a"])("Google Analytics Integration",this.$textDomain),description:Object(r["a"])("Easily segment and track which users are responding to your questions with automatic analytics event tracking.",this.$textDomain),installedByDefault:!0,checked:!0,isPro:!1},{title:Object(r["a"])("Add Recommended Plugins To My Website",this.$textDomain),description:Object(r["a"])("Get the best plugins to help you send emails, increase rankings, and automate your website",this.$textDomain),isPro:!1,onToggle:()=>{this.toggleAllPlugins()},checked:this.allRecommentedPluginsSelected||this.allRecommentedPluginsInstalled,disabled:this.allRecommentedPluginsInstalled,group:"recommended_plugins"},{title:Object(r["a"])("Email Notifications",this.$textDomain),description:Object(r["a"])("Ensure you receive feedback instantly with proper email setup and configured from your website.",this.$textDomain),isPro:!1,onToggle:e=>{this.setNotificationsActive(e)},checked:this.enableNotifications||this.isSmtpInstalled,disabled:this.isSmtpInstalled,installText:Object(r["a"])("Installs WP Mail SMTP",this.$textDomain),installedText:Object(r["a"])("WP Mail SMTP is already installed",this.$textDomain),group_parent:"recommended_plugins"},{title:Object(r["a"])("All In One SEO Toolkit",this.$textDomain),description:Object(r["a"])("The best WordPress SEO plugin that works with MonsterInsights to boost your rankings.",this.$textDomain),isPro:!1,onToggle:e=>{this.setInstallAioseo(e)},checked:this.installAioseo||this.isAioseoInstalled,disabled:this.isAioseoInstalled,installText:Object(r["a"])("Installs All In One SEO Toolkit",this.$textDomain),installedText:Object(r["a"])("All In One SEO Toolkit is already installed",this.$textDomain),group_parent:"recommended_plugins"},{title:Object(r["a"])("Survey Feedback Automations",this.$textDomain),description:Object(r["a"])("Uncanny Automator is the best free no-code way to send your UserFeedback responses to anywhere like Google Sheets, Zapier, HubSpot, and more.",this.$textDomain),isPro:!1,onToggle:e=>{this.setInstallUncanny(e)},checked:this.installUncanny||this.isUncannyInstalled,disabled:this.isUncannyInstalled,installText:Object(r["a"])("Installs Uncanny Automator",this.$textDomain),installedText:Object(r["a"])("Uncanny Automator is already installed",this.$textDomain),group_parent:"recommended_plugins"},{title:Object(r["a"])("Customizable Widget",this.$textDomain),description:Object(r["a"])("Tweak the UserFeedback widget to match the look and feel of your website with custom colors and branding.",this.$textDomain),checked:!1,onToggle:e=>{this.setCustomizableWidget(e)},isPro:!0},{title:Object(r["a"])("Additional Question Types",this.$textDomain),description:Object(r["a"])("Use stars, NPS, Comment Boxes, and make certain questions required in your UserFeedback widgets to increase the quality of feedback you receive.",this.$textDomain),checked:!1,onToggle:e=>{this.setQuestionTypes(e)},isPro:!0},{title:Object(r["a"])("Feedback Export and Full History",this.$textDomain),description:Object(r["a"])("Analyze your responses over time and export them into a spreadsheet for in-depth analysis and decision making.",this.$textDomain),checked:!1,onToggle:e=>{this.setExportFeedbackHistory(e)},isPro:!0},{title:Object(r["a"])("Advanced Page-Level Targeting",this.$textDomain),description:Object(r["a"])("Show UserFeedback questions only on certain pages, or if a user has been on the page for a certain amount of time or is using a particular device.",this.$textDomain),checked:!1,onToggle:e=>{this.setPageLevelTargeting(e)},isPro:!0},{title:Object(r["a"])("20+ Templates",this.$textDomain),description:Object(r["a"])("Get up and running in seconds with premade feedback templates for all types of websites including eCommerce stores, B2B websites, membership sites, customer service, and more.",this.$textDomain),checked:!1,onToggle:e=>{this.setTemplates(e)},isPro:!0}]},texts(){return{title:Object(r["a"])("Which UserFeedback features would you like to enable?",this.$textDomain),intro:Object(r["a"])("We’ve already selected our recommended features. ",this.$textDomain),pro:Object(r["a"])("Pro",this.$textDomain)}},isSmtpInstalled(){return this.$uf.integrations["wp-mail-smtp"]&&this.$uf.integrations["wp-mail-smtp"].is_installed},isAioseoInstalled(){return this.$uf.integrations["all-in-one-seo-pack"]&&this.$uf.integrations["all-in-one-seo-pack"].is_installed},isUncannyInstalled(){return this.$uf.integrations["uncanny-automator"]&&this.$uf.integrations["uncanny-automator"].is_installed},allRecommentedPluginsSelected(){return this.enableNotifications&&this.installAioseo&&this.installUncanny},allRecommentedPluginsInstalled(){return this.isSmtpInstalled&&this.isAioseoInstalled&&this.isUncannyInstalled}},methods:{...Object(c["d"])("onboarding",["setNotificationsActive","setInstallAioseo","setInstallUncanny","setCustomizableWidget","setQuestionTypes","setExportFeedbackHistory","setPageLevelTargeting","setTemplates"]),onRadioToggle(e,t){t.hasOwnProperty("onToggle")&&"function"===typeof t.onToggle&&t.onToggle(e.target.checked)},toggleAllPlugins(){this.allRecommentedPluginsSelected?(this.setNotificationsActive(!1),this.setInstallAioseo(!1),this.setInstallUncanny(!1)):(this.setNotificationsActive(!0),this.setInstallAioseo(!0),this.setInstallUncanny(!0))},toggleGroup(e){this.activeGroup?this.activeGroup="":this.activeGroup=e}}},R=L,q=Object(m["a"])(R,E,B,!1,null,null,null),G=q.exports,H=function(){var e=this,t=e._self._c;return t("div",{staticClass:"userfeedback-onboarding-step"},[t("header",{staticClass:"userfeedback-onboarding-step__header"},[t("h1",{staticClass:"title"},[e._v(e._s(e.texts.title))]),t("p",[e._v(e._s(e.texts.intro))])]),t("section",{staticClass:"userfeedback-onboarding-step__block"},[t("div",{staticClass:"field"},[t("label",{staticClass:"title",attrs:{for:"email"}},[e._v(e._s(e.texts.intro))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"input",attrs:{type:"text",id:"email",placeholder:e.texts.inputPlaceholder},domProps:{value:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}})]),t("div",{staticClass:"field"},[t("checkbox",{attrs:{id:"newsletter_opt_in",name:"newsletter_opt_in"},model:{value:e.commsOptIn,callback:function(t){e.commsOptIn=t},expression:"commsOptIn"}},[e._v(e._s(e.texts.commsOptIn))])],1),t("div",{staticClass:"field"},[t("checkbox",{attrs:{id:"allow_usage_tracking",name:"allow_usage_tracking"},scopedSlots:e._u([{key:"after-label",fn:function(){return[t("user-feedback-icon-tooltip",{attrs:{content:e.texts.allowUsageDocHelp}})]},proxy:!0}]),model:{value:e.trackOptIn,callback:function(t){e.trackOptIn=t},expression:"trackOptIn"}},[e._v(" "+e._s(e.texts.trackingOptIn)+" ")])],1)])])},M=[],z=s("008f"),Y={name:"OnboardingStepNotifications",components:{Checkbox:U["default"],UserFeedbackIconTooltip:z["a"]},computed:{...Object(c["e"])({adminEmail:e=>e.$uf.admin_email}),...Object(c["e"])("onboarding",["emailForNotifications","newsletterOptIn","trackingOptIn"]),email:{get(){return this.emailForNotifications},set(e){this.updateEmailForNotifications(e)}},commsOptIn:{get(){return this.newsletterOptIn},set(e){this.setNewsletterOptIn(e)}},trackOptIn:{get(){return this.trackingOptIn},set(e){this.setTrackingOptIn(e)}},texts(){return{title:Object(r["a"])("Customize your notifications",this.$textDomain),intro:Object(r["a"])("Where should we send UserFeedback answers?",this.$textDomain),inputPlaceholder:Object(r["a"])("email@example.com",this.$textDomain),commsOptIn:Object(r["a"])("I agree to receive important communications from UserFeedback",this.$textDomain),trackingOptIn:Object(r["a"])("Help us better understand our users and their website needs",this.$textDomain),allowUsageDocHelp:Object(r["d"])(Object(r["a"])("By allowing us to track usage data we can better help you because we know which WordPress configurations, themes, and plugins we should test. Complete documentation is available %shere%s.",this.$textDomain),``,"")}}},methods:{...Object(c["d"])("onboarding",["updateEmailForNotifications","setNewsletterOptIn","setTrackingOptIn"])},beforeMount(){this.email=this.adminEmail}},J=Y,V=Object(m["a"])(J,H,M,!1,null,null,null),Z=V.exports,K=function(){var e=this,t=e._self._c;return t("div",{staticClass:"userfeedback-onboarding-step"},[t("header",{staticClass:"userfeedback-onboarding-step__header"},[t("h1",{staticClass:"title"},[e._v(e._s(e.texts.title))])]),t("section",{staticClass:"userfeedback-onboarding-step__block"},e._l(e.renderableInstallItems,(function(s,n){return t("user-feedback-install-item",{key:n,attrs:{skip:s.skip,"is-pro":s.isPro,faux:!s.hasOwnProperty("action"),action:s.action},on:{"plugin-install-error":e.onPluginInstallError}},[e._v(" "+e._s(s.content)+" ")])})),1),e.$uf.is_pro?e._e():t("section",{staticClass:"userfeedback-onboarding-step__block"},[t("div",{staticClass:"userfeedback-upsell-box"},[t("h2",{staticClass:"title",domProps:{innerHTML:e._s(e.texts.upsellBoxTitle)}}),t("p",[e._v(e._s(e.texts.upsellBoxIntro))]),t("ul",{staticClass:"unstyled-list"},e._l(e.texts.upsellChecklist,(function(s,n){return t("li",{key:n},[t("span",{directives:[{name:"icon",rawName:"v-icon:check",arg:"check"}]}),t("span",[e._v(e._s(s))])])})),0),t("a",{staticClass:"button user-feedback-button is-large",attrs:{href:e.$getUpgradeUrl("onboarding","upgrade-button"),target:"_blank",rel:"noopener"}},[e._v(e._s(e.texts.upsellCTA))]),t("div",{staticClass:"userfeedback-onboarding-upsell-box-bonus-notice"},[t("strong",[t("span",[e._v("🎁")]),e._v(" "+e._s(e.texts.bonus)+": ")]),t("span",{domProps:{innerHTML:e._s(e.texts.youCanUpgrade)}})])])])])},X=[],ee=(s("e9f5"),s("910d"),function(){var e=this,t=e._self._c;return t("article",{staticClass:"userfeedback-feature-install"},[t("div",{staticClass:"userfeedback-feature-install__name"},[e._t("default")],2),t("div",{staticClass:"userfeedback-feature-install__status"},[!e.$uf.is_pro&&e.isPro?[e.isPro?t("span",{staticClass:"feature-tag"},[e._v(e._s(e.texts.pro))]):e._e()]:e.skip?[t("span",{staticClass:"userfeedback-feature-install__status-installing"},[t("small",[t("i",[e._v(e._s(e.texts.skipped))])])])]:[e.isComplete?t("span",{staticClass:"userfeedback-feature-install__status-success"},[t("span",[e._v(e._s(e.texts.successful))]),t("span",{directives:[{name:"icon",rawName:"v-icon:check",arg:"check"}]})]):e.isErrored?t("span",{staticClass:"userfeedback-feature-install__status-error"},[t("span",[e._v(e._s(e.texts.errored))]),t("span",{directives:[{name:"icon",rawName:"v-icon:close",arg:"close"}]})]):t("span",{staticClass:"userfeedback-feature-install__status-installing"},[t("span",[e._v(e._s(e.texts.installing))]),t("span",{staticClass:"userfeedback-loader is-inline"})])]],2)])}),te=[],se=s("1268"),ne={name:"UserFeedbackInstallItem",props:{action:{type:Function},faux:{type:Boolean,default:!0},isPro:{type:Boolean,default:!1},skip:{type:Boolean,default:!1}},data(){return{isComplete:!1,isErrored:!1}},computed:{texts(){return{successful:Object(r["a"])("Successful",this.$textDomain),installing:Object(r["a"])("Installing...",this.$textDomain),errored:Object(r["a"])("Error...",this.$textDomain),skipped:Object(r["a"])("Skipped",this.$textDomain),pro:Object(r["a"])("Pro",this.$textDomain)}},delay(){return Object(se["b"])(500,2e3)}},mounted(){this.skip||(this.faux?setTimeout(()=>{this.isComplete=!0},this.delay):this.action&&"function"===typeof this.action&&this.action().then(()=>{this.isComplete=!0}).catch(()=>{this.isErrored=!0,this.$emit("plugin-install-error")}))}},ie=ne,ae=Object(m["a"])(ie,ee,te,!1,null,null,null),oe=ae.exports,le={name:"OnboardingStepInstallComplete",components:{UserFeedbackInstallItem:oe},computed:{...Object(c["e"])("onboarding",["enableNotifications","installAioseo","installUncanny","promisesResolved","customizableWidget","questionTypes","exportFeedbackHistory","pageLevelTargeting","templates"]),...Object(c["c"])("onboarding",["isAioseoInstalled","isGAInstalled"]),installItems(){return[{content:Object(r["a"])("UserFeedback Widget",this.$textDomain),action:this.saveNotificationSettings},{content:Object(r["a"])("Responses and Reporting",this.$textDomain)},{content:Object(r["a"])("Google Analytics Integration",this.$textDomain),show:this.isGAInstalled},{content:Object(r["a"])("Email notifications integration",this.$textDomain),show:this.enableNotifications,action:this.installWPSmtpPlugin},{content:Object(r["a"])("All In One SEO Toolkit",this.$textDomain),action:this.installAioseoPlugin,show:this.installAioseo},{content:Object(r["a"])("Survey Feedback Automations",this.$textDomain),action:this.installUncannyPlugin,show:this.installUncanny},{content:Object(r["a"])("Customizable Widget",this.$textDomain),isPro:!0,show:this.customizableWidget},{content:Object(r["a"])("Additional Question Types",this.$textDomain),isPro:!0,show:this.questionTypes},{content:Object(r["a"])("Feedback Export and Full History",this.$textDomain),isPro:!0,show:this.exportFeedbackHistory},{content:Object(r["a"])("Advanced Page-Level Targeting",this.$textDomain),isPro:!0,show:this.pageLevelTargeting},{content:Object(r["a"])("20+ Templates",this.$textDomain),isPro:!0,show:this.templates}]},renderableInstallItems(){return this.installItems.filter(e=>!1!==e.show)},texts(){return{title:Object(r["a"])("Great! UserFeedback is almost ready to start ",this.$textDomain),upsellBoxTitle:Object(r["d"])(Object(r["a"])("%sUpgrade to Pro%s to Unlock Powerful Feedback Features!",this.$textDomain),``,""),upsellBoxIntro:Object(r["a"])("UserFeedback is the best WordPress feedback plugin. Join over 200k+ websites who are already using UserFeedback to understand their visitors on a whole new level and are unlocking major insights.",this.$textDomain),upsellChecklist:[Object(r["a"])("Star Rankings, ratings, icon question types",this.$textDomain),Object(r["a"])("Target Surveys Based on Device Type",this.$textDomain),Object(r["a"])("Complete Branding",this.$textDomain),Object(r["a"])("Page Level Targeting",this.$textDomain),Object(r["a"])("Heatmaps",this.$textDomain),Object(r["a"])("Comment Box Follow Ups",this.$textDomain),Object(r["a"])("Enhanced Notifications",this.$textDomain),Object(r["a"])("Conditional Redirects",this.$textDomain),Object(r["a"])("AI Summaries",this.$textDomain),Object(r["a"])("Answer Randomization",this.$textDomain),Object(r["a"])("Survey Scheduling",this.$textDomain),Object(r["a"])("Net Promoter Score (reg) (NPS) Surveys",this.$textDomain)],upsellCTA:Object(r["a"])("Upgrade to Pro Today →",this.$textDomain),bonus:Object(r["a"])("Bonus",this.$textDomain),youCanUpgrade:Object(r["a"])("You can upgrade to the Pro plan today and save 50% off (discount auto-applied).",this.$textDomain)}}},methods:{...Object(c["b"])("onboarding",["saveNotificationSettings","installWPSmtpPlugin","installAioseoPlugin","installUncannyPlugin"]),...Object(c["d"])("onboarding",["completeInstallingPlugins"]),onPluginInstallError(){this.completeInstallingPlugins()}}},re=le,ce=Object(m["a"])(re,K,X,!1,null,null,null),ue=ce.exports,de=s("4279");const pe=()=>Object(de["a"])({action:"userfeedback_vue_onboarding_complete"}),be=e=>Object(de["a"])({action:"userfeedback_vue_onboarding_drip_opt_in",email:e}),ge=e=>Object(de["a"])({action:"userfeedback_vue_onboarding_step",step:e});var me={name:"UserFeedbackOnboarding",components:{UserFeedbackOnboardingProgress:f,UserFeedbackOnboardingNav:O,OnboardingStepWelcome:S,OnboardingStepFirstSurvey:W,OnboardingStepFeatures:G,OnboardingStepNotifications:Z,OnboardingStepInstallComplete:ue},computed:{...Object(c["e"])("onboarding",["currentStepIndex","steps","enableNotifications","installAioseo","installUncanny","promisesResolved","installingPlugins"]),...Object(c["c"])("onboarding",["currentStep","totalSteps"]),texts(){return{stepCount:Object(r["d"])(Object(r["a"])("Step %s of %s",this.$textDomain),this.currentStepIndex+1,this.totalSteps),exit:Object(r["a"])("Exit Setup",this.$textDomain),wait:Object(r["a"])("Please wait",this.$textDomain),installText:Object(r["a"])("This will install: ",this.$textDomain)}},showPluginsText(){const e=[];return!this.enableNotifications||this.$uf.integrations["wp-mail-smtp"]&&this.$uf.integrations["wp-mail-smtp"].is_installed||e.push(Object(r["a"])("WP Mail SMTP",this.$textDomain)),this.installAioseo&&!this.isPluginInstalled("all-in-one-seo-pack")&&e.push(Object(r["a"])("All In One SEO Toolkit",this.$textDomain)),this.installUncanny&&!this.isPluginInstalled("uncanny-automator")&&e.push(Object(r["a"])("Uncanny Automator",this.$textDomain)),e}},watch:{currentStep:{handler:function(e){ge(e.key)},deep:!0,immediate:!0}},methods:{...Object(c["b"])("onboarding",["completeOnboarding"]),exitOnboarding(){location.replace(Object(u["a"])("surveys"))},isPluginInstalled(e){return!!this.$uf.integrations[e]&&this.$uf.integrations[e].is_installed}}},he=me,fe=Object(m["a"])(he,o,l,!1,null,null,null),xe=fe.exports,ke=s("bf14"),ve=s("0b5f"),_e=s("0792"),ye=s("7c9b"),Oe=s("5464"),je=s("ab89");const we={namespaced:!0,state:()=>({newSurvey:null,enableNotifications:!0,emailForNotifications:"",installAioseo:!0,installUncanny:!0,customizableWidget:!1,questionTypes:!1,exportFeedbackHistory:!1,pageLevelTargeting:!1,templates:!1,newsletterOptIn:!0,trackingOptIn:!1,addUFLogoToSurveys:!1,featurePromises:[],promisesResolved:!0,installingPlugins:[],steps:[{key:"welcome"},{key:"first-survey",label:Object(r["a"])("First Survey",n["a"].prototype.$textDomain)},{key:"features",label:Object(r["a"])("Features",n["a"].prototype.$textDomain)},{key:"notifications",label:Object(r["a"])("Notifications",n["a"].prototype.$textDomain)},{key:"install-complete",label:Object(r["a"])("Publish",n["a"].prototype.$textDomain)}],currentStepIndex:0}),getters:{currentStep(e){return e.steps[e.currentStepIndex]},totalSteps(e){const{steps:t}=e;return t.length},nextStep(e){return e.steps[e.currentStepIndex+1]},canContinue(e,t){var s;return!("notifications"===t.currentStep.key&&!Object(Oe["a"])(e.emailForNotifications,!e.newsletterOptIn)||!("first-survey"!==t.currentStep.key||null!==(s=e.newSurvey)&&void 0!==s&&null!==(s=s.questions)&&void 0!==s&&null!==(s=s[0])&&void 0!==s&&s.title))},canExitToDashboard(e){return e.promisesResolved&&0===e.installingPlugins.length},isAioseoInstalled(){return n["a"].prototype.$uf.integrations["all-in-one-seo-pack"].is_installed},isGAInstalled(){return!!n["a"].prototype.$uf.integrations.exactmetrics.is_installed||n["a"].prototype.$uf.integrations.monsterinsights.is_installed}},mutations:{setNotificationsActive(e,t){e.enableNotifications=t},setAddUFLogo(e,t){e.addUFLogoToSurveys=t},updateEmailForNotifications(e,t){e.emailForNotifications=t},setNewsletterOptIn(e,t){e.newsletterOptIn=t},setTrackingOptIn(e,t){e.trackingOptIn=t},setInstallAioseo(e,t){e.installAioseo=t},setInstallUncanny(e,t){e.installUncanny=t},setCustomizableWidget(e,t){e.customizableWidget=t},setQuestionTypes(e,t){e.questionTypes=t},setExportFeedbackHistory(e,t){e.exportFeedbackHistory=t},setPageLevelTargeting(e,t){e.pageLevelTargeting=t},setTemplates(e,t){e.templates=t},createSurvey(e,t={}){const s=Object(ye["a"])(Object(ke["b"])(),t),n=Object(ve["a"])("long-text");s.questions.push(n),e.newSurvey=s},updateSurvey(e,t){e.newSurvey=t},goBack(e,t=1){0!==e.currentStepIndex&&(e.currentStepIndex=e.currentStepIndex-t,window.scrollTo({left:0,top:0,behavior:"smooth"}))},advance(e,t=1){e.currentStepIndex!==e.steps.length-1&&(e.currentStepIndex=e.currentStepIndex+t,window.scrollTo({left:0,top:0,behavior:"smooth"}))},setInstallingPlugins(e,t){e.installingPlugins=t},addFeaturePromises(e,t){Array.isArray(t)||(t=[t]),e.featurePromises=[...e.featurePromises,...t],e.promisesResolved=!1,Promise.all(e.featurePromises).finally(()=>{e.promisesResolved=!0})}},actions:{goBack({state:e,getters:t,commit:s}){s("goBack")},completeInstallingPlugins(e,t,s){s("setInstallingPlugins",[])},advance({state:e,getters:t,commit:s}){"first-survey"===t.currentStep.key&&Object(_e["j"])(e.newSurvey).then(e=>{s("updateSurvey",e)}),s("advance")},saveNotificationSettings({state:e,commit:t}){const s=e.newSurvey;if(!s.title)return;s.notifications.email.addresses=e.emailForNotifications;const n=[Object(je["k"])({notifications_recipients:e.emailForNotifications,widget_show_logo:e.addUFLogoToSurveys,allow_usage_tracking:e.trackingOptIn}),Object(_e["j"])(s)];return e.newsletterOptIn&&n.push(be(e.emailForNotifications)),t("addFeaturePromises",n),Promise.all(n)},installWPSmtpPlugin({state:e,commit:t}){if(e.installingPlugins.push("wp-mail-smtp"),e.enableNotifications){if(!n["a"].prototype.$uf.integrations["wp-mail-smtp"].is_installed)return Object(je["i"])({slug:"wp-mail-smtp"},!0).then(t=>{if(t.success){const t=n["a"].prototype.$uf.integrations;return Object(je["a"])({basename:t["wp-mail-smtp"].basename}).then(()=>{const t=e.installingPlugins.indexOf("wp-mail-smtp");t>-1&&e.installingPlugins.splice(t,1)})}{const t=e.installingPlugins.indexOf("wp-mail-smtp");t>-1&&e.installingPlugins.splice(t,1)}}).finally(()=>{const t=e.installingPlugins.indexOf("wp-mail-smtp");t>-1&&e.installingPlugins.splice(t,1)});{const t=e.installingPlugins.indexOf("wp-mail-smtp");t>-1&&e.installingPlugins.splice(t,1)}}return!0},installAioseoPlugin({state:e,commit:t}){if(e.installingPlugins.push("all-in-one-seo-pack"),e.installAioseo){if(!n["a"].prototype.$uf.integrations["all-in-one-seo-pack"].is_installed)return Object(je["i"])({slug:"all-in-one-seo-pack"},!0).then(t=>{if(t.success){const t=n["a"].prototype.$uf.integrations;return Object(je["a"])({basename:t["all-in-one-seo-pack"].basename}).then(()=>{const t=e.installingPlugins.indexOf("all-in-one-seo-pack");t>-1&&e.installingPlugins.splice(t,1)})}{const t=e.installingPlugins.indexOf("all-in-one-seo-pack");t>-1&&e.installingPlugins.splice(t,1)}}).finally(()=>{const t=e.installingPlugins.indexOf("all-in-one-seo-pack");t>-1&&e.installingPlugins.splice(t,1)});{const t=e.installingPlugins.indexOf("all-in-one-seo-pack");t>-1&&e.installingPlugins.splice(t,1)}}return!0},installUncannyPlugin({state:e,commit:t}){if(e.installingPlugins.push("uncanny-automator"),e.installUncanny){if(!n["a"].prototype.$uf.integrations["uncanny-automator"].is_installed)return Object(je["i"])({slug:"uncanny-automator"},!0).then(t=>{if(t.success){const t=n["a"].prototype.$uf.integrations;return Object(je["a"])({basename:t["uncanny-automator"].basename}).then(()=>{const t=e.installingPlugins.indexOf("uncanny-automator");t>-1&&e.installingPlugins.splice(t,1)})}{const t=e.installingPlugins.indexOf("uncanny-automator");t>-1&&e.installingPlugins.splice(t,1)}}).finally(()=>{const t=e.installingPlugins.indexOf("uncanny-automator");t>-1&&e.installingPlugins.splice(t,1)});{const t=e.installingPlugins.indexOf("uncanny-automator");t>-1&&e.installingPlugins.splice(t,1)}}return!0},async completeOnboarding(){await pe(),location.replace(Object(u["a"])("surveys"))}}};var Pe=s("6b96");n["a"].use(c["a"]);const $e=new c["a"].Store({modules:{onboarding:we,widget:Pe["a"]}});(()=>{const e=document.getElementById("userfeedback-onboarding");e&&(n["a"].use(i["a"],{themes:{uf:{$extend:"tooltip",autoHide:!0,hideTriggers:["click"]}}}),n["a"].use(a["a"],{store:$e}),new n["a"]({store:$e,render:e=>e(xe)}).$mount(e))})()}});