"use strict";(self["webpackChunkoptinmonster_wordpress_plugin_vue_app"]=self["webpackChunkoptinmonster_wordpress_plugin_vue_app"]||[]).push([[966],{66128:function(e,s,t){t.r(s),t.d(s,{default:function(){return p}});var o=function(){var e=this,s=e._self._c;return s("core-page",[s("common-alerts",{attrs:{id:"dashboard-alerts",alerts:e.alerts}}),e.isLoading?s("core-loading"):e._e(),e.hasSiteError?s("dashboard-resources-widget"):s("div",{staticClass:"omapi-dash omapi-card__flex"},[e.connected?e.showGrowUpsell?s("dashboard-growth-upsell-box"):e.showProUpsell?s("dashboard-pro-upsell-box"):e.showWelcomeBack?s("common-welcome-back-box"):e._e():s("common-welcomebox",{attrs:{"card-type":e.connected?"dismiss":"permanent","learn-more":!0},scopedSlots:e._u([{key:"afterButtons",fn:function(){return[s("core-button",{staticClass:"omapi-create-campaign__link-more",attrs:{href:e.$urls.docs("getting-started-optinmonster-wordpress-checklist","WelcomeBox"),target:"_blank",rel:"noopener noreferrer","link-style":!0,arrow:!0}},[e._v(" Read the Getting Started Guide ")])]},proxy:!0}],null,!1,2753726301)},[e._v(" Instantly grow your email list, get more leads and increase sales with the #1 most powerful conversion optimization toolkit in the world. ")]),s("dashboard-stats-widget"),s("div",{staticClass:"omapi-dash__cards-wrapper omapi-dash__cards-wrapper__left"},[s("dashboard-template-select-widget"),s("dashboard-top-campaigns-widget")],1),s("div",{staticClass:"omapi-dash__cards-wrapper omapi-dash__cards-wrapper__right"},[e.connected&&(e.showProUpsell||e.showGrowUpsell)?s("dashboard-upsell-widget",{attrs:{"upsell-plan":e.upsellToShow}}):e._e(),e.announcements.length||e.announcementsLoading?s("dashboard-announcements-widget",{attrs:{"is-loading":e.announcementsLoading,"upsell-to-show":e.upsellToShow,announcements:e.announcements}}):e._e(),s("dashboard-resources-widget")],1)],1)],1)},r=[],a=t(86080),n=t(87475),i=t(20629),l={data:function(){return{canShowWelcomeBack:!0}},computed:(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},(0,i.rn)(["alerts"])),(0,i.rn)("dashboard",["dismissedWelcomeBack","dismissedProUpsell","dismissedGrowthUpsell"])),(0,i.Se)(["connected","hasSiteError","upgradeGrowth","topTier"])),(0,i.Se)("dashboard",["announcements"])),{},{isLoading:function(){return this.$store.getters.isLoading("plugins")},announcementsLoading:function(){return this.$store.getters.isLoading("announcements")},showGrowUpsell:function(){return!this.topTier&&2<this.visits&&this.upgradeGrowth&&!this.dismissedGrowthUpsell},showProUpsell:function(){return!this.topTier&&!this.upgradeGrowth&&2<this.visits&&!this.dismissedProUpsell},showWelcomeBack:function(){return this.canShowWelcomeBack&&!this.dismissedWelcomeBack},visits:function(){return this.$get("$store.state.visits."+(this.$route.fullPath||this.$route.path),1)},upsellToShow:function(){return this.showProUpsell?"Pro":this.showGrowUpsell?"Growth":"none"}}),watch:(0,n.$U)(["dismissedProUpsell","dismissedGrowthUpsell"],"disableShowWelcomeBack"),beforeCreate:function(){this.$store.dispatch("dashboard/fetch"),this.$store.dispatch("dashboard/fetchAnnouncements")},methods:{disableShowWelcomeBack:function(e){e&&(this.canShowWelcomeBack=!1)}}},d=l,c=t(1001),h=(0,c.Z)(d,o,r,!1,null,null,null),p=h.exports}}]);
//# sourceMappingURL=dashboard-legacy.8e38f6ed.js.map