Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/writing-assistant.46c39d87.js
Назад
var zt=Object.defineProperty;var Rt=(s,t,e)=>t in s?zt(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var W=(s,t,e)=>Rt(s,typeof t!="symbol"?t+"":t,e);import{o as a,c as d,t as l,G as R,b as w,C as c,l as b,x as f,v as m,a as i,k as $,g as N,m as H,j,u as _,M as U,F as T,J as D,f as X,w as Lt,q as Bt,T as It,Q as tt,R as et,Y as rt,h as at}from"./js/runtime-dom.esm-bundler.6789c400.js";import{l as Tt}from"./js/index.3eb8f806.js";import{B as Et,b as lt,l as Wt}from"./js/index.ee8124c6.js";import{l as Kt}from"./js/index.1ca84f0e.js";import{H as Z,B as dt,z as Ot,c as Dt,r as Mt}from"./js/index.5a710757.js";import{e as Gt}from"./js/elemLoaded.5e0343ce.js";/* empty css */import{C as ct}from"./js/Table.0a6a3fdb.js";import{_ as S}from"./js/_plugin-vue_export-helper.249dac1d.js";import"./js/translations.12335a6a.js";import{C as Ft}from"./js/Tooltip.b6b45c85.js";import{S as Ht}from"./js/Info.5149ace1.js";import{_ as r}from"./js/default-i18n.54b5d8cd.js";import{o as Vt,J as _t,j as Nt}from"./js/helpers.f95d5840.js";import{u as C,_ as gt}from"./js/Seoboost.5c950c16.js";import{T as jt}from"./js/Slide.d0517fb0.js";import{u as Ut}from"./js/ScrollTo.97c9805f.js";import{C as Y}from"./js/Index.c4d148bc.js";import{S as ut}from"./js/External.b3b0805d.js";import{C as Zt}from"./js/Tabs.08a4fd23.js";import{_ as pt,C as Yt,c as qt}from"./js/Caret.662da1f3.js";import{f as Jt}from"./js/helpers.b97d7047.js";import{d as st}from"./js/debounce.40834200.js";import"./js/numbers.b55b32c5.js";import"./js/Download.6a0d8455.js";import"./js/escapeRegex.e4a2b75d.js";import"./js/vue-router.fc4966b9.js";import"./js/ProBadge.7733ac87.js";import"./js/Information.82968754.js";import"./js/metabox.1128ddb8.js";import"./js/cleanForSlug.f9ffe7db.js";import"./js/toString.1401d490.js";import"./js/_baseTrim.940c51cf.js";import"./js/_stringToArray.08127ca9.js";import"./js/_baseSet.32e7a763.js";import"./js/regex.f8017116.js";import"./js/toNumber.30f8b529.js";const Qt={props:{grade:null},computed:{getGrade(){return this.grade?this.grade:"--"},gradeFirstLetter(){return this.grade?this.grade.toString().charAt(0).toLowerCase():""}}};function Xt(s,t,e,n,o,u){return a(),d("span",{class:R(["aioseo-writing-assistant__grade-value",e.grade?"grade-"+u.gradeFirstLetter:""])},l(u.getGrade),3)}const G=S(Qt,[["render",Xt]]),te={props:{domain:String},computed:{imageSource(){return"https://www.google.com/s2/favicons?sz=32&domain="+encodeURI(this.domain)}}},ee={class:"aioseo-writing-assistant-favicon"},se=["src"];function oe(s,t,e,n,o,u){return a(),d("span",ee,[e.domain?(a(),d("img",{key:0,src:u.imageSource,alt:"favicon"},null,8,se)):w("",!0)])}const ie=S(te,[["render",oe]]),ne={class:"aioseo-writing-assistant__keyword-not-analyzed"},re={__name:"CouldNotBeAnalyzed",setup(s){const e={tooltip:r("This URL was unreachable when the report was run and could not be analyzed with the rest of the articles.","all-in-one-seo-pack")};return(n,o)=>(a(),d("div",ne,[c(Ft,null,{tooltip:b(()=>[f(l(e.tooltip),1)]),default:b(()=>[c(Ht)]),_:1})]))}},B="all-in-one-seo-pack",ae={setup(){return{writingAssistantStore:C()}},components:{CoreWpTable:ct,GradeRound:G,Favicon:ie,CouldNotBeAnalyzed:re},props:{maxCompetitors:Number,hideColumns:Array,disableExport:{type:Boolean,default:!1},disableSort:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},useRawData:{type:Boolean,default:!1}},data(){return{strings:{sortBy:r("Sort By",B),csvFilename:r("competitors.csv",B),position:r("#",B),article:r("Article",B),readabilityGrade:r("Readability",B),wordCount:r("Words",B),grade:r("Grade",B),url:r("URL",B)}}},computed:{getColumns(){let s=[{slug:"googlePosition",label:this.strings.position,sortable:!0,width:"35px"},{slug:"title",label:this.strings.article,sortable:!0},{slug:"readabilityScore",label:this.strings.readabilityGrade,sortable:!0,width:"130px",invertSort:!0},{slug:"wordCount",label:this.strings.wordCount,sortable:!0,width:"95px"},{slug:"gradeScore",label:this.strings.grade,width:"95px",sortable:!0}];return this.hideColumns&&(s=s.filter(t=>this.hideColumns.indexOf(t.slug)===-1)),this.disableSort&&(s=s.map(t=>(t.sortable=!1,t))),s.map(t=>(t.sorted=t.slug===this.writingAssistantStore.sortFilters.competitors.slug,t.sortDir=t.sorted?this.writingAssistantStore.sortFilters.competitors.sortDir:"",t!=null&&t.invertSort&&(t.sortDir=t.sortDir==="asc"?"desc":"asc"),t)),s},exportColumns(){return[{slug:"googlePosition",label:this.strings.position},{slug:"title",label:this.strings.article},{slug:"url",label:this.strings.url},{slug:"readabilityGrade",label:this.strings.readabilityGrade},{slug:"wordCount",label:this.strings.wordCount},{slug:"grade",label:this.strings.grade}]},rowData(){let s=this.useRawData?this.writingAssistantStore.getCompetitors:Vt(this.writingAssistantStore.getCompetitorsPaged);return this.disableSort&&(s=s.sort((t,e)=>t.googlePosition-e.googlePosition)),this.maxCompetitors&&(s=s.slice(0,this.maxCompetitors)),s.map(t=>(t.title=_t(t.title),t)),s}}},le={class:"aioseo-writing-assistant__competitors"},de={class:"aioseo-writing-assistant__competitors-favicon"},ce={class:"aioseo-writing-assistant__competitors-title"},_e={class:"aioseo-writing-assistant__competitors-url"},ge=["href","title"];function ue(s,t,e,n,o,u){const p=m("favicon"),v=m("could-not-be-analyzed"),h=m("grade-round"),k=m("core-wp-table");return a(),d("div",le,[c(k,{columns:u.getColumns,rows:u.rowData,filters:[],"show-search":!0,totals:{total:n.writingAssistantStore.getCompetitorsSearched.length,pages:n.writingAssistantStore.getCompetitorsPages},onSortColumn:t[0]||(t[0]=g=>n.writingAssistantStore.doCompetitorSort(g)),onProcessChangeItemsPerPage:t[1]||(t[1]=g=>n.writingAssistantStore.doCompetitorPerPage(g)),onPaginate:t[2]||(t[2]=g=>n.writingAssistantStore.sortFilters.competitors.page=g),showItemsPerPage:!0,initialItemsPerPage:n.writingAssistantStore.sortFilters.competitors.perPage,"export-columns":e.disableExport?[]:u.exportColumns,"export-file-name":o.strings.csvFilename,"export-data":n.writingAssistantStore.getCompetitors,showBulkActions:!1,onSearch:t[3]||(t[3]=g=>n.writingAssistantStore.doCompetitorSearch(g)),"show-header":!e.hideHeader,"show-pagination":!e.hideHeader,"show-items-per-page":!e.hideHeader,"show-table-footer":!e.hideHeader},{title:b(({row:g})=>[i("div",null,[i("div",de,[c(p,{domain:g.url},null,8,["domain"])]),i("div",null,[i("div",ce,l(g.title||g.url),1),i("div",_e,[i("a",{href:g.url,title:g.url,target:"_blank"},l(g.url),9,ge)])])])]),readabilityScore:b(({row:g})=>[f(l(g.wasAnalyzed?g.readabilityGrade:"")+" ",1),g.wasAnalyzed?w("",!0):(a(),$(v,{key:0}))]),wordCount:b(({row:g})=>[f(l(g.wasAnalyzed?g.wordCount:"")+" ",1),g.wasAnalyzed?w("",!0):(a(),$(v,{key:0}))]),gradeScore:b(({row:g})=>[g.wasAnalyzed?(a(),$(h,{key:0,grade:g.grade},null,8,["grade"])):w("",!0),g.wasAnalyzed?w("",!0):(a(),$(v,{key:1}))]),_:1},8,["columns","rows","totals","initialItemsPerPage","export-columns","export-file-name","export-data","show-header","show-pagination","show-items-per-page","show-table-footer"])])}const V=S(ae,[["render",ue]]),pe="all-in-one-seo-pack",me={props:{summary:null},data(){return{strings:{wordCount:r("words",pe)}}},computed:{getSummary(){var s;return 0<((s=this.summary)==null?void 0:s.wordCount)?this.summary.wordCount:0}}},we={class:"aioseo-writing-assistant__summary-wordCount"},he={class:"aioseo-writing-assistant__summary-wordCount-count"};function ye(s,t,e,n,o,u){return a(),d("div",we,[i("div",he,l(u.getSummary),1),f(" "+l(o.strings.wordCount),1)])}const mt=S(me,[["render",ye]]),ve="all-in-one-seo-pack",be={props:{summary:null},data(){return{strings:{readability:r("readability",ve)}}},computed:{getReadability(){var s,t;return(s=this.summary)!=null&&s.wordCount&&((t=this.summary)!=null&&t.readabilityGrade)?this.summary.readabilityGrade:"-"}}},fe={class:"aioseo-writing-assistant__summary-readability"},ke={class:"aioseo-writing-assistant__summary-readability-grade"};function Ce(s,t,e,n,o,u){return a(),d("div",fe,[i("div",ke,l(u.getReadability),1),f(" "+l(o.strings.readability),1)])}const wt=S(be,[["render",Ce]]),Se={},xe={viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-right-arrow-simple"},Ae=i("path",{d:"M1.1947 1L5.1947 5L1.1947 9",stroke:"currentColor","stroke-width":"2"},null,-1),Pe=[Ae];function $e(s,t){return a(),d("svg",xe,Pe)}const ht=S(Se,[["render",$e]]),ze={class:"aioseo-collapse-box__content"},yt={__name:"CollapseBox",props:{open:{type:Boolean,default:!0}},setup(s){const e=N(s.open);return(n,o)=>(a(),d("div",{class:R(["aioseo-collapse-box",{"aioseo-collapse-box__open":e.value,"aioseo-collapse-box__closed":!e.value}])},[i("div",{class:"aioseo-collapse-box__header",onClick:o[0]||(o[0]=u=>e.value=!e.value)},[H(n.$slots,"title"),c(_(ht),{class:"aioseo-collapse-box__header-arrow",style:j({transform:e.value?"rotate(-90deg)":"rotate(-0deg)"})},null,8,["style"])]),c(_(jt),{name:"aioseo-collapse-box",active:e.value},{default:b(()=>[i("div",ze,[H(n.$slots,"body")])]),_:3},8,["active"])],2))}},Re={class:"aioseo-writing-assistant__report-details-report"},Le={class:"aioseo-writing-assistant__report-details-report-item"},Be={class:"aioseo-writing-assistant__report-details-report-item-label"},Ie={class:"aioseo-writing-assistant__report-details-report-item"},Te={class:"aioseo-writing-assistant__report-details-report-item-label"},Ee={class:"aioseo-writing-assistant__report-details-report-item"},We={class:"aioseo-writing-assistant__report-details-report-item-label"},vt={__name:"Details",props:["open"],setup(s){const t="all-in-one-seo-pack",e=C(),n=Z(),o={reportDetails:r("Report Details",t),reportGenerating:r("Generating Report For",t),keyword:r("Keyword",t),country:r("Country",t),language:r("Language",t)},u=s;return(p,v)=>_(e).hasReport||_(e).isProcessing?(a(),d("div",{key:0,class:R(["aioseo-writing-assistant__report-details",{loading:_(e).isProcessing}])},[c(_(yt),{open:u.open},{title:b(()=>[f(l(_(e).isProcessing?o.reportGenerating:o.reportDetails),1)]),body:b(()=>[i("div",Re,[i("div",Le,[i("span",Be,l(o.keyword)+":",1),f(" "+l(_(e).keywordText),1)]),i("div",Ie,[i("span",Te,l(o.country)+":",1),f(" "+l(_(n).getCountryLabel(_(e).report.country)),1)]),i("div",Ee,[i("span",We,l(o.language)+":",1),f(" "+l(_(n).getLanguageLabel(_(e).report.language)),1)])])]),_:1},8,["open"])],2)):w("",!0)}},Ke={key:0,class:"aioseo-writing-assistant__report-history"},Oe={class:"aioseo-wp-table"},De={class:"wp-table"},Me={key:0},Ge={key:1},Fe=["onClick"],He={key:0},Ve={key:1},bt={__name:"History",props:{open:{type:Boolean,default:!0},hideColumns:{type:Array,default:()=>[]}},setup(s){const t=Ut(),e="all-in-one-seo-pack",n=C(),o=Z(),u={reportHistory:r("Report History",e),keyword:r("Keyword",e),region:r("Region",e),language:r("Language",e),score:r("Score",e)},p=s,v=h=>{n.openReport(h.title,h.country,h.language),t.scrollTo("aioseo-writing-assistant-metabox")};return U(()=>{n.updateReportHistory()}),(h,k)=>_(n).reportHistory.length?(a(),d("div",Ke,[c(_(yt),{open:p.open},{title:b(()=>[f(l(u.reportHistory),1)]),body:b(()=>[i("div",Oe,[i("div",De,[i("table",null,[i("thead",null,[i("tr",null,[i("th",null,l(u.keyword),1),p.hideColumns.includes("region")?w("",!0):(a(),d("th",Me,l(u.region),1)),p.hideColumns.includes("language")?w("",!0):(a(),d("th",Ge,l(u.language),1))])]),i("tbody",null,[(a(!0),d(T,null,D(_(n).reportHistory,(g,x)=>(a(),d("tr",{key:g.id,class:R({even:x%2!==0})},[i("td",null,[i("span",{class:"link",onClick:L=>v(g)},l(g.title),9,Fe)]),p.hideColumns.includes("region")?w("",!0):(a(),d("td",He,l(_(o).getCountryLabel(g.country)),1)),p.hideColumns.includes("language")?w("",!0):(a(),d("td",Ve,l(_(o).getLanguageLabel(g.language)),1))],2))),128))])])])])]),_:1},8,["open"])])):w("",!0)}},Ne={class:"aioseo-writing-assistant-report-keyword"},je={key:0,class:"aioseo-writing-assistant-report-keyword__title"},Ue={class:"aioseo-writing-assistant-report-keyword__keyword"},ft={__name:"CurrentKeyword",props:{showTitle:{type:Boolean,default:!0}},setup(s){const t="all-in-one-seo-pack",e=C(),n={reportDetails:r("Report Keyword",t)},o=s;return(u,p)=>(a(),d("div",Ne,[o.showTitle?(a(),d("div",je,l(n.reportDetails),1)):w("",!0),i("div",null,[i("div",Ue,' "'+l(_(e).keywordText)+'" ',1)])]))}},z="all-in-one-seo-pack",Ze={setup(){return{writingAssistantStore:C()}},components:{Competitors:V,GradeRound:G,WordCount:mt,Readability:wt,ReportHistory:bt,ReportDetails:vt,CurrentKeyword:ft},data(){return{strings:{gradeSummary:r("Grade Summary",z),topCompetitor:r("Top Competitor Content",z),yourContent:r("Your Content",z),typicalTop:r("Typical Top",z),typical:r("Typical",z),wordCount:r("words",z),readability:r("readability",z),seeAll:r("See All",z),missingContent:r("You must first add content before the score can be determined.",z)}}},computed:{summaries(){return{1:this.writingAssistantStore.getContentAnalysis,...this.writingAssistantStore.getKeywordCompetitorsSummary}}},methods:{getItemIndexTitle(s){return s==="1"?this.strings.yourContent:s.indexOf("-")===-1?this.strings.typicalTop+" "+s:this.strings.typical+" "+s},isAnalyzingContent(s){return s==="1"&&this.writingAssistantStore.analyzingContent}}},Ye={class:"aioseo-writing-assistant-report__overview"},qe={class:"aioseo-writing-assistant-report__overview-title"},Je={class:"aioseo-writing-assistant-report__overview-summaries"},Qe={class:"aioseo-writing-assistant-report__overview-summaries-item-title"},Xe={class:"aioseo-writing-assistant-report__overview-title"},ts={class:"aioseo-writing-assistant-report__overview-report-info"};function es(s,t,e,n,o,u){const p=m("current-keyword"),v=m("GradeRound"),h=m("WordCount"),k=m("Readability"),g=m("competitors"),x=m("report-details"),L=m("report-history");return a(),d("div",Ye,[i("div",null,[c(p)]),i("div",null,[i("div",qe,l(o.strings.gradeSummary),1),i("div",Je,[(a(!0),d(T,null,D(u.summaries,(y,E)=>(a(),d("div",{key:E,class:"aioseo-writing-assistant-report__overview-summaries-item"},[i("div",Qe,l(u.getItemIndexTitle(E)),1),c(v,{grade:y.wordCount?y.grade:"-"},null,8,["grade"]),c(h,{summary:y},null,8,["summary"]),c(k,{summary:y},null,8,["summary"])]))),128))])]),i("div",null,[i("div",Xe,l(o.strings.topCompetitor),1),c(g,{maxCompetitors:5,hideColumns:["googlePosition"],"disable-export":!0,"disable-sort":!0,"hide-header":!0,"use-raw-data":!0}),i("div",null,[i("span",{class:"aioseo-writing-assistant-report__overview-see-all",onClick:t[0]||(t[0]=y=>s.$emit("change-tab","competitors"))},l(o.strings.seeAll)+" → ",1)])]),i("div",ts,[c(x),c(L)])])}const ot=S(Ze,[["render",es]]),ss="all-in-one-seo-pack",os={props:{keyword:Object},data(){return{strings:{typical:r("Typical",ss)}}}},is={class:"aioseo-writing-assistant__keyword-uses"},ns={key:0,class:"aioseo-writing-assistant__keyword-uses-typical"};function rs(s,t,e,n,o,u){return a(),d("div",is,[i("span",{class:R({"in-bounds":e.keyword.lowerCount&&e.keyword.contentCount>=e.keyword.lowerCount})},l(e.keyword.contentCount??0),3),e.keyword.lowerCount?(a(),d("span",ns,[f("("+l(o.strings.typical)+": ",1),e.keyword.lowerCount<e.keyword.higherCount?(a(),d(T,{key:0},[f(l(e.keyword.lowerCount)+"-"+l(e.keyword.higherCount)+") ",1)],64)):w("",!0),e.keyword.lowerCount===e.keyword.higherCount?(a(),d(T,{key:1},[f(l(e.keyword.higherCount)+") ",1)],64)):w("",!0)])):w("",!0)])}const kt=S(os,[["render",rs]]),O="all-in-one-seo-pack",as={props:{keyword:Object,headingPresenceString:String},data(){return{strings:{headingPresenceLevels:{high:r("High",O),mid:r("Moderate",O),low:r("Low",O),"n/a":r("n/a",O)},headingPresence:r("Heading presence",O)}}},computed:{headingPresenceTitle(){var s;return this.strings.headingPresence+": "+this.strings.headingPresenceLevels[(s=this.keyword)==null?void 0:s.headingPresenceLevel]||this.strings.headingPresenceLevels["n/a"]}}},ls=["title"],ds={key:0,class:"aioseo-writing-assistant__keyword-heading-presence-exists"},cs={key:1};function _s(s,t,e,n,o,u){return a(),d("span",{class:"aioseo-writing-assistant__keyword-heading-presence",title:u.headingPresenceTitle},[e.keyword.headingPresenceLevel!=="n/a"?(a(),d("span",ds,[i("span",{class:R(["aioseo-writing-assistant__keyword-heading-presence-icon","aioseo-writing-assistant__keyword-heading-presence-icon-"+e.keyword.headingPresenceLevel])},null,2),f(l(e.headingPresenceString?e.headingPresenceString:o.strings.headingPresenceLevels[e.keyword.headingPresenceLevel]||o.strings.headingPresenceLevels.noPresence),1)])):(a(),d("span",cs,l(o.strings.headingPresenceLevels["n/a"]),1))],8,ls)}const Ct=S(as,[["render",_s]]),gs={props:{keyword:Object}},us={class:"aioseo-writing-assistant__keyword-importance"},ps={class:"aioseo-writing-assistant__keyword-importance-value"},ms=i("span",{class:"aioseo-writing-assistant__keyword-importance-limit"},"/ 10",-1);function ws(s,t,e,n,o,u){return a(),d("span",us,[i("span",ps,l(e.keyword.importance),1),f(),ms])}const St=S(gs,[["render",ws]]),it="all-in-one-seo-pack",hs={setup(){return{writingAssistantStore:C()}},components:{GradeRound:G},props:{keyword:Object},data(){return{strings:{words:r("words",it),desktop:r("desktop",it)},competitors:{}}},methods:{getCompetitorTitle(s){return _t(s.title)}},beforeMount(){for(const s in this.keyword.phrases)this.competitors[s]=this.writingAssistantStore.getCompetitors[s]}},ys={key:0,class:"aioseo-writing-assistant__keyword-examples"},vs={class:"aioseo-writing-assistant__keyword-examples-competitor-info"},bs={class:"aioseo-writing-assistant__keyword-examples-competitor-info-title"},fs=["href"],ks={class:"aioseo-writing-assistant__keyword-examples-competitor-info-meta"},Cs={key:0,class:"aioseo-writing-assistant__keyword-examples-competitor-info-meta-position"},Ss={class:"aioseo-writing-assistant__keyword-examples-competitor-info-meta-position-value"},xs={class:"aioseo-writing-assistant__keyword-examples-competitor-info-meta-content"},As={key:0,class:"aioseo-writing-assistant__keyword-examples-competitor-info-meta-content-wordCount"},Ps={key:1},$s={key:0,class:"aioseo-writing-assistant__keyword-examples-competitor-phrases"},zs=["innerHTML"];function Rs(s,t,e,n,o,u){const p=m("grade-round");return e.keyword.phrases&&o.competitors?(a(),d("div",ys,[(a(!0),d(T,null,D(e.keyword.phrases,(v,h)=>(a(),d("div",{class:"aioseo-writing-assistant__keyword-examples-competitor",key:h},[i("div",vs,[i("div",bs,[i("a",{href:o.competitors[h].url,target:"_blank",rel:"noopener"},l(u.getCompetitorTitle(o.competitors[h])),9,fs)]),i("div",ks,[o.competitors[h].googlePosition?(a(),d("div",Cs,[i("span",Ss," #"+l(o.competitors[h].googlePosition)+" "+l(o.strings.desktop),1)])):w("",!0),i("div",xs,[o.competitors[h].wordCount?(a(),d("div",As,l(o.competitors[h].wordCount)+" "+l(o.strings.words),1)):w("",!0),o.competitors[h].grade?(a(),d("div",Ps,[c(p,{grade:o.competitors[h].grade},null,8,["grade"])])):w("",!0)])])]),v?(a(),d("div",$s,[(a(!0),d(T,null,D(v,(k,g)=>(a(),d("div",{class:"aioseo-writing-assistant__keyword-examples-competitor-phrases-phrase",key:g,innerHTML:k},null,8,zs))),128))])):w("",!0)]))),128))])):w("",!0)}const xt=S(hs,[["render",Rs]]),A="all-in-one-seo-pack",Ls={setup(){return{writingAssistantStore:C()}},components:{SvgExamples:ut,KeywordUses:kt,KeywordHeadingPresence:Ct,KeywordImportance:St,KeywordExamples:xt,CoreModal:Y,CoreWpTable:ct},data(){return{strings:{term:r("Term",A),headingPresence:r("Heading Presence",A),uses:r("Uses",A),importance:r("Importance",A),typical:r("Typical",A),seeExamples:r("See Examples",A),usageExamples:r("Usage Examples",A),csvFilename:r("optimization-wizard.csv",A),headingPresenceLevels:{high:r("High",A),mid:r("Moderate",A),low:r("Low",A),noPresence:r("n/a",A)}},showExamples:""}},computed:{getColumns(){return[{slug:"text",label:this.strings.term,sortable:!0},{slug:"headingPresence",label:this.strings.headingPresence,sortable:!0},{slug:"contentCount",label:this.strings.uses,sortable:!0},{slug:"importance",label:this.strings.importance,width:"110px",sortable:!0}].map(t=>(t.sorted=t.slug===this.writingAssistantStore.sortFilters.optimizationWizard.slug,t.sortDir=t.sorted?this.writingAssistantStore.sortFilters.optimizationWizard.sortDir:"",t!=null&&t.invertSort&&(t.sortDir=t.sortDir==="asc"?"desc":"asc"),t))},exportColumns(){return[{slug:"text",label:this.strings.term},{slug:"headingPresenceLevel",label:this.strings.headingPresence,value:s=>this.strings.headingPresenceLevels[s.headingPresenceLevel]||this.strings.headingPresenceLevels.noPresence},{slug:"contentCount",label:this.strings.uses},{slug:"countTypical",label:this.strings.typical,value:s=>s.lowerCount<s.higherCount?s.lowerCount+" - "+s.higherCount:s.higherCount},{slug:"importance",label:this.strings.importance}]}}},Bs={class:"aioseo-writing-assistant-optimization"},Is={class:"aioseo-writing-assistant-optimization__term-title"},Ts={key:0,class:"aioseo-writing-assistant-optimization__similar-terms"},Es={class:"aioseo-writing-assistant-optimization__actions"},Ws=["onClick"];function Ks(s,t,e,n,o,u){const p=m("svg-examples"),v=m("keyword-examples"),h=m("core-modal"),k=m("keyword-heading-presence"),g=m("keyword-uses"),x=m("keyword-importance"),L=m("core-wp-table");return a(),d("div",Bs,[c(L,{columns:u.getColumns,rows:n.writingAssistantStore.getKeywordsPaged,filters:[],"show-search":!0,totals:{total:n.writingAssistantStore.getKeywordsSearched.length,pages:n.writingAssistantStore.getKeywordsPages},onSortColumn:t[1]||(t[1]=y=>n.writingAssistantStore.doOptimizationWizardSort(y)),onProcessChangeItemsPerPage:t[2]||(t[2]=y=>n.writingAssistantStore.doOptimizationWizardPerPage(y)),onPaginate:t[3]||(t[3]=y=>n.writingAssistantStore.sortFilters.optimizationWizard.page=y),"initial-page-number":n.writingAssistantStore.sortFilters.optimizationWizard.page,"show-items-per-page":!0,"initial-items-per-page":n.writingAssistantStore.sortFilters.optimizationWizard.perPage,"export-columns":u.exportColumns,"export-file-name":o.strings.csvFilename,"export-data":n.writingAssistantStore.getKeywords,showBulkActions:!1,onSearch:t[4]||(t[4]=y=>n.writingAssistantStore.doOptimizationWizardSearch(y))},{text:b(({row:y})=>[i("div",Is,l(y.text),1),y.similar?(a(),d("div",Ts,l(y.similar.join(", ")),1)):w("",!0),i("div",Es,[y.phrases?(a(),d("div",{key:0,class:"aioseo-writing-assistant-optimization__click-examples",onClick:E=>o.showExamples=y.text},[c(p),f(" "+l(o.strings.seeExamples),1)],8,Ws)):w("",!0)]),c(h,{show:y.text===o.showExamples,onClose:t[0]||(t[0]=E=>o.showExamples="")},{headerTitle:b(()=>[f(' "'+l(y.text)+'" '+l(o.strings.usageExamples),1)]),body:b(()=>[c(v,{keyword:y},null,8,["keyword"])]),_:2},1032,["show"])]),headingPresence:b(({row:y})=>[c(k,{keyword:y},null,8,["keyword"])]),contentCount:b(({row:y})=>[c(g,{keyword:y},null,8,["keyword"])]),importance:b(({row:y})=>[c(x,{keyword:y},null,8,["keyword"])]),_:1},8,["columns","rows","totals","initial-page-number","initial-items-per-page","export-columns","export-file-name","export-data"])])}const nt=S(Ls,[["render",Ks]]),Os={key:0,class:"aioseo-writing-assistant__reports-remaining"},Ds=i("span",{class:"aioseo-writing-assistant__reports-remaining-red"},"*",-1),Ms={key:0,class:"aioseo-writing-assistant__reports-remaining-upgrade"},Gs=i("span",{class:"aioseo-writing-assistant__reports-remaining-upgrade-divider"},"|",-1),Fs={href:"https://app.seoboost.com/subscription/",target:"_blank"},q={__name:"ReportsRemaining",setup(s){const t="all-in-one-seo-pack",e=C(),n={reportsRemaining:r("Reports",t),upgrade:r("Get More Reports",t)};return U(()=>{e.updateUserInfo()}),(o,u)=>{var p,v,h,k,g,x;return(p=_(e).userInfo)!=null&&p.limit?(a(),d("div",Os,[i("span",null,[Ds,f(l(n.reportsRemaining)+": "+l((v=_(e).userInfo)==null?void 0:v.left)+"/"+l((h=_(e).userInfo)==null?void 0:h.limit),1)]),(g=(k=_(e).userInfo)==null?void 0:k.subscription_info)!=null&&g.canUserUpgrade&&10>=((x=_(e).userInfo)==null?void 0:x.left)?(a(),d("span",Ms,[Gs,i("a",Fs,l(n.upgrade),1)])):w("",!0)])):w("",!0)}}},I="all-in-one-seo-pack",Hs={emits:["report-generating"],setup(){return{writingAssistantStore:C(),writingAssistantSettingsStore:Z()}},components:{BaseInput:Et,BaseButton:pt,BaseSelect:lt,CoreAlert:Yt},props:{descriptionPosition:String,showButton:{type:Boolean,default(){return!0}},disabled:Boolean},data(){return{strings:{keyword:r("Keyword",I),country:r("Region",I),language:r("Language",I),generateAReport:r("Generate a Report",I),generateReport:r("Generate Report",I),generatingReport:r("Generating Report...",I),insert:r("Insert keyword that you want to rank for.",I),processingKeyword:r("The keyword is being processed. This can take a couple of minutes.",I)},newKeyword:""}},mounted(){this.newKeyword=this.writingAssistantStore.keywordText}},Vs={class:"aioseo-writing-assistant__new-keyword"},Ns={class:"aioseo-writing-assistant__new-keyword-label"},js={class:"aioseo-writing-assistant__new-keyword-input"},Us={class:"aioseo-description"},Zs={class:"aioseo-writing-assistant__new-keyword-label"},Ys={class:"aioseo-writing-assistant__new-keyword-label"};function qs(s,t,e,n,o,u){const p=m("base-input"),v=m("base-select"),h=m("base-button"),k=m("core-alert");return a(),d("div",Vs,[i("div",null,[i("div",Ns,l(o.strings.keyword),1),i("div",js,[c(p,{type:"text",size:"medium",modelValue:o.newKeyword,"onUpdate:modelValue":t[0]||(t[0]=g=>o.newKeyword=g),disabled:n.writingAssistantStore.isProcessing||e.disabled},null,8,["modelValue","disabled"])]),i("div",Us,l(o.strings.insert),1)]),i("div",null,[i("div",Zs,l(o.strings.country),1),c(v,{size:"medium",options:n.writingAssistantSettingsStore.getCountriesOptions,modelValue:n.writingAssistantSettingsStore.userCountryOption,"onUpdate:modelValue":t[1]||(t[1]=g=>n.writingAssistantSettingsStore.seoBoost.userOptions.country=g.value),disabled:n.writingAssistantStore.isProcessing},null,8,["options","modelValue","disabled"])]),i("div",null,[i("div",Ys,l(o.strings.language),1),c(v,{size:"medium",options:n.writingAssistantSettingsStore.getLanguagesOptions,modelValue:n.writingAssistantSettingsStore.userLanguageOption,"onUpdate:modelValue":t[2]||(t[2]=g=>n.writingAssistantSettingsStore.seoBoost.userOptions.language=g.value),disabled:n.writingAssistantStore.isProcessing},null,8,["options","modelValue","disabled"])]),i("div",null,[e.showButton?(a(),$(h,{key:0,size:"medium",type:"blue",onClick:t[3]||(t[3]=g=>n.writingAssistantStore.processKeyword({keyword:o.newKeyword,country:n.writingAssistantSettingsStore.seoBoost.userOptions.country,language:n.writingAssistantSettingsStore.seoBoost.userOptions.language})),loading:n.writingAssistantStore.processing,disabled:o.newKeyword.length===0},{default:b(()=>[f(l(n.writingAssistantStore.polling?o.strings.generatingReport:o.strings.generateReport),1)]),_:1},8,["loading","disabled"])):w("",!0)]),n.writingAssistantStore.error?(a(),$(k,{key:0,type:"red"},{default:b(()=>[f(l(n.writingAssistantStore.error),1)]),_:1})):w("",!0)])}const Js=S(Hs,[["render",qs],["__scopeId","data-v-0494fc3e"]]),Qs={class:"aioseo-writing-assistant__generate-report"},Xs={key:0},J={__name:"GenerateReport",props:{buttonSize:String,showReportsLeft:{type:Boolean,default:!1}},setup(s){const t="all-in-one-seo-pack",e=C(),n=N(!1),o={generateReport:r("Generate a New Report",t),noReportsLeft:r("You have no reports left.",t)},u=s;return(p,v)=>{var h,k;return a(),d("div",Qs,[c(_(pt),{type:"blue",onClick:v[0]||(v[0]=g=>n.value=!0),size:u.buttonSize,disabled:0>=((h=_(e).userInfo)==null?void 0:h.left),title:0>=((k=_(e).userInfo)==null?void 0:k.left)?o.noReportsLeft:o.generateReport},{default:b(()=>[f(l(o.generateReport),1)]),_:1},8,["size","disabled","title"]),u.showReportsLeft?(a(),d("div",Xs,[c(_(q))])):w("",!0),c(_(Y),{show:n.value&&!_(e).polling,classes:["aioseo-writing-assistant__generate-report-modal"],onClose:v[1]||(v[1]=g=>n.value=!1),"allow-overflow":!0,"allow-bg-close":!1},{headerTitle:b(()=>[f(l(o.generateReport),1)]),body:b(()=>[c(_(Js))]),_:1},8,["show"])])}}},to=""+window.__aioseoDynamicImportPreload__("svg/connected.7b0fbda9.svg"),eo={class:"aioseo-writing-assistant-first-report"},so=["src"],oo={class:"aioseo-writing-assistant-first-report__title"},io={class:"aioseo-writing-assistant-first-report__description"},At={__name:"FirstReport",setup(s){const t="all-in-one-seo-pack",e={title:r("Your Account is Connected to SEOBoost! 🎉",t),description:r("Now you're ready to harness the power of data-driven insights. Create your first report and discover how to optimize your content for better search visibility and engagement.",t)};return(n,o)=>(a(),d("div",eo,[i("img",{src:_(Nt)(_(to))},null,8,so),i("div",null,[i("div",oo,l(e.title),1),i("div",io,l(e.description),1)]),c(_(J),{"button-size":"medium","show-reports-left":!0})]))}},no={class:"aioseo-loading-bar"},ro={class:"aioseo-loading-bar__bar"},ao={key:0,class:"aioseo-loading-bar__number"},lo={__name:"LoadingBar",props:{showNumber:{type:Boolean,default:!0},percent:Number},setup(s){const t=s,e=X(()=>t.percent||0),n=X(()=>({width:e.value+"%"}));return(o,u)=>(a(),d("div",no,[i("div",ro,[i("div",{class:"aioseo-loading-bar__progress",style:j(n.value)},null,4)]),t.showNumber?(a(),d("div",ao,l(e.value)+"% ",1)):w("",!0),H(o.$slots,"default")]))}},co={class:"aioseo-seoboost-processing"},_o={class:"aioseo-seoboost-processing__title"},go={class:"aioseo-seoboost-processing__keyword"},Pt={__name:"Processing",setup(s){const t="all-in-one-seo-pack",e=C(),n={processing:r("Generating Report For",t)},o=N(0);return Lt(()=>e.progress.percent,u=>{o.value=u}),U(()=>{setTimeout(()=>{o.value=e.progress.percent},200)}),(u,p)=>(a(),d("div",co,[i("div",_o,l(n.processing),1),i("div",go,' "'+l(_(e).keywordText)+'" ',1),c(_(lo),{percent:o.value,"show-number":!1},{default:b(()=>[f(l(_(e).progress.text),1)]),_:1},8,["percent"])]))}},F="all-in-one-seo-pack",uo={setup(){return{writingAssistantStore:C()}},components:{Overview:ot,Competitors:V,OptimizationWizard:nt,CoreMainTabs:Zt,ReportsRemaining:q,GenerateReport:J,FirstReport:At,Processing:Pt},data(){return{tab:"overview",tabs:[{slug:"overview",name:r("Overview",F),component:ot},{slug:"optimization-wizard",name:r("Optimization Wizard",F),component:nt},{slug:"competitors",name:r("Competitors",F),component:V}]}},methods:{processChangeTab(s){this.tab=s}}},po={key:0},mo={class:"aioseo-writing-assistant-report__tab-content"},wo={key:1},ho={class:"aioseo-writing-assistant-report__tab-content"},yo={key:2},vo={class:"aioseo-writing-assistant-report__tab-content"};function bo(s,t,e,n,o,u){const p=m("reports-remaining"),v=m("generate-report"),h=m("core-main-tabs"),k=m("first-report"),g=m("processing");return a(),d("div",{class:R(["aioseo-writing-assistant-report",{loading:n.writingAssistantStore.processing&&!n.writingAssistantStore.polling}])},[n.writingAssistantStore.hasReport&&!n.writingAssistantStore.polling?(a(),d("div",po,[c(h,{tabs:o.tabs,showSaveButton:!1,active:o.tab,internal:"",disableMobile:"",onChanged:t[0]||(t[0]=x=>u.processChangeTab(x))},{extra:b(()=>[c(p),c(v,{"button-size":"small"})]),_:1},8,["tabs","active"]),i("div",mo,[c(It,{name:"route-fade",mode:"out-in"},{default:b(()=>[(a(),$(Bt(o.tab),{onChangeTab:t[1]||(t[1]=x=>u.processChangeTab(x))},null,32))]),_:1})])])):w("",!0),!n.writingAssistantStore.hasReport&&!n.writingAssistantStore.polling?(a(),d("div",wo,[i("div",ho,[c(k)])])):w("",!0),n.writingAssistantStore.polling?(a(),d("div",yo,[i("div",vo,[c(g)])])):w("",!0)],2)}const fo=S(uo,[["render",bo]]),ko={class:"aioseo-app"},Co={class:"aioseo-writing-assistant"},So={key:0},xo={key:1},Ao={class:"aioseo-writing-assistant-metabox__padding"},Po={__name:"App",setup(s){const t=C();return(e,n)=>(a(),d("div",ko,[i("div",Co,[_(t).seoBoost.isLoggedIn?(a(),d("div",So,[c(_(fo))])):w("",!0),_(t).seoBoost.isLoggedIn?w("",!0):(a(),d("div",xo,[i("div",Ao,[c(_(gt))])]))])]))}},$o={},zo={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-circle-empty"},Ro=i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"},null,-1),Lo=[Ro];function Bo(s,t){return a(),d("svg",zo,Lo)}const Io=S($o,[["render",Bo]]),K="all-in-one-seo-pack",To={components:{SvgCheck:qt,SvgCheckEmpty:Io,SvgRightArrowSimple:ht,SvgExamples:ut,KeywordUses:kt,KeywordHeadingPresence:Ct,KeywordImportance:St,KeywordExamples:xt,CoreModal:Y},props:{keyword:Object},data(){return{strings:{uses:r("Uses",K),heading:r("Heading",K),importance:r("Importance",K),headingPresence:r("Heading Presence",K),seeExamples:r("See Examples",K),usageExamples:r("Usage Examples",K)},showDetails:!1,showExamples:!1}},computed:{usageInsideBounds(){var s;return(s=this.keyword)!=null&&s.contentCount&&0<this.keyword.contentCount?this.keyword.contentCount>=this.keyword.lowerCount:!1},usageWidth(){var s,t,e,n;return(s=this.keyword)!=null&&s.contentCount&&(t=this.keyword)!=null&&t.lowerCount?Math.min(100,((e=this.keyword)==null?void 0:e.contentCount)*100/((n=this.keyword)==null?void 0:n.lowerCount)):0}}},Eo={class:"aioseo-writing-assistant__sidebar-keyword-usage"},Wo={class:"aioseo-writing-assistant__sidebar-keyword-element"},Ko={class:"aioseo-writing-assistant__sidebar-keyword-element-upper-text"},Oo={class:"aioseo-writing-assistant__sidebar-keyword-element-upper-open-details"},Do={style:{display:"flex","align-items":"center"}},Mo={class:"aioseo-writing-assistant__sidebar-keyword-element-bottom-label"},Go={key:0,class:"aioseo-writing-assistant__sidebar-keyword-element-bottom-details"},Fo={class:"aioseo-writing-assistant__sidebar-keyword-element-bottom-details-label"},Ho={class:"aioseo-writing-assistant__sidebar-keyword-element-bottom-details-label"},Vo=i("div",{class:"aioseo-writing-assistant__sidebar-keyword-separator"},null,-1),No={key:0,class:"aioseo-writing-assistant__sidebar-keyword-similar"};function jo(s,t,e,n,o,u){const p=m("svg-check"),v=m("svg-check-empty"),h=m("svg-right-arrow-simple"),k=m("keyword-uses"),g=m("keyword-heading-presence"),x=m("keyword-importance"),L=m("svg-examples"),y=m("keyword-examples"),E=m("core-modal");return a(),d("div",{class:R(["aioseo-writing-assistant__sidebar-keyword",{open:o.showDetails}])},[i("div",Eo,[u.usageInsideBounds?(a(),$(p,{key:0})):w("",!0),u.usageInsideBounds?w("",!0):(a(),$(v,{key:1}))]),i("div",Wo,[i("div",{class:"aioseo-writing-assistant__sidebar-keyword-element-upper",onClick:t[0]||(t[0]=Q=>o.showDetails=!o.showDetails)},[i("div",Ko,l(e.keyword.text),1),i("div",Oo,[c(h)])]),i("div",{class:R(["aioseo-writing-assistant__sidebar-keyword-element-bottom",{"aioseo-writing-assistant__sidebar-keyword-element-bottom-small":100<=e.keyword.higherCount&&100<=e.keyword.contentCount}])},[i("div",Do,[i("span",Mo,l(o.strings.uses)+":",1),c(k,{keyword:e.keyword},null,8,["keyword"])]),tt(c(g,{keyword:e.keyword,"heading-presence-string":o.strings.heading},null,8,["keyword","heading-presence-string"]),[[et,!o.showDetails]])],2),o.showDetails?(a(),d("div",Go,[i("div",null,[i("span",Fo,l(o.strings.importance)+":",1),c(x,{keyword:e.keyword},null,8,["keyword"])]),i("div",null,[i("span",Ho,l(o.strings.headingPresence)+":",1),c(g,{keyword:e.keyword},null,8,["keyword"])]),Vo,e.keyword.similar?(a(),d("div",No,l(e.keyword.similar.join(", ")),1)):w("",!0),e.keyword.phrases?(a(),d("div",{key:1,class:"aioseo-writing-assistant__sidebar-keyword-click-examples",onClick:t[1]||(t[1]=Q=>o.showExamples=!o.showExamples)},[c(L),f(" "+l(o.strings.seeExamples),1)])):w("",!0),c(E,{show:o.showExamples,onClose:t[2]||(t[2]=Q=>o.showExamples=!1)},{headerTitle:b(()=>[f(' "'+l(e.keyword.text)+'" '+l(o.strings.usageExamples),1)]),body:b(()=>[c(y,{keyword:e.keyword},null,8,["keyword"])]),_:1},8,["show"])])):w("",!0)]),tt(i("div",{class:"aioseo-writing-assistant__sidebar-keyword-usage-bar",style:j({width:u.usageWidth+"%"})},null,4),[[et,!o.showDetails]])],2)}const Uo=S(To,[["render",jo]]),Zo={class:"aioseo-writing-assistant__your-content"},Yo={class:"aioseo-writing-assistant__your-content-title"},qo={class:"aioseo-writing-assistant__your-content-stats"},Jo={__name:"YourContent",setup(s){const t="all-in-one-seo-pack",e=C(),n={yourContent:r("Your Content",t),missingContent:r("You must first add content before the score can be determined.",t)};return(o,u)=>{var p;return a(),d("div",Zo,[i("div",Yo,l(n.yourContent)+":",1),i("div",null,[c(_(G),{grade:(p=_(e).getContentAnalysis)!=null&&p.wordCount?_(e).getContentAnalysis.grade:"-"},null,8,["grade"])]),i("div",qo,[c(_(mt),{summary:_(e).getContentAnalysis},null,8,["summary"]),c(_(wt),{summary:_(e).getContentAnalysis},null,8,["summary"])])])}}},P="all-in-one-seo-pack",Qo={setup(){return{writingAssistantStore:C()}},components:{ReportsRemaining:q,GenerateReport:J,ReportDetails:vt,ReportHistory:bt,ReportYourContent:Jo,Keyword:Uo,BaseSelect:lt},data(){return{strings:{sortBy:r("Sort By",P),filterPlaceholder:r("Click to Sort...",P)},filters:[{label:r("Term (A-Z)",P),value:{slug:"text",order:"asc"}},{label:r("Term (Z-A)",P),value:{slug:"text",order:"desc"}},{label:r("Heading Presence (Highest)",P),value:{slug:"headingPresence",order:"desc"}},{label:r("Heading Presence (Lowest)",P),value:{slug:"headingPresence",order:"asc"}},{label:r("Uses (Highest)",P),value:{slug:"contentCount",order:"desc"}},{label:r("Uses (Lowest)",P),value:{slug:"contentCount",order:"asc"}},{label:r("Importance (Highest)",P),value:{slug:"importance",order:"desc"}},{label:r("Importance (Lowest)",P),value:{slug:"importance",order:"asc"}}]}},computed:{filterValue(){return this.filters.find(s=>{var t,e;return s.value.slug===((t=this.writingAssistantStore.sortFilters.optimizationWizard)==null?void 0:t.slug)&&s.value.order===((e=this.writingAssistantStore.sortFilters.optimizationWizard)==null?void 0:e.sortDir)})}}},Xo={class:"aioseo-writing-assistant-optimization-sidebar"},ti={class:"aioseo-writing-assistant-optimization-sidebar__generate-report"},ei={key:0,class:"aioseo-writing-assistant-optimization-sidebar__keywords"},si={class:"aioseo-writing-assistant-optimization-sidebar__keywords-filter"},oi={class:"aioseo-writing-assistant-optimization-sidebar__keywords-list"};function ii(s,t,e,n,o,u){const p=m("generate-report"),v=m("reports-remaining"),h=m("report-your-content"),k=m("base-select"),g=m("keyword"),x=m("report-details"),L=m("report-history");return a(),d("div",Xo,[i("div",ti,[c(p,{"button-size":"medium"}),c(v)]),c(h),n.writingAssistantStore.getKeywords.length?(a(),d("div",ei,[i("div",si,[i("div",null,l(o.strings.sortBy),1),c(k,{options:o.filters,modelValue:u.filterValue,"onUpdate:modelValue":t[0]||(t[0]=y=>n.writingAssistantStore.doOptimizationWizardSort(y.value)),size:"small",searchable:!1,placeholder:o.strings.filterPlaceholder},null,8,["options","modelValue","placeholder"])]),i("div",oi,[(a(!0),d(T,null,D(n.writingAssistantStore.getKeywords,y=>(a(),$(g,{key:y,keyword:y},null,8,["keyword"]))),128))])])):w("",!0),c(x,{open:!1}),c(L,{open:!1,"hide-columns":["region","language"]})])}const ni=S(Qo,[["render",ii]]),ri={class:"aioseo-app"},ai={class:"aioseo-writing-assistant aioseo-writing-assistant-sidebar"},li={key:0},di={key:0},ci={key:1},_i={class:"aioseo-writing-assistant-sidebar__tab-content"},gi={key:2},ui={class:"aioseo-writing-assistant-sidebar__tab-content"},pi={key:1},mi={class:"aioseo-writing-assistant-sidebar__tab-content"},wi={__name:"Sidebar",setup(s){const t=C();return(e,n)=>(a(),d("div",null,[i("div",ri,[i("div",ai,[_(t).seoBoost.isLoggedIn?(a(),d("div",li,[_(t).hasReport&&!_(t).polling?(a(),d("div",di,[c(_(ft)),c(_(ni))])):w("",!0),!_(t).hasReport&&!_(t).polling?(a(),d("div",ci,[i("div",_i,[c(_(At))])])):w("",!0),_(t).polling?(a(),d("div",gi,[i("div",ui,[c(_(Pt))])])):w("",!0)])):w("",!0),_(t).seoBoost.isLoggedIn?w("",!0):(a(),d("div",pi,[i("div",mi,[c(_(gt))])]))])])]))}};(function(s){const t="all-in-one-seo-pack";if(!dt())return;const e=s.plugins.registerPlugin,n=s.editPost.PluginSidebarMoreMenuItem,o=s.editPost.PluginSidebar,u=s.element.Fragment,p=s.element.createElement,v=p("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p("path",{d:"M5 19.4998H6.425L16.2 9.72482L14.775 8.29982L5 18.0748V19.4998ZM3 21.4998V17.2498L16.2 4.07482C16.4 3.89148 16.6208 3.74982 16.8625 3.64982C17.1042 3.54982 17.3583 3.49982 17.625 3.49982C17.8917 3.49982 18.15 3.54982 18.4 3.64982C18.65 3.74982 18.8667 3.89982 19.05 4.09982L20.425 5.49982C20.625 5.68315 20.7708 5.89982 20.8625 6.14982C20.9542 6.39982 21 6.64982 21 6.89982C21 7.16648 20.9542 7.42065 20.8625 7.66232C20.7708 7.90398 20.625 8.12482 20.425 8.32482L7.25 21.4998H3ZM15.475 9.02482L14.775 8.29982L16.2 9.72482L15.475 9.02482Z",fill:"white"}),p("path",{d:"M5.83312 11.4994C5.83312 10.2604 6.26409 9.20986 7.12605 8.34791C7.988 7.48596 9.0385 7.05498 10.2776 7.05498C9.0385 7.05498 7.988 6.624 7.12605 5.76205C6.26409 4.9001 5.83312 3.84959 5.83312 2.61053C5.83312 3.84959 5.40214 4.9001 4.54019 5.76205C3.67823 6.624 2.62773 7.05498 1.38867 7.05498C2.62773 7.05498 3.67823 7.48596 4.54019 8.34791C5.40214 9.20986 5.83312 10.2604 5.83312 11.4994Z",fill:"white"}),p("path",{d:"M11.3891 5.94383C11.3891 5.32431 11.1736 4.79905 10.7426 4.36808C10.3117 3.9371 9.78641 3.72161 9.16688 3.72161C9.78641 3.72161 10.3117 3.50612 10.7426 3.07515C11.1736 2.64417 11.3891 2.11892 11.3891 1.49939C11.3891 2.11892 11.6046 2.64417 12.0356 3.07515C12.4665 3.50612 12.9918 3.72161 13.6113 3.72161C12.9918 3.72161 12.4665 3.9371 12.0356 4.36808C11.6046 4.79905 11.3891 5.32431 11.3891 5.94383Z",fill:"white"}),p("path",{d:"M16.5 21.5002C16.5 20.5245 16.8394 19.6972 17.5182 19.0184C18.197 18.3396 19.0242 18.0002 20 18.0002C19.0242 18.0002 18.197 17.6609 17.5182 16.9821C16.8394 16.3033 16.5 15.476 16.5 14.5002C16.5 15.476 16.1606 16.3033 15.4818 16.9821C14.803 17.6609 13.9758 18.0002 13 18.0002C13.9758 18.0002 14.803 18.3396 15.4818 19.0184C16.1606 19.6972 16.5 20.5245 16.5 21.5002Z",fill:"white"})),h=p("div",{id:"aioseo-writing-assistant-sidebar-button"},v),k=window.aioseo.user;e("aioseo-writing-assistant-sidebar",{render:function(){return k.capabilities.aioseo_page_writing_assistant_settings?p(u,{},p(n,{target:"aioseo-writing-assistant-sidebar",icon:v,id:"aioseo-writing-assistant-sidebar-button",title:"AIOSEO"},r("AIOSEO Writing Assistant",t)),p(o,{name:"aioseo-writing-assistant-sidebar",icon:h,title:r("AIOSEO Writing Assistant",t)},p("div",{id:"aioseo-writing-assistant-sidebar"},p("div",p("div",{className:"aioseo-loading-spinner dark"},p("div",{className:"double-bounce1"},null),p("div",{className:"double-bounce2"},null)))))):null}})})(window.wp);class hi{constructor(){W(this,"content",null);W(this,"updating",!1);W(this,"writingAssistantStore",null);W(this,"updateKeywordCount",st(()=>{const t=this.getContent();t!==!1&&this.writingAssistantStore.countContentKeywords(t).finally(()=>{this.updating=!1})},250));W(this,"updateContentAnalysis",st(()=>{const t=this.getContent();t!==!1&&this.writingAssistantStore.analyzeContent(t).finally(()=>{this.updating=!1})},1e3));window.aioseo.currentPost&&(window.aioseo.writingAssistantWatcherSet||(this.writingAssistantStore=C(),this.initWatchers(),window.aioseo.writingAssistantWatcherSet=!0))}initWatchers(){if(dt()){const t=window.setInterval(()=>{window.wp.data.select("core/editor").getCurrentPost().id&&(window.clearInterval(t),this.watchBlockEditor())},50)}if(Ot()){const t=window.setInterval(()=>{!window.tinyMCE||!window.tinyMCE.activeEditor||(window.clearInterval(t),this.watchClassicEditor())},50)}window.aioseoBus.$on("writingAssistantAnalyzeContent",()=>{this.updateKeywordCount(),this.updateContentAnalysis()})}watchBlockEditor(){window.wp.data.subscribe(()=>{this.writingAssistantStore.seoBoost.isLoggedIn&&(this.updateKeywordCount(),this.updateContentAnalysis())})}watchClassicEditor(){window.tinyMCE.get("content").on("keyup",()=>{this.updateKeywordCount(),this.updateContentAnalysis()}),this.updateKeywordCount(),this.updateContentAnalysis()}getContent(){return this.writingAssistantStore.hasReport?Jt(!0):!1}}new hi;const $t=s=>{var n;s=Tt(s),s=Wt(s),s=Kt(s),Dt(s);const t=C(),e=aioseoWritingAssistant||null;return e&&!t.loaded&&(t.$state=Mt({...t.$state},{...e||{}}),t.setUserLoggedIn((n=e==null?void 0:e.seoBoost)==null?void 0:n.isLoggedIn),t.loaded=!0),s};$t(rt({name:"Standalone/WritingAssistant/Metabox",render:()=>at(Po)})).mount("#aioseo-writing-assistant-metabox-app");let M;const yi=()=>{M&&M.unmount(),M=rt({data(){return{tableContext:"post",screenContext:"sidebar"}},render:()=>at(wi)}),$t(M).mount("#aioseo-writing-assistant-sidebar > div")};Gt("#aioseo-writing-assistant-sidebar","aioseoWritingAssistantSidebarVisible");document.addEventListener("animationstart",function(s){s.animationName==="aioseoWritingAssistantSidebarVisible"&&yi()},{passive:!0});
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка