"use strict";(self["webpackChunkoptinmonster_wordpress_plugin_vue_app"]=self["webpackChunkoptinmonster_wordpress_plugin_vue_app"]||[]).push([[966],{80178:function(e,t,s){s.r(t),s.d(t,{default:function(){return p}});var o=function(){var e=this,t=e._self._c;return t("core-page",[t("common-alerts",{attrs:{id:"dashboard-alerts",alerts:e.alerts}}),e.isLoading?t("core-loading"):e._e(),e.hasSiteError?t("dashboard-resources-widget"):t("div",{staticClass:"omapi-dash omapi-card__flex"},[e.connected?"none"!==e.upsellToShow?t("dashboard-upsell-box",{attrs:{"video-src":e.upsellVideo,"upsell-key":"".concat(e.upsellToShow,"Upsell")}},[e.showGrowUpsell?t("p",[e._v(" Onsite Retargeting allows you to trigger campaigns based on your visitor's behaviors...like if they're new or returning, or if they've converted a specific campaign already. Upgrade today to save 50% and gain access to Onsite Retargeting, Coupon Wheels, Geolocation, Live Chat Support and more! ")]):t("p",[e._v(" Over 70% of the visitors to your website leave without taking any action. You could be stopping them with an attention grabbing Exit-Intent® Campaign. Upgrade today to save 50% and unlock Exit-Intent®, MonsterLinks™, Yes/No Campaigns, Campaign Scheduling, Device Targeting, Countdown Timers and more! ")])]):e.showWelcomeBack?t("common-welcome-back-box"):e._e():t("common-welcomebox",{attrs:{"card-type":e.connected?"dismiss":"permanent","learn-more":!0},scopedSlots:e._u([{key:"afterButtons",fn:function(){return[t("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. ")]),t("dashboard-stats-widget"),t("div",{staticClass:"omapi-dash__cards-wrapper omapi-dash__cards-wrapper__left"},[t("dashboard-template-select-widget"),t("dashboard-top-campaigns-widget")],1),t("div",{staticClass:"omapi-dash__cards-wrapper omapi-dash__cards-wrapper__right"},[e.connected&&(e.showProUpsell||e.showGrowUpsell)?t("dashboard-upsell-widget",{attrs:{"upsell-plan":e.upsellToShow}}):e._e(),e.announcements.length||e.announcementsLoading?t("dashboard-announcements-widget",{attrs:{"is-loading":e.announcementsLoading,"upsell-to-show":e.upsellToShow,announcements:e.announcements}}):e._e(),t("dashboard-resources-widget")],1)],1)],1)},n=[],a=s(86080),r=s(87475),i=s(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")},canShowUpsell:function(){return!this.topTier&&2<this.visits},showGrowUpsell:function(){return this.canShowUpsell&&this.upgradeGrowth&&!this.dismissedGrowthUpsell},showProUpsell:function(){return this.canShowUpsell&&!this.upgradeGrowth&&!this.dismissedProUpsell},showWelcomeBack:function(){return this.canShowWelcomeBack&&!this.dismissedWelcomeBack},upsellVideo:function(){var e=this.showGrowUpsell?"z7nYlJPRePc":"BBXLrYD3-hs";return"https://www.youtube.com/embed/".concat(e,"?rel=0&controls=0&showinfo=0&autoplay=1")},visits:function(){return this.$get("$store.state.visits."+(this.$route.fullPath||this.$route.path),1)},upsellToShow:function(){return this.showGrowUpsell?"Growth":this.showProUpsell?"Pro":"none"}}),watch:(0,r.$U)(["dismissedProUpsell","dismissedGrowthUpsell"],"disableShowWelcomeBack"),beforeCreate:function(){this.$store.dispatch("dashboard/fetch"),this.$store.dispatch("dashboard/fetchAnnouncements")},methods:{disableShowWelcomeBack:function(e){e&&(this.canShowWelcomeBack=!1)}}},c=l,d=s(1001),h=(0,d.Z)(c,o,n,!1,null,null,null),p=h.exports}}]);
//# sourceMappingURL=dashboard-legacy.9c8a493b.js.map