chunk-30a3f796.js 5.03 KB
(window["aioseopjsonp"]=window["aioseopjsonp"]||[]).push([["chunk-30a3f796","chunk-32cac348","chunk-b8d16a04"],{"20b5":function(t,a,r){},"255d":function(t,a,r){"use strict";r.r(a);var e=function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("div",{staticClass:"aioseo-link-chart"},[0===t.total?r("svg",{attrs:{viewBox:"0 0 33.83098862 33.83098862",xmlns:"http://www.w3.org/2000/svg"}},[r("circle",{staticClass:"aioseo-link-chart-score__circle",attrs:{stroke:"#e8e8eb","stroke-dasharray":"100","stroke-linecap":"round","stroke-width":2,fill:"none",cx:"16.91549431",cy:"16.91549431",r:"15.91549431"}})]):t._e(),0<t.total?r("svg",{attrs:{viewBox:"0 0 33.83098862 33.83098862",xmlns:"http://www.w3.org/2000/svg"}},[t._l(t.parts,(function(a,e){return[Math.round(a.ratio)&&0!==e?r("circle",{key:e+"_border",staticClass:"aioseo-link-chart-score__circle",attrs:{stroke:"#FFFFFF","stroke-dasharray":Math.round(a.ratio)+" "+parseFloat(99-Math.round(a.ratio)),"stroke-linecap":"round","stroke-width":2.5,fill:"none",cx:"16.91549431",cy:"16.91549431",r:"15.91549431"}}):t._e(),Math.round(a.ratio)?r("circle",{key:e+"_stroke",staticClass:"aioseo-link-chart-score__circle",attrs:{stroke:a.color,"stroke-dasharray":(100===Math.round(a.ratio)?100:Math.round(a.ratio)-1)+" 100","stroke-linecap":"round","stroke-width":2,fill:"none",cx:"16.91549431",cy:"16.91549431",r:"15.91549431"}}):t._e()]}))],2):t._e(),r("div",{staticClass:"total-amount-wrapper"},[r("div",{staticClass:"total-amount"},[r("div",{staticClass:"total"},[r("util-fit-text",{attrs:{max:40,"constrain-to-element":t.$el,"element-padding":30}},[r("util-animated-number",{attrs:{number:parseInt(t.total)}})],1)],1),r("div",{staticClass:"label"},[t._v(t._s(t.label))])])])])},s=[],n=(r("a9e3"),{props:{parts:{type:Array,required:!0},label:{type:String,required:!0},total:{type:Number,required:!0}}}),i=n,o=(r("8541"),r("2877")),l=Object(o["a"])(i,e,s,!1,null,null,null);a["default"]=l.exports},"46e3":function(t,a,r){"use strict";r.r(a);var e=function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("div",{staticClass:"aioseo-link-chart-with-legend"},[r("div",{staticClass:"chart-left"},[r("LinkChart",{attrs:{parts:t.parts,total:t.total,label:t.label}})],1),r("div",{staticClass:"chart-right"},[t._l(t.sortedParts,(function(a,e){return r("div",{key:e,staticClass:"legend"},[r("div",{staticClass:"legend-bullet",style:"background-color: "+a.color}),r("span",{staticClass:"legend-amount"},[r("util-animated-number",{attrs:{number:parseInt(a.count)}})],1),r("span",{staticClass:"legend-label"},[t._v(t._s(a.name))])])})),t.total>0?r("div",{staticClass:"chart-link"},[r("span",{domProps:{innerHTML:t._s(t.link)}})]):t._e()],2)])},s=[],n=(r("a9e3"),r("d81d"),r("159b"),r("a434"),r("255d")),i={components:{LinkChart:n["default"]},props:{parts:{type:Array,required:!0},total:{type:Number,required:!0},label:{type:String,required:!0},link:{type:String,required:!0}},computed:{sortedParts:function(){var t=this.parts.map((function(t){return t}));return t.forEach((function(a,r){a.last&&(t.push(t[r]),t.splice(r,1))})),t}}},o=i,l=(r("88bc"),r("2877")),c=Object(l["a"])(o,e,s,!1,null,null,null);a["default"]=c.exports},8541:function(t,a,r){"use strict";r("f40e")},"88bc":function(t,a,r){"use strict";r("20b5")},e39e:function(t,a,r){"use strict";r.r(a);var e=function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("core-card",{staticClass:"aioseo-link-assistant-link-ratio",attrs:{slug:"linkAssistantLinkRatio","no-slide":"","header-text":t.strings.header}},[r("LinkChartWithLegend",{attrs:{parts:t.sortedParts,total:t.totals.totalLinks,label:t.strings.totalLinks,link:t.strings.linksReportLink}})],1)},s=[],n=(r("4e82"),r("159b"),r("4de4"),r("46e3")),i=r("9c0e"),o={components:{LinkChartWithLegend:n["default"]},mixins:[i["o"]],props:{totals:{type:Object,required:!0}},data:function(){return{strings:{header:this.$t.__("Internal vs External vs Affiliate Links",this.$td),totalLinks:this.$t.__("Total Links",this.$t.$tdPro),linksReportLink:this.$t.sprintf('<a href="%1$s">%2$s</a><a href="%1$s"> <span>&rarr;</span></a>',"#/links-report?fullReport=1",this.$t.__("See a Full Links Report",this.$t.$tdPro))}}},computed:{parts:function(){return[{slug:"external",name:this.$t.__("External Links",this.$t.$tdPro),count:this.totals.externalLinks},{slug:"affiliate",name:this.$t.__("Affiliate Links",this.$t.$tdPro),count:this.totals.affiliateLinks},{slug:"internal",name:this.$t.__("Internal Links",this.$t.$tdPro),count:this.totals.internalLinks}]},sortedParts:function(){var t=this.parts;return t.sort((function(t,a){return a.count>t.count?1:-1})),t[0].ratio=100,t[1].ratio=t[1].count/this.totals.totalLinks*100,t[2].ratio=t[2].count/this.totals.totalLinks*100,t.forEach((function(t){switch(t.slug){case"external":t.color="#005AE0";break;case"internal":t.color="#00AA63";break;case"affiliate":t.color="#F18200";break}})),t.filter((function(t){return 0!==t.count})),t.forEach((function(a,r){return 0===r||t.forEach((function(t,e){return r<e&&(a.ratio=a.ratio+t.ratio),a})),a})),t}}},l=o,c=r("2877"),u=Object(c["a"])(l,e,s,!1,null,null,null);a["default"]=u.exports},f40e:function(t,a,r){}}]);