WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
command-palette.asset.php
150
x
-
command-palette.js
7358
x
-
header.asset.php
140
x
-
header.css
16626
x
-
header.js
16498
x
D
settings/
-
settings.asset.php
217
x
-
settings.css
60298
x
-
settings.js
75637
x
D
wizard/
Upload
Simpan
(()=>{"use strict";var e,t,s={4196:(e,t,s)=>{s.d(t,{Z:()=>l});const a=new Map,n=new Map,r=new Set,o={register(e,t){e&&"function"==typeof t&&a.set(String(e),t)},get:e=>a.get(String(e))||null,registerOverviewTab(e,t){e&&t&&"function"==typeof t.component&&(n.set(String(e),{key:String(e),label:String(t.label||e),component:t.component,viewUrl:t.viewUrl||"",viewLabel:t.viewLabel||"",description:t.description||""}),r.forEach((e=>{try{e()}catch(e){}})))},listOverviewTabs:()=>Array.from(n.values()),subscribeOverviewTabs:e=>"function"!=typeof e?()=>{}:(r.add(e),()=>r.delete(e))};"undefined"!=typeof window&&(window.seopressDashboardExtensions=o);const l=o},9654:(e,t,s)=>{s.d(t,{Z:()=>l});var a=s(9196),n=s(5736),r=s(3781);const o={titles:{id:"ctx-titles",icon:"edit",title:(0,n.__)("Need more control over your titles?","wp-seopress"),body:(0,n.__)("PRO adds AI-powered title generation, advanced breadcrumbs, and more.","wp-seopress"),cta_text:(0,n.__)("Discover PRO","wp-seopress")},sitemaps:{id:"ctx-sitemaps",icon:"networking",title:(0,n.__)("Video & News Sitemaps","wp-seopress"),body:(0,n.__)("Get your videos and news articles indexed faster with dedicated sitemaps.","wp-seopress"),cta_text:(0,n.__)("Learn more","wp-seopress")},analytics:{id:"ctx-analytics",icon:"chart-area",title:(0,n.__)("Advanced Analytics & Events","wp-seopress"),body:(0,n.__)("Track custom events, download tracking, affiliate links, and more with PRO.","wp-seopress"),cta_text:(0,n.__)("Explore features","wp-seopress")},advanced:{id:"ctx-advanced",icon:"admin-settings",title:(0,n.__)("Redirections, Broken Links & 404 Monitoring","wp-seopress"),body:(0,n.__)("Manage redirections, monitor 404 errors, and fix broken links automatically.","wp-seopress"),cta_text:(0,n.__)("Get PRO","wp-seopress")},social:{id:"ctx-social",icon:"share",title:(0,n.__)("Enhanced Social Media Integration","wp-seopress"),body:(0,n.__)("Unlock advanced Open Graph controls, social preview, and more with PRO.","wp-seopress"),cta_text:(0,n.__)("Discover PRO","wp-seopress")},"instant-indexing":{id:"ctx-instant-indexing",icon:"superhero",title:(0,n.__)("Instant Indexing for Google","wp-seopress"),body:(0,n.__)("Automatically submit your pages to Google's Indexing API for faster crawling.","wp-seopress"),cta_text:(0,n.__)("Learn more","wp-seopress")},tools:{id:"ctx-tools",icon:"admin-tools",title:(0,n.__)("Advanced SEO Tools","wp-seopress"),body:(0,n.__)("Unlock redirections, 404 monitoring, broken link checker, and htaccess editor with PRO.","wp-seopress"),cta_text:(0,n.__)("Get PRO","wp-seopress")}},l=()=>{const e=window.SEOPRESS_SETTINGS_DATA||{},{pageType:t}=(0,r.i3)(),s=e.IS_PRO_ACTIVE,l=e.DOCS_LINKS||{},i=o[t]||e.PROMOTIONS||null,c=i?`seopress_promo_dismissed_${i.id}`:null,[p,d]=(0,a.useState)((()=>{if(!c)return!1;try{const e=localStorage.getItem(c);if(!e)return!1;const t=parseInt(e,10);return Date.now()<t||(localStorage.removeItem(c),!1)}catch{return!1}})),[u,m]=(0,a.useState)(!1),_=i?.cta_url||l?.addons?.pro||"",E=(0,a.useCallback)((t=>{if(t.preventDefault(),t.stopPropagation(),u||!i)return;m(!0);const s=new FormData;s.append("action","seopress_dismiss_promotion"),s.append("promo_id",i.id),s.append("duration","30"),s.append("_ajax_nonce",e.PROMO_NONCE||""),fetch(e.AJAX_URL,{method:"POST",credentials:"same-origin",body:s}).then((e=>e.json())).then((()=>{if(c)try{const e=Date.now()+2592e6;localStorage.setItem(c,String(e))}catch{}d(!0)})).catch((()=>{m(!1)}))}),[u,i,c,e.PROMO_NONCE,e.AJAX_URL]);return!i||s||p?null:React.createElement("div",{className:"seopress-contextual-promo","data-promo-id":i.id},React.createElement("div",{className:"promo-content"},i.icon&&React.createElement("div",{className:"promo-icon"},React.createElement("span",{className:`dashicons dashicons-${i.icon}`})),React.createElement("div",{className:"promo-text"},i.title&&React.createElement("h4",{className:"promo-title"},i.title),i.body&&React.createElement("p",{className:"promo-body"},i.body)),i.cta_text&&React.createElement("a",{href:_,className:"btn btnSecondary promo-cta",target:"_blank",rel:"noopener noreferrer"},i.cta_text),React.createElement("button",{type:"button",className:"promo-dismiss","data-promo-id":i.id,"data-dismiss-duration":"30","aria-label":(0,n.__)("Dismiss","wp-seopress"),onClick:E,disabled:u,style:u?{opacity:.5}:void 0},React.createElement("span",{className:"dashicons dashicons-no-alt"}))))}},5124:(e,t,s)=>{s.d(t,{Z:()=>c});var a=s(9196),n=s.n(a),r=s(5736),o=s(9818),l=s(5609);const i=e=>Object.assign(new Error(e),{isRefusal:!0}),c=({featureKey:e,label:t})=>{const s=()=>!!e&&"1"===SEOPRESS_SETTINGS_DATA.FEATURE_TOGGLES?.[e],[c,p]=(0,a.useState)(s),[d,u]=(0,a.useState)(!1);(0,a.useEffect)((()=>{p(s())}),[e]);const m=(0,a.useCallback)((async()=>{if(d)return;const s=c?"0":"1";p(!c),u(!0);try{const a=new FormData;a.append("action","seopress_toggle_features"),a.append("feature","toggle-"+e),a.append("feature_value",s),a.append("_ajax_nonce",SEOPRESS_SETTINGS_DATA.TOGGLE_NONCE);const n=await fetch(SEOPRESS_SETTINGS_DATA.AJAX_URL,{method:"POST",body:a});if(!n.ok)throw i((0,r.sprintf)((0,r.__)("The server refused the request (HTTP %d).","wp-seopress"),n.status));const l=(await n.text()).trim();if("0"===l||"-1"===l)throw i((0,r.__)("The request was rejected. Your account may lack the permission, or the page has been open long enough for its security token to expire.","wp-seopress"));SEOPRESS_SETTINGS_DATA.FEATURE_TOGGLES&&(SEOPRESS_SETTINGS_DATA.FEATURE_TOGGLES[e]=s);const c="1"===s;let p;p=t?c?(0,r.sprintf)((0,r.__)("%s enabled","wp-seopress"),t):(0,r.sprintf)((0,r.__)("%s disabled","wp-seopress"),t):c?(0,r.__)("Feature enabled","wp-seopress"):(0,r.__)("Feature disabled","wp-seopress"),(0,o.dispatch)("core/notices").createSuccessNotice(p,{type:"snackbar",isDismissible:!0})}catch(e){p(c),(0,o.dispatch)("core/notices").createErrorNotice(e&&e.isRefusal?e.message:(0,r.__)("Failed to update feature.","wp-seopress"),{type:"snackbar",isDismissible:!0})}finally{u(!1)}}),[c,e,d,t]);if(!e)return null;const _=c?(0,r.__)("Disable this feature","wp-seopress"):(0,r.__)("Enable this feature","wp-seopress");return n().createElement("div",{className:"seopress-feature-toggle-wrap"},n().createElement("span",{className:"seopress-feature-badge "+(c?"is-enabled":"is-disabled"),"aria-hidden":"true"},c?(0,r.__)("Enabled","wp-seopress"):(0,r.__)("Disabled","wp-seopress")),n().createElement(l.ToggleControl,{className:"seopress-feature-toggle",checked:c,disabled:d,onChange:m,label:n().createElement("span",{className:"screen-reader-text"},_),__nextHasNoMarginBottom:!0}))}},1188:(e,t,s)=>{s.d(t,{Z:()=>o});var a=s(9196),n=s.n(a),r=s(5609);const o=({options:e,value:t,onChange:s,disabled:a,ariaLabel:o,showLabel:l=!0})=>n().createElement("div",{className:"seopress-card-picker",role:"radiogroup","aria-label":o},e.map((e=>{const o=t===e.value;return n().createElement(r.Card,{key:e.value,size:"small",className:"seopress-card-picker__option"+(o?" is-selected":"")},n().createElement(r.CardBody,{as:"button",type:"button",role:"radio","aria-checked":o,"aria-label":e.label,disabled:a,onClick:()=>s(e.value),className:"seopress-card-picker__body"},e.logo&&n().createElement("img",{src:e.logo,alt:l?"":e.label,className:"seopress-card-picker__logo"}),l&&e.label&&n().createElement("span",{className:"seopress-card-picker__label"},e.label)))})))},7004:(e,t,s)=>{s.d(t,{We:()=>G.Z,F8:()=>P,lS:()=>x,Ev:()=>L,FH:()=>A,P4:()=>I,mg:()=>c,nv:()=>o,XL:()=>l,gE:()=>i});var a=s(9196),n=s.n(a),r=s(5609);const o=({label:e,value:t,onChange:s,onBlur:a,help:o,placeholder:l,className:i,error:c,type:p,min:d,max:u,step:m})=>n().createElement("div",{className:`seopress-field seopress-text-field ${c?"has-error":""} ${i||""}`},n().createElement(r.TextControl,{type:p,min:d,max:u,step:m,value:t||"",onChange:s,onBlur:a,placeholder:l,help:c||o,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})),l=({label:e,value:t,onChange:s,onBlur:a,help:o,placeholder:l,rows:i,className:c,error:p})=>n().createElement("div",{className:`seopress-field seopress-textarea-field ${p?"has-error":""} ${c||""}`},n().createElement(r.TextareaControl,{label:e,value:t||"",onChange:s,onBlur:a,help:p||o,placeholder:l,rows:i||4,className:p?"has-error":""})),i=({label:e,checked:t,onChange:s,help:a,className:o})=>{const l="1"===t||!0===t;return n().createElement("div",{className:`seopress-field seopress-toggle-field ${o||""}`},n().createElement(r.ToggleControl,{label:e,checked:l,onChange:e=>{s(e?"1":"")},help:a}))},c=({label:e,value:t,onChange:s,options:a,help:o,className:l})=>n().createElement("div",{className:`seopress-field seopress-select-field ${l||""}`},n().createElement(r.SelectControl,{label:e,value:t||"",options:a,onChange:s,help:o}));var p=s(5736);const d=window.wp.htmlEntities,u=/%%[a-zA-Z0-9_]+%%/g;function m(e){if(!e)return[];const t=[];let s=0;(function(e){const t=[],s=new RegExp(u.source,"g");let a;for(;null!==(a=s.exec(e));)t.push({start:a.index,end:a.index+a[0].length,value:a[0]});return t})(e).forEach((a=>{a.start>s&&t.push({type:"text",value:e.slice(s,a.start)}),t.push({type:"var",value:a.value}),s=a.end})),s<e.length&&t.push({type:"text",value:e.slice(s)});const a=[];return t.forEach(((e,s)=>{const n="var"===t[s-1]?.type&&"var"===t[s+1]?.type;if("text"===e.type&&n&&/^ +$/.test(e.value))for(let t=0;t<e.value.length;t++)a.push({type:"space"});else a.push(e)})),a}function _(e){return e.map((e=>"space"===e.type?" ":e.value)).join("")}const E=e=>!!e&&"space"===e.type,h=e=>!!e&&"text"===e.type;function g(e,t){const s=e[t-1],a=e[t];var n,r;s&&a&&(E(s)&&E(a)||h(s)&&E(a)&&/ $/.test(s.value)?e.splice(t,1):E(s)&&h(a)&&/^ /.test(a.value)?e.splice(t-1,1):h(s)&&h(a)&&e.splice(t-1,2,{type:"text",value:(n=s.value,r=a.value,""===n.trim()||""===r.trim()?n.replace(/\s+$/,"")+r.replace(/^\s+/,""):/ $/.test(n)&&/^ /.test(r)?n+r.replace(/^ +/,""):n+r)}))}function v(e){const t=e.slice();for(;t.length;){const e=t[0];if(!E(e)){if(h(e)){const s=e.value.replace(/^\s+/,"");if(""===s){t.shift();continue}t[0]={type:"text",value:s}}break}t.shift()}for(;t.length;){const e=t[t.length-1];if(!E(e)){if(h(e)){const s=e.value.replace(/\s+$/,"");if(""===s){t.pop();continue}t[t.length-1]={type:"text",value:s}}break}t.pop()}return t}function f(e){const t=[];return e.forEach(((e,s)=>{"text"!==e.type&&t.push(s)})),t}function b(e,t,s,a){const n=m(e),r=f(n);if(void 0===r[t]||void 0===r[s]||t===s)return e;const o=r[t],l=n[o],i=n[r[s]];n.splice(o,1),g(n,o);const c=n.indexOf(i);if(-1===c)return e;const p=a?c:c+1;return n.splice(p,0,l),function(e,t){var s;(s=e[t])&&"var"===s.type&&((e=>!e||E(e)||h(e)&&/^\s/.test(e.value))(e[t+1])||e.splice(t+1,0,{type:"space"}),(e=>!e||E(e)||h(e)&&/\s$/.test(e.value))(e[t-1])||e.splice(t,0,{type:"space"}))}(n,p),_(v(n))}const w=[{key:"%%sitetitle%%",label:(0,p.__)("Site title","wp-seopress")},{key:"%%sep%%",label:(0,p.__)("Separator","wp-seopress")},{key:"%%tagline%%",label:(0,p.__)("Tagline","wp-seopress")}];function S(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function y(e){if(!e)return"";let t="";for(const s of e.childNodes)Node.TEXT_NODE===s.nodeType?t+=s.textContent.replace(/ /g," "):Node.ELEMENT_NODE===s.nodeType&&(s.dataset&&s.dataset.var?t+=s.dataset.var:s.dataset&&void 0!==s.dataset.space?t+=" ":"BR"===s.tagName?t+="\n":"DIV"===s.tagName||"P"===s.tagName?(t.length>0&&!t.endsWith("\n")&&(t+="\n"),t+=y(s)):t+=y(s));return t}function k(e){for(const t of e.childNodes){if(Node.TEXT_NODE===t.nodeType&&/%%[a-zA-Z0-9_]+%%/.test(t.textContent))return!0;if(Node.ELEMENT_NODE===t.nodeType&&!t.dataset?.var&&k(t))return!0}return!1}function N(e){return`<button type="button" class="seopress-token-remove" tabindex="-1" aria-label="${S(e)}">×</button>`}function T(e){return Array.from(e.querySelectorAll(".seopress-token"))}const C=(0,a.forwardRef)((({value:e,onChange:t,variableLabels:s,multiline:r,placeholder:o},l)=>{const i=(0,a.useRef)(null),c=(0,a.useRef)(e||""),d=(0,a.useRef)(!1),u=(0,a.useRef)(null),E=(0,a.useCallback)((e=>{const t=i.current;t&&(t.innerHTML=function(e,t){return e?m(e).map((e=>"var"===e.type?function(e,t){const s=S(e);return`<span class="seopress-token" contenteditable="false" draggable="true" data-var="${s}" data-hint="${s}" title="${s}"><span class="seopress-token-label">${S(t)}</span>`+N((0,p.__)("Remove","wp-seopress"))+"</span>"}(e.value,t[e.value]||e.value.replace(/%%/g,"")):"space"===e.type?function(){const e=S((0,p.__)("Space","wp-seopress"));return`<span class="seopress-token seopress-token--space" contenteditable="false" draggable="true" data-space="1" data-hint="${e}" title="${e}"><span class="seopress-token-mark" aria-hidden="true"></span>`+N((0,p.__)("Remove the space","wp-seopress"))+"</span>"}():S(e.value).replace(/^ /," ").replace(/ $/," ").replace(/\n/g,"<br>"))).join(""):""}(e,s),c.current=e||"")}),[s]);(0,a.useEffect)((()=>{E(e||"")}),[]),(0,a.useEffect)((()=>{const t=c.current;e===t||d.current||E(e||"")}),[e,E]);const h=(0,a.useCallback)((()=>{const e=i.current;if(!e)return;const s=y(e);if(c.current=s,!k(e)&&function(e,t){const s=m(t).filter((e=>"text"!==e.type)),a=T(e);return s.length!==a.length||s.some(((e,t)=>"space"===e.type!=(void 0!==a[t].dataset.space)))}(e,s)){const t=function(e){const t=window.getSelection();if(!t||!t.rangeCount)return null;const s=t.getRangeAt(0);if(!e.contains(s.endContainer))return null;const a=document.createRange();a.selectNodeContents(e),a.setEnd(s.endContainer,s.endOffset);const n=document.createElement("div");return n.appendChild(a.cloneContents()),y(n).length}(e);E(s),function(e,t){const s=window.getSelection();if(null===t||!s)return;const a=document.createRange();let n=t,r=!1;const o=e=>{for(const t of e.childNodes){if(r)return;if(Node.TEXT_NODE===t.nodeType){if(n<=t.textContent.length)return a.setStart(t,n),void(r=!0);n-=t.textContent.length}else if(t.dataset&&(t.dataset.var||void 0!==t.dataset.space)){const e=t.dataset.var?t.dataset.var.length:1;if(n<e)return a.setStartBefore(t),void(r=!0);n-=e}else if("BR"===t.tagName){if(n<1)return a.setStartBefore(t),void(r=!0);n-=1}else o(t)}};o(e),r?a.collapse(!0):(a.selectNodeContents(e),a.collapse(!1)),s.removeAllRanges(),s.addRange(a)}(e,t)}t(s)}),[t,E]),w=(0,a.useCallback)((e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)}),[]),C=(0,a.useCallback)((e=>{r||"Enter"!==e.key||e.preventDefault()}),[r]),x=(0,a.useCallback)((e=>{e.target.classList.contains("seopress-token-remove")&&e.preventDefault()}),[]),A=(0,a.useCallback)((e=>{if(!e.target.classList.contains("seopress-token-remove"))return;e.preventDefault(),e.stopPropagation();const t=i.current,s=e.target.closest(".seopress-token");if(!t||!s||!s.parentNode)return;const a=T(t).indexOf(s);-1===a||k(t)?s.parentNode.removeChild(s):E(function(e,t){const s=m(e),a=f(s)[t];return void 0===a?e:(s.splice(a,1),g(s,a),_(v(s)))}(y(t),a)),h(),t.focus()}),[h,E]),P=(0,a.useCallback)((()=>{d.current=!0}),[]),R=(0,a.useCallback)((()=>{d.current=!1;const e=i.current;if(!e)return;const s=y(e).trim();(k(e)||!s&&e.innerHTML)&&E(s),s!==c.current&&(c.current=s,t(s))}),[E,t]),D=(0,a.useCallback)((()=>{const e=i.current;e&&(u.current&&(u.current.classList.remove("seopress-token--dragging"),u.current=null),e.querySelectorAll(".seopress-token--drop-before, .seopress-token--drop-after").forEach((e=>{e.classList.remove("seopress-token--drop-before","seopress-token--drop-after")})))}),[]),O=(0,a.useCallback)((e=>{const t=e.target.closest(".seopress-token");t&&(u.current=t,t.classList.add("seopress-token--dragging"),e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",t.dataset.var||" "))}),[]),I=(0,a.useCallback)((e=>{if(!u.current)return;e.preventDefault(),e.dataTransfer.dropEffect="move";const t=i.current;if(!t)return;t.querySelectorAll(".seopress-token--drop-before, .seopress-token--drop-after").forEach((e=>{e.classList.remove("seopress-token--drop-before","seopress-token--drop-after")}));const s=Array.from(t.querySelectorAll(".seopress-token:not(.seopress-token--dragging)")),a=function(e,t,s){if(!e.length)return null;const a=e=>s<e.top?e.top-s:s>e.bottom?s-e.bottom:0,n=Math.min(...e.map(a));let r=null;return e.forEach(((e,s)=>{if(a(e)!==n)return;const o=e.left+(e.right-e.left)/2,l=Math.abs(t-o);(!r||l<r.distance)&&(r={index:s,before:t<o,distance:l})})),{index:r.index,before:r.before}}(s.map((e=>e.getBoundingClientRect())),e.clientX,e.clientY);a&&s[a.index].classList.add(a.before?"seopress-token--drop-before":"seopress-token--drop-after")}),[]),L=(0,a.useCallback)((e=>{e.preventDefault();const t=i.current,s=u.current;if(!t||!s)return;const a=T(t),n=a.filter((e=>e!==s)),r=t.querySelector(".seopress-token--drop-before"),o=t.querySelector(".seopress-token--drop-after"),l=r||o||n[n.length-1],c=y(t),p=m(c).filter((e=>"text"!==e.type));l&&p.length===a.length&&E(b(c,a.indexOf(s),a.indexOf(l),!!r)),D(),h()}),[D,h,E]),G=(0,a.useCallback)((()=>{D()}),[D]),M=(0,a.useCallback)((e=>{const t=i.current;if(!t)return;const s=y(t).replace(/\s+$/,"");E(s?`${s} ${e}`:e);const a=document.createTextNode(" ");t.appendChild(a),t.focus();const n=window.getSelection(),r=document.createRange();r.setStartAfter(a),r.collapse(!0),n.removeAllRanges(),n.addRange(r),h()}),[h,E]),B=(0,a.useCallback)((()=>{const e=i.current;e&&(e.innerHTML="",c.current="",t(""))}),[t]);return(0,a.useImperativeHandle)(l,(()=>({insertVariable:M,clearAll:B,focus:()=>i.current?.focus()}))),n().createElement("div",{ref:i,className:"seopress-token-editor"+(r?" seopress-token-editor--multiline":""),contentEditable:!0,suppressContentEditableWarning:!0,onInput:h,onPaste:w,onKeyDown:C,onMouseDown:x,onClick:A,onFocus:P,onBlur:R,onDragStart:O,onDragOver:I,onDrop:L,onDragEnd:G,"data-placeholder":o||"",role:"textbox","aria-multiline":r||!1})}));C.displayName="TokenEditor";const x=({value:e,onChange:t,help:s,placeholder:o,multiline:l,className:i,quickVars:c})=>{const[u,m]=(0,a.useState)(!1),[_,E]=(0,a.useState)(""),[h,g]=(0,a.useState)(0),v=(0,a.useRef)(null),f=(0,a.useRef)(null),b=(0,a.useRef)(null),S=(0,a.useRef)(!1),y=(0,a.useMemo)((()=>{const e="undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.DYNAMIC_VARIABLES||{};return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(0,d.decodeEntities)(t)])))}),[]),k=(0,a.useMemo)((()=>"undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.VARIABLE_ALIASES||{}),[]),N=(0,a.useMemo)((()=>{const e="undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.PREVIEW_VALUES||{},t=Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(0,d.decodeEntities)(t)])));return Object.entries(k).forEach((([e,s])=>{t[s]&&!t[e]&&(t[e]=t[s])})),t}),[k]),T=c||w,x=(0,a.useMemo)((()=>{const t=function(e){if(!e)return new Set;const t=new Set,s=/%%[a-zA-Z0-9_]+%%/g;let a;for(;null!==(a=s.exec(e));)t.add(a[0]);return t}(e);return t.forEach((e=>{k[e]&&t.add(k[e])})),t}),[e,k]),A=(0,a.useMemo)((()=>{if("undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.OPTION_NAME)try{const e=document.getElementById("seopress-admin-settings-root");if(e&&e.__seopressSettings)return e.__seopressSettings.seopress_titles_sep||"-"}catch(e){}return"-"}),[]),P=(0,a.useMemo)((()=>{const e=_.toLowerCase();return Object.entries(y).filter((([t,s])=>!k[t]&&(t.toLowerCase().includes(e)||s.toLowerCase().includes(e))))}),[y,k,_]);(0,a.useEffect)((()=>{g(0)}),[P.length]);const R=(0,a.useCallback)((e=>{v.current&&v.current.insertVariable(e),m(!1),E(""),g(0)}),[]),D=(0,a.useCallback)((()=>{v.current&&v.current.clearAll()}),[]),O=(0,a.useCallback)((e=>{"ArrowDown"===e.key?(e.preventDefault(),S.current=!0,g((e=>e<P.length-1?e+1:0))):"ArrowUp"===e.key?(e.preventDefault(),S.current=!0,g((e=>e>0?e-1:P.length-1))):"Enter"===e.key?(e.preventDefault(),P[h]&&R(P[h][0])):"Escape"===e.key&&(m(!1),E(""),g(0))}),[P,h,R]);(0,a.useEffect)((()=>{if(!u||!b.current)return;if(!S.current)return;S.current=!1;const e=b.current,t=e.querySelector(".seopress-variable-item--highlighted");if(!t)return;const s=t.offsetTop,a=s+t.offsetHeight;s<e.scrollTop?e.scrollTop=s:a>e.scrollTop+e.clientHeight&&(e.scrollTop=a-e.clientHeight)}),[h,u]),(0,a.useEffect)((()=>{if(!u)return;const e=requestAnimationFrame((()=>{f.current?.focus({preventScroll:!0})}));return()=>cancelAnimationFrame(e)}),[u]);const I=(0,a.useMemo)((()=>function(e,t,s,a){if(!e)return"";const n={...s};return a&&(n["%%sep%%"]=a),e.replace(/%%([a-zA-Z0-9_]+)%%/g,(e=>n[e]?n[e]:t[e]||e.replace(/%%/g,"")))}(e,y,N,A)),[e,y,N,A]),L=e&&e.trim().length>0;return n().createElement("div",{className:`seopress-field seopress-dynamic-tag-field ${i||""}`},n().createElement("div",{className:"seopress-token-editor-wrapper"},n().createElement(C,{ref:v,value:e,onChange:t,variableLabels:y,multiline:l,placeholder:o}),L&&n().createElement("button",{type:"button",className:"seopress-token-clear-btn",onClick:D,title:(0,p.__)("Clear all","wp-seopress"),"aria-label":(0,p.__)("Clear all","wp-seopress")},"×")),L&&I&&n().createElement("div",{className:"seopress-token-preview"},n().createElement("span",{className:"seopress-token-preview-label"},(0,p.__)("Preview:","wp-seopress"))," ",n().createElement("span",{className:"seopress-token-preview-text"},I)),n().createElement("div",{className:"seopress-variable-chips"},T.map((e=>{const t=x.has(e.key);return n().createElement(r.Button,{key:e.key,variant:"tertiary",size:"compact",icon:t?"yes":"plus-alt2",onClick:()=>R(e.key)},y[e.key]||e.label)})),n().createElement("div",{className:"seopress-more-variables-wrapper"},n().createElement(r.Button,{variant:"tertiary",size:"compact",icon:"arrow-down-alt2",label:(0,p.__)("More variables","wp-seopress"),showTooltip:!0,onClick:()=>m(!u),"aria-expanded":u}),u&&n().createElement(r.Popover,{className:"seopress-variables-popover",placement:"bottom-start",shift:!0,onClose:()=>{m(!1),E(""),g(0)}},n().createElement("div",{className:"seopress-variables-list"},n().createElement(r.SearchControl,{ref:f,className:"seopress-variables-search",placeholder:(0,p.__)("Search variables...","wp-seopress"),value:_,onChange:E,onKeyDown:O,__nextHasNoMarginBottom:!0}),n().createElement("ul",{ref:b},P.map((([e,t],s)=>{const a=x.has(e),r=s===h;return n().createElement("li",{key:e,className:(r?"seopress-variable-item--highlighted":"")+(a?" seopress-variable-item--used":""),onClick:()=>R(e),onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),R(e))},onMouseEnter:()=>g(s),tabIndex:0,role:"button"},n().createElement("code",null,e),n().createElement("span",null,t,a&&n().createElement("span",{className:"seopress-variable-used-badge"},(0,p.__)("in use","wp-seopress"))))})),0===P.length&&n().createElement("li",{className:"seopress-no-results"},(0,p.__)("No variables found","wp-seopress"))))))),s&&n().createElement("p",{className:"components-base-control__help"},s))},A=({value:e,onChange:t,help:s,placeholder:o})=>{const[l,i]=(0,a.useState)(!1),c=(0,a.useCallback)((()=>{const e=wp.media({title:(0,p.__)("Select or Upload an Image","wp-seopress"),button:{text:(0,p.__)("Use this image","wp-seopress")},multiple:!1,library:{type:"image"}});e.on("select",(()=>{const s=e.state().get("selection").first().toJSON();t(s.url)})),e.open()}),[t]),d=(0,a.useCallback)((()=>{t(""),i(!1)}),[t]);return n().createElement("div",{className:"seopress-field seopress-media-upload-field"},n().createElement(r.__experimentalVStack,{spacing:2},n().createElement(r.TextControl,{value:e||"",onChange:t,placeholder:o||"https://",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),n().createElement(r.Flex,{justify:"flex-start",gap:2},n().createElement(r.FlexItem,null,n().createElement(r.Button,{variant:"secondary",icon:"upload",onClick:c},(0,p.__)("Upload an Image","wp-seopress"))),e&&n().createElement(r.FlexItem,null,n().createElement(r.Button,{variant:"tertiary",isDestructive:!0,onClick:()=>i(!0)},(0,p.__)("Remove","wp-seopress")))),e&&n().createElement("div",{className:"seopress-media-upload-preview"},n().createElement("img",{src:e,alt:""})),s&&n().createElement("p",{className:"components-base-control__help"},s)),l&&n().createElement(r.Modal,{title:(0,p.__)("Remove image","wp-seopress"),onRequestClose:()=>i(!1),className:"seopress-confirm-modal"},n().createElement("p",null,(0,p.__)("Are you sure you want to remove this image?","wp-seopress")),n().createElement(r.Flex,{justify:"flex-end",gap:2},n().createElement(r.FlexItem,null,n().createElement(r.Button,{variant:"secondary",onClick:()=>i(!1)},(0,p.__)("Cancel","wp-seopress"))),n().createElement(r.FlexItem,null,n().createElement(r.Button,{variant:"primary",isDestructive:!0,onClick:d},(0,p.__)("Remove","wp-seopress"))))))},P=({value:e,onChange:t,defaultColor:s,label:r})=>{const o=(0,a.useRef)(null),l=(0,a.useId)(),i=e||s||"";return n().createElement("div",{className:"seopress-color-picker-wrapper"},r&&n().createElement("p",{className:"description",id:l},r),n().createElement("div",{className:"seopress-color-picker-control"},n().createElement("div",{className:"seopress-color-picker-swatch-wrap"},n().createElement("button",{type:"button",className:"seopress-color-picker-swatch",onClick:()=>{o.current&&o.current.click()},style:{backgroundColor:i||"transparent"},"aria-label":(0,p.__)("Select Color","wp-seopress")}),n().createElement("input",{ref:o,type:"color",className:"seopress-color-picker-native",value:i&&i.startsWith("#")?i:"#000000",onChange:e=>t(e.target.value),tabIndex:-1})),n().createElement("input",{type:"text",className:"seopress-color-picker-input","aria-label":r?void 0:(0,p.__)("Color value","wp-seopress"),"aria-labelledby":r?l:void 0,value:e||"",onChange:e=>t(e.target.value),placeholder:s||"#000000"}),e&&n().createElement("button",{type:"button",className:"seopress-color-picker-clear",onClick:()=>t(""),"aria-label":(0,p.__)("Clear color","wp-seopress")},(0,p.__)("Clear","wp-seopress"))))};var R=s(6989),D=s.n(R);const O=e=>`${e.title} (${e.post_type} — #${e.id})`,I=({value:e,onChange:t,help:s,placeholder:o})=>{const[l,i]=(0,a.useState)({}),[c,d]=(0,a.useState)([]),u=(0,a.useRef)(null),m=(0,a.useRef)(null),_=(0,a.useRef)(!1),E=(e=>e?e.split(",").map((e=>parseInt(e.trim(),10))).filter((e=>!isNaN(e)&&e>0)):[])(e);(0,a.useEffect)((()=>{if(0===E.length)return void(_.current||(_.current=!0));const e=E.filter((e=>!l[e]));0!==e.length?D()({path:`/seopress/v1/search-posts?ids=${e.join(",")}`,headers:{"X-WP-Nonce":SEOPRESS_SETTINGS_DATA.NONCE}}).then((t=>{const s={...l};t.forEach((e=>{s[e.id]=O(e)})),e.forEach((e=>{s[e]||(s[e]=(0,p.sprintf)((0,p.__)("#%d (not found)","wp-seopress"),e))})),i(s),_.current=!0})).catch((()=>{_.current=!0})):_.current=!0}),[e]);const h=(0,a.useCallback)((e=>{m.current&&clearTimeout(m.current),!e||e.length<1?d([]):m.current=setTimeout((()=>{u.current&&u.current.abort();const t=new AbortController;u.current=t,D()({path:`/seopress/v1/search-posts?search=${encodeURIComponent(e)}`,headers:{"X-WP-Nonce":SEOPRESS_SETTINGS_DATA.NONCE},signal:t.signal}).then((e=>{const t={...l},s=[];e.forEach((e=>{const a=O(e);t[e.id]=a,s.push(a)})),i(t),d(s)})).catch((()=>{}))}),300)}),[l]),g=E.map((e=>l[e]||`#${e}`)),v=(0,a.useCallback)((e=>{const s=e.map((e=>{const t=(e=>{const t=e.match(/#(\d+)\)$/);return t?parseInt(t[1],10):null})(e);if(t)return t;const s=parseInt(e,10);if(!isNaN(s)&&s>0)return s;for(const[t,s]of Object.entries(l))if(s===e)return parseInt(t,10);return null})).filter(Boolean);t(s.length>0?s.join(", "):"")}),[l,t]);return n().createElement("div",{className:"seopress-field seopress-post-id-token-field"},n().createElement(r.FormTokenField,{value:g,suggestions:c,onChange:v,onInputChange:h,placeholder:o,__experimentalExpandOnFocus:!0,__experimentalAutoSelectFirstMatch:!0,__experimentalShowHowTo:!1}),s&&n().createElement("p",{className:"components-base-control__help"},s))},L=({label:e,children:t,className:s="",id:a})=>n().createElement("div",{id:a?`seopress-field-${a}`:void 0,"data-seopress-field":a||void 0,className:`seopress-field-row ${s}`},e&&n().createElement("div",{className:"seopress-field-label"},e),n().createElement("div",{className:"seopress-field-control"},t));var G=s(1188)},9773:(e,t,s)=>{s.d(t,{Z:()=>n});var a=s(5609);const n=()=>{const e="undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.LICENSE_NOTICE||null;if(!e||!e.message)return null;const t=e.ctaUrl&&e.ctaLabel?[{label:e.ctaLabel,url:e.ctaUrl,variant:"primary"}]:void 0;return React.createElement(a.Notice,{status:"warning",isDismissible:!1,actions:t,className:"seopress-license-notice"},e.title&&React.createElement("strong",null,e.title," "),e.message)}},5316:(e,t,s)=>{s.d(t,{Z:()=>g});var a=s(9196),n=s.n(a),r=s(9818);const o=window.wp.notices;var l=s(5609);const i=({tabs:e,activeTab:t,onTabChange:s})=>n().createElement("div",{className:"seopress-sidebar"},n().createElement("nav",{className:"seopress-sidebar-nav"},e.map((e=>n().createElement("a",{key:e.key,id:`${e.key}-tab`,className:"seopress-sidebar-tab "+(t===e.key?"is-active":""),href:`?page=seopress-titles#tab=${e.key}`,onClick:t=>((e,t)=>{e.preventDefault(),s(t),window.history.replaceState(null,null,`#tab=${t}`)})(t,e.key)},e.sidebarLabel||e.label)))));var c=s(5736),p=s(3781);const d=()=>{const{canSave:e,isDirty:t,dirtyCount:s,isSaving:i,saveError:d,saveSuccess:u,saveWarning:m,saveSettings:_,dismissNotice:E,validationErrors:h,resetDirty:g}=(0,p.i3)(),{createSuccessNotice:v,createErrorNotice:f,createWarningNotice:b}=(0,r.useDispatch)(o.store),[w,S]=(0,a.useState)(!1),y=(0,a.useRef)(i),k=(0,a.useRef)(h),N=(0,a.useRef)(_);return(0,a.useEffect)((()=>{y.current=i}),[i]),(0,a.useEffect)((()=>{k.current=h}),[h]),(0,a.useEffect)((()=>{N.current=_}),[_]),(0,a.useEffect)((()=>{const e=e=>{(e.metaKey||e.ctrlKey)&&"s"===e.key&&(e.preventDefault(),y.current||k.current||N.current())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]),(0,a.useEffect)((()=>{u&&(m?b(m,{type:"snackbar",explicitDismiss:!0,isDismissible:!0,id:"seopress-save-warning"}):v((0,c.__)("Settings saved successfully.","wp-seopress"),{type:"snackbar",isDismissible:!0,id:"seopress-save-success"}),E())}),[u]),(0,a.useEffect)((()=>{d&&(f(d,{type:"snackbar",isDismissible:!0,id:"seopress-save-error"}),E())}),[d]),e?n().createElement("div",{className:"seopress-save-bar is-visible"},n().createElement(l.Button,{variant:"primary",__next40pxDefaultSize:!0,onClick:_,disabled:i||h,isBusy:i},i?(0,c.__)("Saving...","wp-seopress"):(0,c.__)("Save changes","wp-seopress")),n().createElement(l.Button,{variant:"tertiary",onClick:()=>S(!0),disabled:i,style:t?void 0:{visibility:"hidden"}},(0,c.__)("Undo changes","wp-seopress")),w&&n().createElement(l.Modal,{title:(0,c.__)("Undo changes","wp-seopress"),onRequestClose:()=>S(!1),className:"seopress-confirm-modal"},n().createElement("p",null,(0,c.sprintf)((0,c._n)("You have %d unsaved change. Are you sure you want to discard it?","You have %d unsaved changes. Are you sure you want to discard them?",s,"wp-seopress"),s)),n().createElement("div",{className:"seopress-confirm-modal-actions"},n().createElement(l.Button,{variant:"secondary",onClick:()=>S(!1)},(0,c.__)("Cancel","wp-seopress")),n().createElement(l.Button,{variant:"primary",isDestructive:!0,onClick:()=>{g(),S(!1)}},(0,c.__)("Discard changes","wp-seopress"))))):null};var u=s(6989),m=s.n(u);const _="undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.REVIEW_PROMPT||{},E=()=>{const[e,t]=(0,a.useState)(Boolean(_.show)),[s,r]=(0,a.useState)("ask");if(!e)return null;const o=e=>{(e=>{m()({path:"/seopress/v1/review-prompt",method:"POST",headers:{"X-WP-Nonce":SEOPRESS_SETTINGS_DATA.NONCE},data:{action:e}}).catch((()=>{}))})(e),t(!1)};return n().createElement(l.Notice,{key:s,className:"seopress-review-prompt",status:"info",isDismissible:!0,onRemove:()=>o("snooze")},"ask"===s&&n().createElement("div",{className:"seopress-review-prompt__row"},n().createElement("strong",{className:"seopress-review-prompt__text"},(0,c.__)("Enjoying SEOPress?","wp-seopress")),n().createElement(l.Button,{variant:"primary",size:"compact",onClick:()=>r("love")},(0,c.__)("Yes, I love it","wp-seopress")),n().createElement(l.Button,{variant:"secondary",size:"compact",onClick:()=>r("feedback")},(0,c.__)("Not really","wp-seopress"))),"love"===s&&n().createElement("div",{className:"seopress-review-prompt__row"},n().createElement("span",{className:"seopress-review-prompt__text"},(0,c.__)("Awesome! A quick 5-star review on WordPress.org really helps us keep improving SEOPress.","wp-seopress")),n().createElement(l.Button,{variant:"primary",size:"compact",href:_.reviewUrl,target:"_blank",rel:"noopener noreferrer",onClick:()=>o("reviewed")},(0,c.__)("Leave a 5-star review","wp-seopress")),n().createElement(l.Button,{variant:"tertiary",size:"compact",onClick:()=>o("snooze")},(0,c.__)("Maybe later","wp-seopress")),n().createElement(l.Button,{variant:"tertiary",size:"compact",onClick:()=>o("dismiss")},(0,c.__)("No thanks","wp-seopress"))),"feedback"===s&&n().createElement("div",{className:"seopress-review-prompt__row"},n().createElement("span",{className:"seopress-review-prompt__text"},(0,c.__)("Sorry to hear that. Tell us what's wrong and we'll do our best to help.","wp-seopress")),n().createElement(l.Button,{variant:"primary",size:"compact",href:_.supportUrl,target:"_blank",rel:"noopener noreferrer",onClick:()=>o("dismiss")},(0,c.__)("Contact support","wp-seopress")),n().createElement(l.Button,{variant:"tertiary",size:"compact",onClick:()=>o("dismiss")},(0,c.__)("Dismiss","wp-seopress"))))};var h=s(5124);const g=({tabs:e,activeTab:t,onTabChange:s,children:a})=>{const c=e.find((e=>e.key===t)),p=c?c.label:"",u=c?.featureKey||null,m=(0,r.useSelect)((e=>e(o.store).getNotices().filter((e=>"snackbar"===e.type))),[]),{removeNotice:_}=(0,r.useDispatch)(o.store);return n().createElement("div",{className:"seopress-settings-layout"},n().createElement(E,null),n().createElement("div",{className:"seopress-settings-container"},n().createElement(i,{tabs:e,activeTab:t,onTabChange:s}),n().createElement("div",{className:"seopress-settings-content"},n().createElement("div",{className:"seopress-section-header"},n().createElement("h2",{className:"seopress-section-title"},p),n().createElement(h.Z,{key:u,featureKey:u,label:p})),a)),n().createElement(d,null),n().createElement(l.SnackbarList,{className:"seopress-snackbar-list",notices:m,onRemove:_}))}},3781:(e,t,s)=>{s.d(t,{i3:()=>u,nf:()=>_,rV:()=>m});var a=s(9196),n=s.n(a),r=s(5736),o=s(6989),l=s.n(o);const i={titles:"/seopress/v1/options/titles-settings",sitemaps:"/seopress/v1/options/sitemaps-settings",social:"/seopress/v1/options/social-settings",analytics:"/seopress/v1/options/analytics-settings","instant-indexing":"/seopress/v1/options/indexing-settings",advanced:"/seopress/v1/options/advanced-settings",..."undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.EXTRA_API_ENDPOINTS?SEOPRESS_SETTINGS_DATA.EXTRA_API_ENDPOINTS:{}},c=e=>i[e]||null,p=(0,a.createContext)({pageType:"titles",canSave:!0,isLoading:!0,loadError:null,isSaving:!1,saveError:null,saveSuccess:!1,isDirty:!1,dirtyCount:0,validationErrors:!1,setPageType:()=>{},saveSettings:()=>{},resetDirty:()=>{},dismissNotice:()=>{},setValidationErrors:()=>{}}),d=(0,a.createContext)({settings:{},updateSetting:()=>{}}),u=()=>(0,a.useContext)(p),m=()=>({...u(),...(0,a.useContext)(d)});window.seopressUseSettings=m;const _=({children:e,pageType:t})=>{const s="undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.INITIAL_SETTINGS?SEOPRESS_SETTINGS_DATA.INITIAL_SETTINGS:null,o=s&&Object.keys(s).length>0,[i,u]=(0,a.useState)(t||"titles"),m=(0,a.useRef)(null);null===m.current&&(m.current=new Map,o&&m.current.set(t||"titles",s));const _=m.current.get(i),[E,h]=(0,a.useState)(_||{}),[g,v]=(0,a.useState)(_||{}),[f,b]=(0,a.useState)(!_),[w,S]=(0,a.useState)(!1),[y,k]=(0,a.useState)(null),[N,T]=(0,a.useState)(!1),[C,x]=(0,a.useState)(null),[A,P]=(0,a.useState)(null),[R,D]=(0,a.useState)(!1),[O,I]=(0,a.useState)((()=>new Set)),L=(0,a.useRef)(!1),G=(0,a.useRef)(g);(0,a.useEffect)((()=>{G.current=g}),[g]),(0,a.useEffect)((()=>{const e=m.current.get(i);if(e)return h(e),v(e),I(new Set),b(!1),P(null),T(!1),void k(null);const t=c(i);if(!t)return m.current.set(i,{}),h({}),v({}),I(new Set),b(!1),P(null),T(!1),void k(null);let s=!1;return(async()=>{try{b(!0),P(null),T(!1),k(null);const e=await l()({path:t,method:"GET",headers:{"X-WP-Nonce":SEOPRESS_SETTINGS_DATA.NONCE}});if(s)return;const a=e||{};m.current.set(i,a),h(a),v(a),I(new Set)}catch(e){if(s)return;console.error("Error fetching settings:",e),P(e.message||(0,r.__)("Failed to load settings","wp-seopress"))}finally{s||b(!1)}})(),()=>{s=!0}}),[i]),(0,a.useEffect)((()=>{const e=e=>{L.current&&(e.preventDefault(),e.returnValue="")};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)}),[]);const M=(0,a.useCallback)(((e,t)=>{h((s=>({...s,[e]:t}))),I((s=>{var a,n;if((a=t)===(n=G.current[e])||null!=a&&null!=n&&("object"==typeof a||"object"==typeof n)&&JSON.stringify(a)===JSON.stringify(n)){if(!s.has(e))return s;const t=new Set(s);return t.delete(e),t}if(s.has(e))return s;const r=new Set(s);return r.add(e),r})),T(!1),k(null)}),[]),B=(0,a.useCallback)((async()=>{if(c(i))if(R)k((0,r.__)("Please fix the errors before saving.","wp-seopress"));else try{S(!0),k(null),T(!1),x(null);const e=c(i),t={...E},s=await l()({path:e,method:"POST",headers:{"X-WP-Nonce":SEOPRESS_SETTINGS_DATA.NONCE,"Content-Type":"application/json"},data:t});m.current.set(i,t),h(t),v(t),I(new Set),s&&s.warning&&x(s.warning),T(!0)}catch(e){console.error("Error saving settings:",e),k(e.message||(0,r.__)("Failed to save settings","wp-seopress"))}finally{S(!1)}}),[E,i,R]),F=(0,a.useCallback)((()=>{h(g),I(new Set)}),[g]),$=(0,a.useCallback)((()=>{T(!1),k(null),x(null)}),[]),q=O.size,j=q>0,z=null!==c(i);(0,a.useEffect)((()=>{L.current=j}),[j]);const U=(0,a.useMemo)((()=>({settings:E,updateSetting:M})),[E,M]),V=(0,a.useMemo)((()=>({pageType:i,canSave:z,isLoading:f,loadError:A,isSaving:w,saveError:y,saveSuccess:N,saveWarning:C,isDirty:j,dirtyCount:q,validationErrors:R,setPageType:u,saveSettings:B,resetDirty:F,dismissNotice:$,setValidationErrors:D})),[i,z,f,A,w,y,N,C,j,q,R,B,F,$]);return n().createElement(p.Provider,{value:V},n().createElement(d.Provider,{value:U},e))}},9643:(e,t,s)=>{s.d(t,{Z:()=>i});const a={},n={},r=new Set;function o(){r.forEach((e=>e()))}const l={registerField(e,t){a[e]=t,o()},registerPage(e,t){a["page-"+e]=t,o()},registerTab(e,t){n[e]=t,o()},getField:e=>a[e]||null,getTabs(e){if(!e)return{...n};const t={};return Object.entries(n).forEach((([s,a])=>{a.page===e&&(t[s]=a)})),t},subscribe:e=>(r.add(e),()=>r.delete(e))};window.seopressExtensions=l;const i=l},5460:(e,t,s)=>{s.d(t,{Z:()=>r});var a=s(9196);const n=e=>{const t=window.location.hash;if(!t)return null;const s=t.match(/tab=([^&]+)/);if(!s)return null;const a=e.find((e=>e.key===s[1]));return a?a.key:null},r=e=>{const t=(0,a.useRef)(e);(0,a.useEffect)((()=>{t.current=e}));const[s,r]=(0,a.useState)((()=>n(e)||e[0]&&e[0].key||null));return(0,a.useEffect)((()=>{const e=()=>{const e=n(t.current);e&&r(e)};return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)}),[]),[s,r]}},9196:e=>{e.exports=window.React},6989:e=>{e.exports=window.wp.apiFetch},5609:e=>{e.exports=window.wp.components},9818:e=>{e.exports=window.wp.data},9307:e=>{e.exports=window.wp.element},5736:e=>{e.exports=window.wp.i18n},6483:e=>{e.exports=window.wp.url}},a={};function n(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return s[e](r,r.exports,n),r.exports}n.m=s,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,s)=>(n.f[s](e,t),t)),[])),n.u=e=>"admin/settings/"+e+"."+{251:"e94c6c1ddba4d2cd2a3a",385:"a5f06eab9809d2314085",482:"26749364af82c5dbbe59",876:"2aa3bc9953e4286b15b9",891:"6cb057b99b235c18dc43",894:"7d217c6e1a5b2223e534",924:"835763097c1829842ce3"}[e]+".js",n.miniCssF=e=>e+".css",n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="wp-seopress:",n.l=(s,a,r,o)=>{if(e[s])e[s].push(a);else{var l,i;if(void 0!==r)for(var c=document.getElementsByTagName("script"),p=0;p<c.length;p++){var d=c[p];if(d.getAttribute("src")==s||d.getAttribute("data-webpack")==t+r){l=d;break}}l||(i=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+r),l.src=s),e[s]=[a];var u=(t,a)=>{l.onerror=l.onload=null,clearTimeout(m);var n=e[s];if(delete e[s],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(a))),t)return t(a)},m=setTimeout(u.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=u.bind(null,l.onerror),l.onload=u.bind(null,l.onload),i&&document.head.appendChild(l)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/public/",(()=>{if("undefined"!=typeof document){var e={27:0};n.f.miniCss=(t,s)=>{e[t]?s.push(e[t]):0!==e[t]&&{482:1}[t]&&s.push(e[t]=(e=>new Promise(((t,s)=>{var a=n.miniCssF(e),r=n.p+a;if(((e,t)=>{for(var s=document.getElementsByTagName("link"),a=0;a<s.length;a++){var n=(o=s[a]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(n===e||n===t))return o}var r=document.getElementsByTagName("style");for(a=0;a<r.length;a++){var o;if((n=(o=r[a]).getAttribute("data-href"))===e||n===t)return o}})(a,r))return t();((e,t,s,a,n)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.onerror=r.onload=s=>{if(r.onerror=r.onload=null,"load"===s.type)a();else{var o=s&&("load"===s.type?"missing":s.type),l=s&&s.target&&s.target.href||t,i=new Error("Loading CSS chunk "+e+" failed.\n("+l+")");i.code="CSS_CHUNK_LOAD_FAILED",i.type=o,i.request=l,r.parentNode&&r.parentNode.removeChild(r),n(i)}},r.href=t,document.head.appendChild(r)})(e,r,0,t,s)})))(t).then((()=>{e[t]=0}),(s=>{throw delete e[t],s})))}}})(),(()=>{var e={27:0};n.f.j=(t,s)=>{var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)s.push(a[2]);else{var r=new Promise(((s,n)=>a=e[t]=[s,n]));s.push(a[2]=r);var o=n.p+n.u(t),l=new Error;n.l(o,(s=>{if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var r=s&&("load"===s.type?"missing":s.type),o=s&&s.target&&s.target.src;l.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",l.name="ChunkLoadError",l.type=r,l.request=o,a[1](l)}}),"chunk-"+t,t)}};var t=(t,s)=>{var a,r,o=s[0],l=s[1],i=s[2],c=0;if(o.some((t=>0!==e[t]))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);i&&i(n)}for(t&&t(s);c<o.length;c++)r=o[c],n.o(e,r)&&e[r]&&e[r][0](),e[r]=0},s=self.webpackChunkwp_seopress=self.webpackChunkwp_seopress||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})(),(()=>{var e=n(9307),t=n(5609),s=n(9196),a=n.n(s);const r=window.ReactDOM;var o=n(5736),l=n(3781);const i="seopress-highlight",c="is-seopress-highlight";var p=n(5124);const d=({label:e,featureKey:t})=>a().createElement("div",{className:"seopress-section-header"},a().createElement("h1",{className:"seopress-section-title"},e),a().createElement(p.Z,{featureKey:t,label:e}));var u=n(9773),m=n(5316),_=n(7004);const E=()=>{const{settings:s,updateSetting:n}=(0,l.rV)(),r=(SEOPRESS_SETTINGS_DATA.DOCS_LINKS||{}).titles||{};return a().createElement("div",{className:"seopress-tab-content"},a().createElement(t.Notice,{isDismissible:!1},(0,o.__)("Title and meta description are used by search engines to generate the snippet of your site in search results page.","wp-seopress")),a().createElement("p",null,(0,o.__)("Customize your title & meta description for homepage.","wp-seopress")),r.wrong_meta&&a().createElement("p",null,a().createElement(t.ExternalLink,{href:r.wrong_meta},(0,o.__)("Wrong meta title / description in SERP?","wp-seopress"))),a().createElement(_.Ev,{id:"seopress_titles_sep",label:(0,o.__)("Separator","wp-seopress")},a().createElement(_.nv,{value:s.seopress_titles_sep,onChange:e=>n("seopress_titles_sep",e),placeholder:"-",help:(0,o.__)("Use this separator with %%sep%% in your title and meta description.","wp-seopress")})),a().createElement(_.Ev,{id:"seopress_titles_home_site_title",label:(0,o.__)("Site title","wp-seopress")},a().createElement(_.lS,{value:s.seopress_titles_home_site_title,onChange:e=>n("seopress_titles_home_site_title",e),placeholder:"%%sitetitle%% %%sep%% %%tagline%%"})),a().createElement(_.Ev,{id:"seopress_titles_home_site_title_alt",label:(0,o.__)("Alternative site title","wp-seopress")},a().createElement(_.nv,{value:s.seopress_titles_home_site_title_alt,onChange:e=>n("seopress_titles_home_site_title_alt",e),placeholder:(0,o.__)("My alternative site title","wp-seopress"),help:(0,e.createInterpolateElement)((0,o.__)("The alternate name of the website (for example, if there's a commonly recognized acronym or shorter name for your site), if applicable. Make sure the name meets the <a>content guidelines</a>.","wp-seopress"),{a:a().createElement(t.ExternalLink,{href:r.alt_title})})})),a().createElement(_.Ev,{id:"seopress_titles_home_site_desc",label:(0,o.__)("Meta description","wp-seopress")},a().createElement(_.lS,{value:s.seopress_titles_home_site_desc,onChange:e=>n("seopress_titles_home_site_desc",e),placeholder:(0,o.__)("This is a cool website about Wookiees","wp-seopress"),multiline:!0,rows:3})))},h=({icon:e,className:t=""})=>{const s=e||"dashicons-admin-post";if(s.startsWith("data:")||s.startsWith("http"))return a().createElement("img",{src:s,alt:"",className:`seopress-panel-icon seopress-panel-icon--img ${t}`,width:"24",height:"24","aria-hidden":"true"});const n=s.startsWith("dashicons-")?s:`dashicons-${s}`;return a().createElement("span",{className:`dashicons ${n} seopress-panel-icon ${t}`,"aria-hidden":"true"})},g=({noindex:e,nofollow:t})=>{const s="1"===e||!0===e,n="1"===t||!0===t;return s||n?a().createElement("span",{className:"seopress-robots-badges","aria-label":(0,o.__)("Robots directives","wp-seopress")},s&&a().createElement("span",{className:"seopress-robots-badge seopress-robots-badge--noindex"},(0,o.__)("noindex","wp-seopress")),n&&a().createElement("span",{className:"seopress-robots-badge seopress-robots-badge--nofollow"},(0,o.__)("nofollow","wp-seopress"))):null};var v=n(6989),f=n.n(v);const b=(e,t,a="name")=>{const n="undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.PANELS_STATE||{},r=!(e in n)||n[e],[o,l]=(0,s.useState)(r),[i,c]=(0,s.useState)((()=>{const e={};return t.forEach((t=>{e[t[a]]=r})),e})),p=(0,s.useRef)(null),d=(0,s.useCallback)((t=>{p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{f()({path:"/seopress/v1/user/panels-state",method:"POST",headers:{"X-WP-Nonce":SEOPRESS_SETTINGS_DATA.NONCE},data:{tab:e,expanded:t}}).catch((()=>{}))}),500)}),[e]);return{allExpanded:o,openPanels:i,togglePanel:(0,s.useCallback)((e=>{c((t=>({...t,[e]:!t[e]})))}),[]),toggleAll:(0,s.useCallback)((()=>{const e=window.scrollY;l((e=>{const s=!e,n={};return t.forEach((e=>{n[e[a]]=s})),c(n),d(s),s})),requestAnimationFrame((()=>{window.scrollTo(0,e)}))}),[t,a,d])}},w=[{key:"%%post_title%%",label:"Post Title"},{key:"%%sep%%",label:"Separator"},{key:"%%sitetitle%%",label:"Site Title"}],S=[{key:"%%post_excerpt%%",label:"Post excerpt"}],y=()=>{const{settings:s,updateSetting:n}=(0,l.rV)(),r=SEOPRESS_SETTINGS_DATA.POST_TYPES||[],{allExpanded:i,openPanels:c,togglePanel:p,toggleAll:d}=b("post_types",r),u=(e,t)=>((s.seopress_titles_single_titles||{})[e]||{})[t]||"",m=(e,t,a)=>{const r=s.seopress_titles_single_titles||{},o=r[e]||{};n("seopress_titles_single_titles",{...r,[e]:{...o,[t]:a}})};return a().createElement("div",{className:"seopress-tab-content seopress-post-types-tab"},a().createElement("p",null,(0,o.__)("Customize your titles & metas for Single Custom Post Types.","wp-seopress")),a().createElement("div",{className:"seopress-panels-toggle-all"},a().createElement(t.Button,{variant:"link",onClick:d},i?(0,o.__)("Collapse all","wp-seopress"):(0,o.__)("Expand all","wp-seopress"))),r.map((s=>a().createElement(t.Panel,{key:s.name,className:"seopress-panel "+(!1!==c[s.name]?"is-opened":"")},a().createElement(t.PanelBody,{title:a().createElement(a().Fragment,null,a().createElement(h,{icon:s.menu_icon}),a().createElement("span",null,s.label),a().createElement(g,{noindex:u(s.name,"noindex"),nofollow:u(s.name,"nofollow")})),opened:!1!==c[s.name],onToggle:()=>p(s.name)},a().createElement("div",{className:"seopress-panel-content"},a().createElement(_.Ev,{label:(0,o.__)("Meta title template","wp-seopress")},a().createElement(_.lS,{value:u(s.name,"title"),onChange:e=>m(s.name,"title",e),placeholder:"%%post_title%% %%sep%% %%sitetitle%%",quickVars:w})),a().createElement(_.Ev,{label:(0,o.__)("Meta description template","wp-seopress")},a().createElement(_.lS,{value:u(s.name,"description"),onChange:e=>m(s.name,"description",e),placeholder:"%%post_excerpt%%",multiline:!0,rows:3,quickVars:S})),a().createElement(_.Ev,{label:(0,o.__)("Robots","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("noindex","wp-seopress"),checked:u(s.name,"noindex"),onChange:e=>m(s.name,"noindex",e),help:(0,o.__)("Do not display this post type in search engine results.","wp-seopress")}),a().createElement(_.gE,{label:(0,o.__)("nofollow","wp-seopress"),checked:u(s.name,"nofollow"),onChange:e=>m(s.name,"nofollow",e),help:(0,o.__)("Do not follow links on this post type.","wp-seopress")})),a().createElement(_.Ev,{label:(0,o.__)("Date in Google search results","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("Show date","wp-seopress"),checked:u(s.name,"date"),onChange:e=>m(s.name,"date",e),help:a().createElement(a().Fragment,null,(0,e.createInterpolateElement)((0,o.__)("Display date in Google search results by adding <code>article:published_time</code> and <code>article:modified_time</code> meta?","wp-seopress"),{code:a().createElement("code",null)}),a().createElement("br",null),(0,o.__)("Unchecking this doesn't prevent Google to display post date in search results.","wp-seopress"))})),a().createElement(_.Ev,{label:(0,o.__)("Disable SEO metabox","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("Disable","wp-seopress"),checked:u(s.name,"enable"),onChange:e=>m(s.name,"enable",e),help:(0,o.__)("Click to hide any SEO metaboxes / columns / bulk actions for this post type.","wp-seopress")}))))))),a().createElement(t.PanelBody,{title:(0,o.__)("Why are some post types missing?","wp-seopress"),initialOpen:!1,icon:"info-outline"},a().createElement("p",null,(0,e.createInterpolateElement)((0,o.__)("Only post types registered with the <code>public => true</code> and <code>show_ui => true</code> arguments are listed above.","wp-seopress"),{code:a().createElement("code",null)}))))},k=[{key:"%%cpt_plural%%",label:"Post Type Archive Name"},{key:"%%sep%%",label:"Separator"},{key:"%%sitetitle%%",label:"Site Title"}],N=[{key:"%%post_author%%",label:"Post author"},{key:"%%sep%%",label:"Separator"},{key:"%%sitetitle%%",label:"Site Title"}],T=[{key:"%%author_bio%%",label:"Author biography"}],C=[{key:"%%archive_date%%",label:"Date archives"},{key:"%%sep%%",label:"Separator"},{key:"%%sitetitle%%",label:"Site Title"}],x=[{key:"%%search_keywords%%",label:"Search Keywords"},{key:"%%sep%%",label:"Separator"},{key:"%%sitetitle%%",label:"Site Title"}],A=()=>{const{settings:e,updateSetting:n}=(0,l.rV)(),r=SEOPRESS_SETTINGS_DATA.POST_TYPES||[],i=SEOPRESS_SETTINGS_DATA.BLOG_PAGE||null,c=r.filter((e=>"post"!==e.name&&"page"!==e.name)),p=(0,s.useMemo)((()=>{const e=c.map((e=>({key:`archive_${e.name}`})));return e.push({key:"author"},{key:"date"},{key:"search"},{key:"notFound"}),e}),[c]),{allExpanded:d,openPanels:u,togglePanel:m,toggleAll:E}=b("archives",p,"key"),v=(t,s)=>((e.seopress_titles_archive_titles||{})[t]||{})[s]||"",f=(t,s,a)=>{const r=e.seopress_titles_archive_titles||{},o=r[t]||{};n("seopress_titles_archive_titles",{...r,[t]:{...o,[s]:a}})};return a().createElement("div",{className:"seopress-tab-content seopress-archives-tab"},a().createElement("p",{className:"seopress-tab-description"},(0,o.__)("Customize your metas for all archives.","wp-seopress")),i&&a().createElement(t.Notice,{status:"info",isDismissible:!1},(0,o.sprintf)((0,o.__)("The blog page (%s) is a regular page, not an archive.","wp-seopress"),i.title)," ",i.edit_link?a().createElement("a",{href:i.edit_link},(0,o.__)("Edit its title and meta description on the page itself.","wp-seopress")):(0,o.__)("Edit its title and meta description on the page itself.","wp-seopress")),a().createElement("div",{className:"seopress-panels-toggle-all"},a().createElement(t.Button,{variant:"link",onClick:E},d?(0,o.__)("Collapse all","wp-seopress"):(0,o.__)("Expand all","wp-seopress"))),c.length>0&&a().createElement(a().Fragment,null,a().createElement("h3",{className:"seopress-subsection-title"},(0,o.__)("Post Type Archives","wp-seopress")),c.map((e=>a().createElement(t.Panel,{key:e.name,className:"seopress-panel "+(!1!==u[`archive_${e.name}`]?"is-opened":"")},a().createElement(t.PanelBody,{title:a().createElement(a().Fragment,null,a().createElement(h,{icon:e.menu_icon}),a().createElement("span",null,e.label),a().createElement(g,{noindex:v(e.name,"noindex"),nofollow:v(e.name,"nofollow")})),opened:!1!==u[`archive_${e.name}`],onToggle:()=>m(`archive_${e.name}`)},a().createElement("div",{className:"seopress-panel-content"},a().createElement(_.Ev,{label:(0,o.__)("Meta title template","wp-seopress")},a().createElement(_.lS,{value:v(e.name,"title"),onChange:t=>f(e.name,"title",t),placeholder:"%%cpt_plural%% %%sep%% %%sitetitle%%",quickVars:k})),a().createElement(_.Ev,{label:(0,o.__)("Meta description template","wp-seopress")},a().createElement(_.lS,{value:v(e.name,"description"),onChange:t=>f(e.name,"description",t),multiline:!0,rows:3})),a().createElement(_.Ev,{label:(0,o.__)("Robots","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("noindex","wp-seopress"),checked:v(e.name,"noindex"),onChange:t=>f(e.name,"noindex",t)}),a().createElement(_.gE,{label:(0,o.__)("nofollow","wp-seopress"),checked:v(e.name,"nofollow"),onChange:t=>f(e.name,"nofollow",t)})))))))),a().createElement("h3",{className:"seopress-subsection-title"},(0,o.__)("Author Archives","wp-seopress")),a().createElement("p",{className:"seopress-section-description"},(0,o.__)("Author archives are automatically generated by WordPress. They group specific content by author.","wp-seopress")),a().createElement("p",{className:"seopress-section-description"},(0,o.__)("Example: https://example.com/author/john-doe/","wp-seopress")),a().createElement("p",{className:"seopress-section-description"},(0,o.__)("You only have one author on your site? Check this option to avoid duplicate content.","wp-seopress")),a().createElement(t.Panel,{className:"seopress-panel "+(!1!==u.author?"is-opened":"")},a().createElement(t.PanelBody,{title:a().createElement(a().Fragment,null,a().createElement("span",null,(0,o.__)("Author","wp-seopress")),a().createElement(g,{noindex:e.seopress_titles_archives_author_noindex})),opened:!1!==u.author,onToggle:()=>m("author")},a().createElement("div",{className:"seopress-panel-content"},a().createElement(_.Ev,{label:(0,o.__)("Meta title template","wp-seopress")},a().createElement(_.lS,{value:e.seopress_titles_archives_author_title,onChange:e=>n("seopress_titles_archives_author_title",e),placeholder:"%%post_author%% %%sep%% %%sitetitle%%",quickVars:N})),a().createElement(_.Ev,{label:(0,o.__)("Meta description template","wp-seopress")},a().createElement(_.lS,{value:e.seopress_titles_archives_author_desc,onChange:e=>n("seopress_titles_archives_author_desc",e),multiline:!0,rows:3,quickVars:T})),a().createElement(_.Ev,{id:"seopress_titles_archives_author_noindex",label:(0,o.__)("Robots","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("noindex","wp-seopress"),checked:e.seopress_titles_archives_author_noindex,onChange:e=>n("seopress_titles_archives_author_noindex",e)})),a().createElement(_.Ev,{id:"seopress_titles_archives_author_disable",label:(0,o.__)("Disable","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("Disable author archives","wp-seopress"),checked:e.seopress_titles_archives_author_disable,onChange:e=>n("seopress_titles_archives_author_disable",e),help:(0,o.__)("Redirect author archives to homepage.","wp-seopress")}))))),a().createElement("h3",{className:"seopress-subsection-title"},(0,o.__)("Date Archives","wp-seopress")),a().createElement("p",{className:"seopress-section-description"},(0,o.__)("Date archives are automatically generated by WordPress. They group specific content by date.","wp-seopress")),a().createElement("p",{className:"seopress-section-description"},(0,o.__)("Example: https://example.com/2025/01/01/","wp-seopress")),a().createElement(t.Panel,{className:"seopress-panel "+(!1!==u.date?"is-opened":"")},a().createElement(t.PanelBody,{title:a().createElement(a().Fragment,null,a().createElement("span",null,(0,o.__)("Date","wp-seopress")),a().createElement(g,{noindex:e.seopress_titles_archives_date_noindex})),opened:!1!==u.date,onToggle:()=>m("date")},a().createElement("div",{className:"seopress-panel-content"},a().createElement(_.Ev,{label:(0,o.__)("Meta title template","wp-seopress")},a().createElement(_.lS,{value:e.seopress_titles_archives_date_title,onChange:e=>n("seopress_titles_archives_date_title",e),placeholder:"%%archive_date%% %%sep%% %%sitetitle%%",quickVars:C})),a().createElement(_.Ev,{label:(0,o.__)("Meta description template","wp-seopress")},a().createElement(_.lS,{value:e.seopress_titles_archives_date_desc,onChange:e=>n("seopress_titles_archives_date_desc",e),multiline:!0,rows:3})),a().createElement(_.Ev,{id:"seopress_titles_archives_date_noindex",label:(0,o.__)("Robots","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("noindex","wp-seopress"),checked:e.seopress_titles_archives_date_noindex,onChange:e=>n("seopress_titles_archives_date_noindex",e)})),a().createElement(_.Ev,{id:"seopress_titles_archives_date_disable",label:(0,o.__)("Disable","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("Disable date archives","wp-seopress"),checked:e.seopress_titles_archives_date_disable,onChange:e=>n("seopress_titles_archives_date_disable",e),help:(0,o.__)("Redirect date archives to homepage.","wp-seopress")}))))),a().createElement("h3",{className:"seopress-subsection-title"},(0,o.__)("Search Archives","wp-seopress")),a().createElement("p",{className:"seopress-section-description"},(0,o.__)("Search archives are automatically generated by WordPress. They group specific content by search term.","wp-seopress")),a().createElement("p",{className:"seopress-section-description"},(0,o.__)("Example: https://example.com/?s=keyword","wp-seopress")),a().createElement(t.Panel,{className:"seopress-panel "+(!1!==u.search?"is-opened":"")},a().createElement(t.PanelBody,{title:a().createElement(a().Fragment,null,a().createElement("span",null,(0,o.__)("Search","wp-seopress")),a().createElement(g,{noindex:e.seopress_titles_archives_search_title_noindex})),opened:!1!==u.search,onToggle:()=>m("search")},a().createElement("div",{className:"seopress-panel-content"},a().createElement(_.Ev,{label:(0,o.__)("Meta title template","wp-seopress")},a().createElement(_.lS,{value:e.seopress_titles_archives_search_title,onChange:e=>n("seopress_titles_archives_search_title",e),placeholder:"%%search_keywords%% %%sep%% %%sitetitle%%",quickVars:x})),a().createElement(_.Ev,{label:(0,o.__)("Meta description template","wp-seopress")},a().createElement(_.lS,{value:e.seopress_titles_archives_search_desc,onChange:e=>n("seopress_titles_archives_search_desc",e),multiline:!0,rows:3})),a().createElement(_.Ev,{id:"seopress_titles_archives_search_title_noindex",label:(0,o.__)("Robots","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("noindex","wp-seopress"),checked:e.seopress_titles_archives_search_title_noindex,onChange:e=>n("seopress_titles_archives_search_title_noindex",e)}))))),a().createElement("h3",{className:"seopress-subsection-title"},(0,o.__)("404 Page","wp-seopress")),a().createElement(t.Panel,{className:"seopress-panel"},a().createElement(t.PanelBody,{title:(0,o.__)("404","wp-seopress"),opened:!1!==u.notFound,onToggle:()=>m("notFound")},a().createElement("div",{className:"seopress-panel-content"},a().createElement(_.Ev,{id:"seopress_titles_archives_404_title",label:(0,o.__)("Meta title template","wp-seopress")},a().createElement(_.lS,{value:e.seopress_titles_archives_404_title,onChange:e=>n("seopress_titles_archives_404_title",e),placeholder:"404 %%sep%% %%sitetitle%%"})),a().createElement(_.Ev,{label:(0,o.__)("Meta description template","wp-seopress")},a().createElement(_.lS,{value:e.seopress_titles_archives_404_desc,onChange:e=>n("seopress_titles_archives_404_desc",e),multiline:!0,rows:3}))))))},P=e=>"category"===e?[{key:"%%_category_description%%",label:"Category Description"}]:"post_tag"===e?[{key:"%%tag_description%%",label:"Tag Description"}]:[{key:"%%term_description%%",label:"Term Description"}],R=()=>{const{settings:s,updateSetting:n}=(0,l.rV)(),r=SEOPRESS_SETTINGS_DATA.TAXONOMIES||[],{allExpanded:i,openPanels:c,togglePanel:p,toggleAll:d}=b("taxonomies",r),u=(e,t)=>((s.seopress_titles_tax_titles||{})[e]||{})[t]||"",m=(e,t,a)=>{const r=s.seopress_titles_tax_titles||{},o=r[e]||{};n("seopress_titles_tax_titles",{...r,[e]:{...o,[t]:a}})};return a().createElement("div",{className:"seopress-tab-content seopress-taxonomies-tab"},a().createElement("p",null,(0,o.__)("Customize your metas for all taxonomies archives.","wp-seopress")),a().createElement("div",{className:"seopress-panels-toggle-all"},a().createElement(t.Button,{variant:"link",onClick:d},i?(0,o.__)("Collapse all","wp-seopress"):(0,o.__)("Expand all","wp-seopress"))),0===r.length&&a().createElement("p",null,(0,o.__)("No public taxonomies found.","wp-seopress")),r.map((e=>{return a().createElement(t.Panel,{key:e.name,className:"seopress-panel "+(!1!==c[e.name]?"is-opened":"")},a().createElement(t.PanelBody,{title:a().createElement(a().Fragment,null,a().createElement("span",null,e.label),a().createElement(g,{noindex:u(e.name,"noindex"),nofollow:u(e.name,"nofollow")})),opened:!1!==c[e.name],onToggle:()=>p(e.name)},a().createElement("div",{className:"seopress-panel-content"},a().createElement(_.Ev,{label:(0,o.__)("Meta title template","wp-seopress")},a().createElement(_.lS,{value:u(e.name,"title"),onChange:t=>m(e.name,"title",t),placeholder:"%%term_title%% %%sep%% %%sitetitle%%",quickVars:(s=e.name,"category"===s?[{key:"%%_category_title%%",label:"Category Title"},{key:"%%sep%%",label:"Separator"},{key:"%%sitetitle%%",label:"Site Title"}]:"post_tag"===s?[{key:"%%tag_title%%",label:"Tag Title"},{key:"%%sep%%",label:"Separator"},{key:"%%sitetitle%%",label:"Site Title"}]:[{key:"%%term_title%%",label:"Term Title"},{key:"%%sep%%",label:"Separator"},{key:"%%sitetitle%%",label:"Site Title"}])})),a().createElement(_.Ev,{label:(0,o.__)("Meta description template","wp-seopress")},a().createElement(_.lS,{value:u(e.name,"description"),onChange:t=>m(e.name,"description",t),placeholder:"%%term_description%%",multiline:!0,rows:3,quickVars:P(e.name)})),a().createElement(_.Ev,{label:(0,o.__)("Robots","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("noindex","wp-seopress"),checked:u(e.name,"noindex"),onChange:t=>m(e.name,"noindex",t),help:(0,o.__)("Do not display this taxonomy in search engine results.","wp-seopress")}),"post_tag"===e.name&&a().createElement(t.Notice,{isDismissible:!1,status:"warning"},a().createElement("strong",null,(0,o.__)("Tags","wp-seopress"))," ",(0,o.__)("are usually a source of duplicate content. Indexing them is not recommended.","wp-seopress")),a().createElement(_.gE,{label:(0,o.__)("nofollow","wp-seopress"),checked:u(e.name,"nofollow"),onChange:t=>m(e.name,"nofollow",t),help:(0,o.__)("Do not follow links on this taxonomy.","wp-seopress")})),a().createElement(_.Ev,{label:(0,o.__)("Disable SEO metabox","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("Disable","wp-seopress"),checked:u(e.name,"enable"),onChange:t=>m(e.name,"enable",t),help:(0,o.__)("Disable the SEO metabox for this taxonomy.","wp-seopress")})))));var s})),a().createElement(t.PanelBody,{title:(0,o.__)("Why are some taxonomies missing?","wp-seopress"),initialOpen:!1,icon:"info-outline"},a().createElement("p",null,(0,e.createInterpolateElement)((0,o.__)("Only taxonomies registered with the <code>public => true</code> and <code>show_ui => true</code> arguments are listed above.","wp-seopress"),{code:a().createElement("code",null)}))))},D=()=>{const{settings:t,updateSetting:s}=(0,l.rV)();return a().createElement("div",{className:"seopress-tab-content seopress-advanced-tab"},a().createElement("p",{className:"seopress-tab-description"},(0,o.__)("Customize your metas for all pages.","wp-seopress")),a().createElement(_.Ev,{id:"seopress_titles_noindex",label:(0,o.__)("noindex","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("noindex entire site","wp-seopress"),checked:t.seopress_titles_noindex,onChange:e=>s("seopress_titles_noindex",e),help:a().createElement(a().Fragment,null,(0,o.__)('Do not display all pages of the site in Google search results and do not display "Cached" links in search results.',"wp-seopress"),a().createElement("br",null),a().createElement("br",null),(0,e.createInterpolateElement)((0,o.__)("Check also the <strong>Search engine visibility</strong> setting from the <a>WordPress Reading page</a>.","wp-seopress"),{strong:a().createElement("strong",null),a:a().createElement("a",{href:(SEOPRESS_SETTINGS_DATA.ADMIN_URL||"/wp-admin/")+"options-reading.php"})}))})),a().createElement(_.Ev,{id:"seopress_titles_nofollow",label:(0,o.__)("nofollow","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("nofollow entire site","wp-seopress"),checked:t.seopress_titles_nofollow,onChange:e=>s("seopress_titles_nofollow",e),help:(0,o.__)("Do not follow links for all pages.","wp-seopress")})),a().createElement(_.Ev,{id:"seopress_titles_noimageindex",label:(0,o.__)("noimageindex","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("noimageindex entire site","wp-seopress"),checked:t.seopress_titles_noimageindex,onChange:e=>s("seopress_titles_noimageindex",e),help:(0,o.__)("Do not index images from the entire site.","wp-seopress")})),a().createElement(_.Ev,{id:"seopress_titles_nosnippet",label:(0,o.__)("nosnippet","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("nosnippet entire site","wp-seopress"),checked:t.seopress_titles_nosnippet,onChange:e=>s("seopress_titles_nosnippet",e),help:(0,o.__)("Do not display a description in the Google search results for all pages.","wp-seopress")})),a().createElement(_.Ev,{id:"seopress_titles_nositelinkssearchbox",label:(0,o.__)("Remove Website schema","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("Remove sitelinks searchbox and Website schema","wp-seopress"),checked:t.seopress_titles_nositelinkssearchbox,onChange:e=>s("seopress_titles_nositelinkssearchbox",e),help:(0,o.__)("Note that the alternative site title declared in the Titles and metas settings is used by this.","wp-seopress")})),a().createElement(_.Ev,{id:"seopress_titles_paged_rel",label:(0,o.__)("Indicate paginated content to Google","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)("Add rel next/prev link in head of paginated archive pages","wp-seopress"),checked:t.seopress_titles_paged_rel,onChange:e=>s("seopress_titles_paged_rel",e)})),a().createElement(_.Ev,{id:"seopress_titles_paged_noindex",label:(0,o.__)("noindex on paged archives","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)('Add a "noindex" meta robots for all paginated archive pages',"wp-seopress"),checked:t.seopress_titles_paged_noindex,onChange:e=>s("seopress_titles_paged_noindex",e),help:(0,o.__)("e.g. https://example.com/category/my-category/page/2/","wp-seopress")})),a().createElement(_.Ev,{id:"seopress_titles_attachments_noindex",label:(0,o.__)("noindex on attachment pages","wp-seopress")},a().createElement(_.gE,{label:(0,o.__)('Add a "noindex" meta robots for all attachment pages',"wp-seopress"),checked:t.seopress_titles_attachments_noindex,onChange:e=>s("seopress_titles_attachments_noindex",e),help:(0,o.__)("e.g. https://example.com/my-media-attachment-page","wp-seopress")})))};var O=n(9654),I=n(5460);const L=[{key:"tab_seopress_titles_home",label:(0,o.__)("Home","wp-seopress")},{key:"tab_seopress_titles_single",label:(0,o.__)("Post Types","wp-seopress")},{key:"tab_seopress_titles_archives",label:(0,o.__)("Archives","wp-seopress")},{key:"tab_seopress_titles_tax",label:(0,o.__)("Taxonomies","wp-seopress")},{key:"tab_seopress_titles_advanced",label:(0,o.__)("Advanced","wp-seopress")}],G=()=>{const[e,t]=(0,I.Z)(L);return a().createElement(m.Z,{tabs:L,activeTab:e,onTabChange:t,title:(0,o.__)("Titles & Metas","wp-seopress")},a().createElement("div",{className:"seopress-tab active",id:e},(()=>{switch(e){case"tab_seopress_titles_home":default:return a().createElement(E,null);case"tab_seopress_titles_single":return a().createElement(y,null);case"tab_seopress_titles_archives":return a().createElement(A,null);case"tab_seopress_titles_tax":return a().createElement(R,null);case"tab_seopress_titles_advanced":return a().createElement(D,null)}})(),a().createElement(O.Z,null)))},M=(0,s.lazy)((()=>n.e(385).then(n.bind(n,5385)))),B=(0,s.lazy)((()=>n.e(876).then(n.bind(n,8876)))),F=(0,s.lazy)((()=>n.e(891).then(n.bind(n,7891)))),$=(0,s.lazy)((()=>n.e(924).then(n.bind(n,3223)))),q=(0,s.lazy)((()=>n.e(251).then(n.bind(n,1251)))),j=(0,s.lazy)((()=>n.e(894).then(n.bind(n,1894)))),z=(0,s.lazy)((()=>n.e(482).then(n.bind(n,8482)))),U=()=>{const{isLoading:e,loadError:n,isDirty:p,dirtyCount:m,pageType:_,setPageType:E}=(0,l.i3)(),h=(0,s.useCallback)((e=>{E(e)}),[E]),{pendingNavigation:g,confirmNavigation:v,cancelNavigation:f}=((e,t)=>{const a=(0,s.useRef)(t),[n,r]=(0,s.useState)(null);(0,s.useEffect)((()=>{a.current=t}),[t]);const o=(0,s.useCallback)((e=>{try{return new URL(e,window.location.origin).searchParams.get("page")}catch{return null}}),[]),l=(0,s.useCallback)((e=>(SEOPRESS_SETTINGS_DATA.ALL_PAGES||[]).find((t=>t.slug===e))),[]),i=(0,s.useCallback)((e=>(SEOPRESS_SETTINGS_DATA.REACT_READY_PAGES||[]).includes(e)),[]),c=(0,s.useCallback)((e=>{const t=e.label||"",s=document.querySelector("#seopress-navbar ul li:last-child");s&&(s.textContent=t);const a=document.querySelector(".seopress-switch-ui a");a&&(a.href=e.url+"&view=php"),document.title=t+" ‹ "+(document.title.split("‹").slice(1).join("‹").trim()||"WordPress")}),[]),p=(0,s.useCallback)((e=>{document.querySelectorAll('#adminmenu a[href*="page=seopress-"], #adminmenu a[href*="page=seopress-option"]').forEach((e=>{const t=e.closest("li");t&&t.classList.remove("current"),e.classList.remove("current")}));const t=document.querySelector(`#adminmenu a[href*="page=${e}"]`);if(t){t.classList.add("current");const e=t.closest("li");e&&e.classList.add("current")}}),[]),d=(0,s.useCallback)((t=>{window.history.pushState({seopressPage:t.type},"",t.url),p(t.slug),c(t),e(t.type)}),[e,p,c]),u=(0,s.useCallback)((e=>{const t=e.currentTarget.href,s=o(t);if(!s)return;const n=l(s);n&&i(n.type)&&(e.preventDefault(),a.current?r(n):d(n))}),[o,l,i,d]),m=(0,s.useCallback)((t=>{const s=o(window.location.href);if(!s)return;const a=l(s);a&&(i(a.type)?(p(a.slug),c(a),e(a.type)):window.location.reload())}),[o,l,i,p,c,e]);(0,s.useEffect)((()=>{const e=document.querySelectorAll('#adminmenu a[href*="page=seopress-"]');return e.forEach((e=>{e.addEventListener("click",u)})),window.addEventListener("popstate",m),()=>{e.forEach((e=>{e.removeEventListener("click",u)})),window.removeEventListener("popstate",m)}}),[u,m]),(0,s.useEffect)((()=>{const e=o(window.location.href),t=e?l(e):null;t&&window.history.replaceState({seopressPage:t.type},"",window.location.href)}),[]);const _=(0,s.useCallback)((()=>{n&&(d(n),r(null))}),[n,d]),E=(0,s.useCallback)((()=>{r(null)}),[]);return{pendingNavigation:n,confirmNavigation:_,cancelNavigation:E}})(h,p);if((0,s.useEffect)((()=>{let e=null,t=null;const s=()=>{null!==e&&(window.clearInterval(e),e=null),null!==t&&(window.clearTimeout(t),t=null)},a=()=>{let a;try{a=sessionStorage.getItem(i)}catch(e){return}if(!a)return;try{sessionStorage.removeItem(i)}catch(e){}s();let n=0;const r=()=>{const s=document.getElementById(`seopress-field-${a}`);return s?(null!==e&&(window.clearInterval(e),e=null),(e=>{e.scrollIntoView({behavior:"smooth",block:"center"}),e.classList.remove(c),e.offsetWidth,e.classList.add(c),t=window.setTimeout((()=>{e.classList.remove(c)}),3e3)})(s),!0):(n+=1,n>=40&&null!==e&&(window.clearInterval(e),e=null),!1)};r()||(e=window.setInterval(r,100))};return a(),window.addEventListener("popstate",a),window.addEventListener("hashchange",a),()=>{window.removeEventListener("popstate",a),window.removeEventListener("hashchange",a),s()}}),[]),n)return a().createElement("div",{className:"seopress-settings-error"},a().createElement("p",null,(0,o.__)("Error loading settings. Please refresh the page.","wp-seopress")));if(e)return a().createElement("div",{className:"seopress-settings-loading"},a().createElement(t.Spinner,null));const b=(SEOPRESS_SETTINGS_DATA.ALL_PAGES||[]).find((e=>e.type===_)),w=document.querySelector(".seopress-php-header"),S="dashboard"!==_;return a().createElement(a().Fragment,null,S&&w&&b&&(0,r.createPortal)(a().createElement(d,{label:b.label,featureKey:b.feature}),w),"dashboard"!==_&&a().createElement(u.Z,null),a().createElement(s.Suspense,{fallback:a().createElement("div",{className:"seopress-settings-loading"},a().createElement(t.Spinner,null))},(()=>{switch(_){case"dashboard":return a().createElement(z,null);case"titles":return a().createElement(G,null);case"sitemaps":return a().createElement(M,null);case"social":return a().createElement(B,null);case"analytics":return a().createElement(F,null);case"instant-indexing":return a().createElement($,null);case"advanced":return a().createElement(q,null);case"tools":return a().createElement(j,null);default:{const e=window.seopressExtensions?.getField(`page-${_}`);return e?a().createElement(e,null):a().createElement(G,null)}}})()),g&&a().createElement(t.Modal,{title:(0,o.__)("Unsaved changes","wp-seopress"),onRequestClose:f,className:"seopress-confirm-modal"},a().createElement("p",null,(0,o.sprintf)((0,o._n)("You have %d unsaved change. Are you sure you want to leave?","You have %d unsaved changes. Are you sure you want to leave?",m,"wp-seopress"),m)),a().createElement("div",{className:"seopress-confirm-modal-actions"},a().createElement(t.Button,{variant:"secondary",onClick:f},(0,o.__)("Cancel","wp-seopress")),a().createElement(t.Button,{variant:"primary",onClick:v,className:"seopress-confirm-modal-primary"},(0,o.__)("Leave","wp-seopress")))))};n(9643),n(4196),"undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.ASSETS_URL&&(n.p=SEOPRESS_SETTINGS_DATA.ASSETS_URL+"/"),window.seopressComponents={SettingsLayout:m.Z,TextField:_.nv,TextareaField:_.XL,ToggleField:_.gE,SelectField:_.mg,DynamicTagField:_.lS,MediaUploadField:_.FH,ColorPickerField:_.F8,FieldRow:_.Ev,CardPicker:_.We,FeatureToggle:p.Z,useSettings:l.rV,SeopressNotice:({status:e="info",children:s,className:a=""})=>React.createElement(t.Notice,{status:e,isDismissible:!1,className:`seopress-wp-notice ${a}`.trim()},s)},document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById("seopress-admin-settings-root");if(!t)return;const s=document.querySelector(".seopress-php-header");s&&(s.innerHTML=""),(0,e.createRoot)(t).render(React.createElement(l.nf,{pageType:SEOPRESS_SETTINGS_DATA.PAGE_TYPE},React.createElement(U,null)))}))})()})();
Exec
https://plant-my-tree.de/post-sitemap1.xml
2026-11-20T10:18:25+01:00
https://plant-my-tree.de/page-sitemap1.xml
2026-12-03T12:53:57+01:00
https://plant-my-tree.de/lp-sitemap1.xml
2026-12-02T08:42:41+01:00
https://plant-my-tree.de/ratgeber-sitemap1.xml
2026-11-24T10:16:19+01:00
https://plant-my-tree.de/aufforstungsflachen-sitemap1.xml
2026-11-23T12:04:20+01:00
https://plant-my-tree.de/blog-sitemap1.xml
2026-11-24T09:10:09+01:00
https://plant-my-tree.de/category-sitemap1.xml
https://plant-my-tree.de/post_tag-sitemap1.xml