You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
7 months ago
|
!function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=jQuery,n=e.n(t),a=lodash,r=wp.i18n,l=wp.element,o=wp.components,i=React;function c(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function s(e,t){let n,a,r=[];for(let l=0;l<e.length;l++){const o=e[l];if("string"!==o.type){if(void 0===t[o.value])throw new Error(`Invalid interpolation, missing component node: \`${o.value}\``);if("object"!=typeof t[o.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${o.value}\``);if("componentClose"===o.type)throw new Error(`Missing opening component token: \`${o.value}\``);if("componentOpen"===o.type){n=t[o.value],a=l;break}r.push(t[o.value])}else r.push(o.value)}if(n){const l=function(e,t){const n=t[e];let a=0;for(let r=e+1;r<t.length;r++){const e=t[r];if(e.value===n.value){if("componentOpen"===e.type){a++;continue}if("componentClose"===e.type){if(0===a)return r;a--}}}throw new Error("Missing closing component token `"+n.value+"`")}(a,e),o=s(e.slice(a+1,l),t),c=(0,i.cloneElement)(n,{},o);if(r.push(c),l<e.length-1){const n=s(e.slice(l+1),t);r=r.concat(n)}}return r=r.filter(Boolean),0===r.length?null:1===r.length?r[0]:(0,i.createElement)(i.Fragment,null,...r)}function m(e){const{mixedString:t,components:n,throwErrors:a}=e;if(!n)return t;if("object"!=typeof n){if(a)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const r=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(c)}(t);try{return s(r,n)}catch(e){if(a)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}var u=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===(0,a.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),m({mixedString:r,components:n})},p=function(e,t){"free"===rankMath.contentAIPlan&&(t+="+Free+Plan");var n=new URLSearchParams({utm_source:"Plugin",utm_medium:t,utm_campaign:"WP"});return(0,a.includes)(e,"?")||(e+="?"),e+n.toString()},h=function(e){var t=e.width,n=void 0===t?40:t,a=e.showProNotice,l=void 0!==a&&a,i=e.isBulkEdit,c=void 0!==i&&i,s=e.isResearch,m=void 0!==s&&s;if(l)return function(e){return wp.element.createElement("div",{id:"rank-math-pro-cta",className:"center rank-math-content-ai-warning-wrapper"},wp.element.createElement("div",{className:"rank-math-cta-box blue-ticks top-20 less-padding "+e},wp.element.createElement("h3",null,(0,r.__)("🔒 This is a PRO-Only Feature","rank-math")),wp.element.createElement("p",null,(0,r.__)("We are sorry but this feature is only available to Rank Math PRO/Business/Agency Users. Unlock this feature and many more by getting a Rank Math plan.","rank-math")),wp.element.createElement("ul",null,wp.element.createElement("li",null,(0,r.__)("Bulk Edit SEO Tags","rank-math")),wp.element.createElement("li",null,(0,r.__)("Advanced Google Analytics 4 Integration","rank-math")),wp.element.createElement("li",null,(0,r.__)("Keyword Rank Tracker","rank-math")),wp.element.createElement("li",null,(0,r.__)("Free Content AI Trial","rank-math")),wp.element.createElement("li",null,(0,r.__)("SEO Performance Email Reports","rank-math"))),wp.element.createElement(o.Button,{href:rankMath.links.pro,target:"_blank",className:"button button-primary is-green"},(0,r.__)("Learn More","rank-math"))))}(n);var h=rankMath.isUserRegistered,d=rankMath.contentAIPlan,k="free"===d,f=rankMath.contentAICredits>0,v=rankMath.contentAiMigrating;if(f&&m&&!k&&rankMath.contentAICredits<500&&(f=!1),h&&d&&f&&!v&&!k)return null;var _,g="width-"+n;return!h||!d||f&&k?wp.elem
|