Files
2026-04-28 15:13:50 +02:00

2 lines
11 KiB
JavaScript

import{u as $}from"./AddonConditions.d0b4b606.js";import{u as D}from"./EeatCta.31a474b6.js";import{G as T,d as k,D as I}from"./app-core.ae890a3f.js";import{u as L}from"./JsonValues.a0694556.js";import{_ as W}from"./Button.a549093d.js";import{B as R}from"./Checkbox.79be52ca.js";import{B as x}from"./Input.8918dec2.js";import{B as V}from"./RadioToggle.de933e45.js";import{B as O}from"./Select.32af2da8.js";import{C as z}from"./Blur.5e231db6.js";import{C as B}from"./Card.c7ceb11b.js";import{C as S}from"./SettingsRow.0c329e43.js";import{C as y}from"./Tooltip.ae7a1028.js";import{C as N}from"./Index.ccb02f37.js";import{S as j}from"./Plus.d276bd63.js";import{S as U,_ as M}from"./Trash.d35f8063.js";import{_ as o,a as n}from"./vendor-other.7b559694.js";import{f as h,Q as b,R as r,j as s,a0 as a,v as t,ae as c,U as l,i as v,O as H,ad as G,P as F,u as E,S as J,M as C}from"./vendor-vue-ui.de3ab35f.js";import{C as Q}from"./Index.43bf246d.js";import{R as q}from"./RequiredPlans.c6bcf6ea.js";import"./Index.52399193.js";import"./Close.098d4b76.js";import"./_plugin-vue_export-helper.eefbdd86.js";import"./vendor-lodash.8e35bd59.js";import"./Checkmark.fac3f231.js";import"./Pencil.405b16d2.js";import"./Caret.a017b70a.js";import"./Slide.e6618126.js";import"./Row.6337df55.js";import"./BoxToggle.cc3b8153.js";import"./CheckSolid.7f805a48.js";const Y={id:"aioseo-author-seo"},K={class:"aioseo-description"},X=["innerHTML"],Z={class:"aioseo-description"},ee=["innerHTML"],te={class:"topics-table"},oe={class:"tooltip-wrapper"},se={class:"tooltip-wrapper"},ae={class:"tooltip-wrapper"},ie={class:"name"},ne={class:"url"},re={class:"same-as-urls"},le={class:"actions"},ce={colspan:"4"},P={__name:"EeatBlur",setup(w){const{getJsonValue:p}=L(),u=[{name:"WordPress",url:"https://wordpress.org",sameAsUrls:[]},{name:"SEO",url:"https://aioseo.com",sameAsUrls:[]},{name:"Schema Markup",url:"https://schema.org",sameAsUrls:[]}],e="all-in-one-seo-pack",i={settings:o("Settings",e),experienceTopics:o("Author Experience Topics (E-E-A-T)",e),experienceTopicsDescription:n(o("The following settings will be added directly to an author's schema meta data via the %1$sknowsAbout%2$s property. This property helps with the Experience aspect of Google's E-E-A-T guidelines. After setting the global options here, you can add them directly in an authors profile page.",e),"<code>","</code>"),name:o("Name",e),url:o("URL",e),sameAsUrls:o("Same As URLs",e),addItem:o("Add Item",e),delete:o("Delete",e),nameTooltip:o('The name of the item the author knows about (e.g. "Amazon").',e),urlTooltip:o('The URL of the item the author knows about (e.g. "https://amazon.com").',e),sameAsUrlsTooltip:o('Additional URLs to help identify the item (e.g. "https://en.wikipedia.org/wiki/Amazon_(company)").',e),sameAsUrlsPlaceholder:o("Enter a URL and press enter",e),tagPlaceholder:o("Press enter to insert a URL",e),authorBioInjection:o("Append Author Bio to Posts",e),authorBioInjectionDescription:n(o("Choose whether %1$s should automatically append a compact author bio at the end of every post. You can also manually insert the author bio using the Author Bio block.",e),void 0),postTypes:o("Post Types",e),includeAllPostTypes:o("Include All Post Types",e),selectPostTypes:o("Select the post types for which you want to automatically inject an author bio.",e)},f=E(()=>{const m={block:{desc:n('<p>The following blocks are available in the Block Editor:</p><ul style="list-style:disc; margin-left: 24px;"><li>AIOSEO - Author Bio</li><li>AIOSEO - Author Name</li></ul>')},shortcode:{multiple:[{copy:"[aioseo_eeat_author_bio]",desc:o("Use the following shortcode to display the author bio.",e),hasAdvanced:!0,attributes:[{name:"compact",description:n(o("Whether the compact author bio should be output or not. Defaults to %1$s.",e),"<code>true</code>")}],attributesDescription:o("The following shortcode attributes can be used to override the default settings:",e)},{copy:"[aioseo_eeat_author_tooltip]",desc:o("Use the following shortcode to display the author name.",e),hasAdvanced:!0,attributes:[{name:"show-label",description:n(o('Whether to display the "Written By" label or not. Defaults to %1$s.',e),"<code>true</code>")},{name:"show-image",description:n(o("Whether to display the author image or not. Defaults to %1$s.",e),"<code>true</code>")},{name:"show-tooltip",description:n(o("Whether to display the popup when someone hovers over the name or not. Defaults to %1$s.",e),"<code>true</code>")}],attributesDescription:o("The following shortcode attributes can be used to override the default settings:",e)}]},php:{multiple:[{copy:"<?php if( function_exists( 'aioseo_eeat_author_bio' ) ) aioseo_eeat_author_bio(); ?>",desc:o("Use the following PHP code anywhere in your theme's post templates or author archive template to display a bio for the author.",e),hasAdvanced:!0,attributes:[{name:"$compact",description:n(o("Whether the compact author bio should be output or not. Defaults to %1$s.",e),"<code>true</code>")}],attributesDescription:o("The following function arguments can be used to override the default settings:",e)},{copy:"<?php if( function_exists( 'aioseo_eeat_author_tooltip' ) ) aioseo_eeat_author_tooltip(); ?>",desc:o("Use the following PHP code anywhere in your theme's post templates to display a bio for the post author.",e),hasAdvanced:!0,attributes:[{name:"$showLabel",description:n(o('Whether to display the "Written By" label or not. Defaults to %1$s.',e),"<code>true</code>")},{name:"$showImage",description:n(o("Whether to display the author image or not. Defaults to %1$s.",e),"<code>true</code>")},{name:"$showTooltip",description:n(o("Whether to display the popup when someone hovers over the name or not. Defaults to %1$s.",e),"<code>true</code>")}],attributesDescription:o("The following function arguments can be used to override the default settings:",e)}]}};return I.hasAddonFeature("aioseo-eeat","post-reviewer")&&(m.block.desc=n('<p>The following blocks are available in the Block Editor:</p><ul style="list-style:disc; margin-left: 24px;"><li>AIOSEO - Author Bio</li><li>AIOSEO - Author Name</li><li>AIOSEO - Reviewer Name</li></ul>'),m.shortcode.multiple.push({copy:"[aioseo_eeat_reviewer_tooltip]",desc:o("Use the following shortcode to display the reviewer name.",e),hasAdvanced:!0,attributes:[{name:"show-label",description:n(o('Whether to display the "Reviewed By" label or not. Defaults to %1$s.',e),"<code>true</code>")},{name:"show-image",description:n(o("Whether to display the reviewer image or not. Defaults to %1$s.",e),"<code>true</code>")},{name:"show-tooltip",description:n(o("Whether to display the popup when someone hovers over the name or not. Defaults to %1$s.",e),"<code>true</code>")}],attributesDescription:o("The following shortcode attributes can be used to override the default settings:",e)}),m.php.multiple.push({copy:"<?php if( function_exists( 'aioseo_eeat_reviewer_tooltip' ) ) aioseo_eeat_reviewer_tooltip(); ?>",desc:o("Use the following PHP code anywhere in your theme's post templates to display a bio for the post reviewer.",e),hasAdvanced:!0,attributes:[{name:"$showLabel",description:n(o('Whether to display the "Reviewed By" label or not. Defaults to %1$s.',e),"<code>true</code>")},{name:"$showImage",description:n(o("Whether to display the reviewer image or not. Defaults to %1$s.",e),"<code>true</code>")},{name:"$showTooltip",description:n(o("Whether to display the popup when someone hovers over the name or not. Defaults to %1$s.",e),"<code>true</code>")}],attributesDescription:o("The following function arguments can be used to override the default settings:",e)})),m});return(m,g)=>(h(),b(t(z),null,{default:r(()=>[s("div",Y,[a(t(B),{id:"aioseo-author-seo-settings",slug:"authorSeoSettings","header-text":i.settings,noSlide:""},{default:r(()=>[a(t(N),{options:f.value,plural:""},null,8,["options"]),a(t(S),{name:i.authorBioInjection},{content:r(()=>[a(t(V),{value:"true",name:"authorBioInjection",options:[{label:t(T).disabled,value:!1,activeClass:"dark"},{label:t(T).enabled,value:!0}]},null,8,["options"]),s("div",K,[c(l(i.authorBioInjectionDescription)+" ",1),s("span",{innerHTML:t(k).getDocLink(t(T).learnMore,"eeatAuthorBioInjection",!0)},null,8,X)])]),_:1},8,["name"]),a(t(S),{name:i.postTypes},{content:r(()=>[a(t(R),{size:"medium",value:"true"},{default:r(()=>[c(l(i.includeAllPostTypes),1)]),_:1}),s("div",Z,l(i.selectPostTypes),1)]),_:1},8,["name"])]),_:1},8,["header-text"]),a(t(B),{id:"aioseo-author-seo-topics",slug:"authorSeoTopics","header-text":i.experienceTopics,noSlide:""},{default:r(()=>[s("div",{class:"aioseo-settings-row aioseo-section-description",innerHTML:i.experienceTopicsDescription},null,8,ee),s("table",te,[s("thead",null,[s("tr",null,[s("td",null,[s("div",oe,[c(l(i.name)+" ",1),a(t(y),null,{tooltip:r(()=>[c(l(i.nameTooltip),1)]),default:r(()=>[a(t(U))]),_:1})])]),s("td",null,[s("div",se,[c(l(i.url)+" ",1),a(t(y),null,{tooltip:r(()=>[c(l(i.urlTooltip),1)]),default:r(()=>[a(t(U))]),_:1})])]),s("td",null,[s("div",ae,[c(l(i.sameAsUrls)+" ",1),a(t(y),null,{tooltip:r(()=>[c(l(i.sameAsUrlsTooltip),1)]),default:r(()=>[a(t(U))]),_:1})])]),g[0]||(g[0]=s("td",null,null,-1))])]),s("tbody",null,[(h(),v(H,null,G(u,(d,A)=>s("tr",{class:F({even:A%2===0}),key:A},[s("td",ie,[a(t(x),{size:"medium",modelValue:d.name,"onUpdate:modelValue":_=>d.name=_,"append-icon":"circle-close","append-icon-on-value":"",onAppendIconClick:_=>d.name=""},null,8,["modelValue","onUpdate:modelValue","onAppendIconClick"])]),s("td",ne,[a(t(x),{size:"medium",modelValue:d.url,"onUpdate:modelValue":_=>d.url=_,"append-icon":"circle-close","append-icon-on-value":"",onAppendIconClick:_=>d.url=""},null,8,["modelValue","onUpdate:modelValue","onAppendIconClick"])]),s("td",re,[a(t(O),{size:"medium",multiple:"",taggable:"",options:t(p)(d.sameAsUrls)||[],modelValue:t(p)(d.sameAsUrls)||[],placeholder:i.sameAsUrlsPlaceholder,"tag-placeholder":i.tagPlaceholder},null,8,["options","modelValue","placeholder","tag-placeholder"])]),s("td",le,[a(t(y),{type:"action"},{tooltip:r(()=>[c(l(i.delete),1)]),default:r(()=>[a(t(M))]),_:1})])],2)),64))]),s("tfoot",null,[s("tr",null,[s("td",ce,[a(t(W),{size:"small-table",type:"black"},{default:r(()=>[a(t(j)),c(" "+l(i.addItem),1)]),_:1})])])])])]),_:1},8,["header-text"])])]),_:1}))}},ue={__name:"EeatCta",setup(w){const p="all-in-one-seo-pack",{addonSlug:u,features:e,strings:i}=D(),{ctaComponent:f,shouldShowUpdate:m}=$({addonSlug:u}),g=E(()=>m.value?o("Update E-E-A-T",p):o("Activate E-E-A-T",p)),d=()=>{window.location.reload(!0)};return(A,_)=>(h(),v("div",null,[a(t(P)),(h(),b(J(t(f)),{"addon-slug":t(u),"cta-header":t(i).headerTextActivate,"cta-description":t(i).description,"cta-button-text":g.value,"feature-list":t(e),"prevent-global-addon-update":"",onAddonActivated:d,alignTop:""},null,40,["addon-slug","cta-header","cta-description","cta-button-text","feature-list"]))]))}},de={__name:"EeatCta",setup(w){const{features:p,strings:u}=D();return(e,i)=>(h(),v("div",null,[a(t(P)),a(t(Q),{"cta-link":t(k).getPricingUrl("eeat","eeat-upsell",null,"liteUpgrade"),"button-text":t(u).ctaButtonText,"learn-more-link":t(k).getUpsellUrl("eeat",null,"liteUpgrade"),"feature-list":t(p),alignTop:""},{"header-text":r(()=>[c(l(t(u).headerText),1)]),description:r(()=>[a(t(q),{addon:"aioseo-eeat"}),c(" "+l(t(u).description),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list"])]))}},pe={class:"author-seo-cta"},He={__name:"EeatCta",setup(w){const{shouldShowActivate:p,shouldShowLite:u,shouldShowUpdate:e}=$({addonSlug:"aioseo-eeat"});return(i,f)=>(h(),v("div",pe,[t(e)||t(p)?(h(),b(t(ue),{key:0})):C("",!0),t(u)?(h(),b(t(de),{key:1})):C("",!0)]))}};export{He as default};