1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2760],{2760:(t,a,e)=>{e.r(a),e.d(a,{default:()=>o});var s=e(296),r=e(9755);const n={name:"ByCountryCommonStatComponent",data:function(){return{mapObj:{},map:!1,countriesData:[],table:null,searchByValue:""}},created:function(){var t=this;r(document).ready((function(){t._axiosWrapper("GET","/get-statistics",{requestedUrl:"/api/v2/stats/countries?limit=1000"},(function(a){return t.countriesData=a.data.results}),(function(){return t._tableLoadingError()}))}))},methods:{normalizeColorValues:function(t,a,e,s){var r=s||1/16,n=(Math.pow(e,r)-Math.pow(t,r))/a;return n<.15?.15:n},resetSearch:function(){return this.searchByValue="",this.searchByDebounce(""),!0},searchByDebounce:(0,s.debounce)((function(t){this.searchByValue=t,this.table||(this.table=r("#dataTableCountries").DataTable()),this.inputError=!1,this.table.column(0).search(t).draw()}),500)},watch:{responseData:function(t){this.countriesData=t},countriesData:function(t){var a=this,e=[],s=t,r="<tbody>",n=1/256,o=s[s.length-1].shareIPv4,i=10*s[0].shareIPv4,c=Math.pow(i,n)-Math.pow(o,n);s.map((function(t){t.countryCode&&(e.push({id:t.countryCode,name:t.country,value:t.countIPv4,fill:"rgba(111, 166, 231,"+a.normalizeColorValues(o,c,10*t.shareIPv4,n)+")",pieStatLink:"/statistics/country/"+t.countryCode}),t.shareIPv4&&t.shareIPv4>1e-4?t.shareIPv4:1e-4,r+="<tr>",r+="<td>"+helpers.getStatLinkBySection(self,"country",t.countryCode,t.country)+"</td>",r+="<td>"+a.ipAddressesToHtmlWrapper(t.countIPv4,t.countIPv6)+"</td>",r+="<td>"+a.ipAddressesToHtmlWrapper(t.shareIPv4,t.shareIPv6,"0.00%","%")+"</td>",r+="<td>"+helpers.getOtherStatisticsToTd(t)+"</td>",r+="</tr>")})),r+="</tbody>",this.mapObj={dataProvider:e},this.map="map-stat-chart-component",this.pagePrepared=!0,setTimeout((function(){a.appendDataToTable(r,"dataTableCountries"),a.initDomainsByDateTable("dataTableCountries",[1,"desc"],[{bSearchable:!1,bSortable:!1},{bSearchable:!1,bSortable:!0},{bSearchable:!1,bSortable:!1},{bSearchable:!1,bSortable:!1}],'<tr class="non-hovered"><td></td><td></td><td></td><td></td></tr>')}),50)}}};const o=(0,e(1900).Z)(n,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.pagePrepared?e("transition",{attrs:{name:"fade"}},[t.map?e("div",{staticClass:"statistics-block"},[e("div",{staticClass:"content-in-blocks"},[e("div",{staticClass:"stat-output-block"},[e("section",[e("div",{staticClass:"common-block-stat"},[e("div",{staticClass:"block-column"},[e("div",{staticClass:"common-stat-block map-block with-table"},[e(t.map,{tag:"component",attrs:{mapObj:t.mapObj}}),t._v(" "),e("div",{staticClass:"common-table-wrapper countries-table"},[e("table",{staticClass:"table table-hover",attrs:{id:"dataTableCountries",width:"100%",cellspacing:"0"}},[e("thead",[e("tr",[e("th",[e("div",{staticClass:"with-search"},[t._v("\n Country\n "),e("div",{staticClass:"search-input-wrapper"},[e("input",{attrs:{placeholder:"By country name"},domProps:{value:t.searchByValue},on:{input:function(a){return t.searchByDebounce(a.target.value)}}}),t._v(" "),e("i",{staticClass:"icon-search",attrs:{"aria-hidden":"true"}}),t._v(" "),t.searchByValue.length?e("transition",{attrs:{name:"fade"}},[e("i",{staticClass:"icon-cancel hovered-icon",attrs:{"aria-hidden":"true"},on:{click:t.resetSearch}})]):t._e()],1)])]),t._v(" "),e("th",[t._v("IP addresses")]),t._v(" "),e("th",[t._v("Share")]),t._v(" "),e("th",[t._v("Relevant statistics")])])])])])],1)])])])])])]):t._e()]):t._e()}),[],!1,null,null,null).exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.