import{i as St,b as vt,S as z,a as kt,u as rt,c as R,_ as d,s as Bt,l as Vt,o as S,d as H,e as j,f as v,w as f,g as m,t as g,h as c,j as A,k as I,m as U,n as Z,p as N,q as it,r as _,v as _t}from"./js/Close.BmzKdJYw.js";import{B as b}from"./js/Toggle.CdlO2AN-.js";import{G as Ct,C as Lt}from"./js/constants.CPjNT8Ae.js";var At="[object Symbol]";function It(r){return typeof r=="symbol"||St(r)&&vt(r)==At}function Tt(r,e){for(var n=-1,t=r==null?0:r.length,i=Array(t);++n<t;)i[n]=e(r[n],n,r);return i}var Ot=1/0,G=z?z.prototype:void 0,D=G?G.toString:void 0;function st(r){if(typeof r=="string")return r;if(kt(r))return Tt(r,st)+"";if(It(r))return D?D.call(r):"";var e=r+"";return e=="0"&&1/r==-Ot?"-0":e}function Mt(r){return r==null?"":st(r)}function Et(r,e,n){var t=-1,i=r.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++t<i;)o[t]=r[t+e];return o}function Ft(r,e,n){var t=r.length;return n=n===void 0?t:n,!e&&n>=t?r:Et(r,e,n)}var Pt="\\ud800-\\udfff",Rt="\\u0300-\\u036f",Ht="\\ufe20-\\ufe2f",jt="\\u20d0-\\u20ff",Ut=Rt+Ht+jt,Zt="\\ufe0e\\ufe0f",Nt="\\u200d",xt=RegExp("["+Nt+Pt+Ut+Zt+"]");function at(r){return xt.test(r)}function qt(r){return r.split("")}var lt="\\ud800-\\udfff",Jt="\\u0300-\\u036f",zt="\\ufe20-\\ufe2f",Gt="\\u20d0-\\u20ff",Dt=Jt+zt+Gt,Kt="\\ufe0e\\ufe0f",Wt="["+lt+"]",F="["+Dt+"]",P="\\ud83c[\\udffb-\\udfff]",Yt="(?:"+F+"|"+P+")",ut="[^"+lt+"]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Qt="\\u200d",pt=Yt+"?",ht="["+Kt+"]?",Xt="(?:"+Qt+"(?:"+[ut,ct,dt].join("|")+")"+ht+pt+")*",te=ht+pt+Xt,ee="(?:"+[ut+F+"?",F,ct,dt,Wt].join("|")+")",oe=RegExp(P+"(?="+P+")|"+ee+te,"g");function ne(r){return r.match(oe)||[]}function re(r){return at(r)?ne(r):qt(r)}function ie(r){return function(e){e=Mt(e);var n=at(e)?re(e):void 0,t=n?n[0]:e.charAt(0),i=n?Ft(n,1).join(""):e.slice(1);return t[r]()+i}}var se=ie("toUpperCase"),ft=function(r,e,n,t){var i;e[0]=0;for(var o=1;o<e.length;o++){var s=e[o++],u=e[o]?(e[0]|=s?1:2,n[e[o++]]):e[++o];s===3?t[0]=u:s===4?t[1]=Object.assign(t[1]||{},u):s===5?(t[1]=t[1]||{})[e[++o]]=u:s===6?t[1][e[++o]]+=u+"":s?(i=r.apply(u,ft(r,u,n,["",null])),t.push(i),u[0]?e[0]|=2:(e[o-2]=0,e[o]=i)):t.push(u)}return t},K=new Map;function ae(r){var e=K.get(this);return e||(e=new Map,K.set(this,e)),(e=ft(this,e.get(r)||(e.set(r,e=function(n){for(var t,i,o=1,s="",u="",a=[0],l=function(h){o===1&&(h||(s=s.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?a.push(0,h,s):o===3&&(h||s)?(a.push(3,h,s),o=2):o===2&&s==="..."&&h?a.push(4,h,0):o===2&&s&&!h?a.push(5,0,!0,s):o>=5&&((s||!h&&o===5)&&(a.push(o,0,s,i),o=6),h&&(a.push(o,h,0,i),o=6)),s=""},p=0;p<n.length;p++){p&&(o===1&&l(),l(p));for(var C=0;C<n[p].length;C++)t=n[p][C],o===1?t==="<"?(l(),a=[a],o=3):s+=t:o===4?s==="--"&&t===">"?(o=1,s=""):s=t+s[0]:u?t===u?u="":s+=t:t==='"'||t==="'"?u=t:t===">"?(l(),o=1):o&&(t==="="?(o=5,i=s,s=""):t==="/"&&(o<5||n[p][C+1]===">")?(l(),o===3&&(a=a[0]),o=a,(a=a[0]).push(2,0,o),o=0):t===" "||t==="	"||t===`
`||t==="\r"?(l(),o=2):s+=t),o===3&&s==="!--"&&(o=4,a=a[0])}return l(),a}(r)),e),arguments,[])).length>1?e:e[0]}const x=ae.bind(window.wp.element.createElement),q=(r,e)=>{const n=e.findIndex(t=>t.clientId===r);n!==-1&&(e[n].app.unmount(),e.splice(n,1))},le=x`
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
	<g clip-path="url(#clip0_354_509)">
		<path d="M11.9995 9.3001C9.27552 9.3001 8.72352 5.1721 8.72352 5.1721C8.39952 3.0241 9.38352 0.600098 11.9635 0.600098C14.5555 0.600098 15.5395 3.0241 15.2155 5.1721C15.2155 5.1721 14.7235 9.3001 11.9995 9.3001ZM11.9995 12.3841L15.2635 10.2001C18.1315 10.2001 20.6875 12.9961 20.6875 15.6361V18.6241C20.6875 18.6241 16.3075 19.9801 11.9995 19.9801C7.61952 19.9801 3.31152 18.6241 3.31152 18.6241V15.6361C3.31152 12.9361 5.63952 10.2601 8.67552 10.2601L11.9995 12.3841Z" fill="black"/>
		<g clip-path="url(#clip1_354_509)">
			<path d="M3.60059 28.1997H20.4006V25.7997H3.60059V28.1997ZM3.60059 16.1997V18.5997H20.4006V16.1997H3.60059ZM3.60059 23.3997H20.4006V20.9997H3.60059V23.3997Z" fill="black"/>
		</g>
	</g>
	<defs>
		<clipPath id="clip0_354_509">
			<rect width="24" height="24" fill="white"/>
		</clipPath>
		<clipPath id="clip1_354_509">
			<rect width="24" height="24" fill="white" transform="translate(0 10.2002)"/>
		</clipPath>
	</defs>
</svg>
`,ue="https://schemas.wp.org/wp/5.8/block.json",ce="aioseo/author-bio",de="AIOSEO - Author Bio",pe="Easily add an SEO-friendly author bio to your content for enhanced E-E-A-T.",he="text",fe=["author","author bio","author biography","author box","author profile","author information","author details","author description","bio","biography","description","information","profile"],me="aioseo-eeat",ge={compact:{type:"boolean",default:!0},showBioLink:{type:"boolean",default:!0}},be={html:!1,align:!0},mt={$schema:ue,name:ce,title:de,description:pe,category:he,keywords:fe,textdomain:me,attributes:ge,supports:be},we=(r,e=null)=>{try{r=JSON.parse(r)}catch{r=e}return r},W={individual:0,business:1,agency:2,basic:3,plus:4,pro:5,elite:6},J=(r="")=>{var o,s;const e=rt(),t=R().aioseo.data.isNetworkLicensed&&!e.options.general.licenseKey?((o=e.internalNetworkOptions.internal.license)==null?void 0:o.features)||[]:((s=e.internalOptions.internal.license)==null?void 0:s.features)||[];let i=we(t,[]);return r&&(i=i[r]||[]),i},$e=(r,e)=>{const n=J("core");for(const t in n)if(r===t&&!e||r===t&&n[t].find(i=>i===e||-1<i.indexOf(e)))return!0;return!1},ye=(r,e)=>{const n=J("addons");for(const t in n)if(r===t&&n[t].includes(e))return!0;return!1},Se=r=>{var i,o;const e=rt(),t=R().aioseo.data.isNetworkLicensed&&!e.options.general.licenseKey?(i=e.internalNetworkOptions.internal.license)==null?void 0:i.level:(o=e.internalOptions.internal.license)==null?void 0:o.level;return t?W[t]>=W[r]:!1},ve=(r,e="")=>{const n=[];R().aioseo.features.forEach(o=>{o.section===r&&(e&&o.feature!==e||n.push(se(o.license_level)))});const i=["Basic","Plus","Pro","Elite"];return n.sort((o,s)=>i.indexOf(o)-i.indexOf(s)),[...new Set(n)]},L={getFeatures:J,getPlansForFeature:ve,hasAddonFeature:ye,hasCoreFeature:$e,hasMinimumLevel:Se},ke={class:"aioseo-author-bio-sidebar"},Be={class:"sidebar-row"},Ve={__name:"SidebarOptions",setup(r){const n={showCompactAuthorBioBlock:d("Show Compact Author Bio",void 0),showCompactAuthorBioBlockUpsell:Bt(d("The full author bio block requires a higher plan. %1$s",void 0),Vt.getUpsellLink("author-info",Ct.learnMore,"reviewer-tooltip",!0)),showSeeFullBioLink:d('Show "See Full Bio" link',void 0)};return(t,i)=>(S(),H("div",ke,[j("div",Be,[v(c(b),{modelValue:t.$root.$data.compact,"onUpdate:modelValue":i[0]||(i[0]=o=>t.$root.$data.compact=o),disabled:!c(L).hasAddonFeature("aioseo-eeat","author-archive-bio")},{default:f(()=>[m(g(n.showCompactAuthorBioBlock),1)]),_:1},8,["modelValue","disabled"]),t.$root.$data.compact?(S(),A(c(b),{key:0,modelValue:t.$root.$data.showBioLink,"onUpdate:modelValue":i[1]||(i[1]=o=>t.$root.$data.showBioLink=o),disabled:!c(L).hasAddonFeature("aioseo-eeat","author-archive-bio")},{default:f(()=>[m(g(n.showSeeFullBioLink),1)]),_:1},8,["modelValue","disabled"])):I("",!0),c(L).hasAddonFeature("aioseo-eeat","author-archive-bio")?I("",!0):(S(),A(c(Lt),{key:1,innerHTML:n.showCompactAuthorBioBlockUpsell},null,8,["innerHTML"]))])]))}},_e="aioseo-eeat",{name:gt,title:Ce,description:Le,category:Ae,supports:Ie,attributes:Te}=mt,k=window.wp,w=k.element.createElement,Oe=k.element.Fragment,Me=k.serverSideRender||k.components.ServerSideRender;var et;const Ee=((et=k.blockEditor)==null?void 0:et.InspectorControls)||k.editor.InspectorControls,Fe=k.components.PanelBody,T={},Y=[],Pe={title:Ce,description:Le,category:Ae,supports:Ie,attributes:Te,icon:le,edit:function(r){const{attributes:e,setAttributes:n,clientId:t,isSelected:i}=r,o="aioseo-"+t,s={id:o,parent:document.querySelector(".block-editor"),subtree:!0,done:function(a){q(t,Y);let l=U({name:"Blocks/AuthorBio",data:function(){return T[t]},watch:{$data:{handler:function(p){n(p)},deep:!0}},render:()=>Z(Ve)});l=N(l),it(l),l.mount(a),Y.push({clientId:t,app:l})}};i&&(T[t]={},Object.keys(e).forEach(function(a){T[t][a]=e[a]}),_(s));const u=w(Ee,null,w(Fe,{title:d("Block Settings",_e),initialOpen:!0,onToggle:()=>{_(s)}},w("div",null,w("div",{id:o},null))));return w(Oe,{},u,w("div",{},w("div",null,w(Me,{block:gt,attributes:{compact:e.compact,showBioLink:e.showBioLink}}))))},save:function(){return null},example:{attributes:{compact:!0,showBioLink:!0}}},Re=Object.freeze(Object.defineProperty({__proto__:null,metadata:mt,name:gt,settings:Pe},Symbol.toStringTag,{value:"Module"})),He=x`
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
	<g clip-path="url(#clip0_354_509)">
		<path d="M11.9995 9.3001C9.27552 9.3001 8.72352 5.1721 8.72352 5.1721C8.39952 3.0241 9.38352 0.600098 11.9635 0.600098C14.5555 0.600098 15.5395 3.0241 15.2155 5.1721C15.2155 5.1721 14.7235 9.3001 11.9995 9.3001ZM11.9995 12.3841L15.2635 10.2001C18.1315 10.2001 20.6875 12.9961 20.6875 15.6361V18.6241C20.6875 18.6241 16.3075 19.9801 11.9995 19.9801C7.61952 19.9801 3.31152 18.6241 3.31152 18.6241V15.6361C3.31152 12.9361 5.63952 10.2601 8.67552 10.2601L11.9995 12.3841Z" fill="black"/>
		<g clip-path="url(#clip1_354_509)">
			<path d="M3.60059 28.1997H20.4006V25.7997H3.60059V28.1997ZM3.60059 16.1997V18.5997H20.4006V16.1997H3.60059ZM3.60059 23.3997H20.4006V20.9997H3.60059V23.3997Z" fill="black"/>
		</g>
	</g>
	<defs>
		<clipPath id="clip0_354_509">
			<rect width="24" height="24" fill="white"/>
		</clipPath>
		<clipPath id="clip1_354_509">
			<rect width="24" height="24" fill="white" transform="translate(0 10.2002)"/>
		</clipPath>
	</defs>
</svg>
`,je="https://schemas.wp.org/wp/5.8/block.json",Ue="aioseo/author-tooltip",Ze="AIOSEO - Author Name",Ne="Easily output the name of the post author in your content for enhanced E-E-A-T.",xe="text",qe=["author","author name","author bio","author biography","author profile","author information","author details","author description","bio","biography","description","information","profile"],Je="aioseo-eeat",ze={showLabel:{type:"boolean",default:!0},showImage:{type:"boolean",default:!0},showTooltip:{type:"boolean",default:!0},postAuthor:{type:"number"},showBioLink:{type:"boolean",default:!0}},Ge={html:!1,align:!0},bt={$schema:je,name:Ue,title:Ze,description:Ne,category:xe,keywords:qe,textdomain:Je,attributes:ze,supports:Ge},De={class:"aioseo-author-tooltip-sidebar"},Ke={class:"sidebar-row"},We={__name:"SidebarOptions",setup(r){const n={showLabel:d("Show Label",void 0),showImage:d("Show Image",void 0),showTooltip:d("Show Tooltip",void 0),showSeeFullBioLink:d('Show "See Full Bio" link',void 0)};return(t,i)=>(S(),H("div",De,[j("div",Ke,[v(c(b),{modelValue:t.$root.$data.showLabel,"onUpdate:modelValue":i[0]||(i[0]=o=>t.$root.$data.showLabel=o)},{default:f(()=>[m(g(n.showLabel),1)]),_:1},8,["modelValue"]),v(c(b),{modelValue:t.$root.$data.showImage,"onUpdate:modelValue":i[1]||(i[1]=o=>t.$root.$data.showImage=o)},{default:f(()=>[m(g(n.showImage),1)]),_:1},8,["modelValue"]),v(c(b),{modelValue:t.$root.$data.showTooltip,"onUpdate:modelValue":i[2]||(i[2]=o=>t.$root.$data.showTooltip=o)},{default:f(()=>[m(g(n.showTooltip),1)]),_:1},8,["modelValue"]),t.$root.$data.showTooltip?(S(),A(c(b),{key:0,modelValue:t.$root.$data.showBioLink,"onUpdate:modelValue":i[3]||(i[3]=o=>t.$root.$data.showBioLink=o)},{default:f(()=>[m(g(n.showSeeFullBioLink),1)]),_:1},8,["modelValue"])):I("",!0)])]))}},Ye="aioseo-eeat",{name:wt,title:Qe,description:Xe,category:to,supports:eo,attributes:oo}=bt,B=window.wp,$=B.element.createElement,no=B.element.Fragment,ro=B.serverSideRender||B.components.ServerSideRender;var ot;const io=((ot=B.blockEditor)==null?void 0:ot.InspectorControls)||B.editor.InspectorControls,so=B.components.PanelBody,O={},Q=[],ao={title:Qe,description:Xe,category:to,supports:eo,attributes:oo,icon:He,edit:function(r){const{attributes:e,setAttributes:n,clientId:t,isSelected:i}=r,o="aioseo-"+t,s={id:o,parent:document.querySelector(".block-editor"),subtree:!0,done:function(a){q(t,Q);let l=U({name:"Blocks/AuthorBio",data:function(){return O[t]},watch:{$data:{handler:function(p){n(p)},deep:!0}},render:()=>Z(We)});l=N(l),l.mount(a),Q.push({clientId:t,app:l})}};i&&(O[t]={},Object.keys(e).forEach(function(a){O[t][a]=e[a]}),_(s));const u=$(io,null,$(so,{title:d("Block Settings",Ye),initialOpen:!0,onToggle:()=>{_(s)}},$("div",null,$("div",{id:o},null))));return $(no,{},u,$("div",{},$("div",null,$(ro,{block:wt,attributes:{...e}}))))},save:function(){return null},example:{attributes:{showLabel:!0,showImage:!0}}},lo=Object.freeze(Object.defineProperty({__proto__:null,metadata:bt,name:wt,settings:ao},Symbol.toStringTag,{value:"Module"})),uo=x`
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
	<g clip-path="url(#clip0_354_509)">
		<path d="M11.9995 9.3001C9.27552 9.3001 8.72352 5.1721 8.72352 5.1721C8.39952 3.0241 9.38352 0.600098 11.9635 0.600098C14.5555 0.600098 15.5395 3.0241 15.2155 5.1721C15.2155 5.1721 14.7235 9.3001 11.9995 9.3001ZM11.9995 12.3841L15.2635 10.2001C18.1315 10.2001 20.6875 12.9961 20.6875 15.6361V18.6241C20.6875 18.6241 16.3075 19.9801 11.9995 19.9801C7.61952 19.9801 3.31152 18.6241 3.31152 18.6241V15.6361C3.31152 12.9361 5.63952 10.2601 8.67552 10.2601L11.9995 12.3841Z" fill="black"/>
		<g clip-path="url(#clip1_354_509)">
			<path d="M3.60059 28.1997H20.4006V25.7997H3.60059V28.1997ZM3.60059 16.1997V18.5997H20.4006V16.1997H3.60059ZM3.60059 23.3997H20.4006V20.9997H3.60059V23.3997Z" fill="black"/>
		</g>
	</g>
	<defs>
		<clipPath id="clip0_354_509">
			<rect width="24" height="24" fill="white"/>
		</clipPath>
		<clipPath id="clip1_354_509">
			<rect width="24" height="24" fill="white" transform="translate(0 10.2002)"/>
		</clipPath>
	</defs>
</svg>
`,co="https://schemas.wp.org/wp/5.8/block.json",po="aioseo/reviewer-tooltip",ho="AIOSEO - Reviewer Name",fo="Easily output the name of the post reviewer in your content for enhanced E-E-A-T.",mo="text",go=["author","author name","author bio","author biography","author profile","author information","author details","author description","bio","biography","description","information","profile","reviewer","review"],bo="aioseo-eeat",wo={showLabel:{type:"boolean",default:!0},showImage:{type:"boolean",default:!0},showTooltip:{type:"boolean",default:!0},showBioLink:{type:"boolean",default:!0}},$o={html:!1,align:!0},$t={$schema:co,name:po,title:ho,description:fo,category:mo,keywords:go,textdomain:bo,attributes:wo,supports:$o},yo={class:"aioseo-reviewer-tooltip-sidebar"},So={class:"sidebar-row"},vo={__name:"SidebarOptions",setup(r){const n={showLabel:d("Show Label",void 0),showImage:d("Show Image",void 0),showTooltip:d("Show Tooltip",void 0),showSeeFullBioLink:d('Show "See Full Bio" link',void 0)};return(t,i)=>(S(),H("div",yo,[j("div",So,[v(c(b),{modelValue:t.$root.$data.showLabel,"onUpdate:modelValue":i[0]||(i[0]=o=>t.$root.$data.showLabel=o)},{default:f(()=>[m(g(n.showLabel),1)]),_:1},8,["modelValue"]),v(c(b),{modelValue:t.$root.$data.showImage,"onUpdate:modelValue":i[1]||(i[1]=o=>t.$root.$data.showImage=o)},{default:f(()=>[m(g(n.showImage),1)]),_:1},8,["modelValue"]),v(c(b),{modelValue:t.$root.$data.showTooltip,"onUpdate:modelValue":i[2]||(i[2]=o=>t.$root.$data.showTooltip=o)},{default:f(()=>[m(g(n.showTooltip),1)]),_:1},8,["modelValue"]),t.$root.$data.showTooltip?(S(),A(c(b),{key:0,modelValue:t.$root.$data.showBioLink,"onUpdate:modelValue":i[3]||(i[3]=o=>t.$root.$data.showBioLink=o)},{default:f(()=>[m(g(n.showSeeFullBioLink),1)]),_:1},8,["modelValue"])):I("",!0)])]))}},ko="aioseo-eeat",{name:yt,title:Bo,description:Vo,category:_o,supports:Co,attributes:Lo}=$t,V=window.wp,y=V.element.createElement,Ao=V.element.Fragment,Io=V.serverSideRender||V.components.ServerSideRender;var nt;const To=((nt=V.blockEditor)==null?void 0:nt.InspectorControls)||V.editor.InspectorControls,Oo=V.components.PanelBody,M={},X=[],Mo={title:Bo,description:Vo,category:_o,supports:Co,attributes:Lo,icon:uo,edit:function(r){const{attributes:e,setAttributes:n,clientId:t,isSelected:i}=r,o="aioseo-"+t,s={id:o,parent:document.querySelector(".block-editor"),subtree:!0,done:function(a){q(t,X);let l=U({name:"Blocks/AuthorBio",data:function(){return M[t]},watch:{$data:{handler:function(p){n(p)},deep:!0}},render:()=>Z(vo)});l=N(l),l.mount(a),X.push({clientId:t,app:l})}};i&&(M[t]={},Object.keys(e).forEach(function(a){M[t][a]=e[a]}),_(s));const u=y(To,null,y(Oo,{title:d("Block Settings",ko),initialOpen:!0,onToggle:()=>{_(s)}},y("div",null,y("div",{id:o},null))));return y(Ao,{},u,y("div",{},y("div",null,y(Io,{block:yt,attributes:{...e}}))))},save:function(){return null},example:{attributes:{showLabel:!0,showImage:!0}}},Eo=Object.freeze(Object.defineProperty({__proto__:null,metadata:$t,name:yt,settings:Mo},Symbol.toStringTag,{value:"Module"})),{registerBlockCollection:tt,registerBlockType:Fo}=window.wp.blocks,E=r=>{if(!r)return;const{name:e,settings:n}=r;if(n.icon&&!n.icon.foreground){const t={foreground:"#141B38",src:n.icon};n.icon=t}typeof tt=="function"&&n.category==="aioseo"&&(n.category="widgets"),typeof tt!="function"&&n.category!=="aioseo"&&(n.category="aioseo"),Fo(e,n)};_t()&&(E(Re),it(),L.hasAddonFeature("aioseo-eeat","post-reviewer")&&(E(lo),E(Eo)));
