Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/headline-analyzer.e3ffa22e.js
Назад
import{o as d,c as h,a as r,t as i,m as K,b as x,G as b,K as ye,L as fe,v as g,k as v,l as m,E as pe,Q as ee,S as Se,C as S,x as Y,F,J as ge,j as be,R as ie,Y as ve,h as Ce}from"./js/runtime-dom.esm-bundler.6789c400.js";import{l as ze}from"./js/index.3eb8f806.js";import{l as Le}from"./js/index.ee8124c6.js";import{l as xe}from"./js/index.1ca84f0e.js";import{B as ke,u as oe,T as Ae,e as C,s as Oe,c as Pe}from"./js/index.5a710757.js";import{e as Ee}from"./js/elemLoaded.5e0343ce.js";import{s as He}from"./js/metabox.1128ddb8.js";import"./js/translations.12335a6a.js";import{_ as s,s as $}from"./js/default-i18n.54b5d8cd.js";import{_ as y}from"./js/_plugin-vue_export-helper.249dac1d.js";import"./js/Caret.662da1f3.js";import"./js/helpers.f95d5840.js";function Re(){var z,f,O,N,M,B,D,H;const e="all-in-one-seo-pack";if(!ke()||!He())return;const t=oe();if(t.aioseo.registerHeadlineAnalyzerSet)return;t.aioseo.registerHeadlineAnalyzerSet=!0;const o=window.wp.plugins.registerPlugin,c=((f=(z=window==null?void 0:window.wp)==null?void 0:z.editor)==null?void 0:f.PluginSidebarMoreMenuItem)||((N=(O=window.wp)==null?void 0:O.editPost)==null?void 0:N.PluginSidebarMoreMenuItem),a=((B=(M=window==null?void 0:window.wp)==null?void 0:M.editor)==null?void 0:B.PluginSidebar)||((H=(D=window.wp)==null?void 0:D.editPost)==null?void 0:H.PluginSidebar),n=window.wp.element.Fragment,l=window.wp.element.createElement,u=l("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},l("path",{d:"M15.817 2H22v.038l-6.183 4.226V2.001zm-7.62 9.473V2H2.016v4.683-.267l6.126 5.094.057-.038zm-6.182 5.061l6.183 4.213v1.252H2.015v-5.465zm13.802-.857L22 11.559v10.437h-6.183v-6.32z",fillRule:"evenodd",clipRule:"evenodd",fill:"#F18200"}),l("path",{d:"M8.198 11.435l-.057.039L2.016 6.38v.265-4.644h6.182v9.434zm0 9.226L2.015 16.45v5.55h6.183v-1.337zm7.62-5.07L22 11.474v10.522h-6.183v-6.405zM22 2.001l-6.183 4.226V2H22z",fillRule:"evenodd",clipRule:"evenodd",fill:"#F18200"}),l("path",{d:"M8.141 13.537L22 4.064v5.432l-13.8 9.19L2 14.46l.016-6.018 6.125 5.094z",fill:"#F18200"})),p=l("div",{id:"aioseo-headline-analyzer-sidebar-button"},u,l("span",{id:"aioseo-headline-analyzer-sidebar-button-score"},"/100")),_=t.aioseo.user;o("aioseo-headline-analyzer-sidebar",{render:()=>!_.capabilities.aioseo_page_analysis&&!_.capabilities.aioseo_page_general_settings&&!_.capabilities.aioseo_page_social_settings&&!_.capabilities.aioseo_page_schema_settings&&!_.capabilities.aioseo_page_advanced_settings?null:l(n,{},l(c,{target:"aioseo-headline-analyzer-sidebar",icon:u},s("Headline Analyzer",e)),l(a,{name:"aioseo-headline-analyzer-sidebar",icon:p,title:"Headline Analyzer"},l("section",{id:"aioseo-headline-analyzer-sidebar",className:"aioseo-headline-analyzer-sidebar"},l("div",{id:"aioseo-headline-analyzer-sidebar-vue",className:"aioseo-headline-analyzer-sidebar-vue"}))))})}const Te=e=>Ae.agent().set("X-WP-Nonce",e).use(t=>{t.on("response",o=>{(o.status===401||o.status===403)&&console.error(o)})}),We=e=>e.replace(/^\//,""),_e=e=>e.replace(/\/$/,""),Q=e=>_e(e)+"/",Ne=e=>{const t=oe();return e=t.aioseo.data.hasUrlTrailingSlash?Q(e):_e(e),Q(t.aioseo.urls.restUrl)+Q("aioseo/v1")+We(e)},W=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value},{select:te}=window.wp.data;let le,ne=te("core/editor").getEditedPostAttribute("title");const Me=(e,t)=>((...o)=>{const c=()=>e(...o);clearTimeout(le),le=setTimeout(c,t)}).call(),se=async(e=null)=>{let t=ne;return e&&(t=e),t=Oe(t.trim()),t?Te(window.aioseo.nonce).post(Ne("analyze-headline")).send({headline:t,shouldStoreHeadline:!1}).then(o=>({data:o.body,headline:t})).catch(o=>(console.error("Couldn't fetch score for headline:",o),null)):null};window.wp.data.subscribe(()=>{ne!==te("core/editor").getEditedPostAttribute("title")&&(ne=te("core/editor").getEditedPostAttribute("title"),Me(()=>{var t,o,c,a;const e=C();(o=(t=e.currentPost)==null?void 0:t.headlineAnalyzer)!=null&&o.newData&&e.toggleShowNewHeadlineAnalyzerPreview(!1),(a=(c=e.currentPost)==null?void 0:c.headlineAnalyzer)!=null&&a.showNewData&&e.toggleShowNewHeadlineAnalyzerData(!1),ae(!0)},2e3))});async function ae(e=!1){const t=C(),o=async()=>{const l=await se(),u=document.querySelector('button[aria-label="Headline Analyzer"]'),p=document.getElementById("aioseo-headline-analyzer-sidebar-button"),_=document.getElementById("aioseo-headline-analyzer-sidebar-button-score");if(l){const z=JSON.parse(l.data[Object.keys(l.data)[0]]);if(!z){p&&(u.style.display="flex",p.style.display="flex",p.setAttribute("aioseo-button-color","gray")),_&&(_.innerHTML="N/A");return}t.updatePostHeadlineAnalyzerData(l.data,l.headline);const f=z.score,O=40>f?"red":70>f?"orange":"green";t.updateLatestScore(f),p&&(u.style.display="flex",p.style.display="flex",p.setAttribute("aioseo-button-color",O)),_&&(_.innerHTML=`${f}/100`)}else t.updatePostHeadlineAnalyzerData({},""),p&&(u.style.display="flex",p.style.display="flex",p.setAttribute("aioseo-button-color","gray")),_&&(_.innerHTML="N/A")};e&&o();const c=async function(l,u){document.querySelector(".interface-pinned-items")&&(u.disconnect(),o())},a=new MutationObserver(c),n={childList:!0,subtree:!0};a.observe(document.body,n)}const Be={props:{title:{type:String,default:"Accordion",required:!0},openedState:{type:Boolean,default:!0},componentClass:{type:String,default:""},hasIcon:{type:Boolean,default:!1},hasExtraTxt:{type:Boolean,default:!1},iconColor:{type:String,default:""}},data(){return{localOpenedState:this.openedState}},methods:{toggleAccordion(){this.localOpenedState=!this.localOpenedState}}},De=e=>(ye("data-v-c2c4aba7"),e=e(),fe(),e),$e={class:"components-panel__body-title"},Ze=["aria-expanded"],Ve=De(()=>r("span",{"aria-hidden":"true"},[r("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",class:"components-panel__arrow","aria-hidden":"true",focusable:"false"},[r("path",{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})])],-1)),Ge={class:"title-flex"},Ie={key:0,class:"components-panel__row"};function je(e,t,o,c,a,n){return d(),h("div",{class:b(["components-panel__body",[o.componentClass,{"is-opened":a.localOpenedState},{"aioseo-headline-analyzer-panel-has-icon":o.hasIcon},o.iconColor]])},[r("h2",$e,[r("button",{onClick:t[0]||(t[0]=(...l)=>n.toggleAccordion&&n.toggleAccordion(...l)),type:"button","aria-expanded":a.localOpenedState?"true":"false",class:"components-button components-panel__body-toggle"},[Ve,r("div",Ge,[r("span",null,i(o.title),1),o.hasIcon?K(e.$slots,"icon",{key:0},void 0,!0):x("",!0),o.hasExtraTxt?K(e.$slots,"extraTxt",{key:1},void 0,!0):x("",!0)])],8,Ze)]),a.localOpenedState?(d(),h("div",Ie,[K(e.$slots,"default",{},void 0,!0)])):x("",!0)],2)}const k=y(Be,[["render",je],["__scopeId","data-v-c2c4aba7"]]),X="all-in-one-seo-pack",Ue={components:{Accordion:k},data(){return{textPanelTitle:s("Try New Headline",X),textNewHeadlineInputLabel:s("Enter a different headline than your post title to see how it compares.",X),textAnalyze:s("Analyze Headline",X),newHeadline:"",postEditorStore:C()}},methods:{async fetchNewHeadlineData(){let e=null;if(e=this.postEditorStore.currentPost.headlineAnalyzer.previousHeadlines.find(t=>t.headline===this.newHeadline),e){const t={data:{[e.headline]:JSON.stringify(e.result)},headline:e.headline};this.postEditorStore.updateNewHeadlineAnalyzerData(t.data,t.headline),this.postEditorStore.toggleShowNewHeadlineAnalyzerData(!0),this.newHeadline=""}else{const t=await se(this.newHeadline);t&&(this.postEditorStore.updateNewHeadlineAnalyzerData(t.data,t.headline),this.postEditorStore.toggleShowNewHeadlineAnalyzerData(!0),this.newHeadline="")}}}},Fe={class:"aioseo-headline-analyzer-new-tab"},Je={class:"aioseo-headline-analyzer-new-score-form-block"},qe={class:"components-base-control aioseo-headline-analyzer-input-field css-qy3gpb ej5x27r4"},Ye={class:"components-base-control__field css-1t5ousf ej5x27r3"},Ke={class:"components-base-control__label css-1v57ksj ej5x27r2",for:"inspector-text-control-0"},Qe=["disabled"];function Xe(e,t,o,c,a,n){const l=g("accordion");return d(),v(l,{title:a.textPanelTitle,componentClass:"aioseo-headline-analyzer-panel-tab-new-score-form"},{default:m(()=>[r("div",Fe,[r("div",Je,[r("form",{onSubmit:t[1]||(t[1]=pe((...u)=>n.fetchNewHeadlineData&&n.fetchNewHeadlineData(...u),["prevent"]))},[r("div",qe,[r("div",Ye,[r("label",Ke,i(a.textNewHeadlineInputLabel),1),ee(r("input",{class:"components-text-control__input",type:"text",id:"inspector-text-control-0","onUpdate:modelValue":t[0]||(t[0]=u=>a.newHeadline=u)},null,512),[[Se,a.newHeadline]])])]),r("button",{type:"submit",disabled:!a.newHeadline,class:"components-button aioseo-headline-analyzer-button"},i(a.textAnalyze),9,Qe)],32)])])]),_:1},8,["title"])}const et=y(Ue,[["render",Xe]]),tt={props:{color:{type:String,required:!0},currentScore:{type:Number,required:!0}},data(){return{}}},nt={class:"aioseo-donut-container",style:{"flex-direction":"column"}},rt={className:"aioseo-donut-score-svg",viewBox:"0 0 33.83098862 33.83098862",xmlns:"http://www.w3.org/2000/svg"},ot=r("circle",{class:"aioseo-seo-headline-analyzer-score__background",stroke:"#e8e8eb","stroke-width":"2",fill:"none",cx:"16.91549431",cy:"16.91549431",r:"15.91549431"},null,-1),st=["stroke","stroke-dasharray"];function at(e,t,o,c,a,n){return d(),h("div",nt,[(d(),h("svg",rt,[ot,r("circle",{class:"aioseo-seo-headline-analyzer-score__circle",stroke:o.color,"stroke-width":"2","stroke-dasharray":o.currentScore+", 100","stroke-linecap":"round",fill:"none",cx:"16.91549431",cy:"16.91549431",r:"15.91549431"},null,8,st)]))])}const we=y(tt,[["render",at]]),P="all-in-one-seo-pack",it={components:{Accordion:k,PieChart:we},data(){return{veryGoodScore:$(s("A very good score is between %1$d and %2$d.",P),70,100),forBetterResults:$(s("For best results, you should strive for %1$d and above.",P),70),textPanelTitle:s("New Score",P),textCurrentScore:s("Current Score",P),postEditorStore:C()}},computed:{postTitle(){var e,t;return W(((t=(e=this.postEditorStore.currentPost)==null?void 0:e.headlineAnalyzer)==null?void 0:t.headline)||"")},currentResult(){var t;const e=this.postEditorStore.currentPost.headlineAnalyzer.data[(t=Object.keys(this.postEditorStore.currentPost.headlineAnalyzer.data))==null?void 0:t[0]]||null;return e?JSON.parse(e):{}},currentScore(){return this.currentResult.score},newResult(){return this.postEditorStore.newHeadlineAnaylzerData.newResult},newTitle(){return this.newResult.sentence},newScore(){return this.newResult.score},classOnNewScore(){return 40>this.newScore?"red":70>this.newScore?"orange":"green"},barColor(){return this.classOnNewScore==="red"?"#df2a4a":this.classOnNewScore==="orange"?"#F2994A":"#00aa63"},classOnCurrentScoreBg(){return 40>this.currentScore?"red-bg":70>this.currentScore?"orange-bg":"green-bg"},scoreDifference(){return Math.abs(this.newScore-this.currentScore)},statusOnScore(){return 25>this.newScore?s("Not Looking Great",P):50>this.newScore?s("Could Be Better",P):60>this.newScore?s("Getting There",P):75>this.newScore?s("Looks Good! 👍👍",P):75<=this.newScore?s("Super! 🔥🔥🔥",P):!1}}},lt={class:"aioseo-headline-analyzer-panel-first-block"},ct={class:"aioseo-headline-analyzer-new-score-panel"},dt={class:"aioseo-headline-analyzer-pie-chart-container"},ut={class:"current-score"},ht={class:"aioseo-headline-analyzer-current-score-content"};function pt(e,t,o,c,a,n){const l=g("pie-chart"),u=g("accordion");return d(),v(u,{title:a.textPanelTitle,componentClass:"aioseo-headline-analyzer-panel-tab-new-score"},{default:m(()=>[r("div",lt,[r("div",ct,[r("p",null,i(a.veryGoodScore)+" "+i(a.forBetterResults),1),r("h4",null,"“"+i(n.newTitle)+"”",1),r("div",dt,[r("span",{class:b(["aioseo-headline-analyzer-new-score",n.classOnNewScore])},i(n.newScore),3),S(l,{color:n.barColor,currentScore:n.newScore},null,8,["color","currentScore"]),r("span",{class:b(["aioseo-headline-analyzer-score-difference",n.classOnNewScore])},i(n.newScore>n.currentScore?"+ ":n.newScore===n.currentScore?"":"- ")+" "+i(n.scoreDifference),3),n.statusOnScore?(d(),h("div",{key:0,class:b(["aioseo-headline-analyzer-score-status",n.classOnNewScore])},[r("span",null,i(n.statusOnScore),1)],2)):x("",!0)]),r("div",ut,[r("span",{class:b(["aioseo-headline-analyzer-score",n.classOnCurrentScoreBg])},i(n.currentScore),3),r("div",ht,[r("h5",null,i(a.textCurrentScore),1),r("p",null,i(n.postTitle),1)])])])])]),_:1},8,["title"])}const gt=y(it,[["render",pt]]),R="all-in-one-seo-pack",_t={components:{Accordion:k,PieChart:we},data(){return{veryGoodScore:$(s("A very good score is between %1$d and %2$d.",R),70,100),forBetterResults:$(s("For best results, you should strive for %1$d and above.",R),70),textScore:s("Score",R),postEditorStore:C()}},computed:{postTitle(){var e,t;return W(((t=(e=this.postEditorStore.currentPost)==null?void 0:e.headlineAnalyzer)==null?void 0:t.headline)||"")},currentResult(){var t,o;const e=((o=this.postEditorStore.currentPost.headlineAnalyzer)==null?void 0:o.data[(t=Object.keys(this.postEditorStore.currentPost.headlineAnalyzer.data))==null?void 0:t[0]])||null;return e?JSON.parse(e):{}},currentScore(){var e;return(e=this.currentResult)!=null&&e.score?this.currentResult.score:0},classOnScore(){return 40>this.currentScore?"red":70>this.currentScore?"orange":"green"},barColor(){return this.classOnScore==="red"?"#df2a4a":this.classOnScore==="orange"?"#F2994A":"#00aa63"},scoreStatus(){return 25>this.currentScore?s("Not Looking Great",R):50>this.currentScore?s("Could Be Better",R):60>this.currentScore?s("Getting There",R):75>this.currentScore?s("Looks Good! 👍👍",R):75<=this.currentScore?s("Super! 🔥🔥🔥",R):!1}}},wt={class:"aioseo-headline-analyzer-current-score-tab aioseo-headline-analyzer-panel-first-block"},mt={class:"aioseo-headline-analyzer-current-title"},yt={class:"aioseo-headline-analyzer-pie-chart-container"},ft=r("span",{class:"aioseo-headline-analyzer-total-out-of-score"},"/ 100",-1);function St(e,t,o,c,a,n){const l=g("pie-chart"),u=g("accordion");return d(),v(u,{title:a.textScore,componentClass:"aioseo-headline-analyzer-panel-score"},{default:m(()=>[r("div",wt,[r("h4",mt,' "'+i(n.postTitle)+'" ',1),r("div",yt,[r("div",{class:b(["aioseo-headline-analyzer-current-score",n.classOnScore])},[Y(i(n.currentScore),1),ft],2),n.scoreStatus?(d(),h("div",{key:0,class:b(["aioseo-headline-analyzer-score-status",n.classOnScore])},[r("span",null,i(n.scoreStatus),1)],2)):x("",!0),S(l,{color:n.barColor,currentScore:n.currentScore},null,8,["color","currentScore"])]),r("p",null,i(a.veryGoodScore)+" "+i(a.forBetterResults),1)])]),_:1},8,["title"])}const bt=y(_t,[["render",St]]),vt="all-in-one-seo-pack",Ct={components:{Accordion:k},data(){return{previousScoresText:s("Previous Scores",vt),postEditorStore:C()}},computed:{postTitle(){var e,t;return(t=(e=this.postEditorStore.currentPost)==null?void 0:e.headlineAnalyzer)!=null&&t.headline?this.postEditorStore.currentPost.headlineAnalyzer.headline:""},previousScores(){var t,o,c;const e=JSON.parse(JSON.stringify(((c=(o=(t=this.postEditorStore)==null?void 0:t.currentPost)==null?void 0:o.headlineAnalyzer)==null?void 0:c.previousHeadlines)||[]));return e.pop(),e.reverse()}},methods:{classOnScore(e){return e?40>e?"red-bg":70>e?"orange-bg":"green-bg":"gray-bg"},async fetchPrevScoreHeadline(e){let t=null;if(t=this.postEditorStore.currentPost.headlineAnalyzer.previousHeadlines.find(o=>o.headline===e),t){const o={data:{[t.headline]:JSON.stringify(t.result)},headline:t.headline};this.postEditorStore.updateNewHeadlineAnalyzerData(o.data,o.headline),this.postEditorStore.toggleShowNewHeadlineAnalyzerData(!0)}else{const o=await se(e);o&&(this.postEditorStore.updateNewHeadlineAnalyzerData(o.data,o.headline),this.postEditorStore.toggleShowNewHeadlineAnalyzerData(!0))}},decodeHtml(e){return W(e)}}},zt={class:"aioseo-headline-analyzer-panel-first-block"},Lt={key:0,class:"aioseo-headline-analyzer-previous-scores"},xt=["onClick"],kt={class:"aioseo-headline-analyzer-score-text"};function At(e,t,o,c,a,n){const l=g("accordion");return d(),v(l,{title:a.previousScoresText,componentClass:"aioseo-headline-analyzer-panel-previous-scores"},{default:m(()=>[r("div",zt,[n.previousScores.length>0?(d(),h("ul",Lt,[(d(!0),h(F,null,ge(n.previousScores,(u,p)=>(d(),h("li",{key:p,onClick:pe(_=>n.fetchPrevScoreHeadline(u.headline),["stop"])},[r("span",{class:b(["aioseo-headline-analyzer-score",n.classOnScore(u.score)])},i(u.score||"N/A"),3),r("span",kt,i(n.decodeHtml(u.headline)),1)],8,xt))),128))])):x("",!0)])]),_:1},8,["title"])}const Ot=y(Ct,[["render",At]]),Pt="all-in-one-seo-pack",Et={props:{title:{type:String,default:"",required:!0},value:{type:Number,required:!0},classOnScore:{type:String,default:"",required:!0},classOnScoreBg:{type:String,default:"",required:!0},goalValue:{type:String,default:"",required:!0},words:{type:Array,default:()=>[]},guideLine:{type:String,default:""}},data(){return{textGoal:s("Goal:",Pt)}},computed:{progressBarStyle(){return`width: ${this.value}%`}}},Ht={class:"aioseo-headline-analyzer-words-block"},Rt={class:"aioseo-headline-analyzer-words-block-data"},Tt={class:"aioseo-headline-analyzer-words-block-goal"},Wt={class:"aioseo-headline-analyzer-words-block-progressbar"},Nt=r("span",{class:"aioseo-headline-analyzer-progressbar-bg"},null,-1),Mt={class:"aioseo-headline-analyzer-words-tag-list"},Bt={class:"aioseo-headline-analyzer-words-guideline"};function Dt(e,t,o,c,a,n){return d(),h("div",Ht,[r("h5",null,i(o.title),1),r("div",Rt,[r("span",{class:b(["aioseo-headline-analyzer-words-block-percentage",o.classOnScore])},i(o.value)+"% ",3),r("span",{class:b(["aioseo-headline-analyzer-words-block-percentage-right-column",o.classOnScore])},[r("span",Tt,i(a.textGoal)+" "+i(o.goalValue),1),r("span",Wt,[Nt,r("span",{class:b(["aioseo-headline-analyzer-progressbar-part",o.classOnScoreBg]),style:be(n.progressBarStyle)},null,6)])],2)]),r("ul",Mt,[(d(!0),h(F,null,ge(o.words,(l,u)=>(d(),h("li",{key:u},i(l),1))),128))]),r("p",Bt,i(o.guideLine),1)])}const $t=y(Et,[["render",Dt]]),w="all-in-one-seo-pack",Zt={components:{Accordion:k,WordsBlock:$t},data(){return{title:s("Word Balance",w),textGuideline:s("Compare the percentages of your results to the goal for each category and adjust as necessary.",w),textCommonWords:s("Common Words",w),textTwentyThirty:s("20-30%",w),textUnCommonWords:s("Uncommon Words",w),textTenTwenty:s("10-20%",w),textEmotionalWords:s("Emotional Words",w),textTenFifteen:s("10-15%",w),textPowerWords:s("Power Words",w),textLeastOne:s("At least one",w),postEditorStore:C()}},computed:{currentResult(){var t,o,c;if((t=this.postEditorStore.currentPost.headlineAnalyzer)!=null&&t.showNewData)return this.postEditorStore.newHeadlineAnaylzerData.newResult;const e=((c=this.postEditorStore.currentPost.headlineAnalyzer)==null?void 0:c.data[(o=Object.keys(this.postEditorStore.currentPost.headlineAnalyzer.data))==null?void 0:o[0]])||null;return e?JSON.parse(e):{}},currentScore(){var e;return(e=this.currentResult)!=null&&e.score?this.currentResult.score:0},classOnScore(){return 40>this.currentScore?"red":70>this.currentScore?"orange":"green"},classOnCommonWords(){var e,t;return((e=this.currentResult.result)==null?void 0:e.commonWordsPercentage)===0?"red":.2>((t=this.currentResult.result)==null?void 0:t.commonWordsPercentage)?"orange":"green"},classOnCommonWordsBg(){var e,t;return((e=this.currentResult.result)==null?void 0:e.commonWordsPercentage)===0?"red-bg":.2>((t=this.currentResult.result)==null?void 0:t.commonWordsPercentage)?"orange-bg":"green-bg"},guideLineOnCommonWords(){var e;return .2>((e=this.currentResult.result)==null?void 0:e.commonWordsPercentage)?s("Your headline would be more likely to get clicks if it had more common words.",w):s("Headlines with 20-30% common words are more likely to get clicks.",w)},classOnUnCommonWords(){var e,t;return((e=this.currentResult.result)==null?void 0:e.uncommonWordsPercentage)===0?"red":.1>((t=this.currentResult.result)==null?void 0:t.uncommonWordsPercentage)?"orange":"green"},classOnUnCommonWordsBg(){var e,t;return((e=this.currentResult.result)==null?void 0:e.uncommonWordsPercentage)===0?"red-bg":.1>((t=this.currentResult.result)==null?void 0:t.uncommonWordsPercentage)?"orange-bg":"green-bg"},guideLineOnUnCommonWords(){var e;return .1>((e=this.currentResult.result)==null?void 0:e.uncommonWordsPercentage)?s("Your headline would be more likely to get clicks if it had more uncommon words.",w):s("Headlines with uncommon words are more likely to get clicks.",w)},classOnEmotionalWords(){var e,t;return((e=this.currentResult.result)==null?void 0:e.emotionalWordsPercentage)===0?"red":.1>((t=this.currentResult.result)==null?void 0:t.emotionalWordsPercentage)?"orange":"green"},classOnEmotionalWordsBg(){var e,t;return((e=this.currentResult.result)==null?void 0:e.emotionalWordsPercentage)===0?"red-bg":.1>((t=this.currentResult.result)==null?void 0:t.emotionalWordsPercentage)?"orange-bg":"green-bg"},guideLineOnEmotionalWords(){return s("Emotionally triggered headlines are likely to drive more clicks.",w)},classOnPowerWords(){var e;return((e=this.currentResult.result)==null?void 0:e.powerWords.length)===0?"orange":"green"},classOnPowerWordsBg(){var e;return((e=this.currentResult.result)==null?void 0:e.powerWords.length)===0?"orange":"green-bg"},guideLineOnPowerWords(){return s("Headlines with power words are more likely to get clicks.",w)},scoreStatus(){return 25>this.currentScore?s("Not Looking Great",w):50>this.currentScore?s("Could Be Better",w):60>this.currentScore?s("Getting There",w):75>this.currentScore?s("Looks Good! 👍👍",w):75<this.currentScore?s("Super! 🔥🔥🔥",w):!1}}},Vt={class:"aioseo-headline-analyzer-words-block"},Gt={key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__icon","aria-hidden":"true",focusable:"false"},It=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM8 12.17L14.59 5.58L16 7L8 15L4 11L5.41 9.59L8 12.17Z",fill:"#00AA63"},null,-1),jt=[It],Ut={key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__icon","aria-hidden":"true",focusable:"false"},Ft=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.99 0C4.47 0 0 4.48 0 10C0 15.52 4.47 20 9.99 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99 0ZM11 5.00002H9V11H11V5.00002ZM11 13H9V15H11V13ZM2.00002 10C2.00002 14.42 5.58002 18 10 18C14.42 18 18 14.42 18 10C18 5.58002 14.42 2.00002 10 2.00002C5.58002 2.00002 2.00002 5.58002 2.00002 10Z",fill:"#005AE0"},null,-1),Jt=[Ft];function qt(e,t,o,c,a,n){const l=g("words-block"),u=g("accordion");return d(),v(u,{title:a.title,componentClass:"aioseo-headline-analyzer-panel-word-balance",hasIcon:!0,iconColor:n.classOnScore},{icon:m(()=>[n.classOnScore=="green"?(d(),h("svg",Gt,jt)):(d(),h("svg",Ut,Jt))]),default:m(()=>{var p,_,z,f,O,N,M,B,D,H,Z,V,G,I,j,U;return[r("div",Vt,[r("h4",null,i(n.scoreStatus),1),r("p",null,i(a.textGuideline),1)]),S(l,{title:a.textCommonWords,value:(_=(p=n.currentResult)==null?void 0:p.result)!=null&&_.commonWordsPercentage?Math.round(n.currentResult.result.commonWordsPercentage*100):0,goalValue:a.textTwentyThirty,classOnScore:n.classOnCommonWords,classOnScoreBg:n.classOnCommonWordsBg,words:(f=(z=n.currentResult)==null?void 0:z.result)!=null&&f.commonWords?n.currentResult.result.commonWords:[],guideLine:n.guideLineOnCommonWords},null,8,["title","value","goalValue","classOnScore","classOnScoreBg","words","guideLine"]),S(l,{title:a.textUnCommonWords,value:(N=(O=n.currentResult)==null?void 0:O.result)!=null&&N.uncommonWordsPercentage?Math.round(n.currentResult.result.uncommonWordsPercentage*100):0,goalValue:a.textTenTwenty,classOnScore:n.classOnUnCommonWords,classOnScoreBg:n.classOnUnCommonWordsBg,words:(B=(M=n.currentResult)==null?void 0:M.result)!=null&&B.uncommonWords?n.currentResult.result.uncommonWords:[],guideLine:n.guideLineOnUnCommonWords},null,8,["title","value","goalValue","classOnScore","classOnScoreBg","words","guideLine"]),S(l,{title:a.textEmotionalWords,value:(H=(D=n.currentResult)==null?void 0:D.result)!=null&&H.emotionalWordsPercentage?Math.round(n.currentResult.result.emotionalWordsPercentage*100):0,goalValue:a.textTenFifteen,classOnScore:n.classOnEmotionalWords,classOnScoreBg:n.classOnEmotionalWordsBg,words:(V=(Z=n.currentResult)==null?void 0:Z.result)!=null&&V.emotionWords?n.currentResult.result.emotionWords:[],guideLine:n.guideLineOnEmotionalWords},null,8,["title","value","goalValue","classOnScore","classOnScoreBg","words","guideLine"]),S(l,{title:a.textPowerWords,value:(I=(G=n.currentResult)==null?void 0:G.result)!=null&&I.powerWordsPercentage?Math.round(n.currentResult.result.powerWordsPercentage*100):0,goalValue:a.textLeastOne,classOnScore:n.classOnPowerWords,classOnScoreBg:n.classOnPowerWordsBg,words:(U=(j=n.currentResult)==null?void 0:j.result)!=null&&U.powerWords?n.currentResult.result.powerWords:[],guideLine:n.guideLineOnPowerWords},null,8,["title","value","goalValue","classOnScore","classOnScoreBg","words","guideLine"])]}),_:1},8,["title","iconColor"])}const Yt=y(Zt,[["render",qt]]),A="all-in-one-seo-pack",Kt={components:{Accordion:k},data(){return{textPanelTitle:s("Sentiment",A),textNeutralSentiment:s("Neutral Sentiment",A),textNeutralSentimentGuideline:s("Headlines that are strongly positive or negative tend to get more engagement than neutral ones.",A),textPositiveSentiment:s("Your headline has a positive sentiment.",A),textPositiveSentimentGuideline:s("Positive headlines tend to get better engagement than neutral or negative ones.",A),textNegativeSentiment:s("Your headline has a negative sentiment.",A),textNegativeSentimentGuideline:s("Negative headlines are attention-grabbing and tend to perform better than neutral ones.",A),postEditorStore:C()}},computed:{currentResult(){var t,o,c;if((t=this.postEditorStore.currentPost.headlineAnalyzer)!=null&&t.showNewData)return this.postEditorStore.newHeadlineAnaylzerData.newResult;const e=((c=this.postEditorStore.currentPost.headlineAnalyzer)==null?void 0:c.data[(o=Object.keys(this.postEditorStore.currentPost.headlineAnalyzer.data))==null?void 0:o[0]])||null;return e?JSON.parse(e):{}},sentiment(){var e,t;return((e=this.currentResult.result)==null?void 0:e.sentiment)==="neu"?s("Neutral",A):((t=this.currentResult.result)==null?void 0:t.sentiment)==="pos"?s("Positive",A):s("Negative",A)},classOnSentiment(){var e,t;return((e=this.currentResult.result)==null?void 0:e.sentiment)==="neu"?"orange":((t=this.currentResult.result)==null?void 0:t.sentiment)==="pos"?"green":"red"}}},Qt={class:"aioseo-headline-analyzer-panel-first-block"},Xt={key:0},en=r("br",null,null,-1),tn={key:1},nn=r("br",null,null,-1),rn={key:2},on=r("br",null,null,-1),sn={key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__icon","aria-hidden":"true",focusable:"false"},an=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.99 0C4.47 0 0 4.48 0 10C0 15.52 4.47 20 9.99 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99 0ZM5 7.5C5 6.67157 5.67157 6 6.5 6C7.32843 6 8 6.67157 8 7.5C8 8.32843 7.32843 9 6.5 9C5.67157 9 5 8.32843 5 7.5ZM13.5 6C12.6716 6 12 6.67157 12 7.5C12 8.32843 12.6716 9 13.5 9C14.3284 9 15 8.32843 15 7.5C15 6.67157 14.3284 6 13.5 6ZM7 13.5V12H13V13.5H7ZM2 10C2 14.42 5.58 18 10 18C14.42 18 18 14.42 18 10C18 5.58 14.42 2 10 2C5.58 2 2 5.58 2 10Z",fill:"#005AE0"},null,-1),ln=[an],cn={key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__icon","aria-hidden":"true",focusable:"false"},dn=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.99 0C4.47 0 0 4.48 0 10C0 15.52 4.47 20 9.99 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99 0ZM6.5 6C5.67157 6 5 6.67157 5 7.5C5 8.32843 5.67157 9 6.5 9C7.32843 9 8 8.32843 8 7.5C8 6.67157 7.32843 6 6.5 6ZM13.5 6C12.6716 6 12 6.67157 12 7.5C12 8.32843 12.6716 9 13.5 9C14.3284 9 15 8.32843 15 7.5C15 6.67157 14.3284 6 13.5 6ZM6.55 12C7.25 13.19 8.52 14 10 14C11.48 14 12.75 13.19 13.45 12H15.12C14.32 14.05 12.33 15.5 10 15.5C7.67 15.5 5.68 14.05 4.88 12H6.55ZM2 10C2 14.42 5.58 18 10 18C14.42 18 18 14.42 18 10C18 5.58 14.42 2 10 2C5.58 2 2 5.58 2 10Z",fill:"#00AA63"},null,-1),un=[dn],hn={key:2,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__icon","aria-hidden":"true",focusable:"false"},pn=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.99 0C4.47 0 0 4.48 0 10C0 15.52 4.47 20 9.99 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99 0ZM6.5 6C5.67157 6 5 6.67157 5 7.5C5 8.32843 5.67157 9 6.5 9C7.32843 9 8 8.32843 8 7.5C8 6.67157 7.32843 6 6.5 6ZM13.5 6C12.6716 6 12 6.67157 12 7.5C12 8.32843 12.6716 9 13.5 9C14.3284 9 15 8.32843 15 7.5C15 6.67157 14.3284 6 13.5 6ZM4.88 15.5C5.68 13.45 7.67 12 10 12C12.33 12 14.32 13.45 15.12 15.5H13.45C12.75 14.31 11.48 13.5 10 13.5C8.52 13.5 7.24 14.31 6.55 15.5H4.88ZM2 10C2 14.42 5.58 18 10 18C14.42 18 18 14.42 18 10C18 5.58 14.42 2 10 2C5.58 2 2 5.58 2 10Z",fill:"#DF2A4A"},null,-1),gn=[pn];function _n(e,t,o,c,a,n){const l=g("accordion");return d(),v(l,{title:a.textPanelTitle,componentClass:"aioseo-headline-analyzer-panel-sentiment",hasIcon:!0,iconColor:n.classOnSentiment},{icon:m(()=>{var u,p;return[((u=n.currentResult.result)==null?void 0:u.sentiment)=="neu"?(d(),h("svg",sn,ln)):((p=n.currentResult.result)==null?void 0:p.sentiment)=="pos"?(d(),h("svg",cn,un)):(d(),h("svg",hn,gn))]}),default:m(()=>{var u,p,_;return[r("div",Qt,[r("h4",null,i(n.sentiment),1),((u=n.currentResult.result)==null?void 0:u.sentiment)==="neu"?(d(),h("p",Xt,[r("strong",null,i(a.textNeutralSentiment),1),en,Y(i(a.textNeutralSentimentGuideline),1)])):x("",!0),((p=n.currentResult.result)==null?void 0:p.sentiment)==="pos"?(d(),h("p",tn,[r("strong",null,i(a.textPositiveSentiment),1),nn,Y(i(a.textPositiveSentimentGuideline),1)])):x("",!0),((_=n.currentResult.result)==null?void 0:_.sentiment)==="neg"?(d(),h("p",rn,[r("strong",null,i(a.textNegativeSentiment),1),on,Y(i(a.textNegativeSentimentGuideline),1)])):x("",!0)])]}),_:1},8,["title","iconColor"])}const wn=y(Kt,[["render",_n]]),ce="all-in-one-seo-pack",mn={components:{Accordion:k},data(){return{panelTitle:s("Headline Type",ce),typeLinkText:$(s("Headlines that are lists and how-to get more engagement on average than other types of headlines. %1$s%2$sLearn More%3$s →",ce),"<br /><br />",'<a href="https://optinmonster.com/why-these-21-headlines-went-viral-and-how-you-can-copy-their-success/" target="_blank" class="aioseo-headline-analyzer-link"><span>',"</span></a>"),postEditorStore:C()}},computed:{currentResult(){var t,o,c;if((t=this.postEditorStore.currentPost.headlineAnalyzer)!=null&&t.showNewData)return this.postEditorStore.newHeadlineAnaylzerData.newResult;const e=((c=this.postEditorStore.currentPost.headlineAnalyzer)==null?void 0:c.data[(o=Object.keys(this.postEditorStore.currentPost.headlineAnalyzer.data))==null?void 0:o[0]])||null;return e?JSON.parse(e):{}},headlineTypes(){var e,t;return(t=(e=this.currentResult.result)==null?void 0:e.headlineTypes)==null?void 0:t.join(", ")}}},yn={class:"aioseo-headline-analyzer-words-block"},fn=["innerHTML"];function Sn(e,t,o,c,a,n){const l=g("accordion");return d(),v(l,{title:a.panelTitle,componentClass:"aioseo-headline-analyzer-panel-types",hasExtraTxt:!0},{extraTxt:m(()=>[r("span",null,i(n.headlineTypes),1)]),default:m(()=>[r("div",yn,[r("h4",null,i(n.headlineTypes),1),r("p",{innerHTML:a.typeLinkText},null,8,fn)])]),_:1},8,["title"])}const bn=y(mn,[["render",Sn]]),E="all-in-one-seo-pack",vn={components:{Accordion:k},data(){return{textPanelTitle:s("Character Count",E),postEditorStore:C()}},computed:{currentResult(){var t,o,c;if((t=this.postEditorStore.currentPost.headlineAnalyzer)!=null&&t.showNewData)return this.postEditorStore.newHeadlineAnaylzerData.newResult;const e=((c=this.postEditorStore.currentPost.headlineAnalyzer)==null?void 0:c.data[(o=Object.keys(this.postEditorStore.currentPost.headlineAnalyzer.data))==null?void 0:o[0]])||null;return e?JSON.parse(e):{}},currentScore(){var e;return(e=this.currentResult)!=null&&e.score?this.currentResult.score:0},characterLength(){var e;return(e=this.currentResult.result)!=null&&e.length?this.currentResult.result.length:0},characterLengthString(){return this.characterLength?this.characterLength.toString():""},classOnLength(){return 19>=this.characterLength?"red":20<=this.characterLength&&34>=this.characterLength?"orange":35<=this.characterLength&&66>=this.characterLength?"green":67<=this.characterLength&&79>=this.characterLength?"orange":(80<=this.characterLength,"red")},statusOnLength(){return 34>=this.characterLength?s("Too Short 🙃",E):35<=this.characterLength&&66>=this.characterLength?s("Good 🙂",E):67<=this.characterLength?s("Too Long 😑",E):s("Too Short 🙃",E)},descOnCharLength(){return 34>=this.characterLength?s("You have space to add more keywords and power words to boost your rankings and click-through rate.",E):35<=this.characterLength&&66>=this.characterLength?s("Headlines that are about 55 characters long will display fully in search results and tend to get more clicks.",E):67<=this.characterLength?s("At this length, it will get cut off in search results. Try reducing it to about 55 characters.",E):s("You have space to add more keywords and power words to boost your rankings and click-through rate.",E)},characterDisplay(){let e="";if(this.characterLengthString.length===1&&(e=`<span class="character-zero">0</span><span class="character-zero">0</span><span>${this.characterLength}</span>`),this.characterLengthString.length===2){e='<span class="character-zero">0</span>';for(const t of this.characterLengthString)e+=`<span>${t}</span>`}if(this.characterLengthString.length===3)for(const t of this.characterLengthString)e+=`<span>${t}</span>`;return e}}},Cn={class:"aioseo-headline-analyzer-words-block"},zn={class:"aioseo-headline-analyzer-character-count-container"},Ln={class:"aioseo-headline-analyzer-status-on-character-length"},xn=["innerHTML"],kn={key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__icon","aria-hidden":"true",focusable:"false"},An=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM8 12.17L14.59 5.58L16 7L8 15L4 11L5.41 9.59L8 12.17Z",fill:"#00AA63"},null,-1),On=[An],Pn={key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__icon","aria-hidden":"true",focusable:"false"},En=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.99 0C4.47 0 0 4.48 0 10C0 15.52 4.47 20 9.99 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99 0ZM11 5.00002H9V11H11V5.00002ZM11 13H9V15H11V13ZM2.00002 10C2.00002 14.42 5.58002 18 10 18C14.42 18 18 14.42 18 10C18 5.58002 14.42 2.00002 10 2.00002C5.58002 2.00002 2.00002 5.58002 2.00002 10Z",fill:"#005AE0"},null,-1),Hn=[En];function Rn(e,t,o,c,a,n){const l=g("accordion");return d(),v(l,{title:a.textPanelTitle,componentClass:"aioseo-headline-analyzer-panel-character-count",hasIcon:!0,iconColor:n.classOnLength},{icon:m(()=>[n.classOnLength=="green"?(d(),h("svg",kn,On)):(d(),h("svg",Pn,Hn))]),default:m(()=>[r("div",Cn,[r("div",zn,[r("span",Ln,i(n.statusOnLength),1),r("span",{class:b(["aioseo-headline-analyzer-character-length",n.classOnLength]),innerHTML:n.characterDisplay},null,10,xn)]),r("p",null,i(n.descOnCharLength),1)])]),_:1},8,["title","iconColor"])}const Tn=y(vn,[["render",Rn]]),T="all-in-one-seo-pack",Wn={components:{Accordion:k},data(){return{textWordCount:s("Word Count",T),postEditorStore:C()}},computed:{currentResult(){var t,o,c;if((t=this.postEditorStore.currentPost.headlineAnalyzer)!=null&&t.showNewData)return this.postEditorStore.newHeadlineAnaylzerData.newResult;const e=((c=this.postEditorStore.currentPost.headlineAnalyzer)==null?void 0:c.data[(o=Object.keys(this.postEditorStore.currentPost.headlineAnalyzer.data))==null?void 0:o[0]])||null;return e?JSON.parse(e):{}},currentScore(){var e;return(e=this.currentResult)!=null&&e.score?this.currentResult.score:0},wordLength(){var e;return(e=this.currentResult.result)!=null&&e.wordCount?this.currentResult.result.wordCount:0},wordLengthString(){return this.wordLength?this.wordLength.toString():""},classOnLength(){let e="";return 4>=this.wordLength?e="red":5<=this.wordLength&&9>=this.wordLength?e="green":10<=this.wordLength&&11>=this.wordLength?e="orange":e="red",e},statusOnLength(){let e="";return 4>=this.wordLength?e=s("Not Enough Words 🙃",T):5<=this.wordLength&&9>=this.wordLength?e=s("Good 🙂",T):10<=this.wordLength&&11>=this.wordLength?e=s("Reduce Word Count 🙂",T):e=s("Too Many Words 😑",T),e},descOnWordLength(){let e="";return 4>=this.wordLength?e=s("Your headline doesn’t use enough words. You have more space to add keywords and power words to improve your SEO and get more engagement.",T):5<=this.wordLength&&9>=this.wordLength?e=s("Your headline has the right amount of words. Headlines are more likely to be clicked on in search results if they have about 6 words.",T):e=s("Your headline has too many words. Long headlines will get cut off in search results and won’t get as many clicks.",T),e},wordCountDisplay(){let e="";if(this.wordLengthString.length===1&&(e=`<span class="character-zero">0</span><span class="character-zero">0</span><span>${this.wordLength}</span>`),this.wordLengthString.length===2){e='<span class="character-zero">0</span>';for(const t of this.wordLengthString)e+=`<span>${t}</span>`}if(this.wordLengthString.length===3)for(const t of this.wordLengthString)e+=`<span>${t}</span>`;return e}}},Nn={class:"aioseo-headline-analyzer-words-block"},Mn={class:"aioseo-headline-analyzer-word-counter"},Bn={class:"aioseo-headline-analyzer-status-on-word-length"},Dn=["innerHTML"],$n={key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__icon","aria-hidden":"true",focusable:"false"},Zn=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM8 12.17L14.59 5.58L16 7L8 15L4 11L5.41 9.59L8 12.17Z",fill:"#00AA63"},null,-1),Vn=[Zn],Gn={key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"components-panel__icon","aria-hidden":"true",focusable:"false"},In=r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.99 0C4.47 0 0 4.48 0 10C0 15.52 4.47 20 9.99 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 9.99 0ZM11 5.00002H9V11H11V5.00002ZM11 13H9V15H11V13ZM2.00002 10C2.00002 14.42 5.58002 18 10 18C14.42 18 18 14.42 18 10C18 5.58002 14.42 2.00002 10 2.00002C5.58002 2.00002 2.00002 5.58002 2.00002 10Z",fill:"#005AE0"},null,-1),jn=[In];function Un(e,t,o,c,a,n){const l=g("accordion");return d(),v(l,{title:a.textWordCount,componentClass:"aioseo-headline-analyzer-panel-word-count",hasIcon:!0,iconColor:n.classOnLength},{icon:m(()=>[n.classOnLength=="green"?(d(),h("svg",$n,Vn)):(d(),h("svg",Gn,jn))]),default:m(()=>[r("div",Nn,[r("div",Mn,[r("span",Bn,i(n.statusOnLength),1),r("span",{class:b(["aioseo-headline-analyzer-word-length",n.classOnLength]),innerHTML:n.wordCountDisplay},null,10,Dn)]),r("p",null,i(n.descOnWordLength),1)])]),_:1},8,["title","iconColor"])}const Fn=y(Wn,[["render",Un]]),J="all-in-one-seo-pack",Jn={components:{Accordion:k},data(){return{textPanelTitle:s("Beginning & Ending Words",J),guideLineText:s("Most readers only look at the first and last 3 words of a headline before deciding whether to click.",J),begginingWordsText:s("Beginning Words",J),endingWordsText:s("Ending Words",J),postEditorStore:C()}},computed:{currentResult(){var t,o,c;if((t=this.postEditorStore.currentPost.headlineAnalyzer)!=null&&t.showNewData)return this.postEditorStore.newHeadlineAnaylzerData.newResult;const e=((c=this.postEditorStore.currentPost.headlineAnalyzer)==null?void 0:c.data[(o=Object.keys(this.postEditorStore.currentPost.headlineAnalyzer.data))==null?void 0:o[0]])||null;return e?JSON.parse(e):{}},currentScore(){var e;return(e=this.currentResult)!=null&&e.score?this.currentResult.score:0},words(){var e;return(e=this.currentResult.result)!=null&&e.originalExplodedHeadline?this.currentResult.result.originalExplodedHeadline:[]},beginningWords(){let e="";return 6<=this.words.length?e=this.words.slice(0,3).join(" "):3<this.words.length&&5>=this.words.length?e=this.words.slice(0,3).join(" "):e=this.words.slice(0,3).join(" "),W(e)},endingWords(){let e="";return 6<=this.words.length?e=this.words.slice(-3).join(" "):3<this.words.length&&5>=this.words.length&&(e=this.words.slice(3).join(" ")),W(e)}}},qn={class:"aioseo-headline-analyzer-panel-first-block"},Yn={class:"aioseo-headline-analyzer-word-begining-title"},Kn={class:"aioseo-headline-analyzer-words beginning"},Qn={class:"aioseo-headline-analyzer-word-begining-title"},Xn={class:"aioseo-headline-analyzer-words beginning"},er={class:"aioseo-headline-analyzer-words-guideline"};function tr(e,t,o,c,a,n){const l=g("accordion");return d(),v(l,{title:a.textPanelTitle,componentClass:"aioseo-headline-analyzer-panel-beginning-ending-words"},{default:m(()=>[r("div",qn,[n.beginningWords?(d(),h(F,{key:0},[r("ul",Yn,[r("li",null,i(a.begginingWordsText),1)]),r("div",Kn,[r("span",null,i(n.beginningWords),1)])],64)):x("",!0),n.endingWords?(d(),h(F,{key:1},[r("ul",Qn,[r("li",null,i(a.endingWordsText),1)]),r("div",Xn,[r("span",null,i(n.endingWords),1)])],64)):x("",!0),r("p",er,i(a.guideLineText),1)])]),_:1},8,["title"])}const nr=y(Jn,[["render",tr]]),{select:rr}=window.wp.data,de="all-in-one-seo-pack",or={components:{Accordion:k},data(){return{panelTitle:s("Search Preview",de),descText:s("Here is how your headline will look like in Google search results page.",de),postUrl:rr("core/editor").getPermalink(),postEditorStore:C()}},computed:{currentResult(){var t,o;if((t=this.postEditorStore.currentPost.headlineAnalyzer)!=null&&t.showNewData)return this.postEditorStore.newHeadlineAnaylzerData.newResult;const e=this.postEditorStore.currentPost.headlineAnalyzer.data[(o=Object.keys(this.postEditorStore.currentPost.headlineAnalyzer.data))==null?void 0:o[0]]||null;return e?JSON.parse(e):{}},postTitle(){var e,t;return W(((t=(e=this.postEditorStore.currentPost)==null?void 0:e.headlineAnalyzer)==null?void 0:t.headline)||"")},newResult(){return this.postEditorStore.newHeadlineAnaylzerData.newResult},newTitle(){return W(this.newResult.sentence||"")},encodedPostUrl(){return this.postUrl?encodeURI(this.postUrl):"#"}}},sr={class:"aioseo-headline-analyzer-panel-first-block"},ar={class:"aioseo-headline-analyzer-search-prevew-wrap"},ir={class:"aioseo-headline-analyzer-post-url"},lr=["href"],cr={key:0},dr={key:1};function ur(e,t,o,c,a,n){const l=g("accordion");return d(),v(l,{title:a.panelTitle,componentClass:"aioseo-headline-analyzer-panel-search-preview"},{default:m(()=>{var u,p,_,z,f;return[r("div",sr,[r("div",ar,[r("p",ir,[r("a",{href:n.encodedPostUrl,target:"_blank"},i(a.postUrl),9,lr)]),(p=(u=a.postEditorStore)==null?void 0:u.newHeadlineAnaylzerData)!=null&&p.newResult&&((f=(z=(_=a.postEditorStore)==null?void 0:_.currentPost)==null?void 0:z.headlineAnalyzer)!=null&&f.newData.showPreview)?(d(),h("h4",cr,i(n.newTitle),1)):(d(),h("h4",dr,i(n.postTitle),1)),r("p",null,i(a.descText),1)])])]}),_:1},8,["title"])}const hr=y(or,[["render",ur]]),q="all-in-one-seo-pack",pr={components:{TabCurrentScore:bt,TabNewScore:et,PanelNewScore:gt,PreviousScores:Ot,WordBalance:Yt,Sentiment:wn,PanelType:bn,CharacterCount:Tn,WordCount:Fn,StartEndWords:nr,SearchPreview:hr},data(){return{currentScore:s("Current Score",q),currentHeadline:s("Try New Headline",q),emptyTitleWarning:s("Write your post title to see the analyzer data. This Headline Analyzer tool enables you to write irresistible SEO headlines that drive traffic, shares, and rank better in search results.",q),activeTab:"current-score",postEditorStore:C(),rootStore:oe()}},computed:{postTitle(){var e,t;return W(((t=(e=this.postEditorStore.currentPost)==null?void 0:e.headlineAnalyzer)==null?void 0:t.headline)||"")},headlineAnalyzerNotice(){return $(s("This Headline Analyzer is part of %1$s to help you increase your traffic. %2$sAnalyze your site further here%3$s →%4$s",q),"AIOSEO",$('<a href="%1$s" class="aioseo-headline-analyzer-link" target="_blank"><span>',this.rootStore.aioseo.urls.aio.seoAnalysis),"</span>","</a>")}},methods:{switchTab(e){this.activeTab=e}}},gr={class:"aioseo-inline-buttons"},_r={key:1,class:"aioseo-headline-analyzer-empty-title-warning"},wr={class:"aioseo-headline-analyzer-bottom-notice"},mr=["innerHTML"];function yr(e,t,o,c,a,n){var H,Z,V,G,I,j,U;const l=g("tab-current-score"),u=g("tab-new-score"),p=g("panel-new-score"),_=g("previous-scores"),z=g("word-balance"),f=g("sentiment"),O=g("panel-type"),N=g("character-count"),M=g("word-count"),B=g("start-end-words"),D=g("search-preview");return d(),h("div",null,[n.postTitle?(d(),h(F,{key:0},[r("div",gr,[r("button",{onClick:t[0]||(t[0]=me=>n.switchTab("current-score")),class:b(["aioseo-switcher-button",{active:a.activeTab==="current-score"}])},i(a.currentScore),3),r("button",{onClick:t[1]||(t[1]=me=>n.switchTab("new-headline")),class:b(["aioseo-switcher-button",{active:a.activeTab==="new-headline"}])},i(a.currentHeadline),3)]),ee(S(l,null,null,512),[[ie,a.activeTab==="current-score"]]),ee(S(u,null,null,512),[[ie,a.activeTab==="new-headline"]]),(Z=(H=a.postEditorStore)==null?void 0:H.newHeadlineAnaylzerData)!=null&&Z.newResult?(d(),v(p,{key:0})):x("",!0),((I=(G=(V=a.postEditorStore.currentPost)==null?void 0:V.headlineAnalyzer)==null?void 0:G.previousHeadlines)==null?void 0:I.length)>1||(U=(j=a.postEditorStore.currentPost)==null?void 0:j.headlineAnalyzer)!=null&&U.showPrevScores?(d(),v(_,{key:1})):x("",!0),S(z),S(f),S(O),S(N),S(M),S(B),S(D)],64)):(d(),h("p",_r,i(a.emptyTitleWarning),1)),r("div",wr,[r("p",{innerHTML:n.headlineAnalyzerNotice},null,8,mr)])])}const fr=y(pr,[["render",yr]]),Sr={components:{MainView:fr},data(){return{}}};function br(e,t,o,c,a,n){const l=g("main-view");return d(),v(l)}const vr=y(Sr,[["render",br]]);Re();const re="#aioseo-headline-analyzer-sidebar-vue",Cr="aioseo-headline-analyzer-sidebar/aioseo-headline-analyzer-sidebar";let L,ue=!1;const he=()=>(L&&L.unmount(),L=ve({name:"Standalone/HeadlineAnalyzer/Sidebar",data(){return{tableContext:"post",screenContext:"sidebar"}},render:()=>Ce(vr)}),L=ze(L),L=Le(L),L=xe(L),Pe(L),window.aioseo.postSettingsSidebarApp&&window.aioseo.postSettingsSidebarApp.unmount(),ae(),L.mount(re),window.aioseo.headlineAnalyzerSidebarApp=L,L);if(window.aioseo.currentPost){const e=window.aioseo.currentPost.context;!window.wp.blockEditor&&window.wp.blocks&&window.wp.oldEditor&&(window.wp.blockEditor=window.wp.editor),e==="post"&&(document.querySelector(re)?he():(Ee(re,"headlineAnalyzerSidebarLoaded"),document.addEventListener("animationstart",function(o){o.animationName==="headlineAnalyzerSidebarLoaded"&&he()},{passive:!0})))}const{select:zr}=window.wp.data;function Lr(e){ue||(e==null||e.addEventListener("click",()=>{ae()}),ue=!0)}window.wp.data.subscribe(()=>{const e=zr("core/edit-post").getActiveGeneralSidebarName();if(e){const t=document.querySelector(".interface-interface-skeleton__sidebar");Cr!==e&&window.aioseo.headlineAnalyzerSidebarApp&&window.aioseo.headlineAnalyzerSidebarApp.unmount(),Lr(t)}});
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка