PageSourceSearch

https://serpstat.com/js/app-pages-summary-page.779ad999.chunk.js?react

js serpstat.com collected 2026-10-01 08:45:28 UTC 214,462 bytes, 1 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4632],{17965(e,t,r){"use strict";var s=r(16426),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,l,n,o,c,d=!1;t||(t={}),r=t.debug||!1;try{if(l=s(),n=document.createRange(),o=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){window.clipboardData.clearData();var s=a[t.format]||a.default;window.clipboardData.setData(s,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(c),n.selectNodeContents(c),o.addRange(n),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(s){r&&console.error("unable to copy using execCommand: ",s);try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(s){r&&console.error("unable to copy using clipboardData: ",s),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{o&&("function"==typeof o.removeRange?o.removeRange(n):o.removeAllRanges()),c&&document.body.removeChild(c),l()}return d}},33607(e,t,r){"use strict";r.r(t),r.d(t,{CopyToClipboard:()=>f});var s=r(96540),a=r(5556),i=r.n(a),l=r(17965),n=r.n(l),o=Object.defineProperty,c=Object.defineProperties,d=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,p=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t,r)=>p(e,"symbol"!==typeof t?t+"":t,r);class f extends s.PureComponent{constructor(){super(...arguments),x(this,"onClick",e=>{const{text:t,onCopy:r,children:a,options:i}=this.props,l=s.Children.only(a),o=n()(t,i);r&&r(t,o),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(e)})}render(){const e=this.props,{text:t,onCopy:r,options:a,children:i}=e,l=((e,t)=>{var r={};for(var s in e)u.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&m)for(var s of m(e))t.indexOf(s)<0&&h.call(e,s)&&(r[s]=e[s]);return r})(e,["text","onCopy","options","children"]),n=s.Children.only(i);return(0,s.cloneElement)(n,(o=((e,t)=>{for(var r in t||(t={}))u.call(t,r)&&p(e,r,t[r]);if(m)for(var r of m(t))h.call(t,r)&&p(e,r,t[r]);return e})({},l),x={onClick:this.onClick},c(o,d(x))));var o,x}}x(f,"propTypes",{text:i().string.isRequired,children:i().element.isRequired,onCopy:i().func,options:i().shape({debug:i().bool,message:i().string,format:i().string})}),x(f,"defaultProps",{onCopy:void 0,options:void 0})},73380(e,t,r){"use strict";r.r(t),r.d(t,{LimitsOverPopup:()=>s.default});var s=r(66570)},88612(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>y});var s=r(74848),a=r(5556),i=r.n(a),l=r(87714),n=r(8217),o=r(93221);const c=({updateVisible:e})=>(0,s.jsx)(n.default,{className:"button_trigger-wrapper",tooltipText:o.default.udateVisibleButtonTooltip,children:(0,s.jsx)(l.default,{className:"min-width131 button_trigger ml5 mr5",onClick:e,color:"thirdly",children:(0,s.jsx)("span",{className:"pr5 pl5",children:o.default.udateVisibleButton})})});c.propTypes={updateVisible:i().func};const d=c;var m=r(55263),u=r(71468),h=r(57598);const p=(0,r(4985).default)(h.UPDATE_VISIBLE);var x=r(15818);const f={updateVisible:p},y=(0,m.compose)((0,u.connect)(null,f),(0,x.default)(["admin"],"enable"))(d)},57097(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>o});var s=r(74848),a=r(96540),i=r(73380),l=r(87924),n=r(99995);const o=(0,r(32892).connect)(null,{triggerLimitsIsOverModal:n.triggerLimitsIsOverModal})(({triggerLimitsIsOverModal:e,currentModuleName:t})=>((0,a.useEffect)(()=>l.default.listen(t=>{"over_limits"===t.state&&e(!0)}
1),[]),(0,s.jsx)(i.LimitsOverPopup,{moduleLimits:"searchAnalytics",currentModuleName:t||"search_analytics"})))},70595(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>g});var s=r(74848),a=r(96540),i=r(21552),l=r(5556),n=r.n(l),o=r(1362),c=r(8217),d=r(37638),m=r(36073),u=r(59272),h=r(86663),p=r(72681),x=Object.defineProperty,f=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,_=(e,t,r)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const g=e=>{class t extends a.Component{get text(){const{searchBar:e,t}=this.props;let r;switch(e.search_type){case u.SEARCH_TYPES.URL:case u.SEARCH_TYPES.URL_PREFIX:r=t("emptysearchbarurltooltip");break;case u.SEARCH_TYPES.SUBDOMAINS:case u.SEARCH_TYPES.ROOT_DAMAINS:r=t("emptysearchbardomaintooltip");break;case u.SEARCH_TYPES.KEYWORD:r=t("emptysearchbarkeywordtooltip");break;default:r=t("invalid_search_query")}return r}render(){const{searchBar:t,tKey:r,t:a,noQueryChildren:i,renderNoQuery:l,location:n}=this.props,p=t.search_type!==u.SEARCH_TYPES.KEYWORD,x=l?h.parse(n.search).query:null;return(l?Boolean(x):Boolean(null==t?void 0:t.query))?(0,s.jsx)(e,((e,t)=>{for(var r in t||(t={}))y.call(t,r)&&_(e,r,t[r]);if(f)for(var r of f(t))j.call(t,r)&&_(e,r,t[r]);return e})({},this.props)):l?l():(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.ProductHeader,{productName:(0,s.jsxs)("div",{className:"df aic medium fz20",children:[(0,s.jsx)("span",{className:"pr5 nw",children:a(r.title)}),p?(0,s.jsx)(m.DomainAnalysisProjectSelect,{}):null,(0,s.jsx)(c.default,{className:p?"ml5":"mt2",tooltipText:a(r.titleTooltip)})]})}),(0,s.jsx)(o.default,{text:this.text,children:i||null})]})}}var r,l,x;r=t,l="propTypes",x={t:n().func,searchBar:n().object.isRequired,noQueryChildren:n().object},_(r,"symbol"!==typeof l?l+"":l,x);const g=(0,i.withTranslation)(["SearchForm","domain_global","domain_overview","domain_seo","domain_ppc","keywords_overview","keywords_related_keywords","keywords_global","url_global","url_overview","keywords_ppc","keywords_seo","keywords_serp_analysis"])(t);return(0,p.withRouter)(g)}},93221(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>n});var s=r(57814);const a=new s.Translator(["tooltip","button"]),i=new s.Translator("domain_overview"),l=new s.Translator("domain_global"),n={mainTitle:l.translate("domain_global::main_title"),tooltip:a.translate("tooltip::domain_overview"),visibilityTooltipYandex:a.translate("tooltip::overview_visibility_tooltip_yandex"),distributionTitle:i.translate("overview_domain_keyword_distribution"),distributionTooltip:a.translate("tooltip::overview_distribution_tooltip_google"),top:l.translate("domain_global::top"),series:l.translate("domain_global::series"),date:l.translate("domain_global::date"),keywordGraph:i.translate("domain_overview::overview_domain_visibility"),visibilityTitle:i.translate("domain_overview::overview_domain_visibility"),visibilityTooltip:a.translate("tooltip::overview_visibility_tooltip_google"),maximum:l.translate("domain_global::maximum"),minimum:l.translate("domain_global::minimum"),trafficTrendTitle:l.translate("domain_global::domain_traff_trend_year_graph"),trafficTrendTitleTooltip:a.translate("tooltip::overview_sumtraffic_tooltip_google"),trafficTrendTitleTooltipYandex:a.translate("tooltip::overview_sumtraffic_tooltip_yandex"),trafficTrendChartTooltip:l.translate("domain_global::traffic_trend_values"),keyPhrasesCountTitle:l.translate("domain_keyword_trend_year_graph"),keyPhrasesCountTooltip:a.translate("tooltip::keyphrases_count_tooltip"),keyPhrasesCountChartTooltip:l.translate("overview_domain_keywords_graph"),nodata:l.translate("domain_global::no_data"),nodataCard:l.translate("domain_global::nodata_card"),siteAudit:l.translate("domain_global::site_audit"),siteAuditTooltip:l.translate("domain_global::site_audit_tooltip"),siteAuditText:l.translate("domain_global::site_audit_text"),siteAuditButton:l.translate("domain_global::site_audit_button"),auditInProgress:l.translate("domain_global::audit_in_progress"),trackDomainButton:l.translate("domain_global::track_domain_button"),udateVisibleButton:i.translate("domain_overview::update_visible"),udateVisibleButtonTooltip:i.translate("domain_overview::update_visible_tooltip"),removeKeywords:l.translate("domain_global::remove_keywords"),recheckKeywordsPosition:l.translate("domain_global::recheck_keywords_position"),recheckKeywordsDifficulty:l.translate("recheck_keywords_difficulty")}},28429(e,t,r){"use strict";r.r(t),r.d(t,{getGoogleIncidents:()=>l});var s=r(94335),a=r(67510);const i=s.default.create({adapter:function(e){const t=new a.Cache;return r=>{const s=r.url;let a=t.get(s);if(a)return a;const i=e(r);return t.set(s,i),i}}(s.default.getAdapter(["xhr","http"]))});function l(){return i({method:"get",url:"https://status.search.google.com/incidents.json",withCredentials:!1})}},47342(e,t,r){"use strict";r.r(t),r.d(t,{exportReport:()=>a});var s=r(30952);const a=(0,r(4985).default)(s.EXPORT)},92100(e,t,r){"use strict";r.r(t),r.d(t,{fetchRegionsByProject:()=>n,setCurrentRegion:()=>c,setRegions:()=>o,updatePageData:()=>i,updatePageDataError:()=>l});var s=r(9514),a=r(4985);const i=(0,a.default)(s.UPDATE_PAGE_DATA),l=(0,a.default)(s.UPDATE_PAGE_DATA_ERROR),n=(0,a.default)(s.FETCH_PROJECT_REGIONS),o=(0,a.default)(s.SET_REGIONS),c=(0,a.default)(s.SET_CURRENT_REGIONS)},30952(e,t,r){"use strict";r.r(t),r.d(t,{EXPORT:()=>s});const s="analysis-export/EXPORT"},9514(e,t,r){"use strict";r.r(t),r.d(t,{FETCH_PROJECT_REGIONS:()=>l,SET_CURRENT_REGIONS:()=>o,SET_REGIONS:()=>n,UPDATE_PAGE_DATA:()=>a,UPDATE_PAGE_DATA_ERROR:()=>i});const s="domain-analysis",a=`${s}/UPDATE_PAGE_DATA`,i=`${s}/UPDATE_PAGE_DATA_ERROR`,l=`${s}/FETCH_PROJECT_REGIONS`,n=`${s}/SET_REGIONS`,o=`${s}/SET_CURRENT_REGIONS`},79611(e,t,r){"use strict";r.r(t),r.d(t,{useLazyProcedure:()=>i});var s=r(96540),a=r(86673);const i=e=>
1{const[t,r]=(0,s.useState)(null),[i,l]=(0,s.useState)(!1),[n,o]=(0,s.useState)(null);return{callProcedure:t=>{return s=null,i=null,n=function*(){try{l(!0),r(null),o(null);const s=yield(0,a.fetchDataWithErrorCheck)(e,t);return r(s),s}catch(e){console.error(e),o(e)}finally{l(!1)}},new Promise((e,t)=>{var r=e=>{try{l(n.next(e))}catch(e){t(e)}},a=e=>{try{l(n.throw(e))}catch(e){t(e)}},l=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,a);l((n=n.apply(s,i)).next())});var s,i,n},clear:()=>{l(!1),r(null),o(null)},data:t,loading:i,error:n}}},20273(e,t,r){"use strict";r.r(t),r.d(t,{CopyButton:()=>m});var s=r(74848),a=r(18492),i=r(33607),l=r(46942),n=r.n(l),o=r(96540),c=r(28314),d=r(26383);const m=({copyText:e,onClick:t=()=>{},className:r})=>{const l=(0,c.useTrigger)(!1),{t:m}=(0,a.useTranslation)(["Global"]),u=(0,o.useCallback)(()=>{return e=null,t=null,r=function*(){l.on(),yield(0,d.waiting)(1e3),l.off()},new Promise((s,a)=>{var i=e=>{try{n(r.next(e))}catch(e){a(e)}},l=e=>{try{n(r.throw(e))}catch(e){a(e)}},n=e=>e.done?s(e.value):Promise.resolve(e.value).then(i,l);n((r=r.apply(e,t)).next())});var e,t,r},[l]);return(0,s.jsx)(i.CopyToClipboard,{text:e,onCopy:u,children:(0,s.jsx)("button",{onClick:t,className:n()("copy-button",r),children:l.value?m("Global::success"):m("Global::copy")})})}},51268(e,t,r){"use strict";r.r(t),r.d(t,{BIGQUERY_FORMAT_ID:()=>l,DEFAULT_DATASET_ID:()=>n,default:()=>G});var s=r(74848),a=r(96540),i=r(28314);const l="bq",n="serpstat_reports";var o=r(21552),c=r(46942),d=r.n(c),m=r(38221),u=r.n(m),h=r(90011),p=r(91175),x=r(50768),f=r(18020),y=r(4978),j=r(61118),_=Object.defineProperty,g=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,N=(e,t,r)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const w=({projects:e,onChange:t,projectId:r,isLoading:i})=>{const{t:l}=(0,o.useTranslation)(["export","Global","tooltip"]),[n,c]=(0,a.useState)(""),m=(0,a.useCallback)(e=>()=>{t(e)},[t]);(0,a.useEffect)(()=>{c("")},[e]);const _=(0,a.useMemo)(()=>n?e.filter(e=>e.name.includes(n)):e,[e,n]),w={className:"scrollbar",rowCount:_.length,rowHeight:30,overscanRowCount:2,rowRenderer:({index:e,key:t,style:a})=>{const i=_[e],l=`project_${t}`;return(0,s.jsx)("div",{className:d()("df aic project-list__item",{"project-list__item--active":i.id===r}),style:a,onClick:m(i.id),"data-testid":i.id,children:(0,s.jsx)("span",{children:i.name})},l)},height:260};return(0,s.jsxs)("div",{className:"project-list",children:[(0,s.jsxs)("div",{className:"project-list__header",children:[l("export::select_project_from_list"),(0,s.jsx)(f.Tooltip,{tooltipText:l("tooltip::select_project_from_list")})]}),(0,s.jsx)("div",{className:"project-list__wrapper",children:i?(0,s.jsx)(y.BigLoader,{isTextHidden:!0}):e.length>0?(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(x.default,{placeholder:l("Global::search"),name:"search",onInput:u()(c,200),value:n,autofocus:!0,inputClear:!0,autoComplete:"off"}),(0,s.jsx)(h.default,{disableHeight:!0,children:({width:e})=>(0,s.jsx)(p.default,((e,t)=>{for(var r in t||(t={}))v.call(t,r)&&N(e,r,t[r]);if(g)for(var r of g(t))b.call(t,r)&&N(e,r,t[r]);return e})({width:e},w))})]}):(0,s.jsxs)("div",{className:"df aic jcc fdc project-list__no-projects",children:[(0,s.jsx)(j.Figure6,{width:"50",className:"datasets-list__no-data"}),(0,s.jsx)("span",{children:l("export::big_query_has_no_projects")})]})})]})};var T=Object.defineProperty,k=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,I=(e,t,r)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const D=({className:e,datasets:t,datasetId:r,onChange:i,isLoading:l,needSelectProject:n})=>{const{t:c}=(0,o.useTranslation)(["export","Global","tooltip"]),[m,_]=(0,a.useState)(""),g=(0,a.useCallback)(e=>()=>{i(e)},[i]);(0,a.useEffect)(()=>{_("")},[t]);const v=(0,a.useMemo)(()=>m?t.filter(e=>e.id.includes(m)):t,[t,m]),b={className:"scrollbar",rowCount:v.length,rowHeight:30,overscanRowCount:2,rowRenderer:({index:e,key:t,style:a})=>{const i=v[e],l=`${i.id}_${t}`;return(0,s.jsx)("div",{className:d()("df aic datasets-list__item",{"datasets-list__item--active":i.id===r}),style:a,onClick:g(i.id),"data-testid":i.id,children:(0,s.jsx)("span",{children:i.id})},l)},height:260};return(0,s.jsxs)("div",{className:d()("datasets-list",e),children:[(0,s.jsxs)("div",{className:"datasets-list__header",children:[c("export::select_dataset_from_list"),(0,s.jsx)(f.Tooltip,{tooltipText:c("tooltip::select_dataset_from_list")})]}),(0,s.jsx)("div",{className:"datasets-list__wrapper",children:l?(0,s.jsx)(y.BigLoader,{isTextHidden:!0}):n?(0,s.jsxs)("div",{className:"df aic jcc fdc datasets-list__need-select-project",children:[(0,s.jsx)(j.Figure6,{width:"50",className:"datasets-list__no-data"}),(0,s.jsx)("span",{children:c("export::big_query_need_select_project")})]}):(0,s.jsxs)(a.Fragment,{children:[(0,s.jsx)(x.default,{placeholder:c("Global::search"),name:"search",onInput:u()(_,200),value:m,autofocus:!0,inputClear:!0,autoComplete:"off"}),(0,s.jsx)(h.default,{disableHeight:!0,children:({width:e})=>(0,s.jsx)(p.default,((e,t)=>
1{for(var r in t||(t={}))A.call(t,r)&&I(e,r,t[r]);if(k)for(var r of k(t))C.call(t,r)&&I(e,r,t[r]);return e})({width:e},b))})]})})]})},P=(e=[])=>{const{data:t,loading:r,error:s}=(0,i.useProcedure)(["projects.getBqUserProjects",{}],e);return{projects:t,loadingProjects:r,errorProjects:s}};var O=r(86673);const z=e=>{const[t,r]=(0,a.useState)([]),[s,i]=(0,a.useState)(!1),[l,o]=(0,a.useState)(null);return(0,a.useEffect)(()=>{(()=>{return t=null,s=null,a=function*(){try{i(!0),r(null),o(null);let t=[];e&&(t=yield(0,O.fetchDataWithErrorCheck)("projects.getBqDatasetsByProject",{projectId:e})),r((e=>{const t=[{id:n}];return(null==e?void 0:e.length)&&e.forEach(e=>{e.id!==n&&t.push(e)}),t})(t))}catch(e){o(e)}finally{i(!1)}},new Promise((e,r)=>{var i=e=>{try{n(a.next(e))}catch(e){r(e)}},l=e=>{try{n(a.throw(e))}catch(e){r(e)}},n=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,l);n((a=a.apply(t,s)).next())});var t,s,a})()},[e]),{datasets:t,loadingDatasets:s,errorDatasets:l}};var S=r(37342);const L=({className:e,onClose:t,header:r,footer:a,children:i})=>(0,s.jsx)("div",{className:d()("dialog-settings",e),children:(0,s.jsx)(S.default,{onClose:t,className:d()(e,"dialog-settings__dialog"),dialogHeading:r,dialogFoot:a,isAlertsInPopupOn:!0,onWrappClick:t,children:(0,s.jsx)("div",{className:"df dialog-settings__sections",children:Array.isArray(i)?i.map((e,t)=>(0,s.jsx)("div",{className:`dialog-settings__section dialog-settings__section--${t+1}`,children:e},`section-${t}`)):i})})});var M=r(31299);const E=({className:e,cancelTitle:t,onCancel:r,applyTitle:a,onApply:i,isApplyDisabled:l,children:n})=>{const{t:c}=(0,o.useTranslation)(["Global"]);return(0,s.jsxs)("div",{className:d()("df aic jcfe footers-buttons",e),children:[n,"function"===typeof r&&(0,s.jsx)(M.Button,{className:"footers-buttons__cancel",onClick:r,color:"primary",children:t||c("Global::cancel_button")}),"function"===typeof i&&(0,s.jsx)(M.Button,{className:"footers-buttons__apply",onClick:i,isDisabled:l,children:a||c("Global::apply_button")})]})},R=({onClose:e,onSubmit:t})=>{const{t:r}=(0,o.useTranslation)(["export","Global"]),[i,l]=(0,a.useState)(null),[n,c]=(0,a.useState)(null),{projects:d,loadingProjects:m}=P(),{datasets:u,loadingDatasets:h}=z(i),p=(0,a.useCallback)(()=>{i&&t&&t({projectId:i,datasetId:n})},[t,i,n]),x=(0,a.useCallback)(e=>{i!==e&&(c(null),l(e))},[i]);return(0,a.useEffect)(()=>{!(m||h)&&i&&(null==u?void 0:u.length)>0&&c(u[0].id)},[u,h]),(0,s.jsxs)(L,{className:"dialog-bq-project-id",onClose:e,header:r("export::big_query_export"),footer:(0,s.jsx)(E,{onCancel:e,onApply:p,isApplyDisabled:!i||!n,applyTitle:r("export::big_query_id_button")}),children:[(0,s.jsx)(w,{projects:d||[],projectId:i,onChange:x,isLoading:m}),(0,s.jsx)(D,{datasets:u||[],datasetId:n,onChange:c,isDisabled:!i,isLoading:m||h,needSelectProject:!i})]})};var B=Object.defineProperty,F=Object.defineProperties,V=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,Y=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))q.call(t,r)&&Y(e,r,t[r]);if(U)for(var r of U(t))H.call(t,r)&&Y(e,r,t[r]);return e};const G=e=>t=>{var r=t,{formats:n,onExport:o}=r,c=((e,t)=>{var r={};for(var s in e)q.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&U)for(var s of U(e))t.indexOf(s)<0&&H.call(e,s)&&(r[s]=e[s]);return r})(r,["formats","onExport"]);const[d,m]=(0,a.useState)(null),u=(0,i.useTrigger)(!1),h=(0,a.useCallback)(e=>{const{format:t}=e;t===l?(m(e),u.on()):(m(null),o(e))},[o,u]),p=(0,a.useCallback)(({projectId:e,datasetId:t})=>{var r;o((r=$({},d),F(r,V({bigQueryProjectId:e,bigQueryDatasetId:t})))),u.off()},[o,d,u]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(e,$({formats:n,onExport:h},c)),u.value&&(0,s.jsx)(R,{onClose:u.off,onSubmit:p})]})}},6189(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>x,getReportLandingUrl:()=>n});var s=r(74848),a=r(46942),i=r.n(a),l=r(76428);const n=(e,t)=>`https://serpstat.com${"en"===e?"":`/${e}`}/page/serpstat-reports/${`?utm_source=report&utm_medium=referral&utm_campaign=${t}`}`,o="badge___JEjoj",c="logo___Fx1ff",d="colorDark___shOO6",m="colorLight___K5lIF",u="text___pE1tZ",h="poweredBy___uL31R",p="wordmark___RmJah",x=({campaign:e,locale:t,className:r})=>{const a=(0,l.default)(),x=n(t||a||"en",e);return(0,s.jsxs)("a",{className:i()(o,r),href:x,target:"_blank",rel:"noopener noreferrer nofollow","aria-label":"Powered by Serpstat",children:[(0,s.jsxs)("svg",{className:c,viewBox:"0 0 37 26",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,s.jsx)("path",{className:d,d:"M36.25 0H12.8828l.0012.0056c-.3986.0157-.7187.34-.7187.742 0 .213.0907.4028.234.5386l-.0034.0034 5.058 5.0248c.294.293.294.77.001 1.063l-8.323 8.275c-.214.2144-.162.5758.104.7195l1.035.561c.19.103.488.082.674-.029.257-.154.556-.244.877-.244.22 0 .428.045.621.122.108.044.232.03.319-.049l1.975-1.79c-.002-.037-.011-.073-.011-.111 0-.954.771-1.728 1.722-1.728.801 0 1.469.55 1.661 1.293l1.915.815c.059.024.124.014.178-.022.276-.193.61-.309.971-.309.171 0 .337.028.493.076.0583.019.121.005.1657-.037l3.308-3.231c.048-.046.0725-.115.0714-.181-.029-1.697 1.2213-1.8937 1.7127-1.91.746-.028 1.373.487 1.6046 1.162.0238.064.072.117.137.14l2.0955.718c.0795.028.1635.0057.226-.0493.3047-.276.7065-.4454 1.1487-.4454.157 0 .43.099.589-.074l4.158-4.248c.0723-.073.113-.172.113-.2766V.752C37 .3367 36.664 0 36.25 0"}),(0,s.jsx)("path",{className:m,d:"M36.9876 10.2534c0-.2262-.2743-.3393-.4323-.1764l-2.6816 2.7377c-.0587.0588-.0813.1437-.0677.2263.0688.4502-.0226.9536-.6197 1.508-.3148.293-.7155.4944-1.1455.4842-.701-.0192-1.2912-.457-1.5485-1.0714-.027-.0644-.078-.1176-.1456-.1414l-2.2155-.7613c-.0768-.026-.159-.006-.2235.046-.298.242-.676.389-1.089.389-.1875 0-.3647-.037-.534-.093 0 0-2.528 2.452-3.4265 3.338-.1095.11-.
11106.118-.0858.339 0 .962-.7765 1.741-1.737 1.741-.8114 0-1.4886-.559-1.6793-1.312-.02-.077-.07-.142-.143-.174l-1.645-.699c-.083-.037-.177-.019-.25.037-.291.223-.652.359-1.045.359-.187 0-.368-.03-.537-.087-.1-.033-.21-.016-.289.054l-2.002 1.814c-.068.061-.104.146-.114.237-.088.878-.824 1.564-1.724 1.564-.697 0-1.292-.414-1.568-1.009-.072-.156-.205-.274-.354-.356l-2.254-1.22c-.177-.096-.395-.063-.537.078L.223 24.71l-.0024.0023-.009.009.0024.001c-.131.136-.2133.319-.2133.523C0 25.6617.3363 26 .754 26H22.63c.4188 0 1.0045-.241 1.3025-.5362l.429-.4265.0123-.0125 5.134-5.0987c.297-.294.781-.294 1.078 0l5.1195 5.088c.1377.142.3273.231.5406.231.415 0 .754-.337.754-.753l-.013-14.237z"})]}),(0,s.jsxs)("span",{className:u,children:[(0,s.jsx)("span",{className:h,children:"Powered by"}),(0,s.jsxs)("svg",{className:p,viewBox:"46 0 185 26",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:[(0,s.jsx)("path",{className:d,d:"M51.1995 1.825c-1.4228.552-2.5232 1.3214-3.3025 2.31-.778.9908-1.1684 2.134-1.1684 3.4266 0 2.5984 1.5632 4.6413 4.685 6.1286.9612.4576 2.195.9363 3.7077 1.426 1.5114.4944 2.5692.9687 3.169 1.4296.603.4598.9013 1.1.9013 1.9248 0 .727-.2786 1.2914-.8357 1.6922-.558.4008-1.315.6023-2.277.6023-1.499 0-2.585-.297-3.252-.89-.669-.593-1.002-1.516-1.002-2.766H46c0 1.54.4006 2.9 1.1994 4.083.8 1.181 1.9926 2.112 3.5777 2.79 1.582.68 3.351 1.02 5.304 1.02 2.77 0 4.95-.581 6.538-1.747C64.208 22.086 65 20.481 65 18.439c0-2.555-1.3-4.562-3.905-6.015-1.0693-.599-2.437-1.159-4.105-1.6766-1.6632-.52-2.828-1.0207-3.4912-1.5084-.663-.4865-.9922-1.0297-.9922-1.6298 0-.6835.3005-1.248.9014-1.691.602-.4443 1.4204-.667 2.4586-.667 1.0258 0 1.8408.2628 2.4416.787.5998.5245.9026 1.2615.9026 2.2134H65c0-1.4208-.3787-2.6888-1.1407-3.794-.761-1.107-1.829-1.9596-3.2024-2.5586C59.281 1.2994 57.729 1 55.997 1c-1.775 0-3.375.275-4.7978.825M72 1v24h15.969v-4.4518H77.5884V14.813h8.7895v-4.2848h-8.79V5.4667H88V1m7 0v24h5.6817v-8.4884h3.0726L107.9153 25H114v-.2482l-4.9185-9.6906c1.4125-.6806 2.449-1.5682 3.1132-2.6663.663-1.099.995-2.483.995-4.15 0-2.306-.788-4.09-2.3626-5.352C109.252 1.631 107.068 1 104.275 1H95zm5.6817 4.4507h3.5926c1.067 0 1.8763.2928 2.4267.8842.5515.589.826 1.402.826 2.437s-.2712 1.841-.8182 2.419c-.5447.58-1.3562.869-2.4345.869h-3.5926V5.45zM120 1v24h5.818v-8.144h3.7172c2.9366 0 5.2495-.7002 6.9363-2.1002C138.156 13.3558 139 11.4833 139 9.143c0-1.583-.3886-2.998-1.1703-4.2448-.7794-1.248-1.8782-2.2088-3.2975-2.8836C133.1106 1.3374 131.4768 1 129.632 1H120zm5.818 4.4667h3.881c1.049.0114 1.878.3523 2.4857 1.0214.6076.672.911 1.566.911 2.686 0 1.024-.294 1.815-.8856 2.376-.592.561-1.451.841-2.578.841h-3.814V5.467z"}),(0,s.jsx)("path",{className:m,d:"M148.1957 1.825c-1.4226.552-2.522 1.3214-3.3 2.31-.7804.9908-1.1683 2.134-1.1683 3.4266 0 2.5984 1.5608 4.6413 4.6836 6.1286.96.4576 2.196.9363 3.7074 1.426 1.5113.4944 2.5668.9687 3.1688 1.4296.6008.4598.9024 1.1.9024 1.9248 0 .727-.2785 1.2914-.8356 1.6922-.5594.4008-1.3157.6023-2.2756.6023-1.501 0-2.583-.297-3.2528-.89-.6665-.593-1.0003-1.516-1.0003-2.766H143c0 1.54.4006 2.9 1.1994 4.083.801 1.181 1.9924 2.112 3.5762 2.79 1.5814.68 3.3494 1.02 5.3028 1.02 2.7694 0 4.9483-.581 6.5378-1.747C161.2058 22.086 162 20.481 162 18.439c0-2.555-1.303-4.5623-3.9054-6.015-1.0716-.599-2.4402-1.159-4.1046-1.6767-1.6667-.52-2.8315-1.0207-3.4922-1.5084-.662-.487-.9933-1.03-.9933-1.63 0-.684.2992-1.248.9012-1.691.6008-.445 1.4204-.667 2.4586-.667 1.0256 0 1.8382.263 2.4425.787.5985.524.9 1.261.9 2.213h
15.791c0-1.421-.38-2.689-1.1408-3.794-.7608-1.107-1.829-1.96-3.2033-2.559S154.7267 1 152.9977 1c-1.7782 0-3.3793.275-4.802.825M166 1v4.4667h7.051V25h5.7676V5.4667H186V1m9.7594 0L187 25h6.1522l1.3783-4.4838h7.89L203.8158 25H210l-8.8267-24h-5.414zm2.7075 6.7246l2.576 8.325h-5.135l2.558-8.325zM211 1v4.4667h7.051V25h5.7676V5.4667H231V1"})]})]})]})}},90780(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>s});const s=r(56641).default},99821(e,t,r){"use strict";r.r(t),r.d(t,{LastQueries:()=>I,useReportEntitieSuggestions:()=>C});var s=r(74848),a=r(21552),i=r(96540),l=r(32892),n=r(72681),o=r(79398),c=r(81372),d=r(68424),m=r(6691),u=r(92642);const h=({queryItem:e,onClickItem:t})=>{const r=(0,n.useHistory)(),a=(0,l.useSelector)(e=>{var t;return(null==(t=e.searchForm.selectSE)?void 0:t.value)||""}),{search_type:h,aiSearch:p}=(0,l.useSelector)(e=>e.searchBar),x=(0,l.useSelector)(e=>e.authentication.isAuthenticated),f=(0,i.useCallback)(t=>{t.preventDefault(),d.default.setData("global","search_hints","click_hint","false",{},!0);const s=(0,u.getCurrentModule)(r.location.pathname),i=((null==s?void 0:s.getSearchTypeByQuery)||o.getSearchTypeByQuery)(e,""),l=(0,c.prepareQuery)(e,i);if(localStorage.setItem("se",a),l&&l&&(0,c.isValidQuery)(l,i)){if(!x){const e=(null==s?void 0:s.getPathToRedirect)?s.getPathToRedirect({history:r,query:l,se:a,searchType:i,prevSearchType:h}):(0,o.getRedirectUrlOnType)(l,a,i);return void(window.location.href=`/login/?origin=${encodeURIComponent(e)}`)}if((0,m.setCurrentProjectByQuery)(l,i),s)return s.callback({query:l,history:r,se:a,searchType:i,prevSearchType:h,withAISearch:location.pathname.includes("keywords/search"),aiSearch:p},o.redirectOnType);(0,o.redirectOnType)(l,a,i)}},[r,e,a,h,p,x]);return(0,s.jsx)("span",{className:"last-queries__list-item ml15 link_text truncate",onClick:t||f,title:e,onKeyDown:e=>{"Enter"!==e.key&&32!==e.keyCode||(t?t(e):f(e))},tabIndex:0,role:"button","data-testid":"last-querie-item","data-autotest":`last-querie-item_${e}`,children:e})};var p=r(7935),x=r(62355),f=r(33666),y=r(77844),j=r.n(y),_=r(35372),g=r.n(_),v=r(91878);const b=e=>(j()(e)||g()(e))&&(0,v.hasHttpProtocol)(e),N=e=>!(j()(e)||g()(e)),w=e=>(j()(e)||g()(e))&&!(0,v.hasHttpProtocol)(e),T=e=>j()(e)||g()(e),k=()=>{};function A(e,t){return e.length>0?e:p.defaultSuggestedItems.filter(t)}function C(){const e=(0,n.useLocation)(),t=(0,x.getModuleByRoute)(e.pathname),{suggestedItems:r}=(0,p.useSuggestions)({onInput:k,onSubmit:k}),s=0===r.length?p.defaultSuggestedItems:r;return t===f.ANALYTICS&&e.pathname.includes("/keywords/")?A(s.filter(N),N):t===f.ANALYTICS&&e.pathname.includes("/domains/")?A(s.filter(w),w):t===f.ANALYTICS&&e.pathname.includes("/urls/")?A(s.filter(b),b):s.filter(T)}const I=({onClickItem:e})=>{const{t}=(0,a.useTranslation)("SearchForm"),r=C(),i=(r||[]).slice(0,3);return(null==r?void 0:r.length)?(0,s.jsxs)("div",{className:"last-queries df pt10 ",children:[(0,s.jsx)("p",{className:"last-queries__title",children:t("search_bar_latest_checks")}),(0,s.jsx)("div",{className:"last-queries__list list-unstyled",children:i.map(t=>(0,s.jsx)(h,{queryItem:t,onClickItem:e},`last-querie-${t}`))})]}):null}},1362(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>c});var s=r(74848),a=r(90780),i=r(34872),l=r(99821),n=r(46942),o=r.n(n);const c=({text:e,className:t,children:r,isSearchbar:n=!0})=>(0,s.jsx)(a.default,{className:o()("no-query",{[t]:t}),children:(0,s.jsxs)("div",{className:"df fdc aic p20 card_window_height no-query__card-content",children:[(0,s.jsx)("p",{className:"no-query__text",children:e}),n?(0,s.jsxs)("div",{className:"no-query__searchbar-wrapper",children:[(0,s.jsx)(i.default,{isNoQuery:!0}),(0,s.jsx)(l.LastQueries,{})]}):null,r]})})},61118(e,t,r){"use strict";r.r(t),r.d(t,{Figure6:()=>a});var s=r(83015);const a=(0,r(55263).withProps)({lightThemeSrc:r(88826).default,darkThemeSrc:r(70837).default})(s.Img)},22516(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>f});
1var s=r(74848),a=r(96540),i=r(96307),l=r(83015);const n=({closeBtn:e=!1,children:t,closeBtnColor:r="var(--text-link-white-bg)",img:n,imageWidth:o,imageHeight:c})=>{const[d,m]=(0,a.useState)(!0);return d?(0,s.jsxs)("div",{className:"marketing-banner",children:[e&&(0,s.jsx)(i.SvgSprite,{className:"marketing-banner__close",iconId:"close",style:{color:r},onClick:()=>{m(!1)}}),n&&(0,s.jsx)(l.Img,{lightThemeSrc:n.lightThemeSrc,darkThemeSrc:n.darkThemeSrc,width:o,height:c,alt:"Serpstat Banner",style:o&&{width:o}}),(0,s.jsx)("div",{className:"marketing-banner__content",children:t})]}):null};var o=r(32892),c=r(87714),d=r(46216),m=r(21552),u=r(68424),h=r(72681);const p=r(51777).default,x=r(72530).default,f=({type:e,showAnyway:t=!1})=>{const{t:r}=(0,m.useTranslation)("custom_report_banner"),a=(0,h.useLocation)(),i=(0,o.useSelector)(t=>{var r,s,a;return(null==(a=null==(s=null==(r=t.domainAnalisys)?void 0:r.overview)?void 0:s.keyPhrases)?void 0:a.total)>50&&"domain"===e}),l=(0,o.useSelector)(t=>{var r,s,a;return(null==(a=null==(s=null==(r=t.backlinksDashboard)?void 0:r.totalReport)?void 0:s.data)?void 0:a.referringDomains)>10&&"backlinks"===e});return i||l||t?(0,s.jsx)(n,{img:{lightThemeSrc:p,darkThemeSrc:x},closeBtn:!0,imageWidth:"288",imageHeight:"133",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h4",{className:"quick-report__caption",children:r("banner_title")}),(0,s.jsx)("p",{className:"quick-report__text",children:r("banner_text")}),(0,s.jsx)(d.default,{type:d.LinkType.REACT,to:{pathname:"/reports/",search:a.search},children:(0,s.jsx)(c.default,{buttonText:r("banner_link"),color:"green",onClick:u.default.createReport})})]})}):null}},24248(e,t,r){"use strict";r.r(t),r.d(t,{normalizeRegionsData:()=>a});var s=r(29526);const a=e=>e.map(e=>{const{serpType:t,seName:r,country:a,deviceType:i,region:l,id:n,city:o,langName:c}=e,d=[`${"ppc"===t?"PPC,":""} ${(0,s.formatFirstUppercase)(r)} ${(0,s.formatFirstUppercase)(a)}`,(0,s.formatFirstUppercase)(i)];return l&&(d.push(l),d.push(o),d.push(c)),{text:d.join(", "),value:n}})},36073(e,t,r){"use strict";r.r(t),r.d(t,{DomainAnalysisProjectSelect:()=>T});var s=r(74848),a=r(96540),i=r(86663),l=r(1882),n=r.n(l),o=r(87924),c=r(32892),d=r(21552),m=r(74619),u=r(51388),h=r(46942),p=r.n(h),x=Object.defineProperty,f=Object.defineProperties,y=Object.getOwnPropertyDescriptors,j=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,v=(e,t,r)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t)=>{for(var r in t||(t={}))_.call(t,r)&&v(e,r,t[r]);if(j)for(var r of j(t))g.call(t,r)&&v(e,r,t[r]);return e},N=(e,t)=>f(e,y(t));const w=["/urls/search/","/urls/ad/","/domains/search/","/domains/ad/"],T=({onSelect:e,clearQueryParams:t=!1})=>{const r=(0,c.useDispatch)(),{t:l}=(0,d.useTranslation)("Backlinks"),{query:h,search_type:x}=(0,c.useSelector)(e=>e.searchBar),f=(0,a.useMemo)(()=>h&&w.some(e=>{var t,r;return((null==(r=null==(t=o.default)?void 0:t.location)?void 0:r.pathname)||"").includes(e)}),[h]),y=(0,a.useCallback)(({value:s,domain:a})=>{const l=Number(s);r((0,u.setActiveProject)(l)),n()(e)&&e({value:s,domain:a});const c=t?{}:i.parse(o.default.location.search);o.default.push(N(b({},location),{search:i.stringify(N(b({},c),{query:a,project_id:l}))}))},[r,e,t]);return(0,s.jsx)(m.default,{needChangeLocation:!1,value:h,currentDomain:h,placeholder:l("allpages_projects_dropdown"),onSelect:y,isPrimaryVisibleCurrentDomain:!0,classNameTrigger:p()(x,f?"short":"long")})}},59272(e,t,r){"use strict";r.r(t),r.d(t,{DEFAULT_COLUMN_CLASSNAME:()=>s,SEARCH_TYPES:()=>a});const s="aic df jcfe",a={URL:"url",URL_PREFIX:"url_prefix",SUBDOMAINS:"subdomains",ROOT_DAMAINS:"root_domain",KEYWORD:"keyword"}},73783(e,t,r){"use strict";function s(e,t){var r;try{return(null==(r=t[e-1])?void 0:r.yAxis)||s(e-1,t)}catch(e){return 0}}function a(e,t){var r;try{return(null==(r=t[e+1])?void 0:r.yAxis)||a(e+1,t)}catch(e){return 0}}r.r(t),r.d(t,{getNextValue:()=>a,getPrevValue:()=>s})},59408(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>mo});var s=r(70595),a=r(74848),i=r(96540),l=r(78292),n=r(18492);function o({size:e=24}){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsxs)("g",{stroke:"#0C63F6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1",clipPath:"url(#clip0_9170_1053)",children:[(0,a.jsx)("path",{d:"M7.002 7V6a3 3 0 013-3h8a3 3 0 013 3v8a3 3 0 01-3 3h-1"}),(0,a.jsx)("path",{d:"M3 10.111v7.778A3.111 3.111 0 006.111 21h7.778A3.111 3.111 0 0017 17.889V10.11A3.111 3.111 0 0013.889 7H6.11A3.111 3.111 0 003 10.111zM7.998 16l4-4"}),(0,a.jsx)("path",{d:"M7.998 12h4v4"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_9170_1053",children:(0,a.jsx)("path",{fill:"#fff",d:"M0 0H24V24H0z"})})})]})}const c=o;var d=r(32892),m=r(13775);const u=function(){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{fill:"#7E858E",d:"M12.65 17.6a.85.85 0 11-1.7 0 .85.85 0 011.7 0z"}),(0,a.jsx)("path",{fill:"#7E858E",fillRule:"evenodd",d:"M11.8 11.65a.85.85 0 00-.85.85.85.85 0 11-1.7 0 2.55 2.55 0 015.1 0c0 .556-.16 1.01-.418 1.381-.242.35-.55.59
1-.775.757l-.16.12a2.31 2.31 0 00-.314.252.314.314 0 00-.033.04.85.85 0 01-1.7 0c0-.534.232-.927.498-1.208.19-.2.436-.38.605-.502l.09-.066c.2-.149.317-.254.393-.363a.667.667 0 00.114-.412.85.85 0 00-.85-.85z",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:"#7E858E",fillRule:"evenodd",d:"M5.85 5.7c.47 0 .85.38.85.85v12.112c0 .352.285.637.638.637H16.9V8.25a.85.85 0 111.7 0V19.3a1.7 1.7 0 01-1.7 1.7H7.338A2.337 2.337 0 015 18.662V6.549c0-.47.38-.85.85-.85z",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:"#7E858E",d:"M17.75 9.1H7.55A2.553 2.553 0 015 6.55 2.553 2.553 0 017.55 4h10.2a.85.85 0 01.426 1.585c-.028.02-.426.299-.426.965 0 .687.422.962.426.965A.85.85 0 0117.75 9.1zM7.55 5.7a.851.851 0 000 1.7h8.616a3.092 3.092 0 01-.116-.85c0-.311.043-.595.116-.85H7.55z"})]})},h=()=>{const{t:e}=(0,n.useTranslation)("summary"),[t="https://serpstat.com/tutorial/"]=(0,m.useGetHowToLink)();return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("a",{className:"df aic mr10",href:t,target:"_blank",rel:"noreferrer","data-autotest":"manual",children:[(0,a.jsx)(u,{}),(0,a.jsx)("span",{className:"ml5 ff-Inter fw-500 color_grey fz14",children:e("summary::manual_btn")})]})})};var p=r(96307);const x=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("a",{className:"df aic mr10",href:"https://forms.gle/Pv44uJ8VXj31d6jw5",target:"_blank",rel:"noreferrer","data-autotest":"feedback",children:[(0,a.jsx)(p.default,{className:"mr5 fz20",iconId:"chat_msg"}),(0,a.jsx)("span",{className:"ff-Inter fw-500 color_grey fz14",children:e("summary::feedback_btn")})]})})};var f=r(55610),y=r(72681);const j=()=>{const{t:e}=(0,n.useTranslation)("summary"),{search:t}=(0,y.useLocation)(),r=`/domains/prev-index/${t}`;return(0,a.jsxs)(f.Link,{to:r,rel:"noreferrer",className:"df aic mr10","data-autotest":"prev-report",children:[(0,a.jsx)(p.default,{className:"mr5 fz20",iconId:"history"}),(0,a.jsx)("span",{className:"ff-Inter fw-500 color_grey fz14",children:e("summary::prev_report_btn")})]})};var _=r(55731);const g="summaryHeader___jOlw5",v="reportInfo___FAqDO",b="reportActions___c2u5O",N="headerButtons___RR0fC";var w=r(74619),T=r(51388),k=r(87924),A=r(86673),C=r(86663),I=r(88612),D=r(35372),P=r.n(D),O=r(77844),z=r.n(O);const S="container____1wTZ",L="button___ZJGAm",M="buttonIcon____aFnE",E="newTip___uHDel",R="badge___uJBwt",B="buttonText___imzPS",F="buttonActive___PIUoq",V="modal___IJjvN",U="commonInsightsDescription___UNVIN",q="modalGradient___fq3oM",H="closeButton___ArBkF",Y="modalDefault___DCpO7",$="modalHeader___ckxbN",G="modalTitle___NQiIa",K="modalContent___cmRDS",W="modalFooter___lYk0H",Z="badgeRound___gf1lK",Q="loaderContainer___a79Ft",X="summaryContainer___ksi9s",J="noDataContainer___hq_4s",ee="summaryRow___GM0RL",te="summaryValue___qWIhD",re="changeValueNegative___Fb3Wq",se="changeValuePositive___WiWtC",ae="arrowIcon___raLE3",ie="grayLight___femIf",le="greenLight___vkVmN",ne="yellowLight___KQtcG",oe="redLight____96w6",ce="initialPopupButton___D06rs",de="footerLink___Fj2ZB";var me=r(31299),ue=r(10018),he=r(7935),pe=r(91878),xe=r(62355),fe=r(91470),ye=r(55638),je=r(28314),_e=r(33666),ge=r(79611),ve=r(4978);const be="detailsModalOverlay___XXaFI",Ne="detailsModal___GobGU",we="detailsModalHeader___eLM5Y",Te="detailsModalCloseButton___Tt0DE",ke="detailsModalContent___NBS2G",Ae="loaderContainer___s5MQr",Ce="cardRead___puzFf",Ie="InsightCard___Oi223",De="card___gsH0D",Pe="cardTitleHeader___Mo6nZ",Oe="grayLight___R0A7A",ze="greenLight___ASSGB",Se="yellowLight___EAJ3B",Le="redLight___uxuuF",Me="titleContent___lCVal",Ee="titleText___oDHVV",Re="countryFlag___qxwP4",Be="typeIndicator___oujzb",Fe="typeIndicatorCritical___okuLe",Ve="typeIndicatorMedium___icVEt",Ue="typeIndicatorLow___Gjubu",qe="typeIndicatorNeutral___i_2CS",He="cardCritical___ThiHf",Ye="cardMedium____ZrU5",$e="cardLow___ZHnSb",Ge="cardNeutral___wwcBy",Ke="cardBody___E85mF",We="values___ScYpn",Ze="valueLabel___r1cO9",Qe="value___B9duz",Xe="cardFooter___O3UyJ",Je="impactLabel___i443D",et="changeValuePositive___Oyben",tt="changeValueNegative___UrZyu";var rt=r(29526);const st=e=>0!==e?`${e>0?"+":""}${(0,rt.formatNumberLetter)(Number(e.toFixed(2)))}%`:"\u2014",at=({insight:e})=>{const{t}=(0,n.useTranslation)(["insights","searchPlatform"]),r=t(`searchPlatform::se_${e.country}`);return(0,a.jsx)("div",{className:`${Ie} ${"1"===e.status?Ce:""}`,children:(0,a.jsxs)("div",{className:`${De} ${"1"===e.signalType?He:"2"===e.signalType?Ye:"3"===e.signalType?$e:Ge}`,children:[(0,a.jsxs)("div",{className:Pe,children:[(0,a.jsxs)("div",{className:Me,children:[(0,a.jsx)("div",{className:"1"===e.signalType?Le:"2"===e.signalType?Se:"3"===e.signalType?ze:Oe}),(0,a.jsxs)("span",{className:Ee,children:[(0,rt.formatDate)(null==e?void 0:e.date,void 0,!0)," \u2014 ",(0,a.jsx)("i",{className:`flag_${e.country} ${Re}`}),r," \u2014 ","traff"===e.metric&&"1"===e.signalType?t("critical_traff_card_t
1itle"):"traff"===e.metric&&"3"===e.signalType?t("low_traff_card_title"):"keywords"===e.metric&&"2"===e.signalType?t("medium_keywords_card_title"):"keywords"===e.metric&&"3"===e.signalType?t("low_keywords_card_title"):"visible_static"===e.metric&&"2"===e.signalType?t("medium_visible_static_card_title"):"visible_static"===e.metric&&"3"===e.signalType?t("low_visible_static_card_title"):t("default_card_title")]})]}),(0,a.jsx)("div",{className:`${Be} ${"1"===e.signalType?Fe:"2"===e.signalType?Ve:"3"===e.signalType?Ue:qe}`,children:t("1"===e.signalType?"critical":"2"===e.signalType?"medium":"low")})]}),(0,a.jsx)("div",{className:Ke,children:(0,a.jsxs)("div",{className:We,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:Ze,children:t("prev_value")}),(0,a.jsx)("div",{className:Qe,children:(0,rt.formatNumberLetter)(e.prev_value)})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:Ze,children:t("change")}),(0,a.jsxs)("div",{className:e.dynamicPercent<0?tt:e.dynamicPercent>0?et:"",children:[(s=e.anomalyValue,`${s>0?"+":""}${(0,rt.formatNumberLetter)(Number(s.toFixed(2)))}`)," (",st(e.dynamicPercent),")",(0,a.jsx)(p.default,{iconId:e.dynamicPercent<0?"arrow_down":"arrow_up"})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:Ze,children:t("current_value")}),(0,a.jsx)("div",{className:Qe,children:(0,rt.formatNumberLetter)(e.value)})]})]})}),(0,a.jsxs)("div",{className:Xe,children:[(0,a.jsx)("span",{className:Je,children:t("impact")}),(0,a.jsx)("span",{children:"traff"===e.metric&&"1"===e.signalType?t("critical_traff_card_tip"):"traff"===e.metric&&"3"===e.signalType?t("low_traff_card_tip"):"keywords"===e.metric&&"2"===e.signalType?t("medium_keywords_card_tip"):"keywords"===e.metric&&"3"===e.signalType?t("low_keywords_card_tip"):"visible_static"===e.metric&&"2"===e.signalType?t("medium_visible_static_card_tip"):"visible_static"===e.metric&&"3"===e.signalType?t("low_visible_static_card_tip"):t("default_card_tip")})]})]})});var s},it=({onClose:e,insights:t,domain:r,onLoadMore:s,isLoadingMore:l,hasMorePages:o,onScrolledToEnd:c})=>{const{t:d}=(0,n.useTranslation)("insights"),m=(0,i.useRef)(null),u=(0,i.useRef)(!1);(0,i.useEffect)(()=>{u.current=!1},[t.length]),(0,i.useEffect)(()=>{if(u.current||o||!t.length)return;const e=m.current;if(!e)return;e.scrollHeight<=e.clientHeight&&(u.current=!0,c())},[t.length,o,c]);const h=(0,i.useCallback)(()=>{const e=m.current;if(!e)return;const{scrollTop:t,scrollHeight:r,clientHeight:a}=e,i=t+a>=r-50;i&&o&&!l&&s(),!i||o||u.current||(u.current=!0,c())},[o,l,s,c]);return(0,a.jsx)("div",{className:be,children:(0,a.jsxs)("div",{className:Ne,children:[(0,a.jsxs)("div",{className:we,children:[(0,a.jsx)("h4",{children:`${d("insights::details_title")} \u2014 ${r}`}),(0,a.jsx)("button",{type:"button",className:Te,onClick:e,"aria-label":"Close modal",children:(0,a.jsx)(p.default,{iconId:"close"})})]}),(0,a.jsxs)("div",{ref:m,className:ke,onScroll:h,children:[null==t?void 0:t.map(e=>(0,a.jsx)(at,{insight:e},e.id)),l&&(0,a.jsx)("div",{className:Ae,children:(0,a.jsx)(ve.SmallLoader,{})})]})]})})},lt=[29,44,145,289];var nt=Object.defineProperty,ot=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ht=(e,t,r)=>t in e?nt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const pt=()=>{var e;const{t}=(0,n.useTranslation)("insights"),r=(0,d.useDispatch)(),s=(0,y.useLocation)(),l=(0,xe.getModuleByRoute)(s.pathname),[o,c]=(0,i.useState)(!1),[m,u]=(0,i.useState)(!1),[h,x]=(0,i.useState)(!1),[j,_]=(0,i.useState)(!1),[g,v]=(0,i.useState)([]),[b,N]=(0,i.useState)(1),[w,T]=(0,i.useState)(!1),[k,A]=(0,i.useState)(null),C=(0,d.useSelector)(he.projectDomainSelector),{query:I}=(0,d.useSelector)(e=>e.searchBar),{planId:D,isTrialActivationAvailable:O,userManagement:be}=(0,d.useSelector)(e=>{var t;return null==(t=e.userData)?void 0:t.basicInfo})||{},{projects:Ne}=(0,d.useSelector)(e=>{var t;return null==(t=e.userData)?void 0:t.userLimits})||{},{group_id:we}=(0,d.useSelector)(e=>{var t,r;
1return null==(r=null==(t=e.userData)?void 0:t.payDetails)?void 0:r.user})||{},{activeProject:{projectId:Te}}=(0,d.useSelector)(e=>null==e?void 0:e.projects),ke=(0,je.usePrevious)(Te),{callProcedure:Ae,data:Ce,loading:Ie,clear:De}=(0,ge.useLazyProcedure)("notification.getDomainAnomalySummary"),{callProcedure:Pe,data:Oe,loading:ze,clear:Se}=(0,ge.useLazyProcedure)("notification.getAnomalyNotification"),{callProcedure:Le}=(0,ge.useLazyProcedure)("notification.markAsReadByIds"),Me=Number(null!=(e=null!=k?k:null==Ce?void 0:Ce.active)?e:"0");(0,i.useEffect)(()=>{Ce&&Me>0&&c(!0)},[Ce,Me]);const Ee=(0,i.useMemo)(()=>!(!z()(I)&&!P()(I))&&((0,pe.hasHttpProtocol)(I)?new URL(I).hostname:I),[I]),Re=(0,i.useMemo)(()=>C.includes(Ee),[C,Ee]),Be=(0,i.useMemo)(()=>({domain:Ee,name:Ee}),[Ee]),Fe=(0,i.useCallback)(e=>({id:t})=>{r((0,fe.getProjectsRequest)({forceUpdate:!0})),ye.dashbordCache.reset(),t&&e(),_(!1)},[r]),Ve=(0,i.useCallback)(({buttonText:e,isDisabled:t,onClick:r})=>(0,a.jsx)(me.Button,{"data-autotest":"create-project create-button",buttonText:e,isDisabled:t,isLoad:j,onClick:()=>{_(!0),r()}}),[j]),Ue=e=>{var t;null==(t=window.dataLayer)||t.push({event:"gtmUaEvent",eventCategory:"global",eventAction:"insights",eventLabel:e,eventValue:void 0,eventNonInteraction:"false"})},qe=()=>{const e=!o;e&&Te&&Ce&&(A(null),N(1),v([]),Ae({projectId:Te}),Pe({projectId:Te,type:1,page:1})),c(e)},He=()=>{Ue("insight_click"),c(!1),x(!0)};(0,i.useEffect)(()=>{Te&&Te!==ke&&(v([]),N(1),A(null),Ae({projectId:Te}),Pe({projectId:Te,type:1,page:1})),Te||Te===ke||(De(),Se(),v([]),N(1),A(null))},[Pe,Ae,ke,Te,Se,De]),(0,i.useEffect)(()=>{Oe&&(null==Oe?void 0:Oe.length)>0&&(v(1===b?Oe:e=>{const t=new Set(e.map(e=>e.id)),r=null==Oe?void 0:Oe.filter(e=>!t.has(e.id));return[...e,...r]}),T(!1))},[Oe,b]);const Ye=(0,i.useMemo)(()=>(null==Ce?void 0:Ce.total)?Math.ceil(Number(null==Ce?void 0:Ce.total)/10):1,[null==Ce?void 0:Ce.total]),$e=(0,i.useMemo)(()=>b<Ye,[b,Ye]),Ge=(0,i.useCallback)(()=>{if(w||!$e||!Te)return;const e=b+1;T(!0),N(e),Pe({projectId:Te,type:1,page:e})},[b,Pe,$e,w,Te]),Ke=(0,i.useCallback)(()=>{const e=g.filter(e=>"0"===e.status).map(e=>e.id);0!==e.length&&Le({ids:e}).then(()=>{A("0"),v(e=>e.map(e=>{return"0"===e.status?(t=((e,t)=>{for(var r in t||(t={}))mt.call(t,r)&&ht(e,r,t[r]);if(dt)for(var r of dt(t))ut.call(t,r)&&ht(e,r,t[r]);return e})({},e),ot(t,ct({status:"1"}))):e;var t}))})},[g,Le]),{needGetTrial:We,needUpgradePlan:Ze,needCreateProject:Qe}=(({planId:e,isTrialActivationAvailable:t,hasDomainInProjects:r,projectsLeft:s,groupId:a,isTeamMember:i})=>{const l=lt.includes(+(null!=a?a:0)),n=Number(null!=s?s:0)<=0,o="3"===e,c=o&&!!t&&(r||n);let d=o&&!t&&(r||n)||n||l;return o&&!t&&r&&(d=!0),!o&&r&&d&&(d=!1),d&&i&&(d=!1),c&&(d=!1),{needGetTrial:c,needUpgradePlan:d,needCreateProject:!d&&!c&&!r&&!n}})({planId:D,isTrialActivationAvailable:O,hasDomainInProjects:Re,projectsLeft:null==Ne?void 0:Ne.left,groupId:we,isTeamMember:null==be?void 0:be.isTeamMember}),Xe=Re&&(Qe||Ze||We),Je=(0,i.useMemo)(()=>t(Ze?"upgrade_plan_description":We?"get_trial_description":"create_project_description"),[We,Ze,t]),et=(0,i.useMemo)(()=>t(Ze?"upgrade_plan":We?"get_trial":"create_project"),[We,Ze,t]),tt=()=>{Ue("create_project_from_insight"),c(!1),u(!0)},rt=()=>{Ue("try_trial"),window.open("https://serpstat.com/uk/page/free-trial/","_blank")},at=()=>{Ue("upgrade_plan"),window.open("https://serpstat.com/ru/page/pricing-plans/","_blank")},nt=e=>"1"===e?oe:"2"===e?ne:"3"===e?le:ie,pt=e=>null==e?"":e<0?re:e>0?se:"",xt=(0,i.useMemo)(()=>{var e,r,s,a,i,l;if(!Ce)return[];return[{signalType:null==(e=Ce.traff)?void 0:e.signalType,label:t("insights::traffic_changed"),dynamicPercent:null==(r=Ce.traff)?void 0:r.dynamicPercent},{signalType:null==(s=Ce.visible_static)?void 0:s.signalType,label:t("insights::visibility_changed"),dynamicPercent:null==(a=Ce.visible_static)?void 0:a.dynamicPercent},{signalType:null==(i=Ce.keywords)?void 0:i.signalType,label:t("insights::positions_changed"),dynamicPercent:null==(l=Ce.keywords)?void 0:l.dynamicPercent}].sort((e,t)=>e.signalType||t.signalType?e.signalType?t.signalType?Number(e.signalType)-Number(t.signalType):-1:1:0)},[Ce,t]),ft=()=>(0,a.jsx)("div",{className:X,children:null==xt?void 0:xt.map(e=>{return t=e.signalType,r=e.label,s=e.dynamicPercent,(0,a.jsxs)("div",{className:ee,children:[(0,a.jsx)("div",{className:nt(t)}),(0,a.jsx)("span",{children:r}),(0,a.jsxs)("span",{className:`${te} ${pt(s)}`,children:[st(s||0),null!=s&&(0,a.jsx)(p.default,{iconId:s<0?"arrow_down":"arrow_up",className:ae})]})]});var t,r,s})});return(0,a.jsxs)("div",{className:S,children:[o?(0,a.jsxs)("button",{type:"button",className:`${L} ${o||h?F:""}`,onClick:qe,"data-autotest":"insights",children:[(0,a.jsx)(p.default,{iconId:"question_circle",className:M}),(0,a.jsx)("div",{className:B,children:t("summary::insights")}),Me>0&&(0,a.jsx)("span",{className:R,children:Me}
1),(0,a.jsx)("div",{className:E,children:"New"})]}):(0,a.jsx)(f.Tooltip,{tooltipText:t("insights::tooltip"),children:(0,a.jsxs)("button",{type:"button",className:`${L} ${o||h?F:""}`,onClick:qe,"data-autotest":"insights",children:[(0,a.jsx)(p.default,{iconId:"question_circle",className:M}),(0,a.jsx)("span",{className:B,children:t("summary::insights")}),Me>0&&(0,a.jsx)("span",{className:R,children:Me}),(0,a.jsx)("div",{className:E,children:"New"})]})}),o&&(0,a.jsxs)("div",{className:`${V} ${!Re||Qe||We||Ze?q:Y}`,children:[(0,a.jsxs)("div",{className:$,children:[(0,a.jsxs)("div",{className:G,children:[t("insights::title"),(0,a.jsx)("div",{className:E,children:"New"})]}),(0,a.jsx)("button",{type:"button",className:H,onClick:()=>{c(!1)},"aria-label":"Close modal",children:(0,a.jsx)(p.default,{iconId:"close"})})]}),(0,a.jsx)("div",{className:K,children:ze||Ie?(0,a.jsx)("div",{className:Q,children:(0,a.jsx)(ve.SmallLoader,{})}):!Re||Xe?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:U,children:Je}),(0,a.jsxs)("button",{type:"button",className:ce,onClick:We?rt:Ze?at:tt,children:[Qe?(0,a.jsx)(p.default,{className:"mr10 fz20",iconId:"plus"}):null,et]})]}):Re&&Ce&&!Xe?ft():(0,a.jsx)("div",{className:J,children:t("insights::no_data")})}),+(null==Ce?void 0:Ce.total)>0&&!We&&!Ze&&!Qe&&Re&&Ce&&Number(null==Ce?void 0:Ce.total)>0?(0,a.jsxs)("div",{className:W,children:[(0,a.jsx)("button",{type:"button",className:de,onClick:He,children:t("insights::view_details")}),Me>0&&(0,a.jsx)("span",{className:Z,children:Me})]}):null]}),m&&(0,a.jsx)(ue.default,{usePortal:!1,setOnMount:Be,destination:l===_e.PROJECT_LIST?"DASHBOARD":null,onCancelClick:()=>u(!1),onClose:()=>u(!1),createProjectCallback:Fe(()=>u(!1)),renderSubmitButton:Ve}),h&&(0,a.jsx)(it,{onClose:()=>{x(!1)},insights:g,domain:Ee,onLoadMore:Ge,isLoadingMore:w,hasMorePages:$e,onScrolledToEnd:Ke})]})};var xt=r(72794),ft=Object.defineProperty,yt=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,bt=(e,t,r)=>t in e?ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Nt=(e,t)=>{for(var r in t||(t={}))gt.call(t,r)&&bt(e,r,t[r]);if(_t)for(var r of _t(t))vt.call(t,r)&&bt(e,r,t[r]);return e},wt=(e,t)=>yt(e,jt(t));const Tt=({onExport:e,onSelectLogo:t})=>{const{t:r}=(0,n.useTranslation)(["summary","searchPlatform"]),{query:s}=(0,d.useSelector)(e=>e.searchBar),{flag:l,title_key:o}=(0,d.useSelector)(e=>e.searchForm.selectSE||{}),m=(0,i.useCallback)(({value:e,domain:t})=>{const r=Number(e);(0,A.dispatch)((0,T.setActiveProject)(r));const s=C.parse(k.default.location.search);k.default.push(wt(Nt({},location),{search:C.stringify(wt(Nt({},s),{query:t,project_id:r}))}))},[]);return(0,a.jsxs)("div",{className:g,"data-autotest":"summary-header",children:[(0,a.jsx)("div",{className:b,children:(0,a.jsxs)("div",{className:N,children:[(0,a.jsx)(j,{}),(0,a.jsx)(pt,{}),(0,a.jsx)(x,{}),(0,a.jsx)(h,{}),(0,a.jsx)(I.default,{}),(0,a.jsx)(_.default,{formats:[{name:"pdf"}],isPartialExportAvailable:!1,onExport:e,onSelectLogo:t,"data-autotest":"export"}),(0,a.jsx)(xt.ApiMcpButton,{})]})}),(0,a.jsxs)("div",{className:v,children:[(0,a.jsx)("img",{className:"db mr15",width:"22",height:"22",src:`https://www.google.com/s2/favicons?domain=${s}`,alt:`Favican for ${s}`}),(0,a.jsxs)("h3",{className:"fz24 strong",children:[r("summary::title"),":"]}),(0,a.jsx)("h3",{className:"fz20 strong mr10",children:(0,a.jsx)(w.default,{needChangeLocation:!1,value:s,currentDomain:s,placeholder:r("allpages_projects_dropdown"),onSelect:m,isPrimaryVisibleCurrentDomain:!0})}),(0,a.jsx)("a",{href:`//${s}`,target:"_blank",rel:"noreferrer",children:(0,a.jsx)(c,{})}),(0,a.jsxs)("span",{className:"fz16 medium",children:[(0,a.jsx)("i",{className:`flag_${l} mr5`}),r(`searchPlatform::${o}`)]})]})]})};var kt=r(4104),At=r(67510),Ct=r(4729),It=r(58783),Dt=r(83759),Pt=r(99995),Ot=r(7350);const zt=r.n(Ot)()(()=>{(0,Dt.default)((0,Pt.triggerLimitsIsOverModal)(!0))},2e3),St=new At.Cache({ttl:5e4});function Lt(e){return t=this,r=null,s=function*(){var t;const r=Ct.default.get(Ct.ServiceName.STORE),{searchBar:s}=r.getState();return(0,kt.default)("limits.loadPage",{query:null==(t=s.query)?void 0:t.toLowerCase(),searchEngine:s.se,searchType:s.search_type,context:"https://serpstat.com/domains/index/",useCache:St}).then(t=>(e.headers.hash=t,delete e.interceptor,e)).catch(t=>
1{if(t.code===It.LIMITS_ERROR){zt(),delete e.interceptor;const t=new AbortController;return t.abort(),e.signal=t.signal,e}return Promise.reject(t)})},new Promise((e,a)=>{var i=e=>{try{n(s.next(e))}catch(e){a(e)}},l=e=>{try{n(s.throw(e))}catch(e){a(e)}},n=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,l);n((s=s.apply(t,r)).next())});var t,r,s}const Mt=e=>e.replace(/^\/|\/$/g,"").split("/").join(" / "),Et=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)(f.Card,{className:"p16 ff-Inter",rounded:!0,children:[(0,a.jsx)("h4",{className:"fz18 mb16",children:e("market_research_title")}),(0,a.jsx)("div",{className:"fz16 color_grey mb10",children:e("market_research_country_rank")}),(0,a.jsxs)("div",{className:"df aic lh2 jcsb",children:[(0,a.jsx)("div",{style:{width:110,height:24},children:(0,a.jsxs)(ve.Placeholder,{width:110,height:24,children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"11"}),(0,a.jsx)("rect",{x:"35",y:"1",rx:"4",ry:"4",width:"70",height:"23"})]})}),(0,a.jsx)("div",{style:{width:162,height:34},children:(0,a.jsx)(ve.Placeholder,{width:162,height:34,children:(0,a.jsx)("rect",{x:"2",y:"2",rx:"4",ry:"4",width:"160",height:"33"})})})]}),(0,a.jsx)("hr",{className:"mb16 mt16"}),(0,a.jsx)("div",{className:"fz16 color_grey mb10",children:e("market_industry_rank")}),(0,a.jsxs)("div",{className:"df aic lh2 jcsb",children:[(0,a.jsx)("div",{style:{width:208,he
1ight:20},children:(0,a.jsx)(ve.Placeholder,{width:208,height:20,children:(0,a.jsx)("rect",{x:"1",y:"1",rx:"4",ry:"4",width:"205",height:"19"})})}),(0,a.jsx)("div",{style:{width:162,height:34},children:(0,a.jsx)(ve.Placeholder,{width:162,height:34,children:(0,a.jsx)("rect",{x:"2",y:"2",rx:"4",ry:"4",width:"160",height:"33"})})})]})]})},Rt={position:"--",categoryRank:[{category_name:"No industry data ",category_id:".",rank:"--"}]},Bt=(e,t,r)=>s=>{const a="string"===typeof s?JSON.parse(s):s;try{if(e(a)){const e=new CustomEvent("summary.noHaveData",{detail:{methodName:t}});document.dispatchEvent(e),(null==r?void 0:r.length)&&r.forEach(e=>{if(e!==t){const t=new CustomEvent("summary.noHaveData",{detail:{methodName:e}});document.dispatchEvent(t)}})}}catch(e){console.error(e)}return a},Ft=()=>{const{t:e}=(0,n.useTranslation)(["summary","searchPlatform"]),{query:t,se:r}=(0,d.useSelector)(e=>e.searchBar),{flag:s,title_key:l}=(0,d.useSelector)(e=>e.searchForm.selectSE||{}),{data:o,loading:c}=(0,je.useProcedure)(["domainRating.getDomainRank",{domain:null==t?void 0:t.toLowerCase(),se:r,useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>null===e.result.categoryRank&&(null===e.result.position||0===Number(e.result.position)),"domainRating.getDomainRank")]}],[t,r]),[m]=(0,i.useMemo)(()=>{var e;return"#N/A"===(null==(e=((null==o?void 0:o.categoryRank)||{})[0])?void 0:e.category_name)&&(o.categoryRank[0].category_name="No industry data"),(null==o?void 0:o.categoryRank)||Rt.categoryRank},[o]);return!c&&r&&t?(0,a.jsxs)(f.Card,{className:"p16 ff-Inter",rounded:!0,children:[(0,a.jsx)("h4",{className:"fz18 mb16",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:e("market_research_title_tooltip"),children:e("market_research_title")})}),(0,a.jsx)("div",{className:"fz16 color_grey mb10",children:e("market_research_country_rank")}),(0,a.jsxs)("div",{className:"df aic lh2",children:[(0,a.jsx)("i",{className:`flag_${s} mr5`}),(0,a.jsx)(f.Link,{to:(0,y.generatePath)("/market-research/?categoryId=.&domain=:query&page=1&pageSize=20&se=:se",{se:r,query:t}),className:"ml5 link_text fz16 underline",children:e(`searchPlatform::${l}`)}),(0,a.jsx)("span",{className:"fz28 ml-auto normal lh-normal",children:(null==o?void 0:o.position)&&0!==Number(o.position)?`#${(0,rt.formatThousands)(Number(o.position))}`:Rt.position})]}),(0,a.jsx)("hr",{className:"mb16 mt16"}),(0,a.jsx)("div",{className:"fz16 color_grey mb10",children:e("market_industry_rank")}),(0,a.jsxs)("div",{className:"df aic lh2",children:[(0,a.jsx)(f.Link,{to:(0,y.generatePath)("/market-research/?categoryId=:categoryId&domain=:query&page=1&pageSize=20&se=:se",{se:r,query:t,categoryId:m.category_id}),className:"link_text fz16 underline truncate mr5",title:Mt(m.category_name),children:Mt(m.category_name)}),(0,a.jsx)("span",{className:"fz28 ml-auto normal lh-normal",children:m.rank&&0!==Number(m.rank)&&"--"!==m.rank?`#${(0,rt.formatThousands)(Number(m.rank))}`:Rt.categoryRank[0].rank})]})]}):(0,a.jsx)(Et,{})};var Vt=r(36281),Ut=r(72561),qt=r(72050),Ht=Object.defineProperty,Yt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Zt=(e,t,r)=>t in e?Ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qt=(e,t)=>{for(var r in t||(t={}))Kt.call(t,r)&&Zt(e,r,t[r]);if(Gt)for(var r of Gt(t))Wt.call(t,r)&&Zt(e,r,t[r]);return e};const Xt={cx:98.5,cy:105,dataKey:"value",endAngle:3,innerRadius:93,outerRadius:99,startAngle:177,stroke:"none"},Jt=({isLoading:e,percent:t,color:r,label:s})=>{const i=[{name:"A",value:e?60:t,color:e?"var(--skeleton-color)":r},{name:"B",value:100-(e?60:t),color:"#EBEFF4"}];return(0,a.jsxs)("div",{className:"half-donut-chart dib",children:[(0,a.jsx)(Vt.PieChart,{width:217,height:105,tabIndex:-1,children:(0,a.jsx)(Ut.Pie,(l=Qt({dataKey:"value",data:i},Xt),n={children:i.map(e=>(0,a.jsx)(qt.Cell,{fill:e.color},`cell-${e.name}`))},Yt(l,$t(n))))}),(0,a.jsx)("div",{className:"half-donut-chart__label fz30 ff-Inter normal",children:e?(0,a.jsx)("div",{style:{width:56,height:64},children:(0,a.jsxs)(ve.Placeholder,{width:56,height:64,children:[(0,a.jsx)("rect",{x:"8",y:"50",rx:"0",ry:"0",width:"40",height:"14"}),(0,a.jsx)("rect",{x:"12",y:"10",rx:"0",ry:"0",width:"30",height:"33"})]})}):s||t})]});var l,n},er=["#EC3D4C","#EC3D4C","#EC3D4C","#FABF27","#FABF27","#FABF27","#FA9927","#17B26A","#17B26A","#17B26A","#17B26A","#17B26A"],tr=e=>er[Math.round(e/100*10)]||er[0];var rr=r(47159);const sr=()=>{const{t:e}=(0,n.useTranslation)("summary"),{query:t,se:r,search_type:s}=(0,d.useSelector)(e=>e.searchBar),{data:i,loading:l}=(0,je.useProcedure)(["domains.getMainMetrics",{query:null==t?void 0:t.toLowerCase(),searchType:s,searchEngine:r,useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>{var t;return 0===(null==(t=e.result)?void 0:t.length)},"domains.getMainMetrics")]}],[t,r,s]),o=tr(null==i?void 0:i.visibilityScore);return(0,a.jsx)("div",{className:"df jcc",children:(0,a.jsxs)("div",{className:"ff-Inter",children:[(0,a.jsx)("h4",{className:"fz18 mb10",children:(0,a.jsxs)(f.Tooltip,{theme:"new",tooltipText:e("visibility_score_title_tooltip"),classNameTrigger:"df aic",children:[e("visibility_score_title"),
1(0,a.jsx)(rr.default,{value:"New",className:"aside_note aside_note--new"})]})}),(0,a.jsx)(Jt,{isLoading:l,percent:(null==i?void 0:i.visibilityScore)>1?Math.round(null==i?void 0:i.visibilityScore):(null==i?void 0:i.visibilityScore)||0,color:o,label:null===(null==i?void 0:i.visibilityScore)?(0,a.jsxs)("div",{className:"df fdc aic",style:{transform:"translateY(26px)"},children:[(0,a.jsx)("span",{className:"mb15",children:"--%"}),(0,a.jsx)("span",{style:{color:"#D6DEE9"},className:"uppercase color_grey fz12",children:e("summary::no_score")})]}):void 0})]})})};const ar=function({size:e=16,className:t=""}){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"none",viewBox:"0 0 16 17",className:t,children:[(0,a.jsx)("path",{stroke:"#636D7B",d:"M8 1.116l-.002.008a7.389 7.389 0 00-6.757 4.423.07.07 0 01-.036.033.05.05 0 01-.04 0 .072.072 0 01-.04-.038.045.045 0 01.001-.038h0l.002-.005A7.484 7.484 0 018 1c4.137 0 7.5 3.356 7.5 7.5 0 4.137-3.363 7.5-7.5 7.5A7.502 7.502 0 01.5 8.5c0-.022.008-.035.015-.043.008-.007.021-.015.043-.015.033 0 .058.026.058.058A7.387 7.387 0 008 15.884c4.072 0 7.384-3.313 7.384-7.384A7.387 7.387 0 008 1.116z"}),(0,a.jsx)("path",{stroke:"#636D7B",d:"M5.593 3.336l.047.047c-.529 1.238-.84 2.862-.84 4.638 0 1.937.37 3.692.98 4.962.303.631.657 1.142 1.052 1.488.394.345.792.508 1.176.508.377 0 .785-.163 1.181-.519.39-.35.743-.857 1.054-1.486h0l.003-.006c.609-1.276.98-3.03.98-4.968 0-1.946-.38-3.7-.99-4.97h.001l-.002-.002c-.31-.636-.664-1.146-1.059-1.492h0c-.4-.35-.798-.516-1.184-.516-.375 0-.782.149-1.185.509-.405.347-.76.86-1.06 1.488l-.154.319zm.65-1.482l.032.026.322-.287C7 1.233 7.482 1 8.025 1c.537 0 1.02.228 1.431.589.405.355.771.874 1.07 1.496C11.125 4.34 11.5 6.08 11.5 8s-.375 3.658-.98 4.911c-.311.63-.669 1.146-1.077 1.497h0c-.416.359-.9.592-1.443.592s-1.026-.233-1.44-.596c-.413-.363-.78-.881-1.078-1.504h0C4.875 11.639 4.5 9.899 4.5 7.979c0-1.929.368-3.668.973-4.92h0l.002-.003a5.13 5.13 0 01.768-1.202z"}),(0,a.jsx)("path",{fill:"#636D7B",fillRule:"evenodd",d:"M1 5c0-.28.25-.5.568-.5h12.864c.31 0 .568.22.568.5 0 .273-.257.5-.568.5H1.568C1.25 5.5 1 5.273 1 5zM1 11c0-.28.25-.5.568-.5h12.864c.31 0 .568.22.568.5 0 .273-.257.5-.568.5H1.568C1.25 11.5 1 11.273 1 11z",clipRule:"evenodd"})]})},ir=({data:e,loading:t})=>{const{t:r}=(0,n.useTranslation)("summary"),s=tr(null==e?void 0:e.domainRank);return(0,a.jsx)("div",{className:"df jcc",children:(0,a.jsxs)("div",{className:"ff-Inter",children:[(0,a.jsx)("h4",{className:"fz18 mb10 df",children:(0,a.jsxs)(f.Tooltip,{theme:"new",tooltipText:r("sdr_score_title_tooltip"),children:[r("sdr_score_title"),(0,a.jsx)(ar,{className:"ml5"})]})}),(0,a.jsx)(Jt,{isLoading:t,percent:(null==e?void 0:e.domainRank)||0,color:s,label:null===(null==e?void 0:e.domainRank)?(0,a.jsxs)("div",{className:"df fdc aic",style:{transform:"translateY(26px)"},children:[(0,a.jsx)("span",{className:"mb15",children:"--%"}),(0,a.jsx)("span",{style:{color:"#D6DEE9"},className:"uppercase color_grey fz12",children:r("summary::no_score")})]}):void 0})]})})};var lr=r(68154),nr=r(31071),or=r(21630);const cr=["#EC3D4C","#FA9927","#51A9FD"],dr=({data:e,label:t})=>(0,a.jsxs)("div",{className:"chart-pie",style:{width:215},children:[(0,a.jsx)(Vt.PieChart,{width:215,height:215,tabIndex:-1,children:(0,a.jsx)(Ut.Pie,{data:e,cx:103,cy:103,innerRadius:97.5,outerRadius:107.5,fill:"#8884d8",paddingAngle:e.length>1?4:0,dataKey:"value",stroke:"none",children:e.map((e,t)=>(0,a.jsx)(qt.Cell,{fill:e.color||cr[t%cr.length]},`cell-${t}`))})}),(0,a.jsx)("div",{className:"chart-pie__label fz36 ff-Inter normal tac df fdc aic",children:t})]});var mr=r(46942),ur=r.n(mr);const hr="InfoRowV2___Run8Z",pr="name___k4YTw",xr="value___GNG89",fr="dynamic___dlTbG",yr=({fill:e="#EC3D4C"})=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"22",fill:"none",viewBox:"0 0 21 22",className:"mr10",children:(0,a.jsx)("circle",{cx:"10",cy:"10.5",r:"8",fill:e})}),jr=({children:e})=>(0,a.jsx)("span",{className:"fz14 medium lh2",children:e}),_r=({children:e,dynamic:t,className:r,style:s,renderValue:i=e=>(0,a.jsx)("span",{className:"fz24 medium mr5 lh-normal",children:e})})=>(0,a.jsxs)("div",{className:ur()("df aic ml-auto",r),style:s,children:[i(e),Boolean(t)&&(0,a.jsxs)("span",{className:ur()("df aic fz12 medium",{color_green:t>0,color_red:t<0}),children:[t>0?`+${(0,rt.formatNumberLetter)(t)}`:`${(0,rt.formatNumberLetter)(t)}`,t>0?(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",fill:"none",viewBox:"0 0 13 13",children:(0,a.jsx)("path",{fill:"#17B26A",fillRule:"evenodd",d:"M5.925 2.2a.812.812 0 011.15 0l3.487 3.487-.791.792L7.06 3.77v7.606H5.94V3.768L3.23 6.48l-.792-.792L5.925 2.2z",clipRule:"evenodd"})}):(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",fill:"none",viewBox:"0 0 16 17",children:(0,a.jsx)("path",{fill:"#E15959",fillRule:"evenodd",d:"M8.707 13.793a1 1 0 01-1.414 0L3 9.5l.975-.975 3.336 3.337V2.5h1.378v9.362l3.336-3.337L13 9.5l-4.293 4.293z",clipRule:"evenodd"})})]})]}),gr=({children:e,className:t="",style:r})=>(0,a.jsx)("div",{className:ur()("df aic ff-Inter",t),style:r,children:e}),vr=({circleComponent:e,nameComponent:t,valueComponent:r})=>(0,a.jsxs)("div",{className:hr,children:[(0,a.jsxs)("div",{className:pr,children:[e,t]}),(0,a.jsx)("div",{className:xr,children:r})]});gr.Circle=yr,gr.Name=jr,gr.Value=_r,vr.Circle=yr,vr.Name=jr,vr.Value=_r,vr.ValueV2=({children:e,dynamic:t,renderValue:r=e=>(0,a.jsx)("span",{className:"fz24 medium mr5 lh-normal",children:e})})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:xr,children:r(e)}),Boolean(t)&&(0,a.jsx)("div",{className:fr,children:(0,a.jsxs)("span",{className:ur()("df aic fz12 medium",{color_green:t>0,color_red:t<0}),children:[t>0?`+${(0,rt.formatNumberLetter)(t)}`:`${(0,rt.formatNumberLetter)(t)}`,t>0?(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",fill:"none",viewBox:"0 0 13 13",children:(0,a.jsx)("path",{fill:"#17B26A",fillRule:"evenodd",d:"M5.925 2.2a.812.812 0 011.15 0l3.487 3.487-.791.792L7.06 3.77v7.606H5.94V3.768L3.23 6.48l-.792-.792L5.925 2.2z",clipRule:"evenodd"})}):(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",fill:"none",viewBox:"0 0 16 17",children:(0,a.jsx)("path",{fill:"#E15959",fillRule:"evenodd",d:"M8.707 13.793a1 1 0 01-1.414 0L3 9.5l.975-.975 3.336 3.337V2.5h1.378v9.362l3.336-3.337L13 9.5l-4.293 4.293z",clipRule:"evenodd"})})]})})]});const br=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsx)("h4",{className:"fz18 mb16 ff-Inter fw600",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:e("site_audit_title_tolltip"),children:e("site_audit_title")})})},Nr=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"ff-Inter",children:[(0,a.jsx)(br,{}),(0,a.jsxs)("div",{className:"df aic mb20",children:[(0,a.jsx)("div",{className:"mr40",children:(0,a.jsx)(dr,{data:[{name:"loading",value:120,color:"var(--skeleton-color)"}],label:(0,a.jsx)("div",{style:{width:70,height:64},children:(0,a.jsxs)(ve.Placeholder,{width:70,height:64,children:[(0,a.jsx)("rect",{x:"15",y:"2",rx:"4",ry:"4",width:"40",height:"40"}),(0,a.jsx)("rect",{x:"2",y:"50",rx:"4",ry:"4",width:"65",height:"14"})]})})})}),(0,a.jsxs)("div",{className:"fg1 pr20",children:[(0,a.jsx)("h5",{className:"fz16 medium ff-Inter mb15",children:e("site_audit_title_errors")}),(0,a.jsxs)(gr,{className:"mb10",children:[(0,a.jsx)(gr.Circle,{fill:"#EC3D4C"}),(0,a.jsx)(gr.Name,{children:e("site_audit_hight")}),(0,a.jsx)(gr.Value,{children:(0,a.jsx)("div",{style:{width:45,height:39},children:(0,a.jsx)(ve.Placeholder,{width:45,height:39,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"43",height:"35"})})})})]}),(0,a.jsxs)(gr,{className:"mb10",children:[(0,a.jsx)(gr.Circle,{fill:"#FA9927"}),(0,a.jsx)(gr.Name,{children:e("site_audit_medium")}),(0,a.jsx)(gr.Value,{children:(0,a.jsx)("div",{style:{width:72,height:39},children:(0,a.jsx)(ve.Placeholder,{width:72,height:39,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"70",height:"35"})})})})]}),(0,a.jsxs)(gr,{className:"mb10",children:[(0,a.jsx)(gr.Circle,{fill:"#51A9FD"}),(0,a.jsx)(gr.Name,{children:e("site_audit_low")}),(0,a.jsx)(gr.Value,{children:(0,a.jsx)("div",{style:{width:45,height:39},children:(0,a.jsx)(ve.Placeholder,{width:45,height:39,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"43",height:"35"})})})})]}),(0,a.jsx)(gr,{className:"br-md p10 pl20 pr20 mt30 mb20",style:{background:"var(--skeleton-color)",color:"var(--skeleton-color)"},children:(0,a.jsx)(gr.Name,{children:"Viruses"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{style:{width:106,height:22},children:(0,a.jsx)(ve.Placeholder,{width:106,height:22,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"104",height:"20"})})})})]})]}),(0,a.jsx)("div",{className:"fz13 normal color_grey",children:(0,a.jsx)("div",{style:{width:148,height:18},children:(0,a.jsx)(ve.Placeholder,{width:148,height:18,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"146",height:"16"})})})})]})},wr=()=>{const{activeProject:e}=(0,d.useSelector)(e=>e.projects),{query:t}=(0,d.useSelector)(e=>e.searchBar),{t:r}=(0,n.useTranslation)("summary"),s=(null==e?void 0:e.projectDomain)===t?(0,y.generatePath)("/audit/overview/:projectId/?start=true",{projectId:e.projectId}):`/audit/createProject?domain=${t}`;return(0,a.jsxs)("div",{className:"ff-Inter",children:[(0,a.jsx)(br,{}),(0,a.jsxs)("div",{className:"df aic mb20",children:[(0,a.jsxs)("div",{className:"mr40",style:{width:215},children:[(0,a.jsx)("div",{className:"fz14 mb5 medium",children:r("site_audit_no_data_title")}),(0,a.jsx)("p",{className:"mb15 color_grey",children:r("site_audit_no_data_desc")}),(0,a.jsx)(me.Button,{size:"md",className:"fz14-i",to:s,children:r("site_audit_start")})]}),(0,a.jsxs)("div",{className:"fg1 pr20",style:{opacity:.4,pointerEvents:"none"},children:[(0,a.jsx)("h5",{className:"fz16 medium ff-Inter mb15",children:r("site_audit_title_errors")}),(0,a.jsxs)(gr,{className:"mb10",children:[(0,a.jsx)(gr.Circle,{fill:"#EC3D4C"}),(0,a.jsx)(gr.Name,{children:r("site_audit_hight")}),(0,a.jsx)(gr.Value,{children:"--"})]}),(0,a.jsxs)(gr,{className:"mb10",children:[(0,a.jsx)(gr.Circle,{fill:"#FA9927"}),(0,a.jsx)(gr.Name,{children:r("site_audit_medium")}),(0,a.jsx)(gr.Value,{children:"--"})]}),(0,a.jsxs)(gr,{className:"mb10",children:[(0,a.jsx)(gr.Circle,{fill:"#51A9FD"}),(0,a.jsx)(gr.Name,{children:r("site_audit_low")}),(0,a.jsx)(gr.Value,{children:"--"})]}),(0,a.jsxs)(gr,{className:"br-md bg_red p10 pl20 pr20 mt30 mb20",children:[(0,a.jsx)(gr.Name,{children:r("site_audit_viruses")}),(0,a.jsx)(gr.Value,{className:"color-red",children:"-"})]}),(0,a.jsx)("div",{children:(0,a.jsxs)("a",{href:"#",className:"link_text df aic medium fz14",children:[r("site_audit_ditails"),(0,a.jsx)("svg",{className:"ml5",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:(0,a.jsx)("path",{fill:"#0C63F6",fillRule:"evenodd",d:"M13.293 7.293a1 1 0 010 1.414L9 13l-.975-.975 3.337-3.336H2V7.311h9.362L8.025 3.975 9 3l4.293 4.293z",clipRule:"evenodd"})})]})})]})]}),(0,a.jsx)("div",{className:"fz13 normal color_grey",children:(0,a.jsxs)("div",{className:"fz13 normal color_grey",children:[r("site_audit_last_craw")," l --"]})})]})},Tr=({size:e=16})=>(0,a.jsx)("svg",{className:"ml5",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"none",viewBox:"0 0 16 16",children:(0,a.jsx)("path",{fill:"#0C63F6",fillRule:"evenodd",d:"M13.293 7.293a1 1 0 010 1.414L9 13l-.975-.975 3.337-3.336H2V7.311h9.362L8.025 3.975 9 3l4.293 4.293z",clipRule:"evenodd"})}),kr=()=>{const e=(0,nr.useTheme)(),{t}=(0,n.useTranslation)(["summary"]),{activeProject:{projectId:r}}=(0,d.useSelector)(e=>e.projects),s=(0,je.usePrevious)(r),{callProcedure:l,clear:o,data:c,loading:m,error:u}=(0,ge.useLazyProcedure)("auditProjectReport.getList"),{callProcedure:h,clear:p,data:x,loading:j,error:_}=(0,ge.useLazyProcedure)("auditProjectReport.getBasicInfo"),{callProcedure:g,clear:v,data:b,loading:N,error:w}=(0,ge.useLazyProcedure)("auditProjectReport.getBasicInfo"),T=!!m||!!j||!!N,k=!!u||!!_||!!w,A=!(null==c?void 0:c.length)||!x;return(0,i.useEffect)(()=>{r!==s&&(o(),p(),v())},[v,o,p,s,r]),(0,i.useEffect)(()=>{!r||(null==c?void 0:c.length)||m||u||l({projectId:r,limit:2,offset:0,useCache:!0})},[l,c,r,T,m,u]),(0,i.useEffect)(()=>{var e,t;r&&(null==c?void 0:c.length)&&!m&&!u&&(x||j||_||h({reportId:null==(e=c[0])?void 0:e.reportId,useCache:!0}),!b&&(null==c?void 0:c.length)>1&&!N&&!w&&g({reportId:null==(t=c[1])?void 0:t.reportId,useCache:!0}))},[b,w,N,g,h,c,u,m,r,x,_,j]),T?(0,a.jsx)(Nr,{}):!r||A||k?(0,a.jsx)(wr,{}):(0,a.jsxs)("div",{className:"ff-Inter",children:[(0,a.jsx)(br,{}),(0,a.jsxs)("div",{className:"df aic mb20",children:[(0,a.jsx)("div",{className:"mr40",children:(0,a.jsx)(dr,{data:[{name:"highCount",value:null==x?void 0:x.highCount},{name:"mediumCount",value:null==x?void 0:x.mediumCount},{name:"lowCount",value:null==x?void 0:x.lowCount}],label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"lh-normal",children:null==x?void 0:x.sdo}),(0,a.jsx)("div",{className:"fz12",children:t("site_audit_sdo")})]})})}),(0,a.jsxs)("div",{className:"fg1 pr20",children:[(0,a.jsx)("h5",{className:"fz16 medium ff-Inter mb15",children:t("site_audit_title_errors")}),(0,a.jsx)(vr,{circleComponent:(0,a.jsx)(vr.Circle,{fill:"#EC3D4C"}),nameComponent:(0,a.jsx)(vr.Name,{children:t("site_audit_hight")}),valueComponent:(0,a.jsx)(vr.ValueV2,{dynamic:(null==x?void 0:x.highCount)-(null==b?void 0:b.highCount),children:(0,rt.formatNumberLetter)(null==x?void 0:x.highCount)})}),(0,a.jsx)(vr,{circleComponent:(0,a.jsx)(gr.Circle,{fill:"#FA9927"}),nameComponent:(0,a.jsx)(gr.Name,{children:t("site_audit_medium")}),valueComponent:(0,a.jsx)(vr.ValueV2,{dynamic:(null==x?void 0:x.mediumCount)-(null==b?void 0:b.mediumCount),children:(0,rt.formatNumberLetter)(null==x?void 0:x.mediumCount)}
1)}),(0,a.jsx)(vr,{circleComponent:(0,a.jsx)(gr.Circle,{fill:"#51A9FD"}),nameComponent:(0,a.jsx)(gr.Name,{children:t("site_audit_low")}),valueComponent:(0,a.jsx)(vr.ValueV2,{dynamic:(null==x?void 0:x.lowCount)-(null==b?void 0:b.lowCount),children:(0,rt.formatNumberLetter)(null==x?void 0:x.lowCount)})}),(0,a.jsxs)(gr,{className:"br-md  p10 pl20 pr20 mt30 mb20",style:{backgroundColor:e.isDarkTheme?"#323241":"#F2E2E3"},children:[(0,a.jsx)(gr.Name,{children:t("site_audit_viruses")}),(0,a.jsx)(gr.Value,{className:"color-red",children:null==x?void 0:x.virusesCount})]}),(0,a.jsx)("div",{children:(0,a.jsxs)(f.Link,{className:"link_text df aic medium fz14",to:(0,y.generatePath)("/audit/overview/:projectId?",{projectId:r}),children:[t("site_audit_ditails"),(0,a.jsx)(Tr,{})]})})]})]}),(0,a.jsxs)("div",{className:"fz13 normal color_grey",children:[t("site_audit_last_craw")," l"," ",(0,rt.formatDate)(null==x?void 0:x.auditDate,void 0,!0)]})]})},Ar=({children:e,className:t})=>(0,a.jsx)("table",{className:ur()("fz13 normal tr color-base-light",t),children:e});Ar.Td=({children:e=null,className:t=""})=>(0,a.jsx)("td",{className:ur()("pt10 pb10",t),children:e}),Ar.Tr=({children:e=null,className:t=""})=>(0,a.jsx)("tr",{className:ur()("border-top",t),children:e});const Cr=new Array(5).fill(void 0),Ir=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl",children:e("keywords_research_keyword_td")}),(0,a.jsx)(Ar.Td,{children:e("keywords_research_position_td")}),(0,a.jsx)(Ar.Td,{className:"tc",children:e("keywords_research_volume_td")}),(0,a.jsx)(Ar.Td,{children:e("keywords_research_cpc_td")})]})}),(0,a.jsxs)("tbody",{children:[Cr.map((e,t)=>(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:130,height:16},children:(0,a.jsxs)(ve.Placeholder,{width:130,height:16,children:[(0,a.jsx)("rect",{x:"1",y:"0.5",width:"20",height:"15",rx:"4"}),(0,a.jsx)("rect",{x:"25",y:"0.5",width:"85",height:"15",rx:"4"})]})})}),(0,a.jsx)(Ar.Td,{className:"tc fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:64,height:16},children:(0,a.jsx)(ve.Placeholder,{width:64,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"62",height:"15",rx:"4"})})})}),(0,a.jsx)(Ar.Td,{className:"tc fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:44,height:16},children:(0,a.jsx)(ve.Placeholder,{width:44,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"42",height:"15",rx:"4"})})})}),(0,a.jsx)(Ar.Td,{className:"tr fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:43,height:16},children:(0,a.jsx)(ve.Placeholder,{width:43,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"41",height:"15",rx:"4"})})})})]},t)),(0,a.jsx)(Ar.Tr,{})]})]}),(0,a.jsx)("div",{className:"fz13 normal color_grey mt30",children:(0,a.jsx)("div",{style:{width:148,height:18},children:(0,a.jsx)(ve.Placeholder,{width:148,height:18,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"146",height:"16"})})})})]})};var Dr=r(83015),Pr=r(55263);const Or=(0,Pr.withProps)({lightThemeSrc:r(76861).default,darkThemeSrc:r(96831).default})(Dr.Img),zr=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic jcc fdc",style:{height:288.5},children:[(0,a.jsx)(Or,{alt:"Not have data"}),(0,a.jsx)("div",{className:"fz14 mb5 fw600",children:e("keywords_research_no_data_title")}),(0,a.jsx)("p",{className:"color_grey medium",children:e("keywords_research_no_data_desc")})]})};var Sr=r(53403);const Lr=()=>{var e,t;const{t:r}=(0,n.useTranslation)("summary"),[s,l]=(0,i.useState)("organic"),o=(0,y.useLocation)(),{query:c,se:m,search_type:u}=(0,d.useSelector)(e=>e.searchBar),{data:h,loading:p,error:x}=(0,je.useProcedure)(["organic"===s?"dashboard.getOrganicKeywords":"dashboard.getAdsKeywords",{query:null==c?void 0:c.toLowerCase(),searchEngine:m,searchType:u,filter:"filter:0:0:block_condition=and&filter:0:0:field=right_spelling&filter:0:0:condition=not_contain&filter:0:0:value=&filter:0:1:field=first_position&filter:0:1:condition=not_contain",useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>null===e.result,"dashboard.getOrganicKeywords")]}],[c,m,u,s]),j=(0,a.jsxs)("h4",{className:"fz18 mb16 ff-Inter df jcsb aic",children:[(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:r("keywords_research_title_tooltip"),children:r("keywords_research_title")}),(0,a.jsx)(Sr.default,{className:"ml-auto",theme:"new",value:s,items:[{text:"Organic",value:"organic"},{text:"Paid",value:"paid"}],onChange:l})]});return p?(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[j,(0,a.jsx)(Ir,{})]}):!(null==(e=null==h?void 0:h.keywords)?void 0:e.length)||x?(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[j,(0,a.jsx)(zr,{})]}):(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[j,(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl medium",children:r("keywords_research_keyword_td")}),"organic"===s&&(0,a.jsx)(Ar.Td,{className:"medium",children:r("keywords_research_position_td")}),(0,a.jsx)(Ar.Td,{className:"tc medium",children:r("keywords_research_volume_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:r("keywords_research_cpc_td")})]})}),(0,a.jsxs)("tbody",{children:[null==(t=null==h?void 0:h.keywords)?void 0:t.map(e=>(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl",children:e.name}),"organic"===s&&(0,a.jsx)(Ar.Td,{children:e.position}),(0,a.jsx)(Ar.Td,{className:"tc",children:(0,rt.formatNumberLetter)(e.volume)}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.cpc)})]},e.name)),(0,a.jsx)(Ar.Tr,{})]})]}),(0,a.jsx)("div",{className:"mt30",children:(0,a.jsxs)(f.Link,{className:"link_text df aic medium fz14",to:{pathname:"/domains/search/",search:o.search},children:[r("keywords_research_ditails"),(0,a.jsx)(Tr,{})]})})]})},Mr=new Array(7).fill(void 0),Er=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter",rounded:!0,children:[(0,a.jsx)("h4",{className:"fz18 mb16 ff-Inter df jcsb",children:(0,a.jsx)(f.Tooltip,{tooltipText:e("distr_by_country_title_tooltip"),children:e("distr_by_country_title")})}),(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl",children:e("distr_by_country_country_td")}),(0,a.jsx)(Ar.Td,{children:e("distr_by_country_keywords_td")})]})}),(0,a.jsx)("tbody",{children:Mr.map((e,t)=>(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:130,height:16},children:(0,a.jsxs)(ve.Placeholder,{width:130,height:16,children:[(0,a.jsx)("rect",{x:"1",y:"0.5",width:"20",height:"15",rx:"4"}),(0,a.jsx)("rect",{x:"25",y:"0.5",width:"85",height:"15",rx:"4"})]})})}),(0,a.jsx)(Ar.Td,{className:"tr fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:43,height:16},children:(0,a.jsx)(ve.Placeholder,{width:43,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"41",height:"15",rx:"4"})})})})]},t))})]})]})},Rr=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter",rounded:!0,children:[(0,a.jsx)("h4",{className:"fz18 mb16 ff-Inter df jcsb",children:(0,a.jsx)(f.Tooltip,{tooltipText:e("distr_by_country_title_tooltip"),children:e("distr_by_country_title")})}),(0,a.jsxs)("div",{className:"df aic jcc fdc",style:{height:285},children:[(0,a.jsx)(Or,{alt:"Not have data"}),(0,a.jsx)("div",{className:"fz14 mb5 fw600",children:e("distr_by_country_no_data_title")}),(0,a.jsx)("p",{className:"color_grey medium",children:e("distr_by_country_no_data_desc")})]})]})};var Br=r(33856);const Fr="trafficDistributionByCountry___LSOyE";var Vr=Object.defineProperty,Ur=Object.defineProperties,qr=Object.getOwnPropertyDescriptors,Hr=Object.getOwnPropertySymbols,Yr=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Gr=(e,t,r)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const Kr=()=>{const{t:e}=(0,n.useTranslation)(["summary","searchPlatform"]),{query:t,se:r,search_type:s}=(0,d.useSelector)(e=>e.searchBar),{data:l,loading:o}=(0,je.useProcedure)(["analyticSearch.getRegionsCount",{query:t,searchType:"subdomains",dataType:"positions",filter:"filter:0:0:block_condition=and&filter:0:0:field=right_spelling&filter:0:0:condition=not_contain&filter:0:0:value=&filter:0:1:field=first_position&filter:0:1:condition=not_contain",topList:!0,searchEngine:r,useCache:!0}],[t]),c=(0,i.useMemo)(()=>Object.entries(l||{}).map(([e,t])=>{return r=((e,t)=>{for(var r in t||(t={}))Yr.call(t,r)&&Gr(e,r,t[r]);if(Hr)for(var r of Hr(t))$r.call(t,r)&&Gr(e,r,t[r]);return e})({},t),Ur(r,qr({se:e}));var r}).filter(e=>e.count>0).slice(0,7),[l]);return o?(0,a.jsx)(Er,{}):0===c.length?(0,a.jsx)(Rr,{}):(0,a.jsxs)(f.Card,{className:ur()("p30 ff-Inter",Fr),rounded:!0,children:[(0,a.jsx)("h4",{className:"fz18 mb16 fw600 ff-Inter df jcsb",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:e("distr_by_country_title_tooltip"),children:e("distr_by_country_title")})}),(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl",children:e("distr_by_country_country_td")}),(0,a.jsx)(Ar.Td,{className:"tc",children:e("distr_traffic")}),(0,a.jsx)(Ar.Td,{children:e("distr_by_country_keywords_td")})]})}),(0,a.jsx)("tbody",{children:c.map(r=>(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsxs)(Ar.Td,{className:"tl",children:[(0,a.jsx)("i",{className:`flag_${r.country} mr5`}),e(`searchPlatform::${(0,Br.getSeTitleKey)(r.country_name_en)}`)]}),(0,a.jsx)(Ar.Td,{className:"tc",children:(0,rt.formatNumberLetter)(r.traff)}),(0,a.jsx)(Ar.Td,{children:(0,a.jsx)(f.Link,{className:"link_text_current-color",to:{pathname:"/domains/search/",search:C.stringify({query:t,se:r.se,search_type:s,"filter:0:0:block_condition":"and","filter:0:0:field":"first_position","filter:0:0:condition":"not_contain","filter:0:0:value":""})},children:(0,rt.formatNumberLetter)(r.count)})})]},r.country))})]})]})};var Wr=r(95084),Zr=r(88224),Qr=r(77984),Xr=r(23495),Jr=r(11224),es=r(5614);const ts=[{xAxis:"1-1",yAxis:8},{xAxis:"2-3",yAxis:2},{xAxis:"4-5",yAxis:4},{xAxis:"6-10",yAxis:2},{xAxis:"11-20",yAxis:9},{xAxis:"21-50",yAxis:6},{xAxis:"51-100",yAxis:8}],rs=["#0C63F6","#1A79F1","#3B89F2","#5798F4","#72A9F6","#8EBAF7","#A9CAF9"],ss=[{xAxis:"1-1",yAxis:0},{xAxis:"2-3",yAxis:0},{xAxis:"4-5",yAxis:0},{xAxis:"6-10",yAxis:0},{xAxis:"11-20",yAxis:0},{xAxis:"21-50",yAxis:0},{xAxis:"51-100",yAxis:0}];function as(e){return"Top "+e.split("-")[1]}const is={className:"medium ff-Inter color_grey",style:{fontSize:11,transform:"translateY(6px)"}}
1,ls=[4,4,0,0],ns={top:15,right:30,left:20,bottom:5},os={left:10,right:10},cs=()=>{const{t:e}=(0,n.useTranslation)("summary"),{query:t,se:r,search_type:s}=(0,d.useSelector)(e=>e.searchBar),{data:l,loading:o,error:c}=(0,je.useProcedure)(["dashboard.getPositionDistributionByKeywordsChart",{query:null==t?void 0:t.toLowerCase(),searchEngine:r,searchType:s,interceptor:Lt,transformResponse:[Bt(e=>{var t;return 0===(null==(t=e.result)?void 0:t.length)},"dashboard.getPositionDistributionByKeywordsChart")]}],[t,r,s]),m=(0,i.useMemo)(()=>{if(o)return ts;if(l){const{xAxisData:e=[],series:t}=l;return e.map((e,r)=>({xAxis:e,yAxis:t[r]}))}return[]},[l,o]);return(0,a.jsxs)("div",{children:[(!m.length||c)&&(0,a.jsxs)("div",{className:"ff-Inter df aic jcc fdc",style:{minHeight:190},children:[(0,a.jsx)(Or,{alt:"Not have data"}),(0,a.jsx)("div",{className:"fz14 mb5 fw600",children:e("keywords_pos_distrubution_no_data_title")}),(0,a.jsx)("p",{className:"color_grey medium",children:e("keywords_pos_distrubution_no_data_desc")})]}),(0,a.jsx)("div",{children:(0,a.jsx)(Wr.ResponsiveContainer,{width:"100%",height:!m.length||c?40:230,children:(0,a.jsxs)(Zr.BarChart,{data:!m.length||c?ss:m,margin:ns,barSize:o?46:30,children:[(0,a.jsx)(Qr.XAxis,{padding:os,dataKey:"xAxis",axisLine:!1,tickLine:!1,tick:is,tickFormatter:as,scale:"point"}),(0,a.jsx)(Xr.YAxis,{hide:!0,dataKey:"yAxis"}),(0,a.jsxs)(Jr.Bar,{isAnimationActive:!1,dataKey:"yAxis",fill:"var(--chart-base)",activeBar:!1,radius:ls,children:[(0,a.jsx)(es.LabelList,{formatter:rt.formatNumberLetter,position:"top",dataKey:"yAxis",fill:!m.length||c||o?"transparent":"var(--text-base)",className:"medium ff-Inter",style:{fontSize:13}}),m.map((e,t)=>(0,a.jsx)(qt.Cell,{fill:o?"var(--skeleton-color)":rs[t]||rs[rs.length-1]},`cell-${t}`))]})]})})})]})};const ds=function(){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("g",{stroke:"#7E858E",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",clipPath:"url(#clip0_9239_1445)",children:(0,a.jsx)("path",{d:"M19.867 4H5.133C4.507 4 4 4.506 4 5.13v10.74c0 .624.507 1.13 1.133 1.13h14.734c.626 0 1.133-.506 1.133-1.13V5.13C21 4.506 20.493 4 19.867 4zM10 20h5"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_9239_1445",children:(0,a.jsx)("path",{fill:"#fff",d:"M0 0H24V24H0z"})})})]})};const ms=function(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{stroke:"#7E858E",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:(0,a.jsx)("path",{d:"M16 3H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zM11 18h2"})})})};var us=Object.defineProperty,hs=Object.defineProperties,ps=Object.getOwnPropertyDescriptors,xs=Object.getOwnPropertySymbols,fs=Object.prototype.hasOwnProperty,ys=Object.prototype.propertyIsEnumerable,js=(e,t,r)=>t in e?us(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_s=(e,t)=>{for(var r in t||(t={}))fs.call(t,r)&&js(e,r,t[r]);if(xs)for(var r of xs(t))ys.call(t,r)&&js(e,r,t[r]);return e};const gs=({children:e,color:t,className:r,style:s,customLabelNode:i})=>{return(0,a.jsx)("div",{className:ur()("percent-cell df jcc aic p10 color_white fz20 medium ff-Inter lh-normal",r),style:(l=_s({},s),n={width:`${Math.round(Number(e)<5?5:Number(e))}%`,background:t},hs(l,ps(n))),children:i||`${Math.round(e)}%`});var l,n},vs={top1:"#1559CB",top3:"#407DE5",top5:"#407DE5",top10:"#6793DD",top20:"#96B4E8",top101:"#B9CDEF"},bs=[23,10,17,16,10,24],Ns=[{range:"top1",percent:23},{range:"top3",percent:10},{range:"top5",percent:17},{range:"top10",percent:16},{range:"top20",percent:10},{range:"top101",percent:24}],ws=(0,i.memo)(({data:e,isLoading:t})=>{const r=null==e?void 0:e.filter(e=>e.percent>0);return t?(0,a.jsx)("div",{className:"df mb25",children:bs.map((e,t)=>(0,a.jsx)(gs,{style:{color:"var(--skeleton-color)"},color:"var(--skeleton-color)",children:e},t))}):(null==r?void 0:r.length)?(0,a.jsx)("div",{className:"df mb25",children:null==r?void 0:r.map(e=>(0,a.jsx)(gs,{color:vs[e.range],style:{color:"var(--white)"},children:e.percent},e.range))}):(0,a.jsx)("div",{className:"df mb25",children:null==Ns?void 0:Ns.map((e,t)=>(0,a.jsx)(gs,{color:vs[e.range],customLabelNode:(0,a.jsx)(a.Fragment,{children:"--%"}),children:e.percent},t))})}),Ts=new Array(6).fill(void 0),ks=(0,i.memo)(({data:e,isLoading:t})=>{const{t:r}=(0,n.useTranslation)("summary"),s=null==e?void 0:e.filter(e=>e.percent>0);return t?(0,a.jsx)("div",{className:"df aic jcsb mb40",children:null==Ts?void 0:Ts.map((e,t)=>(0,a.jsx)(gr,{className:"border-left pl20",children:(0,a.jsx)(gr.Name,{children:(0,a.jsx)("div",{style:{width:140,height:33},children:(0,a.jsxs)(ve.Placeholder,{width:140,height:33,children:[(0,a.jsx)("circle",{cx:"10",cy:"17",r:"8"}),(0,a.jsx)("rect",{x:"25",y:"2",rx:"4",ry:"4",width:"110",height:"30"})]})})})},t))}):(null==s?void 0:s.length)?(0,a.jsx)("div",{className:"df aic jcsb mb40",children:null==s?void 0:s.map(e=>(0,a.jsxs)(gr,{className:"border-left pl20",children:[(0,a.jsx)(gr.Circle,{fill:vs[e.range]}),(0,a.jsx)(gr.Name,{children:(0,a.jsx)("span",{className:"mr10 color_grey",children:r(`rt_${e.range}`)})}),(0,a.jsx)(gr.Value,{dynamic:e.dynamic,children:e.value})]},e.range))}):null});var As=r(24248),Cs=r(38732);const Is=()=>{const{activeProject:e}=(0,d.useSelector)(e=>e.projects),{query:t}=(0,d.useSelector)(e=>e.searchBar),{t:r}=(0,n.useTranslation)("summary"),s=(null==e?void 0:e.projectDomain)===t?(0,y.generatePath)("/rank-tracker/keywords/:projectId/",{projectId:e.projectId}):"/rank-tracker/keywords/";return(0,a.jsxs)("div",{className:"mb25",children:[(0,a.jsx)("div",{className:"fz14 mb5",children:r("rt_no_data_title")}),(0,a.jsx)("p",{className:"mb15",children:r("rt_no_data_desc")}),(0,a.jsx)(me.Button,{size:"md",className:"fz14-i",to:s,children:r("rt_start")})]})},Ds=(0,i.memo)(({isLoading:e})=>{const{t}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"fz28 mb16 ff-Inter strong df aic",children:[(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:t("rt_title_tooltip"),children:t("rt_title")}),e?(0,a.jsx)("div",{className:"df ml-auto",style:{width:230,height:33},children:(0,a.jsx)(ve.Placeholder,{width:230,height:30,children:(0,a.jsx)("rect",{x:"2",y:"0",rx:"4",ry:"4",width:"226",height:"30"})})}):null]}),e?null:(0,a.jsx)(Is,{}),(0,a.jsx)(ws,{data:[],isLoading:e}),e?(0,a.jsx)(ks,{data:[],isLoading:!0}):null]})});var Ps=r(88987),Os=Object.defineProperty,zs=Object.defineProperties,Ss=Object.getOwnPropertyDescriptors,Ls=Object.getOwnPropertySymbols,Ms=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Rs=(e,t,r)=>t in e?Os(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const Bs=({projectId:e})=>{const t=(0,Ps.useGetParams)("project_id"),r=e||+t,{t:s}=(0,n.useTranslation)("summary"),{query:l}=(0,d.useSelector)(e=>e.searchBar),[o,c]=(0,i.useState)(),m=(0,je.usePrevious)(o),u=(0,je.usePrevious)(r),{callProcedure:h,clear:p,data:x,loading:j,error:_}=(0,ge.useLazyProcedure)("rtSearchEngine.getProjectRegions"),{callProcedure:g,clear:v,data:b,loading:N,error:w}=(0,ge.useLazyProcedure)("rtSerpResult.getDomainDistribution"),T=!!N||!!j,k=!!w||!!_,A=!(null==b?void 0:b.length)||!(null==x?void 0:x.length);(0,i.useEffect)(()=>{r!==u&&(p(),v(),c(void 0))},[u,r,v,p]),(0,i.useEffect)(()=>{!r||x||j||h({projectId:r,useCache:!0})},[h,r,x,j]),(0,i.useEffect)(()=>{(null==x?void 0:x.length)&&!j&&c(x[0])},[x,j]),(0,i.useEffect)(()=>{r&&(null==o?void 0:o.id)&&(null==o?void 0:o.id)!==(null==m?void 0:m.id)&&!j&&g({projectId:r,projectRegionIds:[+(null==o?void 0:o.id)],domains:[l],dateType:"lastParse",dateFrom:"",dateTo:"",useCache:!0})},[o,m,j,l,g,r]);const C=(0,i.useMemo)(()=>
1{if(!x)return;const e=(0,As.normalizeRegionsData)(x);return x.map((t,r)=>{return s=((e,t)=>{for(var r in t||(t={}))Ms.call(t,r)&&Rs(e,r,t[r]);if(Ls)for(var r of Ls(t))Es.call(t,r)&&Rs(e,r,t[r]);return e})({},t),a={value:e[r].value,text:e[r].text},zs(s,Ss(a));var s,a})},[x]),I=(0,i.useMemo)(()=>{if(!o)return"";const{serpType:e,country:t,region:r,city:s,langName:a}=o;return`${"ppc"===e?"PPC,":""} ${[t,r,s,a].filter(Boolean).join(", ")}`.trim()},[o]);return T?(0,a.jsx)(Ds,{isLoading:!0}):!r||A||k?(0,a.jsx)(Ds,{}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"fz28 mb16 ff-Inter strong df aic",children:[(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:s("rt_title_tooltip"),children:(0,a.jsx)(f.Link,{className:"link_text",to:(0,y.generatePath)("/rank-tracker/keywords/:projectId/",{projectId:r}),children:s("rt_title")})}),(0,a.jsx)(Cs.default,{text:"",className:"ml-auto",value:null==o?void 0:o.id,classNameTrigger:"df aic",trigger:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"fz14 medium color_grey lh-normal mr15 ml-auto",children:[(0,a.jsx)("i",{className:`flag_${null==o?void 0:o.countryCode} mr5`}),I]}),(0,a.jsx)("span",{className:"fz14 medium color_grey lh-normal mr15 df aic",children:"desktop"===(null==o?void 0:o.deviceType)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"mr5",children:(0,a.jsx)(ds,{})}),"Desktop"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"mr5",children:(0,a.jsx)(ms,{})}),"Mobile"]})})]}),items:C,onSelect:e=>{c(e)}})]}),(0,a.jsx)(ws,{data:b,isLoading:N}),(0,a.jsx)(ks,{data:b,isLoading:N})]})};var Fs=r(21828);const Vs=(0,a.jsx)("div",{style:{width:50,height:24},children:(0,a.jsx)(ve.Placeholder,{width:50,height:24,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"48",height:"22",rx:"4"})})}),Us=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic jcsb",style:{marginBottom:56},children:[(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:e("keyword_research_summary_all")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:Vs})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:e("keyword_research_summary_new")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:Vs})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:e("keyword_research_summary_lost")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:Vs})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:e("keyword_research_summary_improved")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:Vs})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:e("keyword_research_summary_declined")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:Vs})]})]})},qs=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic jcsb",style:{marginBottom:56},children:[(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:e("keyword_research_summary_all")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:"--"})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:e("keyword_research_summary_new")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:"--"})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:e("keyword_research_summary_lost")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:"--"})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:e("keyword_research_summary_improved")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:"--"})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:e("keyword_research_summary_declined")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:"--"})]})]})},Hs=()=>{var e;const{t}=(0,n.useTranslation)("summary"),{query:r,se:s,search_type:i}=(0,d.useSelector)(e=>e.searchBar),{data:l,loading:o,error:c}=(0,je.useProcedure)(["dashboard.getOrganicKeywords",{query:null==r?void 0:r.toLowerCase(),searchEngine:s,searchType:i,useCache:!0,filter:"filter:0:0:block_condition=and&filter:0:0:field=right_spelling&filter:0:0:condition=not_contain&filter:0:0:value=&filter:0:1:field=first_position&filter:0:1:condition=not_contain",interceptor:Lt,transformResponse:[Bt(e=>null===e.result,"dashboard.getOrganicKeywords")]}],[r,s,i]);return o?(0,a.jsx)(Us,{}):!(null==(e=null==l?void 0:l.keywords)?void 0:e.length)||c?(0,a.jsx)(qs,{}):(0,a.jsxs)("div",{className:"df aic jcsb",style:{marginBottom:56},children:[(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)(f.Link,{className:"mb5 fz16 color_grey link_text_current-color medium",to:{pathname:"/domains/search/",search:C.stringify({query:r,se:s,search_type:i,"filter:0:0:block_condition":"and","filter:0:0:field":"first_position","filter:0:0:condition":"not_contain","filter:0:0:value":""})},children:t("keyword_research_summary_all")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:(0,rt.formatNumberLetter)(l.total)})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)(f.Link,{className:"mb5 fz16 color_grey link_text_current-color medium",to:{pathname:"/domains/search/",search:C.stringify({query:r,se:s,search_type:i,"filter:0:0:block_condition":"and","filter:0:0:field":"dynamic","filter:0:0:condition":"position_new","filter:0:0:value":"","filter:0:1:field":"first_position","filter:0:1:condition":"not_contain","filter:0:1:value":""})},children:t("keyword_research_summary_new")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:(0,rt.formatNumberLetter)(l.new)})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)("span",{className:"mb5 fz16 color_grey medium",children:t("keyword_research_summary_lost")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:(0,rt.formatNumberLetter)(l.lost)})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)(f.Link,{className:"mb5 fz16 color_grey link_text_current-color medium",to:{pathname:"/domains/search/",search:C.stringify({query:r,se:s,search_type:i,"filter:0:0:block_condition":"and","filter:0:0:field":"dynamic","filter:0:0:condition":"position_up","filter:0:0:value":"","filter:0:1:field":"first_position","filter:0:1:condition":"not_contain","filter:0:1:value":""})},children:t("keyword_research_summary_improved")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:(0,rt.formatNumberLetter)(l.improved)})]}),(0,a.jsxs)(gr,{className:"border-left pl20 fdc aifs",children:[(0,a.jsx)(f.Link,{className:"mb5 fz16 color_grey link_text_current-color medium",to:{pathname:"/domains/search/",search:C.stringify({query:r,se:s,search_type:i,"filter:0:0:block_condition":"and","filter:0:0:field":"dynamic","filter:0:0:condition":"position_down","filter:0:0:value":"","filter:0:1:field":"first_position","filter:0:1:condition":"not_contain","filter:0:1:value":""})},children:t("keyword_research_summary_declined")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:(0,rt.formatNumberLetter)(l.declined)})]})]})},Ys=new Array(5).fill(void 0),$s=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl medium",children:e("competitors_organic_domain_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:e("competitors_organic_relevance_td")}),(0,a.jsx)(Ar.Td,{className:"tc medium",children:e("competitors_organic_common_keywords_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:e("competitors_organic_all_keywords_td")})]})}),(0,a.jsxs)("tbody",{children:[Ys.map((e,t)=>(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:130,height:16},children:(0,a.jsxs)(ve.Placeholder,{width:130,height:16,children:[(0,a.jsx)("rect",{x:"1",y:"0.5",width:"20",height:"15",rx:"4"}),(0,a.jsx)("rect",{x:"25",y:"0.5",width:"85",height:"15",rx:"4"})]})})}),(0,a.jsx)(Ar.Td,{className:"tc fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:64,height:16},children:(0,a.jsx)(ve.Placeholder,{width:64,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"62",height:"15",rx:"4"})})})}),(0,a.jsx)(Ar.Td,{className:"tc fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:44,height:16},children:(0,a.jsx)(ve.Placeholder,{width:44,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"42",height:"15",rx:"4"})})})}),(0,a.jsx)(Ar.Td,{className:"tr fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:43,height:16},children:(0,a.jsx)(ve.Placeholder,{width:43,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"41",height:"15",rx:"4"})})})})]},t)),(0,a.jsx)(Ar.Tr,{})]})]}
1),(0,a.jsx)("div",{className:"fz13 normal color_grey mt30",children:(0,a.jsx)("div",{style:{width:148,height:18},children:(0,a.jsx)(ve.Placeholder,{width:148,height:18,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"146",height:"16"})})})})]})},Gs=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic jcc fdc",style:{height:285},children:[(0,a.jsx)(Or,{alt:"Not have data"}),(0,a.jsx)("div",{className:"fz14 mb5 fw600",children:e("competitors_organic_no_data_title")}),(0,a.jsx)("p",{className:"color_grey medium",children:e("competitors_organic_no_data_desc")})]})},Ks=e=>({of:t=>100*e/t}),Ws=er,Zs=({percent:e=0,of:t=0,fill:r,renderContent:s=e=>(0,a.jsx)(a.Fragment,{children:e})})=>{const i=Ks(e).of(t)||0,l=63*i/100,n=e===t?Ws[9]:tr(i);return(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:(0,a.jsx)("div",{className:"tc fw600",children:s(Math.round(i))}),isWidthAuto:!0,children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"63",height:"7",fill:"none",viewBox:"0 0 63 7",children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_9239_1295)",children:[(0,a.jsx)("rect",{width:"63",height:"6",y:"0.5",fill:"#EAECF0",rx:"3"}),(0,a.jsx)("rect",{width:l,height:"6",y:"0.5",fill:r||n,rx:"3"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_9239_1295",children:(0,a.jsx)("rect",{width:"63",height:"6",y:"0.5",fill:"#fff",rx:"3"})})})]})})},Qs=()=>{const{t:e}=(0,n.useTranslation)("summary"),t=(0,y.useLocation)(),{query:r,se:s,search_type:i}=(0,d.useSelector)(e=>e.searchBar),{data:l,loading:o,error:m}=(0,je.useProcedure)(["dashboard.getOrganicCompetitors",{query:null==r?void 0:r.toLowerCase(),searchEngine:s,searchType:i,filter:"filter:0:0:block_condition=and&filter:0:0:field=right_spelling&filter:0:0:condition=not_contain&filter:0:0:value=",useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>{var t;return-32e3===(null==(t=e.error)?void 0:t.code)},"dashboard.getOrganicCompetitors")]}],[r,s,i]),u=(0,a.jsx)("h4",{className:"fz18 mb16 ff-Inter df jcsb aic",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:e("competitors_organic_title_tooltip"),children:e("competitors_organic_title")})});return o?(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[u,(0,a.jsx)($s,{})]}):!(null==l?void 0:l.length)||m?(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[u,(0,a.jsx)(Gs,{})]}):(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[u,(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl medium",children:e("competitors_organic_domain_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:e("competitors_organic_relevance_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:e("competitors_organic_common_keywords_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:e("competitors_organic_all_keywords_td")})]})}),(0,a.jsxs)("tbody",{children:[null==l?void 0:l.slice(0,5).map(e=>(0,a.jsxs)(Ar.Tr,{className:ur()({bold:e.domain===r}),children:[(0,a.jsxs)(Ar.Td,{className:"tl",children:[(0,a.jsx)(f.Link,{className:"link_text mr5",to:{pathname:"/summary/",search:C.stringify({query:e.domain,se:s})},children:e.domain}),(0,a.jsx)("a",{href:`//${e.domain}`,target:"_blank",rel:"noreferrer",children:(0,a.jsx)(c,{size:18})})]}),(0,a.jsx)(Ar.Td,{children:(0,a.jsx)(Zs,{percent:e.relevance,of:100})}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.common.currentValue)}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.all.currentValue)})]},e.domain)),(0,a.jsx)(Ar.Tr,{})]})]}),(0,a.jsx)("div",{className:"mt30",children:(0,a.jsxs)(f.Link,{className:"link_text df aic medium fz14",to:{pathname:"/domains/competitors/",search:t.search},children:[e("competitors_organic_ditails"),(0,a.jsx)(Tr,{})]})})]})};var Xs=r(59853),Js=r(69107),ea=r(39043),ta=r(55430),ra=r(51658),sa=r(8880);const aa=[{index:0,domain:"--",recall:0,precision:0,keywords:0,visibility:0,size:0,keywordsDynamic:0,visibleDynamic:0},{index:1,domain:"--",recall:0,precision:0,keywords:0,visibility:0,size:0,keywordsDynamic:0,visibleDynamic:0},{index:2,domain:"--",recall:0,precision:0,keywords:0,visibility:0,size:0,keywordsDynamic:0,visibleDynamic:0},{index:3,domain:"--",recall:0,precision:0,keywords:0,visibility:0,size:0,keywordsDynamic:0,visibleDynamic:0},{index:4,domain:"--",recall:0,precision:0,keywords:0,visibility:0,size:0,keywordsDynamic:0,visibleDynamic:0},{index:5,domain:"--",recall:0,precision:0,keywords:0,visibility:0,size:0,keywordsDynamic:0,visibleDynamic:0}],ia=({active:e,payload:t,renderContent:r})=>{if(e&&t&&t.length){const e=t[0];return(0,a.jsx)(f.Card,{className:"p12 ff-Inter custom-shadow-xl border-neutral",rounded:!0,children:Boolean(r)&&r(e)})}return null};var la=Object.defineProperty,na=Object.defineProperties,oa=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,ma=Object.prototype.propertyIsEnumerable,ua=(e,t,r)=>t in e?la(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ha=(e,t)=>{for(var r in t||(t={}))da.call(t,r)&&ua(e,r,t[r]);if(ca)for(var r of ca(t))ma.call(t,r)&&ua(e,r,t[r]);return e};const pa=e=>{const t=e,{xAxis:r,yAxis:s,zAxis:i,tooltipPosition:l,tooltipPayload:n,visibleDynamic:o,keywordsDynamic:c}=t,d=((e,t)=>{var r={};for(var s in e)da.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&ca)for(var s of ca(e))t.indexOf(s)<0&&ma.call(e,s)&&(r[s]=e[s]);return r})(t,["xAxis","yAxis","zAxis","tooltipPosition","tooltipPayload","visibleDynamic","keywordsDynamic"]);return[d.precision,d.recall,d.keywords].every(e=>0===e)?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",ha({r:d.width/2},d)),(0,a.jsx)("circle",(m=ha({r:2.5},d),u={fillOpacity:"0.6"},na(m,oa(u))))]});var m,u},xa=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(ve.Placeholder,{width:512,height:313,children:[(0,a.jsx)("circle",{cx:"78",cy:"70",r:"36"}),(0,a.jsx)("circle",{cx:"140",cy:"195",r:"23"}),(0,a.jsx)("circle",{cx:"228",cy:"70",r:"28"}),(0,a.jsx)("circle",{cx:"291",cy:"195",r:"13"}),(0,a.jsx)("circle",{cx:"341",cy:"70",r:"13"}),(0,a.jsx)("circle",{cx:"230.5",cy:"160",r:"16.5"}),(0,a.jsx)("circle",{cx:"47",cy:"195",r:"13"}),(0,a.jsx)("circle",{cx:"426.5",cy:"76",r:"27.5"}),(0,a.jsx)("circle",{cx:"418",cy:"195",r:"20"})]})});var fa=Object.defineProperty,ya=Object.getOwnPropertySymbols,ja=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,ga=(e,t,r)=>t in e?fa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const va={className:"medium ff-Inter color_grey",style:{fontSize:11,transform:"translateY(6px)"}},ba={top:1,right:1,left:-18,bottom:10}
1,Na=["#0040C1","#F63D68","#F79009","#4D9473","#2990C0","#EAAA08"],wa={stroke:"transparent",strokeWidth:1,strokeDasharray:"4 8"},Ta={textAnchor:"middle",fontFamily:"Inter",fontWeight:500},ka=e=>`${Math.round(e)}`,Aa=()=>{const e=(0,y.useLocation)(),{isDarkTheme:t}=(0,nr.useTheme)(),{t:r}=(0,n.useTranslation)("summary"),{query:s,se:o,search_type:c}=(0,d.useSelector)(e=>e.searchBar),{data:m,loading:u,error:h}=(0,je.useProcedure)(["dashboard.getCompetitorsGraph",{query:null==s?void 0:s.toLowerCase(),searchEngine:o,searchType:c,interceptor:Lt,transformResponse:[Bt(e=>{var t;return 0===(null==(t=e.result)?void 0:t.length)},"dashboard.getCompetitorsGraph")]}],[s,o,c]),p=(0,i.useMemo)(()=>0===(null==m?void 0:m.length)||h?aa:null==m?void 0:m.slice(0,6).reverse().map((e,t)=>((e,t)=>{for(var r in t||(t={}))ja.call(t,r)&&ga(e,r,t[r]);if(ya)for(var r of ya(t))_a.call(t,r)&&ga(e,r,t[r]);return e})({index:t},e)),[m,h]),x=(0,a.jsx)("h4",{className:"fz18 mb25 ff-Inter df jcsb",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:r("competitors_graph_title_tooltip"),children:(0,a.jsx)(f.Link,{className:"link_text_current-color",to:{pathname:"/domains/competitors/",search:e.search},children:r("competitors_graph_title")})})});return u?(0,a.jsxs)("div",{children:[x,(0,a.jsx)(xa,{})]}):(0,a.jsxs)("div",{children:[x,(0,a.jsx)(Wr.ResponsiveContainer,{width:"100%",height:250,className:"competitors-graph",children:(0,a.jsxs)(Xs.ScatterChart,{margin:ba,children:[(0,a.jsx)(Js.CartesianGrid,{stroke:"var(--border-base-divider)"}),(0,a.jsx)(ea.Scatter,{data:p,shape:pa,children:p.map((e,t)=>(0,a.jsx)(qt.Cell,{fill:Na[t%Na.length],fillOpacity:"0.6"},`cell-${t}`))}
1),(0,a.jsx)(Qr.XAxis,{dataKey:"precision",axisLine:!1,tickLine:!1,tick:va,tickFormatter:ka,domain:[0,100],type:"number",ticks:[0,15,30,45,60,75,90,100],children:(0,a.jsx)(ta.Label,{style:Ta,value:r("competitors_graph_precision"),offset:-8,position:"insideBottom"})}),(0,a.jsx)(Xr.YAxis,{dataKey:"recall",axisLine:!1,tickLine:!1,ticks:[0,25,50,75,100],children:(0,a.jsx)(ta.Label,{style:Ta,value:r("competitors_graph_fullness"),angle:-90,position:"center"})}),(0,a.jsx)(ra.ZAxis,{name:"score",dataKey:"keywords",range:[100,3e3]}),(0,a.jsx)(sa.Tooltip,{cursor:wa,content:(0,a.jsx)(ia,{renderContent:e=>{const t=e.payload;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mb5 fz13 df aic ff-Inter",children:[(0,a.jsx)("svg",{className:"mr10",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",children:(0,a.jsx)("circle",{cx:"6",cy:"6.5",r:"6",fill:Na[t.index%Na.length]})}),t.domain]}),(0,a.jsxs)("div",{className:"mb5 fz13",children:[r("competitors_graph_tooltip_keywords")," :"," ",(0,a.jsx)("span",{className:"fw600",children:(0,rt.formatNumberLetter)(Math.round(t.keywords))})]}),(0,a.jsxs)("div",{className:"mb5 fz13",children:[r("competitors_graph_tooltip_visibility")," :"," ",(0,a.jsx)("span",{className:"fw600",children:(0,rt.formatNumberLetter)(t.visibility)})]})]})}})})]})}),(0,a.jsx)(l.Row,{className:"mt5 ff-Inter",children:p.map(({domain:e},r)=>(0,a.jsxs)(l.Col,{col:4,className:"mb10 df aic",children:[(0,a.jsx)("svg",{style:{flexBasis:"20px"},className:"mr10",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",children:(0,a.jsx)("circle",{cx:"6",cy:"6.5",r:"6",fill:Na[r%Na.length]})}),(0,a.jsx)("span",{className:ur()("truncate",{color_grey:t}),children:e})]},e))})]})},Ca=new Array(5).fill(void 0),Ia=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl medium",children:e("top_anchors_anchors_td")}),(0,a.jsx)(Ar.Td,{className:"medium tc",children:e("top_anchors_share_td")}),(0,a.jsx)(Ar.Td,{className:"tc medium",children:e("top_anchors_backlinks_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:e("top_anchors_domains_td")})]})}),(0,a.jsxs)("tbody",{children:[Ca.map((e,t)=>(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:130,height:16},children:(0,a.jsxs)(ve.Placeholder,{width:130,height:16,children:[(0,a.jsx)("rect",{x:"1",y:"0.5",width:"20",height:"15",rx:"4"}),(0,a.jsx)("rect",{x:"25",y:"0.5",width:"85",height:"15",rx:"4"})]})})}),(0,a.jsx)(Ar.Td,{className:"tc fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:64,height:16},children:(0,a.jsx)(ve.Placeholder,{width:64,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"62",height:"15",rx:"4"})})})}),(0,a.jsx)(Ar.Td,{className:"tc fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:44,height:16},children:(0,a.jsx)(ve.Placeholder,{width:44,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"42",height:"15",rx:"4"})})})}),(0,a.jsx)(Ar.Td,{className:"tr fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:43,height:16},children:(0,a.jsx)(ve.Placeholder,{width:43,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"41",height:"15",rx:"4"})})})})]},t)),(0,a.jsx)(Ar.Tr,{})]})]}),(0,a.jsx)("div",{className:"fz13 normal color_grey mt30",children:(0,a.jsx)("div",{style:{width:148,height:18},children:(0,a.jsx)(ve.Placeholder,{width:148,height:18,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"146",height:"16"})})})})]})},Da=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic jcc fdc",style:{height:285},children:[(0,a.jsx)(Or,{alt:"Not have data"}),(0,a.jsx)("div",{className:"fz14 mb5 fw600",children:e("top_anchors_no_data_title")}),(0,a.jsx)("p",{className:"color_grey medium",children:e("top_anchors_no_data_desc")})]})},Pa=e=>(0,a.jsxs)(a.Fragment,{children:[e,"%"]}),Oa=()=>{var e,t;const{t:r}=(0,n.useTranslation)("summary"),s=(0,y.useLocation)(),{query:i,search_type:l}=(0,d.useSelector)(e=>e.searchBar),{data:o,loading:c,error:m}=(0,je.useProcedure)(["backlinks.getTopAnchors",{query:null==i?void 0:i.toLowerCase(),searchType:l,limit:6,useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>{var t;return 32015===(null==(t=e.error)?void 0:t.code)},"backlinks.getTopAnchors")]}],[i,l]),u=(0,a.jsx)("h4",{className:"fz18 mb16 ff-Inter df jcsb aic",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:r("top_anchors_title_tooltip"),children:r("top_anchors_title")})});return c?(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[u,(0,a.jsx)(Ia,{})]}):!(null==(e=null==o?void 0:o.data)?void 0:e.length)||m?(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[u,(0,a.jsx)(Da,{})]}):(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[u,(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl medium",children:(0,a.jsx)(f.Tooltip,{tooltipText:r("top_anchors_anchors_td_tooltip"),children:r("top_anchors_anchors_td")})}),(0,a.jsx)(Ar.Td,{className:"medium tc",children:(0,a.jsx)(f.Tooltip,{tooltipText:r("top_anchors_share_td_tooltip"),children:r("top_anchors_share_td")})}),(0,a.jsx)(Ar.Td,{className:"tc medium",children:(0,a.jsx)(f.Tooltip,{tooltipText:r("top_anchors_backlinks_td_tooltip"),children:r("top_anchors_backlinks_td")})}),(0,a.jsx)(Ar.Td,{className:"medium",children:(0,a.jsx)(f.Tooltip,{tooltipText:r("top_anchors_domains_td_tooltip"),children:r("top_anchors_domains_td")})})]})}),(0,a.jsxs)("tbody",{children:[null==(t=null==o?void 0:o.data)?void 0:t.slice(0,5).map(e=>(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl pr10 word-break",children:"_empty_anchor_"===e.anchor?r("_empty_anchor_"):e.anchor}),(0,a.jsx)(Ar.Td,{className:"tc",children:(0,a.jsx)(Zs,{fill:"#0C63F6",renderContent:Pa,percent:e.domainsCount,of:o.total})}),(0,a.jsx)(Ar.Td,{className:"tc",children:(0,rt.formatNumberLetter)(e.count)}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.domainsCount)})]},e.anchor)),(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl",children:"Others"}),(0,a.jsx)(Ar.Td,{className:"tc",children:(0,a.jsx)(Zs,{fill:"#0C63F6",renderContent:Pa,percent:o.elseDomains,of:o.totalDomains})}),(0,a.jsx)(Ar.Td,{className:"tc",children:(0,rt.formatNumberLetter)(o.elseLinks)}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(o.elseDomains)})]},"others"),(0,a.jsx)(Ar.Tr,{})]})]}),(0,a.jsx)("div",{className:"mt30",children:(0,a.jsxs)(f.Link,{className:"link_text df aic medium fz14",to:{pathname:"/backlinks/anchors/",search:s.search},children:[r("top_anchors_ditails"),(0,a.jsx)(Tr,{})]})})]})},za={marginLeft:0},Sa=(0,a.jsx)("div",{style:{width:50,height:24},children:(0,a.jsx)(ve.Placeholder,{width:50,height:24,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"48",height:"22",rx:"4"})})}),La=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df fdc",children:[(0,a.jsxs)("div",{className:"df jcsb mb60",children:[(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_referring_domain")}),(0,a.jsx)(gr.Value,{style:za,className:"fz20 medium fw600 lh-normal",children:Sa})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_external_domains")}),(0,a.jsx)(gr.Value,{style:za,className:"fz20 medium fw600 lh-normal",children:Sa})]})]}),(0,a.jsxs)("div",{className:"df jcsb",children:[(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_backlinks")}),(0,a.jsx)(gr.Value,{style:za,className:"fz20 medium fw600 lh-normal",children:Sa})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_external_links")}),(0,a.jsx)(gr.Value,{style:za,className:"fz20 medium fw600 lh-normal",children:Sa})]})]})]})},Ma=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df fdc",children:[(0,a.jsxs)("div",{className:"df jcsb mb60",children:[(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_referring_domain")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:"--"})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_external_domains")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:"--"})]})]}),(0,a.jsxs)("div",{className:"df jcsb",children:[(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_backlinks")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:"--"})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_external_links")}),(0,a.jsx)("span",{className:"fz20 medium fw600 lh-normal",children:"--"})]})]})]})},Ea={marginLeft:0},Ra=e=>(0,a.jsx)("span",{style:{fontSize:32},className:"medium mr5 lh-normal",children:e}),Ba=({data:e,loading:t,error:r,query:s,se:i,search_type:l})=>{const{t:o}=(0,n.useTranslation)("summary");if(t)return(0,a.jsx)(La,{});if(!e||r)return(0,a.jsx)(Ma,{});const c=C.stringify({query:s,se:i,search_type:l});return(0,a.jsxs)("div",{className:"df fdc",children:[(0,a.jsxs)("div",{className:"df jcsb mb60",children:[(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)(f.Link,{className:"mb10 fz16 color_grey medium link_text_current-color",to:{pathname:"/backlinks/refdomains/",search:c},children:(0,a.jsx)(f.Tooltip,{tooltipText:o("backlinks_summary_referring_domain_tooltip"),children:o("backlinks_summary_referring_domain")})}),(0,a.jsx)(gr.Value,{style:Ea,dynamic:e.referringDomainsDynamics,className:"fz20 medium fw600 lh-normal",renderValue:Ra,children:(0,rt.formatNumberLetter)(e.referringDomains)})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half",children:[(0,a.jsx)(f.Link,{className:"mb10 fz16 color_grey medium link_text_current-color",to:{pathname:"/backlinks/outdomains/",search:c},children:(0,a.jsx)(f.Tooltip,{tooltipText:o("backlinks_summary_external_domains_tooltip"),children:o("backlinks_summary_external_domains")})}),(0,a.jsx)(gr.Value,{style:Ea,className:"fz20 medium fw600 lh-normal",dynamic:e.externalDomainsDynamics,renderValue:Ra,children:(0,rt.formatNumberLetter)(e.externalDomains)})]})]}),(0,a.jsxs)("div",{className:"df jcsb",children:[(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)(f.Link,{className:"mb10 fz16 color_grey medium link_text_current-color",to:{pathname:"/backlinks/active-links/",search:c},children:(0,a.jsx)(f.Tooltip,{tooltipText:o("backlinks_summary_backlinks_tooltip"),children:o("backlinks_summary_backlinks")})}),(0,a.jsx)(gr.Value,{style:Ea,className:"fz20 medium fw600 lh-normal",dynamic:e.referringLinksDynamics,renderValue:Ra,children:(0,rt.formatNumberLetter)(e.referringLinks)})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half",children:[(0,a.jsx)(f.Link,{className:"mb10 fz16 color_grey medium link_text_current-color",to:{pathname:"/backlinks/outlinks/",search:c},children:(0,a.jsx)(f.Tooltip,{tooltipText:o("backlinks_summary_external_links_tooltip"),children:o("backlinks_summary_external_links")})}),(0,a.jsx)(gr.Value,{style:Ea,className:"fz20 medium fw600 lh-normal",dynamic:e.outlinksTotalDynamics,renderValue:Ra,children:(0,rt.formatNumberLetter)(e.outlinksTotal)})]})]})]})},Fa=["#EC3D4C","#FA9927","#51A9FD"],Va=({data:e,label:t})=>(0,a.jsxs)("div",{className:"chart-pie",style:{width:215},children:[(0,a.jsx)(Vt.PieChart,{width:215,height:215,tabIndex:-1,
1children:(0,a.jsx)(Ut.Pie,{data:e,cx:103,cy:103,innerRadius:97.5,outerRadius:107.5,fill:"#8884d8",paddingAngle:e.length>1?4:0,dataKey:"value",stroke:"none",children:e.map((e,t)=>(0,a.jsx)(qt.Cell,{fill:e.color||Fa[t%Fa.length]},`cell-${t}`))})}),(0,a.jsx)("div",{className:"chart-pie__label fz36 ff-Inter normal tac df fdc aic",children:t})]}),Ua=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic mb20",children:[(0,a.jsx)("div",{className:"mr40",children:(0,a.jsx)(Va,{data:[{name:"loading",value:50,color:"var(--skeleton-color)"},{name:"loading",value:50,color:"var(--skeleton-color)"}]})}),(0,a.jsxs)("div",{className:"fg1 pr20",children:[(0,a.jsxs)(gr,{className:"mb10",children:[(0,a.jsx)(gr.Circle,{fill:"#4D9473"}),(0,a.jsx)(gr.Name,{children:e("fnf_follow")}),(0,a.jsx)(gr.Value,{children:(0,a.jsx)("div",{style:{width:45,height:39},children:(0,a.jsx)(ve.Placeholder,{width:45,height:39,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"43",height:"35"})})})})]}),(0,a.jsxs)(gr,{className:"mb10",children:[(0,a.jsx)(gr.Circle,{fill:"#F63D68"}),(0,a.jsx)(gr.Name,{children:e("fnf_nofollow")}),(0,a.jsx)(gr.Value,{children:(0,a.jsx)("div",{style:{width:72,height:39},children:(0,a.jsx)(ve.Placeholder,{width:72,height:39,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"70",height:"35"})})})})]})]})]})},qa=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic jcc fdc",style:{height:215},children:[(0,a.jsx)(Or,{}),(0,a.jsx)("div",{className:"fz14 mb5 fw600",children:e("distr_by_country_no_data_title")}),(0,a.jsx)("p",{className:"color_grey medium",children:e("distr_by_country_no_data_desc")})]})},Ha=({summaryData:e,summaryDataLoading:t,summaryDataError:r})=>{const s=(0,y.useLocation)(),{t:l}=(0,n.useTranslation)("summary"),o=(0,a.jsx)("h4",{className:"fz18 mb60 ff-Inter df jcsb aic",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:l("fnf_title_tooltip"),children:(0,a.jsx)(f.Link,{to:"/backlinks/active-links/",className:"link_text_current-color",children:l("fnf_title")})})}),c=(0,i.useMemo)(()=>[{name:l("fnf_follow"),value:Math.round(Ks(null==e?void 0:e.doFollowLinks).of((null==e?void 0:e.doFollowLinks)+(null==e?void 0:e.noFollowLinks))),color:"#4D9473"},{name:l("fnf_nofollow"),value:Math.round(Ks(null==e?void 0:e.noFollowLinks).of((null==e?void 0:e.doFollowLinks)+(null==e?void 0:e.noFollowLinks))),color:"#F63D68"}],[null==e?void 0:e.doFollowLinks,null==e?void 0:e.noFollowLinks,l]);if(t)return(0,a.jsxs)("div",{className:"ff-Inter",children:[o,(0,a.jsx)(Ua,{})]});if(r)return(0,a.jsxs)("div",{className:"ff-Inter",children:[o,(0,a.jsx)(qa,{})]});const[d,m]=c;return(0,a.jsxs)("div",{children:[o,(0,a.jsxs)("div",{className:"df aic mb20",children:[(0,a.jsx)("div",{className:"mr40",children:(0,a.jsx)(dr,{data:c})}),(0,a.jsxs)("div",{className:"fg1 pr20",children:[(0,a.jsxs)(gr,{className:"mb10",children:[(0,a.jsx)(gr.Circle,{fill:"#4D9473"}),(0,a.jsx)(gr.Name,{children:l("fnf_follow")}),(0,a.jsx)(gr.Value,{children:(0,a.jsxs)(f.Link,{className:"link_text",to:{pathname:"/backlinks/active-links/",search:`${s.search}&filter:0:1:link_nofollow:contains:value=0`},children:[d.value,"%"]})})]}),(0,a.jsxs)(gr,{className:"mb10",children:[(0,a.jsx)(gr.Circle,{fill:"#F63D68"}),(0,a.jsx)(gr.Name,{children:l("fnf_nofollow")}),(0,a.jsx)(gr.Value,{children:(0,a.jsxs)(f.Link,{className:"link_text",to:{pathname:"/backlinks/active-links/",search:`${s.search}&filter:0:1:link_nofollow:contains:value=1`},children:[m.value,"%"]})})]})]})]})]})},Ya=new Array(7).fill(void 0),$a=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl medium",children:e("backlinks_distribution_type_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:e("backlinks_distribution_share_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:e("backlinks_distribution_links_td")})]})}),(0,a.jsxs)("tbody",{children:[Ya.map((e,t)=>(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:130,height:16},children:(0,a.jsxs)(ve.Placeholder,{width:130,height:16,children:[(0,a.jsx)("rect",{x:"1",y:"0.5",width:"20",height:"15",rx:"4"}),(0,a.jsx)("rect",{x:"25",y:"0.5",width:"85",height:"15",rx:"4"})]})})}),(0,a.jsx)(Ar.Td,{className:"tc fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:44,height:16},children:(0,a.jsx)(ve.Placeholder,{width:44,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"42",height:"15",rx:"4"})})})}),(0,a.jsx)(Ar.Td,{className:"tr fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:43,height:16},children:(0,a.jsx)(ve.Placeholder,{width:43,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"41",height:"15",rx:"4"})})})})]},t)),(0,a.jsx)(Ar.Tr,{})]})]})})},Ga=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic jcc fdc",style:{height:285},children:[(0,a.jsx)(Or,{alt:"Not have data"}),(0,a.jsx)("div",{className:"fz14 mb5 fw600",children:e("backlinks_distribution_no_data_title")}),(0,a.jsx)("p",{className:"color_grey medium",children:e("backlinks_distribution_no_data_desc")})]})},Ka=({children:e})=>e>0&&e<1?(0,a.jsx)(a.Fragment,{children:"<1%"}):(0,a.jsx)(a.Fragment,{children:`${Math.round(e)}%`}),Wa="backlinksDistribution___fJlZG",Za=({summaryData:e,summaryDataLoading:t,summaryDataError:r})=>{var s;const{t:i}=(0,n.useTranslation)("summary"),{query:l,search_type:o}=(0,d.useSelector)(e=>e.searchBar),{data:c,loading:m,error:u}=(0,je.useProcedure)(["backlinks.getTopAnchors",{query:null==l?void 0:l.toLowerCase(),searchType:o,limit:6,useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>{var t;return 32015===(null==(t=e.error)?void 0:t.code)},"backlinks.getTopAnchors")]}],[l,o]),h=(0,a.jsx)("h4",{className:"fz18 mb16 ff-Inter df jcsb aic",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:i("backlinks_distribution_title_tooltip"),children:(0,a.jsx)(f.Link,{to:"/backlinks/active-links/",className:"link_text_current-color",children:i("backlinks_distribution_title")})})});return t||m?(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[h,(0,a.jsx)($a,{})]}):!(null==(s=null==c?void 0:c.data)?void 0:s.length)||u||r?(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[h,(0,a.jsx)(Ga,{})]}):(0,a.jsxs)(f.Card,{className:ur()("p25 pl30 pr30 ff-Inter fdc",Wa),rounded:!0,children:[h,(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl medium",children:(0,a.jsx)(f.Tooltip,{tooltipText:i("backlinks_distribution_type_td_tooltip"),children:i("backlinks_distribution_type_td")})}),(0,a.jsx)(Ar.Td,{className:"medium",children:(0,a.jsx)(f.Tooltip,{tooltipText:i("backlinks_distribution_share_td_tooltip"),children:i("backlinks_distribution_share_td")})}),(0,a.jsx)(Ar.Td,{className:"medium",children:(0,a.jsx)(f.Tooltip,{tooltipText:i("backlinks_distribution_links_td_tooltip"),children:i("backlinks_distribution_links_td")})})]})}),(0,a.jsxs)("tbody",{children:[(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl",children:"text"}),(0,a.jsx)(Ar.Td,{children:(0,a.jsx)(Ka,{children:Ks(e.typeText).of(c.totalLinks)})}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.typeText)})]}),(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl",children:"image"}),(0,a.jsx)(Ar.Td,{children:(0,a.jsx)(Ka,{children:Ks(e.typeImg).of(c.totalLinks)})}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.typeImg)})]}),(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl",children:"redirect"}),(0,a.jsx)(Ar.Td,{children:(0,a.jsx)(Ka,{children:Ks(e.typeRedirect).of(c.totalLinks)})}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.typeRedirect)})]}),(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl",children:"canonical"}),(0,a.jsx)(Ar.Td,{children:(0,a.jsx)(Ka,{children:Ks(e.typeCanonical).of(c.totalLinks)})}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.typeCanonical)})]}),(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl",children:"alternate"}),(0,a.jsx)(Ar.Td,{children:(0,a.jsx)(Ka,{children:Ks(e.typeAlt).of(c.totalLinks)})}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.typeAlt)})]}),(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl",children:"frame"}),(0,a.jsx)(Ar.Td,{children:(0,a.jsx)(Ka,{children:Ks(e.typeFrame).of(c.totalLinks)})}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.typeFrame)})]}),(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl",children:"form"}),(0,a.jsx)(Ar.Td,{children:(0,a.jsx)(Ka,{children:Ks(e.typeForm).of(c.totalLinks)})}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.typeForm)})]}),(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl",children:"rss"}),(0,a.jsx)(Ar.Td,{children:(0,a.jsx)(Ka,{children:Ks(e.typeRss).of(c.totalLinks)})}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.typeRss)})]}),(0,a.jsx)(Ar.Tr,{})]})]})]})},Qa={marginLeft:0},Xa=(0,a.jsx)("div",{style:{width:50,height:24},children:(0,a.jsx)(ve.Placeholder,{width:50,height:24,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"48",height:"22",rx:"4"})})}),Ja=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic jcsb",children:[(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr45",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_backlinks")}),(0,a.jsx)(gr.Value,{style:Qa,className:"fz20 medium fw600 lh-normal",children:Xa})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr45",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_referring_domain")}),(0,a.jsx)(gr.Value,{style:Qa,className:"fz20 medium fw600 lh-normal",children:Xa})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr45",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("domain_overview::overview_domain_traffic")}),(0,a.jsx)(gr.Value,{style:Qa,className:"fz20 medium fw600 lh-normal",children:Xa})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr45",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("domain_overview::overview_domain_keyword_selection")}),(0,a.jsx)(gr.Value,{style:Qa,className:"fz20 medium fw600 lh-normal",children:Xa})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("domain_overview::overview_domain_ads_keywords")}),(0,a.jsx)(gr.Value,{style:Qa,className:"fz20 medium fw600 lh-normal",children:Xa})]})]})},ei={marginLeft:0},ti=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic jcsb",children:[(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_backlinks")}),(0,a.jsx)(gr.Value,{style:ei,className:"fz20 medium fw600 lh-normal",children:"--"})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("backlinks_summary_referring_domain")}),(0,a.jsx)(gr.Value,{style:ei,className:"fz20 medium fw600 lh-normal",children:"--"})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("domain_overview::overview_domain_traffic")}),(0,a.jsx)(gr.Value,{style:ei,className:"fz20 medium fw600 lh-normal",children:"--"})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("domain_overview::overview_domain_keyword_selection")}),(0,a.jsx)(gr.Value,{style:ei,className:"fz20 medium fw600 lh-normal",children:"--"})]}),(0,a.jsxs)(gr,{className:"border-left pl20 pt16 pb16 fdc aifs width_half mr60",children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:e("domain_overview::overview_domain_ads_keywords")}),(0,a.jsx)(gr.Value,{style:ei,className:"fz20 medium fw600 lh-normal",children:"--"})]})]})},ri="infoRow___WSJeH",si={marginLeft:0,marginTop:"auto"},ai=e=>(0,a.jsx)("span",{style:{fontSize:26},className:"medium mr5 lh-normal",children:e}),ii=e=>"number"===typeof e?(0,rt.formatNumberLetter)(e):"--",li=({data:e,loadingBacklinksSummary:t})=>{const{t:r}=(0,n.useTranslation)(["summary","domain_overview"]),{query:s,se:i,search_type:l}=(0,d.useSelector)(e=>e.searchBar),{data:o,loading:c}=(0,je.useProcedure)(["domains.getMainMetrics",{query:null==s?void 0:s.toLowerCase(),searchType:l,searchEngine:i,useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>{var t;return 0===(null==(t=e.result)?void 0:t.length)},"domains.getMainMetrics")]}],[s,l,i]);if(c||t)return(0,a.jsx)(Ja,{});return Boolean(e)||Boolean(o)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"df jcsb",children:[(0,a.jsxs)(gr,{className:ur()("border-left pt16 pb16 fdc aifs width_half",ri),children:[(0,a.jsx)(f.Link,{className:"mb10 fz16 color_grey medium df link_text_current-color",to:{pathname:"/backlinks/active-links/",search:C.stringify({query:s,se:i,search_type:l})},children:(0,a.jsxs)(f.Tooltip,{theme:"new",tooltipText:r("global_data_tooltip"),children:[r("backlinks_summary_backlinks"),(0,a.jsx)(ar,{className:"ml5"})]})}),(0,a.jsx)(gr.Value,{style:si,className:"fz20 medium fw600 lh-normal",dynamic:null==e?void 0:e.referringLinksDynamics,renderValue:ai,children:null===(null==e?void 0:e.referringLinks)?"--":ii(null==e?void 0:e.referringLinks)})]}),(0,a.jsxs)(gr,{className:ur()("border-left pt16 pb16 fdc aifs width_half",ri),children:[(0,a.jsx)(f.Link,{className:"mb10 fz16 color_grey medium df link_text_current-color",to:{pathname:"/backlinks/refdomains/",search:C.stringify({query:s,se:i,search_type:l})},children:(0,a.jsxs)(f.Tooltip,{theme:"new",tooltipText:r("global_data_tooltip"),children:[r("backlinks_summary_referring_domain"),(0,a.jsx)(ar,{className:"ml5"})]})}),(0,a.jsx)(gr.Value,{style:si,dynamic:null==e?void 0:e.referringDomainsDynamics,className:"fz20 medium fw600 lh-normal",renderValue:ai,children:null===(null==e?void 0:e.referringDomains)?"--":ii(null==e?void 0:e.referringDomains)})]}),(0,a.jsxs)(gr,{className:ur()("border-left pt16 pb16 fdc aifs width_half",ri),children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:r("domain_overview::overview_domain_traffic")}),(0,a.jsx)(gr.Value,{style:si,className:"fz20 medium fw600 lh-normal",renderValue:ai,children:null===(null==o?void 0:o.seTraffic)?"--":ii(null==o?void 0:o.seTraffic)})]}),(0,a.jsxs)(gr,{className:ur()("border-left pt16 pb16 fdc aifs width_half",ri),children:[(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:r("domain_overview::traffic_ai_tooltip"),children:(0,a.jsxs)("span",{className:"mb10 fz16 color_grey medium df ject-center",style:{textAlign:"left"},children:[r("domain_overview::traffic_ai"),(0,a.jsx)("span",{className:"new-label",children:"New"})]})}),(0,a.jsx)(gr.Value,{style:si,className:"fz20 medium fw600 lh-normal",renderValue:ai,children:null===(null==o?void 0:o.aiTraffic)?"--":ii(null==o?void 0:o.aiTraffic)})]})]}),(0,a.jsxs)("div",{className:"df jcsb",children:[(0,a.jsxs)(gr,{className:ur()("border-left pt16 pb16 fdc aifs width_half",ri),children:[(0,a.jsx)(f.Link,{className:"mb10 fz16 color_grey medium df aic link_text_current-color",to:{pathname:"/domains/search/",search:C.stringify({query:s,se:i,search_type:l,"filter:0:0:block_condition":"and","filter:0:0:field":"first_position","filter:0:0:condition":"not_contain","filter:0:0:value":""})},children:r("domain_overview::overview_domain_keyword_selection")}),(0,a.jsx)(gr.Value,{style:si,className:"fz20 medium fw600 lh-normal",renderValue:ai,children:null===(null==o?void 0:o.organicKeywords)?"--":ii(null==o?void 0:o.organicKeywords)})]}),(0,a.jsxs)(gr,{className:ur()("border-left pt16 pb16 fdc aifs width_half",ri),children:[(0,a.jsx)(f.Link,{clas
1sName:"mb10 fz16 color_grey medium df aic link_text_current-color",to:{pathname:"/domains/search/",search:C.stringify({query:s,se:i,search_type:l,"filter:0:0:block_condition":"and","filter:0:0:field":"first_position","filter:0:0:condition":"not_contain","filter:0:0:value":""})+"&filter:0:0:block_condition=and&filter:0:0:field=types&filter:0:0:condition=contain&filter:0:0:value=ai_overview"},children:(0,a.jsxs)("span",{className:"mb10 fz16 color_grey medium df ject-center",style:{textAlign:"left"},children:[r("domain_overview::aio_keywords"),(0,a.jsx)("span",{className:"new-label",children:"New"})]})}),(0,a.jsx)(gr.Value,{style:si,className:"fz20 medium fw600 lh-normal",renderValue:ai,children:(null==o?void 0:o.aiKeywords)?ii(null==o?void 0:o.aiKeywords):"n/a"})]}),(0,a.jsxs)(gr,{className:ur()("border-left pt16 pb16 fdc aifs width_half",ri),children:[(0,a.jsx)(f.Link,{className:"mb10 fz16 color_grey medium df aic link_text_current-color",to:{pathname:"/domains/search/",search:C.stringify({query:s,se:i,search_type:l,"filter:0:0:block_condition":"and","filter:0:0:field":"first_position","filter:0:0:condition":"not_contain","filter:0:0:value":""})+"&filter:0:0:field=types&filter:0:0:condition=contain&filter:0:0:value=snip_url_in_aio"},children:(0,a.jsxs)("span",{className:"mb10 fz16 color_grey medium df ject-center",style:{textAlign:"left"},children:[r("domain_overview::aio_citations"),(0,a.jsx)("span",{className:"new-label",children:"New"})]})}),(0,a.jsx)(gr.Value,{style:si,className:"fz20 medium fw600 lh-normal",renderValue:ai,children:(null==o?void 0:o.aiCitations)?ii(null==o?void 0:o.aiCitations):"n/a"})]}),(0,a.jsxs)(gr,{className:ur()("border-left pt16 pb16 fdc aifs width_half",ri),children:[(0,a.jsx)(f.Link,{className:"mb10 fz16 color_grey medium df aic link_text_current-color",to:{pathname:"/domains/ad/",search:C.stringify({query:s,se:i,search_type:l})},children:r("domain_overview::overview_domain_ads_keywords")}),(0,a.jsx)(gr.Value,{style:si,className:"fz20 medium fw600 lh-normal",renderValue:ai,children:null===(null==o?void 0:o.ppcKeywords)?"--":ii(null==o?void 0:o.ppcKeywords)})]})]})]}):(0,a.jsx)(ti,{})};var ni=r(57097),oi=r(71468),ci=Object.defineProperty,di=Object.defineProperties,mi=Object.getOwnPropertyDescriptors,ui=Object.getOwnPropertySymbols,hi=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,xi=(e,t,r)=>t in e?ci(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const fi=[{methodName:"dashboard.getAiTraffic",hasData:!1},{methodName:"backlinks.getSummaryData",hasData:!1},{methodName:"backlinks.getTopAnchors",hasData:!0},{methodName:"domains.getMainMetrics",hasData:!1},{methodName:"dashboard.getCompetitorsGraph",hasData:!1},{methodName:"dashboard.getOrganicCompetitors",hasData:!0},{methodName:"dashboard.getPositionDistributionByKeywordsChart",hasData:!0},{methodName:"domains.getKeywordsTrendChart",hasData:!0},{methodName:"dashboard.getOrganicKeywords",hasData:!0},{methodName:"domainRating.getDomainRank",hasData:!0},{methodName:"domains.getTrafficTrendChart",hasData:!0},{methodName:"domains.getVisibilityTrendChart",hasData:!0}],yi=()=>{const{t:e}=(0,n.useTranslation)("summary"),{query:t}=(0,oi.useSelector)(e=>e.searchBar),[r,s]=(0,i.useState)(!1),[l,o]=(0,i.useState)(fi);return(0,i.useEffect)(()=>
1{document.addEventListener("summary.noHaveData",({detail:e={}})=>{o(t=>t.map(t=>{return t.methodName===e.methodName?(r=((e,t)=>{for(var r in t||(t={}))hi.call(t,r)&&xi(e,r,t[r]);if(ui)for(var r of ui(t))pi.call(t,r)&&xi(e,r,t[r]);return e})({},t),di(r,mi({hasData:!1}))):t;var r}))})},[]),(0,i.useEffect)(()=>{l.every(({hasData:e})=>!e)&&s(!0)},[l]),(0,i.useEffect)(()=>{s(!1),o(fi)},[t]),r?(0,a.jsxs)("div",{className:"mb60",children:[(0,a.jsx)("div",{className:"fz20 mb10 bold",children:e("summary::no_have_data_title")}),(0,a.jsx)("div",{children:e("summary::no_have_data_desc")})]}):null},ji="printWindow";function _i({level:e="error",messages:t,suppressErrors:r=!1}){r||"error"===e&&console.error(t)}function gi(e,t){if(t||!e){const e=document.getElementById(ji);e&&document.body.removeChild(e)}}function vi(e){return e instanceof Error?e:new Error("Unknown Error")}function bi(e,t){const{documentTitle:r,onAfterPrint:s,onPrintError:a,preserveAfterPrint:i,print:l,suppressErrors:n}=t;setTimeout(()=>{if(e.contentWindow){let t=function(){s?.(),gi(i)};if(e.contentWindow.focus(),l)l(e).then(t).catch(e=>{a?a("print",vi(e)):_i({messages:["An error was thrown by the specified `print` function"],suppressErrors:n})});else{if(e.contentWindow.print){const t=e.contentDocument?.title??"",s=e.ownerDocument.title,a="function"==typeof r?r():r;a&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=a)),e.contentWindow.print(),a&&(e.ownerDocument.title=s,e.contentDocument&&(e.contentDocument.title=t))}else _i({messages:["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."],suppressErrors:n});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>(navigator.userAgent??navigator.vendor??("opera"in window&&window.opera)).match(e))?setTimeout(t,500):t()}}else _i({messages:["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/MatthewHerbst/react-to-print/issues/"],suppressErrors:n})},500)}function Ni(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null);let s=r.nextNode();for(;s;)t.push(s),s=r.nextNode();return t}function wi(e,t,r){const s=Ni(e),a=Ni(t);if(s.length===a.length)for(let e=0;e<s.length;e++){const t=s[e],i=a[e],l=t.shadowRoot;if(null!==l){const e=i.attachShadow({mode:l.mode});e.innerHTML=l.innerHTML,wi(l,e,r)}}else _i({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",e,t],suppressErrors:r})}function Ti(e,t,r){const{contentNode:s,clonedContentNode:a,clonedImgNodes:i,clonedVideoNodes:l,numResourcesToLoad:n,originalCanvasNodes:o}=t,{bodyClass:c,fonts:d,ignoreGlobalStyles:m,pageStyle:u,nonce:h,suppressErrors:p,copyShadowRoots:x}=r,f=[],y=[];function j(t,s){f.includes(t)?_i({level:"debug",messages:["Tried to mark a resource that has already been handled",t],suppressErrors:p}):(s?(_i({messages:['"react-to-print" was unable to load a resource but will continue attempting to print the page',...s],suppressErrors:p}),y.push(t)):f.push(t),f.length+y.length===n&&bi(e,r))}e.onload=null;const _=e.contentDocument??e.contentWindow?.document;if(_){const t=_.body.appendChild(a);x&&wi(s,t,!!p),d&&(e.contentDocument?.fonts&&e.contentWindow?.FontFace?d.forEach(t=>{const r=new FontFace(t.family,t.source,{weight:t.weight,style:t.style});e.contentDocument.fonts.add(r),r.loaded.then(()=>{j(r)}).catch(e=>{j(r,["Failed loading the font:",r,"Load error:",vi(e)])})}):(d.forEach(e=>{j(e)}),_i({messages:['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'],suppressErrors:p})));const r=u??'\n    @page {\n        /* Remove browser default header (title) and footer (url) */\n        margin: 0;\n    }\n    @media print {\n        body {\n            /* Tell browsers to print background colors */\n            color-adjust: exact; /* Firefox. This is an older version of "print-color-adjust" */\n            print-color-adjust: exact; /* Firefox/Safari */\n            -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n        }\n    }\n',n=_.createElement("style");h&&(n.setAttribute("nonce",h),_.head.setAttribute("nonce",h)),n.appendChild(_.createTextNode(r)),_.head.appendChild(n),c&&_.body.classList.add(...c.split(" "));const f=_.querySelectorAll("canvas");for(let e=0;e<o.length;++e){const t=o[e],r=f[e];if(void 0===r){_i({messages:["A canvas element could not be copied for printing, has it loaded? `onBeforePrint` likely resolved too early.",t],suppressErrors:p});continue}const s=r.getContext("2d");s&&s.drawImage(t,0,0)}for(let e=0;e<i.length;e++){const t=i[e],r=t.getAttribute("src");if(r){const e=new Image;e.onload=()=>{j(t)},e.onerror=(e,r,s,a,i)=>{j(t,["Error loading <img>",t,"Error",i])},e.src=r}else j(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it.',t])}for(let e=0;e<l.length;e++){const t=l[e];t.preload="auto";const r=t.getAttribute("poster");if(r){const e=new Image;e.onload=()=>{j(t)},e.onerror=(e,s,a,i,l)=>{j(t,["Error loading video poster",r,"for video",t,"Error:",l])},e.src=r}else t.readyState>=2?j(t):t.src?(t.onloadeddata=()=>{j(t)},t.onerror=(e,r,s,a,i)=>{j(t,["Error loading video",t,"Error",i])},t.onstalled=()=>{j(t,["Loading video stalled, skipping",t])}):j(t,["Error loading video, `src` is empty",t])}const y="select",g=s.querySelectorAll(y),v=_.querySelectorAll(y);for(let e=0;e<g.length;e++)v[e].value=g[e].value;if(!m){const e=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']");for(let t=0,r=e.length;t<r;++t){const r=e[t];if("style"===r.tagName.toLowerCase()){const e=_.createElement(r.tagName),s=r.sheet;if(s){let a="";try{const e=s.cssRules.length;for(let t=0;t<e;++t)"string"==typeof s.cssRules[t].cssText&&(a+=`${s.cssRules[t].cssText}\r\n`)}catch(e){_i({messages:["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/MatthewHerbst/react-to-
1print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",r,`Original error: ${vi(e).message}`],level:"warning"})}e.setAttribute("id",`react-to-print-${t}`),h&&e.setAttribute("nonce",h),e.appendChild(_.createTextNode(a)),_.head.appendChild(e)}}else if(r.getAttribute("href"))if(r.hasAttribute("disabled"))_i({messages:["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",r],level:"warning"}),j(r);else{const e=_.createElement(r.tagName);for(let t=0,s=r.attributes.length;t<s;++t){const s=r.attributes[t];s&&e.setAttribute(s.nodeName,s.nodeValue??"")}e.onload=()=>{j(e)},e.onerror=(t,r,s,a,i)=>{j(e,["Failed to load",e,"Error:",i])},h&&e.setAttribute("nonce",h),_.head.appendChild(e)}else _i({messages:["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",r],level:"warning"}),j(r)}}}0===n&&bi(e,r)}function ki(e,t){const{contentRef:r,fonts:s,ignoreGlobalStyles:a,suppressErrors:i}=t,l=function({contentRef:e,optionalContent:t,suppressErrors:r}){return t&&"function"==typeof t?(e&&_i({level:"warning",messages:['"react-to-print" received a `contentRef` option and an optional-content param passed to its callback. The `contentRef` option will be ignored.']}),t()):e?e.current:void _i({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:r})}({contentRef:r,optionalContent:e,suppressErrors:i});if(!l)return;const n=l.cloneNode(!0),o=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),c=n.querySelectorAll("img"),d=n.querySelectorAll("video"),m=s?s.length:0;return{contentNode:l,clonedContentNode:n,clonedImgNodes:c,clonedVideoNodes:d,numResourcesToLoad:(a?0:o.length)+c.length+d.length+m,originalCanvasNodes:l.querySelectorAll("canvas")}}function Ai({bodyClass:e,contentRef:t,copyShadowRoots:r,documentTitle:s,fonts:a,ignoreGlobalStyles:l,nonce:n,onAfterPrint:o,onBeforePrint:c,onPrintError:d,pageStyle:m,preserveAfterPrint:u,print:h,printIframeProps:p,suppressErrors:x}){return(0,i.useCallback)(i=>{function f(){const c={bodyClass:e,contentRef:t,copyShadowRoots:r,documentTitle:s,fonts:a,ignoreGlobalStyles:l,nonce:n,onAfterPrint:o,onPrintError:d,pageStyle:m,preserveAfterPrint:u,print:h,suppressErrors:x},f=function(e){const t=document.createElement("iframe");return t.width=`${document.documentElement.clientWidth}px`,t.height=`${document.documentElement.clientHeight}px`,t.style.position="absolute",t.style.top=`-${document.documentElement.clientHeight+100}px`,t.style.left=`-${document.documentElement.clientWidth+100}px`,t.id=ji,t.srcdoc="<!DOCTYPE html>",e&&(e.allow&&(t.allow=e.allow),void 0!==e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),void 0!==e.sandbox&&(t.sandbox=e.sandbox)),t}(p),y=ki(i,c);y?function(e,t,r){e.onload=()=>{Ti(e,t,r)},document.body.appendChild(e)}(f,y,c):_i({messages:["There is nothing to print"],suppressErrors:x})}gi(u,!0),c?c().then(()=>{f()}).catch(e=>{d?.("onBeforePrint",vi(e))}):f()},[e,t,r,s,a,l,n,o,c,d,m,u,p,h,x])}var Ci=r(17618),Ii=r(90302),Di=r(42816),Pi=r(50300),Oi=r(53601),zi=r(6048),Si=r(45721),Li=r(16681);const Mi=[{yAxis:5,xAxis:1},{yAxis:3,xAxis:2},{yAxis:7,xAxis:3},{yAxis:3,xAxis:4},{yAxis:7,xAxis:5},{yAxis:3,xAxis:6},{yAxis:7,xAxis:7}],Ei=()=>(0,a.jsx)(Wr.ResponsiveContainer,{width:"100%",height:240,children:(0,a.jsx)(Si.LineChart,{data:Mi,margin:{top:5,left
1:-10,right:0,bottom:5},children:(0,a.jsx)(Li.Line,{type:"basis",dataKey:"yAxis",stroke:"var(--skeleton-color)",strokeWidth:8,dot:!1,isAnimationActive:!1})})});var Ri=r(95093),Bi=r.n(Ri),Fi=r(28429),Vi=r(94394),Ui=r.n(Vi),qi=r(55364),Hi=r.n(qi),Yi=Object.defineProperty,$i=Object.defineProperties,Gi=Object.getOwnPropertyDescriptors,Ki=Object.getOwnPropertySymbols,Wi=Object.prototype.hasOwnProperty,Zi=Object.prototype.propertyIsEnumerable,Qi=(e,t,r)=>t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const Xi=({se:e,dateFrom:t,dateTo:r,transformResponse:s})=>{const[a,l]=(0,i.useState)(),n=(0,je.useTrigger)(!1),{data:o,loading:c}=(0,je.useProcedure)(["analyticSearch.searchEngineUpdates",{searchEngine:e,dateFrom:t,dateTo:r,useCache:!0,transformResponse:s}],[e,t,r]);(0,i.useEffect)(()=>{(()=>{return e=null,t=null,r=function*(){n.on();const{data:e}=yield(0,Fi.getGoogleIncidents)(),t=e.map(({begin:e,end:t,external_desc:r})=>({date:Bi()(e).toISOString(),updates:[{date:Bi()(e).toISOString(),begin:e,end:t,comment:r}]}));l(t),n.off()},new Promise((s,a)=>{var i=e=>{try{n(r.next(e))}catch(e){a(e)}},l=e=>{try{n(r.throw(e))}catch(e){a(e)}},n=e=>e.done?s(e.value):Promise.resolve(e.value).then(i,l);n((r=r.apply(e,t)).next())});var e,t,r})()},[]);const d=(0,i.useMemo)(()=>{const e=Ui()(o||{},"date"),t=Object.entries(e).map(([e,t])=>({date:Bi()(e).toISOString(),updates:t.map(e=>{return t=((e,t)=>{for(var r in t||(t={}))Wi.call(t,r)&&Qi(e,r,t[r]);if(Ki)for(var r of Ki(t))Zi.call(t,r)&&Qi(e,r,t[r]);return e})({},e),r={date:Bi()(e.date).toISOString()},$i(t,Gi(r));var t,r})})),r=Hi()(Ui()(t,"date"),Ui()(a,"date"));return Object.entries(r).map(([e,[{date:t,updates:r}]])=>({date:t,updates:r}))},[a,o]),m=(0,i.useMemo)(()=>new Map(d.map(e=>[e.date,e])),[d]);return{loading:n.value||c,updates:d,updatesMapByDate:m}};var Ji=Object.getOwnPropertySymbols,el=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable;const rl=e=>{var t=e,{x1:r,y1:s,className:i}=t,l=((e,t)=>{var r={};for(var s in e)el.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&Ji)for(var s of Ji(e))t.indexOf(s)<0&&tl.call(e,s)&&(r[s]=e[s]);return r})(t,["x1","y1","className"]);return(0,a.jsx)("svg",{onClick:()=>{l.onClick({position:{x:r,y:s},date:l.x})},x:r-6,y:s,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",className:i,children:(0,a.jsx)("path",{d:"M5.30718 1.2C5.6151 0.666667 6.3849 0.666667 6.69282 1.2L10.5033 7.8C10.8113 8.33333 10.4264 9 9.81051 9H2.18949C1.57365 9 1.18875 8.33333 1.49667 7.8L5.30718 1.2Z",fill:"#EAB1B1"})})};var sl=r(73783),al=r(50014),il=r.n(al),ll=r(33031),nl=r.n(ll),ol=Object.defineProperty,cl=Object.defineProperties,dl=Object.getOwnPropertyDescriptors,ml=Object.getOwnPropertySymbols,ul=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable,pl=(e,t,r)=>t in e?ol(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const xl=(e,t)=>nl()(il()([...e,...t],"xAxis"),"xAxis").map((e,t,r)=>{return s=((e,t)=>{for(var r in t||(t={}))ul.call(t,r)&&pl(e,r,t[r]);if(ml)for(var r of ml(t))hl.call(t,r)&&pl(e,r,t[r]);return e})({},e),a={yAxis:e.yAxis||(0,sl.getPrevValue)(t,r)||(0,sl.getNextValue)(t,r)||0},cl(s,dl(a));var s,a});var fl=r(54628);const yl=({renderContent:e,children:t})=>{const[r,s]=(0,i.useState)({x:0,y:0}),[l,n]=(0,i.useState)(void 0),[o,c]=(0,i.useState)(!1),d=(0,i.useRef)();(0,fl.useCallbackOutsideClick)(d,()=>{c(!1),n(void 0)});return t({incedentNode:o?(0,a.jsx)("div",{className:"trends__incident_tooltip",style:{left:r.x-125||r.x,bottom:45},ref:d,children:(0,a.jsx)(ia,{active:!0,payload:[{payload:{xAxis:l,yAxis:15579}}],renderContent:e})}):null,incidentDate:l,setPosition:s,setIsOpen:c,setIncidentDate:n})},jl={className:"medium ff-Inter color_grey",style:{fontSize:11,transform:"translateX(-10px)"}},_l={top:5,left:-10,right:0,bottom:5},gl={stroke:"var(--color-neutral-s-neutral)",strokeWidth:2,strokeDasharray:"4 8"},vl=new Map;vl.set("traffic_new","domains.getAiTrafficTrendChart"),vl.set("traffic_old","domains.getTrafficTrendChart"),vl.set("visibility","domains.getVisibilityTrendChart");const bl=()=>{const{t:e,i18n:t}=(0,n.useTranslation)("summary"),[r,s]=(0,i.useState)("traffic_new"),[l,o]=(0,i.useState)("year"),{query:c,se:m,search_type:u}=(0,d.useSelector)(e=>e.searchBar),{data:h,loading:p}=(0,je.useProcedure)([vl.get(r),{query:null==c?void 0:c.toLowerCase(),searchEngine:m,searchType:u,dateFrom:"year"===l?Bi()().subtract(1,"year").format("YYYY-MM-DD"):null,dateTo:"year"===l?Bi()().format("YYYY-MM-DD"):null,useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>{var t;return!(null==e?void 0:e.result)||!(null==(t=null==e?void 0:e.result)?void 0:t.length)||(null==e?void 0:e.error)},vl.get(r),["domains.getAiTrafficTrendChart","domains.getTrafficTrendChart","domains.getVisibilityTrendChart"])]}],[c,m,u,r,l]),{updates:x,updatesMapByDate:y,loading:j}=Xi({se:m,dateFrom:"year"===l?Bi()().subtract(1,"year").format("YYYY-MM-DD"):null,dateTo:"year"===l?Bi()().format("YYYY-MM-DD"):null,transformResponse:[Bt(e=>{var t;return!(null==e?void 0:e.result)||!(null==(t=null==e?void 0:e.result)?void 0:t.length)||(null==e?void 0:e.error)},vl.get(r))]}),_=p||j,g=(0,i.useMemo)(()=>
1{if(h){const e=(e=>{const{xAxisData:t=[],graphData:r}=e;return t.map((e,t)=>({xAxis:e,yAxis:r[t]}))})(h),t=(e=>e.map(({date:e})=>({xAxis:e,yAxis:void 0})))(x);return xl(e,t)}return[]},[h,x]),v=(0,a.jsxs)("h3",{className:"fz28 mb25 ff-Inter df aic",children:[(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:e("traffic_title_tolltip"),children:(0,a.jsx)("span",{className:"strong",children:e("traffic_title")})}),(0,a.jsx)(Di.default,{className:"ml-auto mr15",theme:"new",value:r,items:[{text:e("traffic_new_choice"),value:"traffic_new",tooltipText:e("trends_traffic_new_tooltip")},{text:e("traffic_old_choice"),value:"traffic_old",tooltipText:e("trends_traffic_old_tooltip")},{text:e("traffic_visibility_choice"),value:"visibility",tooltipText:e("trends_visibility_tooltip")}],onChange:s}),(0,a.jsx)(Di.default,{theme:"new",value:l,items:[{text:e("traffic_year_choice"),value:"year"},{text:e("traffic_all_time_choice"),value:"all time"}],onChange:o})]});return _?(0,a.jsxs)("div",{children:[v,(0,a.jsx)(Ei,{})]}):(0,a.jsxs)("div",{style:{position:"relative"},children:[v,(0,a.jsx)(yl,{renderContent:t=>{var r,s;const i=y.get(null==(r=null==t?void 0:t.payload)?void 0:r.xAxis);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb5 fz13",children:(0,rt.formatDate)(null==(s=null==t?void 0:t.payload)?void 0:s.xAxis)}),i&&i.updates.map(({date:t,comment:r})=>(0,a.jsx)("div",{className:"color_grey",children:r||e("traffic_tooltip_google_update")},t))]})},children:({incedentNode:s,setPosition:i,setIsOpen:l,setIncidentDate:n,incidentDate:o})=>(0,a.jsxs)("div",{children:[(0,a.jsx)(Wr.ResponsiveContainer,{width:"100%",height:240,children:(0,a.jsxs)(Pi.AreaChart,{data:g,margin:_l,children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_9325_1578",x1:"531.999",y1:"-3.41052e-09",x2:"531.999",y2:"177.5",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#1559CB",stopOpacity:"0.1"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#1559CB",stopOpacity:"0"})]})}),x.map(({date:e})=>(0,a.jsx)(Oi.ReferenceLine,{x:e,shape:rl,incidentDate:o,onClick:({position:e,date:t})=>{n(t),i(e),l(!0)},className:ur()("trends-reference-line-shape",{"trends-reference-line-shape--active":o===e})},e)),(0,a.jsx)(Js.CartesianGrid,{vertical:!1,strokeDasharray:"10000"}),(0,a.jsx)(Qr.XAxis,{dataKey:"xAxis",axisLine:!1,tickLine:!1,tickMargin:10,minTickGap:100,tick:jl,tickFormatter:e=>Bi()(e).locale(t.language).format("MMMM, YYYY")}),(0,a.jsx)(Xr.YAxis,{axisLine:!1,tickLine:!1,tick:jl,tickFormatter:rt.formatNumberLetter}),(0,a.jsx)(sa.Tooltip,{cursor:gl,content:(0,a.jsx)(ia,{renderContent:t=>{var s,i,l;const n=y.get(null==(s=null==t?void 0:t.payload)?void 0:s.xAxis),o="visibility"===r?null==(i=null==t?void 0:t.payload)?void 0:i.yAxis:(0,rt.formatNumberLetter)(+Number(null==(l=null==t?void 0:t.payload)?void 0:l.yAxis).toFixed(2));return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb5 fz13",children:(0,rt.formatDate)(t.payload.xAxis)}),(0,a.jsxs)("div",{className:"mb5 fz13",children:[e(`traffic_tooltip_${r}`)," :"," ",(0,a.jsx)("span",{className:"fw600",children:o})]}),n&&n.updates.map(({date:t,comment:r})=>(0,a.jsx)("div",{className:"color_grey",children:r||e("traffic_tooltip_google_update")},t))]})}})}),(0,a.jsx)(zi.Area,{type:"basis",dataKey:"yAxis",stroke:"#1559CB",strokeWidth:2,fill:"url(#paint0_linear_9325_1578)",activeDot:(0,a.jsx)("circle",{r:"7",fill:"#1559CB",stroke:"white",strokeWidth:"2"})})]})}),s]})})]})},Nl=[{yAxis:5,xAxis:1},{yAxis:3,xAxis:2},{yAxis:7,xAxis:3},{yAxis:3,xAxis:4},{yAxis:7,xAxis:5},{yAxis:3,xAxis:6},{yAxis:7,xAxis:7}],wl=()=>(0,a.jsx)(Wr.ResponsiveContainer,{width:"100%",height:240,children:(0,a.jsx)(Si.LineChart,{data:Nl,margin:{top:5,left
1:-10,right:0,bottom:5},children:(0,a.jsx)(Li.Line,{type:"basis",dataKey:"yAxis",stroke:"var(--skeleton-color)",strokeWidth:8,dot:!1,isAnimationActive:!1})})});var Tl=Object.defineProperty,kl=Object.defineProperties,Al=Object.getOwnPropertyDescriptors,Cl=Object.getOwnPropertySymbols,Il=Object.prototype.hasOwnProperty,Dl=Object.prototype.propertyIsEnumerable,Pl=(e,t,r)=>t in e?Tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const Ol=({se:e,dateFrom:t,dateTo:r,transformResponse:s})=>{const[a,l]=(0,i.useState)(),n=(0,je.useTrigger)(!1),{data:o,loading:c}=(0,je.useProcedure)(["analyticSearch.searchEngineUpdates",{searchEngine:e,dateFrom:t,dateTo:r,useCache:!0,transformResponse:s}],[e,t,r]);(0,i.useEffect)(()=>{(()=>{return e=null,t=null,r=function*(){n.on();const{data:e}=yield(0,Fi.getGoogleIncidents)(),t=e.map(({begin:e,end:t,external_desc:r})=>({date:Bi()(e).toISOString(),updates:[{date:Bi()(e).toISOString(),begin:e,end:t,comment:r}]}));l(t),n.off()},new Promise((s,a)=>{var i=e=>{try{n(r.next(e))}catch(e){a(e)}},l=e=>{try{n(r.throw(e))}catch(e){a(e)}},n=e=>e.done?s(e.value):Promise.resolve(e.value).then(i,l);n((r=r.apply(e,t)).next())});var e,t,r})()},[]);const d=(0,i.useMemo)(()=>{const e=Ui()(o||{},"date"),t=Object.entries(e).map(([e,t])=>({date:Bi()(e).toISOString(),updates:t.map(e=>{return t=((e,t)=>{for(var r in t||(t={}))Il.call(t,r)&&Pl(e,r,t[r]);if(Cl)for(var r of Cl(t))Dl.call(t,r)&&Pl(e,r,t[r]);return e})({},e),r={date:Bi()(e.date).toISOString()},kl(t,Al(r));var t,r})})),r=Hi()(Ui()(t,"date"),Ui()(a,"date"));return Object.entries(r).map(([e,[{date:t,updates:r}]])=>({date:t,updates:r}))},[a,o]),m=(0,i.useMemo)(()=>new Map(d.map(e=>[e.date,e])),[d]);return{loading:n.value||c,updates:d,updatesMapByDate:m}};var zl=Object.getOwnPropertySymbols,Sl=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable;const Ml=e=>{var t=e,{x1:r,y1:s,className:i}=t,l=((e,t)=>{var r={};for(var s in e)Sl.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&zl)for(var s of zl(e))t.indexOf(s)<0&&Ll.call(e,s)&&(r[s]=e[s]);return r})(t,["x1","y1","className"]);return(0,a.jsx)("svg",{onClick:()=>{l.onClick({position:{x:r,y:s},date:l.x})},x:r-6,y:s,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",className:i,children:(0,a.jsx)("path",{d:"M5.30718 1.2C5.6151 0.666667 6.3849 0.666667 6.69282 1.2L10.5033 7.8C10.8113 8.33333 10.4264 9 9.81051 9H2.18949C1.57365 9 1.18875 8.33333 1.49667 7.8L5.30718 1.2Z",fill:"#EAB1B1"})})};var El=Object.defineProperty,Rl=Object.defineProperties,Bl=Object.getOwnPropertyDescriptors,Fl=Object.getOwnPropertySymbols,Vl=Object.prototype.hasOwnProperty,Ul=Object.prototype.propertyIsEnumerable,ql=(e,t,r)=>t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const Hl=(e,t)=>nl()(il()([...e,...t],"xAxis"),"xAxis").map((e,t,r)=>{return s=((e,t)=>{for(var r in t||(t={}))Vl.call(t,r)&&ql(e,r,t[r]);if(Fl)for(var r of Fl(t))Ul.call(t,r)&&ql(e,r,t[r]);return e})({},e),a={yAxis:e.yAxis||(0,sl.getPrevValue)(t,r)||(0,sl.getNextValue)(t,r)||0},Rl(s,Bl(a));var s,a}),Yl=({renderContent:e,children:t})=>{const[r,s]=(0,i.useState)({x:0,y:0}),[l,n]=(0,i.useState)(void 0),[o,c]=(0,i.useState)(!1),d=(0,i.useRef)();(0,fl.useCallbackOutsideClick)(d,()=>{c(!1),n(void 0)});return t({incedentNode:o?(0,a.jsx)("div",{className:"trends__incident_tooltip",style:{left:r.x-125||r.x,bottom:45},ref:d,children:(0,a.jsx)(ia,{active:!0,payload:[{payload:{xAxis:l,yAxis:15579}}],renderContent:e})}):null,incidentDate:l,setPosition:s,setIsOpen:c,setIncidentDate:n})},$l={className:"medium ff-Inter color_grey",style:{fontSize:11,transform:"translateX(-10px)"}},Gl={top:5,left:-10,right:0,bottom:5},Kl={stroke:"var(--color-neutral-s-neutral)",strokeWidth:2,strokeDasharray:"4 8"},Wl=new Map;Wl.set("keywords","domains.getKeywordsTrendChart"),Wl.set("aio_keywords","domains.getAiOverviewKeywordsTrendChart"),Wl.set("aio_citations","domains.getAiOverviewCitationsTrendChart");const Zl=()=>{const{t:e,i18n:t}=(0,n.useTranslation)("summary"),[r,s]=(0,i.useState)("keywords"),[l,o]=(0,i.useState)("year"),{query:c,se:m,search_type:u}=(0,d.useSelector)(e=>e.searchBar),{data:h,loading:p}=(0,je.useProcedure)([Wl.get(r),{query:null==c?void 0:c.toLowerCase(),searchEngine:m,searchType:u,dateFrom:"year"===l?Bi()().subtract(1,"year").format("YYYY-MM-DD"):null,dateTo:"year"===l?Bi()().format("YYYY-MM-DD"):null,useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>{var t;return!(null==e?void 0:e.result)||!(null==(t=null==e?void 0:e.result)?void 0:t.length)||(null==e?void 0:e.error)},Wl.get(r),["domains.getKeywordsTrendChart","domains.getAiOverviewKeywordsTrendChart","domains.getAiOverviewCitationsTrendChart"])]}],[c,m,u,r,l]),{updates:x,updatesMapByDate:y,loading:j}=Ol({se:m,dateFrom:"year"===l?Bi()().subtract(1,"year").format("YYYY-MM-DD"):null,dateTo:"year"===l?Bi()().format("YYYY-MM-DD"):null,transformResponse:[Bt(e=>{var t;return!(null==e?void 0:e.result)||!(null==(t=null==e?void 0:e.result)?void 0:t.length)||(null==e?void 0:e.error)},Wl.get(r))]}),_=p||j,g=(0,i.useMemo)(()=>
1{if(h){const e=(e=>{const{xAxisData:t=[],graphData:r}=e;return t.map((e,t)=>({xAxis:e,yAxis:r[t]}))})(h),t=(e=>e.map(({date:e})=>({xAxis:e,yAxis:void 0})))(x);return Hl(e,t)}return[]},[h,x]),v=(0,a.jsxs)("h3",{className:"fz28 mb25 ff-Inter df aic",children:[(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:e("keywords_title_tolltip"),children:(0,a.jsx)("span",{className:"strong",children:e("keywords_title")})}),(0,a.jsx)(Di.default,{className:"ml-auto mr15",theme:"new",value:r,items:[{text:e("keywords_choice"),value:"keywords",tooltipText:e("keywords_tooltip")},{text:e("aio_keywords_choice"),value:"aio_keywords",tooltipText:e("aio_keywords_tooltip")},{text:e("aio_citations_choice"),value:"aio_citations",tooltipText:e("aio_mentions_tooltip")}],onChange:s}),(0,a.jsx)(Di.default,{theme:"new",value:l,items:[{text:e("keywords_year_choice"),value:"year"},{text:e("keywords_all_time_choice"),value:"all time"}],onChange:o})]});return _?(0,a.jsxs)("div",{children:[v,(0,a.jsx)(wl,{})]}):(0,a.jsxs)("div",{style:{position:"relative"},children:[v,(0,a.jsx)(Yl,{renderContent:t=>{const r=y.get(t.payload.xAxis);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb5 fz13",children:(0,rt.formatDate)(t.payload.xAxis)}),r&&r.updates.map(({date:t,comment:r})=>(0,a.jsx)("div",{className:"color_grey",children:r||e("keywords_tooltip_google_update")},t))]})},children:({incedentNode:s,setPosition:i,setIsOpen:l,setIncidentDate:n,incidentDate:o})=>(0,a.jsxs)("div",{children:[(0,a.jsx)(Wr.ResponsiveContainer,{width:"100%",height:240,children:(0,a.jsxs)(Pi.AreaChart,{data:g,margin:Gl,children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_9325_1578",x1:"531.999",y1:"-3.41052e-09",x2:"531.999",y2:"177.5",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#1559CB",stopOpacity:"0.1"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#1559CB",stopOpacity:"0"})]})}),x.map(({date:e})=>(0,a.jsx)(Oi.ReferenceLine,{x:e,shape:Ml,incidentDate:o,onClick:({position:e,date:t})=>{n(t),i(e),l(!0)},className:ur()("trends-reference-line-shape",{"trends-reference-line-shape--active":o===e})},e)),(0,a.jsx)(Js.CartesianGrid,{vertical:!1,strokeDasharray:"10000"}),(0,a.jsx)(Qr.XAxis,{dataKey:"xAxis",axisLine:!1,tickLine:!1,tickMargin:10,minTickGap:100,tick:$l,tickFormatter:e=>Bi()(e).locale(t.language).format("MMMM, YYYY")}),(0,a.jsx)(Xr.YAxis,{axisLine:!1,tickLine:!1,tick:$l,tickFormatter:rt.formatNumberLetter}),(0,a.jsx)(sa.Tooltip,{cursor:Kl,content:(0,a.jsx)(ia,{renderContent:t=>{var s;const i=y.get(t.payload.xAxis);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb5 fz13",children:(0,rt.formatDate)(t.payload.xAxis)}),(0,a.jsxs)("div",{className:"mb5 fz13",children:[e(`keywords_tooltip_${r}`)," :"," ",(0,a.jsx)("span",{className:"fw600",children:(0,rt.formatNumberLetter)(+(null==(s=t.payload.yAxis)?void 0:s.toFixed(2)))})]}),i&&i.updates.map(({date:t,comment:r})=>(0,a.jsx)("div",{className:"color_grey",children:r||e("keywords_tooltip_google_update")},t))]})}})}),(0,a.jsx)(zi.Area,{type:"basis",dataKey:"yAxis",stroke:"#1559CB",strokeWidth:2,fill:"url(#paint0_linear_9325_1578)",activeDot:(0,a.jsx)("circle",{r:"7",fill:"#1559CB",stroke:"white",strokeWidth:"2"})})]})}),s]})})]})},Ql=["#EC3D4C","#FABF27","#17B26A"],Xl=()=>{var e;const{t}=(0,n.useTranslation)("summary"),{query:r,se:s,search_type:i}=(0,d.useSelector)(e=>e.searchBar),{data:l,loading:o}=(0,je.useProcedure)(["domains.getMainMetrics",{query:null==r?void 0:r.toLowerCase(),searchType:i,searchEngine:s,useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>{var t;return 0===(null==(t=e.result)?void 0:t.length)},"domains.getMainMetrics")]}],[r,s,i]),c=(m=null==l?void 0:l.aiScore)<1?Ql[0]:m>=1&&m<5?Ql[1]:m>=5?Ql[2]:Ql[0];var m;return(0,a.jsx)("div",{className:"df jcc",children:(0,a.jsxs)("div",{className:"ff-Inter",children:[(0,a.jsx)("h4",{className:"fz18 mb10",children:(0,a.jsxs)(f.Tooltip,{theme:"new",tooltipText:t("aio_score_title_tooltip"),classNameTrigger:"df aic",children:[t("aio_score_title"),(0,a.jsx)(rr.default,{value:"New",className:"aside_note aside_note--new"})]})}),(0,a.jsx)(Jt,{isLoading:o,percent:(null==l?void 0:l.aiScore)>1?Math.round(null==l?void 0:l.aiScore):+(null==(e=null==l?void 0:l.aiScore)?void 0:e.toFixed(2))||0,color:c,label:null===(null==l?void 0:l.aiScore)?(0,a.jsxs)("div",{className:"df fdc aic",style:{transform:"translateY(26px)"},children:[(0,a.jsx)("span",{className:"mb15",children:"--%"}),(0,a.jsx)("span",{style:{color:"#D6DEE9"},className:"uppercase color_grey fz12",children:t("summary::no_score")})]}):void 0})]})})};var Jl=r(22516);const en=new Array(10).fill(void 0),tn=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Ar,{className:"fz13 normal tr",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl medium",children:e("top_pages_url_td")}
1),(0,a.jsx)(Ar.Td,{className:"medium",children:e("top_pages_keywords_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:e("top_pages_traffic_td")}),(0,a.jsx)(Ar.Td,{className:"tc medium",children:e("top_pages_traffic_share_td")})]})}),(0,a.jsxs)("tbody",{children:[en.map((e,t)=>(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:"tl fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:250,height:16},children:(0,a.jsxs)(ve.Placeholder,{width:250,height:16,children:[(0,a.jsx)("rect",{x:"1",y:"0.5",width:"16",height:"15",rx:"4"}),(0,a.jsx)("rect",{x:"22",y:"0.5",width:"200",height:"15",rx:"4"})]})})}),(0,a.jsx)(Ar.Td,{className:"tr fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:50,height:16},children:(0,a.jsx)(ve.Placeholder,{width:50,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"48",height:"15",rx:"4"})})})}),(0,a.jsx)(Ar.Td,{className:"tr fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:50,height:16},children:(0,a.jsx)(ve.Placeholder,{width:50,height:16,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"48",height:"15",rx:"4"})})})}),(0,a.jsx)(Ar.Td,{className:"tc fz0",children:(0,a.jsx)("div",{className:"dib",style:{width:110,height:16},children:(0,a.jsxs)(ve.Placeholder,{width:110,height:16,children:[(0,a.jsx)("rect",{x:"1",y:"0.5",width:"63",height:"15",rx:"4"}),(0,a.jsx)("rect",{x:"70",y:"0.5",width:"38",height:"15",rx:"4"})]})})})]},t)),(0,a.jsx)(Ar.Tr,{})]})]}),(0,a.jsx)("div",{className:"fz13 normal color_grey mt30",children:(0,a.jsx)("div",{style:{width:148,height:18},children:(0,a.jsx)(ve.Placeholder,{width:148,height:18,children:(0,a.jsx)("rect",{x:"1",y:"2",rx:"4",ry:"4",width:"146",height:"16"})})})})]})},rn=()=>{const{t:e}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:"df aic jcc fdc",style:{height:285},children:[(0,a.jsx)(Or,{alt:"Not have data"}),(0,a.jsx)("div",{className:"fz14 mb5 fw600",children:e("top_pages_no_data_title")}),(0,a.jsx)("p",{className:"color_grey medium",children:e("top_pages_no_data_desc")})]})},sn="table___aG5kP",an="colUrl___ko7fX",ln="colKeywords___YYD5S",nn="colTraffic___dDngZ",on="colTraffShare___CGi0I",cn="urlCell___qij1D",dn="urlLink___sm13y",mn="urlText___MHUmB",un="traffShareCol___vOoBW",hn="traffShareCell___yFirI",pn="progressBar___J1reJ",xn="progressBarFill___pZB6l",fn="traffSharePercent___Ee1OW",yn=()=>{const{t:e}=(0,n.useTranslation)("summary"),t=(0,y.useLocation)(),{query:r,search_type:s,se:i}=(0,d.useSelector)(e=>e.searchBar),{data:l,loading:c,error:m}=(0,je.useProcedure)(["dashboard.getTopPages",{query:null==r?void 0:r.toLowerCase(),searchType:s,searchEngine:i,limit:10,useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>{var t;return!(null==e?void 0:e.result)||!(null==(t=null==e?void 0:e.result)?void 0:t.length)||(null==e?void 0:e.error)},"dashboard.getTopPages")]}],[r,s,i]),u=(0,a.jsx)("h4",{className:"fz18 mb16 ff-Inter df jcsb aic",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:e("top_pages_title_tooltip"),children:e("top_pages_title")})});if(c)return(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[u,(0,a.jsx)(tn,{})]});if(!(null==l?void 0:l.length)||m)return(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[u,(0,a.jsx)(rn,{})]});const h=Math.max(...l.map(e=>e.traff_share));return(0,a.jsxs)(f.Card,{className:"p25 pl30 pr30 ff-Inter fdc",rounded:!0,children:[u,(0,a.jsxs)(Ar,{className:`fz13 normal tr ${sn}`,children:[(0,a.jsxs)("colgroup",{children:[(0,a.jsx)("col",{className:an}),(0,a.jsx)("col",{className:ln}),(0,a.jsx)("col",{className:nn}),(0,a.jsx)("col",{className:on})]}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"medium color_grey p10",children:[(0,a.jsx)(Ar.Td,{className:"tl medium",children:e("top_pages_url_td")}
1),(0,a.jsx)(Ar.Td,{className:"medium",children:e("top_pages_keywords_td")}),(0,a.jsx)(Ar.Td,{className:"medium",children:e("top_pages_traffic_td")}),(0,a.jsx)(Ar.Td,{className:`tl medium ${un}`,children:e("top_pages_traffic_share_td")})]})}),(0,a.jsxs)("tbody",{children:[l.slice(0,10).map(e=>(0,a.jsxs)(Ar.Tr,{children:[(0,a.jsx)(Ar.Td,{className:`tl ${cn}`,children:(0,a.jsxs)("a",{className:dn,href:e.url,target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)(o,{size:16}),(0,a.jsx)("span",{className:mn,children:e.url})]})}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.keywords)}),(0,a.jsx)(Ar.Td,{children:(0,rt.formatNumberLetter)(e.traff)}),(0,a.jsx)(Ar.Td,{className:un,children:(0,a.jsxs)("div",{className:hn,children:[(0,a.jsx)("div",{className:pn,children:(0,a.jsx)("div",{className:xn,style:{width:e.traff_share/h*100+"%"}})}),(0,a.jsxs)("span",{className:fn,children:[(100*e.traff_share).toFixed(1),"%"]})]})})]},e.url)),(0,a.jsx)(Ar.Tr,{})]})]}),(0,a.jsx)("div",{className:"mt30",children:(0,a.jsxs)(f.Link,{className:"link_text df aic medium fz14",to:{pathname:"/domains/urls/",search:t.search},children:[e("top_pages_show_all"),(0,a.jsx)(Tr,{})]})})]})};var jn=r(6189),_n=r(25959),gn=r(87714);const vn=e=>{const t=Number(e.toFixed(1));return`${t>0?"+":""}${t}%`},bn=({deltaPercent:e,isPositiveTrend:t})=>e?(0,a.jsxs)("span",{className:ur()("df aic fz12 medium",{tgreen:!0===t,tred:!1===t}),children:[(0,a.jsx)(p.SvgSprite,{iconId:e>0?"arrow_up":"arrow_down"}),vn(e)]}):null;const Nn=r(48027).withErrorBoundary,wn=e=>"number"===typeof e?(0,rt.formatNumberLetter)(e):"\u2014",Tn=e=>"number"===typeof e?`${Number(e.toFixed(1))}%`:"\u2014",kn=e=>"number"===typeof e?`${Number(e.toFixed(1))}`:"\u2014",An="not-connected",Cn="unavailable",In="syncing",Dn="reconnect",Pn="metrics",On=["pending","syncing"],zn=["access_denied","auth_required","error"],Sn=e=>{if(!(null==e?void 0:e.connected))return An;if(e.data_unavailable)return Cn;const t=e.sync_status;return t&&On.includes(t)?In:t&&zn.includes(t)?Dn:e.metrics?Pn:Cn},Ln="widget___aZbBT",Mn="header___ILCA9",En="titleConnected___BCHZO",Rn="metrics___hNvWY",Bn="metric___w9WNR",Fn="connectRow___gX9RX",Vn="unavailable___j1n9h",Un="banner___rfMUR",qn="bannerTitle___Jm5SZ",Hn="bannerCheck___xh46e",Yn="bannerMetrics___fqwKF",$n="bannerButton___ES25R",Gn=[{key:"clicks",labelKey:"gsc_widget_clicks",format:wn},{key:"ctr",labelKey:"gsc_widget_ctr",format:Tn},{key:"avg_position",labelKey:"gsc_widget_avg_position",format:kn},{key:"impressions",labelKey:"gsc_widget_impressions",format:wn}],Kn=Gn.filter(e=>"impressions"!==e.key),Wn=(0,a.jsx)("div",{style:{width:50,height:24},children:(0,a.jsx)(ve.Placeholder,{width:50,height:24,children:(0,a.jsx)("rect",{x:"1",y:"0.5",width:"48",height:"22",rx:"4"})})}),Zn=({isConnected:e,periodDays:t})=>{const{t:r}=(0,n.useTranslation)("summary");return(0,a.jsxs)("div",{className:Mn,children:[(0,a.jsx)("h4",{className:ur()("fz18 ff-Inter strong",{[En]:e}),children:r("gsc_widget_title")}),t?(0,a.jsx)("span",{className:"fz13 color_grey",children:r("gsc_widget_period",{days:t})}):null]})},Qn=({messageKey:e,autotest:t})=>{const{t:r}=(0,n.useTranslation)("summary");return(0,a.jsx)("div",{className:Vn,"data-autotest":t,children:(0,a.jsx)("span",{className:"fz14 color_grey",children:r(e)})})},Xn=Nn(()=>(0,a.jsxs)("div",{className:Ln,"data-autotest":"gsc-widget",children:[(0,a.jsx)(Zn,{isConnected:!1,periodDays:null}),(0,a.jsx)(Qn,{messageKey:"gsc_widget_data_unavailable",autotest:"gsc-widget-unavailable"})]}))(({data:e,loading:t})=>{var r;const{t:s}=(0,n.useTranslation)("summary"),{callProcedure:l,loading:o}=(0,ge.useLazyProcedure)("gsc.getGSCAuthUrl"),c=(0,i.useCallback)(()=>{l().then(e=>{e&&window.location.assign(e)})},[l]);if(!t&&!e)return null;const d=Sn(e),m=!t&&Boolean(null==e?void 0:e.connected),u=!t&&d===Pn,h=(e,r)=>{var i,l,n;return(0,a.jsxs)("div",{className:Bn,children:[(0,a.jsx)("span",{className:"mb10 fz16 color_grey medium",children:s(e.labelKey)}),(0,a.jsxs)("div",{className:"df aic",children:[(0,a.jsx)("span",{className:"fz26 medium mr5 lh-normal",children:t?Wn:e.format(null!=(i=null==r?void 0:r.value)?i:null)}
1),!t&&r?(0,a.jsx)(bn,{deltaPercent:null!=(l=null==r?void 0:r.delta_percent)?l:null,isPositiveTrend:null!=(n=null==r?void 0:r.is_positive_trend)?n:null}):null]})]},e.key)},p=e=>(0,a.jsxs)("div",{className:Fn,children:[(0,a.jsx)("span",{className:"fz14 color_grey",children:s(e)}),(0,a.jsx)(gn.default,{color:"green",onClick:c,isLoad:o,buttonText:s("gsc_widget_connect_btn"),"data-autotest":"gsc-widget-connect"})]});return(0,a.jsxs)("div",{className:Ln,"data-autotest":"gsc-widget",children:[(0,a.jsx)(Zn,{isConnected:m,periodDays:u&&null!=(r=null==e?void 0:e.period_days)?r:null}),t?(0,a.jsx)("div",{className:Rn,children:Gn.map(e=>h(e,null))}):d===An?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:Rn,children:Kn.map(e=>h(e,null))}),p("gsc_widget_not_connected_hint")]}):d===In?(0,a.jsx)(Qn,{messageKey:"gsc_widget_syncing",autotest:"gsc-widget-syncing"}):d===Dn?p("gsc_widget_reconnect_hint"):d===Cn?(0,a.jsx)(Qn,{messageKey:"gsc_widget_data_unavailable",autotest:"gsc-widget-unavailable"}):(0,a.jsx)("div",{className:Rn,children:Gn.map(t=>{var r,s;return h(t,null!=(s=null==(r=null==e?void 0:e.metrics)?void 0:r[t.key])?s:null)})})]})}),Jn={[In]:"gsc_widget_syncing",[Dn]:"gsc_widget_reconnect_hint",[Cn]:"gsc_widget_data_unavailable"},eo=Nn()(({data:e})=>{var t,r,s,i,l,o;const{t:c}=(0,n.useTranslation)("summary");if(!(null==e?void 0:e.connected))return null;const d=Sn(e),m=null==e?void 0:e.metrics,u=[`${c("gsc_widget_clicks")}: ${wn(null!=(r=null==(t=null==m?void 0:m.clicks)?void 0:t.value)?r:null)}`,`${c("gsc_widget_ctr")}: ${Tn(null!=(i=null==(s=null==m?void 0:m.ctr)?void 0:s.value)?i:null)}`,`${c("gsc_widget_avg_position")}: ${kn(null!=(o=null==(l=null==m?void 0:m.avg_position)?void 0:l.value)?o:null)}`].join(" \xb7 "),h=Jn[d];return(0,a.jsxs)("section",{className:Un,"data-autotest":"gsc-banner",children:[(0,a.jsxs)("span",{className:qn,children:[(0,a.jsx)("span",{"aria-hidden":!0,className:Hn,children:"\u2713"}),c("gsc_banner_connected_title")]}),(0,a.jsx)("span",{className:Yn,children:h?c(h):u}),(0,a.jsxs)(f.Link,{to:"/users/gsc/",className:$n,"data-autotest":"gsc-banner-open-report",children:[c("gsc_banner_open_report"),(0,a.jsx)(p.SvgSprite,{iconId:"angle_right"})]})]})});var to=r(29194);const ro=e=>e?null:(0,a.jsx)("div",{className:"printable-footer",children:(0,a.jsx)(jn.default,{campaign:"pdf"})}),so=(e,t)=>{const r=!e||t===Ci.EXPORT_WHITE_LABEL_LOGO_PATH,s=t!==Ci.EXPORT_WHITE_LABEL_LOGO_PATH;return(0,a.jsxs)("div",{className:"printable-header",children:[r?(0,a.jsx)("img",{src:`${_n.runtimeConfig.VISIBLE_URL}${Ci.EXPORT_WHITE_LABEL_LOGO_PATH}`,alt:"Summary Export Logo"}):null,s?(0,a.jsx)("img",{src:`${_n.runtimeConfig.VISIBLE_URL}${t}`,alt:"Summary Export Logo"}):null]})},ao=()=>{const e=(0,y.useLocation)(),t=(0,nr.useTheme)(),{t:r}=(0,n.useTranslation)("summary"),s=(0,i.useRef)(null),[o,c]=(0,i.useState)(Ci.EXPORT_WHITE_LABEL_LOGO_PATH),{logos:d}=(0,Ii.useWhiteLabel)(!0),m=Ai({contentRef:s}),{activeProject:{projectId:u}}=(0,oi.useSelector)(e=>null==e?void 0:e.projects),{query:h,search_type:p,se:x}=(0,oi.useSelector)(e=>e.searchBar),j=(0,oi.useSelector)(e=>{var t,r;return null==(r=null==(t=null==e?void 0:e.userWhiteLabel)?void 0:t.availability)?void 0:r.isWhiteLabelEnabled}),_=(0,oi.useSelector)(e=>{var t,r;return Boolean(null==(r=null==(t=null==e?void 0:e.userWhiteLabel)?void 0:t.status)?void 0:r.whiteLabelStatus)}),[g]=(0,to.useCookies)("show_gsc_page"),v="true"===g,{data:b,loading:N}=((e,t)=>{const[r,s]=(0,i.useState)(null),[a,l]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!t||!e)return;let r=!1;return l(!0),s(null),(0,A.fetchDataWithErrorCheck)("gsc.getWidgetData",{domain:e,useCache:!0}).then(e=>{r||s(e)}).catch(()=>{r||s(null)}).finally(()=>{r||l(!1)}),()=>{r=!0}},[e,t]),{data:r,loading:a}})(null==h?void 0:h.toLowerCase(),v),{data:w,loading:T,error:k}=(0,je.useProcedure)(["backlinks.getSummaryData",{query:null==h?void 0:h.toLowerCase(),searchType:Fs.default[p]||p,useCache:!0,interceptor:Lt,transformResponse:[Bt(e=>{var t;return 32015===(null==(t=e.error)?void 0:t.code)},"backlinks.getSummaryData")]}],[h,p]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(lr.Helmet,{children:[(0,a.jsx)("body",{className:"page_product page_product_react summary-page","data-ui-theme":(0,or.getNewTheamNames)(t.currentTheme)}
1),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:!0}),(0,a.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Inter:[email protected]&family=Roboto:wght@100;300;400;500;700&display=swap",rel:"stylesheet"})]}),(0,a.jsxs)("div",{ref:s,className:"printable-area",children:[(0,a.jsx)("style",{children:"@page { margin: 50px 15px 10px 0 !important; }"}),(0,a.jsxs)(l.Grid,{children:[so(j,o),(0,a.jsx)(ni.default,{}),(0,a.jsx)(Tt,{onExport:()=>{m()},onSelectLogo:e=>{const t=d.find(t=>t.logoId===e.logoId);c(t.path)}}),v?(0,a.jsx)(eo,{data:b}):null,(0,a.jsx)(yi,{}),(0,a.jsxs)(l.Row,{className:"df aic mb40","data-autotest":"misc_metrics",children:[(0,a.jsx)(l.Col,{col:4,children:(0,a.jsx)(Ft,{})}),(0,a.jsx)(l.Col,{col:8,children:(0,a.jsxs)(l.Row,{children:[(0,a.jsx)(l.Col,{col:"4",children:(0,a.jsx)(sr,{})}),(0,a.jsx)(l.Col,{col:"4",children:(0,a.jsx)(Xl,{})}),(0,a.jsx)(l.Col,{col:"4",children:(0,a.jsx)(ir,{data:w,loading:T})})]})})]}),(0,a.jsx)(l.Row,{className:"mb36","data-autotest":"summary_metrics",children:(0,a.jsx)(li,{data:w,loadingBacklinksSummary:T,errorBacklinksSummary:k})}),v?(0,a.jsx)(l.Row,{className:"mb36 printable-row","data-autotest":"gsc_widget_row",children:(0,a.jsx)(Xn,{data:b,loading:N})}):null,(0,a.jsxs)(l.Row,{className:"mb40 fwnw df aic printable-row",children:[(0,a.jsx)(l.Col,{col:6,children:(0,a.jsx)(kr,{})}),(0,a.jsx)(l.Col,{col:6,"data-autotest":"distribution_by_country",children:(0,a.jsx)(Kr,{})})]}),(0,a.jsx)("div",{className:"page-break"}),so(j,o),(0,a.jsx)(l.Row,{className:"mb36 printable-row",children:(0,a.jsx)(Bs,{projectId:u})}),(0,a.jsx)(l.Row,{className:"mb30 printable-row",children:(0,a.jsx)(bl,{})}),(0,a.jsx)(l.Row,{className:"mb30 printable-row",children:(0,a.jsx)(Zl,{})}),(0,a.jsx)("h3",{className:"fz28 mb25 ff-Inter strong df aic",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:r("keywords_metrics_title_tooltip"),children:r("keywords_metrics_title")})}),(0,a.jsxs)(l.Row,{className:"mb36 fwnw df aic printable-row","data-autotest":"keywords_metrics",children:[(0,a.jsx)(l.Col,{col:6,className:"pr20",children:(0,a.jsx)(Lr,{})}),(0,a.jsxs)(l.Col,{col:6,className:"pl20",children:[(0,a.jsx)("h4",{className:"fz18 mb18 ff-Inter df jcsb",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:r("keywords_pos_distrubution_title_tooltip"),children:(0,a.jsx)(f.Link,{className:"link_text_current-color",to:{pathname:"/domains/search/",search:e.search},children:r("keywords_pos_distrubution_title")})})}),(0,a.jsx)(Hs,{}),(0,a.jsx)(cs,{})]})]}),(0,a.jsx)("div",{className:"page-break"}),so(j,o),(0,a.jsx)(l.Row,{className:"mb30 printable-row",children:(0,a.jsx)(yn,{})}),(0,a.jsx)("div",{className:"page-break"}),so(j,o),(0,a.jsx)("h3",{className:"fz28 mb25 ff-Inter strong df aic",children:(0,a.jsx)(f.Tooltip,{theme:"new",tooltipText:r("\u0441ompetitors_overview_title_tooltip"),children:r("\u0441ompetitors_overview_title")})}),(0,a.jsxs)(l.Row,{className:"mb36 fwnw df aic printable-row","data-autotest":"competitors_overview",children:[(0,a.jsx)(l.Col,{col:6,className:"pr20",children:(0,a.jsx)(Qs,{})}),(0,a.jsx)(l.Col,{col:6,className:"pl20",children:(0,a.jsx)(Aa,{})})]}),(0,a.jsx)("h3",{className:"fz28 mb25 ff-Inter strong df aic",children:(0,a.jsxs)(f.Tooltip,{theme:"new",tooltipText:r("global_data_tooltip"),className:"ml5",children:[r("backlinks_overview_title"),(0,a.jsx)(ar,{size:20,className:"ml5"})]})}),(0,a.jsxs)(l.Row,{className:"mb30 fwnw df aic printable-row",children:[(0,a.jsx)(l.Col,{col:6,className:"pr20",children:(0,a.jsx)(Oa,{})}),(0,a.jsx)(l.Col,{col:6,className:"pl20",children:(0,a.jsx)(Ba,{data:w,loading:T,error:k,query:h,se:x,search_type:p})})]}),(0,a.jsx)("div",{className:"page-break"}),so(j,o),(0,a.jsxs)(l.Row,{className:"fwnw df aic mb60 printable-row",children:[(0,a.jsx)(l.Col,{col:6,className:"pr20",children:(0,a.jsx)(Ha,{summaryData:w,summaryDataLoading:T,summaryDataError:k})}),(0,a.jsx)(l.Col,{col:6,className:"pl20",children:(0,a.jsx)(Za,{summaryData:w,summaryDataLoading:T,summaryDataError:k})})]}),(0,a.jsx)("div",{className:"mb36",children:(0,a.jsx)(Jl.default,{type:"domain",showAnyway:!0})}),ro(_)]})]})]})};var io=r(75241),lo=r(92100),no=r(47342);const oo={title:"domain_global::main_title",titleTooltip:"tooltip::domain_overview"},co={setSearchBarData:io.setSearchBarData,updatePageData:lo.updatePageData,exportReport:no.exportReport,setCurrentProjectRequest:fe.setCurrentProjectRequest,fetchRegionsByProject:lo.fetchRegionsByProject,setCurrentProject:T.setActiveProject},mo=(0,Pr.compose)(to.withCookies,(0,d.connect)(e=>({searchBar:e.searchBar,isAuthenticated:e.authentication.isAuthenticated,project:e.projects.activeProject,projects:e.projects.projectList,allProjects:e.projects.allProjects||[],currentProject:e.projects.activeProject,tKey:oo}),co),s.default)(ao)},21630(e,t,r){"use strict";r.r(t),r.d(t,{getNewTheamNames:()=>s});const s=e=>"light"===e?"new_light":"dark-full"===e?"new_dark":e},87805(e,t,r){var s=r(43360),a=r(75288);e.exports=function(e,t,r){(void 0!==r&&!a(e[t],r)||void 0===r&&!(t in e))&&s(e,t,r)}},16547(e,t,r){var s=r(43360),a=r(75288),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var l=e[t];i.call(e,t)&&a(l,r)&&(void 0!==r||t in e)||s(e,t,r)}},39344(e,t,r){var s=r(23805),a=Object.create,i=function(){function e(){}return function(t){if(!s(t))return{};if(a)return a(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},72903(e,t,r){var s=r(23805),a=r(55527),i=r(90181),l=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return i(e);var t=a(e),r=[];
vendor: 1,697 bytes, line 1
1for(var n in e)("constructor"!=n||!t&&l.call(e,n))&&r.push(n);return r}},85250(e,t,r){var s=r(37217),a=r(87805),i=r(9030),l=r(42824),n=r(23805),o=r(37241),c=r(14974);e.exports=function e(t,r,d,m,u){t!==r&&i(r,function(i,o){if(u||(u=new s),n(i))l(t,r,o,d,e,m,u);else{var h=m?m(c(t,o),i,o+"",t,r,u):void 0;void 0===h&&(h=i),a(t,o,h)}},o)}},42824(e,t,r){var s=r(87805),a=r(93290),i=r(71961),l=r(23007),n=r(35529),o=r(72428),c=r(56449),d=r(83693),m=r(3656),u=r(1882),h=r(23805),p=r(11331),x=r(37167),f=r(14974),y=r(69884);e.exports=function(e,t,r,j,_,g,v){var b=f(e,r),N=f(t,r),w=v.get(N);if(w)s(e,r,w);else{var T=g?g(b,N,r+"",e,t,v):void 0,k=void 0===T;if(k){var A=c(N),C=!A&&m(N),I=!A&&!C&&x(N);T=N,A||C||I?c(b)?T=b:d(b)?T=l(b):C?(k=!1,T=a(N,!0)):I?(k=!1,T=i(N,!0)):T=[]:p(N)||o(N)?(T=b,o(b)?T=y(b):h(b)&&!u(b)||(T=n(N))):k=!1}k&&(v.set(N,T),_(T,N,j,g,v),v.delete(N)),s(e,r,T)}}},49653(e,t,r){var s=r(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new s(t).set(new s(e)),t}},93290(e,t,r){e=r.nmd(e);var s=r(9325),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?s.Buffer:void 0,n=l?l.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,s=n?n(r):new e.constructor(r);return e.copy(s),s}},71961(e,t,r){var s=r(49653);e.exports=function(e,t){var r=t?s(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},23007(e){e.exports=function(e,t){var r=-1,s=e.length;for(t||(t=Array(s));++r<s;)t[r]=e[r];return t}},21791(e,t,r){var s=r(16547),a=r(43360);e.exports=function(e,t,r,i){var l=!r;r||(r={});for(var n=-1,o=t.length;++n<o;){var c=t[n],d=i?i(r[c],e[c],c,r,e):void 0;void 0===d&&(d=e[c]),l?a(r,c,d):s(r,c,d)}return r}}
1,20999(e,t,r){var s=r(69302),a=r(36800);e.exports=function(e){return s(function(t,r){var s=-1,i=r.length,l=i>1?r[i-1]:void 0,n=i>2?r[2]:void 0;for(l=e.length>3&&"function"==typeof l?(i--,l):void 0,n&&a(r[0],r[1],n)&&(l=i<3?void 0:l,i=1),t=Object(t);++s<i;){var o=r[s];o&&e(t,o,s,l)}return t})}},28879(e,t,r){var s=r(74335)(Object.getPrototypeOf,Object);e.exports=s},35529(e,t,r){var s=r(39344),a=r(28879),i=r(55527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:s(a(e))}},90181(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},14974(e){e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},83693(e,t,r){var s=r(64894),a=r(40346);e.exports=function(e){return a(e)&&s(e)}},11331(e,t,r){var s=r(72552),a=r(28879),i=r(40346),l=Function.prototype,n=Object.prototype,o=l.toString,c=n.hasOwnProperty,d=o.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=s(e))return!1;var t=a(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&o.call(r)==d}},37241(e,t,r){var s=r(70695),a=r(72903),i=r(64894);e.exports=function(e){return i(e)?s(e,!0):a(e)}},55364(e,t,r){var s=r(85250),a=r(20999)(function(e,t,r){s(e,t,r)});e.exports=a},69884(e,t,r){var s=r(21791),a=r(37241);e.exports=function(e){return s(e,a(e))}},53601(e,t,r){"use strict";r.r(t),r.d(t,{ReferenceLine:()=>I,getEndPoints:()=>T,referenceLineDefaultProps:()=>C});var s=r(96540),a=r(34164),i=r(86069),l=r(55430),n=r(59744),o=r(15894),c=r(19287),d=r(26314),m=r(49082),u=r(42991),h=r(12070),p=r(84518),x=r(80196),f=r(77404),y=r(27132),j=r(60648),_=r(8813);class g{constructor(e){var{x:t,y:r}=e;this.xAxisScale=t,this.yAxisScale=r}map(e,t){var r,s,{position:a}=t;return{x:null!==(r=this.xAxisScale.map(e.x,{position:a}))&&void 0!==r?r:0,y:null!==(s=this.yAxisScale.map(e.y,{position:a}))&&void 0!==s?s:0}}mapWithFallback(e,t){var r,s,a,i,{position:l,fallback:n}=t;return a="rangeMin"===n?this.yAxisScale.rangeMin():"rangeMax"===n?this.yAxisScale.rangeMax():0,i="rangeMin"===n?this.xAxisScale.rangeMin():"rangeMax"===n?this.xAxisScale.rangeMax():0,{x:null!==(r=this.xAxisScale.map(e.x,{position:l}))&&void 0!==r?r:i,y:null!==(s=this.yAxisScale.map(e.y,{position:l}))&&void 0!==s?s:a}}isInRange(e){var{x:t,y:r}=e,s=null==t||this.xAxisScale.isInRange(t),a=null==r||this.yAxisScale.isInRange(r);return s&&a}}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){N(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function N(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},w.apply(null,arguments)}var T=(e,t,r,s,a,i,l)=>{var{x:o,y:c,segment:d,ifOverflow:m}=l,u=(0,n.isNumOrStr)(o);return(0,n.isNumOrStr)(c)?((e,t,r,s,a,i)=>{var{x:l,width:n}=i,o=a.map(e,{position:r});if(!(0,_.isWellBehavedNumber)(o))return null;if("discard"===t&&!a.isInRange(o))return null;var c=[{x:l+n,y:o},{x:l,y:o}];return"left"===s?c.reverse():c})(c,m,s,i,t,r):u?((e,t,r,s,a,i)=>{var{y:l,height:n}=i,o=a.map(e,{position:r});if(!(0,_.isWellBehavedNumber)(o))return null;if("discard"===t&&!a.isInRange(o))return null;var c=[{x:o,y:l+n},{x:o,y:l}];return"top"===s?c.reverse():c})(o,m,s,a,e,r):null!=d&&2===d.length?((e,t,r,s)=>{var a=[s.mapWithFallback(e[0],{position:r,fallback:"rangeMin"}),s.mapWithFallback(e[1],{position:r,fallback:"rangeMax"})];return"discard"===t&&a.some(e=>!s.isInRange(e))?null:a})(d,m,s,new g({x:e,y:t})):null};function k(e){var t=(0,m.useAppDispatch)();return(0,s.useEffect)(()=>(t((0,d.addLine)(e)),()=>{t((0,d.removeLine)(e))})),null}function A(e){var{xAxisId:t,yAxisId:r,shape:n,className:d,ifOverflow:f}=e,j=(0,h.useIsPanorama)(),g=(0,p.useClipPathId)(),v=(0,m.useAppSelector)(e=>(0,u.selectXAxisSettings)(e,t)),N=(0,m.useAppSelector)(e=>(0,u.selectYAxisSettings)(e,r)),k=(0,m.useAppSelector)(e=>(0,u.selectAxisScale)(e,"xAxis",t,j)),A=(0,m.useAppSelector)(e=>(0,u.selectAxisScale)(e,"yAxis",r,j)),C=(0,c.useViewBox)();if(!g||!C||null==v||null==N||null==k||null==A)return null;var I=T(k,A,C,e.position,v.orientation,N.orientation,e);if(!I)return null;var D=I[0],P=I[1];if(null==D||null==P)return null;var{x:O,y:z}=D,{x:S,y:L}=P,M=b(b({clipPath:"hidden"===f?"url(#".concat(g,")"):void 0},(0,x.svgPropertiesAndEvents)(e)),{},{x1:O,y1:z,x2:S,y2:L}),E=(0,o.rectWithCoords)({x1:O,y1:z,x2:S,y2:L});return s.createElement(y.ZIndexLayer,{zIndex:e.zIndex},s.createElement(i.Layer,{className:(0,a.clsx)("recharts-reference-line",d)},((e,t)=>{var r;if(s.isValidElement(e))r=s.cloneElement(e,t);else if("function"===typeof e)r=e(t);else{if(!(0,_.isWellBehavedNumber)(t.x1)||!(0,_.isWellBehavedNumber)(t.y1)||!(0,_.isWellBehavedNumber)(t.x2)||!(0,_.isWellBehavedNumber)(t.y2))return null;r=s.createElement("line",w({},t,{className:"recharts-reference-line-line"}))}return r})(n,M),s.createElement(l.CartesianLabelContextProvider,w({},E,{lowerWidth:E.width,upperWidth:E.width}),s.createElement(l.CartesianLabelFromLabelProp,{label:e.label}),e.children)))}var C={ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",label:!1,stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle",zIndex:j.DefaultZIndexes.line};function I(e){var t=(0,f.resolveDefaultProps)(e,C);return s.createElement(s.Fragment,null,s.createElement(k,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),s.createElement(A,t))}I.displayName="ReferenceLine"},39043(e,t,r){"use strict";r.r(t),r.d(t,{Scatter:()=>oe,computeScatterPoints:()=>re,defaultScatterProps:()=>ie});var s=r(96540),a=r(34164),i=r(86069),l=r(5614),n=r(94501),o=r(60602),c=r(72050),d=r(59744),m=r(45233),u=r(98940),h=r(81242),p=r(95108),x=["option","isActive"];function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},f.apply(null,arguments)}function y(e){var{option:t,isActive:r}=e,a=function(e,t){if(null==e)return{};var r,s,a=function(e,t){if(null==e)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;r[s]=e[s]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,x);return"string"===typeof t?s.createElement(p.Shape,f({option:s.createElement(h.Symbols,f({type:t},a)),isActive:r,shapeType:"symbols"},a)):s.createElement(p.Shape,f({option:t,isActive:r,shapeType:"symbols"},a))}var j=r(58008),_=r(59482),g=r(5298),v=r(31754),b=r(47076),N=r(98453),w=r(42991),T=(0,b.createSelector)([w.selectUnfilteredCartesianItems,(e,t,r,s,a)=>a],(e,t)=>e.filter(e=>"scatter"===e.type).find(e=>e.id===t)),k=(0,b.createSelector)([(e,t,r,s,a,i,l)=>(0,N.selectChartDataWithIndexesIfNotInPanoramaPosition4)(e,void 0,void 0,l),(e,t,r,s,a,i,l)=>(0,w.selectAxisWithScale)(e,"xAxis",t,l),(e,t,r,s,a,i,l)=>(0,w.selectTicksOfGraphicalItem)(e,"xAxis",t,l),(e,t,r,s,a,i,l)=>(0,w.selectAxisWithScale)(e,"yAxis",r,l),(e,t,r,s,a,i,l)=>(0,w.selectTicksOfGraphicalItem)(e,"yAxis",r,l),(e,t,r,s)=>(0,w.selectZAxisWithScale)(e,"zAxis",s,!1),T,(e,t,r,s,a,i)=>i],(e,t,r,s,a,i,l,n)=>{var o,{chartData:c,dataStartIndex:d,dataEndIndex:m}=e;if(null!=l&&(null!=(o=null!=(null===l||void 0===l?void 0:l.data)&&l.data.length>0?l.data:null===c||void 0===c?void 0:c.slice(d,m+1))&&null!=t&&null!=s&&null!=r&&null!=a&&0!==(null===r||void 0===r?void 0:r.length)&&0!==(null===a||void 0===a?void 0:a.length)))return re({displayedData:o,xAxis:t,yAxis:s,zAxis:i,scatterSettings:l,xAxisTicks:r,yAxisTicks:a,cells:n})}),A=r(49082),C=r(12070),I=r(67237),D=r(19797),P=r(4364),O=r(8107),z=r(77404),S=r(84044),L=r(42678),M=r(55448),E=r(58183),R=r(19287),B=r(27132),F=r(60648),V=r(65245),U=["id"],q=["onMouseEnter","onClick","onMouseLeave"],H=["animationBegin","animationDuration","animationEasing","hide","isAnimationActive","legendType","lineJointType","lineType","shape","xAxisId","yAxisId","zAxisId"];function Y(e,t){if(null==e)return{};var r,s,a=function(e,t){if(null==e)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;r[s]=e[s]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}
1).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},$.apply(null,arguments)}function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach(function(t){W(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Z=e=>{var{dataKey:t,name:r,fill:s,legendType:a,hide:i}=e;return[{inactive:i,dataKey:t,type:a,color:s,value:(0,m.getTooltipNameProp)(r,t),payload:e}]},Q=s.memo(e=>{var{dataKey:t,points:r,stroke:a,strokeWidth:i,fill:l,name:n,hide:o,tooltipType:c,id:d}=e,u={dataDefinedOnItem:null===r||void 0===r?void 0:r.map(e=>e.tooltipPayload),getPosition:e=>{var t;return null===r||void 0===r||null===(t=r[Number(e)])||void 0===t?void 0:t.tooltipPosition},settings:{stroke:a,strokeWidth:i,fill:l,nameKey:void 0,dataKey:t,name:(0,m.getTooltipNameProp)(n,t),hide:o,type:c,color:l,unit:"",graphicalItemId:d}};return s.createElement(_.SetTooltipEntrySettings,{tooltipEntrySettings:u})});function X(e){var{points:t,props:r}=e,{line:a,lineType:l,lineJointType:n}=r;if(!a)return null;var c,m,u=(0,M.svgPropertiesNoEvents)(r),h=(0,M.svgPropertiesNoEventsFromUnknown)(a);if("joint"===l)c=t.map(e=>{var t,r;return{x:null!==(t=e.cx)&&void 0!==t?t:null,y:null!==(r=e.cy)&&void 0!==r?r:null}});else if("fitting"===l){var{xmin:p,xmax:x,a:f,b:y}=(0,d.getLinearRegression)(t),j=e=>f*e+y;c=[{x:p,y:j(p)},{x,y:j(x)}]}var _=K(K(K({},u),{},{fill:"none",stroke:u&&u.fill},h),{},{points:c});return m=s.isValidElement(a)?s.cloneElement(a,_):"function"===typeof a?a(_):s.createElement(o.Curve,$({},_,{type:n})),s.createElement(i.Layer,{className:"recharts-scatter-line",key:"recharts-scatter-line"},m)}function J(e){var{showLabels:t,points:r,children:a}=e,i=(0,R.useViewBox)(),n=(0,s.useMemo)(()=>null===r||void 0===r?void 0:r.map(e=>{var t,r,s={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width};return K(K({},s),{},{value:void 0,payload:e.payload,viewBox:s,parentViewBox:i,fill:void 0})}),[i,r]);return s.createElement(l.CartesianLabelListContextProvider,{value:t?n:void 0},a)}function ee(e){var{points:t,allOtherScatterProps:r}=e,{shape:a,activeShape:l,dataKey:n}=r,{id:o}=r,c=Y(r,U),d=(0,A.useAppSelector)(I.selectActiveTooltipIndex),{onMouseEnter:m,onClick:h,onMouseLeave:p}=r,x=Y(r,q),f=(0,j.useMouseEnterItemDispatch)(m,n,o),_=(0,j.useMouseLeaveItemDispatch)(p),g=(0,j.useMouseClickItemDispatch)(h,n,o);if(!(0,u.isNonEmptyArray)(t))return null;var v=(0,M.svgPropertiesNoEvents)(c);return s.createElement(s.Fragment,null,s.createElement(X,{points:t,props:c}),t.map((e,t)=>{var r=null!=l&&!1!==l,n=r&&d===String(t),c=r&&n?l:a,m=K(K(K({},v),e),{},{index:t,[P.DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME]:String(o)});return s.createElement(B.ZIndexLayer,{key:"symbol-".concat(null===e||void 0===e?void 0:e.cx,"-").concat(null===e||void 0===e?void 0:e.cy,"-").concat(null===e||void 0===e?void 0:e.size,"-").concat(t),zIndex:n?F.DefaultZIndexes.activeDot:void 0},s.createElement(i.Layer,$({className:"recharts-scatter-symbol"},(0,u.adaptEventsOfChild)(x,e,t),{onMouseEnter:f(e,t),onMouseLeave:_(e,t),onClick:g(e,t)}),s.createElement(y,$({option:c,isActive:n},m))))}))}function te(e){var{previousPointsRef:t,props:r}=e,{points:a,isAnimationActive:n,animationBegin:o,animationDuration:c,animationEasing:m}=r,u=t.current,h=(0,O.useAnimationId)(r,"recharts-scatter-"),[p,x]=(0,s.use
1State)(!1),f=(0,s.useCallback)(()=>{x(!1)},[]),y=(0,s.useCallback)(()=>{x(!0)},[]),j=!p;return s.createElement(J,{showLabels:j,points:a},r.children,s.createElement(E.JavascriptAnimate,{animationId:h,begin:o,duration:c,isActive:n,easing:m,onAnimationEnd:f,onAnimationStart:y,key:h},e=>{var l=1===e?a:null===a||void 0===a?void 0:a.map((t,r)=>{var s=u&&u[r];return K(K({},t),{},s?{cx:null==t.cx?void 0:(0,d.interpolate)(s.cx,t.cx,e),cy:null==t.cy?void 0:(0,d.interpolate)(s.cy,t.cy,e),size:(0,d.interpolate)(s.size,t.size,e)}:{size:(0,d.interpolate)(0,t.size,e)})});return e>0&&(t.current=l),s.createElement(i.Layer,null,s.createElement(ee,{points:l,allOtherScatterProps:r,showLabels:j}))}),s.createElement(l.LabelListFromLabelProp,{label:r.label}))}function re(e){var{displayedData:t,xAxis:r,yAxis:s,zAxis:a,scatterSettings:i,xAxisTicks:l,yAxisTicks:n,cells:o}=e,c=(0,d.isNullish)(r.dataKey)?i.dataKey:r.dataKey,u=(0,d.isNullish)(s.dataKey)?i.dataKey:s.dataKey,h=a&&a.dataKey,p=a?a.range:w.implicitZAxis.range,x=p&&p[0],f=r.scale.bandwidth?r.scale.bandwidth():0,y=s.scale.bandwidth?s.scale.bandwidth():0;return t.map((e,t)=>{var p=(0,m.getValueByDataKey)(e,c),j=(0,m.getValueByDataKey)(e,u),_=!(0,d.isNullish)(h)&&(0,m.getValueByDataKey)(e,h)||"-",g=[{name:(0,d.isNullish)(r.dataKey)?i.name:r.name||String(r.dataKey),unit:r.unit||"",value:p,payload:e,dataKey:c,type:i.tooltipType,graphicalItemId:i.id},{name:(0,d.isNullish)(s.dataKey)?i.name:s.name||String(s.dataKey),unit:s.unit||"",value:j,payload:e,dataKey:u,type:i.tooltipType,graphicalItemId:i.id}];"-"!==_&&null!=a&&g.push({name:a.name||a.dataKey,unit:a.unit||"",value:_,payload:e,dataKey:h,type:i.tooltipType,graphicalItemId:i.id});var v=(0,m.getCateCoordinateOfLine)({axis:r,ticks:l,bandSize:f,entry:e,index:t,dataKey:c}),b=(0,m.getCateCoordinateOfLine)({axis:s,ticks:n,bandSize:y,entry:e,index:t,dataKey:u}),N="-"!==_&&null!=a?a.scale.map(_):x,w=null==N?0:Math.sqrt(Math.max(N,0)/Math.PI);return K(K({},e),{},{cx:v,cy:b,x:null==v?void 0:v-w,y:null==b?void 0:b-w,width:2*w,height:2*w,size:N,node:{x:p,y:j,z:_},tooltipPayload:g,tooltipPosition:{x:v,y:b},payload:e},o&&o[t]&&o[t].props)})}var se=(e,t,r)=>({x:e.cx,y:e.cy,value:Number("x"===r?e.node.x:e.node.y),errorVal:(0,m.getValueByDataKey)(e,t)});function ae(e){var{hide:t,points:r,className:l,needClip:n,xAxisId:o,yAxisId:c,id:d}=e,m=(0,s.useRef)(null);if(t)return null;var u=(0,a.clsx)("recharts-scatter",l),h=d;return s.createElement(B.ZIndexLayer,{zIndex:e.zIndex},s.createElement(i.Layer,{className:u,clipPath:n?"url(#clipPath-".concat(h,")"):void 0,id:d},n&&s.createElement("defs",null,s.createElement(v.GraphicalItemClipPath,{clipPathId:h,xAxisId:o,yAxisId:c})),s.createElement(g.SetErrorBarContext,{xAxisId:o,yAxisId:c,data:r,dataPointFormatter:se,errorBarOffset:0},s.createElement(i.Layer,{key:"recharts-scatter-symbols"},s.createElement(te,{props:e,previousPointsRef:m})))))}var ie={xAxisId:0,yAxisId:0,zAxisId:0,label:!1,line:!1,legendType:"circle",lineType:"joint",lineJointType:"linear",shape:"circle",hide:!1,isAnimationActive:"auto",animationBegin:0,animationDuration:400,animationEasing:"linear",zIndex:F.DefaultZIndexes.scatter};function le(e){var t=(0,z.resolveDefaultProps)(e,ie),{animationBegin:r,animationDuration:a,animationEasing:i,hide:l,isAnimationActive:o,legendType:d,lineJointType:m,lineType:u,shape:h,xAxisId:p,yAxisId:x,zAxisId:f}=t,y=Y(t,H),{needClip:j}=(0,v.useNeedsClip)(p,x),_=(0,s.useMemo)(()=>(0,n.findAllByType)(e.children,c.Cell),[e.children]),g=(0,C.useIsPanorama)(),b=(0,A.useAppSelector)(t=>k(t,p,x,f,e.id,_,g));return null==j||null==b?null:s.createElement(s.Fragment,null,s.createElement(Q,{dataKey:e.dataKey,points:b,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:e.id}),s.createElement(ae,$({},y,{xAxisId:p,yAxisId:x,zAxisId:f,lineType:u,lineJointType:m,legendType:d,shape:h,hide:l,isAnimationActive:o,animationBegin:r,animationDuration:a,animationEasing:i,points:b,needClip:j})))}function ne(e){var t=(0,z.resolveDefaultProps)(e,ie),r=(0,C.useIsPanorama)();return s.createElement(S.RegisterGraphicalItemId,{id:t.id,type:"scatter"},e=>s.createElement(s.Fragment,null,s.createElement(D.SetLegendPayload,{legendPayload:Z(t)}),s.createElement(L.SetCartesianGraphicalItem,{type:"scatter",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:t.zAxisId,dataKey:t.dataKey,hide:t.hide,name:t.name,tooltipType:t.tooltipType,isPanorama:r}),s.createElement(le,$({},t,{id:e}))))}var oe=s.memo(ne,V.propsAreEqual);oe.displayName="Scatter"},51658(e,t,r){"use strict";r.r(t),r.d(t,{ZAxis:()=>d,zAxisDefaultProps:()=>c});var s=r(96540),a=r(94115),i=r(49082),l=r(42991),n=r(77404);function o(e){var t=(0,i.useAppDispatch)(),r=(0,s.useRef)(null);return(0,s.useLayoutEffect)(()=>{null===r.current?t((0,a.addZAxis)(e)):r.current!==e&&t((0,a.replaceZAxis)({prev:r.current,next:e})),r.current=e},[e,t]),(0,s.useLayoutEffect)(()=>()=>{r.current&&(t((0,a.removeZAxis)(r.current)),r.current=null)},[t]),null}var c={zAxisId:0,range:l.implicitZAxis.range,scale:l.implicitZAxis.scale,type:l.implicitZAxis.t
1ype};function d(e){var t=(0,n.resolveDefaultProps)(e,c);return s.createElement(o,{domain:t.domain,id:t.zAxisId,dataKey:t.dataKey,name:t.name,unit:t.unit,range:t.range,scale:t.scale,type:t.type,allowDuplicatedCategory:l.implicitZAxis.allowDuplicatedCategory,allowDataOverflow:l.implicitZAxis.allowDataOverflow,reversed:l.implicitZAxis.reversed,includeHidden:l.implicitZAxis.includeHidden})}d.displayName="ZAxis"},59853(e,t,r){"use strict";r.r(t),r.d(t,{ScatterChart:()=>n});var s=r(96540),a=r(26960),i=r(72685),l=["item"],n=(0,s.forwardRef)((e,t)=>s.createElement(i.CartesianChart,{chartName:"ScatterChart",defaultTooltipEventType:"item",validateTooltipEventTypes:l,tooltipPayloadSearcher:a.arrayTooltipSearcher,categoricalChartProps:e,ref:t}))},16426(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],s=0;s<e.rangeCount;s++)r.push(e.getRangeAt(s));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}
1),t&&t.focus()}}},72530(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>s});const s=r.p+"imgs/quick-custom-report-dark_906614eb.svg?react"},51777(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>s});const s=r.p+"imgs/quick-custom-report_60620126.svg?react"},96831(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>s});const s=r.p+"imgs/dark_e65c60f6.svg?react"},76861(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>s});const s=r.p+"imgs/light_e65c60f6.svg?react"},70837(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>s});const s="data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjYxIiBoZWlnaHQ9IjYwIiB2aWV3Qm94PSIwIDAgNjEgNjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDMuMDI2NSA3LjVMMzkuODQ0IDE1Ljc1SDE2LjUwNThMMTMuMzIzMyA3LjVDMTEuMjc4NSA3LjUgOS42MTAzNSA5LjIyOTc1IDkuNjEwMzUgMTEuMzVWNTMuMTVDOS42MTAzNSA1NS4yNjc1IDExLjI3ODUgNTcgMTMuMzIwNiA1N0g0My4wMjM5QzQ1LjA2NiA1NyA0Ni43MzY4IDU1LjI2NDggNDYuNzM2OCA1My4xNVYxMS4zNUM0Ni43Mzk0IDkuMjI5NzUgNDUuMDY2IDcuNSA0My4wMjY1IDcuNVpNMzcuNzIyNCAxM0w0MC4xMDkyIDcuNUgzNC4zMjUxTDMyLjQxODIgMkgyMy45MzE2TDIyLjAyMjEgNy41SDE2LjI0MDVMMTguNjI0OCAxM0gzNy43MjI0WiIgZmlsbD0iIzRCNTM1RiIvPgo8cmVjdCB4PSIzMiIgeT0iMjMiIHdpZHRoPSIyOSIgaGVpZ2h0PSIyOSIgcng9IjE0LjUiIGZpbGw9IiMzMzM5NDEiLz4KPHBhdGggZD0iTTUyLjUwMjcgMzMuODk4NEM1My4xNjU4IDMzLjIzNTMgNTMuMTY1OCAzMi4xNjAzIDUyLjUwMjcgMzEuNDk3M0M1MS44Mzk3IDMwLjgzNDIgNTAuNzY0NyAzMC44MzQyIDUwLjEwMTYgMzEuNDk3M0w0Ni41IDM1LjA5ODlMNDIuODk4NCAzMS40OTczQzQyLjIzNTMgMzAuODM0MiA0MS4xNjAzIDMwLjgzNDIgNDAuNDk3MyAzMS40OTczQzM5LjgzNDIgMzIuMTYwMyAzOS44MzQyIDMzLjIzNTMgNDAuNDk3MyAzMy44OTg0TDQ0LjA5ODkgMzcuNUw0MC40OTczIDQxLjEwMTZDMzkuODM0MiA0MS43NjQ3IDM5LjgzNDIgNDIuODM5NyA0MC40OTczIDQzLjUwMjdDNDEuMTYwMyA0NC4xNjU4IDQyLjIzNTMgNDQuMTY1OCA0Mi44OTg0IDQzLjUwMjdMNDYuNSAzOS45MDExTDUwLjEwMTYgNDMuNTAyN0M1MC43NjQ3IDQ0LjE2NTggNTEuODM5NyA0NC4xNjU4IDUyLjUwMjcgNDMuNTAyN0M1My4xNjU4IDQyLjgzOTcgNTMuMTY1OCA0MS43NjQ3IDUyLjUwMjcgNDEuMTAxNkw0OC45MDExIDM3LjVMNTIuNTAyNyAzMy44OTg0WiIgZmlsbD0iIzFBMUQyMiIvPgo8L3N2Zz4K"},88826(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>s});const s="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjIiIGhlaWdodD0iNTUiIHZpZXdCb3g9IjAgMCA2MiA1NSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ0LjAyNjggNS41TDQwLjg0NDMgMTMuNzVIMTcuNTA2TDE0LjMyMzUgNS41QzEyLjI3ODggNS41IDEwLjYxMDYgNy4yMjk3NSAxMC42MTA2IDkuMzVWNTEuMTVDMTAuNjEwNiA1My4yNjc1IDEyLjI3ODggNTUgMTQuMzIwOSA1NUg0NC4wMjQxQzQ2LjA2NjIgNTUgNDcuNzM3IDUzLjI2NDggNDcuNzM3IDUxLjE1VjkuMzVDNDcuNzM5NyA3LjIyOTc1IDQ2LjA2NjIgNS41IDQ0LjAyNjggNS41Wk0zOC43MjI2IDExTDQxLjEwOTUgNS41SDM1LjMyNTNMMzMuNDE4NSAwSDI0LjkzMThMMjMuMDIyMyA1LjVIMTcuMjQwOEwxOS42MjUgMTFIMzguNzIyNloiIGZpbGw9IiNBRUI4Q0QiPjwvcGF0aD48cmVjdCB4PSIzMy4xNTk3IiB5PSIyMy4zODE2IiB3aWR0aD0iMjguNjk4OCIgaGVpZ2h0PSIyOS43NTg1IiByeD0iMTQuMzQ5NCIgZmlsbD0iI2YzZjVmOSI+PC9yZWN0PjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDcuNTA5IDM0LjMxNTNMNTEuMDM5NSAzMC42NTQ1QzUyLjA5MjIgMjkuNTYyOSA1My43OTI4IDI5LjU1ODQgNTQuODQ3MiAzMC42NTE3QzU1Ljg5NjYgMzEuNzM5OSA1NS44OTA0IDMzLjUxNTQgNTQuODQ0NSAzNC41OTk5TDUxLjMxNCAzOC4yNjA4TDU0Ljg0NDUgNDEuOTIxNkM1NS44OTcyIDQzLjAxMzIgNTUuOTAxNiA0NC43NzY1IDU0Ljg0NzIgNDUuODY5OUM1My43OTc3IDQ2Ljk1ODEgNTIuMDg1NSA0Ni45NTE2IDUxLjAzOTUgNDUuODY3MUw0Ny41MDkgNDIuMjA2Mkw0My45Nzg2IDQ1Ljg2NzFDNDIuOTI1OCA0Ni45NTg3IDQxLjIyNTMgNDYuOTYzMiA0MC4xNzA5IDQ1Ljg2OTlDMzkuMTIxNSA0NC43ODE3IDM5LjEyNzYgNDMuMDA2MiA0MC4xNzM2IDQxLjkyMTZMNDMuNzA0MSAzOC4yNjA4TDQwLjE3MzYgMzQuNTk5OUMzOS4xMjA5IDMzLjUwODMgMzkuMTE2NSAzMS43NDUgNDAuMTcwOSAzMC42NTE3QzQxLjIyMDQgMjkuNTYzNSA0Mi45MzI2IDI5LjU2OTkgNDMuOTc4NiAzMC42NTQ1TDQ3LjUwOSAzNC4zMTUzWiIgZmlsbD0iI0FDQjZDQyI+PC9wYXRoPjwvc3ZnPg=="}}]);

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.