File "ReportReAuth-bd7ca8cd.min.js"
Full Path: /home/flipjqml/onlinebetsolution.com/wp-content/plugins/google-analytics-for-wordpress/lite/assets/vue/js/chunks/ReportReAuth-bd7ca8cd.min.js
File size: 7.57 KB
MIME-type: text/x-java
Charset: utf-8
import{m as l,n as i}from"./vendor-13bf5d31.min.js";import{S as c}from"./SettingsInfoTooltip-c1590d73.min.js";const{__:u,_n:d,sprintf:g}=wp.i18n,h={name:"ReportInfobox",components:{SettingsInfoTooltip:c},props:{title:String,value:{default:"0",type:String},compareValue:{default:"0",type:String},id:String,days:Number,tooltip:String,change:Number,color:{default:"green",type:String},direction:{default:"up",type:String}},computed:{...l({date:"$_reports/date"}),compare(){return d("vs. Previous Day",g("vs. Previous %s Days",this.days),this.days,"google-analytics-for-wordpress")},changeClass(){let s="monsterinsights-reports-infobox-prev ";return typeof this.change>"u"?s+" monsterinsights-prev-nochange":s+" monsterinsights-"+this.color},changeText(){return this.change?this.direction===""?this.change+"%":'<span class="monsterinsights-arrow monsterinsights-'+this.direction+" monsterinsights-"+this.color+'"></span> '+Math.abs(this.change)+"%":u("No change","google-analytics-for-wordpress")}}};var _=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-reports-infobox",attrs:{id:t.id}},[t.title?e("div",{staticClass:"monsterinsights-report-title",domProps:{textContent:t._s(t.title)}}):t._e(),t.tooltip?e("settings-info-tooltip",{attrs:{content:t.tooltip}}):t._e(),t.date.compareReport?e("div",{staticClass:"monsterinsights-reports-compare-infobox"},[e("div",{staticClass:"monsterinsights-reports-compare-infobox-row"},[e("div",[e("div",{staticClass:"monsterinsights-reports-infobox-number"},[t._v(" "+t._s(t.value)+" ")]),e("div",{staticClass:"monsterinsights-reports-infobox-date-range"},[t._v(" "+t._s(t.date.intervalText)+" ")])]),e("div",[e("div",{class:t.changeClass,domProps:{innerHTML:t._s(t.changeText)}})])]),e("div",{staticClass:"monsterinsights-reports-compare-infobox-row"},[e("div",[e("div",{staticClass:"monsterinsights-reports-infobox-number"},[t._v(" "+t._s(t.compareValue)+" ")]),e("div",{staticClass:"monsterinsights-reports-infobox-date-range"},[t._v(" "+t._s(t.date.intervalCompareText)+" ")])])])]):e("div",{staticClass:"monsterinsights-clearfix"},[t.value!==""?e("div",{staticClass:"monsterinsights-reports-infobox-number",attrs:{title:t.value},domProps:{textContent:t._s(t.value)}}):t._e(),t.value===""?e("div",{staticClass:"monsterinsights-reports-infobox-number",attrs:{title:t.value},domProps:{textContent:t._s(0)}}):t._e(),e("div",{class:t.changeClass,domProps:{innerHTML:t._s(t.changeText)}}),t.days?e("div",{staticClass:"monsterinsights-reports-infobox-compare",domProps:{textContent:t._s(t.compare)}}):t._e()])],1)},m=[],f=i(h,_,m,!1,null,null,null,null);const k=f.exports,{__:o,sprintf:n}=wp.i18n,v={name:"ReportUpsellOverlay",props:{report:String,customSubheading:{type:String,default:null},forceTwoColumns:{type:Boolean,default:!1},noImage:{type:Boolean,default:!1},upgradeHref:{type:String,default:null},isAgency:{type:Boolean,default:!1},showSampleButton:{type:Boolean,default:!0}},data(){return{upgrade_link:this.$getUpgradeUrl("report",this.report),report_class:"upsell-"+this.report,showOverlay:!0}},computed:{...l({noauth:"$_reports/noauth"}),upsellData(){return this.$mi_get_upsell_content(this.report)},texts(){return{upsellButton:o("Upgrade and Unlock","google-analytics-for-wordpress"),subheading:this.customSubheading?this.customSubheading:n(o("What’s in the %1$s?","google-analytics-for-wordpress"),this.upsellData.mainheading),footerNotice:n(o("%1$sPlus%2$s, upgrading to Pro will unlock %1$sall%2$s advanced reports, tracking, and integrations. %3$sLearn more about Pro%4$s","google-analytics-for-wordpress"),"<strong>","</strong>",'<a target="_blank" href="'+this.upgrade_link+'">',"</a>"),featuresCliff:o("And more!","google-analytics-for-wordpress"),seeSampleReport:o("See a Sample Report","google-analytics-for-wordpress")}},featuresClass(){return this.upsellData.features.length>4||this.forceTwoColumns?"columns-2":"columns-1"},footer_notice(){return n(o("%1$sPlus%2$s, upgrading to %5$s will unlock %1$sall%2$s advanced reports, tracking, and integrations. %3$sLearn more about %5$s%4$s","google-analytics-for-wordpress"),"<strong>","</strong>",'<a target="_blank" href="'+this.getUpgradeLink()+'">',"</a>",this.isAgency?"Agency":"Pro")}},methods:{getUpgradeLink(){return this.upgradeHref?this.upgradeHref:this.$getUpgradeUrl("report",this.report)},seeSampleReport(){this.showOverlay=!1,this.$store.commit("$_reports/DISABLE_BLUR"),this.$store.dispatch("$_app/addNotice",{id:"lite_sample_report",content:n(o("This is a sample report. %1$sUpgrade to Pro%2$s to unlock for your website.","google-analytics-for-wordpress"),'<a target="_blank" href="'+this.getUpgradeLink()+'">',"</a>"),type:"warning",dismissable:!0},{root:!0})}},beforeDestroy(){this.$store.dispatch("$_app/removeNotice","lite_sample_report")}};var x=function(){var t=this,e=t._self._c;return!t.noauth&&t.showOverlay?e("div",{staticClass:"monsterinsights-upsell-overlay"},[e("div",{staticClass:"monsterinsights-upsell-top"},[t.upsellData.mainheading?e("h3",{domProps:{textContent:t._s(t.upsellData.mainheading)}}):t._e()]),e("div",{staticClass:"monsterinsights-upsell-content"},[e("div",{staticClass:"monsterinsights-upsell-content__features"},[t.upsellData.title?e("h3",{domProps:{textContent:t._s(t.upsellData.title)}}):t._e(),t.texts.subheading?e("h4",{domProps:{textContent:t._s(t.texts.subheading)}}):t._e(),t.upsellData.features?e("ul",{class:t.featuresClass},t._l(t.upsellData.features,function(a,p){return e("li",{key:p,domProps:{textContent:t._s(a)}})}),0):t._e(),e("div",{staticClass:"monsterinsights-upsell-content__features-cliff"},[e("p",{domProps:{innerHTML:t._s(t.texts.featuresCliff)}})]),e("p",{domProps:{innerHTML:t._s(t.footer_notice)}}),e("div",{staticClass:"monsterinsights-upsell-content-buttons"},[e("a",{staticClass:"monsterinsights-button",attrs:{href:t.getUpgradeLink(),target:"_blank"},domProps:{textContent:t._s(t.texts.upsellButton)}}),t.showSampleButton?e("a",{staticClass:"monsterinsights-upsell-content-button-sample-report",attrs:{href:"#"},domProps:{textContent:t._s(t.texts.seeSampleReport)},on:{click:function(a){return a.preventDefault(),t.seeSampleReport.apply(null,arguments)}}}):t._e()])]),t.noImage?t._e():e("div",{staticClass:"monsterinsights-upsell-content__img",class:t.report_class})])]):t._e()},y=[],C=i(v,x,y,!1,null,null,null,null);const D=C.exports,{__:r}=wp.i18n,b={name:"ReportReAuth",data(){return{text_no_auth:r("MonsterInsights encountered an error loading your report data","google-analytics-for-wordpress"),text_auth_label:r("There is an issue with your Google Account authentication. Please use the button below to fix it by re-authenticating.","google-analytics-for-wordpress"),text_button_reconnect:r("Reconnect MonsterInsights","google-analytics-for-wordpress")}},methods:{doReAuth:function(s){s.preventDefault();const t=this;this.$swal({icon:"info",title:r("Re-Authenticating","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,onOpen:function(){t.$swal.showLoading()}}),this.$store.dispatch("$_auth/doReAuth",this.is_network).then(function(e){e.data.redirect?window.location=e.data.redirect:t.$swal({icon:"error",title:r("Error","google-analytics-for-wordpress"),text:e.data.message,confirmButtonText:r("Ok","google-analytics-for-wordpress")})})}}};var w=function(){var t=this,e=t._self._c;return e("div",{staticClass:"monsterinsights-not-authenticated-notice"},[e("h3",{domProps:{textContent:t._s(t.text_no_auth)}}),e("p",{domProps:{textContent:t._s(t.text_auth_label)}}),e("p",[e("button",{staticClass:"monsterinsights-button",domProps:{textContent:t._s(t.text_button_reconnect)},on:{click:t.doReAuth}})])])},$=[],P=i(b,w,$,!1,null,null,null,null);const T=P.exports;export{k as R,D as a,T as b};