/
var
/
www
/
barefootlaw.org
/
wp-content
/
plugins
/
userfeedback-lite
/
assets
/
vue
/
js
/
Upload File
HOME
(function(e){function t(t){for(var a,o,r=t[0],c=t[1],l=t[2],u=0,p=[];u<r.length;u++)o=r[u],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&p.push(i[o][0]),i[o]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);d&&d(t);while(p.length)p.shift()();return n.push.apply(n,l||[]),s()}function s(){for(var e,t=0;t<n.length;t++){for(var s=n[t],a=!0,r=1;r<s.length;r++){var c=s[r];0!==i[c]&&(a=!1)}a&&(n.splice(t--,1),e=o(o.s=s[0]))}return e}var a={},i={onboarding:0},n=[];function o(t){if(a[t])return a[t].exports;var s=a[t]={i:t,l:!1,exports:{}};return e[t].call(s.exports,s,s.exports,o),s.l=!0,s.exports}o.m=e,o.c=a,o.d=function(e,t,s){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(o.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(s,a,function(t){return e[t]}.bind(null,a));return s},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],c=r.push.bind(r);r.push=t,r=r.slice();for(var l=0;l<r.length;l++)t(r[l]);var d=c;n.push([5,"chunk-vendors","chunk-common"]),s()})({"1cd0":function(e,t,s){},5:function(e,t,s){e.exports=s("cd98")},cd98:function(e,t,s){"use strict";s.r(t);var a=s("a026"),i=s("003c"),n=(s("1cd0"),s("918d")),o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"userfeedback-onboarding"},[t("div",{staticClass:"userfeedback-onboarding-bar"},[t("div",{staticClass:"userfeedback-onboarding-bar__container"},[t("button",{attrs:{disabled:!e.promisesResolved},on:{click:e.exitOnboarding}},[e.promisesResolved?t("span",{directives:[{name:"icon",rawName:"v-icon:close",arg:"close"}]}):e._e(),e.promisesResolved?t("span",[e._v(e._s(e.texts.exit))]):e._e(),e.promisesResolved?e._e():t("span",[e._v(e._s(e.texts.wait))])])])]),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}),t("user-feedback-onboarding-nav")],1),"features"===e.currentStep.key?t("section",{staticClass:"userfeedback-onboarding-help"},[e.showSmtpText?t("p",[e._v(e._s(e.texts.willInstallSMTP))]):e._e()]):e._e()],1)])},r=[],c=s("561c"),l=s("2f62"),d=s("a878"),u=function(){var e=this,t=e._self._c;return t("div",{staticClass:"onboarding-progress"},e._l(e.steps,(function(s,a){return t("span",{key:s.key,staticClass:"onboarding-step-indicator",class:{"is-current":a===e.currentStepIndex,"is-complete":a<e.currentStepIndex}},[t("span",{staticClass:"onboarding-step-indicator__mark"},[t("span",{directives:[{name:"icon",rawName:"v-icon:check",arg:"check"}]})])])})),0)},p=[],b={name:"UserFeedbackOnboardingProgress",computed:{...Object(l["e"])("onboarding",["steps","currentStepIndex"])}},m=b,h=s("2877"),f=Object(h["a"])(m,u,p,!1,null,null,null),g=f.exports,x=function(){var e=this,t=e._self._c;return t("footer",{staticClass:"userfeedback-onboarding-nav"},[t("div",{staticClass:"userfeedback-onboarding-nav__start"},[e.currentStepIndex>0&&!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(l["e"])("onboarding",["currentStepIndex","steps"]),...Object(l["c"])("onboarding",["currentStep","nextStep","canContinue","canExitToDashboard"]),texts(){return{back:Object(c["a"])("Back",this.$textDomain),start:Object(c["a"])("Start",this.$textDomain),skip:Object(c["a"])("Skip for now",this.$textDomain),nextStep:Object(c["a"])("Next Step: ",this.$textDomain),exitToDashboard:Object(c["a"])("Exit to dashboard",this.$textDomain)}},hidePrevButton(){return this.currentStepIndex===this.steps.length-1}},methods:{...Object(l["b"])("onboarding",["advance","goBack","completeOnboarding"])}},_=v,O=Object(h["a"])(_,x,k,!1,null,null,null),y=O.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,a){return t("li",{key:a},[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=[],S={name:"OnboardingStepWelcome",computed:{texts(){return{title:Object(c["a"])("Welcome to UserFeedback! 🎉 ",this.$textDomain),intro:Object(c["a"])("This setup process should only take a couple of minutes.",this.$textDomain),blockTitle:Object(c["a"])("With UserFeedback, you can easily gather actionable feedback to unlock more sales and traffic opportunities from your WordPress site.",this.$textDomain),listItems:[Object(c["a"])("Create an unlimited number of UserFeedback surveys anywhere on your website",this.$textDomain),Object(c["a"])("Easily use different types of questions including multiple choice, checkbox, freeform, or star ratings",this.$textDomain),Object(c["a"])("Collect feedback for things like content suggestions, product feedback, or design ideas to increase engagement and sales",this.$textDomain)]}}}},C=S,$=Object(h["a"])(C,j,w,!1,null,null,null),D=$.exports,I=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("div",{staticClass:"onboarding-inner-block"},[e._l(e.predefinedQuestions,(function(s,a){return t("div",{key:a,staticClass:"field"},[t("radio",{attrs:{"input-value":a,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)+" ")]),t("div",{staticClass:"subfield"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.customQuestion,expression:"customQuestion"}],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)}}})])],1)],2),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)])])},F=[],P=s("cd4d"),T=s("9849"),N=s("d4a7"),U={name:"OnboardingStepFirstSurvey",components:{Radio:P["default"],Checkbox:T["default"],UserFeedbackWidget:N["a"]},data(){return{selectedQuestionIndex:0,customQuestion:""}},computed:{...Object(l["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(c["a"])("What do you like about this page?",this.$textDomain),Object(c["a"])("What would make this website better?",this.$textDomain),Object(c["a"])("Did you find the information you were looking for on this page? ",this.$textDomain)]},texts(){return{title:Object(c["a"])("Build your first UserFeedback survey",this.$textDomain),intro:Object(c["a"])("You can easily change or customize these settings later.",this.$textDomain),blockTitle:Object(c["a"])("What question do you want to ask your website visitors?",this.$textDomain),createYourOwn:Object(c["a"])("Create your own",this.$textDomain),addUFLogo:Object(c["a"])("Add the UserFeedback logo to my surveys.",this.$textDomain)}}},methods:{...Object(l["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(c["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)}}},Q=U,B=Object(h["a"])(Q,I,F,!1,null,null,null),W=B.exports,A=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,a){return t("article",{key:a,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.isPro?t("span",{staticClass:"feature-tag"},[e._v(e._s(e.texts.pro))]):e._e()]),t("p",[e._v(e._s(s.description))])]),t("label",{staticClass:"feature-indicator",class:{"is-default":s.installedByDefault}},[t("input",{attrs:{type:"checkbox",checked:"",disabled:s.disabled||s.installedByDefault},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)])},E=[],L={name:"OnboardingStepFeatures",computed:{...Object(l["e"])("onboarding",["enableNotifications"]),features(){return[{title:Object(c["a"])("UserFeedback Widget",this.$textDomain),description:Object(c["a"])("Create an unlimited number of widgets anywhere on your website.",this.$textDomain),installedByDefault:!0,isPro:!1},{title:Object(c["a"])("Responses and Reporting",this.$textDomain),description:Object(c["a"])("View responses in realtime and track feedback trends.",this.$textDomain),installedByDefault:!0,isPro:!1},{title:Object(c["a"])("Google Analytics Integration",this.$textDomain),description:Object(c["a"])("Easily segment and track which users are responding to your questions with automatic analytics event tracking.",this.$textDomain),installedByDefault:!0,isPro:!1},{title:Object(c["a"])("Email Notifications",this.$textDomain),description:Object(c["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},{title:Object(c["a"])("Customizable Widget",this.$textDomain),description:Object(c["a"])("Tweak the UserFeedback widget to match the look and feel of your website with custom colors and branding.",this.$textDomain),isPro:!0},{title:Object(c["a"])("Additional Question Types",this.$textDomain),description:Object(c["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),isPro:!0},{title:Object(c["a"])("Feedback Export and Full History",this.$textDomain),description:Object(c["a"])("Analyze your responses over time and export them into a spreadsheet for in-depth analysis and decision making.",this.$textDomain),isPro:!0},{title:Object(c["a"])("Advanced Page-Level Targeting",this.$textDomain),description:Object(c["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),isPro:!0},{title:Object(c["a"])("20+ Templates",this.$textDomain),description:Object(c["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),isPro:!0}]},texts(){return{title:Object(c["a"])("Which UserFeedback features would you like to enable?",this.$textDomain),intro:Object(c["a"])("We’ve already selected our recommended features. ",this.$textDomain),pro:Object(c["a"])("Pro",this.$textDomain)}},isSmtpInstalled(){return this.$uf.integrations["wp-mail-smtp"]&&this.$uf.integrations["wp-mail-smtp"].is_installed}},methods:{...Object(l["d"])("onboarding",["setNotificationsActive"]),onRadioToggle(e,t){t.hasOwnProperty("onToggle")&&"function"===typeof t.onToggle&&t.onToggle(e.target.checked)}}},R=L,q=Object(h["a"])(R,A,E,!1,null,null,null),M=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)])])},z=[],G=s("008f"),V={name:"OnboardingStepNotifications",components:{Checkbox:T["default"],UserFeedbackIconTooltip:G["a"]},computed:{...Object(l["e"])({adminEmail:e=>e.$uf.admin_email}),...Object(l["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(c["a"])("Customize your notifications",this.$textDomain),intro:Object(c["a"])("Where should we send UserFeedback answers?",this.$textDomain),inputPlaceholder:Object(c["a"])("email@example.com",this.$textDomain),commsOptIn:Object(c["a"])("I agree to receive important communications from UserFeedback",this.$textDomain),trackingOptIn:Object(c["a"])("Help us better understand our users and their website needs",this.$textDomain),allowUsageDocHelp:Object(c["d"])(Object(c["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),`<a target="_blank" rel="noopener" href="${this.$getUrl("settings-panel","usage-tracking","https://www.userfeedback.com/docs/usage-tracking/")}">`,"</a>")}}},methods:{...Object(l["d"])("onboarding",["updateEmailForNotifications","setNewsletterOptIn","setTrackingOptIn"])},beforeMount(){this.email=this.adminEmail}},Y=V,J=Object(h["a"])(Y,H,z,!1,null,null,null),K=J.exports,X=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.installItems,(function(s,a){return t("user-feedback-install-item",{key:a,attrs:{skip:s.skip,"is-pro":s.isPro,faux:!s.hasOwnProperty("action"),action:s.action}},[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,a){return t("li",{key:a},[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))])])])])},Z=[],ee=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"}]})]):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"),ae={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}},computed:{texts(){return{successful:Object(c["a"])("Successful",this.$textDomain),installing:Object(c["a"])("Installing...",this.$textDomain),skipped:Object(c["a"])("Skipped",this.$textDomain),pro:Object(c["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}))}},ie=ae,ne=Object(h["a"])(ie,ee,te,!1,null,null,null),oe=ne.exports,re={name:"OnboardingStepInstallComplete",components:{UserFeedbackInstallItem:oe},computed:{...Object(l["e"])("onboarding",["enableNotifications","promisesResolved"]),installItems(){return[{content:Object(c["a"])("UserFeedback Widget",this.$textDomain),action:this.saveNotificationSettings},{content:Object(c["a"])("Responses and Reporting",this.$textDomain)},{content:Object(c["a"])("Google Analytics Integration",this.$textDomain)},{content:Object(c["a"])("Email notifications integration",this.$textDomain),skip:!this.enableNotifications},{content:Object(c["a"])("Customizable Widget",this.$textDomain),isPro:!0},{content:Object(c["a"])("Additional Question Types",this.$textDomain),isPro:!0},{content:Object(c["a"])("Feedback Export and Full History",this.$textDomain),isPro:!0},{content:Object(c["a"])("Advanced Page-Level Targeting",this.$textDomain),isPro:!0},{content:Object(c["a"])("20+ Templates",this.$textDomain),isPro:!0}]},texts(){return{title:Object(c["a"])("Great! UserFeedback is almost ready to start ",this.$textDomain),upsellBoxTitle:Object(c["d"])(Object(c["a"])("%sUpgrade Now%s to Unlock These Extra Features!",this.$textDomain),`<span class="styled-underline" style="background-image: url('${this.$uf.assets}/img/onboarding/underline.png')">`,"</span>"),upsellBoxIntro:Object(c["a"])("To unlock your selected features, upgrade to UserFeedback Pro",this.$textDomain),upsellChecklist:[Object(c["a"])("Additional Question Types",this.$textDomain),Object(c["a"])("Customized notifications and confirmations",this.$textDomain),Object(c["a"])("Advanced Page and Device Targeting",this.$textDomain),Object(c["a"])("More Question Templates",this.$textDomain),Object(c["a"])("View all responses and export to CSV",this.$textDomain)],upsellCTA:Object(c["a"])("Upgrade Now & Save 50% →",this.$textDomain)}}},methods:{...Object(l["b"])("onboarding",["saveNotificationSettings"])}},ce=re,le=Object(h["a"])(ce,X,Z,!1,null,null,null),de=le.exports,ue={name:"UserFeedbackOnboarding",components:{UserFeedbackOnboardingProgress:g,UserFeedbackOnboardingNav:y,OnboardingStepWelcome:D,OnboardingStepFirstSurvey:W,OnboardingStepFeatures:M,OnboardingStepNotifications:K,OnboardingStepInstallComplete:de},computed:{...Object(l["e"])("onboarding",["currentStepIndex","steps","enableNotifications","promisesResolved"]),...Object(l["c"])("onboarding",["currentStep","totalSteps"]),texts(){return{stepCount:Object(c["d"])(Object(c["a"])("Step %s of %s",this.$textDomain),this.currentStepIndex+1,this.totalSteps),exit:Object(c["a"])("Exit Setup",this.$textDomain),wait:Object(c["a"])("Please wait",this.$textDomain),willInstallSMTP:Object(c["a"])("This will install WP Mail SMTP",this.$textDomain)}},showSmtpText(){return this.enableNotifications&&(!this.$uf.integrations["wp-mail-smtp"]||!this.$uf.integrations["wp-mail-smtp"].is_installed)}},methods:{exitOnboarding(){location.replace(Object(d["a"])("surveys"))}}},pe=ue,be=Object(h["a"])(pe,o,r,!1,null,null,null),me=be.exports,he=(s("14d9"),s("bf14")),fe=s("0b5f"),ge=s("0792"),xe=s("7c9b"),ke=s("5464"),ve=s("ab89"),_e=s("4279");const Oe=()=>Object(_e["a"])({action:"userfeedback_vue_onboarding_complete"}),ye=e=>Object(_e["a"])({action:"userfeedback_vue_onboarding_drip_opt_in",email:e}),je={namespaced:!0,state:()=>({newSurvey:null,enableNotifications:!0,emailForNotifications:"",newsletterOptIn:!0,trackingOptIn:!1,addUFLogoToSurveys:!1,featurePromises:[],promisesResolved:!0,steps:[{key:"welcome"},{key:"first-survey",label:Object(c["a"])("First Survey",a["a"].prototype.$textDomain)},{key:"features",label:Object(c["a"])("Features",a["a"].prototype.$textDomain)},{key:"notifications",label:Object(c["a"])("Notifications",a["a"].prototype.$textDomain)},{key:"install-complete",label:Object(c["a"])("Publish",a["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){return!("notifications"===t.currentStep.key&&!Object(ke["a"])(e.emailForNotifications,!1))},canExitToDashboard(e){return e.promisesResolved}},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},createSurvey(e,t={}){const s=Object(xe["a"])(Object(he["b"])(),t),a=Object(fe["a"])("long-text");s.questions.push(a),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"}))},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")},advance({state:e,getters:t,commit:s}){"first-survey"===t.currentStep.key&&Object(ge["i"])(e.newSurvey).then(e=>{s("updateSurvey",e)}),s("advance")},saveNotificationSettings({state:e,commit:t}){const s=e.newSurvey;s.notifications.email.addresses=e.emailForNotifications;const a=[Object(ve["d"])({notifications_recipients:e.emailForNotifications,widget_show_logo:e.addUFLogoToSurveys,allow_usage_tracking:e.trackingOptIn}),Object(ge["i"])(s)];return e.newsletterOptIn&&a.push(ye(e.emailForNotifications)),e.enableNotifications&&a.push(Object(ve["c"])({slug:"wp-mail-smtp"},!0)),t("addFeaturePromises",a),Promise.all(a)},async completeOnboarding(){await Oe(),location.replace(Object(d["a"])("surveys"))}}};var we=s("6b96");a["a"].use(l["a"]);const Se=new l["a"].Store({modules:{onboarding:je,widget:we["a"]}});(()=>{const e=document.getElementById("userfeedback-onboarding");e&&(a["a"].use(i["a"],{themes:{uf:{$extend:"tooltip",autoHide:!0,hideTriggers:["click"]}}}),a["a"].use(n["a"],{store:Se}),new a["a"]({store:Se,render:e=>e(me)}).$mount(e))})()}});