HEX
Server: LiteSpeed
System: Linux cde4.duelhost.dk 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: dmhkjfau (1027)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/dmhkjfau/public_html/wp-content/plugins/wp-seopress/public/admin/wizard/index.js
(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.element,s=window.wp.i18n,a=()=>[{key:"welcome",title:(0,s.__)("Welcome","wp-seopress"),subSteps:[{key:"welcome",parent:"welcome",label:(0,s.__)("Get started","wp-seopress")},{key:"import_settings",parent:"welcome",label:(0,s.__)("Import metadata","wp-seopress")}]},{key:"site",title:(0,s.__)("Your site","wp-seopress"),subSteps:[{key:"site",parent:"site",label:(0,s.__)("General","wp-seopress")},{key:"social_accounts",parent:"site",label:(0,s.__)("Social accounts","wp-seopress")}]},{key:"indexing_post_types",title:(0,s.__)("Indexing","wp-seopress"),subSteps:[{key:"indexing_post_types",parent:"indexing_post_types",label:(0,s.__)("Post Types","wp-seopress")},{key:"indexing_archives",parent:"indexing_post_types",label:(0,s.__)("Archives","wp-seopress")},{key:"indexing_taxonomies",parent:"indexing_post_types",label:(0,s.__)("Taxonomies","wp-seopress")}]},{key:"advanced",title:(0,s.__)("Advanced options","wp-seopress"),subSteps:[{key:"advanced",parent:"advanced",label:(0,s.__)("Advanced","wp-seopress")},{key:"metabox",parent:"advanced",label:(0,s.__)("SEO Metabox","wp-seopress")}]},{key:"ready",title:(0,s.__)("Ready!","wp-seopress"),subSteps:[]}],r=(e,t)=>{const s=(window.SEOPRESS_WIZARD_DATA||{}).ADMIN_URL||"",a=new URLSearchParams;return a.set("page","seopress-setup"),a.set("step",e),t&&a.set("parent",t),`${s}admin.php?${a.toString()}`},n=e=>{const t=[];return e.forEach((e=>{e.subSteps&&e.subSteps.length>0?e.subSteps.forEach((e=>t.push({key:e.key,parent:e.parent,label:e.label}))):t.push({key:e.key,parent:e.key,label:e.title})})),t},o=({steps:e,activeTopIndex:t,activeSubKey:s})=>React.createElement("ol",{className:"seopress-wizard-stepper"},e.map(((e,a)=>{const n=a===t,o=["seopress-wizard-stepper__item",n?"is-active":"",a<t?"is-completed":""].filter(Boolean).join(" ");return React.createElement("li",{key:e.key,className:o},React.createElement("div",{className:"seopress-wizard-stepper__row"},React.createElement("span",{className:"seopress-wizard-stepper__number","aria-hidden":"true"},a+1),React.createElement("span",{className:"seopress-wizard-stepper__label"},e.title)),n&&e.subSteps.length>0&&React.createElement("ul",{className:"seopress-wizard-stepper__substeps"},e.subSteps.map((e=>{const t=e.key===s;return React.createElement("li",{key:e.key,className:"seopress-wizard-stepper__substep "+(t?"is-active":"")},React.createElement("a",{href:r(e.key,e.parent),className:"seopress-wizard-stepper__substep-link"},e.label))}))))}))),l=({steps:e,activeTopIndex:t,activeSubKey:a,title:r,children:n,sideContent:l})=>React.createElement("div",{className:"seopress-wizard"+(l?" seopress-wizard--with-side":"")},React.createElement("a",{className:"screen-reader-text seopress-wizard__skip-link",href:"#wizard-main"},(0,s.__)("Skip to wizard content","wp-seopress")),React.createElement("div",{className:"seopress-wizard__container"},React.createElement("aside",{className:"seopress-wizard__sidebar"},React.createElement("p",{className:"seopress-wizard__title",role:"doc-subtitle"},r),React.createElement(o,{steps:e,activeTopIndex:t,activeSubKey:a})),React.createElement("main",{id:"wizard-main",className:"seopress-wizard__main",tabIndex:"-1"},n),l&&React.createElement("aside",{className:"seopress-wizard__side"},l))),c=window.wp.components,i=({size:e="1em"})=>React.createElement("svg",{className:"seopress-wizard-logo",width:e,height:e,viewBox:"0 0 27 27",fill:"currentColor","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M14.5767 19.6353L9.16956 25.0424C9.03016 25.2003 8.95619 25.4054 8.96274 25.6159C8.96928 25.8265 9.05584 26.0266 9.20478 26.1755C9.35372 26.3245 9.55384 26.411 9.76437 26.4176C9.9749 26.4241 10.18 26.3501 10.3379 26.2107L15.745 20.8036C15.8844 20.6457 15.9584 20.4406 15.9518 20.2301C15.9453 20.0196 15.8587 19.8194 15.7098 19.6705C15.5609 19.5216 15.3607 19.435 15.1502 19.4285C14.9397 19.4219 14.7346 19.4959 14.5767 19.6353Z"}),React.createElement("path",{d:"M1.71731 17.5901L7.12441 12.183C7.26382 12.0251 7.33778 11.82 7.33124 11.6095C7.32469 11.399 7.23813 11.1988 7.08919 11.0499C6.94025 10.901 6.74014 10.8144 6.5296 10.8079C6.31907 10.8013 6.11397 10.8753 5.95606 11.0147L0.548955 16.4218C0.409553 16.5797 0.33559 16.7848 0.342134 16.9953C0.348678 17.2059 0.435236 17.406 0.584176 17.5549C0.733116 17.7039 0.933233 17.7904 1.14376 17.797C1.3543 17.8035 1.5594 17.7295 1.71731 17.5901Z"}),React.createElement("path",{d:"M12.0766 4.90443C10.8805 6.10172 10.1643 7.69558 10.0632 9.38493C9.9622 11.0743 10.4833 12.7421 11.5282 14.0735L4.87588 20.7258C4.73647 20.8837 4.66251 21.0888 4.66906 21.2993C4.6756 21.5098 4.76216 21.7099 4.9111 21.8589C5.06004 22.0078 5.26016 22.0944 5.47069 22.1009C5.68122 22.1075 5.88633 22.0335 6.04423 21.8941L12.6965 15.2418C13.7457 16.0666 15.011 16.5706 16.3399 16.6931C17.6689 16.8157 19.0049 16.5516 20.1873 15.9327C21.3697 15.3137 22.348 14.3663 23.0045 13.2044C23.6611 12.0424 23.9679 10.7155 23.888 9.38335C23.8081 8.05116 23.3449 6.77044 22.5542 5.69531C21.7635 4.62017 20.679 3.79644 19.4311 3.32324C18.1832 2.85004 16.8252 2.74754 15.5204 3.02806C14.2156 3.30858 13.0197 3.96017 12.0766 4.90443ZM20.6686 13.4964C19.9377 14.2273 19.0065 14.7251 17.9927 14.9268C16.9789 15.1285 15.9281 15.025 14.9731 14.6295C14.0181 14.234 13.2019 13.5642 12.6276 12.7048C12.0532 11.8454 11.7466 10.835 11.7465 9.80134C11.7464 8.7677 12.0528 7.75723 12.627 6.89772C13.2011 6.0382 14.0172 5.36824 14.9721 4.97253C15.927 4.57683 16.9778 4.47316 17.9917 4.67463C19.0055 4.8761 19.9368 5.37367 20.6678 6.10442C21.1533 6.5897 21.5384 7.16586 21.8012 7.8C22.064 8.43414 22.1993 9.11384 22.1994 9.80027C22.1994 10.4867 22.0643 11.1664 21.8016 11.8006C21.539 12.4348 21.154 13.0111 20.6686 13.4964Z"})),p=()=>React.createElement("svg",{className:"seopress-wizard-quote__icon",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none","aria-hidden":"true"},React.createElement("path",{d:"M0 12C0 7 2.3 3 7 0v3.6C4.7 5 3.4 7.2 3.4 9.6H7V20H0V12Zm14 0c0-5 2.3-9 7-12v3.6c-2.3 1.4-3.6 3.6-3.6 6H21V20h-7v-8Z",fill:"currentColor"})),m=()=>React.createElement("span",{className:"seopress-wizard-arrow","aria-hidden":"true"},"→"),d=()=>React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M12 3v12m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),_=()=>React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M12 2.5 14.9 9 22 9.7l-5.4 4.8L18.2 22 12 18.3 5.8 22l1.6-7.5L2 9.7 9.1 9 12 2.5Z"})),u=()=>React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M12 21s-7.5-4.6-9.5-9.3C1.2 8.6 3.1 5 6.5 5c2 0 3.6 1 4.5 2.6.9-1.6 2.5-2.6 4.5-2.6 3.4 0 5.3 3.6 4 6.7C19.5 16.4 12 21 12 21Z"})),w=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},t=e.DOCS_LINKS?.pro||e.PRO_URL||"https://www.seopress.org/seopress-pro/",a=e.DISMISS_URL||"#",n=!!e.PRO,o=[{value:"+350,000",label:(0,s.__)("active installs","wp-seopress"),icon:React.createElement(d,null)},{value:"+1,200",label:(0,s.__)("5-star reviews","wp-seopress"),icon:React.createElement(_,null)},{value:"+23,000",label:(0,s.__)("happy premium customers","wp-seopress"),icon:React.createElement(u,null)}];return React.createElement("div",{className:"seopress-wizard-welcome"},React.createElement("header",{className:"seopress-wizard-welcome__header"},React.createElement("h1",{className:"seopress-wizard-welcome__heading"},(0,s.__)("Welcome to SEOPress","wp-seopress")),React.createElement("p",{className:"seopress-wizard-welcome__subheading"},(0,s.__)("This wizard takes about 3 minutes. By the end, your site will be fully optimized for search engines.","wp-seopress"))),React.createElement("div",{className:"seopress-wizard-welcome__cards"},React.createElement("article",{className:"seopress-wizard-card seopress-wizard-quote"},React.createElement("div",{className:"seopress-wizard-quote__mark"},React.createElement(p,null)),React.createElement("p",{className:"seopress-wizard-quote__text"},(0,s.__)("What's great about SEOPress is that not only does it cater to beginners, but it offers content analysis with unlimited keywords, even for users on the free plan, making it affordable and inclusive.","wp-seopress")),React.createElement("p",{className:"seopress-wizard-quote__author"},(0,s.__)("— Neil Patel","wp-seopress")),React.createElement("p",{className:"seopress-wizard-quote__role"},(0,s.__)("Digital marketing expert","wp-seopress"))),React.createElement("article",{className:"seopress-wizard-card seopress-wizard-stats"},o.map(((e,t)=>React.createElement("div",{key:t,className:"seopress-wizard-stats__row"},React.createElement("div",{className:"seopress-wizard-stats__value"},React.createElement("span",{className:"seopress-wizard-stats__icon","aria-hidden":"true"},e.icon),React.createElement("span",{className:"seopress-wizard-stats__number"},e.value)),React.createElement("p",{className:"seopress-wizard-stats__label"},e.label)))))),!n&&React.createElement("aside",{className:"seopress-wizard-card seopress-wizard-promo"},React.createElement("div",{className:"seopress-wizard-promo__text"},React.createElement("h2",{className:"seopress-wizard-promo__heading"},React.createElement("span",{className:"seopress-wizard-promo__icon"},React.createElement(i,{size:"1em"})),(0,s.__)("Unlock more with SEOPress Pro","wp-seopress")),React.createElement("p",{className:"seopress-wizard-promo__body"},(0,s.__)("WooCommerce SEO, Local SEO, Video SEO, and advanced redirections. Used by 30,000+ Pro users.","wp-seopress"))),React.createElement(c.Button,{variant:"secondary",href:t,target:"_blank",rel:"noopener noreferrer",className:"seopress-wizard-promo__cta"},(0,s.__)("See Pro features","wp-seopress"))),React.createElement("footer",{className:"seopress-wizard-welcome__footer"},React.createElement("a",{href:a,className:"seopress-wizard__dismiss"},(0,s.__)("Skip for now","wp-seopress")),React.createElement(c.Button,{variant:"primary",href:r("import_settings","welcome"),className:"seopress-wizard-welcome__start"},(0,s.__)("Start setup","wp-seopress"),React.createElement("span",{className:"seopress-wizard-welcome__start-icon"},React.createElement(m,null)))))},h=(e,t,s)=>{const a=new FormData;return a.append("action",e),a.append("_ajax_nonce",t),a.append("offset",String(s)),a},E=({plugin:e,selected:t,disabled:s,onSelect:a})=>{const r=["seopress-import-card",t?"is-selected":"",s?"is-disabled":""].filter(Boolean).join(" ");return React.createElement("button",{type:"button",className:r,onClick:()=>!s&&a(e),disabled:s,"aria-pressed":t},React.createElement("img",{src:e.img,alt:"",className:"seopress-import-card__logo"}),React.createElement("span",{className:"seopress-import-card__name"},e.name))},R=()=>React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true"},React.createElement("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),React.createElement("path",{d:"m6 10 3 3 5-6",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})),g=()=>React.createElement("svg",{className:"seopress-task-spinner",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true"},React.createElement("circle",{cx:"10",cy:"10",r:"8.5",stroke:"currentColor",strokeOpacity:"0.2",strokeWidth:"1.5"}),React.createElement("path",{d:"M18.5 10A8.5 8.5 0 0 0 10 1.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})),f=()=>React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true"},React.createElement("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.4"})),v=({label:e,state:t})=>{let a=React.createElement(f,null),r="",n="seopress-task";return"done"===t?(a=React.createElement(R,null),r=(0,s.__)("Done","wp-seopress"),n+=" is-done"):"in_progress"===t&&(a=React.createElement(g,null),r=(0,s.__)("In progress…","wp-seopress"),n+=" is-in-progress"),React.createElement("li",{className:n},React.createElement("span",{className:"seopress-task__icon"},a),React.createElement("span",{className:"seopress-task__label"},e),r&&React.createElement("span",{className:"seopress-task__status"},r))},y=()=>React.createElement("svg",{className:"seopress-wizard-form__back-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M14 6l-6 6 6 6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})),b=({currentStep:e,className:t="seopress-wizard-form__back"})=>{const o=a(),l=((e,t)=>{const s=n(e),a=s.findIndex((e=>e.key===t));if(a<=0)return null;const o=s[a-1];return r(o.key,o.parent)})(o,e);if(!l)return null;const c=((e,t)=>{const s=n(e),a=s.findIndex((e=>e.key===t));return a<=0?null:s[a-1].label||null})(o,e),i=c?(0,s.sprintf)(/* translators: %s: previous wizard step label. */ /* translators: %s: previous wizard step label. */
(0,s.__)("Back to previous step: %s","wp-seopress"),c):(0,s.__)("Back to previous step","wp-seopress");return React.createElement("a",{href:l,className:t,"aria-label":i},React.createElement(y,null),React.createElement("span",{className:"seopress-wizard-form__back-text"},(0,s.__)("Back","wp-seopress")))},k=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},a=e.IMPORT||{},n=a.PLUGINS||[],o=a.ACTIVE_PLUGINS||[],l=e.NEXT_STEP_URL||r("site","site"),i=n.find((e=>e.active))||null,[p,m]=(0,t.useState)(i),d=(0,t.useRef)(null),_=(0,t.useRef)(i);(0,t.useEffect)((()=>{p&&_.current!==p&&d.current&&d.current.focus(),_.current=p}),[p]);const{status:u,count:w,total:R,error:g,run:f}=(()=>{const[e,s]=(0,t.useState)("idle"),[a,r]=(0,t.useState)(0),[n,o]=(0,t.useState)(0),[l,c]=(0,t.useState)(null),i=(0,t.useRef)(!1);return{status:e,count:a,total:n,error:l,run:(0,t.useCallback)((async e=>{const t=(window.SEOPRESS_WIZARD_DATA||{}).AJAX_URL;if(!t||!e?.action||!e?.nonce)return c(new Error("Missing migration endpoint or nonce.")),void s("error");i.current=!1,c(null),s("running"),r(0),o(0);let a=0;try{for(;;){if(i.current)return;const n=await fetch(t,{method:"POST",credentials:"same-origin",body:h(e.action,e.nonce,a)});if(!n.ok)throw new Error(`HTTP ${n.status}`);const l=await n.json();if(!l||!1===l.success)throw new Error("Migration endpoint returned an error.");const c=l.data||{};if("number"==typeof c.total&&o(c.total),"number"==typeof c.count&&r(c.count),"done"===c.offset)return void s("done");const p=parseInt(c.offset,10);if(!Number.isFinite(p)||p<=a)return void s("done");a=p}}catch(e){c(e),s("error")}}),[]),abort:(0,t.useCallback)((()=>{i.current=!0}),[]),reset:(0,t.useCallback)((()=>{i.current=!0,s("idle"),r(0),o(0),c(null)}),[])}})(),y=((e,t)=>t?Math.min(100,Math.round(e/t*100)):0)(w,R),k=(0,t.useMemo)((()=>p?(e=>{const t=[];return["yoast","rk","aio"].includes(e)&&t.push((0,s.__)("Global settings","wp-seopress")),t.push((0,s.__)("Title tags","wp-seopress")),t.push((0,s.__)("Meta description","wp-seopress")),t.push((0,s.__)("Facebook Open Graph tags (title, description and image thumbnail)","wp-seopress")),"premium-seo-pack"!==e&&t.push((0,s.__)("X tags (title, description and image thumbnail)","wp-seopress")),["wp-meta-seo","seo-ultimate"].includes(e)||t.push((0,s.__)("Meta Robots (noindex, nofollow…)","wp-seopress")),["wp-meta-seo","seo-ultimate","slim-seo"].includes(e)||t.push((0,s.__)("Canonical URL","wp-seopress")),["wp-meta-seo","seo-ultimate","squirrly","slim-seo"].includes(e)||t.push((0,s.__)("Focus / target keywords","wp-seopress")),["wp-meta-seo","premium-seo-pack","seo-ultimate","squirrly","aio","slim-seo"].includes(e)||t.push((0,s.__)("Primary category","wp-seopress")),["smart-crawl","rk","seo-framework","aio"].includes(e)&&t.push((0,s.__)("Redirect URL","wp-seopress")),"yoast"===e&&t.push((0,s.__)("Breadcrumb Title","wp-seopress")),t})(p.key):[]),[p]),N=((e,t,s)=>{const a=e.map((()=>"pending"));if("done"===s)return a.map((()=>"done"));if("running"!==s||0===e.length)return a;const r=Math.min(e.length-1,Math.floor(t/100*e.length));for(let e=0;e<r;e+=1)a[e]="done";return a[r]="in_progress",a})(k,y,u),S=N.filter((e=>"done"===e)).length,z="running"===u,x="done"===u,C=e=>{z||m(e)},A=(0,s.sprintf)(
// translators: %s: SEOPress (or white-label) name.
// translators: %s: SEOPress (or white-label) name.
(0,s.__)("Migrate your SEO metadata to %s","wp-seopress"),"SEOPress");return React.createElement("div",{className:"seopress-wizard-import"},React.createElement("header",{className:"seopress-wizard-import__header"},React.createElement("h1",{className:"seopress-wizard-import__heading"},A),React.createElement("p",{className:"seopress-wizard-import__subheading"},(0,s.__)("Select your previous SEO plugin to import its metadata into SEOPress.","wp-seopress"))),o.length>0&&React.createElement("div",{className:"seopress-wizard-notice seopress-wizard-notice--warning"},React.createElement("p",null,(0,s.__)("One or more SEO plugins are enabled on your site. Deactivate them after the import to avoid conflicts:","wp-seopress")),React.createElement("ul",null,o.map((e=>React.createElement("li",{key:e},e))))),React.createElement("div",{className:"seopress-wizard-import__grid",role:"group","aria-label":(0,s.__)("Choose the SEO plugin you want to migrate from","wp-seopress")},n.map((e=>React.createElement(E,{key:e.key,plugin:e,selected:p?.key===e.key,disabled:z,onSelect:C})))),p&&React.createElement("section",{className:"seopress-wizard-import__details","aria-live":"polite"},React.createElement("div",{className:"seopress-wizard-import__details-header"},React.createElement("h2",{className:"seopress-wizard-import__details-title",tabIndex:"-1",ref:d},(0,s.sprintf)(
// translators: %s: previous SEO plugin name (e.g. Yoast SEO).
// translators: %s: previous SEO plugin name (e.g. Yoast SEO).
(0,s.__)("Import posts and terms (if available) metadata from %s","wp-seopress"),p.name)),z&&React.createElement("p",{className:"seopress-wizard-import__details-meta"},React.createElement("span",{className:"seopress-wizard-import__caution"},(0,s.__)("Do not close this page","wp-seopress")))),!z&&!x&&k.length>0&&React.createElement("div",{className:"seopress-wizard-import__preview"},React.createElement("p",{className:"seopress-wizard-import__preview-intro"},(0,s.__)("By clicking Migrate, we’ll import:","wp-seopress")),React.createElement("ul",{className:"seopress-wizard-import__preview-list"},k.map((e=>React.createElement("li",{key:e},e))))),!z&&!x&&React.createElement("div",{className:"seopress-wizard-notice seopress-wizard-notice--warning"},React.createElement("p",null,(0,s.sprintf)(
// translators: %s: previous SEO plugin name.
// translators: %s: previous SEO plugin name.
(0,s.__)("Existing SEOPress metadata and global settings (if applicable) will be deleted/updated during the import. Some dynamic variables will not be interpreted.","wp-seopress"),p.name)),React.createElement("p",null,React.createElement("strong",null,(0,s.sprintf)(
// translators: %s: previous SEO plugin name.
// translators: %s: previous SEO plugin name.
(0,s.__)("Your %s data will not be deleted.","wp-seopress"),p.name)))),(z||x)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"seopress-wizard-progress"},React.createElement("div",{className:"seopress-wizard-progress__bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":x?100:y},React.createElement("span",{className:"seopress-wizard-progress__fill",style:{width:`${x?100:y}%`}})),React.createElement("div",{className:"seopress-wizard-progress__meta"},React.createElement("span",{className:"seopress-wizard-progress__label"},(0,s.__)("Progress","wp-seopress")),React.createElement("span",{className:"seopress-wizard-progress__counter"},`${x?k.length:S}/${k.length} (${x?100:y}%)`))),React.createElement("ul",{className:"seopress-wizard-tasks"},k.map(((e,t)=>React.createElement(v,{key:e,label:e,state:N[t]}))))),x&&React.createElement("div",{className:"seopress-wizard-notice seopress-wizard-notice--success"},React.createElement("p",null,(0,s.__)("Migration completed!","wp-seopress"))),g&&React.createElement("div",{className:"seopress-wizard-notice seopress-wizard-notice--error",role:"alert"},React.createElement("p",null,(0,s.__)("Something went wrong during the import. Please try again.","wp-seopress")))),React.createElement("footer",{className:"seopress-wizard-welcome__footer"},React.createElement("div",{className:"seopress-wizard-welcome__footer-left"},React.createElement(b,{currentStep:"import_settings"})),React.createElement("div",{className:"seopress-wizard-welcome__footer-right"},!x&&!z&&React.createElement(c.Button,{variant:"secondary",href:l,className:"seopress-wizard-welcome__skip"},(0,s.__)("Skip import for now","wp-seopress")),x?React.createElement(c.Button,{variant:"primary",href:l,className:"seopress-wizard-welcome__start"},(0,s.__)("Save and continue","wp-seopress"),React.createElement("span",{className:"seopress-wizard-welcome__start-icon"},React.createElement("span",{className:"seopress-wizard-arrow","aria-hidden":"true"},"→"))):React.createElement(c.Button,{variant:"primary",onClick:()=>{p&&!z&&f(p)},disabled:!p||z,isBusy:z,className:"seopress-wizard-welcome__start"},z?(0,s.__)("Migrating…","wp-seopress"):(0,s.__)("Migrate now","wp-seopress"),!z&&React.createElement("span",{className:"seopress-wizard-welcome__start-icon"},React.createElement("span",{className:"seopress-wizard-arrow","aria-hidden":"true"},"→"))))))},N=({id:e,label:t,help:s,children:a,className:r=""})=>React.createElement("div",{className:`seopress-wizard-field ${r}`},t&&React.createElement("label",{htmlFor:e,className:"seopress-wizard-field__label"},t),a,s&&React.createElement("p",{className:"seopress-wizard-field__help"},s)),S=({label:e,value:s,onChange:a,help:r,placeholder:n,name:o,id:l})=>{const i=(0,t.useId)(),p=l||`sp-wizard-field-${i}`;return React.createElement(c.BaseControl,{id:p,label:e,help:r,className:"seopress-wizard-field seopress-wizard-field--native",__nextHasNoMarginBottom:!0},React.createElement(c.TextControl,{id:p,value:s??"",onChange:a,placeholder:n,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),React.createElement("input",{type:"hidden",name:o,value:s??""}))},z=({label:e,value:s,onChange:a,help:r,options:n,name:o,id:l})=>{const i=(0,t.useId)(),p=l||`sp-wizard-field-${i}`;return React.createElement(c.BaseControl,{id:p,label:e,help:r,className:"seopress-wizard-field seopress-wizard-field--native",__nextHasNoMarginBottom:!0},React.createElement(c.SelectControl,{id:p,value:s??"",onChange:a,options:n,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),React.createElement("input",{type:"hidden",name:o,value:s??""}))},x=({label:e,value:s,onChange:a,help:r,placeholder:n,name:o,rows:l=4,id:i})=>{const p=(0,t.useId)(),m=i||`sp-wizard-field-${p}`;return React.createElement(c.BaseControl,{id:m,label:e,help:r,className:"seopress-wizard-field seopress-wizard-field--native",__nextHasNoMarginBottom:!0},React.createElement(c.TextareaControl,{id:m,value:s??"",onChange:a,placeholder:n,rows:l,__nextHasNoMarginBottom:!0}),React.createElement("input",{type:"hidden",name:o,value:s??""}))},C=({label:e,checked:s,onChange:a,name:r,id:n,hint:o})=>{const l=(0,t.useId)(),i=n||`sp-wizard-checkbox-${l}`;return React.createElement("div",{className:"seopress-wizard-checkbox"},React.createElement(c.CheckboxControl,{id:i,label:e,help:o,checked:!!s,onChange:a,__nextHasNoMarginBottom:!0}),React.createElement("input",{type:"hidden",name:r,value:s?"1":""}))},A=({label:e,value:s,onChange:a,help:r,placeholder:n,name:o,icon:l,id:i})=>{const p=(0,t.useId)(),m=i||`sp-wizard-field-${p}`;return React.createElement(c.BaseControl,{id:m,label:e,help:r,className:"seopress-wizard-field seopress-wizard-field--native seopress-wizard-field--with-icon",__nextHasNoMarginBottom:!0},React.createElement("div",{className:"seopress-wizard-field__icon-wrap"},React.createElement("span",{className:"seopress-wizard-field__icon","aria-hidden":"true"},l),React.createElement(c.TextControl,{id:m,value:s??"",onChange:a,placeholder:n,className:"seopress-wizard-field__input--icon",__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),React.createElement("input",{type:"hidden",name:o,value:s??""}))},O=window.React;var T=e.n(O);const I=[{key:"%%sitetitle%%",label:(0,s.__)("Site title","wp-seopress")},{key:"%%sep%%",label:(0,s.__)("Separator","wp-seopress")},{key:"%%tagline%%",label:(0,s.__)("Tagline","wp-seopress")}];function L(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function M(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:"BR"===s.tagName?t+="\n":"DIV"===s.tagName||"P"===s.tagName?(t.length>0&&!t.endsWith("\n")&&(t+="\n"),t+=M(s)):t+=M(s));return t}function D(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&&D(t))return!0}return!1}function P(e){return L(e).replace(/^ /,"&#160;").replace(/ $/,"&#160;").replace(/\n/g,"<br>")}const B=(0,O.forwardRef)((({value:e,onChange:t,variableLabels:a,multiline:r,placeholder:n},o)=>{const l=(0,O.useRef)(null),c=(0,O.useRef)(e||""),i=(0,O.useRef)(!1),p=(0,O.useRef)(null),m=(0,O.useCallback)((e=>{const t=l.current;t&&(t.innerHTML=function(e,t){if(!e)return"";const a=[],r=/%%([a-zA-Z0-9_]+)%%/g;let n,o=0;for(;null!==(n=r.exec(e));){n.index>o&&a.push(P(e.substring(o,n.index)));const r=n[0],l=L(t[r]||n[1]),c=L(r);a.push(`<span class="seopress-token" contenteditable="false" draggable="true" data-var="${c}" title="${c}"><span class="seopress-token-label">${l}</span><button type="button" class="seopress-token-remove" tabindex="-1" aria-label="${(0,s.__)("Remove","wp-seopress")}">×</button></span>`),o=n.index+n[0].length}return o<e.length&&a.push(P(e.substring(o))),a.join("")}(e,a),c.current=e||"")}),[a]);(0,O.useEffect)((()=>{m(e||"")}),[]),(0,O.useEffect)((()=>{const t=c.current;e===t||i.current||m(e||"")}),[e,m]);const d=(0,O.useCallback)((()=>{const e=l.current;if(!e)return;const s=M(e);c.current=s,t(s)}),[t]),_=(0,O.useCallback)((e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)}),[]),u=(0,O.useCallback)((e=>{r||"Enter"!==e.key||e.preventDefault()}),[r]),w=(0,O.useCallback)((e=>{e.target.classList.contains("seopress-token-remove")&&e.preventDefault()}),[]),h=(0,O.useCallback)((e=>{if(e.target.classList.contains("seopress-token-remove")){e.preventDefault(),e.stopPropagation();const t=e.target.closest(".seopress-token");t&&t.parentNode&&(t.parentNode.removeChild(t),d(),l.current?.focus())}}),[d]),E=(0,O.useCallback)((()=>{i.current=!0}),[]),R=(0,O.useCallback)((()=>{i.current=!1;const e=l.current;if(!e)return;const s=M(e).trim();(D(e)||!s&&e.innerHTML)&&m(s),s!==c.current&&(c.current=s,t(s))}),[m,t]),g=(0,O.useCallback)((()=>{const e=l.current;e&&(p.current&&(p.current.classList.remove("seopress-token--dragging"),p.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")})))}),[]),f=(0,O.useCallback)((e=>{const t=e.target.closest(".seopress-token");t&&(p.current=t,t.classList.add("seopress-token--dragging"),e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",t.dataset.var))}),[]),v=(0,O.useCallback)((e=>{if(!p.current)return;e.preventDefault(),e.dataTransfer.dropEffect="move";const t=l.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=t.querySelectorAll(".seopress-token:not(.seopress-token--dragging)");let a=null,r=!0,n=1/0;s.forEach((t=>{const s=t.getBoundingClientRect(),o=s.left+s.width/2,l=Math.abs(e.clientX-o);l<n&&(n=l,a=t,r=e.clientX<o)})),a&&a.classList.add(r?"seopress-token--drop-before":"seopress-token--drop-after")}),[]),y=(0,O.useCallback)((e=>{e.preventDefault();const t=l.current,s=p.current;if(!t||!s)return;const a=t.querySelector(".seopress-token--drop-before"),r=t.querySelector(".seopress-token--drop-after");a?t.insertBefore(s,a):r&&r.nextSibling?t.insertBefore(s,r.nextSibling):t.appendChild(s),g(),d()}),[g,d]),b=(0,O.useCallback)((()=>{g()}),[g]),k=(0,O.useCallback)((e=>{const t=l.current;if(!t)return;M(t).trim()||(t.innerHTML="");const r=a[e]||e.replace(/%%/g,""),n=document.createElement("span");n.className="seopress-token",n.contentEditable="false",n.draggable=!0,n.dataset.var=e,n.title=e;const o=document.createElement("span");o.className="seopress-token-label",o.textContent=r,n.appendChild(o);const c=document.createElement("button");c.type="button",c.className="seopress-token-remove",c.tabIndex=-1,c.setAttribute("aria-label",(0,s.__)("Remove","wp-seopress")),c.textContent="×",n.appendChild(c),t.appendChild(n);const i=document.createTextNode(" ");t.appendChild(i),t.focus();const p=window.getSelection(),m=document.createRange();m.setStartAfter(i),m.collapse(!0),p.removeAllRanges(),p.addRange(m),d()}),[a,d]),N=(0,O.useCallback)((()=>{const e=l.current;e&&(e.innerHTML="",c.current="",t(""))}),[t]);return(0,O.useImperativeHandle)(o,(()=>({insertVariable:k,clearAll:N,focus:()=>l.current?.focus()}))),T().createElement("div",{ref:l,className:"seopress-token-editor"+(r?" seopress-token-editor--multiline":""),contentEditable:!0,suppressContentEditableWarning:!0,onInput:d,onPaste:_,onKeyDown:u,onMouseDown:w,onClick:h,onFocus:E,onBlur:R,onDragStart:f,onDragOver:v,onDrop:y,onDragEnd:b,"data-placeholder":n||"",role:"textbox","aria-multiline":r||!1})}));B.displayName="TokenEditor";const W=({value:e,onChange:t,help:a,placeholder:r,multiline:n,className:o,quickVars:l})=>{const[i,p]=(0,O.useState)(!1),[m,d]=(0,O.useState)(""),[_,u]=(0,O.useState)(0),w=(0,O.useRef)(null),h=(0,O.useRef)(null),E=(0,O.useRef)(null),R=(0,O.useRef)(!1),g="undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.DYNAMIC_VARIABLES||{},f="undefined"!=typeof SEOPRESS_SETTINGS_DATA&&SEOPRESS_SETTINGS_DATA.PREVIEW_VALUES||{},v=l||I,y=(0,O.useMemo)((()=>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)),[e]),b=(0,O.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"-"}),[]),k=(0,O.useMemo)((()=>{const e=m.toLowerCase();return Object.entries(g).filter((([t,s])=>t.toLowerCase().includes(e)||s.toLowerCase().includes(e)))}),[g,m]);(0,O.useEffect)((()=>{u(0)}),[k.length]);const N=(0,O.useCallback)((e=>{w.current&&w.current.insertVariable(e),p(!1),d(""),u(0)}),[]),S=(0,O.useCallback)((()=>{w.current&&w.current.clearAll()}),[]),z=(0,O.useCallback)((e=>{"ArrowDown"===e.key?(e.preventDefault(),R.current=!0,u((e=>e<k.length-1?e+1:0))):"ArrowUp"===e.key?(e.preventDefault(),R.current=!0,u((e=>e>0?e-1:k.length-1))):"Enter"===e.key?(e.preventDefault(),k[_]&&N(k[_][0])):"Escape"===e.key&&(p(!1),d(""),u(0))}),[k,_,N]);(0,O.useEffect)((()=>{if(!i||!E.current)return;if(!R.current)return;R.current=!1;const e=E.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)}),[_,i]),(0,O.useEffect)((()=>{i&&h.current&&h.current.focus()}),[i]);const x=(0,O.useMemo)((()=>function(e,t,s,a){if(!e)return"";const r={...s};return a&&(r["%%sep%%"]=a),e.replace(/%%([a-zA-Z0-9_]+)%%/g,(e=>r[e]?r[e]:t[e]||e.replace(/%%/g,"")))}(e,g,f,b)),[e,g,f,b]),C=e&&e.trim().length>0;return T().createElement("div",{className:`seopress-field seopress-dynamic-tag-field ${o||""}`},T().createElement("div",{className:"seopress-token-editor-wrapper"},T().createElement(B,{ref:w,value:e,onChange:t,variableLabels:g,multiline:n,placeholder:r}),C&&T().createElement("button",{type:"button",className:"seopress-token-clear-btn",onClick:S,title:(0,s.__)("Clear all","wp-seopress"),"aria-label":(0,s.__)("Clear all","wp-seopress")},"×")),C&&x&&T().createElement("div",{className:"seopress-token-preview"},T().createElement("span",{className:"seopress-token-preview-label"},(0,s.__)("Preview:","wp-seopress"))," ",T().createElement("span",{className:"seopress-token-preview-text"},x)),T().createElement("div",{className:"seopress-variable-chips"},v.map((e=>{const t=y.has(e.key);return T().createElement(c.Button,{key:e.key,variant:"tertiary",size:"compact",icon:t?"yes":"plus-alt2",onClick:()=>N(e.key)},e.label)})),T().createElement("div",{className:"seopress-more-variables-wrapper"},T().createElement(c.Button,{variant:"tertiary",size:"compact",icon:"arrow-down-alt2",label:(0,s.__)("More variables","wp-seopress"),showTooltip:!0,onClick:()=>p(!i),"aria-expanded":i}),i&&T().createElement(c.Popover,{className:"seopress-variables-popover",position:"bottom left",onClose:()=>{p(!1),d(""),u(0)}},T().createElement("div",{className:"seopress-variables-list"},T().createElement(c.SearchControl,{ref:h,className:"seopress-variables-search",placeholder:(0,s.__)("Search variables...","wp-seopress"),value:m,onChange:d,onKeyDown:z,__nextHasNoMarginBottom:!0}),T().createElement("ul",{ref:E},k.map((([e,t],a)=>{const r=y.has(e),n=a===_;return T().createElement("li",{key:e,className:(n?"seopress-variable-item--highlighted":"")+(r?" seopress-variable-item--used":""),onClick:()=>N(e),onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),N(e))},onMouseEnter:()=>u(a),tabIndex:0,role:"button"},T().createElement("code",null,e),T().createElement("span",null,t,r&&T().createElement("span",{className:"seopress-variable-used-badge"},(0,s.__)("in use","wp-seopress"))))})),0===k.length&&T().createElement("li",{className:"seopress-no-results"},(0,s.__)("No variables found","wp-seopress"))))))),a&&T().createElement("p",{className:"components-base-control__help"},a))},U=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},a=e.INITIAL_VALUES?.site||{},r=e.FORM_ACTION||"",n=e.NONCE?.setup||"",o=e.DOCS_LINKS?.alt_title||"https://www.seopress.org/support/guides/",[l,i]=(0,t.useState)(a.site_title||""),[p,m]=(0,t.useState)(a.alt_site_title||""),[d,_]=(0,t.useState)(a.knowledge_type||"none"),u=(0,s.__)("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 %s.","wp-seopress"),[w,h]=u.split("%s");return React.createElement("form",{method:"post",action:r,className:"seopress-wizard-form"},React.createElement("header",{className:"seopress-wizard-form__header"},React.createElement("h1",{className:"seopress-wizard-form__heading"},(0,s.__)("Tell us more about your site","wp-seopress")),React.createElement("p",{className:"seopress-wizard-form__subheading"},(0,s.__)("Fill in the fields below to set up your general SEO settings, including title tags and your Google Knowledge Graph.","wp-seopress"))),React.createElement("div",{className:"seopress-wizard-form__fields"},React.createElement(N,{id:"sp-wizard-site-title",label:(0,s.__)("Site title","wp-seopress"),help:React.createElement(React.Fragment,null,(0,s.__)("Leave empty to use the default template. The site title will be used by the dynamic variable ","wp-seopress"),React.createElement("code",null,"%%sitetitle%%"),(0,s.__)(" in your title and meta description templates.","wp-seopress"))},React.createElement(W,{value:l,onChange:i,placeholder:a.site_title_placeholder||"%%sitetitle%% %%sep%% %%tagline%%"}),React.createElement("input",{type:"hidden",name:"site_title",value:l})),React.createElement(S,{label:(0,s.__)("Alternative site title","wp-seopress"),value:p,onChange:m,name:"alt_site_title",help:React.createElement(React.Fragment,null,w,React.createElement("a",{href:o,target:"_blank",rel:"noopener noreferrer"},(0,s.__)("content guidelines","wp-seopress")),h)}),React.createElement(z,{label:(0,s.__)("Person or organization","wp-seopress"),value:d,onChange:_,name:"knowledge_type",options:[{value:"none",label:(0,s.__)("None (will disable this feature)","wp-seopress")},{value:"Person",label:(0,s.__)("Person","wp-seopress")},{value:"Organization",label:(0,s.__)("Organization","wp-seopress")}],help:(0,s.__)('Choose between "Organization" (for companies, associations, organizations), or "Personal" for a personal site, to help Google better understand your type of website and generate a Knowledge Graph panel.',"wp-seopress")})),React.createElement("input",{type:"hidden",name:"knowledge_name",value:a.knowledge_name||""}),React.createElement("input",{type:"hidden",name:"knowledge_img",value:a.knowledge_img||""}),React.createElement("input",{type:"hidden",name:"knowledge_email",value:a.knowledge_email||""}),React.createElement("input",{type:"hidden",name:"knowledge_phone",value:a.knowledge_phone||""}),React.createElement("input",{type:"hidden",name:"knowledge_tax_id",value:a.knowledge_tax_id||""}),React.createElement("input",{type:"hidden",name:"_wpnonce",value:n}),React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:r}),React.createElement("footer",{className:"seopress-wizard-form__footer"},React.createElement(b,{currentStep:"site"}),React.createElement(c.Button,{type:"submit",variant:"primary",name:"save_step",value:"1",className:"seopress-wizard-form__submit"},(0,s.__)("Save and continue","wp-seopress"))))};function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},Z.apply(this,arguments)}const H={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},V=()=>React.createElement("svg",Z({viewBox:"0 0 24 24"},H),React.createElement("path",{d:"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.879v-6.987H7.898v-2.892h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.244 0-1.631.772-1.631 1.563V12h2.773l-.443 2.892h-2.33v6.987C18.343 21.128 22 16.991 22 12Z"})),F=()=>React.createElement("svg",Z({viewBox:"0 0 24 24"},H),React.createElement("path",{d:"M18.244 2H21l-6.51 7.44L22 22h-6.81l-5.34-6.98L3.7 22H1l7.07-8.08L1.5 2h6.97l4.84 6.4L18.244 2Zm-2.39 18h1.93L7.26 4H5.27l10.584 16Z"})),$=()=>React.createElement("svg",Z({viewBox:"0 0 24 24"},H),React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.237 2.636 7.855 6.356 9.32-.088-.79-.167-2.005.035-2.867.183-.78 1.18-4.97 1.18-4.97s-.301-.6-.301-1.49c0-1.397.81-2.44 1.818-2.44.857 0 1.27.643 1.27 1.414 0 .86-.548 2.147-.83 3.34-.236.997.502 1.81 1.486 1.81 1.783 0 3.155-1.88 3.155-4.595 0-2.402-1.728-4.083-4.196-4.083-2.86 0-4.537 2.143-4.537 4.36 0 .863.333 1.79.749 2.292a.3.3 0 0 1 .07.288c-.077.318-.247 1-.28 1.14-.045.186-.146.226-.337.136-1.26-.586-2.046-2.43-2.046-3.91 0-3.184 2.314-6.108 6.671-6.108 3.502 0 6.225 2.495 6.225 5.83 0 3.478-2.193 6.276-5.235 6.276-1.022 0-1.984-.531-2.314-1.158l-.628 2.396c-.228.876-.846 1.972-1.26 2.642A10.014 10.014 0 0 0 12 22c5.523 0 10-4.477 10-10S17.523 2 12 2Z"})),G=()=>React.createElement("svg",Z({viewBox:"0 0 24 24"},H,{fill:"none"}),React.createElement("rect",{x:"3",y:"3",width:"18",height:"18",rx:"5",stroke:"currentColor",strokeWidth:"2"}),React.createElement("circle",{cx:"12",cy:"12",r:"4",stroke:"currentColor",strokeWidth:"2"}),React.createElement("circle",{cx:"17.2",cy:"6.8",r:"1.1",fill:"currentColor"})),j=()=>React.createElement("svg",Z({viewBox:"0 0 24 24"},H),React.createElement("path",{d:"M21.6 7.2a2.5 2.5 0 0 0-1.76-1.77C18.27 5 12 5 12 5s-6.27 0-7.84.43A2.5 2.5 0 0 0 2.4 7.2 26 26 0 0 0 2 12a26 26 0 0 0 .4 4.8 2.5 2.5 0 0 0 1.76 1.77C5.73 19 12 19 12 19s6.27 0 7.84-.43a2.5 2.5 0 0 0 1.76-1.77A26 26 0 0 0 22 12a26 26 0 0 0-.4-4.8ZM10 15V9l5.2 3L10 15Z"})),q=()=>React.createElement("svg",Z({viewBox:"0 0 24 24"},H),React.createElement("path",{d:"M20.45 3H3.55A.55.55 0 0 0 3 3.55v16.9c0 .304.246.55.55.55h16.9a.55.55 0 0 0 .55-.55V3.55a.55.55 0 0 0-.55-.55ZM8.4 18.34H5.67V9.78H8.4v8.56ZM7.03 8.6a1.58 1.58 0 1 1 0-3.16 1.58 1.58 0 0 1 0 3.16Zm11.31 9.74H15.6v-4.16c0-.99-.02-2.27-1.38-2.27-1.39 0-1.6 1.08-1.6 2.2v4.23H9.9V9.78h2.6v1.17h.04a2.85 2.85 0 0 1 2.57-1.41c2.75 0 3.26 1.81 3.26 4.17v4.63Z"})),X=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},a=e.INITIAL_VALUES?.social||{},r=e.FORM_ACTION||"",n=e.NONCE?.setup||"",[o,l]=(0,t.useState)(a.facebook||""),[i,p]=(0,t.useState)(a.twitter||""),[m,d]=(0,t.useState)(a.pinterest||""),[_,u]=(0,t.useState)(a.instagram||""),[w,h]=(0,t.useState)(a.youtube||""),[E,R]=(0,t.useState)(a.linkedin||""),[g,f]=(0,t.useState)(a.extra||"");return React.createElement("form",{method:"post",action:r,className:"seopress-wizard-form"},React.createElement("header",{className:"seopress-wizard-form__header"},React.createElement("h1",{className:"seopress-wizard-form__heading"},(0,s.__)("Link your site to your social networks","wp-seopress")),React.createElement("p",{className:"seopress-wizard-form__subheading"},(0,s.__)("Fill in your social accounts for search engines.","wp-seopress"))),React.createElement("div",{className:"seopress-wizard-form__fields"},React.createElement(A,{label:(0,s.__)("Facebook","wp-seopress"),value:o,onChange:l,name:"knowledge_fb",icon:React.createElement(V,null),placeholder:(0,s.__)("https://facebook.com/your-page","wp-seopress")}),React.createElement(A,{label:(0,s.__)("X","wp-seopress"),value:i,onChange:p,name:"knowledge_tw",icon:React.createElement(F,null),placeholder:(0,s.__)("https://x.com/your-handle","wp-seopress")}),React.createElement(A,{label:(0,s.__)("Pinterest","wp-seopress"),value:m,onChange:d,name:"knowledge_pin",icon:React.createElement($,null),placeholder:(0,s.__)("https://pinterest.com/your-profile","wp-seopress")}),React.createElement(A,{label:(0,s.__)("Instagram","wp-seopress"),value:_,onChange:u,name:"knowledge_insta",icon:React.createElement(G,null),placeholder:(0,s.__)("https://instagram.com/your-profile","wp-seopress")}),React.createElement(A,{label:(0,s.__)("YouTube","wp-seopress"),value:w,onChange:h,name:"knowledge_yt",icon:React.createElement(j,null),placeholder:(0,s.__)("https://youtube.com/@your-channel","wp-seopress")}),React.createElement(A,{label:(0,s.__)("LinkedIn","wp-seopress"),value:E,onChange:R,name:"knowledge_li",icon:React.createElement(q,null),placeholder:(0,s.__)("https://linkedin.com/company/your-page","wp-seopress")}),React.createElement(x,{label:(0,s.__)("Additional accounts","wp-seopress"),value:g,onChange:f,name:"knowledge_extra",rows:4,placeholder:(0,s.__)("Enter 1 URL per line (e.g. https://example.com/my-profile)","wp-seopress")})),React.createElement("input",{type:"hidden",name:"_wpnonce",value:n}),React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:r}),React.createElement("footer",{className:"seopress-wizard-form__footer"},React.createElement(b,{currentStep:"social_accounts"}),React.createElement(c.Button,{type:"submit",variant:"primary",name:"save_step",value:"1",className:"seopress-wizard-form__submit"},(0,s.__)("Save and continue","wp-seopress"))))},K=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},a=e.FORM_ACTION||"",r=e.NONCE?.setup||"",n=e.INDEXING||{},o=n.post_types||[],l=n.single_noindex||{},[i,p]=(0,t.useState)((()=>{const e={};return o.forEach((t=>{e[t.key]=!!l[t.key]})),e}));return React.createElement("form",{method:"post",action:a,className:"seopress-wizard-form"},React.createElement("header",{className:"seopress-wizard-form__header"},React.createElement("h1",{className:"seopress-wizard-form__heading"},(0,s.__)("Which content types should be excluded from search engine results?","wp-seopress")),React.createElement("p",{className:"seopress-wizard-form__subheading"},(0,s.__)("Check the boxes below to disable indexing for selected content types. They will not appear in search engine results","wp-seopress")," ","(",React.createElement("em",null,"noindex"),").")),React.createElement("div",{role:"note",className:"seopress-wizard-notice"},React.createElement("p",{className:"seopress-wizard-notice__line"},(0,s.__)("Custom post types are a content type in WordPress. Post and Page are the default post types.","wp-seopress")),React.createElement("p",{className:"seopress-wizard-notice__line"},(0,s.__)('You can create your own type of content like "product" or "business": these are custom post types.',"wp-seopress"))),React.createElement("div",{className:"seopress-wizard-checkbox-list"},o.map((e=>{return React.createElement(C,{key:e.key,name:`seopress_titles_option_name[seopress_titles_single_titles][${e.key}][noindex]`,checked:i[e.key],onChange:(t=e.key,e=>p((s=>({...s,[t]:e})))),label:React.createElement(React.Fragment,null,(0,s.__)("Exclude","wp-seopress")," ",React.createElement("code",{className:"seopress-wizard-checkbox__code"},"[",e.key,"]")," ",(0,s.__)("from search engine","wp-seopress"))});var t}))),React.createElement("input",{type:"hidden",name:"_wpnonce",value:r}),React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:a}),React.createElement("footer",{className:"seopress-wizard-form__footer"},React.createElement(b,{currentStep:"indexing_post_types"}),React.createElement(c.Button,{type:"submit",variant:"primary",name:"save_step",value:"1",className:"seopress-wizard-form__submit"},(0,s.__)("Save and continue","wp-seopress"))))},Y=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},a=e.FORM_ACTION||"",r=e.NONCE?.setup||"",n=e.INDEXING||{},o=n.archives||[],l=n.archive_noindex||{},i=n.special_archives||{},p=n.site_url||"https://example.com/",[m,d]=(0,t.useState)((()=>{const e={};return o.forEach((t=>{e[t.key]=!!l[t.key]})),{archive:e,date:!!i.date,search:!!i.search,author:!!i.author}})),_=e=>t=>d((s=>({...s,[e]:t})));return React.createElement("form",{method:"post",action:a,className:"seopress-wizard-form"},React.createElement("header",{className:"seopress-wizard-form__header"},React.createElement("h1",{className:"seopress-wizard-form__heading"},(0,s.__)("Which archives should be excluded from search engine results?","wp-seopress")),React.createElement("p",{className:"seopress-wizard-form__subheading"},(0,s.__)("Check the boxes below to disable indexing for selected content types. They will not appear in search engine results (noindex).","wp-seopress"))),React.createElement("div",{role:"note",className:"seopress-wizard-notice"},React.createElement("p",{className:"seopress-wizard-notice__line"},(0,s.__)("Archive pages are automatically generated by WordPress. They group specific content such as your latest articles, a product category or your content by author or date.","wp-seopress"))),React.createElement("div",{className:"seopress-wizard-checkbox-list"},o.map((e=>{return React.createElement(C,{key:e.key,name:`seopress_titles_option_name[seopress_titles_archive_titles][${e.key}][noindex]`,checked:m.archive[e.key],onChange:(t=e.key,e=>d((s=>({...s,archive:{...s.archive,[t]:e}})))),label:React.createElement(React.Fragment,null,(0,s.__)("Exclude","wp-seopress")," ",React.createElement("code",{className:"seopress-wizard-checkbox__code"},"[",e.key,"]")," ",(0,s.__)("archives from search engine","wp-seopress"))});var t})),React.createElement(C,{name:"seopress_titles_option_name[seopress_titles_archives_date_noindex]",checked:m.date,onChange:_("date"),label:React.createElement(React.Fragment,null,(0,s.__)("Exclude","wp-seopress")," ",React.createElement("code",{className:"seopress-wizard-checkbox__code"},"[date]")," ",(0,s.__)("archives from search engine","wp-seopress")),hint:(0,s.sprintf)(/* translators: %s: example URL */ /* translators: %s: example URL */
(0,s.__)("Example: %s","wp-seopress"),`${p}2025/01/01/`)}),React.createElement(C,{name:"seopress_titles_option_name[seopress_titles_archives_search_title_noindex]",checked:m.search,onChange:_("search"),label:React.createElement(React.Fragment,null,(0,s.__)("Exclude","wp-seopress")," ",React.createElement("code",{className:"seopress-wizard-checkbox__code"},"[search]")," ",(0,s.__)("archives from search engine","wp-seopress")),hint:(0,s.sprintf)((0,s.__)("Example: %s","wp-seopress"),`${p}?s=keyword`)}),React.createElement(C,{name:"seopress_titles_option_name[seopress_titles_archives_author_noindex]",checked:m.author,onChange:_("author"),label:React.createElement(React.Fragment,null,(0,s.__)("Exclude","wp-seopress")," ",React.createElement("code",{className:"seopress-wizard-checkbox__code"},"[author]")," ",(0,s.__)("archives from search engine","wp-seopress")),hint:React.createElement(React.Fragment,null,(0,s.__)("You only have one author on your site? Check this option to avoid duplicate content.","wp-seopress"),React.createElement("br",null),(0,s.sprintf)((0,s.__)("Example: %s","wp-seopress"),`${p}author/john-doe/`))})),React.createElement("input",{type:"hidden",name:"_wpnonce",value:r}),React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:a}),React.createElement("footer",{className:"seopress-wizard-form__footer"},React.createElement(b,{currentStep:"indexing_archives"}),React.createElement(c.Button,{type:"submit",variant:"primary",name:"save_step",value:"1",className:"seopress-wizard-form__submit"},(0,s.__)("Save and continue","wp-seopress"))))},J={post_tag:(0,s.__)("We recommend excluding tags from search results, as they often create duplicate content.","wp-seopress")},Q=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},a=e.FORM_ACTION||"",r=e.NONCE?.setup||"",n=e.INDEXING||{},o=n.taxonomies||[],l=n.tax_noindex||{},[i,p]=(0,t.useState)((()=>{const e={};return o.forEach((t=>{e[t.key]=!!l[t.key]})),e}));return React.createElement("form",{method:"post",action:a,className:"seopress-wizard-form"},React.createElement("header",{className:"seopress-wizard-form__header"},React.createElement("h1",{className:"seopress-wizard-form__heading"},(0,s.__)("Which taxonomies should be excluded from search engine results?","wp-seopress")),React.createElement("p",{className:"seopress-wizard-form__subheading"},(0,s.__)("Check the boxes below to disable indexing for selected content types. They will not appear in search engine results (noindex).","wp-seopress"))),React.createElement("div",{role:"note",className:"seopress-wizard-notice"},React.createElement("p",{className:"seopress-wizard-notice__line"},(0,s.__)("Taxonomies are the method of classifying content and data in WordPress. When you use a taxonomy you're grouping similar things together. The taxonomy refers to the sum of those groups. Categories and Tags are the default taxonomies.","wp-seopress")),React.createElement("p",{className:"seopress-wizard-notice__line"},(0,s.__)('You can add your own taxonomies like "product categories": these are called custom taxonomies.',"wp-seopress"))),React.createElement("div",{className:"seopress-wizard-checkbox-list"},o.map((e=>{return React.createElement(C,{key:e.key,name:`seopress_titles_option_name[seopress_titles_tax_titles][${e.key}][noindex]`,checked:i[e.key],onChange:(t=e.key,e=>p((s=>({...s,[t]:e})))),label:React.createElement(React.Fragment,null,(0,s.__)("Exclude","wp-seopress")," ",React.createElement("code",{className:"seopress-wizard-checkbox__code"},"[",e.key,"]")," ",(0,s.__)("from search engine","wp-seopress")),hint:J[e.key]||null});var t}))),React.createElement("input",{type:"hidden",name:"_wpnonce",value:r}),React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:a}),React.createElement("footer",{className:"seopress-wizard-form__footer"},React.createElement(b,{currentStep:"indexing_taxonomies"}),React.createElement(c.Button,{type:"submit",variant:"primary",name:"save_step",value:"1",className:"seopress-wizard-form__submit"},(0,s.__)("Save and continue","wp-seopress"))))},ee=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},a=e.FORM_ACTION||"",r=e.NONCE?.setup||"",n=e.ADVANCED||{},o=n.category_base||"/category/",l=n.product_category_base||"/product-category/",i=!!n.woocommerce_active,[p,m]=(0,t.useState)({attachments_file:!!n.attachments_file,image_auto_alt_txt:!!n.image_auto_alt_txt,category_url:!!n.category_url,product_category_url:!!n.product_category_url}),d=[{key:"attachments_file",name:"attachments_file",label:(0,s.__)("Redirect attachment pages to their file URL (e.g. https://www.example.com/my-image-file.jpg)","wp-seopress"),hint:(0,s.__)("By default, attachment pages are redirected to their parent post. Enable this option to redirect users directly to the media file URL, improving user experience.","wp-seopress")},{key:"image_auto_alt_txt",name:"image_auto_alt_txt",label:(0,s.__)("Automatically set alt text on already inserted image","wp-seopress"),hint:(0,s.__)("WordPress does not update alt text for images already inserted in your content. Enable this option to automatically update alt text on page load, ensuring better accessibility and SEO.","wp-seopress")},{key:"category_url",name:"category_url",
/* translators: %s permalink category base, e.g. /category/ */
label:(0,s.sprintf)((0,s.__)("Remove %s in your permalinks","wp-seopress"),o),
/* translators: %s permalink category base, e.g. /category/ */
hint:(0,s.sprintf)((0,s.__)("Shorten your URLs by removing %s and improve your SEO.","wp-seopress"),o)}];return i&&d.push({key:"product_category_url",name:"product_category_url",
/* translators: %s permalink product category base, e.g. /product-category/ */
label:(0,s.sprintf)((0,s.__)("Remove %s in your permalinks","wp-seopress"),l),
/* translators: %s permalink product category base */
hint:(0,s.sprintf)((0,s.__)("Shorten your URLs by removing %s and improve your SEO.","wp-seopress"),l)}),React.createElement("form",{method:"post",action:a,className:"seopress-wizard-form"},React.createElement("header",{className:"seopress-wizard-form__header"},React.createElement("h1",{className:"seopress-wizard-form__heading"},(0,s.__)("Advanced SEO options","wp-seopress")),React.createElement("p",{className:"seopress-wizard-form__subheading"},(0,s.__)("Optimize your site’s SEO with these advanced settings.","wp-seopress"))),React.createElement("div",{className:"seopress-wizard-checkbox-list"},d.map((e=>{return React.createElement(C,{key:e.key,name:e.name,checked:p[e.key],onChange:(t=e.key,e=>m((s=>({...s,[t]:e})))),label:e.label,hint:e.hint});var t}))),React.createElement("input",{type:"hidden",name:"_wpnonce",value:r}),React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:a}),React.createElement("footer",{className:"seopress-wizard-form__footer"},React.createElement(b,{currentStep:"advanced"}),React.createElement(c.Button,{type:"submit",variant:"primary",name:"save_step",value:"1",className:"seopress-wizard-form__submit"},(0,s.__)("Save and continue","wp-seopress"))))},te=()=>React.createElement("svg",{className:"seopress-wizard-metabox-preview__play-icon",width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M8 5v14l11-7z"})),se=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},a=e.FORM_ACTION||"",r=e.NONCE?.setup||"",n=e.ADVANCED||{},o=e.PLUGIN_URL||"",l=`https://www.youtube.com/watch?v=${e.DOCS_LINKS?.video_id||"1nUkjCBpIts"}`,[i,p]=(0,t.useState)(!!n.metabox_frontend_visible);return React.createElement("form",{method:"post",action:a,className:"seopress-wizard-form"},React.createElement("header",{className:"seopress-wizard-form__header"},React.createElement("h1",{className:"seopress-wizard-form__heading"},(0,s.__)("Show the Universal SEO Metabox on the frontend","wp-seopress")),React.createElement("p",{className:"seopress-wizard-form__subheading"},(0,s.__)("Display a floating SEO beacon on the frontend so logged-in editors can review and adjust metadata while browsing the live site.","wp-seopress"))),React.createElement("div",{className:"seopress-wizard-checkbox-list"},React.createElement(C,{name:"universal_metabox_frontend",checked:i,onChange:p,label:(0,s.__)("Show the SEO beacon on the frontend","wp-seopress"),hint:(0,s.__)("You can adjust this setting anytime in SEO > Advanced Settings > Appearance.","wp-seopress")})),React.createElement("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"seopress-wizard-metabox-preview","aria-label":(0,s.__)("Watch the Universal SEO Metabox video tutorial on YouTube","wp-seopress")},React.createElement("img",{src:`${o}/img/yt-universal-metabox.webp`,alt:(0,s.__)("Universal SEO Metabox preview","wp-seopress"),onError:e=>{e.currentTarget.style.display="none"}}),React.createElement("span",{className:"seopress-wizard-metabox-preview__play","aria-hidden":"true"},React.createElement(te,null))),React.createElement("input",{type:"hidden",name:"_wpnonce",value:r}),React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:a}),React.createElement("footer",{className:"seopress-wizard-form__footer"},React.createElement(b,{currentStep:"metabox"}),React.createElement(c.Button,{type:"submit",variant:"primary",name:"save_step",value:"1",className:"seopress-wizard-form__submit"},(0,s.__)("Save and continue","wp-seopress"))))},ae=()=>React.createElement("svg",{className:"seopress-wizard-ready__check",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false"},React.createElement("circle",{cx:"12",cy:"12",r:"10",fill:"#e8f7ee"}),React.createElement("path",{d:"M7.5 12.5l3 3L16.5 9",stroke:"var(--colorSuccess, #1d8a4a)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),re=()=>React.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M3 6h13M3 12h13M3 18h13M19 6l2 2-2 2M19 12l2 2-2 2M19 18l2 2-2 2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})),ne=()=>React.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false"},React.createElement("circle",{cx:"10",cy:"10",r:"6",stroke:"currentColor",strokeWidth:"1.6"}),React.createElement("path",{d:"m14.5 14.5 5 5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})),oe=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},t=e.SITEMAP_URL||"",a=e.DOCS_LINKS?.pro||e.PRO_URL||"https://www.seopress.org/seopress-pro/",r=e.PLUGIN_URL||"",n=!!e.PRO,o=[{strong:(0,s.__)("IndexNow","wp-seopress"),rest:(0,s.__)("is enabled to improve your site indexing","wp-seopress")},{strong:(0,s.__)("Open Graph / X Cards","wp-seopress"),rest:(0,s.__)("is enabled to improve your social media sharing","wp-seopress")},{strong:(0,s.__)("Content Analysis","wp-seopress"),rest:(0,s.__)("is enabled to help you improve your content","wp-seopress")},{strong:(0,s.__)("XML sitemaps","wp-seopress"),rest:(0,s.__)("are enabled to improve Google's crawling of your site","wp-seopress")},{strong:(0,s.__)("Indexing","wp-seopress"),rest:(0,s.__)("configured for your post types, taxonomies, authors, dates, search, 404, etc","wp-seopress")}];return React.createElement("div",{className:"seopress-wizard-ready"},React.createElement("header",{className:"seopress-wizard-ready__header"},React.createElement("div",{className:"seopress-wizard-ready__heading-wrap"},React.createElement("h1",{className:"seopress-wizard-form__heading"},(0,s.__)("Congratulations! Your site is now ready for search engines.","wp-seopress")),React.createElement("p",{className:"seopress-wizard-form__subheading"},(0,s.__)("SEOPress has automatically applied key optimizations to help you rank higher.","wp-seopress"))),React.createElement("img",{className:"seopress-wizard-ready__badge",src:`${r}/img/seopress-wizard-success.svg`,alt:"",width:"96",height:"96"})),React.createElement("ul",{className:"seopress-wizard-ready__list"},o.map(((e,t)=>React.createElement("li",{key:t,className:"seopress-wizard-ready__item"},React.createElement(ae,null),React.createElement("span",null,React.createElement("strong",null,e.strong)," ",e.rest))))),!n&&React.createElement("section",{className:"seopress-wizard-ready__promo"},React.createElement("div",{className:"seopress-wizard-ready__promo-text"},React.createElement("p",{className:"seopress-wizard-ready__promo-heading"},React.createElement(ne,null),React.createElement("span",null,(0,s.__)("Unlock more with SEOPress Pro","wp-seopress"))),React.createElement("p",{className:"seopress-wizard-ready__promo-body"},(0,s.__)("WooCommerce SEO, Local SEO, Video SEO, and advanced redirections. Used by 30,000+ Pro users.","wp-seopress"))),React.createElement("a",{className:"components-button is-secondary seopress-wizard-ready__promo-cta",href:a,target:"_blank",rel:"noreferrer"},(0,s.__)("See Pro features","wp-seopress"))),React.createElement("section",{className:"seopress-wizard-ready__next"},React.createElement("div",{className:"seopress-wizard-ready__next-text"},React.createElement("p",{className:"seopress-wizard-ready__next-eyebrow"},React.createElement(re,null),React.createElement("span",null,(0,s.__)("Next step","wp-seopress"))),React.createElement("h2",{className:"seopress-wizard-ready__next-title"},(0,s.__)("Create your XML sitemaps","wp-seopress")),React.createElement("p",{className:"seopress-wizard-ready__next-body"},(0,s.__)("Build custom XML sitemaps to improve Google's crawling of your site.","wp-seopress"))),React.createElement("a",{className:"components-button is-primary seopress-wizard-form__submit",href:t},(0,s.__)("Configure your XML sitemaps","wp-seopress"))))},le=()=>React.createElement("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M4 5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),React.createElement("path",{d:"M13 3v5h5",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"})),ce=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},a=e.FORM_ACTION||"",r=e.NONCE?.setup||"",n=e.PLUGIN_URL||"",o=e.DOCS_LINKS?.privacy||e.PRIVACY_URL||"https://www.seopress.org/privacy-policy/",l=!!e.SUB_ROUTINE,[c,i]=(0,t.useState)(e.USER_EMAIL||""),p=[{label:(0,s.__)("Intro","wp-seopress"),text:(0,s.__)("2-hour-a-week SEO plan with SEOPress","wp-seopress")},{label:(0,s.__)("Week 1","wp-seopress"),text:(0,s.__)("Check SEO Progress and Issues","wp-seopress")},{label:(0,s.__)("Week 2","wp-seopress"),text:(0,s.__)("Create SEO Optimized Content","wp-seopress")},{label:(0,s.__)("Week 3","wp-seopress"),text:(0,s.__)("On-Page Optimizations","wp-seopress")},{label:(0,s.__)("Week 4","wp-seopress"),text:(0,s.__)("Off-Page Optimizations","wp-seopress")}];return React.createElement("div",{className:"seopress-wizard-guide"},React.createElement("div",{className:"seopress-wizard-guide__cover"},React.createElement("img",{src:`${n}/img/cover-seo-routine.jpg`,alt:(0,s.__)("SEO Success for WordPress guide cover","wp-seopress"),onError:e=>{e.currentTarget.style.display="none"}})),React.createElement("p",{className:"seopress-wizard-guide__eyebrow"},React.createElement(le,null),React.createElement("span",null,(0,s.__)("Free guide","wp-seopress"))),React.createElement("h3",{className:"seopress-wizard-guide__title"},(0,s.__)("SEO Success for WordPress with a Two-Hours-a-Week Routine.","wp-seopress")),React.createElement("ul",{className:"seopress-wizard-guide__weeks"},p.map((e=>React.createElement("li",{key:e.label,className:"seopress-wizard-guide__week"},React.createElement("span",{className:"seopress-wizard-guide__week-label"},e.label),React.createElement("span",{className:"seopress-wizard-guide__week-text"},e.text))))),l?React.createElement("div",{className:"seopress-wizard-guide__thanks",role:"status"},React.createElement("svg",{className:"seopress-wizard-guide__thanks-icon",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false"},React.createElement("circle",{cx:"12",cy:"12",r:"10",fill:"#e8f7ee"}),React.createElement("path",{d:"M7.5 12.5l3 3L16.5 9",stroke:"var(--colorSuccess, #1d8a4a)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),React.createElement("div",{className:"seopress-wizard-guide__thanks-text"},React.createElement("p",{className:"seopress-wizard-guide__thanks-title"},(0,s.__)("You're in!","wp-seopress")),React.createElement("p",{className:"seopress-wizard-guide__thanks-body"},(0,s.__)("Check your inbox to confirm your subscription.","wp-seopress")))):React.createElement(React.Fragment,null,React.createElement("form",{method:"post",action:a,className:"seopress-wizard-guide__form"},React.createElement("input",{type:"email",className:"seopress-wizard-guide__input",name:"seopress_nl_routine",placeholder:"your@email.com",value:c,onChange:e=>i(e.target.value),required:!0,autoComplete:"email","aria-label":(0,s.__)("Email address","wp-seopress")}),React.createElement("input",{type:"hidden",name:"_wpnonce",value:r}),React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:a}),React.createElement("button",{type:"submit",name:"save_step",value:"1",className:"components-button is-secondary seopress-wizard-guide__submit"},(0,s.__)("Get it free","wp-seopress"))),React.createElement("p",{className:"seopress-wizard-guide__privacy"},(0,s.__)("I accept that SEOPress can store and use my email address in order to send me a newsletter. Read our","wp-seopress")," ",React.createElement("a",{href:o,target:"_blank",rel:"noreferrer"},(0,s.__)("privacy policy","wp-seopress")),".")))},ie=()=>{const e=window.SEOPRESS_WIZARD_DATA||{},s=e.STEP||"welcome",r=e.PARENT||"",n=(0,t.useMemo)((()=>a()),[]),{topIndex:o,step:c}=((e,t,s)=>{for(let a=0;a<e.length;a+=1){const r=e[a];if(s&&r.key===s)return{topIndex:a,step:r};if(!s&&(r.key===t||r.subSteps.some((e=>e.key===t))))return{topIndex:a,step:r}}return{topIndex:0,step:e[0]}})(n,s,r),i="ready"===s?React.createElement(ce,null):null;return React.createElement(l,{steps:n,activeTopIndex:o,activeSubKey:s,title:c.title,sideContent:i},(()=>{switch(s){case"import_settings":return React.createElement(k,null);case"site":return React.createElement(U,null);case"social_accounts":return React.createElement(X,null);case"indexing_post_types":return React.createElement(K,null);case"indexing_archives":return React.createElement(Y,null);case"indexing_taxonomies":return React.createElement(Q,null);case"advanced":return React.createElement(ee,null);case"metabox":return React.createElement(se,null);case"ready":return React.createElement(oe,null);default:return React.createElement(w,null)}})())},pe=window.SEOPRESS_WIZARD_DATA||{};window.SEOPRESS_SETTINGS_DATA||(window.SEOPRESS_SETTINGS_DATA={DYNAMIC_VARIABLES:pe.DYNAMIC_VARIABLES||{},PREVIEW_VALUES:pe.PREVIEW_VALUES||{},OPTION_NAME:""}),document.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("seopress-wizard-root");e&&(0,t.createRoot)(e).render(React.createElement(ie,null))}))})();