1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2278],{7177:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/keywords/[term]",function(){return l(3843)}])},3843:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return _},default:function(){return Z}});var n=l(85893),s=l(1822),a=l.n(s),o=l(85473),r=l(43204),c=l(5089),i=l(1693),d=l(99664),h=l(51095),u=l(77889),m=l(94715),x=l(39964),p=l(48802),f=l(71157),g=l(25680),b=l(67294),j=l(86274),w=l(17808);let{Checkbox:y}=o.default,{Title:k}=r.default;var _=!0;function Z(e){let[t,l]=(0,b.useState)(!0),[s,r]=(0,b.useState)(!0),[y,_]=(0,b.useState)({}),[Z,v]=(0,b.useState)(!1),{parentSearch:S,relatedSearches:C}=e.data,P=Object.keys(e.data).filter(e=>"parentSearch"!==e&&"relatedSearches"!==e);b.useEffect(()=>{_(P.reduce((e,t)=>({...e,[t]:!0}),{})),window&&document.getElementById("term-kws").scrollIntoView({behavior:"smooth"})},[S]);let E=[t?S:[],...s?C:[]];P.forEach(t=>{y[t]&&E.push(...e.data[t])}),console.log(E);let I=E.map(e=>e.term),N=E.filter((e,t)=>{let{term:l}=e;return!I.includes(l,t+1)}).map((e,t)=>({...e,growth:e.monthly_searches&&e.monthly_searches.length?parseInt((e.monthly_searches[0].search_volume-e.monthly_searches[11].search_volume)/(e.monthly_searches[11].search_volume||.1)*100):0})).sort((e,t)=>e.growth-t.growth);console.log(N),console.log(P);let z=e=>{_({...y,[e]:!y[e]})},R=(0,n.jsx)(c.Z,{children:P.map(t=>(0,n.jsxs)(c.Z.Item,{onClick:e=>{var l;null==e||null===(l=e.domEvent)||void 0===l||l.stopPropagation(),z(t)},children:[(0,n.jsx)("input",{type:"checkbox",checked:y[t],style:{marginRight:"8px"}})," ",t," ",(0,n.jsx)(i.Z,{count:e.data[t].length,size:"small",style:{marginLeft:"4px"}})]}))}),B=(0,n.jsx)(d.Z,{overlay:R,placement:"bottomLeft",open:Z,children:(0,n.jsx)(h.ZP,{onClick:()=>v(!Z),children:(0,n.jsxs)(u.Z,{children:["Competitors",(0,n.jsx)(i.Z,{count:Object.keys(e.data).filter(e=>"parentSearch"!==e&&"relatedSearches"!==e).map(t=>y[t]?e.data[t].length:0).reduce((e,t)=>e+t,0),size:"small",style:{marginLeft:"4px"},overflowCount:9999}),(0,n.jsx)(j.Z,{})]})})});return(0,n.jsxs)("div",{className:"jsx-d26c02c051c6f26a site-layout-content",children:[(0,n.jsx)(m.Z,{gutter:16,children:(0,n.jsxs)(x.Z,{xs:24,lg:24,style:{padding:"0 32px"},children:[(0,n.jsx)(p.Z,{orientation:"left",children:(0,n.jsxs)(k,{id:"term-kws",style:{fontWeight:800},children:[E.length,' related keywords to "',e.data.parentSearch.term,'"']})}),(0,n.jsxs)(m.Z,{children:[(0,n.jsx)(x.Z,{flex:"auto",children:(0,n.jsxs)(o.default,{layout:"inline",className:"components-table-demo-control-bar",style:{marginBottom:16},children:[(0,n.jsx)(o.default.Item,{label:"Include Parent KW",children:(0,n.jsx)(f.Z,{checked:t,onChange:e=>{l(e)}})}),(0,n.jsx)(o.default.Item,{label:"Include Related KWs",children:(0,n.jsx)(f.Z,{checked:s,onChange:e=>{r(e)}})}),B]})}),(0,n.jsx)(x.Z,{children:(0,n.jsxs)(h.ZP,{children:[E.length," keywords"]})})]}),(0,n.jsx)(g.Z,{bordered:!0,id:"searches-table",style:{marginBottom:"24px"},columns:(0,w.getBaseColumns)({getColumnSearchProps:()=>{},getRangeFilterProps:()=>{}}),dataSource:N,rowSelection:{type:"checkbox",onChange:(e,t)=>
1{var l,n;console.log("selectedRowKeys: ".concat(e),"selectedRows: ",t),null===(n=navigator)||void 0===n||null===(l=n.clipboard)||void 0===l||l.writeText(t.map(e=>e.term).join("\n"))},getCheckboxProps:e=>({disabled:"Disabled User"===e.name,name:e.name})},pagination:{pageSize:20}})]})}),(0,n.jsx)(a(),{id:"d26c02c051c6f26a",children:".ant-dropdown-menu-title-content{-webkit-box-flex:1;-webkit-flex:auto;-moz-box-flex:1;-ms-flex:auto;flex:auto;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}"})]})}}},function(e){e.O(0,[6911,1029,1214,9037,7318,5746,5117,122,4913,1963,2205,1396,1194,9972,5894,1977,4151,2246,5680,2983,1693,8395,6709,1822,4982,6927,5375,8661,7808,2888,9774,179],function(){return e(e.s=7177)}),_N_E=e.O()}]);
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.