!function(){var e={4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function d(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,f=o.history,d=a.Pop,h=null,y=g();function g(){return(f.state||{idx:null}).idx}function b(){d=a.Pop;let e=g(),t=null==e?null:e-y;y=e,h&&h({action:d,location:v.location,delta:t})}function w(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:p(e);return s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==y&&(y=0,f.replaceState(l({},f.state,{idx:y}),""));let v={get action(){return d},get location(){return e(o,f)},listen(e){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(c,b),h=e,()=>{o.removeEventListener(c,b),h=null}},createHref(e){return t(o,e)},createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){d=a.Push;let r=m(v.location,e,t);n&&n(r,e),y=g()+1;let l=u(r,y),c=v.createHref(r);try{f.pushState(l,"",c)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(c)}i&&h&&h({action:d,location:v.location,delta:1})},replace:function(e,t){d=a.Replace;let r=m(v.location,e,t);n&&n(r,e),y=g();let o=u(r,y),l=v.createHref(r);f.replaceState(o,"",l),i&&h&&h({action:d,location:v.location,delta:0})},go(e){return f.go(e)}};return v}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function g(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function b(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function w(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=f(e):(a=l({},e),s(!a.pathname||!a.pathname.includes("?"),g("?","pathname","search",a)),s(!a.pathname||!a.pathname.includes("#"),g("#","pathname","hash",a)),s(!a.search||!a.search.includes("#"),g("#","search","hash",a)));let o,i=""===e||""===a.pathname,c=i?"/":a.pathname;if(null==c)o=n;else if(r){let e=t[t.length-1].replace(/^\//,"").split("/");if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e.pop();a.pathname=t.join("/")}o="/"+e.join("/")}else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?f(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:_(r),hash:k(a)}}(a,o),m=c&&"/"!==c&&c.endsWith("/"),p=(i||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!m&&!p||(u.pathname+="/"),u}const v=e=>e.join("/").replace(/\/\/+/g,"/"),_=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",k=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const S=["post","put","patch","delete"],E=(new Set(S),["get",...S]);new Set(E),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),o.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,O({fromRouteId:t},a)))}),[e,t])}():function(){N()||s(!1);let e=o.useContext(j),{basename:t,navigator:n}=o.useContext(P),{matches:r}=o.useContext(A),{pathname:a}=x(),i=JSON.stringify(b(r).map((e=>e.pathnameBase))),l=o.useRef(!1);return D((()=>{l.current=!0})),o.useCallback((function(r,o){if(void 0===o&&(o={}),!l.current)return;if("number"==typeof r)return void n.go(r);let c=w(r,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:v([t,c.pathname])),(o.replace?n.replace:n.push)(c,o.state,o)}),[t,n,i,a,e])}()}o.Component;var M=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(M||{}),I=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(I||{});function R(e){let t=o.useContext(j);return t||s(!1),t}function U(e){let t=function(e){let t=o.useContext(A);return t||s(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||s(!1),n.route.id}o.startTransition;function F(e){let{basename:t="/",children:n=null,location:r,navigationType:i=a.Pop,navigator:l,static:c=!1}=e;N()&&s(!1);let u=t.replace(/^\/*/,"/"),m=o.useMemo((()=>({basename:u,navigator:l,static:c})),[u,l,c]);"string"==typeof r&&(r=f(r));let{pathname:p="/",search:d="",hash:h="",state:g=null,key:b="default"}=r,w=o.useMemo((()=>{let e=y(p,u);return null==e?null:{location:{pathname:e,search:d,hash:h,state:g,key:b},navigationType:i}}),[u,p,d,h,g,b,i]);return null==w?null:o.createElement(P.Provider,{value:m},o.createElement(C.Provider,{children:n,value:w}))}new Promise((()=>{}));o.Component;function B(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);new Map;const W=o.startTransition;i.flushSync;function L(e){let{basename:t,children:n,future:r,window:a}=e,i=o.useRef();var l;null==i.current&&(i.current=(void 0===(l={window:a,v5Compat:!0})&&(l={}),d((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return m("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:p(t)}),null,l)));let c=i.current,[s,u]=o.useState({action:c.action,location:c.location}),{v7_startTransition:f}=r||{},h=o.useCallback((e=>{f&&W?W((()=>u(e))):u(e)}),[u,f]);return o.useLayoutEffect((()=>c.listen(h)),[c,h]),o.createElement(F,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:c})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;var z,G;function H(e){let t=o.useRef(B(e)),n=o.useRef(!1),r=x(),a=o.useMemo((()=>function(e,t){let n=B(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=T(),l=o.useCallback(((e,t)=>{const r=B("function"==typeof e?e(a):e);n.current=!0,i("?"+r,t)}),[i,a]);return[a,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(z||(z={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(G||(G={}));var V=wp.element;function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=rankMath.links[e]||"";if(!r)return"#";if(!t)return r;var a={utm_source:"Plugin",utm_medium:encodeURIComponent(t),utm_campaign:"WP"};return r+"?"+Object.keys(a).map((function(e){return"".concat(e,"=").concat(a[e])})).join("&")+n}var $=function(){return wp.element.createElement("div",{className:"header"},wp.element.createElement("div",{className:"logo text-center"},wp.element.createElement("a",{href:Y("seo-suite","SW Logo"),target:"_blank",rel:"noreferrer"},wp.element.createElement("img",{src:rankMath.logo,alt:"Rank Math SEO",width:"245"}))))},q=wp.data,K=lodash,J=wp.compose,X=wp.apiFetch,Q=n.n(X),Z=wp.components,ee=wp.i18n,te=window.rankMathComponents,ne=function(e){var t=e.saveData,n=e.skipStep,r=e.currentStep;return wp.element.createElement("footer",{className:"form-footer wp-core-ui rank-math-ui"},"schema-markup"!==r&&wp.element.createElement(te.Button,{variant:"secondary",className:"button-skip",onClick:n},(0,ee.__)("Skip Step","rank-math")),wp.element.createElement(te.Button,{variant:"primary",onClick:function(){t()}},(0,ee.__)("Save and Continue","rank-math")))},re=function(e){var t=e.link,n=e.heading,r=e.description,a=e.linkText,o=void 0===a?(0,ee.__)("Learn more.","rank-math"):a,i=e.className,l=void 0===i?"":i;return wp.element.createElement("header",null,wp.element.createElement("h1",{dangerouslySetInnerHTML:{__html:n}}),wp.element.createElement("p",{className:l},r,t&&wp.element.createElement("a",{href:t,target:"_blank",rel:"noreferrer"},o)))},ae=function(){return wp.element.createElement("div",{className:"wrapper"},wp.element.createElement("div",{className:"main-content steps-progress-skeleton"},wp.element.createElement("header",null,wp.element.createElement("span",{className:"title"}),wp.element.createElement("span",{className:"sub-title"})),wp.element.createElement("div",{id:"field-metabox-rank-math"},(0,K.map)(Array.from({length:5}),(function(e,t){return wp.element.createElement("div",{key:t,className:"field-row"},wp.element.createElement("span",{className:"top"}),wp.element.createElement("span",{className:"bottom"}))})))))};function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ie(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return le(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};(0,K.isEmpty)(n)||e("rank-math-setup-wizard").updateStepData(a,n),Q()({method:"POST",path:"/rankmath/v1/setupWizard/updateStepData",data:{step:a,value:r}}).catch((function(e){alert(e.message)})).then((function(e){"ready"!==a&&((0,K.isBoolean)(e)?t.skipStep():window.location=e)}))}}})))((function(e){var t=e.currentStep,n=e.data,r=e.steps,a=e.getStepData,o=e.onStepChange,i=e.saveData,l=e.updateData,c=e.skipStep,s=e.getNextStep;return(0,V.useEffect)((function(){(0,K.isEmpty)(n)&&a();var e=s();a(e||t)}),[t]),wp.element.createElement("div",{className:"rank-math-steps-progress-wrapper"},wp.element.createElement(Z.TabPanel,{tabs:r,key:t,initialTabName:t,className:"rank-math-steps-progress header",onSelect:o},(function(e){var r=e.name,a=e.slug,o=e.heading,s=e.view;return(0,K.isEmpty)(n)?wp.element.createElement(ae,null):wp.element.createElement("div",{className:"wrapper"},wp.element.createElement("div",{className:"main-content wizard-content--".concat(a||r)},o&&wp.element.createElement(re,e),wp.element.createElement(s,{data:n,saveData:i,updateData:l,skipStep:c})),!(0,K.includes)(["ready","compatibility","import"],t)&&wp.element.createElement(ne,{data:n,saveData:i,skipStep:c,currentStep:t}))})))})),pe=function(e){if("ready"!==e.searchParams.get("step"))return wp.element.createElement("div",{className:"return-to-dashboard"},wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=modules"},(0,ee.__)("Return to dashboard","rank-math")))},fe=wp.hooks;function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t".concat((0,ee.__)("You can import settings in the next step.","rank-math"),""):"";return[' '.concat(e," ").concat(n),wp.element.createElement(te.Button,{key:t,size:"small",variant:"secondary",className:"wizard-deactivate-plugin",onClick:function(e){return function(e,t){var n=be()(e.target);we("deactivate_plugins",{plugin:t}).always((function(e){1===e&&(n.parents("tr").find(".dashicons-warning").removeClass("dashicons-warning").addClass("dashicons-yes"),n.text((0,ee.__)("Deactivated","rank-math")).attr("disabled","disabled"))}))}(e,t)}},(0,ee.__)("Deactivate Plugin","rank-math"))]}))},_e=function(e){var t=e.isWhitelabel,n=e.conflictingPlugins;return(0,K.isEmpty)(n)?wp.element.createElement("p",{className:"conflict-text noconflict"},(0,ee.__)("No known conflicting plugins found.","rank-math")):wp.element.createElement(React.Fragment,null,wp.element.createElement("p",{className:"conflict-text"},t?(0,ee.__)("The following active plugins on your site may cause conflict issues when used alongside Rank Math: ","rank-math"):(0,ee.__)("The following active plugins on your site may cause conflict issues when used alongside this plugin: ","rank-math")),wp.element.createElement(te.Table,{className:"wizard-conflicts",fields:ve(n),addHeader:!1}))},ke=function(e){return wp.element.createElement("span",{className:"dashicons dashicons-".concat(e?"yes":"no")})},Se=function(e){var t=e.phpVersion,n=e.phpVersionOk,r=e.phpVersionRecommended,a=e.extensions,o=e.isWhitelabel,i=a.dom,l=a.simpleXml,c=a.image,s=a.mbString,u=a.openSsl,m=a.base64Func,p=[{feature:(0,ee.__)("You are using the recommended WordPress version.","rank-math"),passed:!0,showStatus:!1},{feature:(0,ee.__)("PHP DOM Extension","rank-math"),passed:i},{feature:(0,ee.__)("PHP SimpleXML Extension","rank-math"),passed:l},{feature:(0,ee.__)("PHP GD or Imagick Extension","rank-math"),passed:c},{feature:(0,ee.__)("PHP MBstring Extension","rank-math"),passed:s},{feature:(0,ee.__)("PHP OpenSSL Extension","rank-math"),passed:u,showStatus:s},{feature:(0,ee.__)("Base64 encode & decode functions","rank-math"),passed:m,isBase64:!0}],f=(0,K.map)(p,(function(e){var t,n=function(e){var t=e.feature,n=e.passed,r=e.showStatus,a=void 0===r||r,o=e.isBase64,i=void 0!==o&&o?(0,ee.__)("available","rank-math"):(0,ee.__)("installed","rank-math"),l=n?i:(0,ee.__)("missing","rank-math"),c=a?l:"";return"".concat(t," ").concat(c)}(e);return[n,ke(null!==(t=e.status)&&void 0!==t?t:e.passed)]})),d=function(e){var t=e.phpVersion,n=e.phpVersionOk,r=e.phpVersionRecommend,a=e.isWhitelabel;if(!n)return(0,ee.sprintf)((0,ee.__)("Your PHP Version: %s | Recommended version: 7.4 | Minimal required: 7.2","rank-math"),t);var o=(0,ee.sprintf)((0,ee.__)("Your PHP Version: %s","rank-math"),t),i="".concat((0,ee.__)("Rank Math is compatible with your PHP version but we recommend updating to PHP 7.4 for increased speed and security. ","rank-math")," ").concat((0,ee.__)("More information","rank-math"),""),l=(0,ee.__)("This plugin is compatible with your PHP version but we recommend updating to PHP 7.4 for increased speed and security.","rank-math"),c=r?"".concat((0,ee.__)(" | Recommended: PHP 7.4 or later","rank-math"),"

").concat(a?i:l,"

"):"";return"".concat(o," ").concat(c)}({phpVersion:t,phpVersionOk:n,phpVersionRecommended:r,isWhitelabel:o});return f=(0,K.concat)([[d,ke(t)]],f)};function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?t[c]=e:delete t[c],n(t)};return wp.element.createElement(React.Fragment,null,wp.element.createElement("div",{className:"plugin-title ".concat(o?"is-open":"")},wp.element.createElement(te.CheckboxControl,{variant:"metabox",checked:Boolean(p),onChange:function(e){var t=(0,K.map)(s,(function(e){return e.id})),n=e?[].concat(De(t),[m]):[];return d(n)}}),wp.element.createElement(Z.Button,{onClick:function(){return i((function(e){return!e}))}},wp.element.createElement("h3",null,l),wp.element.createElement(Z.Icon,{icon:o?"arrow-up-alt2":"arrow-down-alt2"}))),o&&wp.element.createElement("div",{className:"inside"},wp.element.createElement(te.CheckboxList,{toggleAll:!0,variant:"metabox",value:p,onChange:function(e){var t=p,n=[].concat(De(e),De((0,K.includes)(t,m)?[m]:[]));return d(n)},options:s}),wp.element.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:u}}),wp.element.createElement(te.CheckboxControl,{variant:"metabox",label:(0,ee.__)("Recalculate SEO Scores","rank-math"),checked:(0,K.includes)(p,m),onChange:function(e){var t=p,n=[].concat(De((0,K.filter)(t,(function(e){return e!==m}))),De(e?[m]:[]));return d(n)}})))},Be=rankMathAnalyzer;function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==We(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==We(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===We(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return He(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return He(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.getHours()?"0":"")+t.getHours()+":"+(10>t.getMinutes()?"0":"")+t.getMinutes()+":"+(10>t.getSeconds()?"0":"")+t.getSeconds()+"] "+e+"\n";o((function(e){return e+n}))},h=function(e,t,n,r,a){var o={};if("complete"!==e)return new Promise((function(t){(0,K.forEach)((0,K.entries)(e),(function(e){var t=Ge(e,2),n=t[0],r=t[1];if(!f.includes(n)){f.push(n);var a=new Be.ResultManager,i=wp.i18n,l=new Be.Paper;l.setTitle(r.title),l.setDescription(r.description),l.setText(r.content),l.setKeyword(r.keyword),l.setKeywords(r.keywords),l.setPermalink(r.url),l.setUrl(r.url),r.thumbnail&&l.setThumbnail(r.thumbnail),l.setContentAI(r.hasContentAi);var c=function(e){var t=rankMath.assessor.researchesTests;return t=(0,K.difference)(t,["keywordNotUsed"]),e.isProduct?t=(0,K.difference)(t,["keywordInSubheadings","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasNumber","contentHasTOC"]):t}(r);new Be.Analyzer({i18n:i,analysis:c}).analyzeSome(c,l).then((function(e){a.update(l.getKeyword(),e,!0);var t=a.getScore(r.keyword);r.isProduct&&(t+=r.isReviewEnabled?1:0,t+=r.hasProductSchema?1:0),o[n]=t}))}})),t()})).then((function(){fetch(rankMath.api.root+"rankmath/v1/updateSeoScore",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":rankMath.restNonce},body:JSON.stringify({action:"rank_math_update_seo_score",postScores:o})}).then((function(e){if(!e.ok)throw new Error(e.statusText);return e.json()})).then((function(){d("SEO Scores updated"),y(t,n,r,a)})).catch((function(e){d(e.message)}))}));y(t,n,r,a)},y=function e(t,n,r,a,o){if(0!==n.length){r=r||1;var i=n.shift(),l="deactivate"===i?"Deactivating "+o:"Importing "+i+" from "+o,s=(0,K.floor)(100/p);"recalculate"===i&&(l="Starting SEO score recalculation"),d(l),fetch(rankMath.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({perform:i,pluginSlug:t,paged:r,action:"rank_math_import_plugin",security:rankMath.security})}).then((function(e){if(!e.ok)throw new Error(e.statusText);return e.json()})).then((function(l){var u=1;l&&l.page&&l.page0?h(l.data,o,n,r,a):("recalculate"===i&&0===l.total_items&&(l.message=(0,ee.__)("No posts found without SEO score.","rank-math")),d(l.success?l.message:l.error),e(t,n,u,a,o))})).catch((function(r){d(r.message),e(t,n,null,a,o)}))}else a()},g=function e(t){var n=(0,K.keys)(s),r=n[0],a=s[r],o=(0,K.keys)(s)[0];if(delete s[o],0===n.length)return d("Import finished. Click on the button below to continue the Setup Wizard."),void t();y(o,a,null,(function(){e(t)}),r)};return(0,V.useEffect)((function(){d("Import started..."),g((function(){c(100)})),n(!0)}),[]),(0,V.useEffect)((function(){var e=document.querySelector("#import-progress-textarea");e.scrollTop=e.scrollHeight-e.clientHeight-20}),[d]),wp.element.createElement(React.Fragment,null,wp.element.createElement("div",{id:"import-progress-bar"},wp.element.createElement("div",{id:"importProgress"},wp.element.createElement("div",{id:"importBar",style:{width:l+"%"}})),wp.element.createElement("span",{className:"left"},wp.element.createElement("strong",null,(0,ee.__)("Importing: ","rank-math")),wp.element.createElement("span",{className:"plugin-from"},(0,K.map)(m,(function(e,t){return wp.element.createElement(V.Fragment,{key:t},e,te.length)&&(t=e.length);for(var n=0,r=new Array(t);nLearn more about the import process here.',"rank-math"),Y("seo-import","SW Import Step")),n&&(r+="
"+(0,ee.sprintf)((0,ee.__)("%s plugin will be disabled automatically moving forward to avoid conflicts. It is thus recommended to import the data you need now.","rank-math"),t)),r}(n,a,i);return qe(qe({},r),{},{plugin:n,metaOptions:l,metaDescription:c})}}));return(0,K.filter)(t,Boolean)};function Ze(e){return function(e){if(Array.isArray(e))return nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||tt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){if(e){if("string"==typeof e)return nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nt(e,t):void 0}}function nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];t=t||"error",r=r||!1;var i=be()('

'+e+"

").hide();o||n.siblings(".notice").remove(),n.after(i),i.slideDown(),be()(document).trigger("wp-updates-notice-added"),be()("html,body").animate({scrollTop:i.offset().top-50},"slow"),r&&setTimeout((function(){i.fadeOut((function(){i.remove()}))}),r)}function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}var lt=["validate","afterSave"];function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((0,K.includes)(["roleCapabilities","redirections"],e))return{data:t,fields:{},updated:[]};var o={},i=[];return{data:(0,K.isUndefined)(n)?{}:(0,K.reduce)(n,(function(e,n){return(0,K.isArray)(n.fields)&&0!==n.fields.length?"htaccess"===n.name?(e.htaccess_allow_editing=t.htaccess_allow_editing,e.htaccess_content=t.htaccess_content,(0,K.isEqual)(t.htaccess_content,a.htaccess_content)||i.push("htaccess_content"),e):((0,K.forEach)(n.fields,(function(n){var l=n.id;if(r)(0,K.has)(n,"default")&&(e[l]=n.default,o[l]=n.type);else{var c=(""===t[l]||(0,K.isUndefined)(t[l]))&&(0,K.has)(n,"default")?n.default:t[l];e[l]=c,o[l]=n.type,"file"!==n.type||(0,K.isUndefined)(t[l+"_id"])||(e[l+"_id"]=t[l+"_id"],o[l]="text"),(0,K.isEqual)(c,a[l])||i.push(l)}})),e):e}),{}),fields:o,updated:i}},bt=(0,J.compose)((0,q.withSelect)((function(e){return{settings:e("rank-math-settings").getdirtySettings(),data:e("rank-math-settings").getData()}})),(0,q.withDispatch)((function(e,t){var n=t.type,r=t.settings,a=t.tabs,o=t.footer.applyButton;return{saveSettings:function(t,i){var l=gt(n,r,a,!1,i);t("updating"),Q()({method:"POST",path:"/rankmath/v1/updateSettings",data:{type:n,settings:l.data,fieldTypes:l.fields,updated:l.updated}}).then((function(n){return t("updated"),n?!(0,K.isUndefined)(n.notifications)&&n.notifications.length?((0,K.forEach)(n.notifications,(function(e){var t=!(0,K.isEmpty)(e.error);ot(t?e.error:e.success,t?"error":"success",be()(".rank-math-breadcrumbs-wrap"),!1,"rank-math-settings-notice",!0)})),void be()("html, body").animate({scrollTop:0},"fast")):n.error?(ot(n.error,"error",be()(".rank-math-breadcrumbs-wrap"),!1,"rank-math-settings-notice"),void be()("html, body").animate({scrollTop:0},"fast")):(e("rank-math-settings").updateData(n.settings?n.settings:ut({},l.data)),n.success?(ot(n.success,"success",be()(".rank-math-breadcrumbs-wrap"),!1,"rank-math-settings-notice"),void be()("html, body").animate({scrollTop:0},"fast")):(n&&!n.error&&o.afterSave&&o.afterSave(),t("updated"),void e("rank-math-settings").resetdirtySettings())):(t(""),void window.alert((0,ee.__)("Something went wrong! Please try again.","rank-math")))}))},resetSettings:function(t){var o=gt(n,r,a,!0);t("resetting"),Q()({method:"POST",path:"/rankmath/v1/updateSettings",data:{type:n,settings:o.data,fieldTypes:o.fields,isReset:!0}}).then((function(n){if(!n)return t(""),void window.alert((0,ee.__)("Something went wrong! Please try again.","rank-math"));t("resetted"),e("rank-math-settings").updateData(n.settings?n.settings:ut({},o.data)),e("rank-math-settings").resetdirtySettings()}))}}})))((function(e){var t=ft((0,V.useState)(""),2),n=t[0],r=t[1],a=e.settings,o=e.data,i=e.resetSettings,l=e.saveSettings,c=e.footer,s=c.applyButton,u=s.validate,m=(s.afterSave,pt(s,lt)),p=(0,V.useRef)(null);return null===p.current&&(p.current=ut({},o)),(0,V.useEffect)((function(){(0,K.includes)(["updated","resetted"],n)&&setTimeout((function(){return r("")}),1e3)}),[n]),wp.element.createElement("footer",{className:"form-footer rank-math-ui"},wp.element.createElement(te.Button,ct({onClick:function(){window.confirm((0,ee.__)("Are you sure? You want to reset settings.","rank-math"))&&i(r)}},c.discardButton,{children:ht(c.discardButton,n)})),wp.element.createElement(te.Button,ct({variant:"primary",onClick:function(){(!u||u())&&l(r,p.current)},disabled:(0,K.isEmpty)(a)},m,{children:yt(m,n)})))})),wt=n(4184),vt=n.n(wt);function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}var kt=["id","type","content","Component","isDisabled","default"];function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Nt=(0,J.compose)((0,q.withDispatch)((function(e,t){var n=t.settings;return{updateSetting:function(t,r){n[t]=r,e("rank-math-settings").updateData(Ot({},n))}}})))((function(e){var t=e.field,n=e.settingType,r=e.settings,a=e.value,o=t.id,i=t.type,l=t.content,c=t.Component,s=t.isDisabled,u=t.default,m=At(t,kt);(0,K.isUndefined)(a)&&(a=(0,K.isUndefined)(r)||(0,K.isUndefined)(r[o])?u:r[o]),(0,K.includes)(["disable_author_archives","opening_hours_format"],o)&&(0,K.isBoolean)(a)&&e.updateSetting(o,!1===a?"off":"on"),(0,K.includes)(["disable_author_archives"],o)&&""===a&&e.updateSetting(o,u),(0,K.endsWith)(o,"_bulk_editing")&&!(0,K.isString)(a)&&(a=String(a)),!(0,K.endsWith)(o,"_default_rich_snippet")||""!==a&&!1!==a||(a="off");var p=function(t){if(((0,K.endsWith)(o,"_robots")||"robots_global"===o)&&(0,K.isArray)(t)&&((0,K.includes)(t,"index")||(0,K.includes)(t,"noindex")||(0,K.includes)(a||[],"index")||(0,K.includes)(a||[],"noindex"))){var n=a||[],r=(0,K.includes)(t,"index"),l=(0,K.includes)(t,"noindex"),c=(0,K.includes)(n,"index"),s=(0,K.includes)(n,"noindex");if(c&&!r)t=[].concat(Pt(t),["noindex"]);else if(s&&!l)t=[].concat(Pt(t),["index"]);else if(r&&l){var u=(0,K.last)(t);t=(0,K.filter)(t,(function(e){return"index"===u?"noindex"!==e:"index"!==e}))}}"file"===i?((0,K.isEmpty)(t)&&(t={url:"",id:""}),e.updateSetting(o,t.url),e.updateSetting(o+"_id",t.id)):e.updateSetting(o,t)},f=function(){var e={toggle:"checked",checkbox:"checked"}[i]||"value",t=(0,K.includes)(["component","group"],i);return Ot(Ot(Ot({},m),{},jt(jt({id:o},e,m.value||a),"onChange",m.onChange||!s&&p),t&&{settingType:n}),m.attributes)},d={file:window.rankMathComponents.UploadFile,text:window.rankMathComponents.TextControl,select:window.rankMathComponents.SelectControl,toggle:window.rankMathComponents.ToggleControl,select_search:window.rankMathComponents.SelectWithSearch,multicheck:window.rankMathComponents.CheckboxList,multicheck_inline:window.rankMathComponents.CheckboxList,radio_inline:window.rankMathComponents.ToggleGroupControl,repeatable_group:window.rankMathComponents.RepeatableGroup,selectSearch:window.rankMathComponents.SelectWithSearch,searchPage:window.rankMathComponents.SearchPage,checkboxlist:window.rankMathComponents.CheckboxList,toggleGroup:window.rankMathComponents.ToggleGroupControl,repeatableGroup:window.rankMathComponents.RepeatableGroup,group:window.rankMathComponents.Group,checkbox:window.rankMathComponents.CheckboxControl,textarea:window.rankMathComponents.TextareaControl,notice:window.rankMathComponents.Notice,selectVariable:window.rankMathComponents.SelectVariable,button:window.rankMathComponents.Button}[i],h="group"===i?{onChange:e.updateSetting}:{};return d?wp.element.createElement(d,St({},f(),{settings:r},h)):"component"===i?wp.element.createElement(c,f()):"raw"===i?wp.element.createElement(V.RawHTML,null,l):null})),xt=["relation","compare"];function Dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function It(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null,n=e.relation,r=void 0===n?"or":n,a=e.compare,o=void 0===a?"":a,i=Mt(e,xt),l=function(e){var n=Dt(e,2),r=n[0],a=n[1],i=t[r];return"!="===o?(0,K.isArray)(a)?!(0,K.includes)(a,i):a!==i:(0,K.isArray)(a)?(0,K.includes)(a,i):a===i};return"and"===r?(0,K.every)((0,K.entries)(i),l):(0,K.some)((0,K.entries)(i),l)}(u,a))&&"hidden"!==o){if("raw"===o)return s;var d=vt()("field-row",c,Wt(Wt({"field-disabled":f},"field-id-"+r,r),"field-type-"+o,o));return wp.element.createElement("div",{key:r||n,className:d},i&&wp.element.createElement("div",{className:"field-th"},wp.element.createElement("label",{htmlFor:r},i)),wp.element.createElement("div",{className:"field-td"},wp.element.createElement(Nt,{settingType:t,field:Bt(Bt({},e),{},{isDisabled:f}),settings:a}),l&&wp.element.createElement("p",{className:"field-description",dangerouslySetInnerHTML:{__html:l}}),p))}}))))},zt=function(e){var t=e.type,n=e.header,r=e.footer,a=e.fields,o=void 0===a?[]:a,i=e.settings,l=void 0===i?null:i,c=e.tabs;return(0,K.isEmpty)(l)?null:wp.element.createElement(React.Fragment,null,n&&wp.element.createElement(at,n),wp.element.createElement(Lt,{settingType:t,fields:o,settings:l}),r&&wp.element.createElement(bt,{type:t,footer:r,tabs:c}))};function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ht(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nMin Size: 112Χ112px.
A squared image is preferred by the search engines.","rank-math")},{id:"open_graph_image",type:"file",name:(0,ee.__)("Default Social Share Image","rank-math"),description:(0,ee.__)("When a featured image or an OpenGraph Image is not set for individual posts/pages/CPTs, this image will be used as a fallback thumbnail when your post is shared on Facebook. The recommended image size is 1200 x 630 pixels.","rank-math")}]}(t),(function(e){return e.value=t[e.id],"file"===e.type?e.onChange=function(t){return n(e.id,t.url),n(e.id+"_id",t.id),!0}:e.onChange=function(t){return n(e.id,t)},e}));return wp.element.createElement(React.Fragment,null,!t.isWhitelabel&&wp.element.createElement("div",{className:"rank-math-wizard-tutorial"},wp.element.createElement("header",null,(0,ee.__)("If you are new to Rank Math,","rank-math")," ",wp.element.createElement(te.Button,{variant:"link",onClick:function(){return o((function(e){return!e}))}},(0,ee.__)("click here","rank-math"))," ",(0,ee.__)("to learn more.","rank-math")),a&&wp.element.createElement($t,null)),wp.element.createElement(zt,{fields:i,settings:t}))},Xt=function(e){var t=e.authUrl,n=e.isAuthorized,r=[(0,ee.__)("Verify site ownership on Google Search Console in a single click","rank-math"),(0,ee.__)("Track page and keyword rankings with the Advanced Analytics module","rank-math"),(0,ee.__)("Easily set up Google Analytics without using another 3rd party plugin","rank-math"),(0,ee.__)("Automatically submit sitemaps to the Google Search Console","rank-math"),wp.element.createElement("a",{key:"help-analytics",target:"_blank",rel:"noreferrer",href:Y("help-analytics","SW Analytics Step Benefits")},(0,ee.__)("Learn more about the benefits of connecting your account here.","rank-math"))];return wp.element.createElement(React.Fragment,null,wp.element.createElement("div",{className:"connect-wrap"},n?wp.element.createElement(te.Button,{variant:"primary"},(0,ee.__)("Disconnect Account","rank-math")):wp.element.createElement(te.Button,{href:t,variant:"animate",className:"rank-math-authorize-account"},(0,ee.__)("Connect Google Services","rank-math"))),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"analytics"},wp.element.createElement("div",{className:"rank-math-cta-box width-100 no-shadow no-padding no-border"},wp.element.createElement("h3",null,(0,ee.__)("Benefits of Connecting Google Account","rank-math")),wp.element.createElement("ul",null,(0,K.map)(r,(function(e,t){return wp.element.createElement("li",{key:t},e)}))))),wp.element.createElement(te.PrivacyBox,{className:rankMath.isSettingsPage?"width-100":""}))},Qt=function(e){var t=e.isSiteUrlValid,n=e.activateUrl,r=[(0,ee.__)("Verify site ownership on Google Search Console in a single click","rank-math"),(0,ee.__)("Track page and keyword rankings with the Advanced Analytics module","rank-math"),(0,ee.__)("Easily set up Google Analytics without using another 3rd party plugin","rank-math"),(0,ee.__)("Automatically submit sitemaps to the Google Search Console","rank-math"),(0,ee.__)("Free keyword suggestions when entering a focus keyword","rank-math"),(0,ee.__)("Use our revolutionary SEO Analyzer to scan your website for SEO errors","rank-math"),wp.element.createElement("a",{key:"learn-more",target:"_blank",rel:"noreferrer",href:Y("free-account-benefits","SW Analytics Step")},(0,ee.__)("Learn more about the benefits of connecting your account here.","rank-math"))];return wp.element.createElement(React.Fragment,null,wp.element.createElement(te.InvalidSiteUrlNotice,{isSiteUrlValid:t}),wp.element.createElement("div",{className:"wp-core-ui rank-math-ui connect-wrap"},wp.element.createElement(te.Button,{href:n,variant:"animate",disabled:!t},(0,ee.__)("Connect Your Rank Math Account","rank-math"))),wp.element.createElement("div",{id:"rank-math-pro-cta",className:"analytics"},wp.element.createElement("div",{className:"rank-math-cta-box width-100 no-shadow no-padding no-border"},wp.element.createElement("h3",null,(0,ee.__)("Benefits of Connecting Rank Math Account","rank-math")),wp.element.createElement("ul",null,(0,K.map)(r,(function(e,t){return wp.element.createElement("li",{key:t},e)}))))),wp.element.createElement(te.PrivacyBox,null))},Zt=function(e){var t,n=e.data,r=e.updateData,a=n.searchConsole;return wp.element.createElement(React.Fragment,null,wp.element.createElement("div",{className:"field-row field-type-select"},wp.element.createElement("div",{className:"field-row-col"},wp.element.createElement(te.SelectWithSearch,{value:a.profile,width:268,options:null!==(t=a.sites)&&void 0!==t?t:{},onChange:function(e){a.profile=e,r("searchConsole",a)},label:(0,ee.__)("Site","rank-math"),className:"site-console-profile notrack",disabled:rankMath.isConsoleConnected})),(0,fe.applyFilters)("rank_math_analytics_options_console","",n,r)),wp.element.createElement("div",{className:"field-row field-type-toggle"},wp.element.createElement("div",{className:"field-td"},wp.element.createElement(te.ToggleControl,{checked:a.enable_index_status,disabled:!a.profile,onChange:function(e){a.enable_index_status=e,r("searchConsole",a)},className:"regular-text notrack",label:(0,ee.__)("Enable the Index Status tab","rank-math")}),wp.element.createElement("div",{className:"field-description"},(0,ee.__)("Enable this option to show the Index Status tab in the Analytics module. ","rank-math"),wp.element.createElement("a",{target:"_blank",rel:"noreferrer",href:Y("url-inspection-api","SW Analytics Index Status Option")},(0,ee.__)("Learn more.","rank-math"))))))};function en(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),on.innerHTML=t,t=on.textContent,on.textContent=""),t),classes:"rank-math-reconnect-google",text:(0,ee.__)("Reconnect","rank-math")},{id:"disconnect",link:"#",classes:"rank-math-disconnect-google",text:(0,ee.__)("Disconnect","rank-math")}];return"advanced"===i&&(r||a||o)&&l.push({id:"test_connections",link:"#",classes:"rank-math-test-connection-google",text:(0,ee.__)("Test Connections","rank-math")}),(0,fe.applyFilters)("rank_math/analytics/connect_actions",l)}(t),(function(e){var a=e.id,o=e.link,i=e.text,l=e.classes;return wp.element.createElement("a",{key:i,href:o,className:"button button-link ".concat(l),onClick:function(e){return"disconnect"===a?(e.preventDefault(),confirm((0,ee.__)("Are you sure you want to disconnect Google services from your site?","rank-math"))&&we("disconnect_google").done((function(){window.location.reload()})),!1):"test_connections"===a?(e.preventDefault(),function(e,t,n){var r=(0,fe.applyFilters)("rank_math_test_connections",(0,K.compact)([e.isConsoleConnected&&{id:"search-console",action:"check_console_request"},e.isAnalyticsConnected&&{id:"analytics",action:"check_analytics_request"}]));(0,K.forEach)(r,(function(e){t[e.id]="loading",n(sn({},t)),we(e.action,{},"post").done((function(r){if(r.success)return t[e.id]="success",void n(sn({},t));t[e.id]="failed",n(sn({},t))}))}))}(t,n,r),!1):void 0}},i)})))},pn=function(e){var t=e.reconnectUrl;return wp.element.createElement("p",{className:"warning"},wp.element.createElement("strong",{className:"warning"},(0,ee.__)("Warning: ","rank-math")),wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:(0,ee.sprintf)((0,ee.__)('You have not given the permission to fetch this data. Please reconnect with all required permissions.',"rank-math"),t)}}))};function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nnoindex is useful for avoiding indexation of thin content pages and dilution of page rank. As soon as a post is added, the page is updated to index.","rank-math"),classes:"rank-math-advanced-option"},{id:"nofollow_external_links",type:"toggle",name:(0,ee.__)("Nofollow External Links","rank-math"),desc:(0,ee.__)('Automatically add rel="nofollow" attribute for external links appearing in your posts, pages, and other post types. The attribute is dynamically applied when the content is displayed, and the stored content is not changed.',"rank-math"),classes:"rank-math-advanced-option"},{id:"new_window_external_links",type:"toggle",name:(0,ee.__)("Open External Links in New Tab/Window","rank-math"),desc:(0,ee.__)('Automatically add a target="_blank" attribute to external links appearing in your posts, pages, and other post types. The attributes are applied when the content is displayed, which does not change the stored content.',"rank-math")}],(function(e){return e.value=t[e.id],e.onChange=function(t){return n(e.id,t)},e}));return wp.element.createElement(zt,{fields:r,settings:t})},Cn=wp.url;function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(e)}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=e?"rank-math-"+e:"rank-math",t=xn(xn({},t),{},{page:e}),(0,Cn.addQueryArgs)(rankMath.adminurl,t)},Mn=[rankMath.isPro?{icon:"video-alt3",href:Y("yt-link","SW Ready Step Upgrade"),text:(0,ee.__)("Subscribe to Our YouTube Channel","rank-math")}:{icon:"star-filled pro",href:Y("pro","SW Ready Step Upgrade"),text:wp.element.createElement("strong",{className:"pro-label"},(0,ee.__)("Know more about the PRO version","rank-math"))},{icon:"facebook",href:Y("fb-group","SW Ready Step Upgrade"),text:(0,ee.__)("Join FREE Facebook Group","rank-math")},{icon:"welcome-learn-more",href:Y("kb-seo-suite","SW Ready Step KB"),text:(0,ee.__)("Rank Math Knowledge Base","rank-math")},{icon:"sos",href:Y("support","SW Ready Step Support"),text:(0,ee.__)("Get 24x7 Support","rank-math")}],In=function(e){var t=e.data,n=e.skipStep,r=t.scoreImg,a=t.dashboardUrl,o=t.isWhitelabel,i="advanced"===t.setup_mode;return o?wp.element.createElement(React.Fragment,null,wp.element.createElement("p",null,(0,ee.__)("Your site is now optimized","rank-math")),wp.element.createElement("footer",{className:"form-footer wp-core-ui rank-math-ui"},wp.element.createElement(te.Button,{href:Tn("options-general"),variant:"primary"},(0,ee.__)("Proceed to Settings","rank-math")))):wp.element.createElement(React.Fragment,null,wp.element.createElement("div",{className:"wizard-next-steps wp-clearfix"},wp.element.createElement("div",{className:"score-100"},wp.element.createElement("a",{target:"_blank",rel:"noreferrer",href:Y("score-100","SW Ready Score Image")},wp.element.createElement("img",{src:r,alt:(0,ee.__)("Score 100","rank-math")}))),wp.element.createElement("div",{className:"learn-more"},wp.element.createElement("h2",null,(0,ee.__)("Learn more","rank-math")),wp.element.createElement("ul",null,(0,K.map)(Mn,(function(e){var t=e.icon,n=e.href,r=e.text;return wp.element.createElement("li",{key:r},wp.element.createElement("span",{className:"dashicons dashicons-".concat(t)}),wp.element.createElement("a",{href:n,target:"_blank",rel:"noreferrer"},r))}))))),wp.element.createElement("footer",{className:"form-footer wp-core-ui rank-math-ui"},wp.element.createElement(te.Button,{variant:i?"secondary":"primary",className:i?"rank-math-return-dashboard":"rank-math-advanced-option",href:a},(0,ee.__)("Return to dashboard","rank-math")),wp.element.createElement(te.Button,{variant:"secondary",href:Tn("",{view:"help"})},(0,ee.__)("Proceed to Help Page","rank-math","rank-math")),i&&wp.element.createElement(te.Button,{variant:"primary",className:"rank-math-advanced-option",onClick:n},(0,ee.__)("Setup Advanced Options","rank-math"))))},Rn=function(e){var t=e.data,n=e.updateData,r=e.saveData,a=e.skipStep,o=t.isWhitelabel;return wp.element.createElement(React.Fragment,null,wp.element.createElement("header",null,wp.element.createElement("h1",null,wp.element.createElement("i",{className:"dashicons dashicons-yes"})," ",(0,ee.__)("Your site is ready! ","rank-math"),wp.element.createElement(te.SocialShare,{isWhitelabel:o}))),wp.element.createElement("div",{className:"rank-math-additional-options"},wp.element.createElement("div",{className:"rank-math-auto-update-wrapper"},wp.element.createElement("h3",null,(0,ee.__)("Enable auto update of the plugin","rank-math")),wp.element.createElement(te.ToggleControl,{checked:t.enable_auto_update,onChange:function(e){n("enable_auto_update",e),r()}}))),wp.element.createElement("br",{className:"clear"}),wp.element.createElement(In,{data:t,skipStep:a}))},Un=function(e){var t=e.data,n=e.updateData,r=(0,K.map)(function(e){var t=e.roles,n=e.capabilities,r=(0,K.map)((0,K.keys)(n),(function(e){return{id:e,label:n[e]}})),a=[{id:"role_manager",type:"toggle",name:(0,ee.__)("Role Manager","rank-math"),desc:(0,ee.__)("The Role Manager allows you to use WordPress roles to control which of your site users can have edit or view access to Rank Math's settings.","rank-math")}];return(0,K.forEach)((0,K.keys)(t),(function(o){var i,l=(null===(i=e[o])||void 0===i?void 0:i.length)===(0,K.keys)(n).length;a.push({options:r,id:o,name:t[o],type:"multicheck_inline",toggleAll:!0,dep:{role_manager:!0},classes:"field-big-labels ".concat(l?"multicheck-checked":"")})})),a}(t),(function(e){return e.value=t[e.id],e.onChange=function(t){return n(e.id,t)},e}));return wp.element.createElement(zt,{fields:r,settings:t})},Fn=function(e){var t=e.data,n=e.updateData,r=(0,K.map)([{id:"404_monitor_title",type:"raw",content:wp.element.createElement("div",{key:"monitor-header",className:"field-row monitor-header text-center"},wp.element.createElement("h1",null,(0,ee.__)("404 Monitor","rank-math")),wp.element.createElement("div",{className:"monitor-desc text-center"},(0,ee.__)("Set default values for the 404 error monitor here.","rank-math")))},{id:"404-monitor",type:"toggle",name:(0,ee.__)("404 Monitor","rank-math"),desc:(0,ee.__)("The 404 monitor will let you see if visitors or search engines bump into any 404 Not Found error while browsing your site.","rank-math")},{id:"redirection_title",type:"raw",content:wp.element.createElement("div",{key:"redirections-header",className:"field-row redirections-header text-center",style:{borderTop:0}},wp.element.createElement("br",null),wp.element.createElement("h1",null,(0,ee.__)("Redirections","rank-math")),wp.element.createElement("div",{className:"redirections-desc text-center"},(0,ee.__)("Set default values for the redirection module from here. ","rank-math"),wp.element.createElement("a",{target:"_blank",rel:"noreferrer",href:Y("redirections","SW Redirection Step")},(0,ee.__)("Learn more about Redirections.","rank-math"))))},{id:"redirections",type:"toggle",name:(0,ee.__)("Redirections","rank-math"),desc:(0,ee.__)("Set up temporary or permanent redirections. Combined with the 404 monitor, you can easily redirect faulty URLs on your site, or add custom redirections.","rank-math")}],(function(e){return e.value=t[e.id],e.onChange=function(t){return n(e.id,t)},e}));return wp.element.createElement(zt,{fields:r,settings:t})};function Bn(e){return Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bn(e)}function Wn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Bn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Bn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Bn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ln=function(e){var t=[{id:"rich_snippet",type:"toggle",name:(0,ee.__)("Schema Type","rank-math"),desc:(0,ee.__)("Use automatic structured data to mark up content, to help Google better understand your content's context for display in Search. You can set different defaults for your posts here.","rank-math")}];return(0,K.forEach)((0,K.values)(e.accessiblePostTypes),(function(n){if("attachment"!==n){t.push(function(e,t){var n="pt_".concat(e,"_default_rich_snippet"),r=(0,ee.sprintf)((0,ee.__)("Schema Type for %s","rank-math"),(0,K.capitalize)(e)+"s");return"product"===e?{id:n,type:"radio_inline",name:r,desc:(0,ee.__)("Default rich snippet selected when creating a new product.","rank-math"),options:{off:(0,ee.__)("None","rank-math"),product:(0,ee.__)("Product","rank-math")}}:{id:n,type:2===(0,K.values)(t).length?"radio_inline":"select_search",name:r,desc:(0,ee.__)("Default rich snippet selected when creating a new post of this type.","rank-math"),options:t,dep:{rich_snippet:!0}}}(n,e.schemaTypes));var r=Wn({relation:"and",rich_snippet:!0},"pt_".concat(n,"_default_rich_snippet"),"article"),a="person"===e.knowledgegraph_type?'

'.concat((0,ee.sprintf)((0,ee.__)('Google does not allow Person as the Publisher for articles. Organization will be used instead. You can read more about this here.',"rank-math"),Y("google-article-schema")),"

"):void 0;t.push({id:"pt_".concat(n,"_default_article_type"),type:"radio_inline",name:(0,ee.__)("Article Type","rank-math"),options:{Article:(0,ee.__)("Article","rank-math"),BlogPosting:(0,ee.__)("Blog Post","rank-math"),NewsArticle:(0,ee.__)("News Article","rank-math")},dep:r,desc:a})}})),t},zn=function(e){var t=e.data,n=e.updateData,r=(0,K.map)(Ln(t),(function(e){return e.value=t[e.id],e.onChange=function(t){return n(e.id,t)},e}));return wp.element.createElement(zt,{fields:r,settings:t})};function Gn(e){return Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gn(e)}function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:ir,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?ar(ar({},e),{},or({},t.key,t.value)):e}function cr(e,t){return e.appUi[t]}var sr;(0,q.register)((0,q.createReduxStore)("rank-math-setup-wizard",{reducer:(0,q.combineReducers)(t),selectors:r,actions:e}));sr=function(){(0,V.createRoot)(document.getElementById("rank-math-wizard-wrapper")).render(wp.element.createElement(React.Fragment,null,wp.element.createElement($,null),wp.element.createElement(L,null,wp.element.createElement(Kn,null))))},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",sr):sr())}()}();