Version Description
Download this release
Release Info
Developer | rankmath |
Plugin | WordPress SEO Plugin – Rank Math |
Version | 1.0.52.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.52.2 to 1.0.52.3
- assets/admin/js/acf-analysis.js +1 -1
- assets/admin/js/blocks.js +1 -1
- assets/admin/js/classic.js +1 -1
- assets/admin/js/common.js +1 -1
- assets/admin/js/custom-fields.js +1 -1
- assets/admin/js/dashboard.js +1 -1
- assets/admin/js/elementor.js +1 -1
- assets/admin/js/feedback.js +1 -1
- assets/admin/js/glue-custom-fields.js +1 -1
- assets/admin/js/gutenberg-formats.js +1 -1
- assets/admin/js/gutenberg-primary-term.js +1 -1
- assets/admin/js/gutenberg.js +1 -1
- assets/admin/js/import-export.js +1 -1
- assets/admin/js/option-panel.js +1 -1
- assets/admin/js/post-list.js +1 -1
- assets/admin/js/product-description.js +1 -1
- assets/admin/js/validate.js +1 -1
- assets/admin/js/wizard.js +1 -1
- assets/admin/js/wplink.js +1 -1
- includes/admin/class-api.php +1 -1
- includes/class-frontend-seo-score.php +1 -1
- includes/helpers/class-choices.php +4 -0
- includes/helpers/class-wordpress.php +5 -1
- includes/modules/analytics/class-analytics-common.php +16 -0
- includes/modules/analytics/class-analytics.php +6 -0
- includes/modules/analytics/class-data-fetcher.php +0 -1
- includes/modules/analytics/class-installer.php +3 -3
- includes/modules/analytics/class-watcher.php +1 -1
- includes/modules/analytics/google/class-api.php +1 -1
- includes/modules/schema/assets/js/schema-classic.js +0 -1
assets/admin/js/acf-analysis.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=77)}({1:function(e,t){e.exports=lodash},2:function(e,t){e.exports=jQuery},6:function(e,t){e.exports=wp.hooks},77:function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),i=n(1),c=function(e){var t=function(e){var t=Object(i.find)(rankMath.acf.headlines,(function(t,n){return e.key===n}));return t&&(t=parseInt(t,10)),(t<1||t>6)&&(t=!1),t}(e);return e.content=t?"<h"+t+">"+e.content+"</h"+t+">":"<p>"+e.content+"</p>",e},u=function(e){var t=e.$el.find("textarea")[0],n=t.id,r=t.value;return function(e){return"undefined"!=typeof tinyMCE&&void 0!==tinyMCE.editors&&0!==tinyMCE.editors.length&&null!==tinyMCE.get(e)&&!tinyMCE.get(e).isHidden()}(n)&&(r=tinyMCE.get(n)&&tinyMCE.get(n).getContent()||""),r};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache={}}var t,n,r;return t=e,(n=[{key:"refresh",value:function(e){var t=this,n=this.getUncached(e);0!==n.length&&window.wp.ajax.post("query-attachments",{query:{post__in:n}}).done((function(e){Object(i.each)(e,(function(e){t.setCache(e.id,e),window.RankMathACFAnalysis.refresh()}))}))}},{key:"get",value:function(e){var t=this.getCache(e);if(!t)return!1;var n=window.wp.media.attachment(e);return n.has("alt")&&(t.alt=n.get("alt")),n.has("title")&&(t.title=n.get("title")),t}},{key:"getAttachmentContent",value:function(e){var t="";if(l.get(e,"attachment")){var n=l.get(e,"attachment");t+='<img src="'+n.url+'" alt="'+n.alt+'" title="'+n.title+'">'}return t}},{key:"setCache",value:function(e,t){this.cache[e]=t}},{key:"getCache",value:function(e){return e in this.cache&&this.cache[e]}},{key:"getUncached",value:function(e){var t=this;return(e=Object(i.uniq)(e)).filter((function(e){return!1===t.get(e)}))}}])&&o(t.prototype,n),r&&o(t,r),e}());function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p={text:function(e){return e=Object(i.map)(e,(function(e){return"text"!==e.type?e:(e.content=e.$el.find("input[type=text][id^=acf]").val(),e=c(e))}))},textarea:function(e){return e=Object(i.map)(e,(function(e){return"textarea"!==e.type||(e.content="<p>"+e.$el.find("textarea[id^=acf]").val()+"</p>"),e}))},email:function(e){return e=Object(i.map)(e,(function(e){return"email"!==e.type||(e.content=e.$el.find("input[type=email][id^=acf]").val()),e}))},url:function(e){return e=Object(i.map)(e,(function(e){if("url"!==e.type)return e;var t=e.$el.find("input[type=url][id^=acf]").val();return e.content=t?'<a href="'+t+'">'+t+"</a>":"",e}))},link:function(e){return Object(i.map)(e,(function(e){if("link"!==e.type)return e;var t=e.$el.find("input[type=hidden].input-title").val(),n=e.$el.find("input[type=hidden].input-url").val(),r=e.$el.find("input[type=hidden].input-target").val();return e.content='<a href="'+n+'" target="'+r+'">'+t+"</a>",e}))},wysiwyg:function(e){return e=Object(i.map)(e,(function(e){return"wysiwyg"!==e.type||(e.content=u(e)),e}))},image:function(e){var t=[];return e=Object(i.map)(e,(function(e){if("image"!==e.type)return e;e.content="";var n=e.$el.find("input[type=hidden]").val();return t.push(n),e.content+=l.getAttachmentContent(n),e})),l.refresh(t),e},gallery:function(e){var t=[];return e=Object(i.map)(e,(function(e){return"gallery"!==e.type||(e.content="",e.$el.find(".acf-gallery-attachment input[type=hidden]").each((function(){var n=a()(this).val();t.push(n),e.content+=l.getAttachmentContent(n)}))),e})),l.refresh(t),e},taxonomy:function(e){return e=Object(i.map)(e,(function(e){if("taxonomy"!==e.type)return e;var t=[];if(e.$el.find('.acf-taxonomy-field[data-type="multi_select"]').length>0){var n=acf.select2.version>=4?"select":"input";t=Object(i.map)(e.$el.find('.acf-taxonomy-field[data-type="multi_select"] '+n).select2("data"),"text")}else e.$el.find('.acf-taxonomy-field[data-type="checkbox"]').length>0?t=Object(i.map)(e.$el.find('.acf-taxonomy-field[data-type="checkbox"] input[type="checkbox"]:checked').next(),"textContent"):e.$el.find("input[type=checkbox]:checked").length>0?t=Object(i.map)(e.$el.find("input[type=checkbox]:checked").parent(),"textContent"):e.$el.find("select option:checked").length>0&&(t=Object(i.map)(e.$el.find("select option:checked"),"textContent"));return(t=Object(i.map)(t,(function(e){return e.trim()}))).length>0&&(e.content="<ul>\n<li>"+t.join("</li>\n<li>")+"</li>\n</ul>"),e}))}},h=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"getFieldContent",value:function(){var e=this.excludeNames(this.excludeTypes(this.getData())),t=Object(i.uniq)(Object(i.map)(e,"type"));return a.a.each(t,(function(t,n){n in p&&(e=p[n](e))})),e}},{key:"append",value:function(e){var t=this.getFieldContent();return Object(i.each)(t,(function(t){void 0!==t.content&&""!==t.content&&(e+="\n"+t.content)})),e}},{key:"getData",value:function(){var e=["flexible_content","repeater","group"],t=[],n=[],r=Object(i.map)(acf.get_fields(),(function(r){var i=a.a.extend(!0,{},acf.get_data(a()(r)));return i.$el=a()(r),i.post_meta_key=i.name,-1===e.indexOf(i.type)?t.push(i):n.push(i),i}));return 0===n.length||Object(i.each)(t,(function(e){Object(i.each)(n,(function(t){a.a.contains(t.$el[0],e.$el[0])&&("flexible_content"!==t.type&&"repeater"!==t.type||(t.children=t.children||[],t.children.push(e),e.parent=t,e.post_meta_key=t.name+"_"+(t.children.length-1)+"_"+e.name),"group"===t.type&&(t.children=[e],e.parent=t,e.post_meta_key=t.name+"_"+e.name))}))})),r}},{key:"excludeTypes",value:function(e){return Object(i.filter)(e,(function(e){return!Object(i.includes)(rankMath.acf.blacklistTypes,e.type)}))}},{key:"excludeNames",value:function(e){return Object(i.filter)(e,(function(e){return!Object(i.includes)(rankMath.acf.names,e.name)}))}}])&&f(t.prototype,n),r&&f(t,r),e}()),s=n(6);function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analysisTimeout=0,this.maybeRefresh=this.maybeRefresh.bind(this),this.refresh=Object(i.debounce)(this.maybeRefresh,rankMath.acf.refreshRate),Object(s.addFilter)("rank_math_content","rank-math",h.append.bind(h)),a()(".acf-field").on("change",(function(){t.refresh()}))}var t,n,r;return t=e,(n=[{key:"maybeRefresh",value:function(){rankMathEditor.refresh("content")}}])&&d(t.prototype,n),r&&d(t,r),e}();window.RankMathACFAnalysis=new y}});
|
assets/admin/js/blocks.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=74)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},10:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var i=a.apply(null,r);i&&e.push(i)}else if("object"===o)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},12:function(e,t){e.exports=wp.blockEditor},20:function(e,t){e.exports=wp.blocks},3:function(e,t){e.exports=wp.components},4:function(e,t){e.exports=wp.data},5:function(e,t){e.exports=wp.element},6:function(e,t){e.exports=wp.hooks},74:function(e,t,n){"use strict";n.r(t);var r=n(1),a=n(20),o=wp.element.createElement("svg",{viewBox:"0 0 462.03 462.03",xmlns:"http://www.w3.org/2000/svg",width:"20"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"}),wp.element.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"}))),i=n(0),l={attributes:{questions:[{visible:!0,titleWrapper:"div",title:"Question",content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}]}},s=n(5),c=n(3),u=n(12),p=n(4);function m(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=Object(p.withSelect)((function(e,t){var n=(0,e("core/block-editor").getSettings)().imageSizes;return f(f({},t),{},{imageSizes:n})}))((function(e){var t=e.imageSizes,n=e.attributes,a=e.setAttributes,o=function(e){return Object(r.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}(t);return wp.element.createElement(u.InspectorControls,{key:"inspector"},wp.element.createElement(c.PanelBody,{title:Object(i.__)("FAQ Options","rank-math")},wp.element.createElement(c.SelectControl,{label:Object(i.__)("List Style","rank-math"),value:n.listStyle,options:[{value:"",label:Object(i.__)("None","rank-math")},{value:"numbered",label:Object(i.__)("Numbered","rank-math")},{value:"unordered",label:Object(i.__)("Unordered","rank-math")}],onChange:function(e){a({listStyle:e})}}),wp.element.createElement(c.SelectControl,{label:Object(i.__)("Title Wrapper","rank-math"),value:n.titleWrapper,options:[{value:"h2",label:Object(i.__)("H2","rank-math")},{value:"h3",label:Object(i.__)("H3","rank-math")},{value:"h4",label:Object(i.__)("H4","rank-math")},{value:"h5",label:Object(i.__)("H5","rank-math")},{value:"h6",label:Object(i.__)("H6","rank-math")},{value:"p",label:Object(i.__)("P","rank-math")},{value:"div",label:Object(i.__)("DIV","rank-math")}],onChange:function(e){a({titleWrapper:e})}}),wp.element.createElement(c.SelectControl,{label:Object(i.__)("Image Size","rank-math"),value:n.sizeSlug,options:o,onChange:function(e){a({sizeSlug:e})}})),wp.element.createElement(c.PanelBody,{title:Object(i.__)("Styling Options","rank-math")},wp.element.createElement(c.TextControl,{label:Object(i.__)("Title Wrapper CSS Class(es)","rank-math"),value:n.titleCssClasses,onChange:function(e){a({titleCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(i.__)("Content Wrapper CSS Class(es)","rank-math"),value:n.contentCssClasses,onChange:function(e){a({contentCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(i.__)("List CSS Class(es)","rank-math"),value:n.listCssClasses,onChange:function(e){a({listCssClasses:e})}})))})),y=n(10),d=n.n(y);function g(e,t){var n=Object(p.select)("core").getMedia,a=e?n(e):null;return null===a?null:t?function(e,t){return Object(r.get)(e,["media_details","sizes",t,"source_url"])||Object(r.get)(e,["media_details","sizes","full","source_url"])}(a,t):a}var v=Object(p.withSelect)((function(e,t){var n=t.imageID,r=t.sizeSlug;return{imageUrl:n?g(n,r):null}}))((function(e){var t=e.imageUrl;return t?wp.element.createElement("img",{src:t,alt:""}):null})),k=function(e){var t=e.imageID,n=e.sizeSlug,r=e.open,a=e.removeImage,o=e.addButtonLabel,l=void 0===o?Object(i.__)("Add Image","rank-math"):o;return wp.element.createElement("div",{className:"rank-math-media-placeholder"},t>0&&wp.element.createElement(v,{imageID:t,sizeSlug:n}),t>0?wp.element.createElement(c.Button,{icon:"edit",className:"rank-math-replace-image",onClick:r}):wp.element.createElement(c.Button,{onClick:r,className:"rank-math-add-image",isPrimary:!0,isLarge:!0},l),t>0&&wp.element.createElement(c.Button,{icon:"no-alt",className:"rank-math-delete-image",onClick:a}))};function _(e){return(_="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})(e)}function O(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(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 w(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var a=P(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(o,e);var t,n,r,a=E(o);function o(){var e;j(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).toggleVisibility=function(){var t=e.props,n=t.setAttributes,r=t.index,a=O(e.props.questions);a[r].visible=!e.props.visible,n({questions:a})},e.deleteQuestion=function(){var t=e.props,n=t.setAttributes,r=t.index,a=O(e.props.questions);a.splice(r,1),n({questions:a})},e}return t=o,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.title,r=t.content,a=t.visible,o=t.imageID,l=t.sizeSlug,s=t.titleWrapper,p=t.titleCssClasses,m=t.contentCssClasses,f=d()("rank-math-question-wrapper",{"question-not-visible":!a});return wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"rank-math-block-actions"},wp.element.createElement(c.Button,{className:"rank-math-item-visbility",icon:a?"visibility":"hidden",onClick:this.toggleVisibility,title:Object(i.__)("Hide Question","rank-math")}),wp.element.createElement(c.Button,{icon:"trash",className:"rank-math-item-delete",onClick:this.deleteQuestion,title:Object(i.__)("Delete Question","rank-math")})),wp.element.createElement(u.RichText,{tagName:s,className:"rank-math-faq-question rank-math-block-title"+p,value:n,onChange:function(t){e.setQuestionProp("title",t)},keepPlaceholderOnFocus:!0,placeholder:Object(i.__)("Question…","rank-math")}),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:o,render:function(t){var n=t.open;return wp.element.createElement(k,{imageID:o,sizeSlug:l,open:n,removeImage:function(){e.setQuestionProp("imageID",0)}})},onSelect:function(t){e.setQuestionProp("imageID",t.id)}}),wp.element.createElement(u.RichText,{tagName:"div",className:"rank-math-faq-answer "+m,value:r,onChange:function(t){e.setQuestionProp("content",t)},keepPlaceholderOnFocus:!0,placeholder:Object(i.__)("Enter the answer to the question","rank-math")}))}},{key:"setQuestionProp",value:function(e,t){var n=this.props,r=n.setAttributes,a=n.index,o=O(this.props.questions);o[a][e]=t,r({questions:o})}}])&&S(t.prototype,n),r&&S(t,r),o}(s.Component),N=function(e){return"".concat(e,"-").concat((new Date).getTime())};function D(e){return(D="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})(e)}function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function I(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return R(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 R(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 R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q(e);if(t){var a=Q(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return W(this,n)}}function W(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(l,e);var t,n,a,o=B(l);function l(){var e;q(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).addNew=function(){var t=I(e.props.attributes.questions);t.push({id:N("faq-question"),title:"",content:"",visible:!0}),e.props.setAttributes({questions:t})},e}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,a=this.props.attributes.textAlign;return wp.element.createElement("div",{id:"rank-math-faq",className:"rank-math-block "+n},r&&wp.element.createElement(h,this.props),r&&wp.element.createElement(s.Fragment,null,wp.element.createElement(u.BlockControls,null,wp.element.createElement(u.AlignmentToolbar,{value:a,onChange:function(t){return e.props.setAttributes({textAlign:t})}}))),wp.element.createElement("ul",{style:{textAlign:a}},this.renderQuestions()),wp.element.createElement(c.Button,{isPrimary:!0,isLarge:!0,onClick:this.addNew},Object(i.__)("Add New FAQ","rank-math")),wp.element.createElement("a",{href:"https://rankmath.com/kb/faq-schema-block/",rel:"noopener noreferrer",target:"_blank",title:Object(i.__)("More Info","rank-math"),className:"rank-math-block-info"},wp.element.createElement(c.Dashicon,{icon:"info"})))}},{key:"renderQuestions",value:function(){var e=this,t=this.props.attributes,n=t.sizeSlug,a=t.titleWrapper,o=t.titleCssClasses,i=t.contentCssClasses,l=this.props.attributes.questions;return Object(r.isEmpty)(l)&&(l=[{id:N("faq-question"),title:"",content:"",visible:!0}]),l.map((function(t,r){return wp.element.createElement("li",{key:t.id},wp.element.createElement(x,T({},t,{index:r,key:t.id+"-question",questions:l,setAttributes:e.props.setAttributes,sizeSlug:n,titleWrapper:a,titleCssClasses:o,contentCssClasses:i})))}))}}])&&z(t.prototype,n),a&&z(t,a),l}(s.Component),F={from:[{type:"block",blocks:["yoast/faq-block"],transform:function(e){var t={titleWrapper:"h3",questions:e.questions.map((function(e){return{title:e.jsonQuestion,content:e.jsonAnswer,visible:!0}})),className:e.className};return Object(a.createBlock)("rank-math/faq-block",t)}}]},L=function(e){var t=e.attributes,n=t.questions,a=t.titleWrapper;return Object(r.isEmpty)(n)?null:wp.element.createElement("div",null,n.map((function(e,t){return Object(r.isEmpty)(e.title)||Object(r.isEmpty)(e.content)||!1===e.visible?null:wp.element.createElement("div",{className:"rank-math-faq-item",key:t},wp.element.createElement(u.RichText.Content,{tagName:a,value:e.title,className:"rank-math-question"}),wp.element.createElement(u.RichText.Content,{tagName:"div",value:e.content,className:"rank-math-answer"}))})))},U=n(6),V={attributes:{steps:[{visible:!0,titleWrapper:"div",title:"Step # 1",content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}]}};function $(e){return($="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})(e)}function Y(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return G(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 G(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 G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var a=te(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==$(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(o,e);var t,n,r,a=Z(o);function o(){var e;J(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).toggleVisibility=function(){var t=e.props,n=t.setAttributes,r=t.index,a=Y(e.props.steps);a[r].visible=!e.props.visible,n({steps:a})},e.deleteStep=function(){var t=e.props,n=t.setAttributes,r=t.index,a=Y(e.props.steps);a.splice(r,1),n({steps:a})},e}return t=o,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.title,r=t.content,a=t.visible,o=t.imageID,l=t.sizeSlug,s=t.titleWrapper,p=t.titleCssClasses,m=t.contentCssClasses,f=d()("rank-math-step-wrapper",{"step-not-visible":!a});return wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"rank-math-block-actions"},wp.element.createElement(c.Button,{className:"rank-math-item-visbility",icon:a?"visibility":"hidden",onClick:this.toggleVisibility,title:Object(i.__)("Hide Step","rank-math")}),wp.element.createElement(c.Button,{icon:"trash",className:"rank-math-item-delete",onClick:this.deleteStep,title:Object(i.__)("Delete Step","rank-math")})),wp.element.createElement(u.RichText,{tagName:s,className:"rank-math-howto-step-title rank-math-block-title"+p,value:n,onChange:function(t){e.setStepProp("title",t)},keepPlaceholderOnFocus:!0,placeholder:Object(i.__)("Enter a step title","rank-math")}),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:o,render:function(t){var n=t.open;return wp.element.createElement(k,{imageID:o,sizeSlug:l,open:n,addButtonLabel:Object(i.__)("Add Step Image","rank-math"),removeImage:function(){e.setStepProp("imageID",0)}})},onSelect:function(t){e.setStepProp("imageID",t.id)}}),wp.element.createElement(u.RichText,{tagName:"div",className:"rank-math-howto-step-content"+m,value:r,onChange:function(t){e.setStepProp("content",t)},keepPlaceholderOnFocus:!0,placeholder:Object(i.__)("Enter a step description","rank-math")}))}},{key:"setStepProp",value:function(e,t){var n=this.props,r=n.setAttributes,a=n.index,o=Y(this.props.steps);o[a][e]=t,r({steps:o})}}])&&K(t.prototype,n),r&&K(t,r),o}(s.Component);function re(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ie=Object(p.withSelect)((function(e,t){var n=(0,e("core/block-editor").getSettings)().imageSizes;return ae(ae({},t),{},{imageSizes:n})}))((function(e){var t=e.imageSizes,n=e.attributes,a=e.setAttributes,o=function(e){return Object(r.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}(t);return wp.element.createElement(u.InspectorControls,{key:"inspector"},wp.element.createElement(c.PanelBody,{title:Object(i.__)("HowTo Options","rank-math")},wp.element.createElement(c.SelectControl,{label:Object(i.__)("List Style","rank-math"),value:n.listStyle,options:[{value:"",label:Object(i.__)("None","rank-math")},{value:"numbered",label:Object(i.__)("Numbered","rank-math")},{value:"unordered",label:Object(i.__)("Unordered","rank-math")}],onChange:function(e){a({listStyle:e})}}),wp.element.createElement(c.SelectControl,{label:Object(i.__)("Title Wrapper","rank-math"),value:n.titleWrapper,options:[{value:"h2",label:Object(i.__)("H2","rank-math")},{value:"h3",label:Object(i.__)("H3","rank-math")},{value:"h4",label:Object(i.__)("H4","rank-math")},{value:"h5",label:Object(i.__)("H5","rank-math")},{value:"h6",label:Object(i.__)("H6","rank-math")},{value:"p",label:Object(i.__)("P","rank-math")},{value:"div",label:Object(i.__)("DIV","rank-math")}],onChange:function(e){a({titleWrapper:e})}}),wp.element.createElement(c.SelectControl,{label:Object(i.__)("Main Image Size","rank-math"),value:n.mainSizeSlug,options:o,onChange:function(e){a({mainSizeSlug:e})}}),wp.element.createElement(c.SelectControl,{label:Object(i.__)("Image Size","rank-math"),value:n.sizeSlug,options:o,onChange:function(e){a({sizeSlug:e})}})),wp.element.createElement(c.PanelBody,{title:Object(i.__)("Styling Options","rank-math")},wp.element.createElement(c.TextControl,{label:Object(i.__)("Step Title Wrapper CSS Class(es)","rank-math"),value:n.titleCssClasses,onChange:function(e){a({titleCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(i.__)("Step Content Wrapper CSS Class(es)","rank-math"),value:n.contentCssClasses,onChange:function(e){a({contentCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(i.__)("Step List CSS Class(es)","rank-math"),value:n.listCssClasses,onChange:function(e){a({listCssClasses:e})}})))}));function le(e){return(le="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})(e)}function se(){return(se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ce(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ue(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 ue(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 ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye(e);if(t){var a=ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return he(this,n)}}function he(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de,ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fe(e,t)}(l,e);var t,n,a,o=be(l);function l(){var e;pe(this,l);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=o.call.apply(o,[this].concat(n))).addNew=function(){var t=e.props.attributes.steps,n=Object(r.isEmpty)(t)?[]:ce(t);n.push({id:N("howto-step"),title:"",content:"",visible:!0}),e.props.setAttributes({steps:n})},e.toggleDuration=function(){e.props.setAttributes({hasDuration:!e.props.attributes.hasDuration})},e.onSelectImage=function(t){(0,e.props.setAttributes)({imageID:t.id})},e.removeImage=function(){(0,e.props.setAttributes)({imageID:0})},e}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,a=t.attributes,o=t.setAttributes,l=a.imageID,p=a.mainSizeSlug,m=a.textAlign;return wp.element.createElement("div",{id:"rank-math-howto",className:"rank-math-block "+n},r&&wp.element.createElement(ie,this.props),r&&wp.element.createElement(s.Fragment,null,wp.element.createElement(u.BlockControls,null,wp.element.createElement(u.AlignmentToolbar,{value:m,onChange:function(t){return e.props.setAttributes({textAlign:t})}}))),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:l,render:function(t){var n=t.open;return wp.element.createElement("div",{className:"rank-math-howto-final-image"},wp.element.createElement(k,{imageID:l,sizeSlug:p,open:n,addButtonLabel:Object(i.__)("Add Final Image","rank-math"),removeImage:e.removeImage}))},onSelect:this.onSelectImage}),wp.element.createElement(u.RichText,{style:{textAlign:m},tagName:"div",className:"rank-math-howto-description",value:a.description,onChange:function(e){o({description:e})},keepPlaceholderOnFocus:!0,placeholder:Object(i.__)("Enter a main description","rank-math")}),wp.element.createElement("div",{className:"rank-math-howto-duration"},wp.element.createElement("div",{className:"components-base-control rank-math-howto-duration-label"},wp.element.createElement("span",null,Object(i.__)("Duration","rank-math")),wp.element.createElement(c.ToggleControl,{checked:a.hasDuration,onChange:this.toggleDuration})),wp.element.createElement("div",{className:"rank-math-howto-duration-fields"+(a.hasDuration?"":" hidden")},wp.element.createElement(c.TextControl,{value:a.timeLabel,placeholder:Object(i.__)("Total time:","rank-math"),onChange:function(e){o({timeLabel:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.days,placeholder:Object(i.__)("DD","rank-math"),onChange:function(e){o({days:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.hours,placeholder:Object(i.__)("HH","rank-math"),onChange:function(e){o({hours:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.minutes,placeholder:Object(i.__)("MM","rank-math"),onChange:function(e){o({minutes:e})}})),wp.element.createElement("div",{className:"rank-math-howto-duration-instructions"+(a.hasDuration?"":" hidden")},Object(i.__)("Optional, use first field to describe the duration.","rank-math"))),Object(U.applyFilters)("rank_math_block_howto_data","",this.props),wp.element.createElement("ul",{style:{textAlign:m}},this.renderSteps()),wp.element.createElement(c.Button,{isPrimary:!0,isLarge:!0,onClick:this.addNew},Object(i.__)("Add New Step","rank-math")),wp.element.createElement("a",{href:"http://rankmath.com/blog/howto-schema/",title:Object(i.__)("More Info","rank-math"),target:"_blank",rel:"noopener noreferrer",className:"rank-math-block-info"},wp.element.createElement(c.Dashicon,{icon:"info"})))}},{key:"renderSteps",value:function(){var e=this,t=this.props.attributes,n=t.steps,a=t.sizeSlug,o=t.titleWrapper,i=t.titleCssClasses,l=t.contentCssClasses;return Object(r.isEmpty)(n)?(this.addNew(),null):n.map((function(t,r){return wp.element.createElement("li",{key:t.id},wp.element.createElement(ne,se({},t,{index:r,key:t.id+"-step",steps:n,setAttributes:e.props.setAttributes,sizeSlug:a,titleWrapper:o,titleCssClasses:i,contentCssClasses:l})))}))}}])&&me(t.prototype,n),a&&me(t,a),l}(s.Component),ve=function(e){var t=e.attributes,n=t.steps,a=t.titleWrapper;return Object(r.isEmpty)(n)?null:wp.element.createElement("div",null,n.map((function(e,t){return!1===e.visible?null:wp.element.createElement("div",{className:"rank-math-howto-step",key:t},e.title&&wp.element.createElement(u.RichText.Content,{tagName:a,value:e.title,className:"rank-math-howto-title"}),e.content&&wp.element.createElement(u.RichText.Content,{tagName:"div",value:e.content,className:"rank-math-howto-content"}))})))},ke={from:[{type:"block",blocks:["yoast/how-to-block"],transform:function(e){var t={steps:e.steps.map((function(e){return{visible:!0,id:N("howto-step"),title:e.jsonName,content:e.jsonText}})),titleWrapper:"h3",hasDuration:e.hasDuration,days:e.days,hours:e.hours,minutes:e.minutes,description:e.jsonDescription,className:e.className,listStyle:e.unorderedList?"unordered":""};return Object(a.createBlock)("rank-math/howto-block",t)}}]};Object(a.updateCategory)("rank-math-blocks",{icon:o}),de=[Object(i.__)("FAQ","rank-math"),Object(i.__)("Frequently Asked Questions","rank-math"),Object(i.__)("Schema","rank-math"),Object(i.__)("SEO","rank-math"),Object(i.__)("Structured Data","rank-math"),Object(i.__)("Yoast","rank-math"),Object(i.__)("Rank Math","rank-math"),Object(i.__)("Block","rank-math"),Object(i.__)("Markup","rank-math"),Object(i.__)("Rich Snippet","rank-math")],Object(a.registerBlockType)("rank-math/faq-block",{title:Object(i.__)("FAQ by Rank Math","rank-math"),description:Object(i.__)("Easily add Schema-ready, SEO-friendly, Frequently Asked Questions to your content.","rank-math"),category:"rank-math-blocks",icon:"editor-ul",keywords:de,attributes:{listStyle:{type:"string"},sizeSlug:{type:"string",default:"thumbnail"},titleWrapper:{type:"string",default:"h3"},questions:{type:"array"},textAlign:{type:"string",default:""},listCssClasses:{type:"string",default:""},titleCssClasses:{type:"string",default:""},contentCssClasses:{type:"string",default:""}},example:l,edit:H,save:L,transforms:F}),function(){var e=[Object(i.__)("HowTo","rank-math"),Object(i.__)("Schema","rank-math"),Object(i.__)("SEO","rank-math"),Object(i.__)("Structured Data","rank-math"),Object(i.__)("Yoast","rank-math"),Object(i.__)("Rank Math","rank-math"),Object(i.__)("Block","rank-math"),Object(i.__)("Markup","rank-math"),Object(i.__)("Rich Snippet","rank-math")],t=Object(U.applyFilters)("rank_math_block_howto_attributes",{hasDuration:{type:"boolean"},days:{type:"string"},hours:{type:"string"},minutes:{type:"string"},description:{type:"string"},steps:{type:"array"},sizeSlug:{type:"string",default:"full"},imageID:{type:"integer"},mainSizeSlug:{type:"string",default:"full"},titleWrapper:{type:"string",default:"h3"},textAlign:{type:"string",default:""},timeLabel:{type:"string"},listStyle:{type:"string"},listCssClasses:{type:"string",default:""},titleCssClasses:{type:"string",default:""},contentCssClasses:{type:"string",default:""}});Object(a.registerBlockType)("rank-math/howto-block",{title:Object(i.__)("HowTo by Rank Math","rank-math"),description:Object(i.__)("Easily add Schema-ready, SEO-friendly, HowTo block to your content.","rank-math"),category:"rank-math-blocks",icon:"editor-ol",supports:{multiple:!1},keywords:e,attributes:t,example:V,edit:ge,save:ve,transforms:ke})}(),rankMath.canUser.snippet&&!Object(r.isUndefined)(rankMath.schemas)&&function(){var e=[Object(i.__)("Schema","rank-math"),Object(i.__)("Markup","rank-math"),Object(i.__)("Structured Data","rank-math"),Object(i.__)("Rich Snippet","rank-math"),Object(i.__)("SEO","rank-math"),Object(i.__)("Rank Math","rank-math"),Object(i.__)("Yoast","rank-math")];Object(a.registerBlockType)("rank-math/rich-snippet",{title:Object(i.__)("Schema by Rank Math","rank-math"),description:Object(i.__)("Add the Schema generated by Rank Math anywhere on your page using this Block.","rank-math"),category:"rank-math-blocks",icon:o,keywords:e,attributes:Object(U.applyFilters)("rank_math_block_schema_attributes",{post_id:{default:rankMath.objectID}}),edit:function(e){var t=e.setAttributes,n=e.attributes,a=[];return Object(r.forEach)(n,(function(e,o){"post_id"!==o?a.push(wp.element.createElement(c.TextControl,{key:o,label:Object(i.__)(Object(r.startCase)(o),"rank-math"),value:n[o],type:"string",onChange:function(e){var n={};n[o]=e,t(n)}})):a.push(wp.element.createElement(c.TextControl,{key:o,label:Object(i.__)(Object(r.startCase)(o),"rank-math"),value:n[o],type:"number",min:1,step:1,onChange:function(e){var n={};n[o]=e||rankMath.objectID,t(n)}}))})),wp.element.createElement("div",null,wp.element.createElement(u.InspectorControls,{key:"inspector"},a),wp.element.createElement(c.ServerSideRender,{block:"rank-math/rich-snippet",attributes:n}))}})}()}});
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=75)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},10:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var i=a.apply(null,r);i&&e.push(i)}else if("object"===o)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},12:function(e,t){e.exports=wp.blockEditor},21:function(e,t){e.exports=wp.blocks},3:function(e,t){e.exports=wp.components},4:function(e,t){e.exports=wp.data},5:function(e,t){e.exports=wp.element},6:function(e,t){e.exports=wp.hooks},75:function(e,t,n){"use strict";n.r(t);var r=n(1),a=n(21),o=wp.element.createElement("svg",{viewBox:"0 0 462.03 462.03",xmlns:"http://www.w3.org/2000/svg",width:"20"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"}),wp.element.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"}))),i=n(0),l={attributes:{questions:[{visible:!0,titleWrapper:"div",title:"Question",content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}]}},s=n(5),c=n(3),u=n(12),p=n(4);function m(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=Object(p.withSelect)((function(e,t){var n=(0,e("core/block-editor").getSettings)().imageSizes;return f(f({},t),{},{imageSizes:n})}))((function(e){var t=e.imageSizes,n=e.attributes,a=e.setAttributes,o=function(e){return Object(r.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}(t);return wp.element.createElement(u.InspectorControls,{key:"inspector"},wp.element.createElement(c.PanelBody,{title:Object(i.__)("FAQ Options","rank-math")},wp.element.createElement(c.SelectControl,{label:Object(i.__)("List Style","rank-math"),value:n.listStyle,options:[{value:"",label:Object(i.__)("None","rank-math")},{value:"numbered",label:Object(i.__)("Numbered","rank-math")},{value:"unordered",label:Object(i.__)("Unordered","rank-math")}],onChange:function(e){a({listStyle:e})}}),wp.element.createElement(c.SelectControl,{label:Object(i.__)("Title Wrapper","rank-math"),value:n.titleWrapper,options:[{value:"h2",label:Object(i.__)("H2","rank-math")},{value:"h3",label:Object(i.__)("H3","rank-math")},{value:"h4",label:Object(i.__)("H4","rank-math")},{value:"h5",label:Object(i.__)("H5","rank-math")},{value:"h6",label:Object(i.__)("H6","rank-math")},{value:"p",label:Object(i.__)("P","rank-math")},{value:"div",label:Object(i.__)("DIV","rank-math")}],onChange:function(e){a({titleWrapper:e})}}),wp.element.createElement(c.SelectControl,{label:Object(i.__)("Image Size","rank-math"),value:n.sizeSlug,options:o,onChange:function(e){a({sizeSlug:e})}})),wp.element.createElement(c.PanelBody,{title:Object(i.__)("Styling Options","rank-math")},wp.element.createElement(c.TextControl,{label:Object(i.__)("Title Wrapper CSS Class(es)","rank-math"),value:n.titleCssClasses,onChange:function(e){a({titleCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(i.__)("Content Wrapper CSS Class(es)","rank-math"),value:n.contentCssClasses,onChange:function(e){a({contentCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(i.__)("List CSS Class(es)","rank-math"),value:n.listCssClasses,onChange:function(e){a({listCssClasses:e})}})))})),y=n(10),d=n.n(y);function g(e,t){var n=Object(p.select)("core").getMedia,a=e?n(e):null;return null===a?null:t?function(e,t){return Object(r.get)(e,["media_details","sizes",t,"source_url"])||Object(r.get)(e,["media_details","sizes","full","source_url"])}(a,t):a}var v=Object(p.withSelect)((function(e,t){var n=t.imageID,r=t.sizeSlug;return{imageUrl:n?g(n,r):null}}))((function(e){var t=e.imageUrl;return t?wp.element.createElement("img",{src:t,alt:""}):null})),k=function(e){var t=e.imageID,n=e.sizeSlug,r=e.open,a=e.removeImage,o=e.addButtonLabel,l=void 0===o?Object(i.__)("Add Image","rank-math"):o;return wp.element.createElement("div",{className:"rank-math-media-placeholder"},t>0&&wp.element.createElement(v,{imageID:t,sizeSlug:n}),t>0?wp.element.createElement(c.Button,{icon:"edit",className:"rank-math-replace-image",onClick:r}):wp.element.createElement(c.Button,{onClick:r,className:"rank-math-add-image",isPrimary:!0,isLarge:!0},l),t>0&&wp.element.createElement(c.Button,{icon:"no-alt",className:"rank-math-delete-image",onClick:a}))};function _(e){return(_="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})(e)}function O(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(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 w(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var a=P(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(o,e);var t,n,r,a=E(o);function o(){var e;j(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).toggleVisibility=function(){var t=e.props,n=t.setAttributes,r=t.index,a=O(e.props.questions);a[r].visible=!e.props.visible,n({questions:a})},e.deleteQuestion=function(){var t=e.props,n=t.setAttributes,r=t.index,a=O(e.props.questions);a.splice(r,1),n({questions:a})},e}return t=o,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.title,r=t.content,a=t.visible,o=t.imageID,l=t.sizeSlug,s=t.titleWrapper,p=t.titleCssClasses,m=t.contentCssClasses,f=d()("rank-math-question-wrapper",{"question-not-visible":!a});return wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"rank-math-block-actions"},wp.element.createElement(c.Button,{className:"rank-math-item-visbility",icon:a?"visibility":"hidden",onClick:this.toggleVisibility,title:Object(i.__)("Hide Question","rank-math")}),wp.element.createElement(c.Button,{icon:"trash",className:"rank-math-item-delete",onClick:this.deleteQuestion,title:Object(i.__)("Delete Question","rank-math")})),wp.element.createElement(u.RichText,{tagName:s,className:"rank-math-faq-question rank-math-block-title"+p,value:n,onChange:function(t){e.setQuestionProp("title",t)},keepPlaceholderOnFocus:!0,placeholder:Object(i.__)("Question…","rank-math")}),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:o,render:function(t){var n=t.open;return wp.element.createElement(k,{imageID:o,sizeSlug:l,open:n,removeImage:function(){e.setQuestionProp("imageID",0)}})},onSelect:function(t){e.setQuestionProp("imageID",t.id)}}),wp.element.createElement(u.RichText,{tagName:"div",className:"rank-math-faq-answer "+m,value:r,onChange:function(t){e.setQuestionProp("content",t)},keepPlaceholderOnFocus:!0,placeholder:Object(i.__)("Enter the answer to the question","rank-math")}))}},{key:"setQuestionProp",value:function(e,t){var n=this.props,r=n.setAttributes,a=n.index,o=O(this.props.questions);o[a][e]=t,r({questions:o})}}])&&S(t.prototype,n),r&&S(t,r),o}(s.Component),N=function(e){return"".concat(e,"-").concat((new Date).getTime())};function D(e){return(D="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})(e)}function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function I(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return R(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 R(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 R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q(e);if(t){var a=Q(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return W(this,n)}}function W(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(l,e);var t,n,a,o=B(l);function l(){var e;q(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).addNew=function(){var t=I(e.props.attributes.questions);t.push({id:N("faq-question"),title:"",content:"",visible:!0}),e.props.setAttributes({questions:t})},e}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,a=this.props.attributes.textAlign;return wp.element.createElement("div",{id:"rank-math-faq",className:"rank-math-block "+n},r&&wp.element.createElement(h,this.props),r&&wp.element.createElement(s.Fragment,null,wp.element.createElement(u.BlockControls,null,wp.element.createElement(u.AlignmentToolbar,{value:a,onChange:function(t){return e.props.setAttributes({textAlign:t})}}))),wp.element.createElement("ul",{style:{textAlign:a}},this.renderQuestions()),wp.element.createElement(c.Button,{isPrimary:!0,isLarge:!0,onClick:this.addNew},Object(i.__)("Add New FAQ","rank-math")),wp.element.createElement("a",{href:"https://rankmath.com/kb/faq-schema-block/",rel:"noopener noreferrer",target:"_blank",title:Object(i.__)("More Info","rank-math"),className:"rank-math-block-info"},wp.element.createElement(c.Dashicon,{icon:"info"})))}},{key:"renderQuestions",value:function(){var e=this,t=this.props.attributes,n=t.sizeSlug,a=t.titleWrapper,o=t.titleCssClasses,i=t.contentCssClasses,l=this.props.attributes.questions;return Object(r.isEmpty)(l)&&(l=[{id:N("faq-question"),title:"",content:"",visible:!0}]),l.map((function(t,r){return wp.element.createElement("li",{key:t.id},wp.element.createElement(x,T({},t,{index:r,key:t.id+"-question",questions:l,setAttributes:e.props.setAttributes,sizeSlug:n,titleWrapper:a,titleCssClasses:o,contentCssClasses:i})))}))}}])&&z(t.prototype,n),a&&z(t,a),l}(s.Component),F={from:[{type:"block",blocks:["yoast/faq-block"],transform:function(e){var t={titleWrapper:"h3",questions:e.questions.map((function(e){return{title:e.jsonQuestion,content:e.jsonAnswer,visible:!0}})),className:e.className};return Object(a.createBlock)("rank-math/faq-block",t)}}]},L=function(e){var t=e.attributes,n=t.questions,a=t.titleWrapper;return Object(r.isEmpty)(n)?null:wp.element.createElement("div",null,n.map((function(e,t){return Object(r.isEmpty)(e.title)||Object(r.isEmpty)(e.content)||!1===e.visible?null:wp.element.createElement("div",{className:"rank-math-faq-item",key:t},wp.element.createElement(u.RichText.Content,{tagName:a,value:e.title,className:"rank-math-question"}),wp.element.createElement(u.RichText.Content,{tagName:"div",value:e.content,className:"rank-math-answer"}))})))},U=n(6),V={attributes:{steps:[{visible:!0,titleWrapper:"div",title:"Step # 1",content:"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}]}};function $(e){return($="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})(e)}function Y(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return G(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 G(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 G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var a=te(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==$(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(o,e);var t,n,r,a=Z(o);function o(){var e;J(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).toggleVisibility=function(){var t=e.props,n=t.setAttributes,r=t.index,a=Y(e.props.steps);a[r].visible=!e.props.visible,n({steps:a})},e.deleteStep=function(){var t=e.props,n=t.setAttributes,r=t.index,a=Y(e.props.steps);a.splice(r,1),n({steps:a})},e}return t=o,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.title,r=t.content,a=t.visible,o=t.imageID,l=t.sizeSlug,s=t.titleWrapper,p=t.titleCssClasses,m=t.contentCssClasses,f=d()("rank-math-step-wrapper",{"step-not-visible":!a});return wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"rank-math-block-actions"},wp.element.createElement(c.Button,{className:"rank-math-item-visbility",icon:a?"visibility":"hidden",onClick:this.toggleVisibility,title:Object(i.__)("Hide Step","rank-math")}),wp.element.createElement(c.Button,{icon:"trash",className:"rank-math-item-delete",onClick:this.deleteStep,title:Object(i.__)("Delete Step","rank-math")})),wp.element.createElement(u.RichText,{tagName:s,className:"rank-math-howto-step-title rank-math-block-title"+p,value:n,onChange:function(t){e.setStepProp("title",t)},keepPlaceholderOnFocus:!0,placeholder:Object(i.__)("Enter a step title","rank-math")}),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:o,render:function(t){var n=t.open;return wp.element.createElement(k,{imageID:o,sizeSlug:l,open:n,addButtonLabel:Object(i.__)("Add Step Image","rank-math"),removeImage:function(){e.setStepProp("imageID",0)}})},onSelect:function(t){e.setStepProp("imageID",t.id)}}),wp.element.createElement(u.RichText,{tagName:"div",className:"rank-math-howto-step-content"+m,value:r,onChange:function(t){e.setStepProp("content",t)},keepPlaceholderOnFocus:!0,placeholder:Object(i.__)("Enter a step description","rank-math")}))}},{key:"setStepProp",value:function(e,t){var n=this.props,r=n.setAttributes,a=n.index,o=Y(this.props.steps);o[a][e]=t,r({steps:o})}}])&&K(t.prototype,n),r&&K(t,r),o}(s.Component);function re(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ie=Object(p.withSelect)((function(e,t){var n=(0,e("core/block-editor").getSettings)().imageSizes;return ae(ae({},t),{},{imageSizes:n})}))((function(e){var t=e.imageSizes,n=e.attributes,a=e.setAttributes,o=function(e){return Object(r.map)(e,(function(e){var t=e.name;return{value:e.slug,label:t}}))}(t);return wp.element.createElement(u.InspectorControls,{key:"inspector"},wp.element.createElement(c.PanelBody,{title:Object(i.__)("HowTo Options","rank-math")},wp.element.createElement(c.SelectControl,{label:Object(i.__)("List Style","rank-math"),value:n.listStyle,options:[{value:"",label:Object(i.__)("None","rank-math")},{value:"numbered",label:Object(i.__)("Numbered","rank-math")},{value:"unordered",label:Object(i.__)("Unordered","rank-math")}],onChange:function(e){a({listStyle:e})}}),wp.element.createElement(c.SelectControl,{label:Object(i.__)("Title Wrapper","rank-math"),value:n.titleWrapper,options:[{value:"h2",label:Object(i.__)("H2","rank-math")},{value:"h3",label:Object(i.__)("H3","rank-math")},{value:"h4",label:Object(i.__)("H4","rank-math")},{value:"h5",label:Object(i.__)("H5","rank-math")},{value:"h6",label:Object(i.__)("H6","rank-math")},{value:"p",label:Object(i.__)("P","rank-math")},{value:"div",label:Object(i.__)("DIV","rank-math")}],onChange:function(e){a({titleWrapper:e})}}),wp.element.createElement(c.SelectControl,{label:Object(i.__)("Main Image Size","rank-math"),value:n.mainSizeSlug,options:o,onChange:function(e){a({mainSizeSlug:e})}}),wp.element.createElement(c.SelectControl,{label:Object(i.__)("Image Size","rank-math"),value:n.sizeSlug,options:o,onChange:function(e){a({sizeSlug:e})}})),wp.element.createElement(c.PanelBody,{title:Object(i.__)("Styling Options","rank-math")},wp.element.createElement(c.TextControl,{label:Object(i.__)("Step Title Wrapper CSS Class(es)","rank-math"),value:n.titleCssClasses,onChange:function(e){a({titleCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(i.__)("Step Content Wrapper CSS Class(es)","rank-math"),value:n.contentCssClasses,onChange:function(e){a({contentCssClasses:e})}}),wp.element.createElement(c.TextControl,{label:Object(i.__)("Step List CSS Class(es)","rank-math"),value:n.listCssClasses,onChange:function(e){a({listCssClasses:e})}})))}));function le(e){return(le="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})(e)}function se(){return(se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ce(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ue(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 ue(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 ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ye(e);if(t){var a=ye(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return he(this,n)}}function he(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de,ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fe(e,t)}(l,e);var t,n,a,o=be(l);function l(){var e;pe(this,l);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=o.call.apply(o,[this].concat(n))).addNew=function(){var t=e.props.attributes.steps,n=Object(r.isEmpty)(t)?[]:ce(t);n.push({id:N("howto-step"),title:"",content:"",visible:!0}),e.props.setAttributes({steps:n})},e.toggleDuration=function(){e.props.setAttributes({hasDuration:!e.props.attributes.hasDuration})},e.onSelectImage=function(t){(0,e.props.setAttributes)({imageID:t.id})},e.removeImage=function(){(0,e.props.setAttributes)({imageID:0})},e}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.isSelected,a=t.attributes,o=t.setAttributes,l=a.imageID,p=a.mainSizeSlug,m=a.textAlign;return wp.element.createElement("div",{id:"rank-math-howto",className:"rank-math-block "+n},r&&wp.element.createElement(ie,this.props),r&&wp.element.createElement(s.Fragment,null,wp.element.createElement(u.BlockControls,null,wp.element.createElement(u.AlignmentToolbar,{value:m,onChange:function(t){return e.props.setAttributes({textAlign:t})}}))),wp.element.createElement(u.MediaUpload,{allowedTypes:["image"],multiple:!1,value:l,render:function(t){var n=t.open;return wp.element.createElement("div",{className:"rank-math-howto-final-image"},wp.element.createElement(k,{imageID:l,sizeSlug:p,open:n,addButtonLabel:Object(i.__)("Add Final Image","rank-math"),removeImage:e.removeImage}))},onSelect:this.onSelectImage}),wp.element.createElement(u.RichText,{style:{textAlign:m},tagName:"div",className:"rank-math-howto-description",value:a.description,onChange:function(e){o({description:e})},keepPlaceholderOnFocus:!0,placeholder:Object(i.__)("Enter a main description","rank-math")}),wp.element.createElement("div",{className:"rank-math-howto-duration"},wp.element.createElement("div",{className:"components-base-control rank-math-howto-duration-label"},wp.element.createElement("span",null,Object(i.__)("Duration","rank-math")),wp.element.createElement(c.ToggleControl,{checked:a.hasDuration,onChange:this.toggleDuration})),wp.element.createElement("div",{className:"rank-math-howto-duration-fields"+(a.hasDuration?"":" hidden")},wp.element.createElement(c.TextControl,{value:a.timeLabel,placeholder:Object(i.__)("Total time:","rank-math"),onChange:function(e){o({timeLabel:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.days,placeholder:Object(i.__)("DD","rank-math"),onChange:function(e){o({days:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.hours,placeholder:Object(i.__)("HH","rank-math"),onChange:function(e){o({hours:e})}}),wp.element.createElement(c.TextControl,{type:"number",value:a.minutes,placeholder:Object(i.__)("MM","rank-math"),onChange:function(e){o({minutes:e})}})),wp.element.createElement("div",{className:"rank-math-howto-duration-instructions"+(a.hasDuration?"":" hidden")},Object(i.__)("Optional, use first field to describe the duration.","rank-math"))),Object(U.applyFilters)("rank_math_block_howto_data","",this.props),wp.element.createElement("ul",{style:{textAlign:m}},this.renderSteps()),wp.element.createElement(c.Button,{isPrimary:!0,isLarge:!0,onClick:this.addNew},Object(i.__)("Add New Step","rank-math")),wp.element.createElement("a",{href:"http://rankmath.com/blog/howto-schema/",title:Object(i.__)("More Info","rank-math"),target:"_blank",rel:"noopener noreferrer",className:"rank-math-block-info"},wp.element.createElement(c.Dashicon,{icon:"info"})))}},{key:"renderSteps",value:function(){var e=this,t=this.props.attributes,n=t.steps,a=t.sizeSlug,o=t.titleWrapper,i=t.titleCssClasses,l=t.contentCssClasses;return Object(r.isEmpty)(n)?(this.addNew(),null):n.map((function(t,r){return wp.element.createElement("li",{key:t.id},wp.element.createElement(ne,se({},t,{index:r,key:t.id+"-step",steps:n,setAttributes:e.props.setAttributes,sizeSlug:a,titleWrapper:o,titleCssClasses:i,contentCssClasses:l})))}))}}])&&me(t.prototype,n),a&&me(t,a),l}(s.Component),ve=function(e){var t=e.attributes,n=t.steps,a=t.titleWrapper;return Object(r.isEmpty)(n)?null:wp.element.createElement("div",null,n.map((function(e,t){return!1===e.visible?null:wp.element.createElement("div",{className:"rank-math-howto-step",key:t},e.title&&wp.element.createElement(u.RichText.Content,{tagName:a,value:e.title,className:"rank-math-howto-title"}),e.content&&wp.element.createElement(u.RichText.Content,{tagName:"div",value:e.content,className:"rank-math-howto-content"}))})))},ke={from:[{type:"block",blocks:["yoast/how-to-block"],transform:function(e){var t={steps:e.steps.map((function(e){return{visible:!0,id:N("howto-step"),title:e.jsonName,content:e.jsonText}})),titleWrapper:"h3",hasDuration:e.hasDuration,days:e.days,hours:e.hours,minutes:e.minutes,description:e.jsonDescription,className:e.className,listStyle:e.unorderedList?"unordered":""};return Object(a.createBlock)("rank-math/howto-block",t)}}]};Object(a.updateCategory)("rank-math-blocks",{icon:o}),de=[Object(i.__)("FAQ","rank-math"),Object(i.__)("Frequently Asked Questions","rank-math"),Object(i.__)("Schema","rank-math"),Object(i.__)("SEO","rank-math"),Object(i.__)("Structured Data","rank-math"),Object(i.__)("Yoast","rank-math"),Object(i.__)("Rank Math","rank-math"),Object(i.__)("Block","rank-math"),Object(i.__)("Markup","rank-math"),Object(i.__)("Rich Snippet","rank-math")],Object(a.registerBlockType)("rank-math/faq-block",{title:Object(i.__)("FAQ by Rank Math","rank-math"),description:Object(i.__)("Easily add Schema-ready, SEO-friendly, Frequently Asked Questions to your content.","rank-math"),category:"rank-math-blocks",icon:"editor-ul",keywords:de,attributes:{listStyle:{type:"string"},sizeSlug:{type:"string",default:"thumbnail"},titleWrapper:{type:"string",default:"h3"},questions:{type:"array"},textAlign:{type:"string",default:""},listCssClasses:{type:"string",default:""},titleCssClasses:{type:"string",default:""},contentCssClasses:{type:"string",default:""}},example:l,edit:H,save:L,transforms:F}),function(){var e=[Object(i.__)("HowTo","rank-math"),Object(i.__)("Schema","rank-math"),Object(i.__)("SEO","rank-math"),Object(i.__)("Structured Data","rank-math"),Object(i.__)("Yoast","rank-math"),Object(i.__)("Rank Math","rank-math"),Object(i.__)("Block","rank-math"),Object(i.__)("Markup","rank-math"),Object(i.__)("Rich Snippet","rank-math")],t=Object(U.applyFilters)("rank_math_block_howto_attributes",{hasDuration:{type:"boolean"},days:{type:"string"},hours:{type:"string"},minutes:{type:"string"},description:{type:"string"},steps:{type:"array"},sizeSlug:{type:"string",default:"full"},imageID:{type:"integer"},mainSizeSlug:{type:"string",default:"full"},titleWrapper:{type:"string",default:"h3"},textAlign:{type:"string",default:""},timeLabel:{type:"string"},listStyle:{type:"string"},listCssClasses:{type:"string",default:""},titleCssClasses:{type:"string",default:""},contentCssClasses:{type:"string",default:""}});Object(a.registerBlockType)("rank-math/howto-block",{title:Object(i.__)("HowTo by Rank Math","rank-math"),description:Object(i.__)("Easily add Schema-ready, SEO-friendly, HowTo block to your content.","rank-math"),category:"rank-math-blocks",icon:"editor-ol",supports:{multiple:!1},keywords:e,attributes:t,example:V,edit:ge,save:ve,transforms:ke})}(),rankMath.canUser.snippet&&!Object(r.isUndefined)(rankMath.schemas)&&function(){var e=[Object(i.__)("Schema","rank-math"),Object(i.__)("Markup","rank-math"),Object(i.__)("Structured Data","rank-math"),Object(i.__)("Rich Snippet","rank-math"),Object(i.__)("SEO","rank-math"),Object(i.__)("Rank Math","rank-math"),Object(i.__)("Yoast","rank-math")];Object(a.registerBlockType)("rank-math/rich-snippet",{title:Object(i.__)("Schema by Rank Math","rank-math"),description:Object(i.__)("Add the Schema generated by Rank Math anywhere on your page using this Block.","rank-math"),category:"rank-math-blocks",icon:o,keywords:e,attributes:Object(U.applyFilters)("rank_math_block_schema_attributes",{post_id:{default:rankMath.objectID}}),edit:function(e){var t=e.setAttributes,n=e.attributes,a=[];return Object(r.forEach)(n,(function(e,o){"post_id"!==o?a.push(wp.element.createElement(c.TextControl,{key:o,label:Object(i.__)(Object(r.startCase)(o),"rank-math"),value:n[o],type:"string",onChange:function(e){var n={};n[o]=e,t(n)}})):a.push(wp.element.createElement(c.TextControl,{key:o,label:Object(i.__)(Object(r.startCase)(o),"rank-math"),value:n[o],type:"number",min:1,step:1,onChange:function(e){var n={};n[o]=e||rankMath.objectID,t(n)}}))})),wp.element.createElement("div",null,wp.element.createElement(u.InspectorControls,{key:"inspector"},a),wp.element.createElement(c.ServerSideRender,{block:"rank-math/rich-snippet",attributes:n}))}})}()}});
|
assets/admin/js/classic.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=75)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},10:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var s=a.apply(null,r);s&&e.push(s)}else if("object"===i)for(var o in r)n.call(r,o)&&r[o]&&e.push(o)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},11:function(e,t){e.exports=wp.url},14:function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},18:function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return""===e||Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "})).replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"}))}},19:function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},2:function(e,t){e.exports=jQuery},24:function(e,t,n){"use strict";var r=n(0),a=n(6);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,s;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),s&&i(t,s),e}();t.a=s},25:function(e,t,n){"use strict";var r=n(2),a=n.n(r),i=n(8),s=n(1),o=n(6),c=n(9),l=n(14),u=function(e,t){return e=(e=i.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(s.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,r=function(e){if(Object(s.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(s.filter)(i.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==a.a.trim(e)}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(s.filter)(t,(function(e){return Object(s.includes)(e.toLowerCase(),n)}));if(0<r.length)return u(r[0],160)}return u(t[0],160)}(Object(l.a)(t.content)),h=Object(s.isUndefined)(n)||Object(s.isEmpty)(n)?r:n;if(c.a.setVariable("excerpt",h),c.a.setVariable("seo_description",h),""!==(e=Object(l.a)(Object(o.applyFilters)("rankMath/description",e))))return i.Helpers.cleanText(e);if(!Object(s.isUndefined)(n)&&!Object(s.isEmpty)(n))return i.Helpers.cleanText(n);var d=rankMath.assessor.serpData.descriptionTemplate;return Object(s.isUndefined)(d)||""===d?r:i.Helpers.cleanText(d)}},26:function(e,t,n){"use strict";var r=n(1),a=n(14);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function s(e,t){return e<=t.min||e>t.max}function o(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,l=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){l=!0;var u=document.createTextNode(e),h=document.createElement("span");h.appendChild(u),h.id="rank-math-width-tester",h.className=t.widthCheckerClass;var d=document.body.appendChild(h);c=document.getElementById("rank-math-width-tester").offsetWidth,d.outerHTML=""}return{left:i(n,c,t),isInvalid:s(n,t),isInvalidWidth:!!l&&o(c,t),count:n+" / "+t.max,pixelWidth:l?c+"px / "+t.pixelWidth+"px":""}}},27:function(e,t){e.exports=Tagify},28:function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},30:function(e,t,n){"use strict";var r=n(1);t.a=function(){return!(Object(r.isNil)(window.wp)||Object(r.isNil)(wp.data)||Object(r.isNil)(wp.data.select("core/editor"))||!Object(r.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},4:function(e,t){e.exports=wp.data},6:function(e,t){e.exports=wp.hooks},75:function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),i=n(1),s=n(8),o=n(6),c=n(0);function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new s.Analyzer({i18n:c,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.promises=[],this.hooks(),this.registerRefresh()}var t,n,r;return t=e,(n=[{key:"hooks",value:function(){this.assessAll=this.assessAll.bind(this),this.assessTitle=this.assessTitle.bind(this),this.assessContent=this.assessContent.bind(this),this.assessPermalink=this.assessPermalink.bind(this),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.assessKeyword=this.assessKeyword.bind(this),this.assessThumbnail=this.assessThumbnail.bind(this),Object(o.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(o.addAction)("rank_math_init_refresh","rank-math",this.assessAll),Object(o.addAction)("rank_math_title_refresh","rank-math",this.assessTitle),Object(o.addAction)("rank_math_content_refresh","rank-math",this.assessContent,11),Object(o.addAction)("rank_math_permalink_refresh","rank-math",this.assessPermalink,11),Object(o.addAction)("rank_math_featuredImage_refresh","rank-math",this.assessThumbnail,11),Object(o.addAction)("rank_math_keyword_refresh","rank-math",this.assessKeyword,11)}},{key:"getPaper",value:function(e){var t=this.dataCollector.getData(),n=new s.Paper("",{locale:rankMath.localeFull});return n.setTitle(t.title),n.setPermalink(t.slug),n.setDescription(t.description),n.setUrl(t.permalink),n.setText(Object(o.applyFilters)("rank_math_content",t.content)),n.setKeyword(s.Helpers.removeDiacritics(e)),Object(i.isUndefined)(t.featuredImage)||(n.setThumbnail(t.featuredImage.source_url),n.setThumbnailAltText(s.Helpers.removeDiacritics(t.featuredImage.alt_text))),n}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(i.debounce)((function(t){e.promises=[],Object(o.doAction)("rank_math_"+t+"_refresh"),Promise.all(e.promises).then((function(){e.refreshResults()}))}),500)}},{key:"assessAll",value:function(){var e=this;rankMathEditor.components.focusKeywords.getFocusKeywords().map((function(t,n){e.run(0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests(),t,0===n)}))}},{key:"run",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=t||rankMathEditor.getSelectedKeyword();var r=this.getPaper(t);this.promises.push(this.analyzer.analyzeSome(this.filterTests(e),r).then((function(e){rankMathEditor.resultManager.update(r.getKeyword(),e,n)})))}},{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===rankMathEditor.getSelectedKeyword()&&this.refreshResults()}},{key:"assessThumbnail",value:function(){this.run(["keywordInImageAlt","contentHasAssets"])}},{key:"assessKeyword",value:function(){var e=rankMathEditor.getSelectedKeyword()===rankMathEditor.getPrimaryKeyword();this.run(e?rankMath.assessor.researchesTests:this.getSecondaryKeywordTests())}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"assessTitle",value:function(){this.run(["keywordInTitle","titleHasPowerWords","titleHasNumber","titleSentiment","titleStartWithKeyword"])}},{key:"assessContent",value:function(){return this.run(["contentHasShortParagraphs","contentHasTOC","contentHasAssets","keywordDensity","keywordIn10Percent","keywordInContent","keywordInImageAlt","keywordInMetaDescription","keywordInSubheadings","lengthContent","linksHasExternals","linksHasInternal","linksNotAllExternals"])}},{key:"assessPermalink",value:function(){return this.run(["keywordInPermalink","lengthPermalink"])}},{key:"getPrimaryKeyword",value:function(){return rankMathEditor.components.focusKeywords.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return rankMathEditor.components.focusKeywords.getSelectedKeyword()}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}},{key:"refreshResults",value:function(){Object(o.doAction)("rank_math_refresh_results")}},{key:"filterTests",value:function(e){return Object(i.intersection)(e,rankMath.assessor.researchesTests)}}])&&l(t.prototype,n),r&&l(t,r),e}(),h=n(30),d=n(24);function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.methods=[],this.init=this.init.bind(this),this.refresh=this.refresh.bind(this),Object(o.addAction)("rank_math_loaded","rank-math",this.init)}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.methods.length&&rankMathEditor.refresh("content")}},{key:"registerPlugin",value:function(){console.warn("RankMathApp.registerPlugin is deprecated.")}},{key:"refresh",value:function(e){console.warn("RankMathApp.refresh is deprecated, use rankMathEditor.refresh()"),this.methods.push(e)}},{key:"reloadPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"content";console.warn("RankMathApp.reloadPlugin is deprecated, use rankMathEditor.refresh()"),this.refresh(t)}}])&&p(t.prototype,n),r&&p(t,r),e}(),m=n(4),k=n(9);function v(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 g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),Object(o.addAction)("rank_math_loaded","rank-math",this.refresh),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,n,r;return t=e,(n=[{key:"collectGutenbergData",value:function(){return!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return rankMath.objectID}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),this._coreEditorSelect.getPermalink()}},{key:"getSlug",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),this.getPostAttribute("slug")||e}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(m.select)("core").getMedia(e);if(!Object(i.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return this._coreEditorSelect||(this._coreEditorSelect=Object(m.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(i.debounce)(this.refresh,500),Object(m.subscribe)(this.subscriber)}},{key:"refresh",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"handleEditorChange",value:function(e){var t=this,n={slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(i.isInteger)(e.id))return this.initialize?void Object(i.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(i.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"))}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){k.a.setVariable("title",e),k.a.setVariable("term",e),k.a.setVariable("author",e),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){k.a.setVariable("excerpt",e),k.a.setVariable("excerpt_only",e),k.a.setVariable("wc_shortdesc",e),k.a.setVariable("seo_description",e),rankMathEditor.refresh("content")}},{key:"handleFeaturedImageChange",value:function(e){this._data.featuredImage=e,rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}},{key:"updateData",value:function(e,t){this._data[e]=t}}])&&b(t.prototype,n),r&&b(t,r),e}();function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1,description:""},this.refresh=this.refresh.bind(this),Object(o.addAction)("rank_math_loaded","rank-math",this.refresh),this.setup(),this.init()}var t,n,r;return t=e,(n=[{key:"init",value:function(){var e=this;this.elemTitle.on("input",Object(i.debounce)((function(){e.handleTitleChange(e.elemTitle.val())}),500)),this.elemDescription.on("input",Object(i.debounce)((function(){e.handleExcerptChange(e.elemDescription.val())}),500)),this.elemSlug.on("input",Object(i.debounce)((function(){rankMathEditor.updatePermalink(e.elemSlug.val())}),500))}},{key:"collectData",value:function(){this._data={id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return rankMath.objectID}},{key:"getTitle",value:function(){return this.elemTitle.val()}},{key:"getExcerpt",value:function(){var e=this.elemDescription.val();return k.a.setVariable("excerpt",e),k.a.setVariable("excerpt_only",e),k.a.setVariable("wc_shortdesc",e),k.a.setVariable("seo_description",e),e}},{key:"getPermalink",value:function(){return rankMath.homeUrl+"/"+this.getSlug()}},{key:"getSlug",value:function(){return this.elemSlug.val()}},{key:"getFeaturedImage",value:function(){return this.featuredImage}},{key:"refresh",value:function(){this.collectData(),rankMathEditor.refresh("init")}},{key:"handleSlugChange",value:function(e){var t=rankMathEditor.components.SerpPreview;this.elemSlug.val(e),a()("#editable-post-name").text(e),a()("#editable-post-name-full").text(e),Object(i.isUndefined)(t.serpPermalinkField)||t.serpPermalinkField.val(e),this._data.slug=this.getSlug(),this._data.permalink=this.getPermalink(),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){k.a.setVariable("title",e),k.a.setVariable("term",e),k.a.setVariable("author",e),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(){this._data.excerpt=this.getExcerpt(),rankMathEditor.refresh("content")}},{key:"handleFeaturedImageChange",value:function(){this._data.featuredImage=this.getFeaturedImage(),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){this._data.excerpt=this.getExcerpt(),this._data.content=this.getContent(),rankMathEditor.refresh("content")}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?this._data[e]:this._data}},{key:"updateData",value:function(e,t){this._data[e]=t}},{key:"isTinymce",value:function(){return"undefined"!=typeof tinymce}}])&&w(t.prototype,n),r&&w(t,r),e}();function O(e){return(O="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})(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M(e);if(t){var a=M(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==O(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(c,e);var t,n,r,s=C(c);function c(){return j(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"setup",value:function(){this.elemSlug=a()("#post_name"),this.elemTitle=a()("#title"),this.elemDescription=a()("#excerpt"),this.elemContent=a()("#content"),this.editableName=a()("#editable-post-name-full"),this.assessThumbnail=this.assessThumbnail.bind(this),Object(o.addAction)("rank_math_updated_featured_image","rank-math",this.assessThumbnail),this.events()}},{key:"getContent",value:function(){if(null!==this.elemContent&&0!==this.elemContent.length)return this.isTinymce()&&tinymce.activeEditor&&"content"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():this.elemContent.val()}},{key:"getSlug",value:function(){var e=""===this.elemSlug.val()&&this.editableName.length?this.editableName.text():this.elemSlug.val();return Object(i.isUndefined)(e)?"":e}},{key:"events",value:function(){var e=this;this.elemContent.on("input change",Object(i.debounce)((function(){e.handleContentChange()}),500)),a()(window).on("load",(function(){e.isTinymce()&&(tinymce.activeEditor&&!Object(i.isUndefined)(tinymce.editors.content)&&tinymce.editors.content.on("keyup change",Object(i.debounce)((function(){e.handleContentChange()}),500)),tinymce.editors&&!Object(i.isUndefined)(tinymce.editors.excerpt)&&tinymce.editors.excerpt.on("keyup change",Object(i.debounce)((function(){tinymce.editors.excerpt.save(),e.handleExcerptChange()}),500)))})),a()(document).on("ajaxComplete",(function(t,n,r){var i="/admin-ajax.php";if(i===r.url.substr(0-i.length)){var s="";"string"==typeof r.data&&-1!==r.data.indexOf("action=sample-permalink")&&(s=""===n.responseText?e.elemTitle.val():a()("<div>"+n.responseText+"</div>").find("#editable-post-name-full").text(),rankMathEditor.updatePermalink(s))}}))}},{key:"assessThumbnail",value:function(e){this.featuredImage={source_url:e.src,alt_text:e.alt},this.handleFeaturedImageChange(e)}}])&&P(t.prototype,n),r&&P(t,r),c}(_);function E(e){return(E="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})(e)}function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=R(e);if(t){var a=R(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return K(this,n)}}function K(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(o,e);var t,n,r,s=F(o);function o(){return I(this,o),s.apply(this,arguments)}return t=o,(n=[{key:"setup",value:function(){this.elemSlug=a()("#slug"),this.elemTitle=a()("#name"),this.elemDescription=a()("#rank_math_description_editor"),this.events()}},{key:"getContent",value:function(){return null===this.elemDescription||0===this.elemDescription.length?"":this.isTinymce()&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():this.elemDescription.val()}},{key:"events",value:function(){var e=this;a()(window).on("load",(function(){e.isTinymce()&&tinymce.activeEditor&&!Object(i.isUndefined)(tinymce.editors.rank_math_description_editor)&&tinymce.editors.rank_math_description_editor.on("keyup change",Object(i.debounce)((function(){e.handleContentChange()}),500))}))}}])&&D(t.prototype,n),r&&D(t,r),o}(_);function H(e){return(H="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})(e)}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G(e);if(t){var a=G(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(s,e);var t,n,r,i=L(s);function s(){return N(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"setup",value:function(){this.elemSlug=a()("#rank_math_permalink"),this.elemTitle=a()("#display_name"),this.elemDescription=a()("#description")}},{key:"getContent",value:function(){return this.elemDescription.val()}}])&&U(t.prototype,n),r&&U(t,r),s}(_),$=n(11),J=n(25),Q=n(18),q=n(10),Z=n.n(q),X=n(26);function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ee=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"check",value:function(e,t){this.elem=e,this.elem.closest(".cmb-td").find(".length-indicator-wrapper").length||this.wrapIndicator(t),this.updateLength(t)}},{key:"wrapIndicator",value:function(e){this.elem.closest(".cmb-td").append('<span class="'+Z()("length-indicator-wrapper",{"width-indicator":!1!==Object(i.get)(e,"pixelWidth",!1)})+'"><span class="length-count">0 / '+e.max+'</span><span class="length-indicator"><span></span></span></span>')}},{key:"updateLength",value:function(e){var t=this.elem.closest(".cmb-td").find(".length-indicator"),n=t.find(">span"),r=this.elem.closest(".cmb-td").find(".length-count"),a=Object(X.a)(e.text,e);t.removeClass("invalid short"),n.css("left",a.left),r.text(a.count),!1!==Object(i.get)(e,"pixelWidth",!1)&&r.text(r.text()+" ("+a.pixelWidth+")"),(a.isInvalid||a.isInvalidWidth)&&t.addClass("invalid")}}])&&Y(t.prototype,n),r&&Y(t,r),e}();function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e){return(ne="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})(e)}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oe(e);if(t){var a=oe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){return!t||"object"!==ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ae(e,t)}(c,e);var t,n,r,s=ie(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),e=s.call(this),rankMath.canUser.general?(e.hooks(),e.elemMetabox=rankMathEditor.elemMetabox,e.serpCanonical=e.elemMetabox.find("#rank_math_canonical_url"),e.serpTitleField=e.elemMetabox.find("#rank_math_title"),e.serpPermalinkField=e.elemMetabox.find("#rank_math_permalink"),e.serpDescriptionField=e.elemMetabox.find("#rank_math_description"),e.serpWrapper=e.elemMetabox.find(".serp-preview"),e.serpFieldsWrapper=e.elemMetabox.find(".rank-math-serp-fields-wrapper"),e.serpTitle=e.serpWrapper.find(".serp-title"),e.serpPermalink=e.serpWrapper.find(".serp-url"),e.serpDescription=e.serpWrapper.find(".serp-description"),e.devices=e.elemMetabox.find(".rank-math-select-device"),e.init(),e):se(e)}return t=c,(n=[{key:"init",value:function(){this.previewEvent(),this.updateEvents(),this.serpEvents(),this.robotsEvents()}},{key:"previewEvent",value:function(){this.devices.on("click",(function(e){e.preventDefault();var t=a()(e.currentTarget),n=t.hasClass("active")?"":t.data("device");Object(o.doAction)("rank_math_preview_device",n)}))}},{key:"serpEvents",value:function(){var e=this,t=this.elemMetabox.find(".rank-math-edit-snippet");t.on("click",(function(n){n.preventDefault(),t.toggleClass("hidden active"),e.serpFieldsWrapper.toggleClass("hidden")})),this.elemMetabox.on("click",".serp-title, .serp-url, .serp-description",(function(n){n.preventDefault(),t.toggleClass("hidden active"),e.serpFieldsWrapper.toggleClass("hidden")}))}},{key:"updateEvents",value:function(){var e=this;this.serpTitleField.on("input",Object(i.debounce)((function(){rankMathEditor.refresh("title")}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1})),this.serpPermalinkField.val(rankMathEditor.assessor.dataCollector.getSlug()).on("blur",(function(){rankMathEditor.updatePermalink(e.serpPermalinkField.val())})).on("input",Object(i.debounce)((function(){e.updatePermalinkPreview()}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1})),rankMath.is_front_page&&this.serpPermalinkField.val("/").attr("disabled","disabled"),this.serpDescriptionField.on("input",Object(i.debounce)((function(){rankMathEditor.refresh("content")}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1}))}},{key:"updatePreviewCallbacks",value:function(e,t){e=e||"global",rankMathEditor.assessor.dataCollector.updateData(e,t),this.elemMetabox.trigger("rank-math-updating-preview-"+e),this.elemMetabox.trigger("rank-math-"+e+"-updated",t)}},{key:"robotsEvents",value:function(){var e=this,t=a()("#rank_math_robots1"),n=a()("#rank_math_robots2");t.on("change",(function(){t.is(":checked")?(e.serpWrapper.addClass("noindex-preview"),n.prop("checked",!1).trigger("change")):e.serpWrapper.removeClass("noindex-preview")})),n.on("change",(function(){if(n.is(":checked"))return e.serpWrapper.addClass("noindex-preview"),void t.prop("checked",!1);e.serpWrapper.removeClass("noindex-preview")})).trigger("change")}}])&&re(t.prototype,n),r&&re(t,r),c}(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.title="",this.description="",this.lengthIndicator=new ee}var t,n,r;return t=e,(n=[{key:"hooks",value:function(){this.previewDevice=this.previewDevice.bind(this),this.updatePreview=this.updatePreview.bind(this),this.updateTitlePreview=this.updateTitlePreview.bind(this),this.updatePermalinkPreview=this.updatePermalinkPreview.bind(this),this.updateDescriptionPreview=this.updateDescriptionPreview.bind(this),Object(o.addAction)("rank_math_preview_device","rank-math",this.previewDevice),Object(o.addAction)("rank_math_init_refresh","rank-math",this.updatePreview,1),Object(o.addAction)("rank_math_title_refresh","rank-math",this.updateTitlePreview,1),Object(o.addAction)("rank_math_permalink_refresh","rank-math",this.updatePermalinkPreview,1),Object(o.addAction)("rank_math_content_refresh","rank-math",this.updateDescriptionPreview,1),Object(o.addAction)("rank_math_keyword_refresh","rank-math",this.updatePreview,11)}},{key:"updatePreview",value:function(){this.updateTitlePreview(),this.updatePermalinkPreview(),this.updateDescriptionPreview()}},{key:"previewDevice",value:function(e){switch(this.devices.removeClass("active"),e){case"desktop":this.serpWrapper.removeClass("mobile-preview"),this.serpWrapper.addClass("desktop-preview expanded-preview"),rankMathEditor.elemMetabox.find(".rank-math-select-device.device-desktop").addClass("active");break;case"mobile":this.serpWrapper.removeClass("desktop-preview"),this.serpWrapper.addClass("mobile-preview expanded-preview"),rankMathEditor.elemMetabox.find(".rank-math-select-device.device-mobile").addClass("active");break;default:this.serpWrapper.removeClass("mobile-preview expanded-preview"),this.serpWrapper.addClass("desktop-preview")}}},{key:"updateTitlePreview",value:function(){this.title=this.serpTitleField.val();var e=""!==this.title;this.serpTitleField.val(e?this.title:this.serpTitle.data("format")),this.title=s.Helpers.sanitizeText(k.a.swap(""!==this.title?this.title:this.serpTitle.data("format"))),this.lengthIndicator.check(this.serpTitleField,{text:this.title,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),this.serpTitle.html(Object(Q.a)(rankMathEditor.getSelectedKeyword(),s.Helpers.sanitizeText(this.title),60)),this.updatePreviewCallbacks("title",this.title),this.serpTitle.trigger("rank-math-vars-replaced")}},{key:"updatePermalinkPreview",value:function(){var e=this.serpPermalink.data("format")||"",t=this.serpPermalinkField.val(),n=rankMathEditor.assessor.getResearch("slugify")(rankMathEditor.getSelectedKeyword());this.permalink=""!==t?e.replace(/%(postname|pagename)%/,t).trimRight("/")+"/":"",this.serpCanonical.attr("placeholder",this.permalink),this.lengthIndicator.check(this.serpPermalinkField,{text:this.permalink,min:5,max:75}),this.serpPermalink.html(Object(Q.a)(n,s.Helpers.sanitizeText(Object($.safeDecodeURIComponent)(this.permalink)),75)),this.updatePreviewCallbacks("permalink",this.permalink),this.serpPermalink.trigger("rank-math-vars-replaced")}},{key:"updateDescriptionPreview",value:function(){this.description=s.Helpers.sanitizeText(k.a.swap(Object(J.a)(this.serpDescriptionField.val()))),this.lengthIndicator.check(this.serpDescriptionField,{text:this.description,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),this.serpDescription.html(Object(Q.a)(rankMathEditor.getSelectedKeyword(),s.Helpers.sanitizeText(this.description),160)),this.serpDescriptionField.attr("placeholder",""!==this.description?this.description:this.serpDescription.data("format")),this.updatePreviewCallbacks("description",this.description),this.serpDescription.trigger("rank-math-vars-replaced")}}])&&te(t.prototype,n),r&&te(t,r),e}()),le=n(14);function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var he=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elemMetabox=rankMathEditor.elemMetabox,this.currentNetwork="facebook",this.useFacebook=!0,this.shouldUpdatePreview=!1,this.facebookTitleField=this.elemMetabox.find("#rank_math_facebook_title"),this.facebookDescriptionField=this.elemMetabox.find("#rank_math_facebook_description"),this.twitterTitleField=this.elemMetabox.find("#rank_math_twitter_title"),this.twitterDescriptionField=this.elemMetabox.find("#rank_math_twitter_description"),this.facebookImageField=this.elemMetabox.find("#rank_math_facebook_image"),this.twitterImageField=this.elemMetabox.find("#rank_math_twitter_image"),this.facebookImageStatus=this.elemMetabox.find("#rank_math_facebook_image-status"),this.twitterImageStatus=this.elemMetabox.find("#rank_math_twitter_image-status"),this.socialWrapper=this.elemMetabox.find(".rank-math-social-preview"),this.socialPreview=this.socialWrapper.find(".rank-math-social-preview-item"),this.socialTitle=this.socialWrapper.find(".rank-math-social-preview-title"),this.socialDescription=this.socialWrapper.find(".rank-math-social-preview-description"),this.events(),this.shouldUpdatePreview=!0,this.updateTitlePreview=this.updateTitlePreview.bind(this),this.updateDescriptionPreview=this.updateDescriptionPreview.bind(this),this.updateThumbnailPreview=this.updateThumbnailPreview.bind(this),this.updatePreview=this.updatePreview.bind(this),Object(o.addAction)("rank_math_init_refresh","rank-math",this.updatePreview),Object(o.addAction)("rank_math_title_refresh","rank-math",this.updateTitlePreview,2),Object(o.addAction)("rank_math_content_refresh","rank-math",this.updateDescriptionPreview,2),Object(o.addAction)("rank_math_featuredImage_refresh","rank-math",this.updateThumbnailPreview),this.updatePreview()}var t,n,r;return t=e,(n=[{key:"events",value:function(){var e=this;this.facebookTitleField.on("input",(function(){e.updateTitlePreview()})),this.facebookDescriptionField.on("input",(function(){e.updateDescriptionPreview()})),this.facebookImageField.on("input",(function(){e.updateThumbnailPreview()})),this.twitterTitleField.on("input",(function(){e.updateTitlePreview()})),this.twitterDescriptionField.on("input",(function(){e.updateDescriptionPreview()})),this.twitterImageField.on("input",(function(){e.updateThumbnailPreview()}));var t=a()(".rank-math-social-preview-button"),n=t.find(">span");t.on("click",(function(t){t.preventDefault(),n.toggleClass("dashicons-arrow-down dashicons-arrow-up"),e.updatePreview(),e.socialWrapper.toggleClass("open"),e.socialPreview.slideToggle()}));var r=a()("#rank_math_twitter_card_type");a()(".preview-network").on("click",(function(n){a()(n.target).hasClass("tab-facebook")?t.show():r.trigger("change"),e.updatePreview()})),r.on("change",(function(){var n=r.val();"player"===n&&a()(".cmb2-id-rank-math-twitter-image, .cmb2-id-rank-math-twitter-title, .cmb2-id-rank-math-twitter-description").show();var i="player"===n||"app"===n;t.toggle(!i),a()(".cmb2-id-rank-math-twitter-use-facebook").toggle(!i),i||e.updatePreview()})).trigger("change");var i=a()("#rank_math_twitter_use_facebook");i.on("input change",(function(){e.useFacebook=i.is(":checked"),e.updatePreview()})).trigger("change"),a()(".cmb2-id-rank-math-facebook-enable-image-overlay, .cmb2-id-rank-math-facebook-image-overlay, .cmb2-id-rank-math-twitter-enable-image-overlay, .cmb2-id-rank-math-twitter-image-overlay").on("change","input",(function(){e.updateThumbnailOverlay()})),a()(document).on("cmb_media_modal_select",(function(t,n,r){"rank_math_facebook_image"!==r.field&&"rank_math_twitter_image"!==r.field||e.updateThumbnailPreview()})),a()(document).on("cmb_init",(function(t,n){n.$metabox.on("click",".cmb2-remove-file-button",(function(){e.updateThumbnailPreview()}))}))}},{key:"updatePreview",value:function(){!1!==this.shouldUpdatePreview&&a()(".preview-network.tab-active").length&&(this.currentNetwork=a()(".preview-network.tab-active").attr("href").replace("#setting-panel-social-",""),this.socialWrapper.removeClass(),this.socialWrapper.addClass("rank-math-social-preview rank-math-social-preview-"+this.currentNetwork),"twitter"===this.currentNetwork&&this.socialWrapper.addClass(a()("#rank_math_twitter_card_type").val()),this.updateTitlePreview(),this.updateDescriptionPreview(),this.updateThumbnailPreview())}},{key:"updateTitlePreview",value:function(){var e="twitter"===this.currentNetwork&&this.useFacebook?this.facebookTitleField.val():this[this.currentNetwork+"TitleField"].val();""!==e?e=this.truncate(k.a.swap(e),90):(e=Object(le.a)(rankMathEditor.assessor.dataCollector.getData("title")),this.facebookTitleField.attr("placeholder",e),this.twitterTitleField.attr("placeholder",e)),this.socialTitle.text(e),"facebook"===this.currentNetwork&&this.hideDescription()}},{key:"updateDescriptionPreview",value:function(){var e="twitter"===this.currentNetwork&&this.useFacebook?this.facebookDescriptionField.val():this[this.currentNetwork+"DescriptionField"].val();""!==e?e=this.truncate(k.a.swap(e),240):(e=rankMathEditor.assessor.dataCollector.getData("description"),this.facebookDescriptionField.attr("placeholder",e),this.twitterDescriptionField.attr("placeholder",e)),this.socialDescription.text(Object(i.isUndefined)(e)?"":e)}},{key:"updateThumbnailPreview",value:function(){var e=a()("#rank_math_post_thumbnail").attr("src"),t=rankMathEditor.assessor.dataCollector.getData("content"),n=!!/<img(?:[^>]+)?>/.test(t)&&a()(t).find("img:first").attr("src"),r=this.facebookImageField.val()||e||n||rankMath.defautOgImage,i=this.twitterImageField.val()||e||n||rankMath.defautOgImage;if("twitter"===this.currentNetwork&&this.useFacebook)i=r;else if(this.twitterImageStatus.find("img.cmb-file-field-image").length){var s=this.twitterImageStatus.siblings(".notice"),o=this.twitterImageStatus.find("img.cmb-file-field-image")[0];s.addClass("hidden"),a()(o).on("load",(function(){(200>o.naturalWidth||200>o.naturalHeight)&&s.removeClass("hidden")}))}var c=this.facebookImageStatus.siblings(".notice"),l=this.facebookImageStatus.find("img.cmb-file-field-image");c.addClass("hidden"),"facebook"===this.currentNetwork&&this.facebookImageField.val()&&l.length&&a()(l[0]).on("load",(function(){(200>l[0].naturalWidth||200>l[0].naturalHeight)&&c.removeClass("hidden")}));var u=a()(".rank-math-social-preview-image");a()(".facebook-thumbnail",u).attr("src",r),a()(".twitter-thumbnail",u).attr("src",i),u.toggleClass("no-facebook-image",!r),u.toggleClass("no-twitter-image",!i),u.parents(".rank-math-social-preview-facebook").find(".error-msg").toggleClass("show",!r),u.parents(".rank-math-social-preview-twitter").find(".error-msg").toggleClass("show",!i),this.updateThumbnailOverlay()}},{key:"updateThumbnailOverlay",value:function(){var e=a()(".rank-math-social-preview-image-overlay"),t=a()('[name="rank_math_'+this.currentNetwork+'_enable_image_overlay"]:checked').val(),n=!a()(".rank-math-social-preview-image").hasClass("no-"+this.currentNetwork+"-image"),r=a()('[name="rank_math_'+this.currentNetwork+'_image_overlay"]:checked').val();"twitter"===this.currentNetwork&&this.useFacebook&&(r=a()('[name="rank_math_facebook_image_overlay"]:checked').val(),n=!1);var i=a()(".cmb2-id-rank-math-"+this.currentNetwork+"-enable-image-overlay"),s="on"===i.find("input:checked").val();i.toggle(n),i.find(".notice-warning").toggle(s),"on"===t?(e.attr("src",rankMath.overlayImages[r].url).attr("class",(function(){return a()(this).attr("class").replace(/(^| )overlay-position-[a-zA-Z0-9_-]+/,"")+" overlay-position-"+rankMath.overlayImages[r].position})).show(),a()(".cmb2-id-rank-math-"+this.currentNetwork+"-image-overlay").toggle(n)):e.hide()}},{key:"hideDescription",value:function(){this.socialDescription.removeClass("hidden"),this.socialTitle.height()>22&&this.socialDescription.addClass("hidden")}},{key:"truncate",value:function(e,t){return e.length>t?e.substring(0,t):e}}])&&ue(t.prototype,n),r&&ue(t,r),e}();var de=function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType){var t=a()('.rank-math-tabs-navigation a[href="#setting-panel-schema"] .dashicons'),n=a()("#_bsf_post_type");if(a()('#rank_math_rich_snippet, input[type="radio"][name="rank_math_rich_snippet"]').on("change",(function(){var e,r="rank_math_rich_snippet"===a()(this).attr("id")?a()(this).val():a()('input[type="radio"][name="rank_math_rich_snippet"]:checked').val();t.removeClass().addClass((e=r,Object(i.get)({off:"rm-icon rm-icon-schema",Article:"rm-icon rm-icon-post",Book:"rm-icon rm-icon-book",Course:"rm-icon rm-icon-course",Event:"rm-icon rm-icon-calendar",JobPosting:"rm-icon rm-icon-job",Local:"rm-icon rm-icon-local-seo",Music:"rm-icon rm-icon-music",Product:"rm-icon rm-icon-cart",WooCommerceProduct:"rm-icon rm-icon-cart",Recipe:"rm-icon rm-icon-recipe",Restaurant:"rm-icon rm-icon-restaurant",Video:"rm-icon rm-icon-video",Person:"rm-icon rm-icon-users",Review:"rm-icon rm-icon-star",Service:"rm-icon rm-icon-service",Software:"rm-icon rm-icon-software"},e,"rm-icon rm-icon-schema"))),n.length&&"off"!==r&&n.val("0").trigger("change")})).trigger("change"),n.length){var r=a()("#rank_math_rich_snippet"),s=a()('input[name="rank_math_rich_snippet"][value="off"]');n.on("change",(function(){"0"!==n.val()&&(r.val("off").trigger("change"),s.prop("checked",!0).trigger("change"))})).trigger("change")}}};function pe(e){return(pe="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})(e)}var fe=function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType&&rankMath.postSettings.linkSuggestions){a.a.fn.extend({insertLink:function(e,t){var n=this[0],r="";if(n.selectionStart||"0"===n.selectionStart){var a=n.selectionStart,i=n.selectionEnd,s=n.scrollTop;r='<a href="'+e+'">'+n.value.substring(a,i)+"</a>",a===i&&(r='<a href="'+e+'">'+t+"</a>"),n.value=n.value.substring(0,a)+r+n.value.substring(i,n.value.length),n.focus(),n.selectionStart=a+r.length,n.selectionEnd=a+r.length,n.scrollTop=s}else r='<a href="'+e+'">'+t+"</a>",n.value+=r,n.focus()}});if("function"==typeof ClipboardJS)new ClipboardJS(".suggestion-copy").on("success",(function(e){var t=a()(e.trigger).parent().next(".suggestion-title"),n=t.html();t.text("Link Copied"),setTimeout((function(){t.html(n)}),1500)}));if("object"!==("undefined"==typeof tinymce?"undefined":pe(tinymce)))return!0;var t=null,n=null;a()(".suggestion-insert").on("click",(function(e){e.preventDefault();var r,i,s,o,c=a()(this);if(c.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()){t=tinymce.activeEditor,n=a()(t.getBody());var l=t.selection.getContent()||"";if(n.find("a[data-mce-selected]").length){var u=(r="",i="",s=t.selection.getStart(),(o=t.dom.getParent(s,"a[href]"))||(i=t.selection.getContent({format:"raw"}))&&-1!==i.indexOf("</a>")&&((r=i.match(/href="([^">]+)"/))&&r[1]&&(o=t.$('a[href="'+r[1]+'"]',s)[0]),o&&t.selection.select(o)),o);t.dom.setAttribs(u,{href:c.data("url")}),a()(u).text()!==l&&t.insertContent(l)}else l.length?t.insertContent('<a href="'+c.data("url")+'">'+l+"</a>"):t.insertContent('<a href="'+c.data("url")+'">'+c.data("text")+"</a>")}else{var h=a()("textarea.wp-editor-area:visible");h.length&&h.first().insertLink(c.data("url"),c.data("text"))}var d=c.closest(".suggestion-item").find(".suggestion-title"),p=d.html();d.text("Link Inserted"),c.addClass("clicked"),setTimeout((function(){var e,t,n,r;d.html(p),c.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(t=c,n=(e=d).data("fkcount")||0,r=e.data("fk"),(n+=1)===r.length&&(n=0),e.find(">a").text(r[n]),e.data("fkcount",n),t.data("text",r[n]))}),1500)})),a()("#rank_math_metabox_link_suggestions").find("h2").append(a()("#rank-math-link-suggestions-tooltip").html())}};var me=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType&&a()("[data-primary-term]").each((function(){var e=a()(this),t=e.val(),n=e.data("primary-term"),r=a()("#"+n+"div"),i=a()("#"+n+"checklist"),s=i.find("li"),o=i.find('input[type="checkbox"]:checked');s.addClass("rank-math-primary-term-li"),s.find("input").each((function(){var e=a()(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+n+'"><span>Make Term Primary</span></span>')})),o.each((function(){var e=a()(this).closest("li");e.addClass("term-checked"),n+"-"+t===e.attr("id")&&(e.addClass("term-marked-primary"),e.find(">label .rank-math-make-primary").prop("checked",!0))})),r.on("click",'input[type="checkbox"]',(function(){var t=a()(this).closest("li");if(t.toggleClass("term-checked"),1===i.find("li.term-checked").length||t.hasClass("term-marked-primary")&&!t.hasClass("term-checked")){var n=i.find("li.term-checked:first > label .rank-math-make-primary");0<n.length?n.trigger("click"):(s.removeClass("term-marked-primary"),s.find('input[type="radio"]').prop("checked",!1),e.val(""))}})),r.on("click",".rank-math-make-primary",(function(){var t=a()(this),n=t.closest("li");s.removeClass("term-marked-primary"),n.addClass("term-marked-primary"),e.val(t.val())})),i.on("wpListAddEnd",(function(){i.find("li:not(.rank-math-primary-term-li)").addClass("rank-math-primary-term-li term-checked").find("input").each((function(){var e=a()(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+n+'"><span>Make Term Primary</span></span>')}))}))}))},ke=n(27),ve=n.n(ke),ge=n(19);function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ye=function(){function e(){var t=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.canUser.general){this.elem=a()("#rank_math_focus_keyword"),this.elemWrapper=this.elem.parent(),this.clickCount=0,this.selectedKeyword={};var n={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this)};rankMath.isUserRegistered&&(n.input=Object(i.debounce)(this.onInput.bind(this),300)),this.tagify=new ve.a(this.elem[0],{addTagOnBlur:!0,maxTags:"post"===rankMath.objectType?rankMath.maxTags:1,whitelist:this.whitelist||[],transformTag:function(e){e.value=t.stripTags(e.value)},templates:{tag:function(e,n){return"<tag title='".concat(t.stripTags(e),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(t.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(t.stripTags(e),"</span>\n </div>\n </tag>")}},callbacks:n}),this.selectFirstKeyword(),this.setKeywordsClasses=this.setKeywordsClasses.bind(this),Object(o.addAction)("rank_math_refresh_results","rank-math",this.setKeywordsClasses,11)}}var t,n,r;return t=e,(n=[{key:"onInput",value:function(e){var t=this;(e=Object(i.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hasAdded?this.hasAdded=!1:this.request=a.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=a.a.map(n,(function(e){return e}));t.tagify.settings.whitelist=r,t.tagify.dropdown.show.call(t.tagify,e)}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,e.detail.tag.classList.add("bad-fk"),this.updateSelectedKeyword(e.detail),this.updateKeywords()}},{key:"onRemove",value:function(e){0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){this.updateSelectedKeyword(e.detail),setTimeout((function(){Object(o.doAction)("rank_math_refresh_results")}),500)}},{key:"onEdit",value:function(e){e.detail.tag.setAttribute("value",e.detail.data.value),this.hasAdded=!0,this.updateKeywords()}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"updateSelectedKeyword",value:function(e){this.elemWrapper.find("tag.selected").removeClass("selected"),""!==e.tag?(this.selectedKeyword=e,e.tag.classList.add("selected")):this.selectedKeyword={}}},{key:"setKeywordsClasses",value:function(){if(void 0!==this.tagify.value){var e=this.tagify.value;if(e.length>0){var t=this.elemWrapper.find("tag");e.map((function(e,n){var r=rankMathEditor.resultManager.getScore(s.Helpers.removeDiacritics(e.value));t[n].classList.remove("ok-fk","good-fk","bad-fk"),t[n].classList.add(Object(ge.a)(r))}))}}}},{key:"selectFirstKeyword",value:function(){var e=this.elemWrapper.find("tag"),t={tag:"",index:0,data:{value:""}};e.length>0&&(t={tag:e[0],index:0,data:{value:e[0].getAttribute("value")}}),this.updateSelectedKeyword(t)}},{key:"updateKeywords",value:function(){rankMathEditor.refresh("keyword")}},{key:"getFocusKeywords",value:function(){if(void 0===this.tagify||void 0===this.tagify.value)return[""];var e=this.tagify.value.map((function(e){return e.value}));return e.length?e:[""]}},{key:"getSelectedKeyword",value:function(){return Object(i.get)(this.selectedKeyword,["data","value"],"")}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=jQuery("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||"(invalid)"}}])&&be(t.prototype,n),r&&be(t,r),e}();function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _e=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image_src="",this.image_alt="",this.getFeaturedImage(),this.setImage(),this.removeImage(),Object(h.a)()&&this.gutenbergImage()}var t,n,r;return t=e,(n=[{key:"setImage",value:function(){var e=this;if(!Object(i.isUndefined)(wp.media)){var t=wp.media.featuredImage.frame();t.on("select",(function(){var n=a()("#rank_math_post_thumbnail"),r=t.state().get("selection").first().toJSON();e.sizeWarning(r),1>n.length&&(n=a()('<img id="rank_math_post_thumbnail" />'),a()(".facebook-thumbnail",".rank-math-social-preview-image").before(n)),"large"in r.sizes?n.attr("src",r.sizes.large.url):n.attr("src",r.sizes.full.url),e.setFeaturedImage(r)}))}}},{key:"removeImage",value:function(){var e=this;a()("#postimagediv").on("click","#remove-post-thumbnail",(function(){a()("#rank_math_image_warning").remove(),a()("#rank_math_post_thumbnail").remove(),e.setFeaturedImage("")}))}},{key:"gutenbergImage",value:function(){var e,t,n=this;wp.data.subscribe((function(){var r=wp.data.select("core/editor").getEditedPostAttribute("featured_media");n.isValidMediaId(r)&&(e=wp.data.select("core").getMedia(r),Object(i.isUndefined)(e)||e!==t&&(t=e,n.setFeaturedImage({url:e.guid.rendered,alt:e.alt_text})))}))}},{key:"setFeaturedImage",value:function(e){var t={src:Object(i.get)(e,"url",""),alt:Object(i.get)(e,"alt","")};Object(o.doAction)("rank_math_updated_featured_image",t)}},{key:"sizeWarning",value:function(e){if(a()("#rank_math_image_warning").remove(),!(200<e.width&&200<e.height)){var t=a()("#postimagediv").find(".hndle");a()('<div id="rank_math_image_warning" class="notice notice-error notice-alt"><p>'+rankMath.featuredImageNotice+"</p></div>").insertAfter(t)}}},{key:"getFeaturedImage",value:function(){var e=a()("#postimagediv img");if(!e||e.length){var t={url:e[0].src,alt:e[0].alt};this.setFeaturedImage(t)}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}}])&&we(t.prototype,n),r&&we(t,r),e}(),Oe=n(28);function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Pe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.canUser.analysis&&(a()("#setting-panel-general").append('<div id="rank-math-serp-checklist" class="rank-math-serp-checklist"></div>'),this.elem=a()("#rank-math-serp-checklist"),this.scoreText=rankMath.showScore?'<span class="score-text"><span class="score-icon"><svg viewBox="0 0 460 460" xmlns="http://www.w3.org/2000/svg" width="20"><g><path d="m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"/><path d="m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"/></g></svg></span> SEO: <strong>Not available</strong></span>':"",this.fkScoreText=rankMath.showScore?'<span class="score-text">Not available</span>':"",this.scoreElem=a()('<div class="misc-pub-section rank-math-seo-score loading">'+this.scoreText+"</div>"),this.scoreText=this.scoreElem.find("strong"),this.scoreField=a()("#rank_math_seo_score"),this.fkScoreElem=a()('<div class="rank-math-seo-score loading below-focus-keyword">'+this.fkScoreText+"</div>"),this.fkScoreText=this.fkScoreElem.find("span"),a()("#misc-publishing-actions").append(this.scoreElem),a()(".cmb-td",".cmb2-id-rank-math-focus-keyword").append(this.fkScoreElem),this.events(),this.refreshResults=this.refreshResults.bind(this),Object(o.addAction)("rank_math_refresh_results","rank-math",this.refreshResults))}var t,n,r;return t=e,(n=[{key:"events",value:function(){var e=this;this.elem.on("click",".group-handle",(function(t){t.preventDefault();var n=a()(t.target),r={},i=n.closest(".rank-math-serp-group");i.toggleClass("state-open state-closed"),e.elem.find(">.rank-math-serp-group").each((function(){i=a()(this),r[i.data("id")]=i.hasClass("state-closed")?"closed":"open"})),a.a.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_save_checklist_layout",security:rankMath.security,layout:r}})}))}},{key:"refreshResults",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();if(this.isPrimary=t===rankMathEditor.getPrimaryKeyword(),this.results=rankMathEditor.resultManager.getResult(t),Object(i.isUndefined)(this.results))return null;var n=Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}));this.elem.html(n),this.updateScore()}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e),n="basic"===e||a()("#rank-math-serp-group-"+e).hasClass("state-open")?"state-open":"state-closed",r=0===this.errors?"test-ok":"test-fail",i=Object(c.__)("All Good","rank-math");return 0<this.errors&&(i=1===this.errors?this.errors+" "+Object(c.__)("Error","rank-math"):this.errors+" "+Object(c.__)("Errors","rank-math")),'\n\t\t<div id="rank-math-serp-group-'.concat(e,'" class="rank-math-serp-group ').concat(n,'" data-id="').concat(e,'">\n\t\t\t<div class="group-handle">\n\t\t\t\t<h4>').concat(this.getGroupTitle(e),'</h4>\n\t\t\t\t<span class="rank-math-group-score ').concat(r,'">').concat(i,'</span>\n\t\t\t\t<button type="button" class="group-handlediv" aria-expanded="true"><span class="screen-reader-text"></span><span class="toggle-indicator"></span></button>\n\t\t\t</div>\n\t\t\t<ul>').concat(t,"</ul>\n\t\t</div>")}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e),a="";return Object.keys(r).map((function(e){if(Object(i.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var s=n[e],o="seo-check-"+e;o+=s.hasScore()?" test-ok":" test-fail",s.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(o+=" "+Object(Oe.a)(s.getScore(),s.getMaxScore())),"fleschReading"===e&&s.hasScore()&&(o+=" "+s.note.replace(/ /g,"-")),!1===s.hasScore()&&(t.errors+=1);var c=s.hasTooltip()?'<span class="rank-math-tooltip"><em class="dashicons-before dashicons-editor-help" ></em><span>'+s.getTooltip()+"</span></span>":"";a+='<li key="'.concat(e,'" class="').concat(o,'">\n\t\t\t\t\t<span>').concat(s.getText(),"</span>\n\t\t\t\t\t").concat(c,"\n\t\t\t\t</li>")})),a}},{key:"updateScore",value:function(){var e=rankMathEditor.resultManager.getScore(rankMathEditor.getPrimaryKeyword()),t=Object(ge.a)(e);this.scoreElem.removeClass("loading bad-fk ok-fk good-fk"),this.fkScoreElem.removeClass("loading bad-fk ok-fk good-fk"),this.scoreElem.addClass(t),this.fkScoreElem.addClass(t),this.scoreText.html(e+" / 100"),this.fkScoreText.html(e+" / 100"),this.scoreField.val(parseInt(e))}},{key:"getGroupItems",value:function(e){return("post"===rankMath.objectType?{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}:{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0},advanced:{titleStartWithKeyword:!0,keywordNotUsed:!0}})[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return"post"===rankMath.objectType?{basic:Object(c.__)("Basic SEO","rank-math"),advanced:Object(c.__)("Additional","rank-math"),"title-readability":Object(c.__)("Title Readability","rank-math"),"content-readability":Object(c.__)("Content Readability","rank-math")}:{basic:Object(c.__)("Basic SEO","rank-math"),advanced:Object(c.__)("Additional","rank-math")}}}])&&je(t.prototype,n),r&&je(t,r),e}();function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"setup",value:function(){this.elemMetabox=a()("#cmb2-metabox-rank_math_metabox"),this.resultManager=new s.ResultManager,this.assessor=new u(this.getCollector()),new d.a,this.registerComponents=this.registerComponents.bind(this),Object(o.addAction)("rank_math_loaded","rank-math",this.registerComponents,1)}},{key:"registerComponents",value:function(){this.components={},this.components.SerpPreview=new ce,this.components.socialFields=new he,this.components.richSnippet=new de,this.components.linkSuggestions=new fe,this.components.primaryTerm=new me,this.components.focusKeywords=new ye,this.components.featuredImage=new _e,this.components.checkLists=new Pe,rankMathAdmin.variableInserter(!1)}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"updatePermalink",value:function(e){e=this.assessor.getResearch("slugify")(e),this.assessor.dataCollector.handleSlugChange(e)}},{key:"getPrimaryKeyword",value:function(){return s.Helpers.removeDiacritics(this.components.focusKeywords.getFocusKeywords()[0])}},{key:"getSelectedKeyword",value:function(){var e=this.components.focusKeywords.getSelectedKeyword();return Object(i.isUndefined)(e)?"":s.Helpers.removeDiacritics(this.components.focusKeywords.getSelectedKeyword())}},{key:"getCollector",value:function(){return"post"===rankMath.objectType?Object(h.a)()?new y:new S(this):"term"===rankMath.objectType?new W:"user"===rankMath.objectType?new B:void 0}}])&&xe(t.prototype,n),r&&xe(t,r),e}();a()(document).ready((function(){window.rankMathEditor=new Ce,window.rankMathEditor.setup(),window.RankMathApp=new f})),a()(window).on("load",(function(){Object(o.doAction)("rank_math_loaded")}))},8:function(e,t){e.exports=rankMathAnalyzer},9:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),a=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())}});
|
1 |
+
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=76)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},10:function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var o=a.apply(null,n);o&&e.push(o)}else if("object"===i)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},11:function(e,t){e.exports=wp.url},14:function(e,t,r){"use strict";var n=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),n.innerHTML=e,e=n.textContent,n.textContent=""),e}},16:function(e,t){e.exports=wp.apiFetch},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return ur}));var n={};r.r(n),r.d(n,"updateKeywords",(function(){return d})),r.d(n,"updatePillarContent",(function(){return p})),r.d(n,"toggleFrontendScore",(function(){return h})),r.d(n,"updateAnalysisScore",(function(){return f})),r.d(n,"updateCanonicalUrl",(function(){return m})),r.d(n,"updateAdvancedRobots",(function(){return g})),r.d(n,"updateRobots",(function(){return k})),r.d(n,"updateBreadcrumbTitle",(function(){return y})),r.d(n,"resetDirtyMetadata",(function(){return b})),r.d(n,"updateFacebookTitle",(function(){return v})),r.d(n,"updateFacebookDescription",(function(){return w})),r.d(n,"updateFacebookImage",(function(){return _})),r.d(n,"updateFacebookImageID",(function(){return O})),r.d(n,"updateFacebookHasOverlay",(function(){return T})),r.d(n,"updateFacebookImageOverlay",(function(){return P})),r.d(n,"updateAppData",(function(){return u})),r.d(n,"updateAppUi",(function(){return l})),r.d(n,"updatePostID",(function(){return j})),r.d(n,"updatePermalink",(function(){return I})),r.d(n,"updateTitle",(function(){return D})),r.d(n,"updateDescription",(function(){return S})),r.d(n,"updateFeaturedImage",(function(){return C})),r.d(n,"updatePrimaryTermID",(function(){return x})),r.d(n,"updateRedirection",(function(){return M})),r.d(n,"updateRedirectionItem",(function(){return A})),r.d(n,"resetRedirection",(function(){return E})),r.d(n,"updateHasRedirect",(function(){return F})),r.d(n,"updateSerpTitle",(function(){return U})),r.d(n,"updateSerpDescription",(function(){return K})),r.d(n,"toggleSnippetEditor",(function(){return N})),r.d(n,"updateSnippetPreviewType",(function(){return H})),r.d(n,"updateTwitterUseFacebook",(function(){return W})),r.d(n,"updateTwitterCardType",(function(){return G})),r.d(n,"updateTwitterTitle",(function(){return z})),r.d(n,"updateTwitterDescription",(function(){return L})),r.d(n,"updateTwitterAuthor",(function(){return V})),r.d(n,"updateTwitterImageID",(function(){return B})),r.d(n,"updateTwitterImage",(function(){return $})),r.d(n,"updateTwitterHasOverlay",(function(){return J})),r.d(n,"updateTwitterImageOverlay",(function(){return Q})),r.d(n,"updateTwitterPlayerUrl",(function(){return q})),r.d(n,"updateTwitterPlayerSize",(function(){return Z})),r.d(n,"updateTwitterPlayerStreamUrl",(function(){return X})),r.d(n,"updateTwitterPlayerStreamCtype",(function(){return Y})),r.d(n,"updateTwitterAppDescription",(function(){return ee})),r.d(n,"updateTwitterAppIphoneID",(function(){return te})),r.d(n,"updateTwitterAppIphoneName",(function(){return re})),r.d(n,"updateTwitterAppIphoneUrl",(function(){return ne})),r.d(n,"updateTwitterAppIpadID",(function(){return ae})),r.d(n,"updateTwitterAppIpadName",(function(){return ie})),r.d(n,"updateTwitterAppIpadUrl",(function(){return oe})),r.d(n,"updateTwitterAppGoogleplayID",(function(){return se})),r.d(n,"updateTwitterAppGoogleplayName",(function(){return ce})),r.d(n,"updateTwitterAppGoogleplayUrl",(function(){return ue})),r.d(n,"updateTwitterAppCountry",(function(){return le})),r.d(n,"toggleLoaded",(function(){return de})),r.d(n,"updateSelectedKeyword",(function(){return pe})),r.d(n,"refreshResults",(function(){return he})),r.d(n,"setVersion",(function(){return fe})),r.d(n,"toggleSchemaEditor",(function(){return _e})),r.d(n,"toggleSchemaTemplates",(function(){return Oe})),r.d(n,"setEditingSchemaId",(function(){return Te})),r.d(n,"setEditorTab",(function(){return Pe})),r.d(n,"setTemplateTab",(function(){return je})),r.d(n,"updateEditSchemas",(function(){return Ie})),r.d(n,"updateSchemas",(function(){return De})),r.d(n,"updateEditSchema",(function(){return Se})),r.d(n,"saveSchema",(function(){return Ce})),r.d(n,"deleteSchema",(function(){return xe})),r.d(n,"saveTemplate",(function(){return Me}));var a={};r.r(a),r.d(a,"appData",(function(){return Ne})),r.d(a,"appUi",(function(){return Le}));var i={};r.r(i),r.d(i,"getAppData",(function(){return Ve})),r.d(i,"getDirtyMetadata",(function(){return Be})),r.d(i,"getAnalysisScore",(function(){return $e})),r.d(i,"getKeywords",(function(){return Je})),r.d(i,"getPillarContent",(function(){return Qe})),r.d(i,"getRobots",(function(){return qe})),r.d(i,"getAdvancedRobots",(function(){return Ze})),r.d(i,"getCanonicalUrl",(function(){return Xe})),r.d(i,"getBreadcrumbTitle",(function(){return Ye})),r.d(i,"getRichSnippets",(function(){return et})),r.d(i,"getShowScoreFrontend",(function(){return tt})),r.d(i,"isLoaded",(function(){return rt})),r.d(i,"getSelectedKeyword",(function(){return nt})),r.d(i,"isRefreshing",(function(){return at})),r.d(i,"isPro",(function(){return it})),r.d(i,"getFacebookTitle",(function(){return ot})),r.d(i,"getFacebookDescription",(function(){return st})),r.d(i,"getFacebookAuthor",(function(){return ct})),r.d(i,"getFacebookImageID",(function(){return ut})),r.d(i,"getFacebookImage",(function(){return lt})),r.d(i,"getFacebookHasOverlay",(function(){return dt})),r.d(i,"getFacebookImageOverlay",(function(){return pt})),r.d(i,"getPostID",(function(){return ht})),r.d(i,"getTitle",(function(){return ft})),r.d(i,"getPermalink",(function(){return mt})),r.d(i,"getDescription",(function(){return gt})),r.d(i,"getFeaturedImage",(function(){return kt})),r.d(i,"getFeaturedImageHtml",(function(){return yt})),r.d(i,"getPrimaryTermID",(function(){return bt})),r.d(i,"getRedirectionID",(function(){return vt})),r.d(i,"getRedirectionType",(function(){return wt})),r.d(i,"getRedirectionUrl",(function(){return _t})),r.d(i,"getRedirectionItem",(function(){return Ot})),r.d(i,"hasRedirect",(function(){return Tt})),r.d(i,"getSerpTitle",(function(){return jt})),r.d(i,"getSerpDescription",(function(){return It})),r.d(i,"isSnippetEditorOpen",(function(){return Dt})),r.d(i,"getSnippetPreviewType",(function(){return St})),r.d(i,"isSchemaEditorOpen",(function(){return Ct})),r.d(i,"isSchemaTemplatesOpen",(function(){return xt})),r.d(i,"getSchemas",(function(){return Mt})),r.d(i,"getEditSchemas",(function(){return At})),r.d(i,"getEditingSchema",(function(){return Et})),r.d(i,"getPreviewSchema",(function(){return Ft})),r.d(i,"getEditorTab",(function(){return Rt})),r.d(i,"getTemplateTab",(function(){return Ut})),r.d(i,"getTwitterUseFacebook",(function(){return Kt})),r.d(i,"getTwitterCardType",(function(){return Nt})),r.d(i,"getTwitterTitle",(function(){return Ht})),r.d(i,"getTwitterDescription",(function(){return Wt})),r.d(i,"getTwitterAuthor",(function(){return Gt})),r.d(i,"getTwitterImageID",(function(){return zt})),r.d(i,"getTwitterImage",(function(){return Lt})),r.d(i,"getTwitterHasOverlay",(function(){return Vt})),r.d(i,"getTwitterImageOverlay",(function(){return Bt})),r.d(i,"getTwitterAppDescription",(function(){return $t})),r.d(i,"getTwitterAppIphoneID",(function(){return Jt})),r.d(i,"getTwitterAppIphoneName",(function(){return Qt})),r.d(i,"getTwitterAppIphoneUrl",(function(){return qt})),r.d(i,"getTwitterAppIpadID",(function(){return Zt})),r.d(i,"getTwitterAppIpadName",(function(){return Xt})),r.d(i,"getTwitterAppIpadUrl",(function(){return Yt})),r.d(i,"getTwitterAppGoogleplayID",(function(){return er})),r.d(i,"getTwitterAppGoogleplayName",(function(){return tr})),r.d(i,"getTwitterAppGoogleplayUrl",(function(){return rr})),r.d(i,"getTwitterAppCountry",(function(){return nr})),r.d(i,"getTwitterPlayerUrl",(function(){return ar})),r.d(i,"getTwitterPlayerSize",(function(){return ir})),r.d(i,"getTwitterPlayerStream",(function(){return or})),r.d(i,"getTwitterPlayerStreamCtype",(function(){return sr}));var o=r(4),s=r(9),c=r(6);function u(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,r),null!==n&&(n=Object(c.applyFilters)("rank_math_sanitize_meta_value",n,e,r)),n=null===n?t:n,Object(c.doAction)("rank_math_data_changed",e,t,r),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:r,metaValue:n}}function l(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function d(e){return s.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),u("keywords",e,"rank_math_focus_keyword")}function p(e){return u("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function h(e){return u("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function f(e){return u("score",e,"rank_math_seo_score")}function m(e){return u("canonicalUrl",e,"rank_math_canonical_url")}function g(e){return u("advancedRobots",e,"rank_math_advanced_robots")}function k(e){return u("robots",e,"rank_math_robots",Object.keys(e))}function y(e){return u("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function b(){return u("dirtyMetadata",{})}function v(e){return u("facebookTitle",e,"rank_math_facebook_title")}function w(e){return u("facebookDescription",e,"rank_math_facebook_description")}function _(e){return u("facebookImage",e,"rank_math_facebook_image")}function O(e){return u("facebookImageID",e,"rank_math_facebook_image_id")}function T(e){return u("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function P(e){return u("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function j(e){return rankMath.objectID=e,u("postID",e)}function I(e){return u("permalink",e,"permalink")}function D(e){return u("title",e,"rank_math_title")}function S(e){return u("description",e,"rank_math_description")}function C(e){return u("featuredImage",e)}function x(e,t){return u("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function M(e,t){return u(e,t)}function A(e){return l("redirectionItem",e)}function E(){return l("redirectionItem",{})}function F(e){return l("hasRedirect",e)}var R=r(25);function U(e){return e=s.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),l("serpTitle",e)}function K(e){return e=s.a.swap(Object(R.a)(e)),rankMathEditor.refresh("description"),l("serpDescription",e)}function N(e){return l("isSnippetEditorOpen",e)}function H(e){return l("snippetPreviewType",e)}function W(e){return u("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function G(e){return u("twitterCardType",e,"rank_math_twitter_card_type")}function z(e){return u("twitterTitle",e,"rank_math_twitter_title")}function L(e){return u("twitterDescription",e,"rank_math_twitter_description")}function V(e){return u("twitterAuthor",e,"rank_math_twitter_author")}function B(e){return u("twitterImageID",e,"rank_math_twitter_image_id")}function $(e){return u("twitterImage",e,"rank_math_twitter_image")}function J(e){return u("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Q(e){return u("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function q(e){return u("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Z(e){return u("twitterPlayerSize",e,"rank_math_twitter_player_size")}function X(e){return u("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function Y(e){return u("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function ee(e){return u("twitterAppDescription",e,"rank_math_twitter_app_description")}function te(e){return u("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function re(e){return u("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ne(e){return u("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ae(e){return u("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function ie(e){return u("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function oe(e){return u("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function se(e){return u("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function ce(e){return u("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function ue(e){return u("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function le(e){return u("twitterAppCountry",e,"rank_math_twitter_app_country")}function de(e){return l("isLoaded",e)}function pe(e){return l("selectedKeyword",e)}function he(){return l("refreshResults",Date.now())}function fe(){return l("isPro",!0)}var me=r(1),ge=r(0),ke=r(16),ye=r.n(ke);function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){we(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function we(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _e(e){return l("isSchemaEditorOpen",e)}function Oe(e){return l("isSchemaTemplatesOpen",e)}function Te(e){return l("editingSchemaId",e)}function Pe(e){return l("editorTab",e)}function je(e){return l("templateTab",e)}function Ie(e){return l("editSchemas",e)}function De(e){return u("schemas",e)}function Se(e,t){var r=ve({},Object(o.select)("rank-math").getEditSchemas());return r[e]=t,l("editSchemas",r)}function Ce(e,t){var r=ve({},Object(o.select)("rank-math").getSchemas());return r[e]=t,u("schemas",r)}function xe(e){var t=ve({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),u("schemas",t,"rank_math_delete_"+e,"")}function Me(e,t,r){return ye()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:r}}).then((function(r){t({loading:!1,showNotice:!0,postId:r.id}),setTimeout((function(){t({showNotice:!1}),Object(me.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ge.__)("Edit Schema","rank-math"),window.history.pushState(null,"",r.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach((function(t){Fe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Re=rankMath.assessor.serpData,Ue=rankMath.assessor.hasRedirection,Ke={postID:null,title:Re.title?Re.title:Re.titleTemplate,description:Re.description,keywords:Re.focusKeywords,pillarContent:Re.pillarContent,featuredImage:"",permalink:!1,primaryTerm:Re.primaryTerm,robots:Re.robots,advancedRobots:Re.advancedRobots,canonicalUrl:Re.canonicalUrl,breadcrumbTitle:Re.breadcrumbTitle,showScoreFrontend:Re.showScoreFrontend,redirectionID:Ue?Object(me.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:Ue?Object(me.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:Ue?Object(me.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:Re.facebookTitle,facebookImage:Re.facebookImage,facebookImageID:Re.facebookImageID,facebookAuthor:Re.facebookAuthor,facebookDescription:Re.facebookDescription,facebookHasOverlay:Re.facebookHasOverlay,facebookImageOverlay:Re.facebookImageOverlay,twitterTitle:Re.twitterTitle,twitterImage:Re.twitterImage,twitterAuthor:Re.twitterAuthor,twitterImageID:Re.twitterImageID,twitterCardType:Re.twitterCardType,twitterUseFacebook:Re.twitterUseFacebook,twitterDescription:Re.twitterDescription,twitterHasOverlay:Re.twitterHasOverlay,twitterImageOverlay:Re.twitterImageOverlay,twitterPlayerUrl:Re.twitterPlayerUrl,twitterPlayerSize:Re.twitterPlayerSize,twitterPlayerStream:Re.twitterPlayerStream,twitterPlayerStreamCtype:Re.twitterPlayerStreamCtype,twitterAppDescription:Re.twitterAppDescription,twitterAppIphoneName:Re.twitterAppIphoneName,twitterAppIphoneID:Re.twitterAppIphoneID,twitterAppIphoneUrl:Re.twitterAppIphoneUrl,twitterAppIpadName:Re.twitterAppIpadName,twitterAppIpadID:Re.twitterAppIpadID,twitterAppIpadUrl:Re.twitterAppIpadUrl,twitterAppGoogleplayName:Re.twitterAppGoogleplayName,twitterAppGoogleplayID:Re.twitterAppGoogleplayID,twitterAppGoogleplayUrl:Re.twitterAppGoogleplayUrl,twitterAppCountry:Re.twitterAppCountry,schemas:Object(me.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function Ne(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ke,r=arguments.length>1?arguments[1]:void 0,n=Ee({},t.dirtyMetadata);return!1!==r.metaKey&&(n[r.metaKey]=r.metaValue),"RANK_MATH_APP_DATA"===r.type?"dirtyMetadata"===r.key?Ee(Ee({},t),{},{dirtyMetadata:r.value}):Ee(Ee({},t),{},(Fe(e={},r.key,r.value),Fe(e,"dirtyMetadata",n),e)):t}function He(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?He(Object(r),!0).forEach((function(t){Ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ze={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(me.isEmpty)(Object(me.get)(rankMath.assessor,"redirection.id",""))||!Object(me.isEmpty)(Object(me.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1};function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ze,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?We(We({},e),{},Ge({},t.key,t.value)):e}function Ve(e){return e.appData}function Be(e){return e.appData.dirtyMetadata}function $e(e){return e.appData.score}function Je(e){return e.appData.keywords}function Qe(e){return e.appData.pillarContent}function qe(e){return e.appData.robots}function Ze(e){return e.appData.advancedRobots}function Xe(e){return e.appData.canonicalUrl}function Ye(e){return e.appData.breadcrumbTitle}function et(e){return"todo"}function tt(e){return e.appData.showScoreFrontend}function rt(e){return e.appUi.isLoaded}function nt(e){return e.appUi.selectedKeyword}function at(e){return e.appUi.refreshResults}function it(e){return e.appUi.isPro}function ot(e){return e.appData.facebookTitle}function st(e){return e.appData.facebookDescription}function ct(e){return e.appData.facebookAuthor}function ut(e){return e.appData.facebookImageID}function lt(e){return e.appData.facebookImage}function dt(e){return e.appData.facebookHasOverlay}function pt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function ht(e){return e.appData.postID}function ft(e){return e.appData.title}function mt(e){return e.appData.permalink}function gt(e){return e.appData.description}function kt(e){return e.appData.featuredImage}function yt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function bt(e){return e.appData.primaryTerm}function vt(e){return e.appData.redirectionID}function wt(e){return e.appData.redirectionType}function _t(e){return e.appData.redirectionUrl}function Ot(e){return e.appUi.redirectionItem}function Tt(e){return e.appUi.hasRedirect}var Pt=r(14);function jt(e){return Object(Pt.a)(e.appUi.serpTitle)}function It(e){return e.appUi.serpDescription}function Dt(e){return e.appUi.isSnippetEditorOpen}function St(e){return e.appUi.snippetPreviewType}function Ct(e){return e.appUi.isSchemaEditorOpen}function xt(e){return e.appUi.isSchemaTemplatesOpen}function Mt(e){return e.appData.schemas}function At(e){return e.appUi.editSchemas}function Et(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Ft(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Rt(e){return e.appUi.editorTab}function Ut(e){return e.appUi.templateTab}function Kt(e){return e.appData.twitterUseFacebook}function Nt(e){return e.appData.twitterCardType}function Ht(e){return e.appData.twitterTitle}function Wt(e){return e.appData.twitterDescription}function Gt(e){return e.appData.twitterAuthor}function zt(e){return e.appData.twitterImageID}function Lt(e){return e.appData.twitterImage}function Vt(e){return e.appData.twitterHasOverlay}function Bt(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function $t(e){return e.appData.twitterAppDescription}function Jt(e){return e.appData.twitterAppIphoneID}function Qt(e){return e.appData.twitterAppIphoneName}function qt(e){return e.appData.twitterAppIphoneUrl}function Zt(e){return e.appData.twitterAppIpadID}function Xt(e){return e.appData.twitterAppIpadName}function Yt(e){return e.appData.twitterAppIpadUrl}function er(e){return e.appData.twitterAppGoogleplayID}function tr(e){return e.appData.twitterAppGoogleplayName}function rr(e){return e.appData.twitterAppGoogleplayUrl}function nr(e){return e.appData.twitterAppCountry}function ar(e){return e.appData.twitterPlayerUrl}function ir(e){return e.appData.twitterPlayerSize}function or(e){return e.appData.twitterPlayerStream}function sr(e){return e.appData.twitterPlayerStreamCtype}var cr=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:n});function ur(){return cr}},19:function(e,t,r){"use strict";var n=r(1);t.a=function(e,t,r,a){return""===e||Object(n.isUndefined)(t)?t:(t=Object(n.truncate)(t,{length:r,separator:a||" "})).replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"}))}},2:function(e,t){e.exports=jQuery},20:function(e,t,r){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},25:function(e,t,r){"use strict";var n=r(2),a=r.n(n),i=r(8),o=r(1),s=r(6),c=r(9),u=r(14),l=function(e,t){return e=(e=i.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(o.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),r=t.excerpt,n=function(e){if(Object(o.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(o.filter)(i.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==a.a.trim(e)}));if(!t.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=Object(o.filter)(t,(function(e){return Object(o.includes)(e.toLowerCase(),r)}));if(0<n.length)return l(n[0],160)}return l(t[0],160)}(Object(u.a)(t.content)),d=Object(o.isUndefined)(r)||Object(o.isEmpty)(r)?n:r;if(c.a.setVariable("excerpt",d),c.a.setVariable("seo_description",d),""!==(e=Object(u.a)(Object(s.applyFilters)("rankMath/description",e))))return i.Helpers.cleanText(e);if(!Object(o.isUndefined)(r)&&!Object(o.isEmpty)(r))return i.Helpers.cleanText(r);var p=rankMath.assessor.serpData.descriptionTemplate;return Object(o.isUndefined)(p)||""===p?n:i.Helpers.cleanText(p)}},26:function(e,t,r){"use strict";var n=r(0),a=r(6);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,r,o;return t=e,(r=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(n.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(n.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(n.sprintf)(Object(n.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(n.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,r),o&&i(t,o),e}();t.a=o},27:function(e,t,r){"use strict";var n=r(1),a=r(14);function i(e,t,r){var a=0;return!1!==Object(n.get)(r,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/r.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/r.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function s(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var r=Object(a.a)(e).length,c=0,u=!1;if(!1!==Object(n.get)(t,"pixelWidth",!1)){u=!0;var l=document.createTextNode(e),d=document.createElement("span");d.appendChild(l),d.id="rank-math-width-tester",d.className=t.widthCheckerClass;var p=document.body.appendChild(d);c=document.getElementById("rank-math-width-tester").offsetWidth,p.outerHTML=""}return{left:i(r,c,t),isInvalid:o(r,t),isInvalidWidth:!!u&&s(c,t),count:r+" / "+t.max,pixelWidth:u?c+"px / "+t.pixelWidth+"px":""}}},28:function(e,t){e.exports=Tagify},29:function(e,t,r){"use strict";var n=r(1);t.a=function(e,t){var r=Object(n.round)(e/t*100);if(!(100<=r))return 49<r?"test-check-good":30<r?"test-check-ok":"test-check-bad"}},31:function(e,t,r){"use strict";var n=r(1);t.a=function(){return!(Object(n.isNil)(window.wp)||Object(n.isNil)(wp.data)||Object(n.isNil)(wp.data.select("core/editor"))||!Object(n.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},4:function(e,t){e.exports=wp.data},6:function(e,t){e.exports=wp.hooks},76:function(e,t,r){"use strict";r.r(t);var n=r(2),a=r.n(n),i=r(1),o=r(8),s=r(6),c=r(0);function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new o.Analyzer({i18n:c,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.promises=[],this.hooks(),this.registerRefresh()}var t,r,n;return t=e,(r=[{key:"hooks",value:function(){this.assessAll=this.assessAll.bind(this),this.assessTitle=this.assessTitle.bind(this),this.assessContent=this.assessContent.bind(this),this.assessPermalink=this.assessPermalink.bind(this),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.assessKeyword=this.assessKeyword.bind(this),this.assessThumbnail=this.assessThumbnail.bind(this),Object(s.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(s.addAction)("rank_math_init_refresh","rank-math",this.assessAll),Object(s.addAction)("rank_math_title_refresh","rank-math",this.assessTitle),Object(s.addAction)("rank_math_content_refresh","rank-math",this.assessContent,11),Object(s.addAction)("rank_math_permalink_refresh","rank-math",this.assessPermalink,11),Object(s.addAction)("rank_math_featuredImage_refresh","rank-math",this.assessThumbnail,11),Object(s.addAction)("rank_math_keyword_refresh","rank-math",this.assessKeyword,11)}},{key:"getPaper",value:function(e){var t=this.dataCollector.getData(),r=new o.Paper("",{locale:rankMath.localeFull});return r.setTitle(t.title),r.setPermalink(t.slug),r.setDescription(t.description),r.setUrl(t.permalink),r.setText(Object(s.applyFilters)("rank_math_content",t.content)),r.setKeyword(o.Helpers.removeDiacritics(e)),Object(i.isUndefined)(t.featuredImage)||(r.setThumbnail(t.featuredImage.source_url),r.setThumbnailAltText(o.Helpers.removeDiacritics(t.featuredImage.alt_text))),r}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(i.debounce)((function(t){e.promises=[],Object(s.doAction)("rank_math_"+t+"_refresh"),Promise.all(e.promises).then((function(){e.refreshResults()}))}),500)}},{key:"assessAll",value:function(){var e=this;rankMathEditor.components.focusKeywords.getFocusKeywords().map((function(t,r){e.run(0===r?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests(),t,0===r)}))}},{key:"run",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=t||rankMathEditor.getSelectedKeyword();var n=this.getPaper(t);this.promises.push(this.analyzer.analyzeSome(this.filterTests(e),n).then((function(e){rankMathEditor.resultManager.update(n.getKeyword(),e,r)})))}},{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===rankMathEditor.getSelectedKeyword()&&this.refreshResults()}},{key:"assessThumbnail",value:function(){this.run(["keywordInImageAlt","contentHasAssets"])}},{key:"assessKeyword",value:function(){var e=rankMathEditor.getSelectedKeyword()===rankMathEditor.getPrimaryKeyword();this.run(e?rankMath.assessor.researchesTests:this.getSecondaryKeywordTests())}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"assessTitle",value:function(){this.run(["keywordInTitle","titleHasPowerWords","titleHasNumber","titleSentiment","titleStartWithKeyword"])}},{key:"assessContent",value:function(){return this.run(["contentHasShortParagraphs","contentHasTOC","contentHasAssets","keywordDensity","keywordIn10Percent","keywordInContent","keywordInImageAlt","keywordInMetaDescription","keywordInSubheadings","lengthContent","linksHasExternals","linksHasInternal","linksNotAllExternals"])}},{key:"assessPermalink",value:function(){return this.run(["keywordInPermalink","lengthPermalink"])}},{key:"getPrimaryKeyword",value:function(){return rankMathEditor.components.focusKeywords.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return rankMathEditor.components.focusKeywords.getSelectedKeyword()}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}},{key:"refreshResults",value:function(){Object(s.doAction)("rank_math_refresh_results")}},{key:"filterTests",value:function(e){return Object(i.intersection)(e,rankMath.assessor.researchesTests)}}])&&u(t.prototype,r),n&&u(t,n),e}(),d=r(31),p=r(26);function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.methods=[],this.init=this.init.bind(this),this.refresh=this.refresh.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.init)}var t,r,n;return t=e,(r=[{key:"init",value:function(){this.methods.length&&rankMathEditor.refresh("content")}},{key:"registerPlugin",value:function(){console.warn("RankMathApp.registerPlugin is deprecated.")}},{key:"refresh",value:function(e){console.warn("RankMathApp.refresh is deprecated, use rankMathEditor.refresh()"),this.methods.push(e)}},{key:"reloadPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"content";console.warn("RankMathApp.reloadPlugin is deprecated, use rankMathEditor.refresh()"),this.refresh(t)}}])&&h(t.prototype,r),n&&h(t,n),e}(),m=r(17),g=r(4),k=r(9);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.refresh),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,r,n;return t=e,(r=[{key:"collectGutenbergData",value:function(){return!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return rankMath.objectID}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),this._coreEditorSelect.getPermalink()}},{key:"getSlug",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),this.getPostAttribute("slug")||e}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(g.select)("core").getMedia(e);if(!Object(i.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return this._coreEditorSelect||(this._coreEditorSelect=Object(g.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(i.debounce)(this.refresh,500),Object(g.subscribe)(this.subscriber)}},{key:"refresh",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"handleEditorChange",value:function(e){var t=this,r={slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(i.isInteger)(e.id))return this.initialize?void Object(i.forEach)(r,(function(r,n){t._data[n]!==e[n]&&t[r](t._data[n])})):(this.initialize=!0,Object(i.forEach)(r,(function(e,r){t[e](t._data[r])})),void rankMathEditor.refresh("init"))}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){k.a.setVariable("title",e),k.a.setVariable("term",e),k.a.setVariable("author",e),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){k.a.setVariable("excerpt",e),k.a.setVariable("excerpt_only",e),k.a.setVariable("wc_shortdesc",e),k.a.setVariable("seo_description",e),rankMathEditor.refresh("content")}},{key:"handleFeaturedImageChange",value:function(e){this._data.featuredImage=e,rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}},{key:"updateData",value:function(e,t){this._data[e]=t}}])&&v(t.prototype,r),n&&v(t,n),e}();function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var O=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1,description:""},this.refresh=this.refresh.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.refresh),this.setup(),this.init()}var t,r,n;return t=e,(r=[{key:"init",value:function(){var e=this;this.elemTitle.on("input",Object(i.debounce)((function(){e.handleTitleChange(e.elemTitle.val())}),500)),this.elemDescription.on("input",Object(i.debounce)((function(){e.handleExcerptChange(e.elemDescription.val())}),500)),this.elemSlug.on("input",Object(i.debounce)((function(){rankMathEditor.updatePermalink(e.elemSlug.val())}),500))}},{key:"collectData",value:function(){this._data={id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return rankMath.objectID}},{key:"getTitle",value:function(){return this.elemTitle.val()}},{key:"getExcerpt",value:function(){var e=this.elemDescription.val();return k.a.setVariable("excerpt",e),k.a.setVariable("excerpt_only",e),k.a.setVariable("wc_shortdesc",e),k.a.setVariable("seo_description",e),e}},{key:"getPermalink",value:function(){return rankMath.homeUrl+"/"+this.getSlug()}},{key:"getSlug",value:function(){return this.elemSlug.val()}},{key:"getFeaturedImage",value:function(){return this.featuredImage}},{key:"refresh",value:function(){this.collectData(),rankMathEditor.refresh("init")}},{key:"handleSlugChange",value:function(e){var t=rankMathEditor.components.SerpPreview;this.elemSlug.val(e),a()("#editable-post-name").text(e),a()("#editable-post-name-full").text(e),Object(i.isUndefined)(t.serpPermalinkField)||t.serpPermalinkField.val(e),this._data.slug=this.getSlug(),this._data.permalink=this.getPermalink(),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){k.a.setVariable("title",e),k.a.setVariable("term",e),k.a.setVariable("author",e),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(){this._data.excerpt=this.getExcerpt(),rankMathEditor.refresh("content")}},{key:"handleFeaturedImageChange",value:function(){this._data.featuredImage=this.getFeaturedImage(),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){this._data.excerpt=this.getExcerpt(),this._data.content=this.getContent(),rankMathEditor.refresh("content")}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?this._data[e]:this._data}},{key:"updateData",value:function(e,t){this._data[e]=t}},{key:"isTinymce",value:function(){return"undefined"!=typeof tinymce}}])&&_(t.prototype,r),n&&_(t,n),e}();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})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var a=C(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return S(this,r)}}function S(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(c,e);var t,r,n,o=D(c);function c(){return P(this,c),o.apply(this,arguments)}return t=c,(r=[{key:"setup",value:function(){this.elemSlug=a()("#post_name"),this.elemTitle=a()("#title"),this.elemDescription=a()("#excerpt"),this.elemContent=a()("#content"),this.editableName=a()("#editable-post-name-full"),this.assessThumbnail=this.assessThumbnail.bind(this),Object(s.addAction)("rank_math_updated_featured_image","rank-math",this.assessThumbnail),this.events()}},{key:"getContent",value:function(){if(null!==this.elemContent&&0!==this.elemContent.length)return this.isTinymce()&&tinymce.activeEditor&&"content"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():this.elemContent.val()}},{key:"getSlug",value:function(){var e=""===this.elemSlug.val()&&this.editableName.length?this.editableName.text():this.elemSlug.val();return Object(i.isUndefined)(e)?"":e}},{key:"events",value:function(){var e=this;this.elemContent.on("input change",Object(i.debounce)((function(){e.handleContentChange()}),500)),a()(window).on("load",(function(){e.isTinymce()&&(tinymce.activeEditor&&!Object(i.isUndefined)(tinymce.editors.content)&&tinymce.editors.content.on("keyup change",Object(i.debounce)((function(){e.handleContentChange()}),500)),tinymce.editors&&!Object(i.isUndefined)(tinymce.editors.excerpt)&&tinymce.editors.excerpt.on("keyup change",Object(i.debounce)((function(){tinymce.editors.excerpt.save(),e.handleExcerptChange()}),500)))})),a()(document).on("ajaxComplete",(function(t,r,n){var i="/admin-ajax.php";if(i===n.url.substr(0-i.length)){var o="";"string"==typeof n.data&&-1!==n.data.indexOf("action=sample-permalink")&&(o=""===r.responseText?e.elemTitle.val():a()("<div>"+r.responseText+"</div>").find("#editable-post-name-full").text(),rankMathEditor.updatePermalink(o))}}))}},{key:"assessThumbnail",value:function(e){this.featuredImage={source_url:e.src,alt_text:e.alt},this.handleFeaturedImageChange(e)}}])&&j(t.prototype,r),n&&j(t,n),c}(O);function M(e){return(M="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})(e)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=K(e);if(t){var a=K(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return U(this,r)}}function U(e,t){return!t||"object"!==M(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(s,e);var t,r,n,o=R(s);function s(){return A(this,s),o.apply(this,arguments)}return t=s,(r=[{key:"setup",value:function(){this.elemSlug=a()("#slug"),this.elemTitle=a()("#name"),this.elemDescription=a()("#rank_math_description_editor"),this.events()}},{key:"getContent",value:function(){return null===this.elemDescription||0===this.elemDescription.length?"":this.isTinymce()&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():this.elemDescription.val()}},{key:"events",value:function(){var e=this;a()(window).on("load",(function(){e.isTinymce()&&tinymce.activeEditor&&!Object(i.isUndefined)(tinymce.editors.rank_math_description_editor)&&tinymce.editors.rank_math_description_editor.on("keyup change",Object(i.debounce)((function(){e.handleContentChange()}),500))}))}}])&&E(t.prototype,r),n&&E(t,n),s}(O);function H(e){return(H="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})(e)}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=B(e);if(t){var a=B(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return V(this,r)}}function V(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(o,e);var t,r,n,i=L(o);function o(){return W(this,o),i.apply(this,arguments)}return t=o,(r=[{key:"setup",value:function(){this.elemSlug=a()("#rank_math_permalink"),this.elemTitle=a()("#display_name"),this.elemDescription=a()("#description")}},{key:"getContent",value:function(){return this.elemDescription.val()}}])&&G(t.prototype,r),n&&G(t,n),o}(O),J=r(11),Q=r(25),q=r(19),Z=r(10),X=r.n(Z),Y=r(27);function ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var te=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"check",value:function(e,t){this.elem=e,this.elem.closest(".cmb-td").find(".length-indicator-wrapper").length||this.wrapIndicator(t),this.updateLength(t)}},{key:"wrapIndicator",value:function(e){this.elem.closest(".cmb-td").append('<span class="'+X()("length-indicator-wrapper",{"width-indicator":!1!==Object(i.get)(e,"pixelWidth",!1)})+'"><span class="length-count">0 / '+e.max+'</span><span class="length-indicator"><span></span></span></span>')}},{key:"updateLength",value:function(e){var t=this.elem.closest(".cmb-td").find(".length-indicator"),r=t.find(">span"),n=this.elem.closest(".cmb-td").find(".length-count"),a=Object(Y.a)(e.text,e);t.removeClass("invalid short"),r.css("left",a.left),n.text(a.count),!1!==Object(i.get)(e,"pixelWidth",!1)&&n.text(n.text()+" ("+a.pixelWidth+")"),(a.isInvalid||a.isInvalidWidth)&&t.addClass("invalid")}}])&&ee(t.prototype,r),n&&ee(t,n),e}();function re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ne(e){return(ne="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})(e)}function ae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ce(e);if(t){var a=ce(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return se(this,r)}}function se(e,t){return!t||"object"!==ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ce(e){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ie(e,t)}(c,e);var t,r,n,o=oe(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),e=o.call(this),rankMath.canUser.general?(e.hooks(),e.elemMetabox=rankMathEditor.elemMetabox,e.serpCanonical=e.elemMetabox.find("#rank_math_canonical_url"),e.serpTitleField=e.elemMetabox.find("#rank_math_title"),e.serpPermalinkField=e.elemMetabox.find("#rank_math_permalink"),e.serpDescriptionField=e.elemMetabox.find("#rank_math_description"),e.serpWrapper=e.elemMetabox.find(".serp-preview"),e.serpFieldsWrapper=e.elemMetabox.find(".rank-math-serp-fields-wrapper"),e.serpTitle=e.serpWrapper.find(".serp-title"),e.serpPermalink=e.serpWrapper.find(".serp-url"),e.serpDescription=e.serpWrapper.find(".serp-description"),e.devices=e.elemMetabox.find(".rank-math-select-device"),e.init(),e):se(e)}return t=c,(r=[{key:"init",value:function(){this.previewEvent(),this.updateEvents(),this.serpEvents(),this.robotsEvents()}},{key:"previewEvent",value:function(){this.devices.on("click",(function(e){e.preventDefault();var t=a()(e.currentTarget),r=t.hasClass("active")?"":t.data("device");Object(s.doAction)("rank_math_preview_device",r)}))}},{key:"serpEvents",value:function(){var e=this,t=this.elemMetabox.find(".rank-math-edit-snippet");t.on("click",(function(r){r.preventDefault(),t.toggleClass("hidden active"),e.serpFieldsWrapper.toggleClass("hidden")})),this.elemMetabox.on("click",".serp-title, .serp-url, .serp-description",(function(r){r.preventDefault(),t.toggleClass("hidden active"),e.serpFieldsWrapper.toggleClass("hidden")}))}},{key:"updateEvents",value:function(){var e=this;this.serpTitleField.on("input",Object(i.debounce)((function(){rankMathEditor.refresh("title")}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1})),this.serpPermalinkField.val(rankMathEditor.assessor.dataCollector.getSlug()).on("blur",(function(){rankMathEditor.updatePermalink(e.serpPermalinkField.val())})).on("input",Object(i.debounce)((function(){e.updatePermalinkPreview()}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1})),rankMath.is_front_page&&this.serpPermalinkField.val("/").attr("disabled","disabled"),this.serpDescriptionField.on("input",Object(i.debounce)((function(){rankMathEditor.refresh("content")}),500)).on("keypress",(function(e){if(13===e.which||13===e.keyCode)return e.preventDefault(),a()(e.target).closest(".cmb-row").prev().trigger("click"),!1}))}},{key:"updatePreviewCallbacks",value:function(e,t){e=e||"global",rankMathEditor.assessor.dataCollector.updateData(e,t),this.elemMetabox.trigger("rank-math-updating-preview-"+e),this.elemMetabox.trigger("rank-math-"+e+"-updated",t)}},{key:"robotsEvents",value:function(){var e=this,t=a()("#rank_math_robots1"),r=a()("#rank_math_robots2");t.on("change",(function(){t.is(":checked")?(e.serpWrapper.addClass("noindex-preview"),r.prop("checked",!1).trigger("change")):e.serpWrapper.removeClass("noindex-preview")})),r.on("change",(function(){if(r.is(":checked"))return e.serpWrapper.addClass("noindex-preview"),void t.prop("checked",!1);e.serpWrapper.removeClass("noindex-preview")})).trigger("change")}}])&&ae(t.prototype,r),n&&ae(t,n),c}(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.title="",this.description="",this.lengthIndicator=new te}var t,r,n;return t=e,(r=[{key:"hooks",value:function(){this.previewDevice=this.previewDevice.bind(this),this.updatePreview=this.updatePreview.bind(this),this.updateTitlePreview=this.updateTitlePreview.bind(this),this.updatePermalinkPreview=this.updatePermalinkPreview.bind(this),this.updateDescriptionPreview=this.updateDescriptionPreview.bind(this),Object(s.addAction)("rank_math_preview_device","rank-math",this.previewDevice),Object(s.addAction)("rank_math_init_refresh","rank-math",this.updatePreview,1),Object(s.addAction)("rank_math_title_refresh","rank-math",this.updateTitlePreview,1),Object(s.addAction)("rank_math_permalink_refresh","rank-math",this.updatePermalinkPreview,1),Object(s.addAction)("rank_math_content_refresh","rank-math",this.updateDescriptionPreview,1),Object(s.addAction)("rank_math_keyword_refresh","rank-math",this.updatePreview,11)}},{key:"updatePreview",value:function(){this.updateTitlePreview(),this.updatePermalinkPreview(),this.updateDescriptionPreview()}},{key:"previewDevice",value:function(e){switch(this.devices.removeClass("active"),e){case"desktop":this.serpWrapper.removeClass("mobile-preview"),this.serpWrapper.addClass("desktop-preview expanded-preview"),rankMathEditor.elemMetabox.find(".rank-math-select-device.device-desktop").addClass("active");break;case"mobile":this.serpWrapper.removeClass("desktop-preview"),this.serpWrapper.addClass("mobile-preview expanded-preview"),rankMathEditor.elemMetabox.find(".rank-math-select-device.device-mobile").addClass("active");break;default:this.serpWrapper.removeClass("mobile-preview expanded-preview"),this.serpWrapper.addClass("desktop-preview")}}},{key:"updateTitlePreview",value:function(){this.title=this.serpTitleField.val();var e=""!==this.title;this.serpTitleField.val(e?this.title:this.serpTitle.data("format")),this.title=o.Helpers.sanitizeText(k.a.swap(""!==this.title?this.title:this.serpTitle.data("format"))),this.lengthIndicator.check(this.serpTitleField,{text:this.title,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),this.serpTitle.html(Object(q.a)(rankMathEditor.getSelectedKeyword(),o.Helpers.sanitizeText(this.title),60)),this.updatePreviewCallbacks("title",this.title),this.serpTitle.trigger("rank-math-vars-replaced")}},{key:"updatePermalinkPreview",value:function(){var e=this.serpPermalink.data("format")||"",t=this.serpPermalinkField.val(),r=rankMathEditor.assessor.getResearch("slugify")(rankMathEditor.getSelectedKeyword());this.permalink=""!==t?e.replace(/%(postname|pagename)%/,t).trimRight("/")+"/":"",this.serpCanonical.attr("placeholder",this.permalink),this.lengthIndicator.check(this.serpPermalinkField,{text:this.permalink,min:5,max:75}),this.serpPermalink.html(Object(q.a)(r,o.Helpers.sanitizeText(Object(J.safeDecodeURIComponent)(this.permalink)),75)),this.updatePreviewCallbacks("permalink",this.permalink),this.serpPermalink.trigger("rank-math-vars-replaced")}},{key:"updateDescriptionPreview",value:function(){this.description=o.Helpers.sanitizeText(k.a.swap(Object(Q.a)(this.serpDescriptionField.val()))),this.lengthIndicator.check(this.serpDescriptionField,{text:this.description,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),this.serpDescription.html(Object(q.a)(rankMathEditor.getSelectedKeyword(),o.Helpers.sanitizeText(this.description),160)),this.serpDescriptionField.attr("placeholder",""!==this.description?this.description:this.serpDescription.data("format")),this.updatePreviewCallbacks("description",this.description),this.serpDescription.trigger("rank-math-vars-replaced")}}])&&re(t.prototype,r),n&&re(t,n),e}()),le=r(14);function de(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var pe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elemMetabox=rankMathEditor.elemMetabox,this.currentNetwork="facebook",this.useFacebook=!0,this.shouldUpdatePreview=!1,this.facebookTitleField=this.elemMetabox.find("#rank_math_facebook_title"),this.facebookDescriptionField=this.elemMetabox.find("#rank_math_facebook_description"),this.twitterTitleField=this.elemMetabox.find("#rank_math_twitter_title"),this.twitterDescriptionField=this.elemMetabox.find("#rank_math_twitter_description"),this.facebookImageField=this.elemMetabox.find("#rank_math_facebook_image"),this.twitterImageField=this.elemMetabox.find("#rank_math_twitter_image"),this.facebookImageStatus=this.elemMetabox.find("#rank_math_facebook_image-status"),this.twitterImageStatus=this.elemMetabox.find("#rank_math_twitter_image-status"),this.socialWrapper=this.elemMetabox.find(".rank-math-social-preview"),this.socialPreview=this.socialWrapper.find(".rank-math-social-preview-item"),this.socialTitle=this.socialWrapper.find(".rank-math-social-preview-title"),this.socialDescription=this.socialWrapper.find(".rank-math-social-preview-description"),this.events(),this.shouldUpdatePreview=!0,this.updateTitlePreview=this.updateTitlePreview.bind(this),this.updateDescriptionPreview=this.updateDescriptionPreview.bind(this),this.updateThumbnailPreview=this.updateThumbnailPreview.bind(this),this.updatePreview=this.updatePreview.bind(this),Object(s.addAction)("rank_math_init_refresh","rank-math",this.updatePreview),Object(s.addAction)("rank_math_title_refresh","rank-math",this.updateTitlePreview,2),Object(s.addAction)("rank_math_content_refresh","rank-math",this.updateDescriptionPreview,2),Object(s.addAction)("rank_math_featuredImage_refresh","rank-math",this.updateThumbnailPreview),this.updatePreview()}var t,r,n;return t=e,(r=[{key:"events",value:function(){var e=this;this.facebookTitleField.on("input",(function(){e.updateTitlePreview()})),this.facebookDescriptionField.on("input",(function(){e.updateDescriptionPreview()})),this.facebookImageField.on("input",(function(){e.updateThumbnailPreview()})),this.twitterTitleField.on("input",(function(){e.updateTitlePreview()})),this.twitterDescriptionField.on("input",(function(){e.updateDescriptionPreview()})),this.twitterImageField.on("input",(function(){e.updateThumbnailPreview()}));var t=a()(".rank-math-social-preview-button"),r=t.find(">span");t.on("click",(function(t){t.preventDefault(),r.toggleClass("dashicons-arrow-down dashicons-arrow-up"),e.updatePreview(),e.socialWrapper.toggleClass("open"),e.socialPreview.slideToggle()}));var n=a()("#rank_math_twitter_card_type");a()(".preview-network").on("click",(function(r){a()(r.target).hasClass("tab-facebook")?t.show():n.trigger("change"),e.updatePreview()})),n.on("change",(function(){var r=n.val();"player"===r&&a()(".cmb2-id-rank-math-twitter-image, .cmb2-id-rank-math-twitter-title, .cmb2-id-rank-math-twitter-description").show();var i="player"===r||"app"===r;t.toggle(!i),a()(".cmb2-id-rank-math-twitter-use-facebook").toggle(!i),i||e.updatePreview()})).trigger("change");var i=a()("#rank_math_twitter_use_facebook");i.on("input change",(function(){e.useFacebook=i.is(":checked"),e.updatePreview()})).trigger("change"),a()(".cmb2-id-rank-math-facebook-enable-image-overlay, .cmb2-id-rank-math-facebook-image-overlay, .cmb2-id-rank-math-twitter-enable-image-overlay, .cmb2-id-rank-math-twitter-image-overlay").on("change","input",(function(){e.updateThumbnailOverlay()})),a()(document).on("cmb_media_modal_select",(function(t,r,n){"rank_math_facebook_image"!==n.field&&"rank_math_twitter_image"!==n.field||e.updateThumbnailPreview()})),a()(document).on("cmb_init",(function(t,r){r.$metabox.on("click",".cmb2-remove-file-button",(function(){e.updateThumbnailPreview()}))}))}},{key:"updatePreview",value:function(){!1!==this.shouldUpdatePreview&&a()(".preview-network.tab-active").length&&(this.currentNetwork=a()(".preview-network.tab-active").attr("href").replace("#setting-panel-social-",""),this.socialWrapper.removeClass(),this.socialWrapper.addClass("rank-math-social-preview rank-math-social-preview-"+this.currentNetwork),"twitter"===this.currentNetwork&&this.socialWrapper.addClass(a()("#rank_math_twitter_card_type").val()),this.updateTitlePreview(),this.updateDescriptionPreview(),this.updateThumbnailPreview())}},{key:"updateTitlePreview",value:function(){var e="twitter"===this.currentNetwork&&this.useFacebook?this.facebookTitleField.val():this[this.currentNetwork+"TitleField"].val();""!==e?e=this.truncate(k.a.swap(e),90):(e=Object(le.a)(rankMathEditor.assessor.dataCollector.getData("title")),this.facebookTitleField.attr("placeholder",e),this.twitterTitleField.attr("placeholder",e)),this.socialTitle.text(e),"facebook"===this.currentNetwork&&this.hideDescription()}},{key:"updateDescriptionPreview",value:function(){var e="twitter"===this.currentNetwork&&this.useFacebook?this.facebookDescriptionField.val():this[this.currentNetwork+"DescriptionField"].val();""!==e?e=this.truncate(k.a.swap(e),240):(e=rankMathEditor.assessor.dataCollector.getData("description"),this.facebookDescriptionField.attr("placeholder",e),this.twitterDescriptionField.attr("placeholder",e)),this.socialDescription.text(Object(i.isUndefined)(e)?"":e)}},{key:"updateThumbnailPreview",value:function(){var e=a()("#rank_math_post_thumbnail").attr("src"),t=rankMathEditor.assessor.dataCollector.getData("content"),r=!!/<img(?:[^>]+)?>/.test(t)&&a()(t).find("img:first").attr("src"),n=this.facebookImageField.val()||e||r||rankMath.defautOgImage,i=this.twitterImageField.val()||e||r||rankMath.defautOgImage;if("twitter"===this.currentNetwork&&this.useFacebook)i=n;else if(this.twitterImageStatus.find("img.cmb-file-field-image").length){var o=this.twitterImageStatus.siblings(".notice"),s=this.twitterImageStatus.find("img.cmb-file-field-image")[0];o.addClass("hidden"),a()(s).on("load",(function(){(200>s.naturalWidth||200>s.naturalHeight)&&o.removeClass("hidden")}))}var c=this.facebookImageStatus.siblings(".notice"),u=this.facebookImageStatus.find("img.cmb-file-field-image");c.addClass("hidden"),"facebook"===this.currentNetwork&&this.facebookImageField.val()&&u.length&&a()(u[0]).on("load",(function(){(200>u[0].naturalWidth||200>u[0].naturalHeight)&&c.removeClass("hidden")}));var l=a()(".rank-math-social-preview-image");a()(".facebook-thumbnail",l).attr("src",n),a()(".twitter-thumbnail",l).attr("src",i),l.toggleClass("no-facebook-image",!n),l.toggleClass("no-twitter-image",!i),l.parents(".rank-math-social-preview-facebook").find(".error-msg").toggleClass("show",!n),l.parents(".rank-math-social-preview-twitter").find(".error-msg").toggleClass("show",!i),this.updateThumbnailOverlay()}},{key:"updateThumbnailOverlay",value:function(){var e=a()(".rank-math-social-preview-image-overlay"),t=a()('[name="rank_math_'+this.currentNetwork+'_enable_image_overlay"]:checked').val(),r=!a()(".rank-math-social-preview-image").hasClass("no-"+this.currentNetwork+"-image"),n=a()('[name="rank_math_'+this.currentNetwork+'_image_overlay"]:checked').val();"twitter"===this.currentNetwork&&this.useFacebook&&(n=a()('[name="rank_math_facebook_image_overlay"]:checked').val(),r=!1);var i=a()(".cmb2-id-rank-math-"+this.currentNetwork+"-enable-image-overlay"),o="on"===i.find("input:checked").val();i.toggle(r),i.find(".notice-warning").toggle(o),"on"===t?(e.attr("src",rankMath.overlayImages[n].url).attr("class",(function(){return a()(this).attr("class").replace(/(^| )overlay-position-[a-zA-Z0-9_-]+/,"")+" overlay-position-"+rankMath.overlayImages[n].position})).show(),a()(".cmb2-id-rank-math-"+this.currentNetwork+"-image-overlay").toggle(r)):e.hide()}},{key:"hideDescription",value:function(){this.socialDescription.removeClass("hidden"),this.socialTitle.height()>22&&this.socialDescription.addClass("hidden")}},{key:"truncate",value:function(e,t){return e.length>t?e.substring(0,t):e}}])&&de(t.prototype,r),n&&de(t,n),e}();var he=function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType){var t=a()('.rank-math-tabs-navigation a[href="#setting-panel-schema"] .dashicons'),r=a()("#_bsf_post_type");if(a()('#rank_math_rich_snippet, input[type="radio"][name="rank_math_rich_snippet"]').on("change",(function(){var e,n="rank_math_rich_snippet"===a()(this).attr("id")?a()(this).val():a()('input[type="radio"][name="rank_math_rich_snippet"]:checked').val();t.removeClass().addClass((e=n,Object(i.get)({off:"rm-icon rm-icon-schema",Article:"rm-icon rm-icon-post",Book:"rm-icon rm-icon-book",Course:"rm-icon rm-icon-course",Event:"rm-icon rm-icon-calendar",JobPosting:"rm-icon rm-icon-job",Local:"rm-icon rm-icon-local-seo",Music:"rm-icon rm-icon-music",Product:"rm-icon rm-icon-cart",WooCommerceProduct:"rm-icon rm-icon-cart",Recipe:"rm-icon rm-icon-recipe",Restaurant:"rm-icon rm-icon-restaurant",Video:"rm-icon rm-icon-video",Person:"rm-icon rm-icon-users",Review:"rm-icon rm-icon-star",Service:"rm-icon rm-icon-service",Software:"rm-icon rm-icon-software"},e,"rm-icon rm-icon-schema"))),r.length&&"off"!==n&&r.val("0").trigger("change")})).trigger("change"),r.length){var n=a()("#rank_math_rich_snippet"),o=a()('input[name="rank_math_rich_snippet"][value="off"]');r.on("change",(function(){"0"!==r.val()&&(n.val("off").trigger("change"),o.prop("checked",!0).trigger("change"))})).trigger("change")}}};function fe(e){return(fe="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})(e)}var me=function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType&&rankMath.postSettings.linkSuggestions){a.a.fn.extend({insertLink:function(e,t){var r=this[0],n="";if(r.selectionStart||"0"===r.selectionStart){var a=r.selectionStart,i=r.selectionEnd,o=r.scrollTop;n='<a href="'+e+'">'+r.value.substring(a,i)+"</a>",a===i&&(n='<a href="'+e+'">'+t+"</a>"),r.value=r.value.substring(0,a)+n+r.value.substring(i,r.value.length),r.focus(),r.selectionStart=a+n.length,r.selectionEnd=a+n.length,r.scrollTop=o}else n='<a href="'+e+'">'+t+"</a>",r.value+=n,r.focus()}});if("function"==typeof ClipboardJS)new ClipboardJS(".suggestion-copy").on("success",(function(e){var t=a()(e.trigger).parent().next(".suggestion-title"),r=t.html();t.text("Link Copied"),setTimeout((function(){t.html(r)}),1500)}));if("object"!==("undefined"==typeof tinymce?"undefined":fe(tinymce)))return!0;var t=null,r=null;a()(".suggestion-insert").on("click",(function(e){e.preventDefault();var n,i,o,s,c=a()(this);if(c.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()){t=tinymce.activeEditor,r=a()(t.getBody());var u=t.selection.getContent()||"";if(r.find("a[data-mce-selected]").length){var l=(n="",i="",o=t.selection.getStart(),(s=t.dom.getParent(o,"a[href]"))||(i=t.selection.getContent({format:"raw"}))&&-1!==i.indexOf("</a>")&&((n=i.match(/href="([^">]+)"/))&&n[1]&&(s=t.$('a[href="'+n[1]+'"]',o)[0]),s&&t.selection.select(s)),s);t.dom.setAttribs(l,{href:c.data("url")}),a()(l).text()!==u&&t.insertContent(u)}else u.length?t.insertContent('<a href="'+c.data("url")+'">'+u+"</a>"):t.insertContent('<a href="'+c.data("url")+'">'+c.data("text")+"</a>")}else{var d=a()("textarea.wp-editor-area:visible");d.length&&d.first().insertLink(c.data("url"),c.data("text"))}var p=c.closest(".suggestion-item").find(".suggestion-title"),h=p.html();p.text("Link Inserted"),c.addClass("clicked"),setTimeout((function(){var e,t,r,n;p.html(h),c.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(t=c,r=(e=p).data("fkcount")||0,n=e.data("fk"),(r+=1)===n.length&&(r=0),e.find(">a").text(n[r]),e.data("fkcount",r),t.data("text",n[r]))}),1500)})),a()("#rank_math_metabox_link_suggestions").find("h2").append(a()("#rank-math-link-suggestions-tooltip").html())}};var ge=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"post"===rankMath.objectType&&a()("[data-primary-term]").each((function(){var e=a()(this),t=e.val(),r=e.data("primary-term"),n=a()("#"+r+"div"),i=a()("#"+r+"checklist"),o=i.find("li"),s=i.find('input[type="checkbox"]:checked');o.addClass("rank-math-primary-term-li"),o.find("input").each((function(){var e=a()(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+r+'"><span>Make Term Primary</span></span>')})),s.each((function(){var e=a()(this).closest("li");e.addClass("term-checked"),r+"-"+t===e.attr("id")&&(e.addClass("term-marked-primary"),e.find(">label .rank-math-make-primary").prop("checked",!0))})),n.on("click",'input[type="checkbox"]',(function(){var t=a()(this).closest("li");if(t.toggleClass("term-checked"),1===i.find("li.term-checked").length||t.hasClass("term-marked-primary")&&!t.hasClass("term-checked")){var r=i.find("li.term-checked:first > label .rank-math-make-primary");0<r.length?r.trigger("click"):(o.removeClass("term-marked-primary"),o.find('input[type="radio"]').prop("checked",!1),e.val(""))}})),n.on("click",".rank-math-make-primary",(function(){var t=a()(this),r=t.closest("li");o.removeClass("term-marked-primary"),r.addClass("term-marked-primary"),e.val(t.val())})),i.on("wpListAddEnd",(function(){i.find("li:not(.rank-math-primary-term-li)").addClass("rank-math-primary-term-li term-checked").find("input").each((function(){var e=a()(this);e.parent().append('<span class="rank-math-tooltip"><input class="rank-math-make-primary" value="'+e.val()+'" type="radio" name="rank_math_primary_'+r+'"><span>Make Term Primary</span></span>')}))}))}))},ke=r(28),ye=r.n(ke),be=r(20);function ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var we=function(){function e(){var t=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.canUser.general){this.elem=a()("#rank_math_focus_keyword"),this.elemWrapper=this.elem.parent(),this.clickCount=0,this.selectedKeyword={};var r={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this)};rankMath.isUserRegistered&&(r.input=Object(i.debounce)(this.onInput.bind(this),300)),this.tagify=new ye.a(this.elem[0],{addTagOnBlur:!0,maxTags:"post"===rankMath.objectType?rankMath.maxTags:1,whitelist:this.whitelist||[],transformTag:function(e){e.value=t.stripTags(e.value)},templates:{tag:function(e,r){return"<tag title='".concat(t.stripTags(e),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(r.class?r.class:"","'\n ").concat(t.getAttributes_esc(r),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(t.stripTags(e),"</span>\n </div>\n </tag>")}},callbacks:r}),this.selectFirstKeyword(),this.setKeywordsClasses=this.setKeywordsClasses.bind(this),Object(s.addAction)("rank_math_refresh_results","rank-math",this.setKeywordsClasses,11)}}var t,r,n;return t=e,(r=[{key:"onInput",value:function(e){var t=this;(e=Object(i.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hasAdded?this.hasAdded=!1:this.request=a.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(r){if(t.hasAdded)t.hasAdded=!1;else{var n=a.a.map(r,(function(e){return e}));t.tagify.settings.whitelist=n,t.tagify.dropdown.show.call(t.tagify,e)}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,e.detail.tag.classList.add("bad-fk"),this.updateSelectedKeyword(e.detail),this.updateKeywords()}},{key:"onRemove",value:function(e){0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){this.updateSelectedKeyword(e.detail),setTimeout((function(){Object(s.doAction)("rank_math_refresh_results")}),500)}},{key:"onEdit",value:function(e){e.detail.tag.setAttribute("value",e.detail.data.value),this.hasAdded=!0,this.updateKeywords()}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"updateSelectedKeyword",value:function(e){this.elemWrapper.find("tag.selected").removeClass("selected"),""!==e.tag?(this.selectedKeyword=e,e.tag.classList.add("selected")):this.selectedKeyword={}}},{key:"setKeywordsClasses",value:function(){if(void 0!==this.tagify.value){var e=this.tagify.value;if(e.length>0){var t=this.elemWrapper.find("tag");e.map((function(e,r){var n=rankMathEditor.resultManager.getScore(o.Helpers.removeDiacritics(e.value));t[r].classList.remove("ok-fk","good-fk","bad-fk"),t[r].classList.add(Object(be.a)(n))}))}}}},{key:"selectFirstKeyword",value:function(){var e=this.elemWrapper.find("tag"),t={tag:"",index:0,data:{value:""}};e.length>0&&(t={tag:e[0],index:0,data:{value:e[0].getAttribute("value")}}),this.updateSelectedKeyword(t)}},{key:"updateKeywords",value:function(){rankMathEditor.refresh("keyword")}},{key:"getFocusKeywords",value:function(){if(void 0===this.tagify||void 0===this.tagify.value)return[""];var e=this.tagify.value.map((function(e){return e.value}));return e.length?e:[""]}},{key:"getSelectedKeyword",value:function(){return Object(i.get)(this.selectedKeyword,["data","value"],"")}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,r,n=Object.keys(e),a="";for(r=n.length;r--;)"class"!=(t=n[r])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=jQuery("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||"(invalid)"}}])&&ve(t.prototype,r),n&&ve(t,n),e}();function _e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Oe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.image_src="",this.image_alt="",this.getFeaturedImage(),this.setImage(),this.removeImage(),Object(d.a)()&&this.gutenbergImage()}var t,r,n;return t=e,(r=[{key:"setImage",value:function(){var e=this;if(!Object(i.isUndefined)(wp.media)){var t=wp.media.featuredImage.frame();t.on("select",(function(){var r=a()("#rank_math_post_thumbnail"),n=t.state().get("selection").first().toJSON();e.sizeWarning(n),1>r.length&&(r=a()('<img id="rank_math_post_thumbnail" />'),a()(".facebook-thumbnail",".rank-math-social-preview-image").before(r)),"large"in n.sizes?r.attr("src",n.sizes.large.url):r.attr("src",n.sizes.full.url),e.setFeaturedImage(n)}))}}},{key:"removeImage",value:function(){var e=this;a()("#postimagediv").on("click","#remove-post-thumbnail",(function(){a()("#rank_math_image_warning").remove(),a()("#rank_math_post_thumbnail").remove(),e.setFeaturedImage("")}))}},{key:"gutenbergImage",value:function(){var e,t,r=this;wp.data.subscribe((function(){var n=wp.data.select("core/editor").getEditedPostAttribute("featured_media");r.isValidMediaId(n)&&(e=wp.data.select("core").getMedia(n),Object(i.isUndefined)(e)||e!==t&&(t=e,r.setFeaturedImage({url:e.guid.rendered,alt:e.alt_text})))}))}},{key:"setFeaturedImage",value:function(e){var t={src:Object(i.get)(e,"url",""),alt:Object(i.get)(e,"alt","")};Object(s.doAction)("rank_math_updated_featured_image",t)}},{key:"sizeWarning",value:function(e){if(a()("#rank_math_image_warning").remove(),!(200<e.width&&200<e.height)){var t=a()("#postimagediv").find(".hndle");a()('<div id="rank_math_image_warning" class="notice notice-error notice-alt"><p>'+rankMath.featuredImageNotice+"</p></div>").insertAfter(t)}}},{key:"getFeaturedImage",value:function(){var e=a()("#postimagediv img");if(!e||e.length){var t={url:e[0].src,alt:e[0].alt};this.setFeaturedImage(t)}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}}])&&_e(t.prototype,r),n&&_e(t,n),e}(),Te=r(29);function Pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var je=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.canUser.analysis&&(a()("#setting-panel-general").append('<div id="rank-math-serp-checklist" class="rank-math-serp-checklist"></div>'),this.elem=a()("#rank-math-serp-checklist"),this.scoreText=rankMath.showScore?'<span class="score-text"><span class="score-icon"><svg viewBox="0 0 460 460" xmlns="http://www.w3.org/2000/svg" width="20"><g><path d="m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z"/><path d="m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z"/></g></svg></span> SEO: <strong>Not available</strong></span>':"",this.fkScoreText=rankMath.showScore?'<span class="score-text">Not available</span>':"",this.scoreElem=a()('<div class="misc-pub-section rank-math-seo-score loading">'+this.scoreText+"</div>"),this.scoreText=this.scoreElem.find("strong"),this.scoreField=a()("#rank_math_seo_score"),this.fkScoreElem=a()('<div class="rank-math-seo-score loading below-focus-keyword">'+this.fkScoreText+"</div>"),this.fkScoreText=this.fkScoreElem.find("span"),a()("#misc-publishing-actions").append(this.scoreElem),a()(".cmb-td",".cmb2-id-rank-math-focus-keyword").append(this.fkScoreElem),this.events(),this.refreshResults=this.refreshResults.bind(this),Object(s.addAction)("rank_math_refresh_results","rank-math",this.refreshResults))}var t,r,n;return t=e,(r=[{key:"events",value:function(){var e=this;this.elem.on("click",".group-handle",(function(t){t.preventDefault();var r=a()(t.target),n={},i=r.closest(".rank-math-serp-group");i.toggleClass("state-open state-closed"),e.elem.find(">.rank-math-serp-group").each((function(){i=a()(this),n[i.data("id")]=i.hasClass("state-closed")?"closed":"open"})),a.a.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_save_checklist_layout",security:rankMath.security,layout:n}})}))}},{key:"refreshResults",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();if(this.isPrimary=t===rankMathEditor.getPrimaryKeyword(),this.results=rankMathEditor.resultManager.getResult(t),Object(i.isUndefined)(this.results))return null;var r=Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}));this.elem.html(r),this.updateScore()}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e),r="basic"===e||a()("#rank-math-serp-group-"+e).hasClass("state-open")?"state-open":"state-closed",n=0===this.errors?"test-ok":"test-fail",i=Object(c.__)("All Good","rank-math");return 0<this.errors&&(i=1===this.errors?this.errors+" "+Object(c.__)("Error","rank-math"):this.errors+" "+Object(c.__)("Errors","rank-math")),'\n\t\t<div id="rank-math-serp-group-'.concat(e,'" class="rank-math-serp-group ').concat(r,'" data-id="').concat(e,'">\n\t\t\t<div class="group-handle">\n\t\t\t\t<h4>').concat(this.getGroupTitle(e),'</h4>\n\t\t\t\t<span class="rank-math-group-score ').concat(n,'">').concat(i,'</span>\n\t\t\t\t<button type="button" class="group-handlediv" aria-expanded="true"><span class="screen-reader-text"></span><span class="toggle-indicator"></span></button>\n\t\t\t</div>\n\t\t\t<ul>').concat(t,"</ul>\n\t\t</div>")}},{key:"renderGroupItems",value:function(e){var t=this,r=this.results.results,n=this.getGroupItems(e),a="";return Object.keys(n).map((function(e){if(Object(i.isUndefined)(r[e])||!t.isPrimary&&n[e])return!1;var o=r[e],s="seo-check-"+e;s+=o.hasScore()?" test-ok":" test-fail",o.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(s+=" "+Object(Te.a)(o.getScore(),o.getMaxScore())),"fleschReading"===e&&o.hasScore()&&(s+=" "+o.note.replace(/ /g,"-")),!1===o.hasScore()&&(t.errors+=1);var c=o.hasTooltip()?'<span class="rank-math-tooltip"><em class="dashicons-before dashicons-editor-help" ></em><span>'+o.getTooltip()+"</span></span>":"";a+='<li key="'.concat(e,'" class="').concat(s,'">\n\t\t\t\t\t<span>').concat(o.getText(),"</span>\n\t\t\t\t\t").concat(c,"\n\t\t\t\t</li>")})),a}},{key:"updateScore",value:function(){var e=rankMathEditor.resultManager.getScore(rankMathEditor.getPrimaryKeyword()),t=Object(be.a)(e);this.scoreElem.removeClass("loading bad-fk ok-fk good-fk"),this.fkScoreElem.removeClass("loading bad-fk ok-fk good-fk"),this.scoreElem.addClass(t),this.fkScoreElem.addClass(t),this.scoreText.html(e+" / 100"),this.fkScoreText.html(e+" / 100"),this.scoreField.val(parseInt(e))}},{key:"getGroupItems",value:function(e){return("post"===rankMath.objectType?{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}:{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0},advanced:{titleStartWithKeyword:!0,keywordNotUsed:!0}})[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return"post"===rankMath.objectType?{basic:Object(c.__)("Basic SEO","rank-math"),advanced:Object(c.__)("Additional","rank-math"),"title-readability":Object(c.__)("Title Readability","rank-math"),"content-readability":Object(c.__)("Content Readability","rank-math")}:{basic:Object(c.__)("Basic SEO","rank-math"),advanced:Object(c.__)("Additional","rank-math")}}}])&&Pe(t.prototype,r),n&&Pe(t,n),e}();function Ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var De=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"setup",value:function(){this.elemMetabox=a()("#cmb2-metabox-rank_math_metabox"),this.resultManager=new o.ResultManager,this.assessor=new l(this.getCollector()),new p.a,this.registerComponents=this.registerComponents.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.registerComponents,1)}},{key:"registerComponents",value:function(){this.components={},this.components.SerpPreview=new ue,this.components.socialFields=new pe,this.components.richSnippet=new he,this.components.linkSuggestions=new me,this.components.primaryTerm=new ge,this.components.focusKeywords=new we,this.components.featuredImage=new Oe,this.components.checkLists=new je,rankMathAdmin.variableInserter(!1)}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"updatePermalink",value:function(e){e=this.assessor.getResearch("slugify")(e),this.assessor.dataCollector.handleSlugChange(e)}},{key:"getPrimaryKeyword",value:function(){return o.Helpers.removeDiacritics(this.components.focusKeywords.getFocusKeywords()[0])}},{key:"getSelectedKeyword",value:function(){var e=this.components.focusKeywords.getSelectedKeyword();return Object(i.isUndefined)(e)?"":o.Helpers.removeDiacritics(this.components.focusKeywords.getSelectedKeyword())}},{key:"getCollector",value:function(){return"post"===rankMath.objectType?Object(d.a)()?new w:new x(this):"term"===rankMath.objectType?new N:"user"===rankMath.objectType?new $:void 0}}])&&Ie(t.prototype,r),n&&Ie(t,n),e}();a()(document).ready((function(){Object(m.a)(),window.rankMathEditor=new De,window.rankMathEditor.setup(),window.RankMathApp=new f})),a()(window).on("load",(function(){Object(s.doAction)("rank_math_loaded")}))},8:function(e,t){e.exports=rankMathAnalyzer},9:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(2),a=r.n(n);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,r,n;return t=e,(r=[{key:"swap",value:function(e,t){var r=this;if(!(e=e||""))return"";var n=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(n,(function(e){return r.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var r=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(r)?a()("#description").val():r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(e=e||this.getMap(),(r="seo_description"===(r="seo_title"===(r=r.includes("(")?r.split("(")[0]:r)?"title":r)?"excerpt":r)in e?e[r]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,r){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=r.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,r),n&&i(t,n),e}())}});
|
assets/admin/js/common.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=81)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},15:function(e,t,a){"use strict";var n=a(2),i=a.n(n);t.a=function(e,t,a){return i.a.ajax({url:rankMath.ajaxurl,type:a||"POST",dataType:"json",data:i.a.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})}},17:function(e,t,a){"use strict";var n=a(2),i=a.n(n);t.a=function(e,t,a,n){t=t||"error",n=n||!1;var o=i()('<div class="notice notice-'+t+' is-dismissible"><p>'+e+"</p></div>").hide();a.next(".notice").remove(),a.after(o),o.slideDown(),i()(document).trigger("wp-updates-notice-added"),n&&setTimeout((function(){o.fadeOut((function(){o.remove()}))}),n)}},2:function(e,t){e.exports=jQuery},37:function(e,t,a){"use strict";var n=a(2),i=a.n(n);t.a=function(e){var t=e||".rank-math-box-tabs";i()(t).children().on("click",(function(e){e.preventDefault();var t=i()(this),a=t.attr("href").substr(1);t.addClass("active-tab").siblings().removeClass("active-tab"),i()("#"+a).addClass("active-tab").siblings().removeClass("active-tab")}))}},81:function(e,t,a){"use strict";a.r(t);var n=a(2),i=a.n(n),o=a(0),r=a(15),c=a(17),s=a(1);function l(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d,p=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.response=""}var t,a,n;return t=e,(a=[{key:"checkAll",value:function(){var e=this,t=i()("#setting-panel-analytics .cmb2-id-check-all-services:not(.done), #cmb2-metabox-rank-math-wizard .cmb2-id-check-all-services:not(.done)");t.length>0&&"0"==t.val()&&(t.addClass("done"),Object(r.a)("google_check_all_services").done((function(t){e.response=t,e.fillSelect(),e.accordions.removeClass("locked")})))}},{key:"events",value:function(){var e=this;this.saveChanges=!1,this.accountSelect=i()(".site-analytics-account"),this.profileSelect=i()(".site-console-profile"),this.propertySelect=i()(".site-analytics-property"),this.viewSelect=i()(".site-analytics-view"),this.adsenseSelect=i()(".site-adsense-account"),this.accordions=i()(".rank-math-accordion"),this.countryConsole=i()("#site-console-country"),this.countryAnalytics=i()("#site-analytics-country"),this.accountSelect.on("change",(function(){var t=parseInt(e.accountSelect.val());0!==t?e.fillPropertySelect(t):e.propertySelect.html('<option value="0">Select Property</option>')})),i()(".button-primary",".form-footer.rank-math-ui").on("click",(function(t){e.saveChanges&&(t.preventDefault(),alert("There are unsved changes"))})),this.propertySelect.on("change",(function(){var t=e.accountSelect.val(),a=e.propertySelect.val(),n=e.response.accounts;e.response.views=Object(s.get)(n,[t,"properties",a,"profiles"],{}),e.fillViewSelect()})),this.accordions.on("click","header",(function(t){if(!e.saveChanges){var a=i()(t.currentTarget),n=a.closest(".rank-math-accordion"),o=n.hasClass("is-open");a.next().slideToggle(),e.accordions.not(n).find(".rank-math-accordion-close").trigger("click"),e.accordions.removeClass("is-open"),o||(n.addClass("is-open"),e.accordions.not(n))}})),i()(".rank-math-accordion-close").on("click",(function(t){if(t.preventDefault(),!e.saveChanges){var a=i()(t.currentTarget).closest(".rank-math-accordion-content");e.accordions.removeClass("is-open locked"),a.slideUp()}})),i()("select,input",".rank-math-accordion").on("change",(function(t){e.saveChanges=!0;var a=i()(t.currentTarget).closest(".rank-math-accordion");return e.accordions.not(a).addClass("locked"),!0})),i()(".rank-math-save-profiles").on("click",(function(t){if(t.preventDefault(),0!==parseInt(e.profileSelect.val())){var a=i()(t.currentTarget),n=a.closest(".rank-math-accordion");n.addClass("saving"),a.text("Saving...");var o={profile:e.profileSelect.val(),country:i()(".site-console-country").val()},c=i()("#console_caching_control");c.length>0&&(o.days=c.val()),Object(r.a)("save_analytic_profile",o,"post").complete((function(){a.text("Saved"),n.removeClass("saving")})).done((function(){e.removeLock(n),setTimeout((function(){a.text("Save")}),1500)}))}})),i()(".rank-math-save-analytics").on("click",(function(t){t.preventDefault();var a={accountID:e.accountSelect.val(),propertyID:e.propertySelect.val(),viewID:e.viewSelect.val(),country:i()(".site-analytics-country").val(),installCode:i()("#install-code").is(":checked"),anonymizeIP:i()("#anonymize-ip").is(":checked"),excludeLoggedin:i()("#exclude-loggedin").is(":checked")};if(0!==parseInt(a.accountID)&&0!==parseInt(a.propertyID)){var n=i()("#console_caching_control");n.length>0&&(a.days=n.val());var o=i()(t.currentTarget),c=o.closest(".rank-math-accordion");c.addClass("saving"),o.text("Saving"),Object(r.a)("save_analytic_options",a,"post").complete((function(){o.text("Saved"),c.removeClass("saving")})).done((function(){e.removeLock(c),setTimeout((function(){o.text("Save")}),1500)}))}})),i()(".rank-math-save-adsense").on("click",(function(t){t.preventDefault();var a={accountID:e.adsenseSelect.val()};if(0!==parseInt(a.accountID)){var n=i()(t.currentTarget),o=n.closest(".rank-math-accordion");o.addClass("saving"),n.text("Saving"),Object(r.a)("save_adsense_account",a,"post").complete((function(){n.text("Saved"),o.removeClass("saving")})).done((function(){e.removeLock(o),setTimeout((function(){n.text("Save")}),1500)}))}})),i()(".rank-math-disconnect-google").on("click",(function(e){e.preventDefault(),confirm("Are you sure?")&&Object(r.a)("disconnect_google").done((function(){window.location.reload()}))}))}},{key:"removeLock",value:function(e){this.saveChanges=!1,this.accordions.removeClass("locked"),e.addClass("connected"),e.removeClass("disconnected")}},{key:"fillSelect",value:function(){var e=this,t=this.response,a=t.inSearchConsole,n=t.isVerified;this.fillProfileSelect(),this.fillAccountSelect(),this.fillAdsenseSelect(),a||Object(r.a)("add_site_console").done((function(t){e.response.sites=t.sites,e.fillProfileSelect()})),a&&!n&&Object(r.a)("verify_site_console"),this.saveChanges=!1}},{key:"fillAdsenseSelect",value:function(){var e=this,t=this.response.adsenseAccounts;this.adsenseSelect.html('<option value="0">Select Account</option>'),Object(s.map)(t,(function(t,a){e.adsenseSelect.append('<option value="'+a+'">'+t.name+"</option>")})),this.adsenseSelect.data("selected")&&this.adsenseSelect.val(this.adsenseSelect.data("selected")),this.adsenseSelect.prop("disabled",!1)}},{key:"fillAccountSelect",value:function(){var e=this,t=this.response.accounts;this.accountSelect.html('<option value="0">Select Account</option>'),Object(s.map)(t,(function(t,a){e.accountSelect.append('<option value="'+a+'">'+t.name+"</option>")})),this.accountSelect.data("selected")?this.accountSelect.val(this.accountSelect.data("selected")):(this.accountSelect.prop("disabled",!1),this.countryAnalytics.prop("disabled",!1)),this.accountSelect.trigger("change")}},{key:"fillPropertySelect",value:function(e){var t=this,a=this.response,n=a.accounts,i=a.homeUrl,o=n[e].properties;this.propertySelect.html('<option value="0">Select Property</option>'),Object(s.map)(o,(function(e){var a=e.url===i?' selected="selected"':"";t.propertySelect.append("<option"+a+' value="'+e.id+'">'+e.name+"</option>")})),this.propertySelect.data("selected")?this.propertySelect.val(this.propertySelect.data("selected")):this.propertySelect.prop("disabled",!1),this.propertySelect.trigger("change")}},{key:"fillProfileSelect",value:function(){var e=this,t=this.response,a=t.sites,n=t.homeUrl,i=t.inSearchConsole;this.profileSelect.html('<option value="0">Select Profile</option>');var o=!1;Object(s.map)(a,(function(t,a){o=a===n?' selected="selected"':"",e.profileSelect.append("<option"+o+' value="'+a+'">'+t+"</option>")})),!this.viewSelect.data("selected")&&i&&this.profileSelect.closest(".rank-math-accordion").addClass("connected"),this.profileSelect.prop("disabled",!1),this.countryConsole.prop("disabled",!1)}},{key:"fillViewSelect",value:function(){var e=this;this.viewSelect.html('<option value="0">Select Web View</option>');var t=this.response.views;Object(s.map)(t,(function(t){e.viewSelect.append('<option value="'+t.id+'">'+t.name+"</option>")})),this.viewSelect.data("selected")&&this.viewSelect.val(this.viewSelect.data("selected")),this.viewSelect.prop("disabled",!1)}}])&&l(t.prototype,a),n&&l(t,n),e}()),u=a(37);d=i.a,String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,a){return void 0!==e[a]?e[a]:t}))}),String.prototype.trimRight=function(e){return void 0===e&&(e="s"),this.replace(new RegExp("["+e+"]+$"),"")},d((function(){window.rankMathAdmin={init:function(){this.misc(),this.tabs(),this.dependencyManager(),p.events(),p.checkAll()},misc:function(){void 0!==i.a.fn.select2&&d("[data-s2]").select2(),d(".cmb-group-text-only,.cmb-group-fix-me").each((function(){var e=d(this),t=e.find(".cmb-repeatable-group"),a=t.find("> .cmb-row:eq(0) > .cmb-th");e.prepend('<div class="cmb-th"><label>'+a.find("h2").text()+"</label></div>"),t.find(".cmb-add-row").append('<span class="cmb2-metabox-description">'+a.find("p").text()+"</span>"),a.parent().remove()})),d(".rank-math-collapsible-trigger").on("click",(function(e){e.preventDefault();var t=d(this),a=d("#"+t.data("target"));t.toggleClass("open"),a.toggleClass("open")}));var e=d("#rank_math_rich_snippet"),t=e.find("option[value=review]"),a=e.val();t&&(t.prop("disabled",!0),"review"===a&&d(".cmb2-id-rank-math-review-schema-notice").removeClass("hidden"),e.on("change",(function(){null!==e.val()&&"review"!==e.val()&&d(".cmb2-id-rank-math-review-schema-notice").addClass("hidden")})))},searchConsole1:function(){var e=d(".cmb2-id-console-authorization-code"),t=d("#console_authorization_code"),a=d("#gsc-dp-info"),n=d("#console_profile"),i=n.parent().find(".rank-math-refresh"),s=t.parent(),l=d("body").hasClass("rank-math-wizard-body--analytics")?d("> p:first-of-type",".cmb-form"):d("h1",".rank-math-wrap-settings");s.on("click",".rank-math-deauthorize-account",(function(a){a.preventDefault();var s=d(this);if(s.prop("disabled",!0),t.data("authorized"))return Object(r.a)("search_console_deauthentication").always((function(){s.prop("disabled",!1)})).done((function(){t.val(""),t.show(),t.data("authorized",!1),e.removeClass("authorized").addClass("unauthorized"),s.html(Object(o.__)("Authorize","rank-math")),n.prop("disabled",!0),i.prop("disabled",!0)})),!1;t.addClass("input-loading"),Object(r.a)("search_console_authentication",{code:t.val()}).always((function(){s.prop("disabled",!1),t.removeClass("input-loading")})).done((function(a){a&&!a.success&&Object(c.a)(a.error,"error",l),a&&a.success&&(t.hide(),t.data("authorized",!0),s.html("De-authorize Account"),i.trigger("click"),n.removeAttr("disabled"),e.removeClass("unauthorized authorizing").addClass("authorized"))}))})),n.on("change",(function(){null!==n.val()&&0===n.val().indexOf("sc-domain:")?a.removeClass("hidden"):a.addClass("hidden")})).change(),i.on("click",(function(e){e.preventDefault(),i.prop("disabled",!0),n.addClass("input-loading"),Object(r.a)("search_console_get_profiles").always((function(){i.prop("disabled",!1),d(".console-cache-update-manually").prop("disabled",!1),n.removeClass("input-loading")})).done((function(e){if(e&&!e.success&&Object(c.a)(e.error,"error",l),e&&e.success){var t=e.selected||n.val();n.html(""),d.each(e.profiles,(function(e,t){n.append('<option value="'+e+'">'+t+"</option>")})),n.val(t||Object.keys(e.profiles)[0]),i.removeClass("hidden")}}))}))},dependencyManager:function(){var e=this,t=d(".cmb-form, .rank-math-metabox-wrap");d(".cmb-repeat-group-wrap",t).each((function(){var e=d(this),t=e.next(".rank-math-cmb-dependency.hidden");t.length&&e.find("> .cmb-td").append(t)})),d(".rank-math-cmb-dependency",t).each((function(){e.loopDependencies(d(this))})),d("input, select",t).on("change",(function(){var t=d(this).attr("name");d('span[data-field="'+t+'"]').each((function(){e.loopDependencies(d(this).closest(".rank-math-cmb-dependency"))}))}))},checkDependency:function(e,t,a){return"string"==typeof t&&t.includes(",")&&"="===a?t.includes(e):"string"==typeof t&&t.includes(",")&&"!="===a?!t.includes(e):"="===a&&e===t||"=="===a&&e===t||">="===a&&e>=t||"<="===a&&e<=t||">"===a&&e>t||"<"===a&&e<t||"!="===a&&e!==t},loopDependencies:function(e){var t=this,a=e.data("relation"),n=null;e.find("span").each((function(){var e=d(this),i=d("[name='"+e.data("field")+"']"),o=i.val();i.is(":radio")&&(o=i.filter(":checked").val()),i.is(":checkbox")&&(o=i.filter(":checked").val());var r=t.checkDependency(o,e.data("value"),e.data("comparison"));if("or"===a&&r)return n=!0,!1;"and"===a&&(n=(null===n||n)&&r)}));var i=e.closest(".rank-math-cmb-group");i.length||(i=e.closest(".cmb-row")),n?i.slideDown(300):i.hide()},tabs:function(){Object(u.a)();var e=d(".rank-math-tabs-navigation");e.length&&e.each((function(){var t=d(this),a=t.closest(".rank-math-tabs"),n=d(">a",t),i=d(">.rank-math-tabs-content>.rank-math-tab",a),o=t.data("active-class")||"active",r=t.hasClass("before-header");n.on("click",(function(){var e=d(this),t=d(e.attr("href"));if(n.removeClass(o),i.hide(),r){var c=t.find(".cmb-type-title.tab-header").clone();c.addClass("before-header-title"),d(".before-header-title").remove(),a.prepend(c)}return e.addClass(o),t.show(),!1}));var c=window.location.hash||window.localStorage.getItem(a.attr("id"));null===c?n.eq(0).trigger("click"):(c=d('a[href="'+c+'"]',t)).length?c.trigger("click"):n.eq(0).trigger("click"),e.next().css("min-height",t.outerHeight())}))},variableInserter:function(e){var t=d("input[type=text], textarea",".rank-math-supports-variables");if(e=void 0===e||e,t.length){var a,n=this,i=d("body");t.attr("autocomplete","off"),t.wrap('<div class="rank-math-variables-wrap"/>'),d(".rank-math-variables-wrap").append('<a href="#" class="rank-math-variables-button button button-secondary"><span class="dashicons dashicons-arrow-down-alt2"></span></a>'),e&&(d(".rank-math-variables-wrap").after('<div class="rank-math-variables-preview" data-title="'+Object(o.__)("Example","rank-math")+'"/>'),t.on("rank_math_variable_change input",(function(e){var t=d(e.currentTarget),a=n.replaceVariables(t.val());60<a.length&&0<=t.attr("name").indexOf("title")?a=a.substring(0,60)+"...":160<a.length&&0<=t.attr("name").indexOf("description")&&(a=a.substring(0,160)+"...");var i=d("<textarea/>").html(a).val();t.parent().next(".rank-math-variables-preview").text(i)})),t.trigger("rank_math_variable_change"));var r=d("<ul/>"),c=d('<div class="rank-math-variables-dropdown"><input type="text" placeholder="'+Object(o.__)("Search …","rank-math")+'"></div>');d.each(rankMath.variables,(function(){r.append('<li data-var="%'+this.variable+'%"'+this.example+"><strong>"+this.name+"</strong><span>"+this.description+"</span></li>")})),c.append(r),d(".rank-math-variables-wrap:eq(0)").append(c);var s=d(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");i.on("click",(function(e){d(e.target).is(s)||h()}));var l=c.find("input"),p=c.find("li");i.on("click",".rank-math-variables-button",(function(e){e.preventDefault();var t=d(this);t.after(c),p.show(),void 0!==(a=t.prev().data("exclude-variables"))&&(a=a.split(","),u()),c.show(),l.val("").focus()})),c.on("click","li",(function(e){e.preventDefault();var t=d(this),a=t.closest(".rank-math-variables-wrap").find("input,textarea");a.val(d.trim(a.val())+" "+t.data("var")),a.trigger("rank_math_variable_change").trigger("input"),h()})),c.on("keyup","input",(function(e){e.preventDefault();var t=d(this).val().toLowerCase();if(2>t.length)return p.show(),void u();p.hide().each((function(){var e=d(this);-1!==e.text().toLowerCase().indexOf(t)&&e.show()})),u()}))}function u(){void 0!==a&&a.forEach((function(e){c.find('[data-var="%'+e+'%"]').hide()}))}function h(){a=void 0,c.hide()}},replaceVariables:function(e){return d.each(rankMath.variables,(function(t){if(!this.example)return!0;var a=new RegExp("\\([a-z]+\\)","g");t=t.replace(a,"\\(.*?\\)"),e=e.replace(new RegExp("%+"+t+"%+","g"),this.example)})),e}},window.rankMathAdmin.init()}))}});
|
1 |
+
!function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=82)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},15:function(e,t,a){"use strict";var n=a(2),i=a.n(n);t.a=function(e,t,a){return i.a.ajax({url:rankMath.ajaxurl,type:a||"POST",dataType:"json",data:i.a.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})}},18:function(e,t,a){"use strict";var n=a(2),i=a.n(n);t.a=function(e,t,a,n){t=t||"error",n=n||!1;var o=i()('<div class="notice notice-'+t+' is-dismissible"><p>'+e+"</p></div>").hide();a.next(".notice").remove(),a.after(o),o.slideDown(),i()(document).trigger("wp-updates-notice-added"),n&&setTimeout((function(){o.fadeOut((function(){o.remove()}))}),n)}},2:function(e,t){e.exports=jQuery},38:function(e,t,a){"use strict";var n=a(2),i=a.n(n);t.a=function(e){var t=e||".rank-math-box-tabs";i()(t).children().on("click",(function(e){e.preventDefault();var t=i()(this),a=t.attr("href").substr(1);t.addClass("active-tab").siblings().removeClass("active-tab"),i()("#"+a).addClass("active-tab").siblings().removeClass("active-tab")}))}},82:function(e,t,a){"use strict";a.r(t);var n=a(2),i=a.n(n),o=a(0),r=a(15),c=a(18),s=a(1);function l(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d,p=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.response=""}var t,a,n;return t=e,(a=[{key:"checkAll",value:function(){var e=this,t=i()("#setting-panel-analytics .cmb2-id-check-all-services:not(.done), #cmb2-metabox-rank-math-wizard .cmb2-id-check-all-services:not(.done)");t.length>0&&"0"==t.val()&&(t.addClass("done"),Object(r.a)("google_check_all_services").done((function(t){e.response=t,e.fillSelect(),e.accordions.removeClass("locked")})))}},{key:"events",value:function(){var e=this;this.saveChanges=!1,this.accountSelect=i()(".site-analytics-account"),this.profileSelect=i()(".site-console-profile"),this.propertySelect=i()(".site-analytics-property"),this.viewSelect=i()(".site-analytics-view"),this.adsenseSelect=i()(".site-adsense-account"),this.accordions=i()(".rank-math-accordion"),this.countryConsole=i()("#site-console-country"),this.countryAnalytics=i()("#site-analytics-country"),this.accountSelect.on("change",(function(){var t=parseInt(e.accountSelect.val());0!==t?e.fillPropertySelect(t):e.propertySelect.html('<option value="0">Select Property</option>')})),i()(".button-primary",".form-footer.rank-math-ui").on("click",(function(t){e.saveChanges&&(t.preventDefault(),alert("There are unsved changes"))})),this.propertySelect.on("change",(function(){var t=e.accountSelect.val(),a=e.propertySelect.val(),n=e.response.accounts;e.response.views=Object(s.get)(n,[t,"properties",a,"profiles"],{}),e.fillViewSelect()})),this.accordions.on("click","header",(function(t){if(!e.saveChanges){var a=i()(t.currentTarget),n=a.closest(".rank-math-accordion"),o=n.hasClass("is-open");a.next().slideToggle(),e.accordions.not(n).find(".rank-math-accordion-close").trigger("click"),e.accordions.removeClass("is-open"),o||(n.addClass("is-open"),e.accordions.not(n))}})),i()(".rank-math-accordion-close").on("click",(function(t){if(t.preventDefault(),!e.saveChanges){var a=i()(t.currentTarget).closest(".rank-math-accordion-content");e.accordions.removeClass("is-open locked"),a.slideUp()}})),i()("select,input",".rank-math-accordion").on("change",(function(t){e.saveChanges=!0;var a=i()(t.currentTarget).closest(".rank-math-accordion");return e.accordions.not(a).addClass("locked"),!0})),i()(".rank-math-save-profiles").on("click",(function(t){if(t.preventDefault(),0!==parseInt(e.profileSelect.val())){var a=i()(t.currentTarget),n=a.closest(".rank-math-accordion");n.addClass("saving"),a.text("Saving...");var o={profile:e.profileSelect.val(),country:e.countryConsole.val()},c=i()("#console_caching_control");c.length>0&&(o.days=c.val()),Object(r.a)("save_analytic_profile",o,"post").complete((function(){a.text("Saved"),n.removeClass("saving")})).done((function(){e.removeLock(n),setTimeout((function(){a.text("Save")}),1500)}))}})),i()(".rank-math-save-analytics").on("click",(function(t){t.preventDefault();var a={accountID:e.accountSelect.val(),propertyID:e.propertySelect.val(),viewID:e.viewSelect.val(),country:e.countryAnalytics.val(),installCode:i()("#install-code").is(":checked"),anonymizeIP:i()("#anonymize-ip").is(":checked"),excludeLoggedin:i()("#exclude-loggedin").is(":checked")};if(0!==parseInt(a.accountID)&&0!==parseInt(a.propertyID)){var n=i()("#console_caching_control");n.length>0&&(a.days=n.val());var o=i()(t.currentTarget),c=o.closest(".rank-math-accordion");c.addClass("saving"),o.text("Saving"),Object(r.a)("save_analytic_options",a,"post").complete((function(){o.text("Saved"),c.removeClass("saving")})).done((function(){e.removeLock(c),setTimeout((function(){o.text("Save")}),1500)}))}})),i()(".rank-math-save-adsense").on("click",(function(t){t.preventDefault();var a={accountID:e.adsenseSelect.val()};if(0!==parseInt(a.accountID)){var n=i()(t.currentTarget),o=n.closest(".rank-math-accordion");o.addClass("saving"),n.text("Saving"),Object(r.a)("save_adsense_account",a,"post").complete((function(){n.text("Saved"),o.removeClass("saving")})).done((function(){e.removeLock(o),setTimeout((function(){n.text("Save")}),1500)}))}})),i()(".rank-math-disconnect-google").on("click",(function(e){e.preventDefault(),confirm("Are you sure?")&&Object(r.a)("disconnect_google").done((function(){window.location.reload()}))}))}},{key:"removeLock",value:function(e){this.saveChanges=!1,this.accordions.removeClass("locked"),e.addClass("connected"),e.removeClass("disconnected")}},{key:"fillSelect",value:function(){var e=this,t=this.response,a=t.inSearchConsole,n=t.isVerified;this.fillProfileSelect(),this.fillAccountSelect(),this.fillAdsenseSelect(),a||Object(r.a)("add_site_console").done((function(t){e.response.sites=t.sites,e.fillProfileSelect()})),a&&!n&&Object(r.a)("verify_site_console"),this.saveChanges=!1}},{key:"fillAdsenseSelect",value:function(){var e=this,t=this.response.adsenseAccounts;this.adsenseSelect.html('<option value="0">Select Account</option>'),Object(s.map)(t,(function(t,a){e.adsenseSelect.append('<option value="'+a+'">'+t.name+"</option>")})),this.adsenseSelect.data("selected")&&this.adsenseSelect.val(this.adsenseSelect.data("selected")),this.adsenseSelect.prop("disabled",!1)}},{key:"fillAccountSelect",value:function(){var e=this,t=this.response.accounts;this.accountSelect.html('<option value="0">Select Account</option>'),Object(s.map)(t,(function(t,a){e.accountSelect.append('<option value="'+a+'">'+t.name+"</option>")})),this.accountSelect.data("selected")?this.accountSelect.val(this.accountSelect.data("selected")):(this.accountSelect.prop("disabled",!1),this.countryAnalytics.prop("disabled",!1)),this.accountSelect.trigger("change")}},{key:"fillPropertySelect",value:function(e){var t=this,a=this.response,n=a.accounts,i=a.homeUrl,o=n[e].properties;this.propertySelect.html('<option value="0">Select Property</option>'),Object(s.map)(o,(function(e){var a=e.url===i?' selected="selected"':"";t.propertySelect.append("<option"+a+' value="'+e.id+'">'+e.name+"</option>")})),this.propertySelect.data("selected")?this.propertySelect.val(this.propertySelect.data("selected")):this.propertySelect.prop("disabled",!1),this.propertySelect.trigger("change")}},{key:"fillProfileSelect",value:function(){var e=this,t=this.response,a=t.sites,n=t.homeUrl,i=t.inSearchConsole;this.profileSelect.html('<option value="0">Select Profile</option>');var o=!1;Object(s.map)(a,(function(t,a){o=a===n?' selected="selected"':"",e.profileSelect.append("<option"+o+' value="'+a+'">'+t+"</option>")})),!this.viewSelect.data("selected")&&i&&this.profileSelect.closest(".rank-math-accordion").addClass("connected"),this.profileSelect.prop("disabled",!1),this.countryConsole.prop("disabled",!1)}},{key:"fillViewSelect",value:function(){var e=this;this.viewSelect.html('<option value="0">Select Web View</option>');var t=this.response.views;Object(s.map)(t,(function(t){e.viewSelect.append('<option value="'+t.id+'">'+t.name+"</option>")})),this.viewSelect.data("selected")&&this.viewSelect.val(this.viewSelect.data("selected")),this.viewSelect.prop("disabled",!1)}}])&&l(t.prototype,a),n&&l(t,n),e}()),u=a(38);d=i.a,String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,a){return void 0!==e[a]?e[a]:t}))}),String.prototype.trimRight=function(e){return void 0===e&&(e="s"),this.replace(new RegExp("["+e+"]+$"),"")},d((function(){window.rankMathAdmin={init:function(){this.misc(),this.tabs(),this.dependencyManager(),p.events(),p.checkAll()},misc:function(){void 0!==i.a.fn.select2&&d("[data-s2]").select2(),d(".cmb-group-text-only,.cmb-group-fix-me").each((function(){var e=d(this),t=e.find(".cmb-repeatable-group"),a=t.find("> .cmb-row:eq(0) > .cmb-th");e.prepend('<div class="cmb-th"><label>'+a.find("h2").text()+"</label></div>"),t.find(".cmb-add-row").append('<span class="cmb2-metabox-description">'+a.find("p").text()+"</span>"),a.parent().remove()})),d(".rank-math-collapsible-trigger").on("click",(function(e){e.preventDefault();var t=d(this),a=d("#"+t.data("target"));t.toggleClass("open"),a.toggleClass("open")}));var e=d("#rank_math_rich_snippet"),t=e.find("option[value=review]"),a=e.val();t&&(t.prop("disabled",!0),"review"===a&&d(".cmb2-id-rank-math-review-schema-notice").removeClass("hidden"),e.on("change",(function(){null!==e.val()&&"review"!==e.val()&&d(".cmb2-id-rank-math-review-schema-notice").addClass("hidden")})))},searchConsole1:function(){var e=d(".cmb2-id-console-authorization-code"),t=d("#console_authorization_code"),a=d("#gsc-dp-info"),n=d("#console_profile"),i=n.parent().find(".rank-math-refresh"),s=t.parent(),l=d("body").hasClass("rank-math-wizard-body--analytics")?d("> p:first-of-type",".cmb-form"):d("h1",".rank-math-wrap-settings");s.on("click",".rank-math-deauthorize-account",(function(a){a.preventDefault();var s=d(this);if(s.prop("disabled",!0),t.data("authorized"))return Object(r.a)("search_console_deauthentication").always((function(){s.prop("disabled",!1)})).done((function(){t.val(""),t.show(),t.data("authorized",!1),e.removeClass("authorized").addClass("unauthorized"),s.html(Object(o.__)("Authorize","rank-math")),n.prop("disabled",!0),i.prop("disabled",!0)})),!1;t.addClass("input-loading"),Object(r.a)("search_console_authentication",{code:t.val()}).always((function(){s.prop("disabled",!1),t.removeClass("input-loading")})).done((function(a){a&&!a.success&&Object(c.a)(a.error,"error",l),a&&a.success&&(t.hide(),t.data("authorized",!0),s.html("De-authorize Account"),i.trigger("click"),n.removeAttr("disabled"),e.removeClass("unauthorized authorizing").addClass("authorized"))}))})),n.on("change",(function(){null!==n.val()&&0===n.val().indexOf("sc-domain:")?a.removeClass("hidden"):a.addClass("hidden")})).change(),i.on("click",(function(e){e.preventDefault(),i.prop("disabled",!0),n.addClass("input-loading"),Object(r.a)("search_console_get_profiles").always((function(){i.prop("disabled",!1),d(".console-cache-update-manually").prop("disabled",!1),n.removeClass("input-loading")})).done((function(e){if(e&&!e.success&&Object(c.a)(e.error,"error",l),e&&e.success){var t=e.selected||n.val();n.html(""),d.each(e.profiles,(function(e,t){n.append('<option value="'+e+'">'+t+"</option>")})),n.val(t||Object.keys(e.profiles)[0]),i.removeClass("hidden")}}))}))},dependencyManager:function(){var e=this,t=d(".cmb-form, .rank-math-metabox-wrap");d(".cmb-repeat-group-wrap",t).each((function(){var e=d(this),t=e.next(".rank-math-cmb-dependency.hidden");t.length&&e.find("> .cmb-td").append(t)})),d(".rank-math-cmb-dependency",t).each((function(){e.loopDependencies(d(this))})),d("input, select",t).on("change",(function(){var t=d(this).attr("name");d('span[data-field="'+t+'"]').each((function(){e.loopDependencies(d(this).closest(".rank-math-cmb-dependency"))}))}))},checkDependency:function(e,t,a){return"string"==typeof t&&t.includes(",")&&"="===a?t.includes(e):"string"==typeof t&&t.includes(",")&&"!="===a?!t.includes(e):"="===a&&e===t||"=="===a&&e===t||">="===a&&e>=t||"<="===a&&e<=t||">"===a&&e>t||"<"===a&&e<t||"!="===a&&e!==t},loopDependencies:function(e){var t=this,a=e.data("relation"),n=null;e.find("span").each((function(){var e=d(this),i=d("[name='"+e.data("field")+"']"),o=i.val();i.is(":radio")&&(o=i.filter(":checked").val()),i.is(":checkbox")&&(o=i.filter(":checked").val());var r=t.checkDependency(o,e.data("value"),e.data("comparison"));if("or"===a&&r)return n=!0,!1;"and"===a&&(n=(null===n||n)&&r)}));var i=e.closest(".rank-math-cmb-group");i.length||(i=e.closest(".cmb-row")),n?i.slideDown(300):i.hide()},tabs:function(){Object(u.a)();var e=d(".rank-math-tabs-navigation");e.length&&e.each((function(){var t=d(this),a=t.closest(".rank-math-tabs"),n=d(">a",t),i=d(">.rank-math-tabs-content>.rank-math-tab",a),o=t.data("active-class")||"active",r=t.hasClass("before-header");n.on("click",(function(){var e=d(this),t=d(e.attr("href"));if(n.removeClass(o),i.hide(),r){var c=t.find(".cmb-type-title.tab-header").clone();c.addClass("before-header-title"),d(".before-header-title").remove(),a.prepend(c)}return e.addClass(o),t.show(),!1}));var c=window.location.hash||window.localStorage.getItem(a.attr("id"));null===c?n.eq(0).trigger("click"):(c=d('a[href="'+c+'"]',t)).length?c.trigger("click"):n.eq(0).trigger("click"),e.next().css("min-height",t.outerHeight())}))},variableInserter:function(e){var t=d("input[type=text], textarea",".rank-math-supports-variables");if(e=void 0===e||e,t.length){var a,n=this,i=d("body");t.attr("autocomplete","off"),t.wrap('<div class="rank-math-variables-wrap"/>'),d(".rank-math-variables-wrap").append('<a href="#" class="rank-math-variables-button button button-secondary"><span class="dashicons dashicons-arrow-down-alt2"></span></a>'),e&&(d(".rank-math-variables-wrap").after('<div class="rank-math-variables-preview" data-title="'+Object(o.__)("Example","rank-math")+'"/>'),t.on("rank_math_variable_change input",(function(e){var t=d(e.currentTarget),a=n.replaceVariables(t.val());60<a.length&&0<=t.attr("name").indexOf("title")?a=a.substring(0,60)+"...":160<a.length&&0<=t.attr("name").indexOf("description")&&(a=a.substring(0,160)+"...");var i=d("<textarea/>").html(a).val();t.parent().next(".rank-math-variables-preview").text(i)})),t.trigger("rank_math_variable_change"));var r=d("<ul/>"),c=d('<div class="rank-math-variables-dropdown"><input type="text" placeholder="'+Object(o.__)("Search …","rank-math")+'"></div>');d.each(rankMath.variables,(function(){r.append('<li data-var="%'+this.variable+'%"'+this.example+"><strong>"+this.name+"</strong><span>"+this.description+"</span></li>")})),c.append(r),d(".rank-math-variables-wrap:eq(0)").append(c);var s=d(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");i.on("click",(function(e){d(e.target).is(s)||h()}));var l=c.find("input"),p=c.find("li");i.on("click",".rank-math-variables-button",(function(e){e.preventDefault();var t=d(this);t.after(c),p.show(),void 0!==(a=t.prev().data("exclude-variables"))&&(a=a.split(","),u()),c.show(),l.val("").focus()})),c.on("click","li",(function(e){e.preventDefault();var t=d(this),a=t.closest(".rank-math-variables-wrap").find("input,textarea");a.val(d.trim(a.val())+" "+t.data("var")),a.trigger("rank_math_variable_change").trigger("input"),h()})),c.on("keyup","input",(function(e){e.preventDefault();var t=d(this).val().toLowerCase();if(2>t.length)return p.show(),void u();p.hide().each((function(){var e=d(this);-1!==e.text().toLowerCase().indexOf(t)&&e.show()})),u()}))}function u(){void 0!==a&&a.forEach((function(e){c.find('[data-var="%'+e+'%"]').hide()}))}function h(){a=void 0,c.hide()}},replaceVariables:function(e){return d.each(rankMath.variables,(function(t){if(!this.example)return!0;var a=new RegExp("\\([a-z]+\\)","g");t=t.replace(a,"\\(.*?\\)"),e=e.replace(new RegExp("%+"+t+"%+","g"),this.example)})),e}},window.rankMathAdmin.init()}))}});
|
assets/admin/js/custom-fields.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=56)}({1:function(e,t){e.exports=lodash},2:function(e,t){e.exports=jQuery},56:function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(1);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getContent=function(e){return o()(this.fields).each((function(t,n){e+=o()(n).val()})),e},this.init(),this.hooks(),this.events()}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.fields=this.getFields(),this.getContent=this.getContent.bind(this)}},{key:"hooks",value:function(){wp.hooks.addFilter("rank_math_content","rank-math",this.getContent)}},{key:"events",value:function(){o()(this.fields).each((function(e,t){o()(t).on("keyup change",Object(i.debounce)((function(){rankMathEditor.refresh("content")}),500))}))}},{key:"getFields",value:function(){var e=[];return o()("#the-list > tr:visible").each((function(t,n){var r=o()("#"+n.id+"-key").val();-1!==o.a.inArray(r,rankMath.analyzeFields)&&e.push("#"+n.id+"-value")})),e}}])&&u(t.prototype,n),r&&u(t,r),e}();o()((function(){setTimeout((function(){new a}),500)}))}});
|
assets/admin/js/dashboard.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var n={};function t(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(a,o,function(n){return e[n]}.bind(null,o));return a},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=
|
1 |
+
!function(e){var n={};function t(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(a,o,function(n){return e[n]}.bind(null,o));return a},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=57)}({2:function(e,n){e.exports=jQuery},57:function(e,n,t){"use strict";t.r(n);var a=t(2),o=t.n(a);function r(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var i=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.deactivatePlugins(),this.updateModules(),this.initializeClipBoard(),this.modeSelector(),this.usageTracking()}var n,t,a;return n=e,(t=[{key:"deactivatePlugins",value:function(){o()(".dashboard-deactivate-plugin").on("click",(function(e){e.preventDefault();var n=o()(this);return o.a.ajax({url:window.ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:"all"}}).always((function(e){"1"===e&&n.parents(".rank-math-notice").remove()})),!1}))}},{key:"updateModules",value:function(){o()(".rank-math-modules").on("change",(function(){var e=o()(this),n=e.closest(".rank-math-box"),t=e.is(":checked"),a=e.val();n.addClass("saving"),o.a.ajax({url:rankMath.api.root+"rankmath/v1/saveModule",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{module:a,state:t?"on":"off"}}).done((function(e){e?(n.removeClass("saving"),n.toggleClass("active",t),o.a.ajax({url:window.location.pathname+window.location.search,method:"GET"}).done((function(e){if(e){var n=o()(e).find("#toplevel_page_rank-math"),t=o()("#toplevel_page_rank-math > .wp-submenu");n.length&&n.find("> .wp-submenu > li").length!==t.children("li").length&&t.fadeOut(200,(function(){t.html(n.find("> .wp-submenu").hide().children()).fadeIn(400)}))}}))):window.alert("Something went wrong! Please try again.")}))}))}},{key:"initializeClipBoard",value:function(){"undefined"!=typeof ClipboardJS&&(o()(".get-debug-report").on("click",(function(){return o()("#debug-report").slideDown(),o()("#debug-report textarea").focus().select(),o()(this).parent().fadeOut(),!1})),new ClipboardJS("#copy-for-support"))}},{key:"modeSelector",value:function(){o()(".rank-math-mode-selector a").on("click",(function(e){e.preventDefault();var n=o()(this).data("mode");return o.a.ajax({url:rankMath.api.root+"rankmath/v1/updateMode",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{mode:n}}).done((function(e){e?window.location.reload():window.alert("Something went wrong! Please try again.")})),!1}))}},{key:"usageTracking",value:function(){o()("#rank-math-usage-tracking").on("change",(function(){o.a.ajax({url:rankMath.api.root+"rankmath/v1/updateTracking",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{enable:o()(this).is(":checked")}}).done((function(e){e||window.alert("Something went wrong! Please try again.")}))}))}}])&&r(n.prototype,t),a&&r(n,a),e}();jQuery(document).ready((function(){new i}))}});
|
assets/admin/js/elementor.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=78)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),a=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===i)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},,function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return""===e||Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "})).replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"}))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(2),a=n.n(r),i=n(8),o=n(1),l=n(6),c=n(9),s=n(14),u=function(e,t){return e=(e=i.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(o.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,r=function(e){if(Object(o.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(o.filter)(i.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==a.a.trim(e)}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(o.filter)(t,(function(e){return Object(o.includes)(e.toLowerCase(),n)}));if(0<r.length)return u(r[0],160)}return u(t[0],160)}(Object(s.a)(t.content)),p=Object(o.isUndefined)(n)||Object(o.isEmpty)(n)?r:n;if(c.a.setVariable("excerpt",p),c.a.setVariable("seo_description",p),""!==(e=Object(s.a)(Object(l.applyFilters)("rankMath/description",e))))return i.Helpers.cleanText(e);if(!Object(o.isUndefined)(n)&&!Object(o.isEmpty)(n))return i.Helpers.cleanText(n);var m=rankMath.assessor.serpData.descriptionTemplate;return Object(o.isUndefined)(m)||""===m?r:i.Helpers.cleanText(m)}},function(e,t,n){"use strict";var r=n(1),a=n(14);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function l(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);c=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,c,t),isInvalid:o(n,t),isInvalidWidth:!!s&&l(c,t),count:n+" / "+t.max,pixelWidth:s?c+"px / "+t.pixelWidth+"px":""}}},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},,function(e,t,n){"use strict";var r=n(4),a=n(19);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},,function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},a=l(n(33)),i=l(n(41)),o=l(n(44));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},,,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),l=n(10),c=n.n(l),s=n(1),u=n(7),p=n(3);function m(e){return(m="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})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var O=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=k(e,["tabId","onClick","children","selected"]);return wp.element.createElement(p.Button,v({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(i,e);var t,n,r,a=g(i);function i(){var e;h(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,u=void 0===l?"horizontal":l,m=n.tabs,h=Object(s.find)(m,{name:t}),f=o+"-"+h.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:c()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),h&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(h)))}}])&&f(t.prototype,n),r&&f(t,r),i}(o.Component),j=Object(u.withInstanceId)(_),E=n(26),T=function(e){var t=Object(E.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:c()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},S=n(29),I=n(35),D=n.n(I),C=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),D()({mixedString:r,components:n})};function P(e){return(P="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})(e)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return R(this,n)}}function R(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(l,e);var t,n,a,i=A(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(M(t)),t}return t=l,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(S.decodeEntities)(Object(r.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(C,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&x(t.prototype,n),a&&x(t,a),l}(o.Component),L=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(T,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(U,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),H=n(8),z=n(11),G=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(H.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(H.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(T,{source:Object(z.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(z.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),K=n(14),B=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(T,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(K.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(U,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),V=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=c()("button button-secondary button-small",{active:"desktop"===t}),a=c()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),W=n(31),Y=n(18),q=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},$=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return Object(s.includes)(["Book","Course","Product","Recipe","Software"],e["@type"])}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},q(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},q(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))})),Z=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},J=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return Object(s.includes)(["Event"],e["@type"])}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},Z(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},Z(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,l=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=c()("serp-preview",(Q(t={"expanded-preview":""!==l},"".concat(l,"-preview"),""!==l&&f),Q(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(W.a,null)," ",f&&wp.element.createElement(V,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,H.Helpers.sanitizeText(n),60)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object(Y.a)(g,H.Helpers.sanitizeText(Object(z.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement($,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,H.Helpers.sanitizeText(i),160)}})),wp.element.createElement(J,null)),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),ee=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(X,{showScore:!1,showDevices:!0}),wp.element.createElement(L,null),wp.element.createElement(G,null),wp.element.createElement(B,null))})),te=n(9),ne=function(e){var t=c()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?te.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?te.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},re=n(12),ae=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(re.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ie(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function oe(){return(oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ne,oe({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(ae,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ie(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),ce=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),se=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ne,ue({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(ae,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ie(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(se,null),"app"===e.cardType&&wp.element.createElement(ce,null))})),me=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:le,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:pe,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},de=n(2),he=n.n(de);function fe(e){return(fe="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})(e)}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ke(e);if(t){var a=ke(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ye(this,n)}}function ye(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?ve(e):t}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ge(e,t)}(l,e);var t,n,a,i=we(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this))._handleRef=e._handleRef.bind(ve(e)),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=he()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=he()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(C,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){he.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=he()(this.component);e.animate({opacity:.01},1500,(function(){var t=he()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&be(t.prototype,n),a&&be(t,a),l}(o.Component),_e=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),je=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,l=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:ee},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:me}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&l.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:Oe}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),wp.element.createElement(_e,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:l},(function(e){return Object(o.createElement)(e.view)}))))})),Ee=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(je,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Te=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=c()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Se=n(28);function Ie(e){return(Ie="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})(e)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ae(e);if(t){var a=Ae(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ne(this,n)}}function Ne(e,t){return!t||"object"!==Ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pe(e,t)}(l,e);var t,n,a,i=xe(l);function l(){return De(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=c()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Se.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Te,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Ce(t.prototype,n),a&&Ce(t,a),l}(o.Component),Me=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Re),Fe=n(21),Ue=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Le=n(27),He=n.n(Le);function ze(e){return(ze="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})(e)}function Ge(){return(Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var a=qe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return We(this,n)}}function We(e,t){return!t||"object"!==ze(t)&&"function"!=typeof t?Ye(e):t}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(i,e);var t,n,r,a=Ve(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(Ye(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new He.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",Ge({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",Ge({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&Ke(t.prototype,n),r&&Ke(t,r),i}(o.Component);function Ze(e){return(Ze="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})(e)}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qe(e,t){return(Qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nt(e);if(t){var a=nt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return et(this,n)}}function et(e,t){return!t||"object"!==Ze(t)&&"function"!=typeof t?tt(e):t}function tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qe(e,t)}(l,e);var t,n,a,i=Xe(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(tt(t)),window.rankMathEditor.focusKeywordField=tt(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement($e,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(H.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=he.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=he.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=he()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Je(t.prototype,n),a&&Je(t,a),l}(o.Component),at=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(rt),it=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(Te,null,wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement("a",{href:"https://rankmath.com/pricing/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Trends&utm_campaign=WP",title:Object(r.__)("Google Trends","rank-math"),target:"_blank",rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon}}),wp.element.createElement(Fe.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(at,null)),wp.element.createElement(Ue,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Te,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),ot=n(22),lt=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(X,{onClick:t}),wp.element.createElement(je,null),wp.element.createElement(ot.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(it,null),rankMath.canUser.analysis&&wp.element.createElement(Me,null))})),ct=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},st=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=ct(n,t,r),"index"===t&&(n=ct(n,"noindex",!r)),"noindex"===t&&(n=ct(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function ut(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 pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(pt(pt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(pt(pt({},t),{},mt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(Te,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ft=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function bt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},vt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gt({},t);return Object(s.defaults)(n,yt),{meta:t,isSnippet:"max-snippet"in t,isImage:"max-image-preview"in t,isVideo:"max-video-preview"in t,maxSnippet:n["max-snippet"],maxImage:n["max-image-preview"],maxVideo:n["max-video-preview"]}})),Object(a.withDispatch)((function(e,t){var n=gt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=yt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),kt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),Ot=n(23),_t=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(st,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ft,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(dt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(kt,null)),wp.element.createElement(Ot.a.Slot,null,(function(e){return e.length>0?e:[]})))},jt=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(j,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:lt,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:_t,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:Ee,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:jt},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"updateKeywords",(function(){return m})),n.d(r,"updatePillarContent",(function(){return d})),n.d(r,"toggleFrontendScore",(function(){return h})),n.d(r,"updateAnalysisScore",(function(){return f})),n.d(r,"updateCanonicalUrl",(function(){return b})),n.d(r,"updateAdvancedRobots",(function(){return g})),n.d(r,"updateRobots",(function(){return w})),n.d(r,"updateBreadcrumbTitle",(function(){return y})),n.d(r,"resetDirtyMetadata",(function(){return v})),n.d(r,"updateFacebookTitle",(function(){return k})),n.d(r,"updateFacebookDescription",(function(){return O})),n.d(r,"updateFacebookImage",(function(){return _})),n.d(r,"updateFacebookImageID",(function(){return j})),n.d(r,"updateFacebookHasOverlay",(function(){return E})),n.d(r,"updateFacebookImageOverlay",(function(){return T})),n.d(r,"updateAppData",(function(){return u})),n.d(r,"updateAppUi",(function(){return p})),n.d(r,"updatePostID",(function(){return S})),n.d(r,"updatePermalink",(function(){return I})),n.d(r,"updateTitle",(function(){return D})),n.d(r,"updateDescription",(function(){return C})),n.d(r,"updateFeaturedImage",(function(){return P})),n.d(r,"updatePrimaryTermID",(function(){return x})),n.d(r,"updateRedirection",(function(){return N})),n.d(r,"updateRedirectionItem",(function(){return A})),n.d(r,"resetRedirection",(function(){return R})),n.d(r,"updateHasRedirect",(function(){return M})),n.d(r,"updateSerpTitle",(function(){return U})),n.d(r,"updateSerpDescription",(function(){return L})),n.d(r,"toggleSnippetEditor",(function(){return H})),n.d(r,"updateSnippetPreviewType",(function(){return z})),n.d(r,"updateTwitterUseFacebook",(function(){return G})),n.d(r,"updateTwitterCardType",(function(){return K})),n.d(r,"updateTwitterTitle",(function(){return B})),n.d(r,"updateTwitterDescription",(function(){return V})),n.d(r,"updateTwitterAuthor",(function(){return W})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return q})),n.d(r,"updateTwitterHasOverlay",(function(){return $})),n.d(r,"updateTwitterImageOverlay",(function(){return Z})),n.d(r,"updateTwitterPlayerUrl",(function(){return J})),n.d(r,"updateTwitterPlayerSize",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return X})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return ee})),n.d(r,"updateTwitterAppDescription",(function(){return te})),n.d(r,"updateTwitterAppIphoneID",(function(){return ne})),n.d(r,"updateTwitterAppIphoneName",(function(){return re})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return ae})),n.d(r,"updateTwitterAppIpadID",(function(){return ie})),n.d(r,"updateTwitterAppIpadName",(function(){return oe})),n.d(r,"updateTwitterAppIpadUrl",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return se})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return ue})),n.d(r,"updateTwitterAppCountry",(function(){return pe})),n.d(r,"toggleLoaded",(function(){return me})),n.d(r,"updateSelectedKeyword",(function(){return de})),n.d(r,"refreshResults",(function(){return he})),n.d(r,"setVersion",(function(){return fe})),n.d(r,"toggleSchemaEditor",(function(){return _e})),n.d(r,"toggleSchemaTemplates",(function(){return je})),n.d(r,"setEditingSchemaId",(function(){return Ee})),n.d(r,"setEditorTab",(function(){return Te})),n.d(r,"setTemplateTab",(function(){return Se})),n.d(r,"updateEditSchemas",(function(){return Ie})),n.d(r,"updateSchemas",(function(){return De})),n.d(r,"updateEditSchema",(function(){return Ce})),n.d(r,"saveSchema",(function(){return Pe})),n.d(r,"deleteSchema",(function(){return xe})),n.d(r,"saveTemplate",(function(){return Ne}));var a={};n.r(a),n.d(a,"appData",(function(){return He})),n.d(a,"appUi",(function(){return Ve}));var i={};n.r(i),n.d(i,"getAppData",(function(){return We})),n.d(i,"getDirtyMetadata",(function(){return Ye})),n.d(i,"getAnalysisScore",(function(){return qe})),n.d(i,"getKeywords",(function(){return $e})),n.d(i,"getPillarContent",(function(){return Ze})),n.d(i,"getRobots",(function(){return Je})),n.d(i,"getAdvancedRobots",(function(){return Qe})),n.d(i,"getCanonicalUrl",(function(){return Xe})),n.d(i,"getBreadcrumbTitle",(function(){return et})),n.d(i,"getRichSnippets",(function(){return tt})),n.d(i,"getShowScoreFrontend",(function(){return nt})),n.d(i,"isLoaded",(function(){return rt})),n.d(i,"getSelectedKeyword",(function(){return at})),n.d(i,"isRefreshing",(function(){return it})),n.d(i,"isPro",(function(){return ot})),n.d(i,"getFacebookTitle",(function(){return lt})),n.d(i,"getFacebookDescription",(function(){return ct})),n.d(i,"getFacebookAuthor",(function(){return st})),n.d(i,"getFacebookImageID",(function(){return ut})),n.d(i,"getFacebookImage",(function(){return pt})),n.d(i,"getFacebookHasOverlay",(function(){return mt})),n.d(i,"getFacebookImageOverlay",(function(){return dt})),n.d(i,"getPostID",(function(){return ht})),n.d(i,"getTitle",(function(){return ft})),n.d(i,"getPermalink",(function(){return bt})),n.d(i,"getDescription",(function(){return gt})),n.d(i,"getFeaturedImage",(function(){return wt})),n.d(i,"getFeaturedImageHtml",(function(){return yt})),n.d(i,"getPrimaryTermID",(function(){return vt})),n.d(i,"getRedirectionID",(function(){return kt})),n.d(i,"getRedirectionType",(function(){return Ot})),n.d(i,"getRedirectionUrl",(function(){return _t})),n.d(i,"getRedirectionItem",(function(){return jt})),n.d(i,"hasRedirect",(function(){return Et})),n.d(i,"getSerpTitle",(function(){return St})),n.d(i,"getSerpDescription",(function(){return It})),n.d(i,"isSnippetEditorOpen",(function(){return Dt})),n.d(i,"getSnippetPreviewType",(function(){return Ct})),n.d(i,"isSchemaEditorOpen",(function(){return Pt})),n.d(i,"isSchemaTemplatesOpen",(function(){return xt})),n.d(i,"getSchemas",(function(){return Nt})),n.d(i,"getEditSchemas",(function(){return At})),n.d(i,"getEditingSchema",(function(){return Rt})),n.d(i,"getPreviewSchema",(function(){return Mt})),n.d(i,"getEditorTab",(function(){return Ft})),n.d(i,"getTemplateTab",(function(){return Ut})),n.d(i,"getTwitterUseFacebook",(function(){return Lt})),n.d(i,"getTwitterCardType",(function(){return Ht})),n.d(i,"getTwitterTitle",(function(){return zt})),n.d(i,"getTwitterDescription",(function(){return Gt})),n.d(i,"getTwitterAuthor",(function(){return Kt})),n.d(i,"getTwitterImageID",(function(){return Bt})),n.d(i,"getTwitterImage",(function(){return Vt})),n.d(i,"getTwitterHasOverlay",(function(){return Wt})),n.d(i,"getTwitterImageOverlay",(function(){return Yt})),n.d(i,"getTwitterAppDescription",(function(){return qt})),n.d(i,"getTwitterAppIphoneID",(function(){return $t})),n.d(i,"getTwitterAppIphoneName",(function(){return Zt})),n.d(i,"getTwitterAppIphoneUrl",(function(){return Jt})),n.d(i,"getTwitterAppIpadID",(function(){return Qt})),n.d(i,"getTwitterAppIpadName",(function(){return Xt})),n.d(i,"getTwitterAppIpadUrl",(function(){return en})),n.d(i,"getTwitterAppGoogleplayID",(function(){return tn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return nn})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return rn})),n.d(i,"getTwitterAppCountry",(function(){return an})),n.d(i,"getTwitterPlayerUrl",(function(){return on})),n.d(i,"getTwitterPlayerSize",(function(){return ln})),n.d(i,"getTwitterPlayerStream",(function(){return cn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return sn}));var o=n(8),l=n(6),c=n(4),s=n(9);function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(l.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(l.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(l.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function p(e,t){return Object(l.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function m(e){return s.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),u("keywords",e,"rank_math_focus_keyword")}function d(e){return u("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function h(e){return u("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function f(e){return u("score",e,"rank_math_seo_score")}function b(e){return u("canonicalUrl",e,"rank_math_canonical_url")}function g(e){return u("advancedRobots",e,"rank_math_advanced_robots")}function w(e){return u("robots",e,"rank_math_robots",Object.keys(e))}function y(e){return u("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function v(){return u("dirtyMetadata",{})}function k(e){return u("facebookTitle",e,"rank_math_facebook_title")}function O(e){return u("facebookDescription",e,"rank_math_facebook_description")}function _(e){return u("facebookImage",e,"rank_math_facebook_image")}function j(e){return u("facebookImageID",e,"rank_math_facebook_image_id")}function E(e){return u("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function T(e){return u("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function S(e){return rankMath.objectID=e,u("postID",e)}function I(e){return u("permalink",e,"permalink")}function D(e){return u("title",e,"rank_math_title")}function C(e){return u("description",e,"rank_math_description")}function P(e){return u("featuredImage",e)}function x(e,t){return u("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function N(e,t){return u(e,t)}function A(e){return p("redirectionItem",e)}function R(){return p("redirectionItem",{})}function M(e){return p("hasRedirect",e)}var F=n(25);function U(e){return e=s.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),p("serpTitle",e)}function L(e){return e=s.a.swap(Object(F.a)(e)),rankMathEditor.refresh("description"),p("serpDescription",e)}function H(e){return p("isSnippetEditorOpen",e)}function z(e){return p("snippetPreviewType",e)}function G(e){return u("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function K(e){return u("twitterCardType",e,"rank_math_twitter_card_type")}function B(e){return u("twitterTitle",e,"rank_math_twitter_title")}function V(e){return u("twitterDescription",e,"rank_math_twitter_description")}function W(e){return u("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return u("twitterImageID",e,"rank_math_twitter_image_id")}function q(e){return u("twitterImage",e,"rank_math_twitter_image")}function $(e){return u("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Z(e){return u("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function J(e){return u("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Q(e){return u("twitterPlayerSize",e,"rank_math_twitter_player_size")}function X(e){return u("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return u("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return u("twitterAppDescription",e,"rank_math_twitter_app_description")}function ne(e){return u("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function re(e){return u("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return u("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return u("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return u("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function le(e){return u("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function ce(e){return u("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function se(e){return u("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function ue(e){return u("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function pe(e){return u("twitterAppCountry",e,"rank_math_twitter_app_country")}function me(e){return p("isLoaded",e)}function de(e){return p("selectedKeyword",e)}function he(){return p("refreshResults",Date.now())}function fe(){return p("isPro",!0)}var be=n(1),ge=n(0),we=n(16),ye=n.n(we);function ve(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 ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e){return p("isSchemaEditorOpen",e)}function je(e){return p("isSchemaTemplatesOpen",e)}function Ee(e){return p("editingSchemaId",e)}function Te(e){return p("editorTab",e)}function Se(e){return p("templateTab",e)}function Ie(e){return p("editSchemas",e)}function De(e){return u("schemas",e)}function Ce(e,t){var n=ke({},Object(c.select)("rank-math").getEditSchemas());return n[e]=t,p("editSchemas",n)}function Pe(e,t){var n=ke({},Object(c.select)("rank-math").getSchemas());return n[e]=t,u("schemas",n)}function xe(e){var t=ke({},Object(c.select)("rank-math").getSchemas());return delete t[e],Object(l.doAction)("rank_math_schema_trash",e),u("schemas",t,"rank_math_delete_"+e,"")}function Ne(e,t,n){return ye()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(be.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ge.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Ae(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 Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fe=rankMath.assessor.serpData,Ue=rankMath.assessor.hasRedirection,Le={postID:null,title:Fe.title?Fe.title:Fe.titleTemplate,description:Fe.description,keywords:Fe.focusKeywords,pillarContent:Fe.pillarContent,featuredImage:"",permalink:!1,primaryTerm:Fe.primaryTerm,robots:Fe.robots,advancedRobots:Fe.advancedRobots,canonicalUrl:Fe.canonicalUrl,breadcrumbTitle:Fe.breadcrumbTitle,showScoreFrontend:Fe.showScoreFrontend,redirectionID:Ue?Object(be.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:Ue?Object(be.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:Ue?Object(be.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:Fe.facebookTitle,facebookImage:Fe.facebookImage,facebookImageID:Fe.facebookImageID,facebookAuthor:Fe.facebookAuthor,facebookDescription:Fe.facebookDescription,facebookHasOverlay:Fe.facebookHasOverlay,facebookImageOverlay:Fe.facebookImageOverlay,twitterTitle:Fe.twitterTitle,twitterImage:Fe.twitterImage,twitterAuthor:Fe.twitterAuthor,twitterImageID:Fe.twitterImageID,twitterCardType:Fe.twitterCardType,twitterUseFacebook:Fe.twitterUseFacebook,twitterDescription:Fe.twitterDescription,twitterHasOverlay:Fe.twitterHasOverlay,twitterImageOverlay:Fe.twitterImageOverlay,twitterPlayerUrl:Fe.twitterPlayerUrl,twitterPlayerSize:Fe.twitterPlayerSize,twitterPlayerStream:Fe.twitterPlayerStream,twitterPlayerStreamCtype:Fe.twitterPlayerStreamCtype,twitterAppDescription:Fe.twitterAppDescription,twitterAppIphoneName:Fe.twitterAppIphoneName,twitterAppIphoneID:Fe.twitterAppIphoneID,twitterAppIphoneUrl:Fe.twitterAppIphoneUrl,twitterAppIpadName:Fe.twitterAppIpadName,twitterAppIpadID:Fe.twitterAppIpadID,twitterAppIpadUrl:Fe.twitterAppIpadUrl,twitterAppGoogleplayName:Fe.twitterAppGoogleplayName,twitterAppGoogleplayID:Fe.twitterAppGoogleplayID,twitterAppGoogleplayUrl:Fe.twitterAppGoogleplayUrl,twitterAppCountry:Fe.twitterAppCountry,schemas:Object(be.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function He(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Le,n=arguments.length>1?arguments[1]:void 0,r=Re({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Re(Re({},t),{},{dirtyMetadata:n.value}):Re(Re({},t),{},(Me(e={},n.key,n.value),Me(e,"dirtyMetadata",r),e)):t}function ze(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 Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(be.isEmpty)(Object(be.get)(rankMath.assessor,"redirection.id",""))||!Object(be.isEmpty)(Object(be.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1};function Ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Ge(Ge({},e),{},Ke({},t.key,t.value)):e}function We(e){return e.appData}function Ye(e){return e.appData.dirtyMetadata}function qe(e){return e.appData.score}function $e(e){return e.appData.keywords}function Ze(e){return e.appData.pillarContent}function Je(e){return e.appData.robots}function Qe(e){return e.appData.advancedRobots}function Xe(e){return e.appData.canonicalUrl}function et(e){return e.appData.breadcrumbTitle}function tt(e){return"todo"}function nt(e){return e.appData.showScoreFrontend}function rt(e){return e.appUi.isLoaded}function at(e){return e.appUi.selectedKeyword}function it(e){return e.appUi.refreshResults}function ot(e){return e.appUi.isPro}function lt(e){return e.appData.facebookTitle}function ct(e){return e.appData.facebookDescription}function st(e){return e.appData.facebookAuthor}function ut(e){return e.appData.facebookImageID}function pt(e){return e.appData.facebookImage}function mt(e){return e.appData.facebookHasOverlay}function dt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function ht(e){return e.appData.postID}function ft(e){return e.appData.title}function bt(e){return e.appData.permalink}function gt(e){return e.appData.description}function wt(e){return e.appData.featuredImage}function yt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function vt(e){return e.appData.primaryTerm}function kt(e){return e.appData.redirectionID}function Ot(e){return e.appData.redirectionType}function _t(e){return e.appData.redirectionUrl}function jt(e){return e.appUi.redirectionItem}function Et(e){return e.appUi.hasRedirect}var Tt=n(14);function St(e){return Object(Tt.a)(e.appUi.serpTitle)}function It(e){return e.appUi.serpDescription}function Dt(e){return e.appUi.isSnippetEditorOpen}function Ct(e){return e.appUi.snippetPreviewType}function Pt(e){return e.appUi.isSchemaEditorOpen}function xt(e){return e.appUi.isSchemaTemplatesOpen}function Nt(e){return e.appData.schemas}function At(e){return e.appUi.editSchemas}function Rt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Mt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Ft(e){return e.appUi.editorTab}function Ut(e){return e.appUi.templateTab}function Lt(e){return e.appData.twitterUseFacebook}function Ht(e){return e.appData.twitterCardType}function zt(e){return e.appData.twitterTitle}function Gt(e){return e.appData.twitterDescription}function Kt(e){return e.appData.twitterAuthor}function Bt(e){return e.appData.twitterImageID}function Vt(e){return e.appData.twitterImage}function Wt(e){return e.appData.twitterHasOverlay}function Yt(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function qt(e){return e.appData.twitterAppDescription}function $t(e){return e.appData.twitterAppIphoneID}function Zt(e){return e.appData.twitterAppIphoneName}function Jt(e){return e.appData.twitterAppIphoneUrl}function Qt(e){return e.appData.twitterAppIpadID}function Xt(e){return e.appData.twitterAppIpadName}function en(e){return e.appData.twitterAppIpadUrl}function tn(e){return e.appData.twitterAppGoogleplayID}function nn(e){return e.appData.twitterAppGoogleplayName}function rn(e){return e.appData.twitterAppGoogleplayUrl}function an(e){return e.appData.twitterAppCountry}function on(e){return e.appData.twitterPlayerUrl}function ln(e){return e.appData.twitterPlayerSize}function cn(e){return e.appData.twitterPlayerStream}function sn(e){return e.appData.twitterPlayerStreamCtype}var un=Object(c.registerStore)("rank-math",{reducer:Object(c.combineReducers)(a),selectors:i,actions:r});function pn(){return un}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var dn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new o.Analyzer({i18n:ge,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(l.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(l.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(l.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,r;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(be.isObject)(e)||Object(be.isEmpty)(e)?e:o.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e){var t=pn().getState(),n=this.dataCollector.getData(),r=new o.Paper("",{locale:rankMath.localeFull});return r.setTitle(t.appUi.serpTitle),r.setPermalink(n.slug),r.setDescription(t.appUi.serpDescription),r.setUrl(n.permalink),r.setText(Object(l.applyFilters)("rank_math_content",n.content)),r.setKeyword(e),Object(be.isUndefined)(n.featuredImage)||(r.setThumbnail(n.featuredImage.source_url),r.setThumbnailAltText(o.Helpers.removeDiacritics(n.featuredImage.alt_text))),r}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(be.debounce)((function(t){var n=pn().getState();if(!1!==n.appUi.isLoaded){var r=n.appData.keywords.split(","),a=[];Object(l.doAction)("rank_math_"+t+"_refresh"),r.map((function(t,n){var r=e.getPaper(o.Helpers.removeDiacritics(t)),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();a.push(e.analyzer.analyzeSome(i,r).then((function(e){rankMathEditor.resultManager.update(r.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(r.getKeyword()))}))),Promise.all(a).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=pn().getState().appData.keywords;return o.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=pn().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return o.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&mn(t.prototype,n),r&&mn(t,r),e}(),hn=n(24);function fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var bn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"setup",value:function(e){pn(),this.resultManager=new o.ResultManager,this.assessor=new dn(e),new hn.a,Object(l.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&fn(t.prototype,n),r&&fn(t,r),e}();t.a=bn},,function(e,t,n){"use strict";var r=n(33),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(34),o=n(42),l=n(43),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(34);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},,,,,,,function(e,t){e.exports=wp.mediaUtils},function(e,t){e.exports=Marionette},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),i=n(4),o=n(51),l=n(6),c=n(39),s=n(1),u=n(16),p=n.n(u),m=n(11),d=n(9);function h(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToElementor(),elementor.once("preview:loaded",Object(s.debounce)(this.elementorPreviewLoaded.bind(this),5e3))}var t,n,r;return t=e,(n=[{key:"elementorPreviewLoaded",value:function(){var e=this;Object(l.addAction)("rank_math_data_changed","rank-math",(function(){e.activateSaveButton()})),Object(l.addAction)("rank_math_update_app_ui","rank-math",(function(t){"hasRedirect"===t&&e.activateSaveButton()}))}},{key:"activateSaveButton",value:function(){var e=Object(s.get)(elementor,"saver.footerSaver",!1);!1===e?elementor.channels.editor.trigger("status:change",!0):e.activateSaveButtons(document,!0)}},{key:"collectGutenbergData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return elementor.config.document.id}},{key:"getTitle",value:function(){return elementor.settings.page.model.get("post_title")}},{key:"getContent",value:function(){var e=[];return this.getContentArea().find(".elementor-widget-container").each((function(){e.push(a()(this).html())})),e.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;var e=elementor.$preview.contents().find('[data-elementor-type="'+ElementorConfig.document.type+'"]');return e.length<1?a()("<div />"):(this._contentArea=e,e)}},{key:"getExcerpt",value:function(){return elementor.settings.page.model.get("post_excerpt")}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":this.getSlug()?rankMath.permalinkFormat.replace(/%(postname|pagename)%/,this.getSlug()).trimRight("/"):""}},{key:"getSlug",value:function(){return Object(m.safeDecodeURIComponent)(Object(i.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){var e=elementor.settings.page.model.get("post_featured_image");if(!Object(s.isUndefined)(e)&&(e=""===e.id?0:parseInt(e.id),this.isValidMediaId(e))){var t=Object(i.select)("core").getMedia(e);if(!Object(s.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"subscribeToElementor",value:function(){Object(i.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(s.debounce)(this.refresh,500),Object(i.subscribe)(this.subscriber),elementor.saver.on("before:save",this.savePost),elementor.saver.on("before:save",this.saveRedirection),elementor.saver.on("before:save",this.saveSchemas),elementor.settings.page.model.on("change",this.subscriber)}},{key:"refresh",value:function(){var e=f({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e),!Object(s.isEqual)(e,this._data)&&e.id&&elementor.channels.editor.trigger("status:change",!0)}},{key:"savePost",value:function(){var e=Object(i.select)("rank-math").getDirtyMetadata();Object(s.isEmpty)(e)||(p()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e}}).then((function(e){Object(s.isString)(e)&&Object(i.dispatch)("rank-math").updatePermalink(e)})),Object(i.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var e=Object(i.select)("rank-math").getRedirectionItem();Object(s.isEmpty)(e)||(e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink(),p()({method:"POST",path:"rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?Object(i.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===e.action&&Object(i.dispatch)("rank-math").updateRedirection("redirectionID",e.id)})),Object(i.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var e=Object(i.select)("rank-math").getSchemas();if(!Object(s.isEmpty)(e)&&!Object(s.isEqual)(e,Object(s.get)(rankMath,"schemas",{}))){var t=Object(i.select)("rank-math").getEditSchemas();p()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(!Object(s.isEmpty)(n)){var r=f({},e),a=f({},t);Object(s.map)(n,(function(e,t){r["schema-"+e]=f({},r[t]),a["schema-"+e]=f({},a[t]),delete r[t],delete a[t]})),Object(i.dispatch)("rank-math").updateSchemas(r),Object(i.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(s.isInteger)(e.id))return this.initialize?void Object(s.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(s.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(i.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(i.dispatch)("rank-math").updatePostID(e),Object(i.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){d.a.setVariable("title",e),d.a.setVariable("term",e),d.a.setVariable("author",e),Object(i.dispatch)("rank-math").updateSerpTitle(Object(i.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){d.a.setVariable("excerpt",e),d.a.setVariable("excerpt_only",e),d.a.setVariable("wc_shortdesc",e),d.a.setVariable("seo_description",e),Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(i.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&g(t.prototype,n),r&&g(t,r),e}(),y=n(52),v=n.n(y),k=n(5),O=n(38),_=v.a.ItemView.extend({template:!1,id:"elementor-panel-rank-math",className:"rank-math-elementor rank-math-sidebar-panel",initialize:function(){a()("#elementor-panel-elements-search-area").hide()},onShow:function(){Object(k.render)(Object(k.createElement)(O.a),document.getElementById("elementor-panel-rank-math"))},onDestroy:function(){a()("#elementor-panel-elements-search-area").show()}}),j=function(e){return e["rank-math"]={region:e.global.region,view:_,options:{}},e};function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var T=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onThemeChange=this.onThemeChange.bind(this),elementor.settings.editorPreferences.model.on("change",this.onThemeChange)}var t,n,r;return t=e,(n=[{key:"onThemeChange",value:function(e){var t=Object(s.get)(e,"changed.ui_theme",!1);if(!1!==t){var n=this.getThemeLink();"light"!==t?n.attr("media","auto"===t?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):n.remove()}}},{key:"getThemeLink",value:function(){return this.link||this.createThemeLink(),this.link}},{key:"createThemeLink",value:function(){var e="rank-math-elementor-dark-css";this.link=a()("#"+e),this.link.length||(this.link=a()("<link>",{id:e,rel:"stylesheet",href:rankMath.elementorDarkMode}))}}])&&E(t.prototype,n),r&&E(t,r),e}(),S=n(22),I=n(23),D=n(21);function C(e){return(C="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})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t,n){return(N="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=F(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var U=function(){return o.MediaUpload},L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(o,e);var t,n,r,a=R(o);function o(){return P(this,o),a.apply(this,arguments)}return t=o,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(l.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",U),N(F(o.prototype),"setup",this).call(this,e)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=S.a,this.RankMathAfterFocusKeyword=D.a,this.RankMathAdvancedTab=I.a,this.slots={AfterEditor:S.a,AfterFocusKeyword:D.a,AdvancedTab:I.a}}},{key:"updatePermalink",value:function(e){Object(i.dispatch)("rank-math").updatePermalink(e)}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(i.dispatch)("rank-math").updatePermalink(e)}}])&&x(t.prototype,n),r&&x(t,r),o}(c.a);a()((function(){window.rankMathEditor=new L,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new w),new T,elementor.once("preview:loaded",(function(){$e.components.get("panel/elements").addTab("rank-math",{title:"SEO"}),Object(i.dispatch)("rank-math").refreshResults()}))})),a()(window).on("elementor:init",(function(){elementor.hooks.addFilter("panel/elements/regionViews",j)}))}]);
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=79)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),a=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===i)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},,function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},function(e,t,n){"use strict";n.d(t,"a",(function(){return un}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return p})),n.d(r,"updatePillarContent",(function(){return m})),n.d(r,"toggleFrontendScore",(function(){return d})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return f})),n.d(r,"updateAdvancedRobots",(function(){return b})),n.d(r,"updateRobots",(function(){return g})),n.d(r,"updateBreadcrumbTitle",(function(){return w})),n.d(r,"resetDirtyMetadata",(function(){return y})),n.d(r,"updateFacebookTitle",(function(){return v})),n.d(r,"updateFacebookDescription",(function(){return k})),n.d(r,"updateFacebookImage",(function(){return O})),n.d(r,"updateFacebookImageID",(function(){return _})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return E})),n.d(r,"updateAppData",(function(){return s})),n.d(r,"updateAppUi",(function(){return u})),n.d(r,"updatePostID",(function(){return T})),n.d(r,"updatePermalink",(function(){return S})),n.d(r,"updateTitle",(function(){return I})),n.d(r,"updateDescription",(function(){return D})),n.d(r,"updateFeaturedImage",(function(){return C})),n.d(r,"updatePrimaryTermID",(function(){return P})),n.d(r,"updateRedirection",(function(){return x})),n.d(r,"updateRedirectionItem",(function(){return N})),n.d(r,"resetRedirection",(function(){return A})),n.d(r,"updateHasRedirect",(function(){return R})),n.d(r,"updateSerpTitle",(function(){return F})),n.d(r,"updateSerpDescription",(function(){return U})),n.d(r,"toggleSnippetEditor",(function(){return L})),n.d(r,"updateSnippetPreviewType",(function(){return H})),n.d(r,"updateTwitterUseFacebook",(function(){return z})),n.d(r,"updateTwitterCardType",(function(){return G})),n.d(r,"updateTwitterTitle",(function(){return K})),n.d(r,"updateTwitterDescription",(function(){return B})),n.d(r,"updateTwitterAuthor",(function(){return V})),n.d(r,"updateTwitterImageID",(function(){return W})),n.d(r,"updateTwitterImage",(function(){return Y})),n.d(r,"updateTwitterHasOverlay",(function(){return q})),n.d(r,"updateTwitterImageOverlay",(function(){return $})),n.d(r,"updateTwitterPlayerUrl",(function(){return Z})),n.d(r,"updateTwitterPlayerSize",(function(){return J})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return X})),n.d(r,"updateTwitterAppDescription",(function(){return ee})),n.d(r,"updateTwitterAppIphoneID",(function(){return te})),n.d(r,"updateTwitterAppIphoneName",(function(){return ne})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return re})),n.d(r,"updateTwitterAppIpadID",(function(){return ae})),n.d(r,"updateTwitterAppIpadName",(function(){return ie})),n.d(r,"updateTwitterAppIpadUrl",(function(){return oe})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return se})),n.d(r,"updateTwitterAppCountry",(function(){return ue})),n.d(r,"toggleLoaded",(function(){return pe})),n.d(r,"updateSelectedKeyword",(function(){return me})),n.d(r,"refreshResults",(function(){return de})),n.d(r,"setVersion",(function(){return he})),n.d(r,"toggleSchemaEditor",(function(){return Oe})),n.d(r,"toggleSchemaTemplates",(function(){return _e})),n.d(r,"setEditingSchemaId",(function(){return je})),n.d(r,"setEditorTab",(function(){return Ee})),n.d(r,"setTemplateTab",(function(){return Te})),n.d(r,"updateEditSchemas",(function(){return Se})),n.d(r,"updateSchemas",(function(){return Ie})),n.d(r,"updateEditSchema",(function(){return De})),n.d(r,"saveSchema",(function(){return Ce})),n.d(r,"deleteSchema",(function(){return Pe})),n.d(r,"saveTemplate",(function(){return xe}));var a={};n.r(a),n.d(a,"appData",(function(){return Le})),n.d(a,"appUi",(function(){return Be}));var i={};n.r(i),n.d(i,"getAppData",(function(){return Ve})),n.d(i,"getDirtyMetadata",(function(){return We})),n.d(i,"getAnalysisScore",(function(){return Ye})),n.d(i,"getKeywords",(function(){return qe})),n.d(i,"getPillarContent",(function(){return $e})),n.d(i,"getRobots",(function(){return Ze})),n.d(i,"getAdvancedRobots",(function(){return Je})),n.d(i,"getCanonicalUrl",(function(){return Qe})),n.d(i,"getBreadcrumbTitle",(function(){return Xe})),n.d(i,"getRichSnippets",(function(){return et})),n.d(i,"getShowScoreFrontend",(function(){return tt})),n.d(i,"isLoaded",(function(){return nt})),n.d(i,"getSelectedKeyword",(function(){return rt})),n.d(i,"isRefreshing",(function(){return at})),n.d(i,"isPro",(function(){return it})),n.d(i,"getFacebookTitle",(function(){return ot})),n.d(i,"getFacebookDescription",(function(){return lt})),n.d(i,"getFacebookAuthor",(function(){return ct})),n.d(i,"getFacebookImageID",(function(){return st})),n.d(i,"getFacebookImage",(function(){return ut})),n.d(i,"getFacebookHasOverlay",(function(){return pt})),n.d(i,"getFacebookImageOverlay",(function(){return mt})),n.d(i,"getPostID",(function(){return dt})),n.d(i,"getTitle",(function(){return ht})),n.d(i,"getPermalink",(function(){return ft})),n.d(i,"getDescription",(function(){return bt})),n.d(i,"getFeaturedImage",(function(){return gt})),n.d(i,"getFeaturedImageHtml",(function(){return wt})),n.d(i,"getPrimaryTermID",(function(){return yt})),n.d(i,"getRedirectionID",(function(){return vt})),n.d(i,"getRedirectionType",(function(){return kt})),n.d(i,"getRedirectionUrl",(function(){return Ot})),n.d(i,"getRedirectionItem",(function(){return _t})),n.d(i,"hasRedirect",(function(){return jt})),n.d(i,"getSerpTitle",(function(){return Tt})),n.d(i,"getSerpDescription",(function(){return St})),n.d(i,"isSnippetEditorOpen",(function(){return It})),n.d(i,"getSnippetPreviewType",(function(){return Dt})),n.d(i,"isSchemaEditorOpen",(function(){return Ct})),n.d(i,"isSchemaTemplatesOpen",(function(){return Pt})),n.d(i,"getSchemas",(function(){return xt})),n.d(i,"getEditSchemas",(function(){return Nt})),n.d(i,"getEditingSchema",(function(){return At})),n.d(i,"getPreviewSchema",(function(){return Rt})),n.d(i,"getEditorTab",(function(){return Mt})),n.d(i,"getTemplateTab",(function(){return Ft})),n.d(i,"getTwitterUseFacebook",(function(){return Ut})),n.d(i,"getTwitterCardType",(function(){return Lt})),n.d(i,"getTwitterTitle",(function(){return Ht})),n.d(i,"getTwitterDescription",(function(){return zt})),n.d(i,"getTwitterAuthor",(function(){return Gt})),n.d(i,"getTwitterImageID",(function(){return Kt})),n.d(i,"getTwitterImage",(function(){return Bt})),n.d(i,"getTwitterHasOverlay",(function(){return Vt})),n.d(i,"getTwitterImageOverlay",(function(){return Wt})),n.d(i,"getTwitterAppDescription",(function(){return Yt})),n.d(i,"getTwitterAppIphoneID",(function(){return qt})),n.d(i,"getTwitterAppIphoneName",(function(){return $t})),n.d(i,"getTwitterAppIphoneUrl",(function(){return Zt})),n.d(i,"getTwitterAppIpadID",(function(){return Jt})),n.d(i,"getTwitterAppIpadName",(function(){return Qt})),n.d(i,"getTwitterAppIpadUrl",(function(){return Xt})),n.d(i,"getTwitterAppGoogleplayID",(function(){return en})),n.d(i,"getTwitterAppGoogleplayName",(function(){return tn})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return nn})),n.d(i,"getTwitterAppCountry",(function(){return rn})),n.d(i,"getTwitterPlayerUrl",(function(){return an})),n.d(i,"getTwitterPlayerSize",(function(){return on})),n.d(i,"getTwitterPlayerStream",(function(){return ln})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return cn}));var o=n(4),l=n(9),c=n(6);function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(c.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(c.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function u(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return l.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function m(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function d(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function f(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function g(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function w(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return s("dirtyMetadata",{})}function v(e){return s("facebookTitle",e,"rank_math_facebook_title")}function k(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function j(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function E(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function S(e){return s("permalink",e,"permalink")}function I(e){return s("title",e,"rank_math_title")}function D(e){return s("description",e,"rank_math_description")}function C(e){return s("featuredImage",e)}function P(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function x(e,t){return s(e,t)}function N(e){return u("redirectionItem",e)}function A(){return u("redirectionItem",{})}function R(e){return u("hasRedirect",e)}var M=n(25);function F(e){return e=l.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),u("serpTitle",e)}function U(e){return e=l.a.swap(Object(M.a)(e)),rankMathEditor.refresh("description"),u("serpDescription",e)}function L(e){return u("isSnippetEditorOpen",e)}function H(e){return u("snippetPreviewType",e)}function z(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function G(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function K(e){return s("twitterTitle",e,"rank_math_twitter_title")}function B(e){return s("twitterDescription",e,"rank_math_twitter_description")}function V(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function W(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function Y(e){return s("twitterImage",e,"rank_math_twitter_image")}function q(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function $(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function Z(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function J(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function Q(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function X(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function ee(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function te(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function ne(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function re(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ae(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function ie(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function oe(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function le(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function ce(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function se(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function ue(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function pe(e){return u("isLoaded",e)}function me(e){return u("selectedKeyword",e)}function de(){return u("refreshResults",Date.now())}function he(){return u("isPro",!0)}var fe=n(1),be=n(0),ge=n(16),we=n.n(ge);function ye(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 ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e){return u("isSchemaEditorOpen",e)}function _e(e){return u("isSchemaTemplatesOpen",e)}function je(e){return u("editingSchemaId",e)}function Ee(e){return u("editorTab",e)}function Te(e){return u("templateTab",e)}function Se(e){return u("editSchemas",e)}function Ie(e){return s("schemas",e)}function De(e,t){var n=ve({},Object(o.select)("rank-math").getEditSchemas());return n[e]=t,u("editSchemas",n)}function Ce(e,t){var n=ve({},Object(o.select)("rank-math").getSchemas());return n[e]=t,s("schemas",n)}function Pe(e){var t=ve({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function xe(e,t,n){return we()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(fe.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(be.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Ne(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 Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=rankMath.assessor.serpData,Fe=rankMath.assessor.hasRedirection,Ue={postID:null,title:Me.title?Me.title:Me.titleTemplate,description:Me.description,keywords:Me.focusKeywords,pillarContent:Me.pillarContent,featuredImage:"",permalink:!1,primaryTerm:Me.primaryTerm,robots:Me.robots,advancedRobots:Me.advancedRobots,canonicalUrl:Me.canonicalUrl,breadcrumbTitle:Me.breadcrumbTitle,showScoreFrontend:Me.showScoreFrontend,redirectionID:Fe?Object(fe.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:Fe?Object(fe.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:Fe?Object(fe.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:Me.facebookTitle,facebookImage:Me.facebookImage,facebookImageID:Me.facebookImageID,facebookAuthor:Me.facebookAuthor,facebookDescription:Me.facebookDescription,facebookHasOverlay:Me.facebookHasOverlay,facebookImageOverlay:Me.facebookImageOverlay,twitterTitle:Me.twitterTitle,twitterImage:Me.twitterImage,twitterAuthor:Me.twitterAuthor,twitterImageID:Me.twitterImageID,twitterCardType:Me.twitterCardType,twitterUseFacebook:Me.twitterUseFacebook,twitterDescription:Me.twitterDescription,twitterHasOverlay:Me.twitterHasOverlay,twitterImageOverlay:Me.twitterImageOverlay,twitterPlayerUrl:Me.twitterPlayerUrl,twitterPlayerSize:Me.twitterPlayerSize,twitterPlayerStream:Me.twitterPlayerStream,twitterPlayerStreamCtype:Me.twitterPlayerStreamCtype,twitterAppDescription:Me.twitterAppDescription,twitterAppIphoneName:Me.twitterAppIphoneName,twitterAppIphoneID:Me.twitterAppIphoneID,twitterAppIphoneUrl:Me.twitterAppIphoneUrl,twitterAppIpadName:Me.twitterAppIpadName,twitterAppIpadID:Me.twitterAppIpadID,twitterAppIpadUrl:Me.twitterAppIpadUrl,twitterAppGoogleplayName:Me.twitterAppGoogleplayName,twitterAppGoogleplayID:Me.twitterAppGoogleplayID,twitterAppGoogleplayUrl:Me.twitterAppGoogleplayUrl,twitterAppCountry:Me.twitterAppCountry,schemas:Object(fe.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function Le(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue,n=arguments.length>1?arguments[1]:void 0,r=Ae({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Ae(Ae({},t),{},{dirtyMetadata:n.value}):Ae(Ae({},t),{},(Re(e={},n.key,n.value),Re(e,"dirtyMetadata",r),e)):t}function He(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){Ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(fe.isEmpty)(Object(fe.get)(rankMath.assessor,"redirection.id",""))||!Object(fe.isEmpty)(Object(fe.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1};function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ke,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?ze(ze({},e),{},Ge({},t.key,t.value)):e}function Ve(e){return e.appData}function We(e){return e.appData.dirtyMetadata}function Ye(e){return e.appData.score}function qe(e){return e.appData.keywords}function $e(e){return e.appData.pillarContent}function Ze(e){return e.appData.robots}function Je(e){return e.appData.advancedRobots}function Qe(e){return e.appData.canonicalUrl}function Xe(e){return e.appData.breadcrumbTitle}function et(e){return"todo"}function tt(e){return e.appData.showScoreFrontend}function nt(e){return e.appUi.isLoaded}function rt(e){return e.appUi.selectedKeyword}function at(e){return e.appUi.refreshResults}function it(e){return e.appUi.isPro}function ot(e){return e.appData.facebookTitle}function lt(e){return e.appData.facebookDescription}function ct(e){return e.appData.facebookAuthor}function st(e){return e.appData.facebookImageID}function ut(e){return e.appData.facebookImage}function pt(e){return e.appData.facebookHasOverlay}function mt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function dt(e){return e.appData.postID}function ht(e){return e.appData.title}function ft(e){return e.appData.permalink}function bt(e){return e.appData.description}function gt(e){return e.appData.featuredImage}function wt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function yt(e){return e.appData.primaryTerm}function vt(e){return e.appData.redirectionID}function kt(e){return e.appData.redirectionType}function Ot(e){return e.appData.redirectionUrl}function _t(e){return e.appUi.redirectionItem}function jt(e){return e.appUi.hasRedirect}var Et=n(14);function Tt(e){return Object(Et.a)(e.appUi.serpTitle)}function St(e){return e.appUi.serpDescription}function It(e){return e.appUi.isSnippetEditorOpen}function Dt(e){return e.appUi.snippetPreviewType}function Ct(e){return e.appUi.isSchemaEditorOpen}function Pt(e){return e.appUi.isSchemaTemplatesOpen}function xt(e){return e.appData.schemas}function Nt(e){return e.appUi.editSchemas}function At(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Rt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Mt(e){return e.appUi.editorTab}function Ft(e){return e.appUi.templateTab}function Ut(e){return e.appData.twitterUseFacebook}function Lt(e){return e.appData.twitterCardType}function Ht(e){return e.appData.twitterTitle}function zt(e){return e.appData.twitterDescription}function Gt(e){return e.appData.twitterAuthor}function Kt(e){return e.appData.twitterImageID}function Bt(e){return e.appData.twitterImage}function Vt(e){return e.appData.twitterHasOverlay}function Wt(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function Yt(e){return e.appData.twitterAppDescription}function qt(e){return e.appData.twitterAppIphoneID}function $t(e){return e.appData.twitterAppIphoneName}function Zt(e){return e.appData.twitterAppIphoneUrl}function Jt(e){return e.appData.twitterAppIpadID}function Qt(e){return e.appData.twitterAppIpadName}function Xt(e){return e.appData.twitterAppIpadUrl}function en(e){return e.appData.twitterAppGoogleplayID}function tn(e){return e.appData.twitterAppGoogleplayName}function nn(e){return e.appData.twitterAppGoogleplayUrl}function rn(e){return e.appData.twitterAppCountry}function an(e){return e.appData.twitterPlayerUrl}function on(e){return e.appData.twitterPlayerSize}function ln(e){return e.appData.twitterPlayerStream}function cn(e){return e.appData.twitterPlayerStreamCtype}var sn=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function un(){return sn}},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return""===e||Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "})).replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"}))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(2),a=n.n(r),i=n(8),o=n(1),l=n(6),c=n(9),s=n(14),u=function(e,t){return e=(e=i.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(o.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,r=function(e){if(Object(o.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(o.filter)(i.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==a.a.trim(e)}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(o.filter)(t,(function(e){return Object(o.includes)(e.toLowerCase(),n)}));if(0<r.length)return u(r[0],160)}return u(t[0],160)}(Object(s.a)(t.content)),p=Object(o.isUndefined)(n)||Object(o.isEmpty)(n)?r:n;if(c.a.setVariable("excerpt",p),c.a.setVariable("seo_description",p),""!==(e=Object(s.a)(Object(l.applyFilters)("rankMath/description",e))))return i.Helpers.cleanText(e);if(!Object(o.isUndefined)(n)&&!Object(o.isEmpty)(n))return i.Helpers.cleanText(n);var m=rankMath.assessor.serpData.descriptionTemplate;return Object(o.isUndefined)(m)||""===m?r:i.Helpers.cleanText(m)}},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(1),a=n(14);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function l(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);c=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,c,t),isInvalid:o(n,t),isInvalidWidth:!!s&&l(c,t),count:n+" / "+t.max,pixelWidth:s?c+"px / "+t.pixelWidth+"px":""}}},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},,function(e,t,n){"use strict";var r=n(4),a=n(20);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},,function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},a=l(n(34)),i=l(n(42)),o=l(n(45));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},,,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),l=n(10),c=n.n(l),s=n(1),u=n(7),p=n(3);function m(e){return(m="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})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var O=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=k(e,["tabId","onClick","children","selected"]);return wp.element.createElement(p.Button,v({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(i,e);var t,n,r,a=g(i);function i(){var e;h(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,u=void 0===l?"horizontal":l,m=n.tabs,h=Object(s.find)(m,{name:t}),f=o+"-"+h.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:c()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),h&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(h)))}}])&&f(t.prototype,n),r&&f(t,r),i}(o.Component),j=Object(u.withInstanceId)(_),E=n(27),T=function(e){var t=Object(E.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:c()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},S=n(30),I=n(36),D=n.n(I),C=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),D()({mixedString:r,components:n})};function P(e){return(P="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})(e)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return R(this,n)}}function R(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(l,e);var t,n,a,i=A(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(M(t)),t}return t=l,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(S.decodeEntities)(Object(r.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(C,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&x(t.prototype,n),a&&x(t,a),l}(o.Component),L=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(T,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(U,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),H=n(8),z=n(11),G=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(H.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(H.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(T,{source:Object(z.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(z.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),K=n(14),B=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(T,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(K.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(U,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),V=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=c()("button button-secondary button-small",{active:"desktop"===t}),a=c()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),W=n(32),Y=n(19),q=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},$=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return Object(s.includes)(["Book","Course","Product","Recipe","Software"],e["@type"])}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},q(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},q(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))})),Z=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},J=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return Object(s.includes)(["Event"],e["@type"])}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},Z(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},Z(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,l=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=c()("serp-preview",(Q(t={"expanded-preview":""!==l},"".concat(l,"-preview"),""!==l&&f),Q(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(W.a,null)," ",f&&wp.element.createElement(V,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,H.Helpers.sanitizeText(n),60)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object(Y.a)(g,H.Helpers.sanitizeText(Object(z.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement($,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,H.Helpers.sanitizeText(i),160)}})),wp.element.createElement(J,null)),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),ee=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(X,{showScore:!1,showDevices:!0}),wp.element.createElement(L,null),wp.element.createElement(G,null),wp.element.createElement(B,null))})),te=n(9),ne=function(e){var t=c()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?te.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?te.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},re=n(12),ae=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(re.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ie(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function oe(){return(oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ne,oe({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(ae,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ie(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),ce=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),se=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ne,ue({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(ae,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ie(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(se,null),"app"===e.cardType&&wp.element.createElement(ce,null))})),me=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:le,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:pe,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},de=n(2),he=n.n(de);function fe(e){return(fe="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})(e)}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ke(e);if(t){var a=ke(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ye(this,n)}}function ye(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?ve(e):t}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ge(e,t)}(l,e);var t,n,a,i=we(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this))._handleRef=e._handleRef.bind(ve(e)),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=he()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=he()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(C,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){he.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=he()(this.component);e.animate({opacity:.01},1500,(function(){var t=he()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&be(t.prototype,n),a&&be(t,a),l}(o.Component),_e=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),je=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,l=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:ee},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:me}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&l.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:Oe}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),wp.element.createElement(_e,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:l},(function(e){return Object(o.createElement)(e.view)}))))})),Ee=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(je,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Te=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=c()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Se=n(29);function Ie(e){return(Ie="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})(e)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ae(e);if(t){var a=Ae(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ne(this,n)}}function Ne(e,t){return!t||"object"!==Ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pe(e,t)}(l,e);var t,n,a,i=xe(l);function l(){return De(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=c()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Se.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Te,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Ce(t.prototype,n),a&&Ce(t,a),l}(o.Component),Me=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Re),Fe=n(22),Ue=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),Le=n(28),He=n.n(Le);function ze(e){return(ze="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})(e)}function Ge(){return(Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var a=qe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return We(this,n)}}function We(e,t){return!t||"object"!==ze(t)&&"function"!=typeof t?Ye(e):t}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(i,e);var t,n,r,a=Ve(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(Ye(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new He.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",Ge({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",Ge({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&Ke(t.prototype,n),r&&Ke(t,r),i}(o.Component);function Ze(e){return(Ze="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})(e)}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qe(e,t){return(Qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nt(e);if(t){var a=nt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return et(this,n)}}function et(e,t){return!t||"object"!==Ze(t)&&"function"!=typeof t?tt(e):t}function tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qe(e,t)}(l,e);var t,n,a,i=Xe(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(tt(t)),window.rankMathEditor.focusKeywordField=tt(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement($e,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(H.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=he.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=he.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=he()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Je(t.prototype,n),a&&Je(t,a),l}(o.Component),at=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(rt),it=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(Te,null,wp.element.createElement(C,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement("a",{href:"https://rankmath.com/pricing/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Trends&utm_campaign=WP",title:Object(r.__)("Google Trends","rank-math"),target:"_blank",rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon}}),wp.element.createElement(Fe.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(at,null)),wp.element.createElement(Ue,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Te,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),ot=n(23),lt=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(X,{onClick:t}),wp.element.createElement(je,null),wp.element.createElement(ot.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(it,null),rankMath.canUser.analysis&&wp.element.createElement(Me,null))})),ct=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},st=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=ct(n,t,r),"index"===t&&(n=ct(n,"noindex",!r)),"noindex"===t&&(n=ct(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function ut(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 pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(pt(pt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(pt(pt({},t),{},mt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(Te,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ft=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function bt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},vt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gt({},t);return Object(s.defaults)(n,yt),{meta:t,isSnippet:"max-snippet"in t,isImage:"max-image-preview"in t,isVideo:"max-video-preview"in t,maxSnippet:n["max-snippet"],maxImage:n["max-image-preview"],maxVideo:n["max-video-preview"]}})),Object(a.withDispatch)((function(e,t){var n=gt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=yt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),kt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),Ot=n(24),_t=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(st,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ft,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(dt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(kt,null)),wp.element.createElement(Ot.a.Slot,null,(function(e){return e.length>0?e:[]})))},jt=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(j,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:lt,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:_t,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:Ee,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:jt},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r=n(8),a=n(6),i=n(17),o=n(1),l=n(0),c=n(4);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new r.Analyzer({i18n:l,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,u;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:r.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e){var t=Object(i.a)().getState(),n=this.dataCollector.getData(),l=new r.Paper("",{locale:rankMath.localeFull});return l.setTitle(t.appUi.serpTitle),l.setPermalink(n.slug),l.setDescription(t.appUi.serpDescription),l.setUrl(n.permalink),l.setText(Object(a.applyFilters)("rank_math_content",n.content)),l.setKeyword(e),Object(o.isUndefined)(n.featuredImage)||(l.setThumbnail(n.featuredImage.source_url),l.setThumbnailAltText(r.Helpers.removeDiacritics(n.featuredImage.alt_text))),l}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),l=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,n){var a=e.getPaper(r.Helpers.removeDiacritics(t)),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();l.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(l).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&s(t.prototype,n),u&&s(t,u),e}(),p=n(26);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new u(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&m(t.prototype,n),o&&m(t,o),e}();t.a=d},,function(e,t,n){"use strict";var r=n(34),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(35),o=n(43),l=n(44),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(35);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},,,,,,,function(e,t){e.exports=wp.mediaUtils},function(e,t){e.exports=Marionette},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),i=n(4),o=n(52),l=n(6),c=n(40),s=n(1),u=n(16),p=n.n(u),m=n(11),d=n(9);function h(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToElementor(),elementor.once("preview:loaded",Object(s.debounce)(this.elementorPreviewLoaded.bind(this),5e3))}var t,n,r;return t=e,(n=[{key:"elementorPreviewLoaded",value:function(){var e=this;Object(l.addAction)("rank_math_data_changed","rank-math",(function(){e.activateSaveButton()})),Object(l.addAction)("rank_math_update_app_ui","rank-math",(function(t){"hasRedirect"===t&&e.activateSaveButton()}))}},{key:"activateSaveButton",value:function(){var e=Object(s.get)(elementor,"saver.footerSaver",!1);!1===e?elementor.channels.editor.trigger("status:change",!0):e.activateSaveButtons(document,!0)}},{key:"collectGutenbergData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return elementor.config.document.id}},{key:"getTitle",value:function(){return elementor.settings.page.model.get("post_title")}},{key:"getContent",value:function(){var e=[];return this.getContentArea().find(".elementor-widget-container").each((function(){e.push(a()(this).html())})),e.join("")}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;var e=elementor.$preview.contents().find('[data-elementor-type="'+ElementorConfig.document.type+'"]');return e.length<1?a()("<div />"):(this._contentArea=e,e)}},{key:"getExcerpt",value:function(){return elementor.settings.page.model.get("post_excerpt")}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":this.getSlug()?rankMath.permalinkFormat.replace(/%(postname|pagename)%/,this.getSlug()).trimRight("/"):""}},{key:"getSlug",value:function(){return Object(m.safeDecodeURIComponent)(Object(i.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){var e=elementor.settings.page.model.get("post_featured_image");if(!Object(s.isUndefined)(e)&&(e=""===e.id?0:parseInt(e.id),this.isValidMediaId(e))){var t=Object(i.select)("core").getMedia(e);if(!Object(s.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"subscribeToElementor",value:function(){Object(i.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=Object(s.debounce)(this.refresh,500),Object(i.subscribe)(this.subscriber),elementor.saver.on("before:save",this.savePost),elementor.saver.on("before:save",this.saveRedirection),elementor.saver.on("before:save",this.saveSchemas),elementor.settings.page.model.on("change",this.subscriber)}},{key:"refresh",value:function(){var e=f({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e),!Object(s.isEqual)(e,this._data)&&e.id&&elementor.channels.editor.trigger("status:change",!0)}},{key:"savePost",value:function(){var e=Object(i.select)("rank-math").getDirtyMetadata();Object(s.isEmpty)(e)||(p()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e}}).then((function(e){Object(s.isString)(e)&&Object(i.dispatch)("rank-math").updatePermalink(e)})),Object(i.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var e=Object(i.select)("rank-math").getRedirectionItem();Object(s.isEmpty)(e)||(e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink(),p()({method:"POST",path:"rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?Object(i.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===e.action&&Object(i.dispatch)("rank-math").updateRedirection("redirectionID",e.id)})),Object(i.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var e=Object(i.select)("rank-math").getSchemas();if(!Object(s.isEmpty)(e)&&!Object(s.isEqual)(e,Object(s.get)(rankMath,"schemas",{}))){var t=Object(i.select)("rank-math").getEditSchemas();p()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:e}}).then((function(n){if(!Object(s.isEmpty)(n)){var r=f({},e),a=f({},t);Object(s.map)(n,(function(e,t){r["schema-"+e]=f({},r[t]),a["schema-"+e]=f({},a[t]),delete r[t],delete a[t]})),Object(i.dispatch)("rank-math").updateSchemas(r),Object(i.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(s.isInteger)(e.id))return this.initialize?void Object(s.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(s.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(i.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(i.dispatch)("rank-math").updatePostID(e),Object(i.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){d.a.setVariable("title",e),d.a.setVariable("term",e),d.a.setVariable("author",e),Object(i.dispatch)("rank-math").updateSerpTitle(Object(i.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){d.a.setVariable("excerpt",e),d.a.setVariable("excerpt_only",e),d.a.setVariable("wc_shortdesc",e),d.a.setVariable("seo_description",e),Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(i.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(i.dispatch)("rank-math").updateSerpDescription(Object(i.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&g(t.prototype,n),r&&g(t,r),e}(),y=n(53),v=n.n(y),k=n(5),O=n(39),_=v.a.ItemView.extend({template:!1,id:"elementor-panel-rank-math",className:"rank-math-elementor rank-math-sidebar-panel",initialize:function(){a()("#elementor-panel-elements-search-area").hide()},onShow:function(){Object(k.render)(Object(k.createElement)(O.a),document.getElementById("elementor-panel-rank-math"))},onDestroy:function(){a()("#elementor-panel-elements-search-area").show()}}),j=function(e){return e["rank-math"]={region:e.global.region,view:_,options:{}},e};function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var T=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onThemeChange=this.onThemeChange.bind(this),elementor.settings.editorPreferences.model.on("change",this.onThemeChange)}var t,n,r;return t=e,(n=[{key:"onThemeChange",value:function(e){var t=Object(s.get)(e,"changed.ui_theme",!1);if(!1!==t){var n=this.getThemeLink();"light"!==t?n.attr("media","auto"===t?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):n.remove()}}},{key:"getThemeLink",value:function(){return this.link||this.createThemeLink(),this.link}},{key:"createThemeLink",value:function(){var e="rank-math-elementor-dark-css";this.link=a()("#"+e),this.link.length||(this.link=a()("<link>",{id:e,rel:"stylesheet",href:rankMath.elementorDarkMode}))}}])&&E(t.prototype,n),r&&E(t,r),e}(),S=n(23),I=n(24),D=n(22);function C(e){return(C="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})(e)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t,n){return(N="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=F(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var U=function(){return o.MediaUpload},L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(o,e);var t,n,r,a=R(o);function o(){return P(this,o),a.apply(this,arguments)}return t=o,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),Object(l.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",U),N(F(o.prototype),"setup",this).call(this,e)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=S.a,this.RankMathAfterFocusKeyword=D.a,this.RankMathAdvancedTab=I.a,this.slots={AfterEditor:S.a,AfterFocusKeyword:D.a,AdvancedTab:I.a}}},{key:"updatePermalink",value:function(e){Object(i.dispatch)("rank-math").updatePermalink(e)}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(i.dispatch)("rank-math").updatePermalink(e)}}])&&x(t.prototype,n),r&&x(t,r),o}(c.a);a()((function(){window.rankMathEditor=new L,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new w),new T,elementor.once("preview:loaded",(function(){$e.components.get("panel/elements").addTab("rank-math",{title:"SEO"}),Object(i.dispatch)("rank-math").refreshResults()}))})),a()(window).on("elementor:init",(function(){elementor.hooks.addFilter("panel/elements/regionViews",j)}))}]);
|
assets/admin/js/feedback.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=58)}({2:function(e,t){e.exports=jQuery},58:function(e,t,n){"use strict";n.r(t);var r,o=n(2);(r=n.n(o).a)((function(){var e=r("#rank-math-feedback-form"),t=e.find(".rank-math-feedback-options-wrapper"),n=e.find(".rank-math-feedback-input-wrapper"),o=e.find("form"),a=r("#the-list").find('[data-slug="seo-by-rank-math"] span.deactivate a');a.on("click",(function(t){t.preventDefault(),e.fadeIn()})),e.on("change","input:radio",(function(){n.removeClass("checked"),r(this).parent().toggleClass("checked"),r(this).parent().find(".regular-text").length?t.addClass("selected"):t.removeClass("selected"),o.find(".button-submit").removeAttr("disabled")})),e.on("click",".button-skip",(function(){window.location.href=a.attr("href")})),e.on("click",".button-close",(function(t){t.preventDefault(),e.fadeOut()})),e.on("click",(function(e){"rank-math-feedback-form"===e.target.id&&r(this).find(".button-close").trigger("click")})),o.on("submit",(function(e){e.preventDefault(),o.find(".button-submit").text("").addClass("loading"),r.ajax({url:window.ajaxurl,type:"POST",dataType:"json",data:o.serialize()}).done((function(){window.location.href=a.attr("href")}))}))}))}});
|
assets/admin/js/glue-custom-fields.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=55)}({1:function(e,t){e.exports=lodash},2:function(e,t){e.exports=jQuery},55:function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(1),a=n(6);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fields=[],Object(a.addAction)("rank_math_loaded","rank-math",this.init.bind(this))}var t,n,r;return t=e,(n=[{key:"init",value:function(){this.getFields(),this.events()}},{key:"getFields",value:function(){var e=this;i()("#the-list > tr:visible").each((function(t,n){var r=i()("#"+n.id+"-key").val();-1!==i.a.inArray(r,rankMath.analyzeFields)&&e.fields.push("#"+n.id+"-value")}))}},{key:"events",value:function(){Object(a.addFilter)("rank_math_content","rank-math",this.getContent.bind(this)),i()(this.fields).each((function(e,t){i()(t).on("keyup change",Object(o.debounce)((function(){rankMathEditor.refresh("content")}),500))}))}},{key:"getContent",value:function(e){return i()(this.fields).each((function(t,n){e+=i()(n).val()})),e}}])&&u(t.prototype,n),r&&u(t,r),e}())},6:function(e,t){e.exports=wp.hooks}});
|
assets/admin/js/gutenberg-formats.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=79)}({0:function(t,e){t.exports=wp.i18n},1:function(t,e){t.exports=lodash},11:function(t,e){t.exports=wp.url},12:function(t,e){t.exports=wp.blockEditor},13:function(t,e){t.exports=wp.richText},29:function(t,e){t.exports=wp.htmlEntities},3:function(t,e){t.exports=wp.components},32:function(t,e){t.exports=wp.keycodes},4:function(t,e){t.exports=wp.data},5:function(t,e){t.exports=wp.element},53:function(t,e){t.exports=wp.dom},79:function(t,e,n){"use strict";n.r(e);var r=n(13),o=n(0),i=n(11),a=n(29),c=n(1),s=n(4),u=n(5),l=n(3),p=n(12),f=n(53),b=n(32);function d(t){if(!t)return!1;var e=t.trim();if(!e)return!1;if(/^\S+:/.test(e)){var n=Object(i.getProtocol)(e);if(!Object(i.isValidProtocol)(n))return!1;if(Object(c.startsWith)(n,"http")&&!/^https?:\/\/[^\/\s]/i.test(e))return!1;var r=Object(i.getAuthority)(e);if(!Object(i.isValidAuthority)(r))return!1;var o=Object(i.getPath)(e);if(o&&!Object(i.isValidPath)(o))return!1;var a=Object(i.getQueryString)(e);if(a&&!Object(i.isValidQueryString)(a))return!1;var s=Object(i.getFragment)(e);if(s&&!Object(i.isValidFragment)(s))return!1}return!(Object(c.startsWith)(e,"#")&&!Object(i.isValidFragment)(e))}function h(t){var e=t.url,n=t.opensInNewWindow,r=t.noFollow,i=t.sponsored,a=t.text,c={type:"rankmath/link",attributes:{url:e}},s=[];if(n){var u=Object(o.sprintf)(Object(o.__)("%s (opens in a new tab)","rank-math"),a);c.attributes.target="_blank",c.attributes["aria-label"]=u,s.push("noreferrer noopener")}return r&&s.push("nofollow"),i&&s.push("sponsored"),s.length>0&&(c.attributes.rel=s.join(" ")),c}function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?j(t):e}function j(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(){return(S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function _(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var L=function(t){return t.stopPropagation()};function F(t,e){return t.addingLink||e.editLink}var P=function(t){var e=t.isActive,n=t.addingLink,r=t.value,o=_(t,["isActive","addingLink","value"]),i=Object(u.useMemo)((function(){var t=window.getSelection();if(t.rangeCount){var e=t.getRangeAt(0);if(n)return Object(f.getRectangleFromRange)(e);var r=e.startContainer;for(r=r.nextElementSibling||r;r.nodeType!==window.Node.ELEMENT_NODE;)r=r.parentNode;var o=r.closest("a");return o?o.getBoundingClientRect():void 0}}),[e,n,r.start,r.end]);return i?wp.element.createElement(p.URLPopover,S({anchorRect:i},o)):null},x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(s,t);var e,n,a,c=g(s);function s(){var t;return y(this,s),(t=c.apply(this,arguments)).editLink=t.editLink.bind(j(t)),t.submitLink=t.submitLink.bind(j(t)),t.onKeyDown=t.onKeyDown.bind(j(t)),t.onChangeInputValue=t.onChangeInputValue.bind(j(t)),t.setLinkTarget=t.setLinkTarget.bind(j(t)),t.setNoFollow=t.setNoFollow.bind(j(t)),t.setSponsored=t.setSponsored.bind(j(t)),t.onFocusOutside=t.onFocusOutside.bind(j(t)),t.resetState=t.resetState.bind(j(t)),t.autocompleteRef=Object(u.createRef)(),t.state={opensInNewWindow:!1,noFollow:!1,sponsored:!1,inputValue:""},t}return e=s,a=[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeAttributes,r=n.url,o=n.target,i=n.rel,a="_blank"===o;if(!F(t,e)){var c={};if(r!==e.inputValue&&(c.inputValue=r),a!==e.opensInNewWindow&&(c.opensInNewWindow=a),"string"==typeof i){var s=i.split(" ").includes("nofollow"),u=i.split(" ").includes("sponsored");s!==e.noFollow&&(c.noFollow=s),u!==e.sponsored&&(c.sponsored=u)}return Object.keys(c).length?c:null}return null}}],(n=[{key:"onKeyDown",value:function(t){[b.LEFT,b.DOWN,b.RIGHT,b.UP,b.BACKSPACE,b.ENTER].indexOf(t.keyCode)>-1&&t.stopPropagation()}},{key:"onChangeInputValue",value:function(t){this.setState({inputValue:t})}},{key:"setLinkTarget",value:function(t){var e=this.props,n=e.activeAttributes.url,o=void 0===n?"":n,i=e.value,a=e.onChange;if(this.setState({opensInNewWindow:t}),!F(this.props,this.state)){var c=Object(r.getTextContent)(Object(r.slice)(i));a(Object(r.applyFormat)(i,h({url:o,opensInNewWindow:t,noFollow:this.state.noFollow,sponsored:this.state.sponsored,text:c})))}}},{key:"setNoFollow",value:function(t){var e=this.props,n=e.activeAttributes.url,o=void 0===n?"":n,i=e.value,a=e.onChange;if(this.setState({noFollow:t}),!F(this.props,this.state)){var c=Object(r.getTextContent)(Object(r.slice)(i));a(Object(r.applyFormat)(i,h({url:o,opensInNewWindow:this.state.opensInNewWindow,noFollow:t,sponsored:this.state.sponsored,text:c})))}}},{key:"setSponsored",value:function(t){var e=this.props,n=e.activeAttributes.url,o=void 0===n?"":n,i=e.value,a=e.onChange;if(this.setState({sponsored:t}),!F(this.props,this.state)){var c=Object(r.getTextContent)(Object(r.slice)(i));a(Object(r.applyFormat)(i,h({url:o,opensInNewWindow:this.state.opensInNewWindow,noFollow:this.state.noFollow,sponsored:t,text:c})))}}},{key:"editLink",value:function(t){this.setState({editLink:!0}),t.preventDefault()}},{key:"submitLink",value:function(t){var e=this.props,n=e.isActive,a=e.value,c=e.onChange,s=e.speak,u=this.state,l=u.inputValue,p=u.opensInNewWindow,f=u.noFollow,b=u.sponsored,m=Object(i.prependHTTP)(l),y=h({url:m,opensInNewWindow:p,noFollow:f,sponsored:b,text:Object(r.getTextContent)(Object(r.slice)(a))});if(t.preventDefault(),Object(r.isCollapsed)(a)&&!n){var v=Object(r.applyFormat)(Object(r.create)({text:m}),y,0,m.length);c(Object(r.insert)(a,v))}else c(Object(r.applyFormat)(a,y));this.resetState(),d(m)?s(n?Object(o.__)("Link edited.","rank-math"):Object(o.__)("Link inserted.","rank-math"),"assertive"):s(Object(o.__)("Warning: the link has been inserted but may have errors. Please test it.","rank-math"),"assertive")}},{key:"onFocusOutside",value:function(){var t=this.autocompleteRef.current;t&&t.contains(document.activeElement)||this.resetState()}},{key:"resetState",value:function(){this.props.stopAddingLink(),this.setState({editLink:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.isActive,r=e.activeAttributes.url,a=e.addingLink,c=e.value;if(!n&&!a)return null;var s=this.state,f=s.inputValue,b=s.opensInNewWindow,h=s.noFollow,m=s.sponsored,y=F(this.props,this.state);return wp.element.createElement(P,{value:c,isActive:n,addingLink:a,onFocusOutside:this.onFocusOutside,onClose:this.resetState,focusOnMount:!!y&&"firstElement",renderSettings:function(){return wp.element.createElement(u.Fragment,null,wp.element.createElement(l.ToggleControl,{label:Object(o.__)("Open in New Tab","rank-math"),checked:b,onChange:t.setLinkTarget}),wp.element.createElement(l.ToggleControl,{label:Object(o.__)("Nofollow","rank-math"),checked:h,onChange:t.setNoFollow}),wp.element.createElement(l.ToggleControl,{label:Object(o.__)("Sponsored","rank-math"),checked:m,onChange:t.setSponsored}))}},y?wp.element.createElement(p.URLPopover.LinkEditor,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",value:f,onChangeInputValue:this.onChangeInputValue,onKeyDown:this.onKeyDown,onKeyPress:L,onSubmit:this.submitLink,autocompleteRef:this.autocompleteRef}):wp.element.createElement(p.URLPopover.LinkViewer,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:L,url:r,onEditLinkClick:this.editLink,linkClassName:d(Object(i.prependHTTP)(r))?void 0:"has-invalid-link"}))}}])&&v(e.prototype,n),a&&v(e,a),s}(u.Component),C=Object(l.withSpokenMessages)(x);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=U(t);if(e){var o=U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}function W(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?M(t):e}function M(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function U(t){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var K="rankmath/link",B=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}(f,t);var e,n,a,l=V(f);function f(){var t;return N(this,f),(t=l.apply(this,arguments)).state={addingLink:!1},t.addLink=t.addLink.bind(M(t)),t.stopAddingLink=t.stopAddingLink.bind(M(t)),t.onRemoveFormat=t.onRemoveFormat.bind(M(t)),t}return e=f,(n=[{key:"componentDidMount",value:function(){var t=(0,Object(s.select)("core/rich-text").getFormatType)("core/link");t&&(t.edit=null,Object(s.dispatch)("core/rich-text").addFormatTypes(t))}},{key:"addLink",value:function(){var t=this.props,e=t.value,n=t.onChange,o=Object(r.getTextContent)(Object(r.slice)(e));o&&Object(i.isURL)(o)?n(Object(r.applyFormat)(e,{type:K,attributes:{url:o}})):o&&Object(i.isEmail)(o)?n(Object(r.applyFormat)(e,{type:K,attributes:{url:"mailto:".concat(o)}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1})}},{key:"onRemoveFormat",value:function(){var t=this.props,e=t.value,n=t.onChange,i=t.speak,a=e;Object(c.map)(["core/link","rankmath/link"],(function(t){a=Object(r.removeFormat)(a,t)})),n(R({},a)),i(Object(o.__)("Link removed.","rank-math"),"assertive")}},{key:"render",value:function(){var t=this.props,e=t.activeAttributes,n=t.onChange,i=this.props,a=i.isActive,s=i.value,l=Object(r.getActiveFormat)(s,"core/link");if(l){var f=Object(c.get)(l,"unregisteredAttributes.rel",!1);l.type=K,f&&(l.attributes=Object.assign(l.attributes,{rel:f})),Object(c.isUndefined)(l.unregisteredAttributes)||(l.unregisteredAttributes.class="");var b=s;b=Object(r.applyFormat)(b,l),n(R({},b=Object(r.removeFormat)(b,"core/link"))),s=b,a=!0}return wp.element.createElement(u.Fragment,null,wp.element.createElement(p.RichTextShortcut,{type:"primary",character:"k",onUse:this.addLink}),wp.element.createElement(p.RichTextShortcut,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),a&&wp.element.createElement(p.RichTextToolbarButton,{name:"link",icon:"editor-unlink",title:Object(o.__)("Unlink","rank-math"),onClick:this.onRemoveFormat,isActive:a,shortcutType:"primaryShift",shortcutCharacter:"k"}),!a&&wp.element.createElement(p.RichTextToolbarButton,{name:"link",icon:"admin-links",title:Object(o.__)("Add Link","rank-math"),onClick:this.addLink,isActive:a,shortcutType:"primary",shortcutCharacter:"k"}),wp.element.createElement(C,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:a,activeAttributes:e,value:s,onChange:n}))}}])&&I(e.prototype,n),a&&I(e,a),f}(u.Component),H=Object(l.withSpokenMessages)(B),Q={name:"rankmath/link",title:Object(o.__)("Link","rank-math"),tagName:"a",className:"rank-math-link",attributes:{url:"href",target:"target",rel:"rel"},__unstablePasteRule:function(t,e){var n=e.html,o=e.plainText;if(Object(r.isCollapsed)(t))return t;var c=(n||o).replace(/<[^>]+>/g,"").trim();return Object(i.isURL)(c)?Object(r.applyFormat)(t,{type:"rankmath/link",attributes:{url:Object(a.decodeEntities)(c)}}):t},edit:H};function G(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}wp.domReady((function(){[Q].forEach((function(t){var e=t.name,n=G(t,["name"]);e&&Object(r.registerFormatType)(e,n)}))}))}});
|
1 |
+
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=80)}({0:function(t,e){t.exports=wp.i18n},1:function(t,e){t.exports=lodash},11:function(t,e){t.exports=wp.url},12:function(t,e){t.exports=wp.blockEditor},13:function(t,e){t.exports=wp.richText},3:function(t,e){t.exports=wp.components},30:function(t,e){t.exports=wp.htmlEntities},33:function(t,e){t.exports=wp.keycodes},4:function(t,e){t.exports=wp.data},5:function(t,e){t.exports=wp.element},54:function(t,e){t.exports=wp.dom},80:function(t,e,n){"use strict";n.r(e);var r=n(13),o=n(0),i=n(11),a=n(30),c=n(1),s=n(4),u=n(5),l=n(3),p=n(12),f=n(54),b=n(33);function d(t){if(!t)return!1;var e=t.trim();if(!e)return!1;if(/^\S+:/.test(e)){var n=Object(i.getProtocol)(e);if(!Object(i.isValidProtocol)(n))return!1;if(Object(c.startsWith)(n,"http")&&!/^https?:\/\/[^\/\s]/i.test(e))return!1;var r=Object(i.getAuthority)(e);if(!Object(i.isValidAuthority)(r))return!1;var o=Object(i.getPath)(e);if(o&&!Object(i.isValidPath)(o))return!1;var a=Object(i.getQueryString)(e);if(a&&!Object(i.isValidQueryString)(a))return!1;var s=Object(i.getFragment)(e);if(s&&!Object(i.isValidFragment)(s))return!1}return!(Object(c.startsWith)(e,"#")&&!Object(i.isValidFragment)(e))}function h(t){var e=t.url,n=t.opensInNewWindow,r=t.noFollow,i=t.sponsored,a=t.text,c={type:"rankmath/link",attributes:{url:e}},s=[];if(n){var u=Object(o.sprintf)(Object(o.__)("%s (opens in a new tab)","rank-math"),a);c.attributes.target="_blank",c.attributes["aria-label"]=u,s.push("noreferrer noopener")}return r&&s.push("nofollow"),i&&s.push("sponsored"),s.length>0&&(c.attributes.rel=s.join(" ")),c}function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?j(t):e}function j(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(){return(S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function _(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var L=function(t){return t.stopPropagation()};function F(t,e){return t.addingLink||e.editLink}var P=function(t){var e=t.isActive,n=t.addingLink,r=t.value,o=_(t,["isActive","addingLink","value"]),i=Object(u.useMemo)((function(){var t=window.getSelection();if(t.rangeCount){var e=t.getRangeAt(0);if(n)return Object(f.getRectangleFromRange)(e);var r=e.startContainer;for(r=r.nextElementSibling||r;r.nodeType!==window.Node.ELEMENT_NODE;)r=r.parentNode;var o=r.closest("a");return o?o.getBoundingClientRect():void 0}}),[e,n,r.start,r.end]);return i?wp.element.createElement(p.URLPopover,S({anchorRect:i},o)):null},x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(s,t);var e,n,a,c=g(s);function s(){var t;return y(this,s),(t=c.apply(this,arguments)).editLink=t.editLink.bind(j(t)),t.submitLink=t.submitLink.bind(j(t)),t.onKeyDown=t.onKeyDown.bind(j(t)),t.onChangeInputValue=t.onChangeInputValue.bind(j(t)),t.setLinkTarget=t.setLinkTarget.bind(j(t)),t.setNoFollow=t.setNoFollow.bind(j(t)),t.setSponsored=t.setSponsored.bind(j(t)),t.onFocusOutside=t.onFocusOutside.bind(j(t)),t.resetState=t.resetState.bind(j(t)),t.autocompleteRef=Object(u.createRef)(),t.state={opensInNewWindow:!1,noFollow:!1,sponsored:!1,inputValue:""},t}return e=s,a=[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeAttributes,r=n.url,o=n.target,i=n.rel,a="_blank"===o;if(!F(t,e)){var c={};if(r!==e.inputValue&&(c.inputValue=r),a!==e.opensInNewWindow&&(c.opensInNewWindow=a),"string"==typeof i){var s=i.split(" ").includes("nofollow"),u=i.split(" ").includes("sponsored");s!==e.noFollow&&(c.noFollow=s),u!==e.sponsored&&(c.sponsored=u)}return Object.keys(c).length?c:null}return null}}],(n=[{key:"onKeyDown",value:function(t){[b.LEFT,b.DOWN,b.RIGHT,b.UP,b.BACKSPACE,b.ENTER].indexOf(t.keyCode)>-1&&t.stopPropagation()}},{key:"onChangeInputValue",value:function(t){this.setState({inputValue:t})}},{key:"setLinkTarget",value:function(t){var e=this.props,n=e.activeAttributes.url,o=void 0===n?"":n,i=e.value,a=e.onChange;if(this.setState({opensInNewWindow:t}),!F(this.props,this.state)){var c=Object(r.getTextContent)(Object(r.slice)(i));a(Object(r.applyFormat)(i,h({url:o,opensInNewWindow:t,noFollow:this.state.noFollow,sponsored:this.state.sponsored,text:c})))}}},{key:"setNoFollow",value:function(t){var e=this.props,n=e.activeAttributes.url,o=void 0===n?"":n,i=e.value,a=e.onChange;if(this.setState({noFollow:t}),!F(this.props,this.state)){var c=Object(r.getTextContent)(Object(r.slice)(i));a(Object(r.applyFormat)(i,h({url:o,opensInNewWindow:this.state.opensInNewWindow,noFollow:t,sponsored:this.state.sponsored,text:c})))}}},{key:"setSponsored",value:function(t){var e=this.props,n=e.activeAttributes.url,o=void 0===n?"":n,i=e.value,a=e.onChange;if(this.setState({sponsored:t}),!F(this.props,this.state)){var c=Object(r.getTextContent)(Object(r.slice)(i));a(Object(r.applyFormat)(i,h({url:o,opensInNewWindow:this.state.opensInNewWindow,noFollow:this.state.noFollow,sponsored:t,text:c})))}}},{key:"editLink",value:function(t){this.setState({editLink:!0}),t.preventDefault()}},{key:"submitLink",value:function(t){var e=this.props,n=e.isActive,a=e.value,c=e.onChange,s=e.speak,u=this.state,l=u.inputValue,p=u.opensInNewWindow,f=u.noFollow,b=u.sponsored,m=Object(i.prependHTTP)(l),y=h({url:m,opensInNewWindow:p,noFollow:f,sponsored:b,text:Object(r.getTextContent)(Object(r.slice)(a))});if(t.preventDefault(),Object(r.isCollapsed)(a)&&!n){var v=Object(r.applyFormat)(Object(r.create)({text:m}),y,0,m.length);c(Object(r.insert)(a,v))}else c(Object(r.applyFormat)(a,y));this.resetState(),d(m)?s(n?Object(o.__)("Link edited.","rank-math"):Object(o.__)("Link inserted.","rank-math"),"assertive"):s(Object(o.__)("Warning: the link has been inserted but may have errors. Please test it.","rank-math"),"assertive")}},{key:"onFocusOutside",value:function(){var t=this.autocompleteRef.current;t&&t.contains(document.activeElement)||this.resetState()}},{key:"resetState",value:function(){this.props.stopAddingLink(),this.setState({editLink:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.isActive,r=e.activeAttributes.url,a=e.addingLink,c=e.value;if(!n&&!a)return null;var s=this.state,f=s.inputValue,b=s.opensInNewWindow,h=s.noFollow,m=s.sponsored,y=F(this.props,this.state);return wp.element.createElement(P,{value:c,isActive:n,addingLink:a,onFocusOutside:this.onFocusOutside,onClose:this.resetState,focusOnMount:!!y&&"firstElement",renderSettings:function(){return wp.element.createElement(u.Fragment,null,wp.element.createElement(l.ToggleControl,{label:Object(o.__)("Open in New Tab","rank-math"),checked:b,onChange:t.setLinkTarget}),wp.element.createElement(l.ToggleControl,{label:Object(o.__)("Nofollow","rank-math"),checked:h,onChange:t.setNoFollow}),wp.element.createElement(l.ToggleControl,{label:Object(o.__)("Sponsored","rank-math"),checked:m,onChange:t.setSponsored}))}},y?wp.element.createElement(p.URLPopover.LinkEditor,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",value:f,onChangeInputValue:this.onChangeInputValue,onKeyDown:this.onKeyDown,onKeyPress:L,onSubmit:this.submitLink,autocompleteRef:this.autocompleteRef}):wp.element.createElement(p.URLPopover.LinkViewer,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:L,url:r,onEditLinkClick:this.editLink,linkClassName:d(Object(i.prependHTTP)(r))?void 0:"has-invalid-link"}))}}])&&v(e.prototype,n),a&&v(e,a),s}(u.Component),C=Object(l.withSpokenMessages)(x);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=U(t);if(e){var o=U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}function W(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?M(t):e}function M(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function U(t){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var K="rankmath/link",B=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}(f,t);var e,n,a,l=V(f);function f(){var t;return N(this,f),(t=l.apply(this,arguments)).state={addingLink:!1},t.addLink=t.addLink.bind(M(t)),t.stopAddingLink=t.stopAddingLink.bind(M(t)),t.onRemoveFormat=t.onRemoveFormat.bind(M(t)),t}return e=f,(n=[{key:"componentDidMount",value:function(){var t=(0,Object(s.select)("core/rich-text").getFormatType)("core/link");t&&(t.edit=null,Object(s.dispatch)("core/rich-text").addFormatTypes(t))}},{key:"addLink",value:function(){var t=this.props,e=t.value,n=t.onChange,o=Object(r.getTextContent)(Object(r.slice)(e));o&&Object(i.isURL)(o)?n(Object(r.applyFormat)(e,{type:K,attributes:{url:o}})):o&&Object(i.isEmail)(o)?n(Object(r.applyFormat)(e,{type:K,attributes:{url:"mailto:".concat(o)}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1})}},{key:"onRemoveFormat",value:function(){var t=this.props,e=t.value,n=t.onChange,i=t.speak,a=e;Object(c.map)(["core/link","rankmath/link"],(function(t){a=Object(r.removeFormat)(a,t)})),n(R({},a)),i(Object(o.__)("Link removed.","rank-math"),"assertive")}},{key:"render",value:function(){var t=this.props,e=t.activeAttributes,n=t.onChange,i=this.props,a=i.isActive,s=i.value,l=Object(r.getActiveFormat)(s,"core/link");if(l){var f=Object(c.get)(l,"unregisteredAttributes.rel",!1);l.type=K,f&&(l.attributes=Object.assign(l.attributes,{rel:f})),Object(c.isUndefined)(l.unregisteredAttributes)||(l.unregisteredAttributes.class="");var b=s;b=Object(r.applyFormat)(b,l),n(R({},b=Object(r.removeFormat)(b,"core/link"))),s=b,a=!0}return wp.element.createElement(u.Fragment,null,wp.element.createElement(p.RichTextShortcut,{type:"primary",character:"k",onUse:this.addLink}),wp.element.createElement(p.RichTextShortcut,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),a&&wp.element.createElement(p.RichTextToolbarButton,{name:"link",icon:"editor-unlink",title:Object(o.__)("Unlink","rank-math"),onClick:this.onRemoveFormat,isActive:a,shortcutType:"primaryShift",shortcutCharacter:"k"}),!a&&wp.element.createElement(p.RichTextToolbarButton,{name:"link",icon:"admin-links",title:Object(o.__)("Add Link","rank-math"),onClick:this.addLink,isActive:a,shortcutType:"primary",shortcutCharacter:"k"}),wp.element.createElement(C,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:a,activeAttributes:e,value:s,onChange:n}))}}])&&I(e.prototype,n),a&&I(e,a),f}(u.Component),H=Object(l.withSpokenMessages)(B),Q={name:"rankmath/link",title:Object(o.__)("Link","rank-math"),tagName:"a",className:"rank-math-link",attributes:{url:"href",target:"target",rel:"rel"},__unstablePasteRule:function(t,e){var n=e.html,o=e.plainText;if(Object(r.isCollapsed)(t))return t;var c=(n||o).replace(/<[^>]+>/g,"").trim();return Object(i.isURL)(c)?Object(r.applyFormat)(t,{type:"rankmath/link",attributes:{url:Object(a.decodeEntities)(c)}}):t},edit:H};function G(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}wp.domReady((function(){[Q].forEach((function(t){var e=t.name,n=G(t,["name"]);e&&Object(r.registerFormatType)(e,n)}))}))}});
|
assets/admin/js/gutenberg-primary-term.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=81)}({0:function(e,t){e.exports=wp.i18n},1:function(e,t){e.exports=lodash},11:function(e,t){e.exports=wp.url},16:function(e,t){e.exports=wp.apiFetch},2:function(e,t){e.exports=jQuery},3:function(e,t){e.exports=wp.components},37:function(e,t,n){"use strict";var r=n(1),o=n(0),i=n(16),a=n.n(i),c=n(11),s=n(5),u=n(4),l=n(3);function f(e){return(f="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})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(f,e);var t,n,i,s=d(f);function f(){var e;return p(this,f),(e=s.apply(this,arguments)).onChange=e.onChange.bind(b(e)),e.state={loading:!0,availableTerms:[],selectedTerms:[]},e}return t=f,(n=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(r.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var n=Object(r.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(n))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(e){return!!this.state.availableTerms.find((function(t){return t.id===e}))}},{key:"updateSelectedTerms",value:function(e,t){this.setState({selectedTerms:this.filterSelectedTerms(e,t)})}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTermID;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=a()({path:Object(c.addQueryArgs)("/wp/v2/".concat(t.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){e.fetchRequest=null,e.setState({loading:!1,availableTerms:t,selectedTerms:e.filterSelectedTerms(t,e.props.selectedTermIds)})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"onChange",value:function(e){Object(u.dispatch)("rank-math").updatePrimaryTermID(e,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.selectedTermIds!==e.selectedTermIds||this.props.primaryTermID!==e.primaryTermID||this.state.selectedTerms!==t.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(l.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(l.SelectControl,{label:Object(o.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(e){return{value:e.id,label:Object(r.unescape)(e.name)}})),onChange:this.onChange})}}])&&m(t.prototype,n),i&&m(t,i),f}(s.Component);t.a=T},4:function(e,t){e.exports=wp.data},5:function(e,t){e.exports=wp.element},6:function(e,t){e.exports=wp.hooks},81:function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(6),a=n(5),c=n(3),s=n(4);function u(e){return(u="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})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,n,r,i=m(a);function a(){return l(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=parseInt(this.props.primaryTermID);e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"onChange",value:function(e){e=parseInt(e),rankMath.assessor.serpData.primaryTerm=e,o()("#rank_math_primary_"+this.props.taxonomy.slug).val(e),Object(s.dispatch)("core/editor").editPost({meta:{refreshMe:"refreshUI"}})}}])&&f(t.prototype,n),r&&f(t,r),a}(n(37).a),b=Object(s.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getEditedPostAttribute,i=r("meta"),a=e("core").getTaxonomy(n);return{taxonomy:a,meta:i,selectedTermIds:a?r(a.rest_base):[],primaryTermID:o()("#rank_math_primary_"+a.slug).val()}}))(h),v=function(e){var t=e.TermComponent;return function(e){return!1!==rankMath.assessor.primaryTaxonomy&&e.slug===rankMath.assessor.primaryTaxonomy.name}(e)?wp.element.createElement(a.Fragment,null,wp.element.createElement(t,e),wp.element.createElement(c.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(b,e))):wp.element.createElement(t,e)};function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var g=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object(i.addFilter)("editor.PostTaxonomyType","rank-math",(function(e){return function(t){return wp.element.createElement(v,T({TermComponent:e},t))}}))};o()(document).ready((function(){window.rankMathEditor=new g}))}});
|
assets/admin/js/gutenberg.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=77)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),a=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===i)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},,function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return""===e||Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "})).replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"}))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(2),a=n.n(r),i=n(8),o=n(1),l=n(6),c=n(9),s=n(14),u=function(e,t){return e=(e=i.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(o.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,r=function(e){if(Object(o.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(o.filter)(i.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==a.a.trim(e)}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(o.filter)(t,(function(e){return Object(o.includes)(e.toLowerCase(),n)}));if(0<r.length)return u(r[0],160)}return u(t[0],160)}(Object(s.a)(t.content)),p=Object(o.isUndefined)(n)||Object(o.isEmpty)(n)?r:n;if(c.a.setVariable("excerpt",p),c.a.setVariable("seo_description",p),""!==(e=Object(s.a)(Object(l.applyFilters)("rankMath/description",e))))return i.Helpers.cleanText(e);if(!Object(o.isUndefined)(n)&&!Object(o.isEmpty)(n))return i.Helpers.cleanText(n);var m=rankMath.assessor.serpData.descriptionTemplate;return Object(o.isUndefined)(m)||""===m?r:i.Helpers.cleanText(m)}},function(e,t,n){"use strict";var r=n(1),a=n(14);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function l(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);c=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,c,t),isInvalid:o(n,t),isInvalidWidth:!!s&&l(c,t),count:n+" / "+t.max,pixelWidth:s?c+"px / "+t.pixelWidth+"px":""}}},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},function(e,t,n){"use strict";var r=n(1);t.a=function(){return!(Object(r.isNil)(window.wp)||Object(r.isNil)(wp.data)||Object(r.isNil)(wp.data.select("core/editor"))||!Object(r.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},function(e,t,n){"use strict";var r=n(4),a=n(19);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},,function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},a=l(n(33)),i=l(n(41)),o=l(n(44));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";var r=n(1),a=n(0),i=n(16),o=n.n(i),l=n(11),c=n(5),s=n(4),u=n(3);function p(e){return(p="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})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(p,e);var t,n,i,c=f(p);function p(){var e;return m(this,p),(e=c.apply(this,arguments)).onChange=e.onChange.bind(g(e)),e.state={loading:!0,availableTerms:[],selectedTerms:[]},e}return t=p,(n=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(r.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var n=Object(r.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(n))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(e){return!!this.state.availableTerms.find((function(t){return t.id===e}))}},{key:"updateSelectedTerms",value:function(e,t){this.setState({selectedTerms:this.filterSelectedTerms(e,t)})}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTermID;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=o()({path:Object(l.addQueryArgs)("/wp/v2/".concat(t.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){e.fetchRequest=null,e.setState({loading:!1,availableTerms:t,selectedTerms:e.filterSelectedTerms(t,e.props.selectedTermIds)})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"onChange",value:function(e){Object(s.dispatch)("rank-math").updatePrimaryTermID(e,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.selectedTermIds!==e.selectedTermIds||this.props.primaryTermID!==e.primaryTermID||this.state.selectedTerms!==t.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(u.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(u.SelectControl,{label:Object(a.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(e){return{value:e.id,label:Object(r.unescape)(e.name)}})),onChange:this.onChange})}}])&&d(t.prototype,n),i&&d(t,i),p}(c.Component);t.a=y},,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),l=n(10),c=n.n(l),s=n(1),u=n(7),p=n(3);function m(e){return(m="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})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var O=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=k(e,["tabId","onClick","children","selected"]);return wp.element.createElement(p.Button,v({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(i,e);var t,n,r,a=g(i);function i(){var e;h(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,u=void 0===l?"horizontal":l,m=n.tabs,h=Object(s.find)(m,{name:t}),f=o+"-"+h.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:c()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),h&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(h)))}}])&&f(t.prototype,n),r&&f(t,r),i}(o.Component),j=Object(u.withInstanceId)(_),E=n(26),T=function(e){var t=Object(E.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:c()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},S=n(29),I=n(35),D=n.n(I),P=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),D()({mixedString:r,components:n})};function C(e){return(C="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})(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(l,e);var t,n,a,i=R(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(M(t)),t}return t=l,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(S.decodeEntities)(Object(r.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(P,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&N(t.prototype,n),a&&N(t,a),l}(o.Component),H=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(T,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(U,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),z=n(8),L=n(11),G=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(z.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(z.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(T,{source:Object(L.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(L.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),K=n(14),B=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(T,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(K.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(U,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),V=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=c()("button button-secondary button-small",{active:"desktop"===t}),a=c()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),W=n(31),Y=n(18),q=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},Z=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return Object(s.includes)(["Book","Course","Product","Recipe","Software"],e["@type"])}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},q(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},q(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))})),$=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},J=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return Object(s.includes)(["Event"],e["@type"])}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},$(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},$(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,l=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=c()("serp-preview",(Q(t={"expanded-preview":""!==l},"".concat(l,"-preview"),""!==l&&f),Q(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(W.a,null)," ",f&&wp.element.createElement(V,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,z.Helpers.sanitizeText(n),60)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object(Y.a)(g,z.Helpers.sanitizeText(Object(L.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement(Z,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,z.Helpers.sanitizeText(i),160)}})),wp.element.createElement(J,null)),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),ee=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(X,{showScore:!1,showDevices:!0}),wp.element.createElement(H,null),wp.element.createElement(G,null),wp.element.createElement(B,null))})),te=n(9),ne=function(e){var t=c()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?te.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?te.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},re=n(12),ae=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(re.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ie(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function oe(){return(oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ne,oe({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(ae,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ie(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),ce=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),se=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ne,ue({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(ae,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ie(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(se,null),"app"===e.cardType&&wp.element.createElement(ce,null))})),me=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:le,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:pe,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},de=n(2),he=n.n(de);function fe(e){return(fe="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})(e)}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ke(e);if(t){var a=ke(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ye(this,n)}}function ye(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?ve(e):t}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ge(e,t)}(l,e);var t,n,a,i=we(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this))._handleRef=e._handleRef.bind(ve(e)),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=he()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=he()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(P,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){he.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=he()(this.component);e.animate({opacity:.01},1500,(function(){var t=he()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&be(t.prototype,n),a&&be(t,a),l}(o.Component),_e=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),je=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,l=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:ee},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:me}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&l.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:Oe}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),wp.element.createElement(_e,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:l},(function(e){return Object(o.createElement)(e.view)}))))})),Ee=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(je,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Te=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=c()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Se=n(28);function Ie(e){return(Ie="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})(e)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Re(e);if(t){var a=Re(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Re(e){return(Re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}(l,e);var t,n,a,i=Ne(l);function l(){return De(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=c()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Se.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Te,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Pe(t.prototype,n),a&&Pe(t,a),l}(o.Component),Me=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Ae),Fe=n(21),Ue=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),He=n(27),ze=n.n(He);function Le(e){return(Le="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})(e)}function Ge(){return(Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var a=qe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return We(this,n)}}function We(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?Ye(e):t}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ze=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(i,e);var t,n,r,a=Ve(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(Ye(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new ze.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",Ge({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",Ge({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&Ke(t.prototype,n),r&&Ke(t,r),i}(o.Component);function $e(e){return($e="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})(e)}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qe(e,t){return(Qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nt(e);if(t){var a=nt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return et(this,n)}}function et(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?tt(e):t}function tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qe(e,t)}(l,e);var t,n,a,i=Xe(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(tt(t)),window.rankMathEditor.focusKeywordField=tt(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement(Ze,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(z.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=he.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=he.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=he()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Je(t.prototype,n),a&&Je(t,a),l}(o.Component),at=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(rt),it=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(Te,null,wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement("a",{href:"https://rankmath.com/pricing/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Trends&utm_campaign=WP",title:Object(r.__)("Google Trends","rank-math"),target:"_blank",rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon}}),wp.element.createElement(Fe.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(at,null)),wp.element.createElement(Ue,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Te,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),ot=n(22),lt=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(X,{onClick:t}),wp.element.createElement(je,null),wp.element.createElement(ot.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(it,null),rankMath.canUser.analysis&&wp.element.createElement(Me,null))})),ct=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},st=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=ct(n,t,r),"index"===t&&(n=ct(n,"noindex",!r)),"noindex"===t&&(n=ct(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function ut(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 pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(pt(pt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(pt(pt({},t),{},mt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(Te,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ft=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function bt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},vt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gt({},t);return Object(s.defaults)(n,yt),{meta:t,isSnippet:"max-snippet"in t,isImage:"max-image-preview"in t,isVideo:"max-video-preview"in t,maxSnippet:n["max-snippet"],maxImage:n["max-image-preview"],maxVideo:n["max-video-preview"]}})),Object(a.withDispatch)((function(e,t){var n=gt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=yt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),kt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),Ot=n(23),_t=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(st,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ft,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(dt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(kt,null)),wp.element.createElement(Ot.a.Slot,null,(function(e){return e.length>0?e:[]})))},jt=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(j,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:lt,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:_t,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:Ee,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:jt},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"updateKeywords",(function(){return m})),n.d(r,"updatePillarContent",(function(){return d})),n.d(r,"toggleFrontendScore",(function(){return h})),n.d(r,"updateAnalysisScore",(function(){return f})),n.d(r,"updateCanonicalUrl",(function(){return b})),n.d(r,"updateAdvancedRobots",(function(){return g})),n.d(r,"updateRobots",(function(){return w})),n.d(r,"updateBreadcrumbTitle",(function(){return y})),n.d(r,"resetDirtyMetadata",(function(){return v})),n.d(r,"updateFacebookTitle",(function(){return k})),n.d(r,"updateFacebookDescription",(function(){return O})),n.d(r,"updateFacebookImage",(function(){return _})),n.d(r,"updateFacebookImageID",(function(){return j})),n.d(r,"updateFacebookHasOverlay",(function(){return E})),n.d(r,"updateFacebookImageOverlay",(function(){return T})),n.d(r,"updateAppData",(function(){return u})),n.d(r,"updateAppUi",(function(){return p})),n.d(r,"updatePostID",(function(){return S})),n.d(r,"updatePermalink",(function(){return I})),n.d(r,"updateTitle",(function(){return D})),n.d(r,"updateDescription",(function(){return P})),n.d(r,"updateFeaturedImage",(function(){return C})),n.d(r,"updatePrimaryTermID",(function(){return N})),n.d(r,"updateRedirection",(function(){return x})),n.d(r,"updateRedirectionItem",(function(){return R})),n.d(r,"resetRedirection",(function(){return A})),n.d(r,"updateHasRedirect",(function(){return M})),n.d(r,"updateSerpTitle",(function(){return U})),n.d(r,"updateSerpDescription",(function(){return H})),n.d(r,"toggleSnippetEditor",(function(){return z})),n.d(r,"updateSnippetPreviewType",(function(){return L})),n.d(r,"updateTwitterUseFacebook",(function(){return G})),n.d(r,"updateTwitterCardType",(function(){return K})),n.d(r,"updateTwitterTitle",(function(){return B})),n.d(r,"updateTwitterDescription",(function(){return V})),n.d(r,"updateTwitterAuthor",(function(){return W})),n.d(r,"updateTwitterImageID",(function(){return Y})),n.d(r,"updateTwitterImage",(function(){return q})),n.d(r,"updateTwitterHasOverlay",(function(){return Z})),n.d(r,"updateTwitterImageOverlay",(function(){return $})),n.d(r,"updateTwitterPlayerUrl",(function(){return J})),n.d(r,"updateTwitterPlayerSize",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return X})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return ee})),n.d(r,"updateTwitterAppDescription",(function(){return te})),n.d(r,"updateTwitterAppIphoneID",(function(){return ne})),n.d(r,"updateTwitterAppIphoneName",(function(){return re})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return ae})),n.d(r,"updateTwitterAppIpadID",(function(){return ie})),n.d(r,"updateTwitterAppIpadName",(function(){return oe})),n.d(r,"updateTwitterAppIpadUrl",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return se})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return ue})),n.d(r,"updateTwitterAppCountry",(function(){return pe})),n.d(r,"toggleLoaded",(function(){return me})),n.d(r,"updateSelectedKeyword",(function(){return de})),n.d(r,"refreshResults",(function(){return he})),n.d(r,"setVersion",(function(){return fe})),n.d(r,"toggleSchemaEditor",(function(){return _e})),n.d(r,"toggleSchemaTemplates",(function(){return je})),n.d(r,"setEditingSchemaId",(function(){return Ee})),n.d(r,"setEditorTab",(function(){return Te})),n.d(r,"setTemplateTab",(function(){return Se})),n.d(r,"updateEditSchemas",(function(){return Ie})),n.d(r,"updateSchemas",(function(){return De})),n.d(r,"updateEditSchema",(function(){return Pe})),n.d(r,"saveSchema",(function(){return Ce})),n.d(r,"deleteSchema",(function(){return Ne})),n.d(r,"saveTemplate",(function(){return xe}));var a={};n.r(a),n.d(a,"appData",(function(){return ze})),n.d(a,"appUi",(function(){return Ve}));var i={};n.r(i),n.d(i,"getAppData",(function(){return We})),n.d(i,"getDirtyMetadata",(function(){return Ye})),n.d(i,"getAnalysisScore",(function(){return qe})),n.d(i,"getKeywords",(function(){return Ze})),n.d(i,"getPillarContent",(function(){return $e})),n.d(i,"getRobots",(function(){return Je})),n.d(i,"getAdvancedRobots",(function(){return Qe})),n.d(i,"getCanonicalUrl",(function(){return Xe})),n.d(i,"getBreadcrumbTitle",(function(){return et})),n.d(i,"getRichSnippets",(function(){return tt})),n.d(i,"getShowScoreFrontend",(function(){return nt})),n.d(i,"isLoaded",(function(){return rt})),n.d(i,"getSelectedKeyword",(function(){return at})),n.d(i,"isRefreshing",(function(){return it})),n.d(i,"isPro",(function(){return ot})),n.d(i,"getFacebookTitle",(function(){return lt})),n.d(i,"getFacebookDescription",(function(){return ct})),n.d(i,"getFacebookAuthor",(function(){return st})),n.d(i,"getFacebookImageID",(function(){return ut})),n.d(i,"getFacebookImage",(function(){return pt})),n.d(i,"getFacebookHasOverlay",(function(){return mt})),n.d(i,"getFacebookImageOverlay",(function(){return dt})),n.d(i,"getPostID",(function(){return ht})),n.d(i,"getTitle",(function(){return ft})),n.d(i,"getPermalink",(function(){return bt})),n.d(i,"getDescription",(function(){return gt})),n.d(i,"getFeaturedImage",(function(){return wt})),n.d(i,"getFeaturedImageHtml",(function(){return yt})),n.d(i,"getPrimaryTermID",(function(){return vt})),n.d(i,"getRedirectionID",(function(){return kt})),n.d(i,"getRedirectionType",(function(){return Ot})),n.d(i,"getRedirectionUrl",(function(){return _t})),n.d(i,"getRedirectionItem",(function(){return jt})),n.d(i,"hasRedirect",(function(){return Et})),n.d(i,"getSerpTitle",(function(){return St})),n.d(i,"getSerpDescription",(function(){return It})),n.d(i,"isSnippetEditorOpen",(function(){return Dt})),n.d(i,"getSnippetPreviewType",(function(){return Pt})),n.d(i,"isSchemaEditorOpen",(function(){return Ct})),n.d(i,"isSchemaTemplatesOpen",(function(){return Nt})),n.d(i,"getSchemas",(function(){return xt})),n.d(i,"getEditSchemas",(function(){return Rt})),n.d(i,"getEditingSchema",(function(){return At})),n.d(i,"getPreviewSchema",(function(){return Mt})),n.d(i,"getEditorTab",(function(){return Ft})),n.d(i,"getTemplateTab",(function(){return Ut})),n.d(i,"getTwitterUseFacebook",(function(){return Ht})),n.d(i,"getTwitterCardType",(function(){return zt})),n.d(i,"getTwitterTitle",(function(){return Lt})),n.d(i,"getTwitterDescription",(function(){return Gt})),n.d(i,"getTwitterAuthor",(function(){return Kt})),n.d(i,"getTwitterImageID",(function(){return Bt})),n.d(i,"getTwitterImage",(function(){return Vt})),n.d(i,"getTwitterHasOverlay",(function(){return Wt})),n.d(i,"getTwitterImageOverlay",(function(){return Yt})),n.d(i,"getTwitterAppDescription",(function(){return qt})),n.d(i,"getTwitterAppIphoneID",(function(){return Zt})),n.d(i,"getTwitterAppIphoneName",(function(){return $t})),n.d(i,"getTwitterAppIphoneUrl",(function(){return Jt})),n.d(i,"getTwitterAppIpadID",(function(){return Qt})),n.d(i,"getTwitterAppIpadName",(function(){return Xt})),n.d(i,"getTwitterAppIpadUrl",(function(){return en})),n.d(i,"getTwitterAppGoogleplayID",(function(){return tn})),n.d(i,"getTwitterAppGoogleplayName",(function(){return nn})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return rn})),n.d(i,"getTwitterAppCountry",(function(){return an})),n.d(i,"getTwitterPlayerUrl",(function(){return on})),n.d(i,"getTwitterPlayerSize",(function(){return ln})),n.d(i,"getTwitterPlayerStream",(function(){return cn})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return sn}));var o=n(8),l=n(6),c=n(4),s=n(9);function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(l.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(l.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(l.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function p(e,t){return Object(l.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function m(e){return s.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),u("keywords",e,"rank_math_focus_keyword")}function d(e){return u("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function h(e){return u("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function f(e){return u("score",e,"rank_math_seo_score")}function b(e){return u("canonicalUrl",e,"rank_math_canonical_url")}function g(e){return u("advancedRobots",e,"rank_math_advanced_robots")}function w(e){return u("robots",e,"rank_math_robots",Object.keys(e))}function y(e){return u("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function v(){return u("dirtyMetadata",{})}function k(e){return u("facebookTitle",e,"rank_math_facebook_title")}function O(e){return u("facebookDescription",e,"rank_math_facebook_description")}function _(e){return u("facebookImage",e,"rank_math_facebook_image")}function j(e){return u("facebookImageID",e,"rank_math_facebook_image_id")}function E(e){return u("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function T(e){return u("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function S(e){return rankMath.objectID=e,u("postID",e)}function I(e){return u("permalink",e,"permalink")}function D(e){return u("title",e,"rank_math_title")}function P(e){return u("description",e,"rank_math_description")}function C(e){return u("featuredImage",e)}function N(e,t){return u("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function x(e,t){return u(e,t)}function R(e){return p("redirectionItem",e)}function A(){return p("redirectionItem",{})}function M(e){return p("hasRedirect",e)}var F=n(25);function U(e){return e=s.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),p("serpTitle",e)}function H(e){return e=s.a.swap(Object(F.a)(e)),rankMathEditor.refresh("description"),p("serpDescription",e)}function z(e){return p("isSnippetEditorOpen",e)}function L(e){return p("snippetPreviewType",e)}function G(e){return u("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function K(e){return u("twitterCardType",e,"rank_math_twitter_card_type")}function B(e){return u("twitterTitle",e,"rank_math_twitter_title")}function V(e){return u("twitterDescription",e,"rank_math_twitter_description")}function W(e){return u("twitterAuthor",e,"rank_math_twitter_author")}function Y(e){return u("twitterImageID",e,"rank_math_twitter_image_id")}function q(e){return u("twitterImage",e,"rank_math_twitter_image")}function Z(e){return u("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function $(e){return u("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function J(e){return u("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function Q(e){return u("twitterPlayerSize",e,"rank_math_twitter_player_size")}function X(e){return u("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function ee(e){return u("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function te(e){return u("twitterAppDescription",e,"rank_math_twitter_app_description")}function ne(e){return u("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function re(e){return u("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function ae(e){return u("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ie(e){return u("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function oe(e){return u("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function le(e){return u("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function ce(e){return u("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function se(e){return u("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function ue(e){return u("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function pe(e){return u("twitterAppCountry",e,"rank_math_twitter_app_country")}function me(e){return p("isLoaded",e)}function de(e){return p("selectedKeyword",e)}function he(){return p("refreshResults",Date.now())}function fe(){return p("isPro",!0)}var be=n(1),ge=n(0),we=n(16),ye=n.n(we);function ve(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 ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e){return p("isSchemaEditorOpen",e)}function je(e){return p("isSchemaTemplatesOpen",e)}function Ee(e){return p("editingSchemaId",e)}function Te(e){return p("editorTab",e)}function Se(e){return p("templateTab",e)}function Ie(e){return p("editSchemas",e)}function De(e){return u("schemas",e)}function Pe(e,t){var n=ke({},Object(c.select)("rank-math").getEditSchemas());return n[e]=t,p("editSchemas",n)}function Ce(e,t){var n=ke({},Object(c.select)("rank-math").getSchemas());return n[e]=t,u("schemas",n)}function Ne(e){var t=ke({},Object(c.select)("rank-math").getSchemas());return delete t[e],Object(l.doAction)("rank_math_schema_trash",e),u("schemas",t,"rank_math_delete_"+e,"")}function xe(e,t,n){return ye()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(be.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(ge.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Re(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 Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fe=rankMath.assessor.serpData,Ue=rankMath.assessor.hasRedirection,He={postID:null,title:Fe.title?Fe.title:Fe.titleTemplate,description:Fe.description,keywords:Fe.focusKeywords,pillarContent:Fe.pillarContent,featuredImage:"",permalink:!1,primaryTerm:Fe.primaryTerm,robots:Fe.robots,advancedRobots:Fe.advancedRobots,canonicalUrl:Fe.canonicalUrl,breadcrumbTitle:Fe.breadcrumbTitle,showScoreFrontend:Fe.showScoreFrontend,redirectionID:Ue?Object(be.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:Ue?Object(be.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:Ue?Object(be.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:Fe.facebookTitle,facebookImage:Fe.facebookImage,facebookImageID:Fe.facebookImageID,facebookAuthor:Fe.facebookAuthor,facebookDescription:Fe.facebookDescription,facebookHasOverlay:Fe.facebookHasOverlay,facebookImageOverlay:Fe.facebookImageOverlay,twitterTitle:Fe.twitterTitle,twitterImage:Fe.twitterImage,twitterAuthor:Fe.twitterAuthor,twitterImageID:Fe.twitterImageID,twitterCardType:Fe.twitterCardType,twitterUseFacebook:Fe.twitterUseFacebook,twitterDescription:Fe.twitterDescription,twitterHasOverlay:Fe.twitterHasOverlay,twitterImageOverlay:Fe.twitterImageOverlay,twitterPlayerUrl:Fe.twitterPlayerUrl,twitterPlayerSize:Fe.twitterPlayerSize,twitterPlayerStream:Fe.twitterPlayerStream,twitterPlayerStreamCtype:Fe.twitterPlayerStreamCtype,twitterAppDescription:Fe.twitterAppDescription,twitterAppIphoneName:Fe.twitterAppIphoneName,twitterAppIphoneID:Fe.twitterAppIphoneID,twitterAppIphoneUrl:Fe.twitterAppIphoneUrl,twitterAppIpadName:Fe.twitterAppIpadName,twitterAppIpadID:Fe.twitterAppIpadID,twitterAppIpadUrl:Fe.twitterAppIpadUrl,twitterAppGoogleplayName:Fe.twitterAppGoogleplayName,twitterAppGoogleplayID:Fe.twitterAppGoogleplayID,twitterAppGoogleplayUrl:Fe.twitterAppGoogleplayUrl,twitterAppCountry:Fe.twitterAppCountry,schemas:Object(be.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function ze(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:He,n=arguments.length>1?arguments[1]:void 0,r=Ae({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Ae(Ae({},t),{},{dirtyMetadata:n.value}):Ae(Ae({},t),{},(Me(e={},n.key,n.value),Me(e,"dirtyMetadata",r),e)):t}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 Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){Ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(be.isEmpty)(Object(be.get)(rankMath.assessor,"redirection.id",""))||!Object(be.isEmpty)(Object(be.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1};function Ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Ge(Ge({},e),{},Ke({},t.key,t.value)):e}function We(e){return e.appData}function Ye(e){return e.appData.dirtyMetadata}function qe(e){return e.appData.score}function Ze(e){return e.appData.keywords}function $e(e){return e.appData.pillarContent}function Je(e){return e.appData.robots}function Qe(e){return e.appData.advancedRobots}function Xe(e){return e.appData.canonicalUrl}function et(e){return e.appData.breadcrumbTitle}function tt(e){return"todo"}function nt(e){return e.appData.showScoreFrontend}function rt(e){return e.appUi.isLoaded}function at(e){return e.appUi.selectedKeyword}function it(e){return e.appUi.refreshResults}function ot(e){return e.appUi.isPro}function lt(e){return e.appData.facebookTitle}function ct(e){return e.appData.facebookDescription}function st(e){return e.appData.facebookAuthor}function ut(e){return e.appData.facebookImageID}function pt(e){return e.appData.facebookImage}function mt(e){return e.appData.facebookHasOverlay}function dt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function ht(e){return e.appData.postID}function ft(e){return e.appData.title}function bt(e){return e.appData.permalink}function gt(e){return e.appData.description}function wt(e){return e.appData.featuredImage}function yt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function vt(e){return e.appData.primaryTerm}function kt(e){return e.appData.redirectionID}function Ot(e){return e.appData.redirectionType}function _t(e){return e.appData.redirectionUrl}function jt(e){return e.appUi.redirectionItem}function Et(e){return e.appUi.hasRedirect}var Tt=n(14);function St(e){return Object(Tt.a)(e.appUi.serpTitle)}function It(e){return e.appUi.serpDescription}function Dt(e){return e.appUi.isSnippetEditorOpen}function Pt(e){return e.appUi.snippetPreviewType}function Ct(e){return e.appUi.isSchemaEditorOpen}function Nt(e){return e.appUi.isSchemaTemplatesOpen}function xt(e){return e.appData.schemas}function Rt(e){return e.appUi.editSchemas}function At(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function Mt(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Ft(e){return e.appUi.editorTab}function Ut(e){return e.appUi.templateTab}function Ht(e){return e.appData.twitterUseFacebook}function zt(e){return e.appData.twitterCardType}function Lt(e){return e.appData.twitterTitle}function Gt(e){return e.appData.twitterDescription}function Kt(e){return e.appData.twitterAuthor}function Bt(e){return e.appData.twitterImageID}function Vt(e){return e.appData.twitterImage}function Wt(e){return e.appData.twitterHasOverlay}function Yt(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function qt(e){return e.appData.twitterAppDescription}function Zt(e){return e.appData.twitterAppIphoneID}function $t(e){return e.appData.twitterAppIphoneName}function Jt(e){return e.appData.twitterAppIphoneUrl}function Qt(e){return e.appData.twitterAppIpadID}function Xt(e){return e.appData.twitterAppIpadName}function en(e){return e.appData.twitterAppIpadUrl}function tn(e){return e.appData.twitterAppGoogleplayID}function nn(e){return e.appData.twitterAppGoogleplayName}function rn(e){return e.appData.twitterAppGoogleplayUrl}function an(e){return e.appData.twitterAppCountry}function on(e){return e.appData.twitterPlayerUrl}function ln(e){return e.appData.twitterPlayerSize}function cn(e){return e.appData.twitterPlayerStream}function sn(e){return e.appData.twitterPlayerStreamCtype}var un=Object(c.registerStore)("rank-math",{reducer:Object(c.combineReducers)(a),selectors:i,actions:r});function pn(){return un}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var dn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new o.Analyzer({i18n:ge,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(l.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(l.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(l.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,r;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(be.isObject)(e)||Object(be.isEmpty)(e)?e:o.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e){var t=pn().getState(),n=this.dataCollector.getData(),r=new o.Paper("",{locale:rankMath.localeFull});return r.setTitle(t.appUi.serpTitle),r.setPermalink(n.slug),r.setDescription(t.appUi.serpDescription),r.setUrl(n.permalink),r.setText(Object(l.applyFilters)("rank_math_content",n.content)),r.setKeyword(e),Object(be.isUndefined)(n.featuredImage)||(r.setThumbnail(n.featuredImage.source_url),r.setThumbnailAltText(o.Helpers.removeDiacritics(n.featuredImage.alt_text))),r}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(be.debounce)((function(t){var n=pn().getState();if(!1!==n.appUi.isLoaded){var r=n.appData.keywords.split(","),a=[];Object(l.doAction)("rank_math_"+t+"_refresh"),r.map((function(t,n){var r=e.getPaper(o.Helpers.removeDiacritics(t)),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();a.push(e.analyzer.analyzeSome(i,r).then((function(e){rankMathEditor.resultManager.update(r.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(r.getKeyword()))}))),Promise.all(a).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=pn().getState().appData.keywords;return o.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=pn().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return o.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&mn(t.prototype,n),r&&mn(t,r),e}(),hn=n(24);function fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var bn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"setup",value:function(e){pn(),this.resultManager=new o.ResultManager,this.assessor=new dn(e),new hn.a,Object(l.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&fn(t.prototype,n),r&&fn(t,r),e}();t.a=bn},function(e,t){e.exports=wp.editPost},function(e,t,n){"use strict";var r=n(33),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(34),o=n(42),l=n(43),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(34);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t){e.exports=wp.plugins},,,,,function(e,t,n){var r=n(33);function a(e){return r.createElement("svg",e,r.createElement("g",{fill:"#fff"},[r.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z",key:0}),r.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z",key:1})]))}a.defaultProps={viewBox:"0 0 462.03 462.03",width:"20",className:"rank-math-icon"},e.exports=a,a.default=a},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),i=n(0),o=n(4),l=n(5),c=n(45),s=n(6),u=n(40),p=n(38),m=n(39),d=n(1),h=n(16),f=n.n(h),b=n(11),g=n(9),w=n(30);function y(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.isSavingRedirection=!1,this.isSavingSchemas=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.isSavingPost=this.isSavingPost.bind(this),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,n,r;return t=e,(n=[{key:"collectGutenbergData",value:function(){if(Object(w.a)())return this._coreEditorSelect||(this._coreEditorSelect=Object(o.select)("core/editor")),!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return this._coreEditorSelect.getCurrentPostId()}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(b.safeDecodeURIComponent)(this._coreEditorSelect.getPermalink())}},{key:"getSlug",value:function(){var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(b.safeDecodeURIComponent)(this.getPostAttribute("slug")||e)}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(o.select)("core").getMedia(e);if(!Object(d.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return Object(w.a)()?(this._coreEditorSelect||(this._coreEditorSelect=Object(o.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)):""}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(d.debounce)(this.refresh,500),Object(o.subscribe)(this.subscriber),Object(o.subscribe)(this.isSavingPost)}},{key:"refresh",value:function(){var e=v({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"isSavingPost",value:function(){var e=Object(o.select)("core/editor");if(!e.isAutosavingPost()&&e.isSavingPost()){var t=Object(o.select)("rank-math").getDirtyMetadata();Object(d.isEmpty)(t)||(f()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t}}),Object(o.dispatch)("rank-math").resetDirtyMetadata()),"publish"===this.getPostAttribute("status")&&(this.saveRedirection(),this.autoCreateRedirectionNotice()),this.saveSchemas()}}},{key:"saveSchemas",value:function(){var e=this;if(!this.isSavingSchemas){var t=Object(o.select)("rank-math").getSchemas();if(!Object(d.isEmpty)(t)&&!Object(d.isEqual)(t,Object(d.get)(rankMath,"schemas",{}))){this.isSavingSchemas=!0;var n=Object(o.select)("rank-math").getEditSchemas();f()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:this.getPostID(),objectType:rankMath.objectType,schemas:t}}).then((function(r){if(!Object(d.isEmpty)(r)){var a=v({},t),i=v({},n);Object(d.map)(r,(function(e,t){a["schema-"+e]=v({},a[t]),i["schema-"+e]=v({},i[t]),delete a[t],delete i[t]})),Object(o.dispatch)("rank-math").updateSchemas(a),Object(o.dispatch)("rank-math").updateEditSchemas(i)}setTimeout((function(){e.isSavingSchemas=!1}),2e3)}))}}}},{key:"saveRedirection",value:function(){var e=this;if(!this.isSavingRedirection){var t=Object(o.select)("rank-math").getRedirectionItem();if(!Object(d.isEmpty)(t)){this.isSavingRedirection=!0,t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink();var n=Object(o.dispatch)("rank-math"),r=Object(o.dispatch)("core/notices");n.resetRedirection(),f()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?(r.createInfoNotice(t.message,{id:"redirectionNotice"}),n.updateRedirection("redirectionID",0)):"update"===t.action?r.createInfoNotice(t.message,{id:"redirectionNotice"}):"new"===t.action&&(n.updateRedirection("redirectionID",t.id),r.createSuccessNotice(t.message,{id:"redirectionNotice"})),setTimeout((function(){e.isSavingRedirection=!1,r.removeNotice("redirectionNotice")}),2e3)}))}}}},{key:"autoCreateRedirectionNotice",value:function(){if(rankMath.assessor.hasRedirection&&Object(d.get)(rankMath,["assessor","autoCreateRedirection"],!1)&&!Object(o.select)("core/editor").isEditedPostNew()&&!1!==this.oldSlug){var e=this.getSlug();if(this.oldSlug!==e){var t=Object(o.dispatch)("core/notices");this.oldSlug=e,t.createSuccessNotice(Object(i.__)("Auto redirection created.","rank-math"),{id:"redirectionAutoCreationNotice"}),setTimeout((function(){t.removeNotice("redirectionAutoCreationNotice")}),2e3)}}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(d.isInteger)(e.id))return this.initialize?void Object(d.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(d.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(o.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(o.dispatch)("rank-math").updatePostID(e),Object(o.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){g.a.setVariable("title",e),g.a.setVariable("term",e),g.a.setVariable("author",e),Object(o.dispatch)("rank-math").updateSerpTitle(Object(o.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){g.a.setVariable("excerpt",e),g.a.setVariable("excerpt_only",e),g.a.setVariable("wc_shortdesc",e),g.a.setVariable("seo_description",e),Object(o.dispatch)("rank-math").updateSerpDescription(Object(o.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(o.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(o.dispatch)("rank-math").updateSerpDescription(Object(o.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&O(t.prototype,n),r&&O(t,r),e}(),j=n(10),E=n.n(j),T=n(50),S=n.n(T),I=n(31),D=n(19);function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=Object(o.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),score:t.getAnalysisScore()}}))((function(e){var t,n=e.isLoaded,r=e.score,a=E()("rank-math-toolbar-score",(P(t={},Object(D.a)(r),!0),P(t,"loading",!n),t));return wp.element.createElement("div",{className:a},wp.element.createElement(I.a,null),wp.element.createElement(S.a,null))})),N=n(3),x=Object(o.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook()?t.getFacebookTitle():t.getTwitterTitle();return Object(d.isEmpty)(n)&&(n=t.getSerpTitle()),{title:n,permalink:e("core/editor").getPermalink()}}))((function(e){var t=e.title,n=e.permalink,r=encodeURI(n),a=encodeURI(t);return wp.element.createElement(l.Fragment,null,wp.element.createElement("p",null,Object(i.__)("Notify your readers by sharing!","rank-math")),wp.element.createElement("div",{className:"rank-math-social-share-buttons"},wp.element.createElement("div",{className:"rank-math-share-button rm-facebook"},wp.element.createElement("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(N.Dashicon,{icon:"facebook-alt"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-twitter"},wp.element.createElement("a",{href:"https://twitter.com/share?url="+r+"&text="+a,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(N.Dashicon,{icon:"twitter"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-email"},wp.element.createElement("a",{href:"mailto:?subject="+a+"&body="+r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(N.Dashicon,{icon:"email"})))))}));function R(e){return(R="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})(e)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var a=H(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return U(this,n)}}function U(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(n,e);var t=F(n);function n(){return A(this,n),t.apply(this,arguments)}return n}(n(36).a),L=Object(o.withSelect)((function(e,t){var n=t.slug,r=e("core").getTaxonomy(n),a=e("core/editor").getEditedPostAttribute;return{taxonomy:r,selectedTermIds:r?a(r.rest_base):[],primaryTermID:e("rank-math").getPrimaryTermID()}}))(z),G=function(e){var t=e.TermComponent;return function(e){return!1!==rankMath.assessor.primaryTaxonomy&&e.slug===rankMath.assessor.primaryTaxonomy.name}(e)?wp.element.createElement(l.Fragment,null,wp.element.createElement(t,e),wp.element.createElement(N.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(L,e))):wp.element.createElement(t,e)},K=n(22),B=n(23),V=n(21);function W(e){return(W="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})(e)}function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t,n){return($="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ee(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ee(e);if(t){var a=ee(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return X(this,n)}}function X(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(m,e);var t,n,r,a=Q(m);function m(){return q(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),$(ee(m.prototype),"setup",this).call(this,e),this.registerSidebar(),this.registerPostPublish(),this.registerPrimaryTermSelector()}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=K.a,this.RankMathAfterFocusKeyword=V.a,this.RankMathAdvancedTab=B.a,this.slots={AfterEditor:K.a,AfterFocusKeyword:V.a,AdvancedTab:B.a}}},{key:"registerSidebar",value:function(){Object(c.registerPlugin)("rank-math",{icon:wp.element.createElement(C,null),render:function(){return wp.element.createElement(l.Fragment,null,wp.element.createElement(u.PluginSidebarMoreMenuItem,{target:"seo-by-rank-math-sidebar",icon:wp.element.createElement(C,null)},i.__("Rank Math","rank-math")),wp.element.createElement(u.PluginSidebar,{name:"seo-by-rank-math-sidebar",title:i.__("Rank Math","rank-math"),className:"rank-math-sidebar-panel"},wp.element.createElement(p.a,null)))}})}},{key:"registerPostPublish",value:function(){Object(c.registerPlugin)("rank-math-post-publish",{render:function(){return wp.element.createElement(u.PluginPostPublishPanel,{initialOpen:!0,title:i.__("Rank Math","rank-math"),className:"rank-math-post-publish",icon:wp.element.createElement(l.Fragment,null)},wp.element.createElement(x,null))}})}},{key:"registerPrimaryTermSelector",value:function(){Object(s.addFilter)("editor.PostTaxonomyType","rank-math",(function(e){return function(t){return wp.element.createElement(G,Y({TermComponent:e},t))}}))}},{key:"updatePermalink",value:function(e){Object(o.dispatch)("core/editor").editPost({slug:e})}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(o.dispatch)("core/editor").editPost({slug:e})}}])&&Z(t.prototype,n),r&&Z(t,r),m}(m.a);a()(document).ready((function(){window.rankMathEditor=new te,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new _)}))}]);
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=78)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=jQuery},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.hooks},function(e,t){e.exports=wp.compose},function(e,t){e.exports=rankMathAnalyzer},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),a=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?a()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},a.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&i(t.prototype,n),r&&i(t,r),e}())},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===i)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=wp.url},function(e,t){e.exports=wp.blockEditor},,function(e,t,n){"use strict";var r=document.createElement("div");t.a=function(e){return e&&"string"==typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),r.innerHTML=e,e=r.textContent,r.textContent=""),e}},,function(e,t){e.exports=wp.apiFetch},function(e,t,n){"use strict";n.d(t,"a",(function(){return un}));var r={};n.r(r),n.d(r,"updateKeywords",(function(){return p})),n.d(r,"updatePillarContent",(function(){return m})),n.d(r,"toggleFrontendScore",(function(){return d})),n.d(r,"updateAnalysisScore",(function(){return h})),n.d(r,"updateCanonicalUrl",(function(){return f})),n.d(r,"updateAdvancedRobots",(function(){return b})),n.d(r,"updateRobots",(function(){return g})),n.d(r,"updateBreadcrumbTitle",(function(){return w})),n.d(r,"resetDirtyMetadata",(function(){return y})),n.d(r,"updateFacebookTitle",(function(){return v})),n.d(r,"updateFacebookDescription",(function(){return k})),n.d(r,"updateFacebookImage",(function(){return O})),n.d(r,"updateFacebookImageID",(function(){return _})),n.d(r,"updateFacebookHasOverlay",(function(){return j})),n.d(r,"updateFacebookImageOverlay",(function(){return E})),n.d(r,"updateAppData",(function(){return s})),n.d(r,"updateAppUi",(function(){return u})),n.d(r,"updatePostID",(function(){return T})),n.d(r,"updatePermalink",(function(){return S})),n.d(r,"updateTitle",(function(){return I})),n.d(r,"updateDescription",(function(){return D})),n.d(r,"updateFeaturedImage",(function(){return P})),n.d(r,"updatePrimaryTermID",(function(){return C})),n.d(r,"updateRedirection",(function(){return N})),n.d(r,"updateRedirectionItem",(function(){return x})),n.d(r,"resetRedirection",(function(){return R})),n.d(r,"updateHasRedirect",(function(){return A})),n.d(r,"updateSerpTitle",(function(){return F})),n.d(r,"updateSerpDescription",(function(){return U})),n.d(r,"toggleSnippetEditor",(function(){return H})),n.d(r,"updateSnippetPreviewType",(function(){return z})),n.d(r,"updateTwitterUseFacebook",(function(){return L})),n.d(r,"updateTwitterCardType",(function(){return G})),n.d(r,"updateTwitterTitle",(function(){return K})),n.d(r,"updateTwitterDescription",(function(){return B})),n.d(r,"updateTwitterAuthor",(function(){return V})),n.d(r,"updateTwitterImageID",(function(){return W})),n.d(r,"updateTwitterImage",(function(){return Y})),n.d(r,"updateTwitterHasOverlay",(function(){return q})),n.d(r,"updateTwitterImageOverlay",(function(){return Z})),n.d(r,"updateTwitterPlayerUrl",(function(){return $})),n.d(r,"updateTwitterPlayerSize",(function(){return J})),n.d(r,"updateTwitterPlayerStreamUrl",(function(){return Q})),n.d(r,"updateTwitterPlayerStreamCtype",(function(){return X})),n.d(r,"updateTwitterAppDescription",(function(){return ee})),n.d(r,"updateTwitterAppIphoneID",(function(){return te})),n.d(r,"updateTwitterAppIphoneName",(function(){return ne})),n.d(r,"updateTwitterAppIphoneUrl",(function(){return re})),n.d(r,"updateTwitterAppIpadID",(function(){return ae})),n.d(r,"updateTwitterAppIpadName",(function(){return ie})),n.d(r,"updateTwitterAppIpadUrl",(function(){return oe})),n.d(r,"updateTwitterAppGoogleplayID",(function(){return le})),n.d(r,"updateTwitterAppGoogleplayName",(function(){return ce})),n.d(r,"updateTwitterAppGoogleplayUrl",(function(){return se})),n.d(r,"updateTwitterAppCountry",(function(){return ue})),n.d(r,"toggleLoaded",(function(){return pe})),n.d(r,"updateSelectedKeyword",(function(){return me})),n.d(r,"refreshResults",(function(){return de})),n.d(r,"setVersion",(function(){return he})),n.d(r,"toggleSchemaEditor",(function(){return Oe})),n.d(r,"toggleSchemaTemplates",(function(){return _e})),n.d(r,"setEditingSchemaId",(function(){return je})),n.d(r,"setEditorTab",(function(){return Ee})),n.d(r,"setTemplateTab",(function(){return Te})),n.d(r,"updateEditSchemas",(function(){return Se})),n.d(r,"updateSchemas",(function(){return Ie})),n.d(r,"updateEditSchema",(function(){return De})),n.d(r,"saveSchema",(function(){return Pe})),n.d(r,"deleteSchema",(function(){return Ce})),n.d(r,"saveTemplate",(function(){return Ne}));var a={};n.r(a),n.d(a,"appData",(function(){return He})),n.d(a,"appUi",(function(){return Be}));var i={};n.r(i),n.d(i,"getAppData",(function(){return Ve})),n.d(i,"getDirtyMetadata",(function(){return We})),n.d(i,"getAnalysisScore",(function(){return Ye})),n.d(i,"getKeywords",(function(){return qe})),n.d(i,"getPillarContent",(function(){return Ze})),n.d(i,"getRobots",(function(){return $e})),n.d(i,"getAdvancedRobots",(function(){return Je})),n.d(i,"getCanonicalUrl",(function(){return Qe})),n.d(i,"getBreadcrumbTitle",(function(){return Xe})),n.d(i,"getRichSnippets",(function(){return et})),n.d(i,"getShowScoreFrontend",(function(){return tt})),n.d(i,"isLoaded",(function(){return nt})),n.d(i,"getSelectedKeyword",(function(){return rt})),n.d(i,"isRefreshing",(function(){return at})),n.d(i,"isPro",(function(){return it})),n.d(i,"getFacebookTitle",(function(){return ot})),n.d(i,"getFacebookDescription",(function(){return lt})),n.d(i,"getFacebookAuthor",(function(){return ct})),n.d(i,"getFacebookImageID",(function(){return st})),n.d(i,"getFacebookImage",(function(){return ut})),n.d(i,"getFacebookHasOverlay",(function(){return pt})),n.d(i,"getFacebookImageOverlay",(function(){return mt})),n.d(i,"getPostID",(function(){return dt})),n.d(i,"getTitle",(function(){return ht})),n.d(i,"getPermalink",(function(){return ft})),n.d(i,"getDescription",(function(){return bt})),n.d(i,"getFeaturedImage",(function(){return gt})),n.d(i,"getFeaturedImageHtml",(function(){return wt})),n.d(i,"getPrimaryTermID",(function(){return yt})),n.d(i,"getRedirectionID",(function(){return vt})),n.d(i,"getRedirectionType",(function(){return kt})),n.d(i,"getRedirectionUrl",(function(){return Ot})),n.d(i,"getRedirectionItem",(function(){return _t})),n.d(i,"hasRedirect",(function(){return jt})),n.d(i,"getSerpTitle",(function(){return Tt})),n.d(i,"getSerpDescription",(function(){return St})),n.d(i,"isSnippetEditorOpen",(function(){return It})),n.d(i,"getSnippetPreviewType",(function(){return Dt})),n.d(i,"isSchemaEditorOpen",(function(){return Pt})),n.d(i,"isSchemaTemplatesOpen",(function(){return Ct})),n.d(i,"getSchemas",(function(){return Nt})),n.d(i,"getEditSchemas",(function(){return xt})),n.d(i,"getEditingSchema",(function(){return Rt})),n.d(i,"getPreviewSchema",(function(){return At})),n.d(i,"getEditorTab",(function(){return Mt})),n.d(i,"getTemplateTab",(function(){return Ft})),n.d(i,"getTwitterUseFacebook",(function(){return Ut})),n.d(i,"getTwitterCardType",(function(){return Ht})),n.d(i,"getTwitterTitle",(function(){return zt})),n.d(i,"getTwitterDescription",(function(){return Lt})),n.d(i,"getTwitterAuthor",(function(){return Gt})),n.d(i,"getTwitterImageID",(function(){return Kt})),n.d(i,"getTwitterImage",(function(){return Bt})),n.d(i,"getTwitterHasOverlay",(function(){return Vt})),n.d(i,"getTwitterImageOverlay",(function(){return Wt})),n.d(i,"getTwitterAppDescription",(function(){return Yt})),n.d(i,"getTwitterAppIphoneID",(function(){return qt})),n.d(i,"getTwitterAppIphoneName",(function(){return Zt})),n.d(i,"getTwitterAppIphoneUrl",(function(){return $t})),n.d(i,"getTwitterAppIpadID",(function(){return Jt})),n.d(i,"getTwitterAppIpadName",(function(){return Qt})),n.d(i,"getTwitterAppIpadUrl",(function(){return Xt})),n.d(i,"getTwitterAppGoogleplayID",(function(){return en})),n.d(i,"getTwitterAppGoogleplayName",(function(){return tn})),n.d(i,"getTwitterAppGoogleplayUrl",(function(){return nn})),n.d(i,"getTwitterAppCountry",(function(){return rn})),n.d(i,"getTwitterPlayerUrl",(function(){return an})),n.d(i,"getTwitterPlayerSize",(function(){return on})),n.d(i,"getTwitterPlayerStream",(function(){return ln})),n.d(i,"getTwitterPlayerStreamCtype",(function(){return cn}));var o=n(4),l=n(9),c=n(6);function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t=Object(c.applyFilters)("rank_math_sanitize_data",t,e,n),null!==r&&(r=Object(c.applyFilters)("rank_math_sanitize_meta_value",r,e,n)),r=null===r?t:r,Object(c.doAction)("rank_math_data_changed",e,t,n),{type:"RANK_MATH_APP_DATA",key:e,value:t,metaKey:n,metaValue:r}}function u(e,t){return Object(c.doAction)("rank_math_update_app_ui",e,t),{type:"RANK_MATH_APP_UI",key:e,value:t}}function p(e){return l.a.setVariable("focuskw",e.split(",")[0]),rankMathEditor.refresh("keyword"),s("keywords",e,"rank_math_focus_keyword")}function m(e){return s("pillarContent",e,"rank_math_pillar_content",!0===e?"on":"off")}function d(e){return s("showScoreFrontend",e,"rank_math_dont_show_seo_score",!0===e?"off":"on")}function h(e){return s("score",e,"rank_math_seo_score")}function f(e){return s("canonicalUrl",e,"rank_math_canonical_url")}function b(e){return s("advancedRobots",e,"rank_math_advanced_robots")}function g(e){return s("robots",e,"rank_math_robots",Object.keys(e))}function w(e){return s("breadcrumbTitle",e,"rank_math_breadcrumb_title")}function y(){return s("dirtyMetadata",{})}function v(e){return s("facebookTitle",e,"rank_math_facebook_title")}function k(e){return s("facebookDescription",e,"rank_math_facebook_description")}function O(e){return s("facebookImage",e,"rank_math_facebook_image")}function _(e){return s("facebookImageID",e,"rank_math_facebook_image_id")}function j(e){return s("facebookHasOverlay",e,"rank_math_facebook_enable_image_overlay",!0===e?"on":"off")}function E(e){return s("facebookImageOverlay",e,"rank_math_facebook_image_overlay")}function T(e){return rankMath.objectID=e,s("postID",e)}function S(e){return s("permalink",e,"permalink")}function I(e){return s("title",e,"rank_math_title")}function D(e){return s("description",e,"rank_math_description")}function P(e){return s("featuredImage",e)}function C(e,t){return s("primaryTerm",parseInt(e),"rank_math_primary_"+t)}function N(e,t){return s(e,t)}function x(e){return u("redirectionItem",e)}function R(){return u("redirectionItem",{})}function A(e){return u("hasRedirect",e)}var M=n(25);function F(e){return e=l.a.swap(""!==e?e:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),u("serpTitle",e)}function U(e){return e=l.a.swap(Object(M.a)(e)),rankMathEditor.refresh("description"),u("serpDescription",e)}function H(e){return u("isSnippetEditorOpen",e)}function z(e){return u("snippetPreviewType",e)}function L(e){return s("twitterUseFacebook",e,"rank_math_twitter_use_facebook",!0===e?"on":"off")}function G(e){return s("twitterCardType",e,"rank_math_twitter_card_type")}function K(e){return s("twitterTitle",e,"rank_math_twitter_title")}function B(e){return s("twitterDescription",e,"rank_math_twitter_description")}function V(e){return s("twitterAuthor",e,"rank_math_twitter_author")}function W(e){return s("twitterImageID",e,"rank_math_twitter_image_id")}function Y(e){return s("twitterImage",e,"rank_math_twitter_image")}function q(e){return s("twitterHasOverlay",e,"rank_math_twitter_enable_image_overlay",!0===e?"on":"off")}function Z(e){return s("twitterImageOverlay",e,"rank_math_twitter_image_overlay")}function $(e){return s("twitterPlayerUrl",e,"rank_math_twitter_player_url")}function J(e){return s("twitterPlayerSize",e,"rank_math_twitter_player_size")}function Q(e){return s("twitterPlayerStream",e,"rank_math_twitter_player_stream")}function X(e){return s("twitterPlayerStreamCtype",e,"rank_math_twitter_player_stream_ctype")}function ee(e){return s("twitterAppDescription",e,"rank_math_twitter_app_description")}function te(e){return s("twitterAppIphoneID",e,"rank_math_twitter_app_iphone_id")}function ne(e){return s("twitterAppIphoneName",e,"rank_math_twitter_app_iphone_name")}function re(e){return s("twitterAppIphoneUrl",e,"rank_math_twitter_app_iphone_url")}function ae(e){return s("twitterAppIpadID",e,"rank_math_twitter_app_ipad_id")}function ie(e){return s("twitterAppIpadName",e,"rank_math_twitter_app_ipad_name")}function oe(e){return s("twitterAppIpadUrl",e,"rank_math_twitter_app_ipad_url")}function le(e){return s("twitterAppGoogleplayID",e,"rank_math_twitter_app_googleplay_id")}function ce(e){return s("twitterAppGoogleplayName",e,"rank_math_twitter_app_googleplay_name")}function se(e){return s("twitterAppGoogleplayUrl",e,"rank_math_twitter_app_googleplay_url")}function ue(e){return s("twitterAppCountry",e,"rank_math_twitter_app_country")}function pe(e){return u("isLoaded",e)}function me(e){return u("selectedKeyword",e)}function de(){return u("refreshResults",Date.now())}function he(){return u("isPro",!0)}var fe=n(1),be=n(0),ge=n(16),we=n.n(ge);function ye(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 ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e){return u("isSchemaEditorOpen",e)}function _e(e){return u("isSchemaTemplatesOpen",e)}function je(e){return u("editingSchemaId",e)}function Ee(e){return u("editorTab",e)}function Te(e){return u("templateTab",e)}function Se(e){return u("editSchemas",e)}function Ie(e){return s("schemas",e)}function De(e,t){var n=ve({},Object(o.select)("rank-math").getEditSchemas());return n[e]=t,u("editSchemas",n)}function Pe(e,t){var n=ve({},Object(o.select)("rank-math").getSchemas());return n[e]=t,s("schemas",n)}function Ce(e){var t=ve({},Object(o.select)("rank-math").getSchemas());return delete t[e],Object(c.doAction)("rank_math_schema_trash",e),s("schemas",t,"rank_math_delete_"+e,"")}function Ne(e,t,n){return we()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:e,postId:n}}).then((function(n){t({loading:!1,showNotice:!0,postId:n.id}),setTimeout((function(){t({showNotice:!1}),Object(fe.get)(rankMath,"isTemplateScreen",!1)&&(document.title=Object(be.__)("Edit Schema","rank-math"),window.history.pushState(null,"",n.link.replace(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:e,title:e.metadata.title,type:e["@type"]})})),t({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function xe(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 Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Me=rankMath.assessor.serpData,Fe=rankMath.assessor.hasRedirection,Ue={postID:null,title:Me.title?Me.title:Me.titleTemplate,description:Me.description,keywords:Me.focusKeywords,pillarContent:Me.pillarContent,featuredImage:"",permalink:!1,primaryTerm:Me.primaryTerm,robots:Me.robots,advancedRobots:Me.advancedRobots,canonicalUrl:Me.canonicalUrl,breadcrumbTitle:Me.breadcrumbTitle,showScoreFrontend:Me.showScoreFrontend,redirectionID:Fe?Object(fe.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:Fe?Object(fe.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:Fe?Object(fe.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:Me.facebookTitle,facebookImage:Me.facebookImage,facebookImageID:Me.facebookImageID,facebookAuthor:Me.facebookAuthor,facebookDescription:Me.facebookDescription,facebookHasOverlay:Me.facebookHasOverlay,facebookImageOverlay:Me.facebookImageOverlay,twitterTitle:Me.twitterTitle,twitterImage:Me.twitterImage,twitterAuthor:Me.twitterAuthor,twitterImageID:Me.twitterImageID,twitterCardType:Me.twitterCardType,twitterUseFacebook:Me.twitterUseFacebook,twitterDescription:Me.twitterDescription,twitterHasOverlay:Me.twitterHasOverlay,twitterImageOverlay:Me.twitterImageOverlay,twitterPlayerUrl:Me.twitterPlayerUrl,twitterPlayerSize:Me.twitterPlayerSize,twitterPlayerStream:Me.twitterPlayerStream,twitterPlayerStreamCtype:Me.twitterPlayerStreamCtype,twitterAppDescription:Me.twitterAppDescription,twitterAppIphoneName:Me.twitterAppIphoneName,twitterAppIphoneID:Me.twitterAppIphoneID,twitterAppIphoneUrl:Me.twitterAppIphoneUrl,twitterAppIpadName:Me.twitterAppIpadName,twitterAppIpadID:Me.twitterAppIpadID,twitterAppIpadUrl:Me.twitterAppIpadUrl,twitterAppGoogleplayName:Me.twitterAppGoogleplayName,twitterAppGoogleplayID:Me.twitterAppGoogleplayID,twitterAppGoogleplayUrl:Me.twitterAppGoogleplayUrl,twitterAppCountry:Me.twitterAppCountry,schemas:Object(fe.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function He(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue,n=arguments.length>1?arguments[1]:void 0,r=Re({},t.dirtyMetadata);return!1!==n.metaKey&&(r[n.metaKey]=n.metaValue),"RANK_MATH_APP_DATA"===n.type?"dirtyMetadata"===n.key?Re(Re({},t),{},{dirtyMetadata:n.value}):Re(Re({},t),{},(Ae(e={},n.key,n.value),Ae(e,"dirtyMetadata",r),e)):t}function ze(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 Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&(!Object(fe.isEmpty)(Object(fe.get)(rankMath.assessor,"redirection.id",""))||!Object(fe.isEmpty)(Object(fe.get)(rankMath.assessor,"redirection.url_to",""))),serpTitle:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1};function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ke,t=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===t.type?Le(Le({},e),{},Ge({},t.key,t.value)):e}function Ve(e){return e.appData}function We(e){return e.appData.dirtyMetadata}function Ye(e){return e.appData.score}function qe(e){return e.appData.keywords}function Ze(e){return e.appData.pillarContent}function $e(e){return e.appData.robots}function Je(e){return e.appData.advancedRobots}function Qe(e){return e.appData.canonicalUrl}function Xe(e){return e.appData.breadcrumbTitle}function et(e){return"todo"}function tt(e){return e.appData.showScoreFrontend}function nt(e){return e.appUi.isLoaded}function rt(e){return e.appUi.selectedKeyword}function at(e){return e.appUi.refreshResults}function it(e){return e.appUi.isPro}function ot(e){return e.appData.facebookTitle}function lt(e){return e.appData.facebookDescription}function ct(e){return e.appData.facebookAuthor}function st(e){return e.appData.facebookImageID}function ut(e){return e.appData.facebookImage}function pt(e){return e.appData.facebookHasOverlay}function mt(e){return""!==e.appData.facebookImageOverlay?e.appData.facebookImageOverlay:"play"}function dt(e){return e.appData.postID}function ht(e){return e.appData.title}function ft(e){return e.appData.permalink}function bt(e){return e.appData.description}function gt(e){return e.appData.featuredImage}function wt(e){var t=e.appData.featuredImage;return'<img src="'.concat(t.source_url,'" alt="').concat(t.alt_text,'" >')}function yt(e){return e.appData.primaryTerm}function vt(e){return e.appData.redirectionID}function kt(e){return e.appData.redirectionType}function Ot(e){return e.appData.redirectionUrl}function _t(e){return e.appUi.redirectionItem}function jt(e){return e.appUi.hasRedirect}var Et=n(14);function Tt(e){return Object(Et.a)(e.appUi.serpTitle)}function St(e){return e.appUi.serpDescription}function It(e){return e.appUi.isSnippetEditorOpen}function Dt(e){return e.appUi.snippetPreviewType}function Pt(e){return e.appUi.isSchemaEditorOpen}function Ct(e){return e.appUi.isSchemaTemplatesOpen}function Nt(e){return e.appData.schemas}function xt(e){return e.appUi.editSchemas}function Rt(e){return{id:e.appUi.editingSchemaId,data:e.appUi.editSchemas[e.appUi.editingSchemaId]}}function At(e){return e.appData.schemas[e.appUi.editingSchemaId]}function Mt(e){return e.appUi.editorTab}function Ft(e){return e.appUi.templateTab}function Ut(e){return e.appData.twitterUseFacebook}function Ht(e){return e.appData.twitterCardType}function zt(e){return e.appData.twitterTitle}function Lt(e){return e.appData.twitterDescription}function Gt(e){return e.appData.twitterAuthor}function Kt(e){return e.appData.twitterImageID}function Bt(e){return e.appData.twitterImage}function Vt(e){return e.appData.twitterHasOverlay}function Wt(e){return""!==e.appData.twitterImageOverlay?e.appData.twitterImageOverlay:"play"}function Yt(e){return e.appData.twitterAppDescription}function qt(e){return e.appData.twitterAppIphoneID}function Zt(e){return e.appData.twitterAppIphoneName}function $t(e){return e.appData.twitterAppIphoneUrl}function Jt(e){return e.appData.twitterAppIpadID}function Qt(e){return e.appData.twitterAppIpadName}function Xt(e){return e.appData.twitterAppIpadUrl}function en(e){return e.appData.twitterAppGoogleplayID}function tn(e){return e.appData.twitterAppGoogleplayName}function nn(e){return e.appData.twitterAppGoogleplayUrl}function rn(e){return e.appData.twitterAppCountry}function an(e){return e.appData.twitterPlayerUrl}function on(e){return e.appData.twitterPlayerSize}function ln(e){return e.appData.twitterPlayerStream}function cn(e){return e.appData.twitterPlayerStreamCtype}var sn=Object(o.registerStore)("rank-math",{reducer:Object(o.combineReducers)(a),selectors:i,actions:r});function un(){return sn}},,function(e,t,n){"use strict";var r=n(1);t.a=function(e,t,n,a){return""===e||Object(r.isUndefined)(t)?t:(t=Object(r.truncate)(t,{length:n,separator:a||" "})).replace(new RegExp(function(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}(e),"gi"),(function(e){return'<mark className="highlight">'+e+"</mark>"}))}},function(e,t,n){"use strict";t.a=function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},,function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterFocusKeyword"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement("div",{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAfterEditor"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(3),a=Object(r.createSlotFill)("RankMathAdvancedTab"),i=a.Fill,o=a.Slot,l=function(e){var t=e.children,n=e.className;return wp.element.createElement(i,null,wp.element.createElement(r.PanelRow,{className:n},t))};l.Slot=o,t.a=l},function(e,t,n){"use strict";var r=n(2),a=n.n(r),i=n(8),o=n(1),l=n(6),c=n(9),s=n(14),u=function(e,t){return e=(e=i.Helpers.cleanText(e)).replace(/\r?\n|\r/g," "),t?Object(o.truncate)(e,{length:t,separator:" "}):e};t.a=function(e){var t=rankMathEditor.assessor.dataCollector.getData(),n=t.excerpt,r=function(e){if(Object(o.isEmpty)(e))return"";e=e.replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var t=Object(o.filter)(i.Helpers.matchParagraphs(e,!0,!0),(function(e){return""!==a.a.trim(e)}));if(!t.length)return"";var n=rankMathEditor.getPrimaryKeyword();if(""!==n){var r=Object(o.filter)(t,(function(e){return Object(o.includes)(e.toLowerCase(),n)}));if(0<r.length)return u(r[0],160)}return u(t[0],160)}(Object(s.a)(t.content)),p=Object(o.isUndefined)(n)||Object(o.isEmpty)(n)?r:n;if(c.a.setVariable("excerpt",p),c.a.setVariable("seo_description",p),""!==(e=Object(s.a)(Object(l.applyFilters)("rankMath/description",e))))return i.Helpers.cleanText(e);if(!Object(o.isUndefined)(n)&&!Object(o.isEmpty)(n))return i.Helpers.cleanText(n);var m=rankMath.assessor.serpData.descriptionTemplate;return Object(o.isUndefined)(m)||""===m?r:i.Helpers.cleanText(m)}},function(e,t,n){"use strict";var r=n(0),a=n(6);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rankMath.is_front_page&&(Object(a.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),Object(a.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var t,n,o;return t=e,(n=[{key:"contentLength",value:function(e){return{hasScore:e.hasScore,failed:Object(r.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:Object(r.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:Object(r.sprintf)(Object(r.__)("Content should be %1$s long.","rank-math"),'<a href="https://s.rankmath.com/100contentlength" target="_blank">'+Object(r.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&i(t.prototype,n),o&&i(t,o),e}();t.a=o},function(e,t,n){"use strict";var r=n(1),a=n(14);function i(e,t,n){var a=0;return!1!==Object(r.get)(n,"pixelWidth",!1)&&(a=Math.min(100,Math.floor(t/n.pixelWidth*100))),Math.max(Math.min(100,Math.floor(e/n.max*100)),a)+"%"}function o(e,t){return e<=t.min||e>t.max}function l(e,t){return e<=t.minWidth||e>t.pixelWidth}t.a=function(e,t){var n=Object(a.a)(e).length,c=0,s=!1;if(!1!==Object(r.get)(t,"pixelWidth",!1)){s=!0;var u=document.createTextNode(e),p=document.createElement("span");p.appendChild(u),p.id="rank-math-width-tester",p.className=t.widthCheckerClass;var m=document.body.appendChild(p);c=document.getElementById("rank-math-width-tester").offsetWidth,m.outerHTML=""}return{left:i(n,c,t),isInvalid:o(n,t),isInvalidWidth:!!s&&l(c,t),count:n+" / "+t.max,pixelWidth:s?c+"px / "+t.pixelWidth+"px":""}}},function(e,t){e.exports=Tagify},function(e,t,n){"use strict";var r=n(1);t.a=function(e,t){var n=Object(r.round)(e/t*100);if(!(100<=n))return 49<n?"test-check-good":30<n?"test-check-ok":"test-check-bad"}},function(e,t){e.exports=wp.htmlEntities},function(e,t,n){"use strict";var r=n(1);t.a=function(){return!(Object(r.isNil)(window.wp)||Object(r.isNil)(wp.data)||Object(r.isNil)(wp.data.select("core/editor"))||!Object(r.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))}},function(e,t,n){"use strict";var r=n(4),a=n(20);t.a=Object(r.withSelect)((function(e){var t=e("rank-math");return{score:t.getAnalysisScore(),isRefreshing:t.isRefreshing()}}))((function(e){var t=e.score;return wp.element.createElement("div",{className:"seo-score "+Object(a.a)(t)},wp.element.createElement("div",{className:"score-text"},t," / 100"))}))},,function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},a=l(n(34)),i=l(n(42)),o=l(n(45));function l(e){return e&&e.__esModule?e:{default:e}}var c=void 0;function s(e,t){var n,o,l,u,p,m,d,h,f=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+c);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],l=m;break}f.push(t[p.value])}else f.push(p.value);return n&&(u=function(e,t){var n,r,a=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===a.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+a.value+"`")}(l,e),d=s(e.slice(l+1,u),t),o=a.default.cloneElement(n,{},d),f.push(o),u<e.length-1&&(h=s(e.slice(u+1),t),f=f.concat(h))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,a=e.throwErrors;if(c=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,o.default)(t);try{return s(i,n)}catch(e){if(a)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},function(e,t,n){"use strict";var r=n(1),a=n(0),i=n(16),o=n.n(i),l=n(11),c=n(5),s=n(4),u=n(3);function p(e){return(p="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})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(p,e);var t,n,i,c=f(p);function p(){var e;return m(this,p),(e=c.apply(this,arguments)).onChange=e.onChange.bind(g(e)),e.state={loading:!0,availableTerms:[],selectedTerms:[]},e}return t=p,(n=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){Object(r.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(e,t){if(e.selectedTermIds.length<this.props.selectedTermIds.length){var n=Object(r.difference)(this.props.selectedTermIds,e.selectedTermIds)[0];if(!this.termIsAvailable(n))return void this.fetchTerms()}e.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),t.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(e){return!!this.state.availableTerms.find((function(t){return t.id===e}))}},{key:"updateSelectedTerms",value:function(e,t){this.setState({selectedTerms:this.filterSelectedTerms(e,t)})}},{key:"handleSelectedTermsChange",value:function(){var e=this.state.selectedTerms,t=this.props.primaryTermID;e.find((function(e){return e.id===t}))||this.onChange(e.length?e[0].id:"")}},{key:"fetchTerms",value:function(){var e=this,t=this.props.taxonomy;t&&(this.fetchRequest=o()({path:Object(l.addQueryArgs)("/wp/v2/".concat(t.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(t){e.fetchRequest=null,e.setState({loading:!1,availableTerms:t,selectedTerms:e.filterSelectedTerms(t,e.props.selectedTermIds)})}),(function(t){"abort"!==t.statusText&&(e.fetchRequest=null,e.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(e,t){return e.filter((function(e){return t.includes(e.id)}))}},{key:"onChange",value:function(e){Object(s.dispatch)("rank-math").updatePrimaryTermID(e,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.selectedTermIds!==e.selectedTermIds||this.props.primaryTermID!==e.primaryTermID||this.state.selectedTerms!==t.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(u.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(u.SelectControl,{label:Object(a.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(e){return{value:e.id,label:Object(r.unescape)(e.name)}})),onChange:this.onChange})}}])&&d(t.prototype,n),i&&d(t,i),p}(c.Component);t.a=y},,function(e,t,n){"use strict";var r=n(0),a=n(4),i=n(6),o=n(5),l=n(10),c=n.n(l),s=n(1),u=n(7),p=n(3);function m(e){return(m="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})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function k(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var O=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,i=k(e,["tabId","onClick","children","selected"]);return wp.element.createElement(p.Button,v({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},i),r)},_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(i,e);var t,n,r,a=g(i);function i(){var e;h(this,i),(e=a.apply(this,arguments)).handleClick=function(t){var n=e.props.onSelect,r=void 0===n?s.noop:n;e.setState({selected:t}),r(t)},e.onNavigate=function(e,t){t.click()},e.toggle=function(){e.setState((function(e){return{isOpen:!e.isOpen}}))};var t=e.props,n=t.tabs,r=t.initialTabName;return e.state={isOpen:!1,selected:r||(n.length>0?n[0].name:null)},e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state.selected,n=this.props,r=n.activeClass,a=void 0===r?"is-active":r,i=n.className,o=n.instanceId,l=n.orientation,u=void 0===l?"horizontal":l,m=n.tabs,h=Object(s.find)(m,{name:t}),f=o+"-"+h.name,b=m.slice(4);return wp.element.createElement("div",{className:i},wp.element.createElement(p.NavigableMenu,{role:"tablist",orientation:u,onNavigate:this.onNavigate,className:"components-tab-panel__tabs"},m.slice(0,4).map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})),!Object(s.isEmpty)(b)&&wp.element.createElement(p.Button,{onClick:this.toggle,"aria-expanded":this.state.isOpen,className:c()("components-tab-panel__tabs-item",{active:this.state.isOpen})},wp.element.createElement("i",{className:"rm-icon rm-icon-plus"}),wp.element.createElement("span",null,"More")),this.state.isOpen&&wp.element.createElement("div",{className:"rank-math-extra-menu"},b.map((function(n){return wp.element.createElement(O,{className:c()("components-tab-panel__tabs-item",n.className,d({},a,n.name===t)),tabId:o+"-"+n.name,"aria-controls":o+"-"+n.name+"-view",selected:n.name===t,key:n.name,onClick:Object(s.partial)(e.handleClick,n.name)},n.title)})))),h&&wp.element.createElement("div",{"aria-labelledby":f,role:"tabpanel",id:f+"-view",className:"components-tab-panel__tab-content"},this.props.children(h)))}}])&&f(t.prototype,n),r&&f(t,r),i}(o.Component),j=Object(u.withInstanceId)(_),E=n(27),T=function(e){var t=Object(E.a)(e.source,e),n=t.pixelWidth?" (".concat(t.pixelWidth,")"):"";return wp.element.createElement("span",{className:c()("length-indicator-wrapper",{invalid:t.isInvalid})},wp.element.createElement("span",{className:"length-count"},t.count,n),wp.element.createElement("span",{className:"length-indicator"},wp.element.createElement("span",{style:{left:t.left}})))},S=n(30),I=n(36),D=n.n(I),P=function(e){var t=e.tags,n=e.components,r=e.children;return n=n||{},!1===Object(s.isUndefined)(t)&&(t=t.split(",")).forEach((function(e){var t=e;n[e]=wp.element.createElement(t,null)})),D()({mixedString:r,components:n})};function C(e){return(C="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})(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=F(e);if(t){var a=F(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(l,e);var t,n,a,i=R(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={},t.state.variables=t.getFiltered(),t.state.filtered=t.state.variables,t.state.display="none",t.state.isOpen=!1,t.handleOutsideClick=t.handleOutsideClick.bind(M(t)),t}return t=l,(n=[{key:"getFiltered",value:function(){var e=this.props.exclude,t=Object.values(rankMath.variables);return Object(s.isUndefined)(e)?t:t.filter((function(t){return!e.includes(t.variable)}))}},{key:"render",value:function(){var e=this;return wp.element.createElement(o.Fragment,null,wp.element.createElement("div",{className:"rank-math-variables-dropdown",style:{display:this.state.display},ref:function(t){e.node=t}},wp.element.createElement(p.TextControl,{autoComplete:"off",placeholder:Object(S.decodeEntities)(Object(r.__)("Search …","rank-math")),onChange:function(t){e.handleSearch(t)}}),wp.element.createElement("ul",null,this.state.filtered.map((function(t,n){return wp.element.createElement("li",{key:n,"data-var":t.variable,role:"presentation",onClick:function(){e.props.onClick(t)}},wp.element.createElement("strong",null,t.name),wp.element.createElement("span",null,wp.element.createElement(P,{tags:"strong"},t.description.replace("<strong>","{{strong}}").replace("</strong>","{{/strong}}"))))}),this))),wp.element.createElement(p.Button,{icon:"arrow-down-alt2",onClick:function(){e.toggle()}}))}},{key:"toggle",value:function(){this.state.isOpen?document.removeEventListener("click",this.handleOutsideClick,!1):document.addEventListener("click",this.handleOutsideClick,!1),this.setState({display:this.state.isOpen?"none":"block",isOpen:!this.state.isOpen})}},{key:"handleOutsideClick",value:function(e){this.node.contains(e.target)||this.toggle()}},{key:"handleSearch",value:function(e){var t=e.toLowerCase();2>t.length?this.setState({filtered:this.state.variables}):this.setState({filtered:this.state.variables.filter((function(e){return-1!==Object.values(e).join(" ").toLowerCase().indexOf(t)}))})}}])&&N(t.prototype,n),a&&N(t,a),l}(o.Component),H=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{title:t.getTitle(),serpTitle:t.getSerpTitle()}})),Object(a.withDispatch)((function(e){return{updateTitle:function(t){e("rank-math").updateSerpTitle(t),e("rank-math").updateTitle(t)}}})))((function(e){var t=e.title,n=e.serpTitle,a=e.updateTitle;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-title"},Object(r.__)("Title","rank-math")),wp.element.createElement(T,{source:n,min:15,max:60,pixelWidth:580,widthCheckerClass:"title"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextControl,{id:"rank-math-editor-title",value:t,placeholder:rankMath.assessor.serpData.titleTemplate,help:Object(r.__)("This is what will appear in the first line when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(U,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),z=n(8),L=n(11),G=Object(u.compose)(Object(a.withSelect)((function(){var e=rankMathEditor.assessor.dataCollector;return{permalink:e.getSlug(),serpPermalink:e.getPermalink()}})),Object(a.withDispatch)((function(){return{updatePermalink:function(e){rankMathEditor.updatePermalink(z.Helpers.sanitizeText(e))},updatePermalinkSanitize:function(e){rankMathEditor.updatePermalinkSanitize(z.Helpers.sanitizeText(e))}}})))((function(e){var t=e.permalink,n=e.serpPermalink,a=e.updatePermalink,i=e.updatePermalinkSanitize;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-permalink"},Object(r.__)("Permalink","rank-math")),wp.element.createElement(T,{source:Object(L.safeDecodeURIComponent)(n),min:5,max:75}),wp.element.createElement(p.TextControl,{id:"rank-math-editor-permalink",value:rankMath.is_front_page?"/":Object(L.safeDecodeURIComponent)(t),onChange:a,help:rankMath.is_front_page?Object(r.__)("Editing Homepage permalink is not possible.","rank-math"):Object(r.__)("This is the unique URL of this page, displayed below the post title in the search results.","rank-math"),disabled:rankMath.is_front_page?"disabled":"",onBlur:function(e){i(e.target.value)}}))})),K=n(14),B=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{description:t.getDescription(),serpDescription:t.getSerpDescription()}})),Object(a.withDispatch)((function(e){return{updateDescription:function(t){e("rank-math").updateSerpDescription(t),e("rank-math").updateDescription(t)}}})))((function(e){var t=e.description,n=e.serpDescription,a=e.updateDescription;return wp.element.createElement("div",{className:"field-group"},wp.element.createElement("label",{htmlFor:"rank-math-editor-description"},Object(r.__)("Description","rank-math")),wp.element.createElement(T,{source:n,min:80,max:160,pixelWidth:920,widthCheckerClass:"description"}),wp.element.createElement("div",{className:"variable-group"},wp.element.createElement(p.TextareaControl,{id:"rank-math-editor-description",value:Object(K.a)(t),placeholder:n||rankMath.assessor.serpData.descriptionTemplate,help:Object(r.__)("This is what will appear as the description when this post shows up in the search results.","rank-math"),onChange:a}),wp.element.createElement(U,{exclude:["seo_title","seo_description"],onClick:function(e){return a(t+" %"+e.variable+"%")}})))})),V=Object(u.compose)(Object(a.withSelect)((function(e){return{type:e("rank-math").getSnippetPreviewType()}})),Object(a.withDispatch)((function(e,t){return{updatePreviewType:function(n){e("rank-math").updateSnippetPreviewType(n===t.type?"":n)}}})))((function(e){var t=e.type,n=e.updatePreviewType,r=c()("button button-secondary button-small",{active:"desktop"===t}),a=c()("button button-secondary button-small",{active:"mobile"===t});return wp.element.createElement("div",{className:"rank-math-button-devices alignright"},wp.element.createElement("div",{onClick:function(){return n("desktop")},className:r},wp.element.createElement("i",{className:"rm-icon rm-icon-desktop"})),wp.element.createElement("div",{onClick:function(){return n("mobile")},className:a},wp.element.createElement("i",{className:"rm-icon rm-icon-mobile"})))})),W=n(32),Y=n(19),q=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},Z=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return Object(s.includes)(["Book","Course","Product","Recipe","Software"],e["@type"])}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},q(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},q(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))})),$=function(e,t){for(var n=[],r=1;r<=e;r++)n.push(wp.element.createElement(p.Dashicon,{key:Math.random(),size:"13",icon:"star-"+t}));return n},J=Object(a.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schema:Object(s.find)(t,(function(e){return Object(s.includes)(["Event"],e["@type"])}))}}))((function(e){var t=e.schema;if(Object(s.isEmpty)(t))return null;var n=Object(s.get)(t,"review.reviewRating",{}),a=n.ratingValue;if(Object(s.isEmpty)(a))return null;Object(s.get)(n,"worstRating",1);var i=Object(s.get)(n,"bestRating",5);return wp.element.createElement("div",{className:"rank-math-rating-preview"},wp.element.createElement("div",{className:"serp-ratings"},$(i,"filled"),function(e,t,n){return e*=100/n,wp.element.createElement("div",{className:"serp-result",style:{width:e+"%"}},$(n,"filled"))}(a,0,i)),wp.element.createElement("span",{className:"serp-rating-label"},Object(r.__)("Rating: ","rank-math")),wp.element.createElement("span",{className:"serp-rating-value"},a))}));function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getRobots();return{title:t.getSerpTitle(),permalink:rankMathEditor.assessor.dataCollector.getPermalink(),description:t.getSerpDescription(),previewType:t.getSnippetPreviewType(),isNoIndex:"noindex"in n,keyword:t.getSelectedKeyword().data.value}}))((function(e){var t,n=e.title,a=e.permalink,i=e.description,o=e.previewType,l=void 0===o?"desktop":o,s=e.isNoIndex,u=e.keyword,p=e.onClick,m=e.showScore,d=void 0===m||m,h=e.showDevices,f=void 0!==h&&h,b=c()("serp-preview",(Q(t={"expanded-preview":""!==l},"".concat(l,"-preview"),""!==l&&f),Q(t,"noindex-preview",s),t)),g=rankMathEditor.assessor.getResearch("slugify")(u);return wp.element.createElement("div",{className:b},wp.element.createElement("div",{className:"serp-preview-title","data-title":Object(r.__)("Preview","rank-math"),"data-desktop":Object(r.__)("Desktop Preview","rank-math"),"data-mobile":Object(r.__)("Mobile Preview","rank-math")},d&&wp.element.createElement(W.a,null)," ",f&&wp.element.createElement(V,null)),wp.element.createElement("div",{className:"serp-preview-wrapper"},wp.element.createElement("div",{className:"serp-preview-bg"},wp.element.createElement("div",{className:"serp-preview-input"},wp.element.createElement("input",{type:"text",value:u||Object(r.__)("Rank Math","rank-math"),disabled:!0}),wp.element.createElement("span",{className:"serp-icon-search"},wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}))),wp.element.createElement("span",{className:"serp-icon-mic"})),wp.element.createElement("div",{className:"serp-preview-menus"},wp.element.createElement("ul",null,wp.element.createElement("li",{className:"current"},wp.element.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxwYXRoIGZpbGw9IiMzNEE4NTMiIGQ9Ik0xMCAydjJhNiA2IDAgMCAxIDYgNmgyYTggOCAwIDAgMC04LTh6Ii8+PHBhdGggZmlsbD0iI0VBNDMzNSIgZD0iTTEwIDRWMmE4IDggMCAwIDAtOCA4aDJjMC0zLjMgMi43LTYgNi02eiIvPjxwYXRoIGZpbGw9IiNGQkJDMDQiIGQ9Ik00IDEwSDJhOCA4IDAgMCAwIDggOHYtMmMtMy4zIDAtNi0yLjY5LTYtNnoiLz48cGF0aCBmaWxsPSIjNDI4NUY0IiBkPSJNMjIgMjAuNTlsLTUuNjktNS42OUE3Ljk2IDcuOTYgMCAwIDAgMTggMTBoLTJhNiA2IDAgMCAxLTYgNnYyYzEuODUgMCAzLjUyLS42NCA0Ljg4LTEuNjhsNS42OSA1LjY5TDIyIDIwLjU5eiIvPjwvc3ZnPgo=",alt:"","data-atf":"1"}),Object(r.__)("All","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M14 13l4 5H6l4-4 1.79 1.78L14 13zm-6.01-2.99A2 2 0 0 0 8 6a2 2 0 0 0-.01 4.01zM22 5v14a3 3 0 0 1-3 2.99H5c-1.64 0-3-1.36-3-3V5c0-1.64 1.36-3 3-3h14c1.65 0 3 1.36 3 3zm-2.01 0a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h7v-.01h7a1 1 0 0 0 1-1V5z"}))," ",Object(r.__)("Images","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{clipRule:"evenodd",d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{clipRule:"evenodd",d:"M10 16.5l6-4.5-6-4.5v9zM5 20h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1zm14.5 2H5a3 3 0 0 1-3-3V4.4A2.4 2.4 0 0 1 4.4 2h15.2A2.4 2.4 0 0 1 22 4.4v15.1a2.5 2.5 0 0 1-2.5 2.5z",fillRule:"evenodd"}))," ",Object(r.__)("Videos","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),wp.element.createElement("path",{d:"M12 11h6v2h-6v-2zm-6 6h12v-2H6v2zm0-4h4V7H6v6zm16-7.22v12.44c0 1.54-1.34 2.78-3 2.78H5c-1.64 0-3-1.25-3-2.78V5.78C2 4.26 3.36 3 5 3h14c1.64 0 3 1.25 3 2.78zM19.99 12V5.78c0-.42-.46-.78-1-.78H5c-.54 0-1 .36-1 .78v12.44c0 .42.46.78 1 .78h14c.54 0 1-.36 1-.78V12zM12 9h6V7h-6v2z"}))," ",Object(r.__)("News","rank-math")),wp.element.createElement("li",null,wp.element.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))," ","More")),wp.element.createElement("ul",{className:"menus-right"},wp.element.createElement("li",null,Object(r.__)("Settings","rank-math")),wp.element.createElement("li",null,Object(r.__)("Tools","rank-math")))),wp.element.createElement("div",{className:"serp-preview-result-stats"},Object(r.__)("About 43,700,000 results (0.32 seconds) ","rank-math"))),wp.element.createElement("div",{className:"serp-preview-body",role:"button",tabIndex:0,onClick:function(){p&&p()}},wp.element.createElement("div",{className:"group"},wp.element.createElement("h5",{className:"serp-title",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,z.Helpers.sanitizeText(n),60)}})),wp.element.createElement("div",{className:"group"},wp.element.createElement("img",{src:rankMath.siteFavIcon,width:"16",height:"16",className:"serp-preview-favicon",alt:""}),wp.element.createElement("div",{className:"serp-url",dangerouslySetInnerHTML:{__html:Object(Y.a)(g,z.Helpers.sanitizeText(Object(L.safeDecodeURIComponent)(a)),75,/-? +/)}})),wp.element.createElement(Z,null),wp.element.createElement("div",{className:"group"},wp.element.createElement("div",{className:"serp-description",dangerouslySetInnerHTML:{__html:Object(Y.a)(u,z.Helpers.sanitizeText(i),160)}})),wp.element.createElement(J,null)),wp.element.createElement("div",{className:"serp-preview-noindex"},wp.element.createElement("h3",null,Object(r.__)("Noindex robots meta is enabled","rank-math")),wp.element.createElement("p",null,Object(r.__)("This page will not appear in search results. You can disable noindex in the Advanced tab.","rank-math")))))})),ee=Object(a.withSelect)((function(e){return{isNoIndex:"noindex"in e("rank-math").getRobots()}}))((function(){return wp.element.createElement("div",{className:"rank-math-editor-general"},wp.element.createElement(X,{showScore:!1,showDevices:!0}),wp.element.createElement(H,null),wp.element.createElement(G,null),wp.element.createElement(B,null))})),te=n(9),ne=function(e){var t=c()("rank-math-social-preview","rank-math-social-preview-"+e.network,e.cardType);return wp.element.createElement("div",{className:t},wp.element.createElement("div",{className:"rank-math-social-preview-item"},wp.element.createElement("div",{className:"rank-math-social-preview-meta"},wp.element.createElement("div",{className:"social-profile-image"}),e.children),wp.element.createElement("div",{className:"rank-math-social-preview-item-wrapper"},wp.element.createElement("div",{className:"rank-math-social-preview-image"},wp.element.createElement("img",{className:"rank-math-social-image-thumbnail",src:e.image,alt:""}),e.hasOverlay&&e.imageOverlay&&wp.element.createElement("img",{src:rankMath.overlayImages[e.imageOverlay].url,className:"rank-math-social-preview-image-overlay overlay-position-"+rankMath.overlayImages[e.imageOverlay].position,alt:""})),wp.element.createElement("div",{className:"rank-math-social-preview-caption"},"facebook"===e.network&&wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},e.siteurl),wp.element.createElement("h3",{className:"rank-math-social-preview-title"},e.title?te.a.swap(e.title):e.serpTitle),wp.element.createElement("p",{className:"rank-math-social-preview-description"},e.description?te.a.swap(e.description):e.serpDescription),"twitter"===e.network&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h4",{className:"rank-math-social-preview-publisher"},wp.element.createElement(p.Dashicon,{icon:"admin-links"}),e.siteurl))))))},re=n(12),ae=function(e){return wp.element.createElement("div",{className:"components-base-control field-group"},wp.element.createElement(re.MediaUpload,{allowedTypes:["image"],multiple:!1,value:e.imageID,render:function(t){var n=t.open;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{onClick:n,className:"button",isPrimary:!0},e.imageID>0?Object(r.__)("Replace Image","rank-math"):Object(r.__)("Add Image","rank-math")),e.imageID>0&&wp.element.createElement(p.Button,{className:"button",isDestructive:!0,isLink:!0,onClick:e.removeImage},Object(r.__)("Remove Image","rank-math")))},onSelect:e.updateImage}),wp.element.createElement("p",{className:"components-base-control__help"},Object(r.__)("Upload at least 600x315px image. Recommended size is 1200x630px.","rank-math")),wp.element.createElement("div",{className:"notice notice-warning inline hidden"},wp.element.createElement("p",null,Object(r.__)("Image is smaller than the minimum size, please select a different image.","rank-math"))))};function ie(){var e=rankMath.overlayImages,t=[];return Object.keys(e).forEach((function(n){t.push({label:e[n].name,value:n})})),t}function oe(){return(oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var le=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=function(){if(t.getFacebookImage())return t.getFacebookImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{title:t.getFacebookTitle(),description:t.getFacebookDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getFacebookAuthor(),image:n,imageID:t.getFacebookImageID(),hasOverlay:t.getFacebookHasOverlay(),imageOverlay:t.getFacebookImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateFacebookImage(""),e("rank-math").updateFacebookImageID(0),e("rank-math").updateFacebookHasOverlay(!1)},updateImage:function(t){e("rank-math").updateFacebookImage(t.url),e("rank-math").updateFacebookImageID(t.id)},updateTitle:function(t){e("rank-math").updateFacebookTitle(t)},updateDescription:function(t){e("rank-math").updateFacebookDescription(t)},updateImageOverlay:function(t){e("rank-math").updateFacebookImageOverlay(t)},toggleOverlay:function(t){e("rank-math").updateFacebookHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ne,oe({},e,{network:"facebook",siteurl:rankMath.parentDomain}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName),wp.element.createElement("div",{className:"social-time"},wp.element.createElement("span",null,Object(r.__)("2 hrs","rank-math")),wp.element.createElement("span",null,wp.element.createElement(p.Dashicon,{icon:"admin-site",size:"12"})))),wp.element.createElement("div",{className:"notice notice-alt notice-info components-base-control"},wp.element.createElement("p",null,Object(r.__)("Customize the title, description and images of your post used while sharing on Facebook and Twitter.","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/kb/meta-box-social-tab/",target:"_blank",rel:"noreferrer noopener"},Object(r.__)("Read more","rank-math")))),wp.element.createElement(ae,e),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ie(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Facebook, it might get you penalised if over-used.","rank-math"))))))})),ce=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{country:t.getTwitterAppCountry(),description:t.getTwitterAppDescription(),iphoneName:t.getTwitterAppIphoneName(),iphoneID:t.getTwitterAppIphoneID(),iphoneUrl:t.getTwitterAppIphoneUrl(),ipadName:t.getTwitterAppIpadName(),ipadID:t.getTwitterAppIpadID(),ipadUrl:t.getTwitterAppIpadUrl(),googleplayName:t.getTwitterAppGoogleplayName(),googleplayID:t.getTwitterAppGoogleplayID(),googleplayUrl:t.getTwitterAppGoogleplayUrl()}})),Object(a.withDispatch)((function(e){return{updateAppIphoneName:function(t){e("rank-math").updateTwitterAppIphoneName(t)},updateAppIphoneID:function(t){e("rank-math").updateTwitterAppIphoneID(t)},updateAppIphoneUrl:function(t){e("rank-math").updateTwitterAppIphoneUrl(t)},updateAppIpadName:function(t){e("rank-math").updateTwitterAppIpadName(t)},updateAppIpadID:function(t){e("rank-math").updateTwitterAppIpadID(t)},updateAppIpadUrl:function(t){e("rank-math").updateTwitterAppIpadUrl(t)},updateAppGoogleplayName:function(t){e("rank-math").updateTwitterAppGoogleplayName(t)},updateAppGoogleplayID:function(t){e("rank-math").updateTwitterAppGoogleplayID(t)},updateAppGoogleplayUrl:function(t){e("rank-math").updateTwitterAppGoogleplayUrl(t)},updateAppDescription:function(t){e("rank-math").updateTwitterAppDescription(t)},updateAppCountry:function(t){e("rank-math").updateTwitterAppCountry(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.description,label:Object(r.__)("App Description","rank-math"),help:Object(r.__)("You can use this as a more concise description than what you may have on the app store. This field has a maximum of 200 characters. (optional)","rank-math"),onChange:e.updateAppDescription}),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.iphoneName,label:Object(r.__)("iPhone App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIphoneName}),wp.element.createElement(p.TextControl,{value:e.iphoneID,label:Object(r.__)("iPhone App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIphoneID}),wp.element.createElement(p.TextControl,{value:e.iphoneUrl,label:Object(r.__)("iPhone App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIphoneUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.ipadName,label:Object(r.__)("iPad App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppIpadName}),wp.element.createElement(p.TextControl,{value:e.ipadID,label:Object(r.__)("iPad App ID","rank-math"),help:Object(r.__)("The numeric representation of your app ID in the App Store.","rank-math"),onChange:e.updateAppIpadID}),wp.element.createElement(p.TextControl,{value:e.ipadUrl,label:Object(r.__)("iPad App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppIpadUrl}))}(e),function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.googleplayName,label:Object(r.__)("Google Play App Name","rank-math"),help:Object(r.__)("The name of your app to show.","rank-math"),onChange:e.updateAppGoogleplayName}),wp.element.createElement(p.TextControl,{value:e.googleplayID,label:Object(r.__)("Google Play App ID","rank-math"),help:Object(r.__)("Your app ID in the Google Play (.i.e. com.android.app)","rank-math"),onChange:e.updateAppGoogleplayID}),wp.element.createElement(p.TextControl,{value:e.googleplayUrl,label:Object(r.__)("Google Play App URL","rank-math"),help:Object(r.__)("Your app's custom URL scheme (must include ://).","rank-math"),onChange:e.updateAppGoogleplayUrl}))}(e),wp.element.createElement(p.TextControl,{value:e.country,label:Object(r.__)("App Country","rank-math"),help:Object(r.__)("If your application is not available in the US App Store, you must set this value to the two-letter country code for the App Store that contains your application.","rank-math"),onChange:e.updateAppCountry}))})),se=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{url:t.getTwitterPlayerUrl(),size:t.getTwitterPlayerSize(),stream:t.getTwitterPlayerStream(),ctype:t.getTwitterPlayerStreamCtype()}})),Object(a.withDispatch)((function(e){return{updatePlayerUrl:function(t){e("rank-math").updateTwitterPlayerUrl(t)},updatePlayerSize:function(t){e("rank-math").updateTwitterPlayerSize(t)},updatePlayerStreamUrl:function(t){e("rank-math").updateTwitterPlayerStreamUrl(t)},updatePlayerStreamCtype:function(t){e("rank-math").updateTwitterPlayerStreamCtype(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TextControl,{value:e.url,label:Object(r.__)("Player URL","rank-math"),help:Object(r.__)("HTTPS URL to iFrame player. This must be a HTTPS URL which does not generate active mixed content warnings in a web browser. The audio or video player must not require plugins such as Adobe Flash.","rank-math"),onChange:e.updatePlayerUrl}),wp.element.createElement(p.TextControl,{value:e.size,label:Object(r.__)("Player Size","rank-math"),help:Object(r.__)("iFrame width and height, specified in pixels in the following format: 600x400.","rank-math"),onChange:e.updatePlayerSize}),wp.element.createElement(p.TextControl,{value:e.stream,label:Object(r.__)("Stream URL","rank-math"),help:Object(r.__)("Optional URL to raw stream that will be rendered in Twitter’s mobile applications directly. If provided, the stream must be delivered in the MPEG-4 container format (the .mp4 extension). The container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile (BP), Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile (LC).","rank-math"),onChange:e.updatePlayerStreamUrl}),wp.element.createElement(p.TextControl,{value:e.ctype,label:Object(r.__)("Stream Content Type","rank-math"),help:Object(r.__)("The MIME type/subtype combination that describes the content contained in twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are those defined in RFC 4337 (MIME Type Registration for MP4).","rank-math"),onChange:e.updatePlayerStreamCtype}))}));function ue(){return(ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var pe=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook(),r=function(){if(n&&t.getFacebookImage())return t.getFacebookImage();if(t.getTwitterImage())return t.getTwitterImage();var e=t.getFeaturedImage();return Object(s.isUndefined)(e)||""===e?rankMath.defautOgImage:t.getFeaturedImage().source_url}();return{useFacebook:n,cardType:t.getTwitterCardType(),title:n?t.getFacebookTitle():t.getTwitterTitle(),description:n?t.getFacebookDescription():t.getTwitterDescription(),serpTitle:t.getSerpTitle(),serpDescription:t.getSerpDescription(),author:t.getTwitterAuthor(),image:r,imageID:n?t.getFacebookImageID():t.getTwitterImageID(),hasOverlay:n?t.getFacebookHasOverlay():t.getTwitterHasOverlay(),imageOverlay:n?t.getFacebookImageOverlay():t.getTwitterImageOverlay()}})),Object(a.withDispatch)((function(e){return{removeImage:function(){e("rank-math").updateTwitterImage(""),e("rank-math").updateTwitterImageID(0),e("rank-math").updateTwitterHasOverlay(!1)},updateImage:function(t){e("rank-math").updateTwitterImage(t.url),e("rank-math").updateTwitterImageID(t.id)},updateTitle:function(t){e("rank-math").updateTwitterTitle(t)},updateDescription:function(t){e("rank-math").updateTwitterDescription(t)},updateImageOverlay:function(t){e("rank-math").updateTwitterImageOverlay(t)},toggleUseFacebook:function(t){e("rank-math").updateTwitterUseFacebook(t)},updateCardType:function(t){e("rank-math").updateTwitterCardType(t)},toggleOverlay:function(t){e("rank-math").updateTwitterHasOverlay(t)}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(ne,ue({},e,{network:"twitter",siteurl:rankMath.parentDomain,classes:e.cardType,description:Object(s.truncate)(e.description?e.description:e.serpDescription,{length:240,separator:" "})}),wp.element.createElement("div",{className:"social-name"},rankMath.assessor.serpData.authorName,wp.element.createElement("span",{className:"social-username"},"@",e.author),wp.element.createElement("span",{className:"social-time"},Object(r.__)("2h","rank-math"))),wp.element.createElement("div",{className:"social-text"},Object(r.__)("The card for your website will look little something like this!","rank-math"))),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Use Data from Facebook Tab","rank-math"),checked:e.useFacebook,onChange:e.toggleUseFacebook})),wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.SelectControl,{value:e.cardType,label:Object(r.__)("Card Type","rank-math"),options:[{value:"summary_large_image",label:Object(r.__)("Summary Card with Large Image","rank-math")},{value:"summary_card",label:Object(r.__)("Summary Card","rank-math")},{value:"app",label:Object(r.__)("App Card","rank-math")},{value:"player",label:Object(r.__)("Player Card","rank-math")}],onChange:e.updateCardType})),"player"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. Player Cards must be submitted for approval before they can be used. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/player",target:"blank"},"https://dev.twitter.com/cards/types/player"))),"app"===e.cardType&&wp.element.createElement("div",{className:"notice notice-alt notice-info"},wp.element.createElement("p",null,Object(r.sprintf)(Object(r.__)("The App Card is a great way to represent mobile applications on Twitter and to drive installs. More information: ","rank-math"))," ",wp.element.createElement("a",{href:"https://dev.twitter.com/cards/types/app",target:"blank"}," https://dev.twitter.com/cards/types/app"))),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement(ae,e),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextControl,{label:Object(r.__)("Title","rank-math"),value:e.title,placeholder:e.serpTitle,onChange:e.updateTitle})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.TextareaControl,{label:Object(r.__)("Description","rank-math"),value:e.description,placeholder:e.serpDescription,onChange:e.updateDescription})),!e.useFacebook&&"app"!==e.cardType&&wp.element.createElement("div",{className:"field-group"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Add icon overlay to thumbnail","rank-math"),checked:e.hasOverlay,onChange:e.toggleOverlay}),wp.element.createElement("div",{className:e.hasOverlay?"components-base-control":"hidden"},wp.element.createElement(p.SelectControl,{value:e.imageOverlay,label:Object(r.__)("Icon overlay","rank-math"),options:ie(),onChange:e.updateImageOverlay}),wp.element.createElement("div",{className:"notice notice-alt notice-warning"},wp.element.createElement("p",null,Object(r.__)("Please be careful with this option. Although this option will help increase CTR on Twitter, it might get you penalised if over-used.","rank-math"))))),"player"===e.cardType&&wp.element.createElement(se,null),"app"===e.cardType&&wp.element.createElement(ce,null))})),me=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.TabPanel,{className:"rank-math-editor-social",activeClass:"is-active",tabs:[{name:"facebook",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"facebook-alt"}),Object(r.__)("Facebook","rank-math")),view:le,className:"button-facebook"},{name:"twitter",title:wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Dashicon,{icon:"twitter"}),Object(r.__)("Twitter","rank-math")),view:pe,className:"button-twitter"}]},(function(e){return Object(o.createElement)(e.view)})))},de=n(2),he=n.n(de);function fe(e){return(fe="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})(e)}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ke(e);if(t){var a=ke(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ye(this,n)}}function ye(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?ve(e):t}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ge(e,t)}(l,e);var t,n,a,i=we(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this))._handleRef=e._handleRef.bind(ve(e)),e}return t=l,(n=[{key:"componentDidMount",value:function(){var e=he()(this.component),t=e.find(".stars a"),n=e.find(".smiley");t.on("mouseenter",(function(){var e=he()(this).index();t.removeClass("highlighted"),t.slice(0,e+1).addClass("highlighted"),e<2?n.removeClass("normal happy").addClass("angry"):e>3?n.removeClass("normal angry").addClass("happy"):n.removeClass("happy angry").addClass("normal")}))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){for(var e=this,t=[],n=1;n<=5;n++)t.push(wp.element.createElement("a",{key:n,href:"https://s.rankmath.com/wpreview",target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"dashicons dashicons-star-filled"})));return wp.element.createElement("div",{className:"ask-review",ref:this._handleRef},wp.element.createElement("h3",null,Object(r.__)("Rate Rank Math SEO","rank-math")),wp.element.createElement("p",null,wp.element.createElement(P,{tags:"em"},Object(r.__)("Hey, we noticed you are using Rank Math SEO plugin for more than 2 weeks –{{em}}that's awesome!{{/em}} Could you please do us a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?","rank-math"))),wp.element.createElement("div",{className:"stars-wrapper"},wp.element.createElement("div",{className:"face"},wp.element.createElement("div",{className:"smiley happy"},wp.element.createElement("div",{className:"eyes"},wp.element.createElement("div",{className:"eye"}),wp.element.createElement("div",{className:"eye"})),wp.element.createElement("div",{className:"mouth"}))),wp.element.createElement("div",{className:"stars"},t)),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,wp.element.createElement("span",null,Object(r.__)("I already did. Please don't show this message again.","rank-math"))),onChange:function(){return e.alreadyReviewed()}}))}},{key:"alreadyReviewed",value:function(){he.a.ajax({url:rankMath.ajaxurl,data:{action:"rank_math_already_reviewed",security:rankMath.security}}),rankMath.pluginReviewed=!0;var e=he()(this.component);e.animate({opacity:.01},1500,(function(){var t=he()(".rank-math-editor > .components-tab-panel__tabs > button");t.first().click(),t.last().remove(),e.remove()}))}}])&&be(t.prototype,n),a&&be(t,a),l}(o.Component),_e=Object(p.withFilters)("rankMath.analytics.reportButton")((function(){return null})),je=Object(u.compose)(Object(a.withSelect)((function(e){return{isOpen:e("rank-math").isSnippetEditorOpen()}})),Object(a.withDispatch)((function(e,t){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!t.isOpen)}}})))((function(e){var t=e.isOpen,n=e.initialTab,a=void 0===n?"":n,i=e.toggleEditor,l=[{name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings"}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:ee},{name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social"}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:me}];return rankMath.showReviewTab&&!1===rankMath.pluginReviewed&&l.push({name:"review",className:"review-tab",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-heart-filled"})),view:Oe}),wp.element.createElement(o.Fragment,null,wp.element.createElement(p.Button,{isPrimary:!0,className:"rank-math-edit-snippet",onClick:i},Object(r.__)("Edit Snippet","rank-math")),wp.element.createElement(_e,null),t&&wp.element.createElement(p.Modal,{title:"Preview Snippet Editor",closeButtonLabel:Object(r.__)("Close","rank-math"),shouldCloseOnClickOutside:!1,onRequestClose:i,className:"rank-math-modal",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement(p.TabPanel,{className:"rank-math-tabs rank-math-editor",activeClass:"is-active",initialTabName:a,tabs:l},(function(e){return Object(o.createElement)(e.view)}))))})),Ee=function(){return wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(p.BaseControl,{className:"rank-math-social"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Social Media Preview","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Here you can view and edit the thumbnail, title and description that will be displayed when your site is shared on social media.","rank-math")),wp.element.createElement("p",{className:"cmb2-metabox-description"},Object(r.__)("Click on the button below to view and edit the preview.","rank-math")),wp.element.createElement(je,{buttonLabel:Object(r.__)("Preview & Edit Social Media","rank-math"),initialTab:"social"})))},Te=Object(u.withInstanceId)((function(e){var t=e.className,n=e.instanceId,r=e.children,a="rank-math-tooltip-"+n,i=c()("rank-math-tooltip",t);return wp.element.createElement("span",{className:i},wp.element.createElement("input",{id:a,type:"checkbox"}),wp.element.createElement("label",{htmlFor:a,className:"dashicons-before dashicons-editor-help"}),wp.element.createElement("div",{className:"rank-math-tooltip-content"},r))})),Se=n(29);function Ie(e){return(Ie="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})(e)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Re(e);if(t){var a=Re(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Re(e){return(Re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}(l,e);var t,n,a,i=Ne(l);function l(){return De(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.isLoaded!==this.props.isLoaded||e.selectedKeyword.index!==this.props.selectedKeyword.index||e.isRefreshing!==this.props.isRefreshing}},{key:"render",value:function(){var e=this,t=rankMathEditor.getSelectedKeyword();return this.results=rankMathEditor.resultManager.getResult(t),this.isPrimary=0===this.props.selectedKeyword.index,Object(s.isUndefined)(this.results)?null:Object.keys(this.getGroups()).map((function(t){return e.renderGroup(t)}))}},{key:"renderGroup",value:function(e){this.errors=0;var t=this.renderGroupItems(e);return wp.element.createElement(p.PanelBody,{key:"panel-"+e,title:wp.element.createElement(o.Fragment,null,this.getGroupTitle(e),0===this.errors?wp.element.createElement("span",{className:"rank-math-group-score test-ok"},Object(r.__)("All Good","rank-math")):wp.element.createElement("span",{className:"rank-math-group-score test-fail"},this.errors," ",Object(r.__)("Errors","rank-math"))),initialOpen:"basic"===e,className:"rank-math-checklist"},wp.element.createElement("ul",null,t))}},{key:"renderGroupItems",value:function(e){var t=this,n=this.results.results,r=this.getGroupItems(e);return Object.keys(r).map((function(e){if(Object(s.isUndefined)(n[e])||!t.isPrimary&&r[e])return!1;var a=n[e],i=c()("seo-check-"+e,{"test-ok":a.hasScore(),"test-fail":!a.hasScore()});return a.hasScore()&&["contentHasAssets","lengthContent","keywordDensity"].includes(e)&&(i+=" "+Object(Se.a)(a.getScore(),a.getMaxScore())),!1===a.hasScore()&&(t.errors+=1),wp.element.createElement("li",{key:e,className:i},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:a.getText()}}),a.hasTooltip()?wp.element.createElement(Te,null,a.getTooltip()):null)}))}},{key:"getGroupItems",value:function(e){return{basic:{keywordInTitle:!0,keywordInMetaDescription:!0,keywordInPermalink:!0,keywordIn10Percent:!0,keywordInContent:!1,lengthContent:!1},advanced:{keywordInSubheadings:!1,keywordInImageAlt:!0,keywordDensity:!1,lengthPermalink:!1,linksHasExternals:!1,linksNotAllExternals:!1,linksHasInternal:!1,keywordNotUsed:!0},"title-readability":{titleStartWithKeyword:!0,titleSentiment:!1,titleHasPowerWords:!1,titleHasNumber:!1},"content-readability":{contentHasTOC:!1,contentHasShortParagraphs:!1,contentHasAssets:!1}}[e]}},{key:"getGroupTitle",value:function(e){return this.getGroups()[e]}},{key:"getGroups",value:function(){return{basic:Object(r.__)("Basic SEO","rank-math"),advanced:Object(r.__)("Additional","rank-math"),"title-readability":Object(r.__)("Title Readability","rank-math"),"content-readability":Object(r.__)("Content Readability","rank-math")}}}])&&Pe(t.prototype,n),a&&Pe(t,a),l}(o.Component),Me=Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isRefreshing:t.isRefreshing(),selectedKeyword:t.getSelectedKeyword()}}))(Ae),Fe=n(22),Ue=Object(a.withSelect)((function(e){return{isPro:e("rank-math").isPro()}}))((function(e){return e.isPro?rankMath.isUserRegistered?wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:"https://rankmath.com/kb/score-100-in-tests/",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Read here to {{link}}Score 100/100{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.adminurl+"?page=rank-math&view=help",target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Activate your account by {{link}}connecting to Rank Math!{{/link}} ","rank-math"))):wp.element.createElement(p.Notice,{status:"warning",isDismissible:!1},wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.futureSeo,target:"_blank",rel:"noopener noreferrer"}),strong:wp.element.createElement("strong",null)}},Object(r.__)("Want more? {{link}}{{strong}}Upgrade today to the PRO{{/strong}}{{/link}} version.","rank-math")))})),He=n(28),ze=n.n(He);function Le(e){return(Le="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})(e)}function Ge(){return(Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var a=qe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return We(this,n)}}function We(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?Ye(e):t}function Ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ze=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(i,e);var t,n,r,a=Ve(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e))._handleRef=t._handleRef.bind(Ye(t)),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.tagify=new ze.a(this.component,this.props.settings||{}),this.props.settings.callbacks.setup&&setTimeout((function(){e.props.settings.callbacks.setup.call(e.tagify),e.tagify.DOM.input.setAttribute("contenteditable",!0),e.tagify.DOM.input.addEventListener("blur",e.props.settings.callbacks.blur)}),100)}},{key:"shouldComponentUpdate",value:function(e){return this.tagify.settings.whitelist=e.settings.whitelist,e.showDropdown&&this.tagify.dropdown.show.call(this.tagify,e.showDropdown),!1===e.showDropdown&&this.tagify.dropdown.hide.call(this.tagify,!0),!1}},{key:"_handleRef",value:function(e){this.component=e}},{key:"render",value:function(){var e={ref:this._handleRef,name:this.props.name,autoFocus:this.props.autofocus,className:this.props.className,placeholder:this.props.placeholder};return"textarea"===this.props.mode?wp.element.createElement("textarea",Ge({},e,{defaultValue:this.props.initialValue})):wp.element.createElement("input",Ge({},e,{defaultValue:this.props.initialValue}))}},{key:"toArray",value:function(){return this.tagify.value.map((function(e){return e.value}))}},{key:"toString",value:function(){return this.toArray().join(",")}},{key:"queryTags",value:function(){return this.tagify.DOM.scope.querySelectorAll("tag")}}])&&Ke(t.prototype,n),r&&Ke(t,r),i}(o.Component);function $e(e){return($e="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})(e)}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qe(e,t){return(Qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nt(e);if(t){var a=nt(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return et(this,n)}}function et(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?tt(e):t}function tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qe(e,t)}(l,e);var t,n,a,i=Xe(l);function l(e){var t,n=e.keywords;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this)).state={},t.request=null,t.hasAdded=!1,t.clickCount=0,t.singleClickTimer=null,t.tagifyField=Object(o.createRef)(),t.keywords=n,t.hideDropdown=t.hideDropdown.bind(tt(t)),window.rankMathEditor.focusKeywordField=tt(t),t}return t=l,(n=[{key:"render",value:function(){var e=this,t={add:this.onAdd.bind(this),remove:this.onRemove.bind(this),edit:this.onEdit.bind(this),click:this.onClick.bind(this),setup:this.onSetup.bind(this),blur:this.hideDropdown};rankMath.isUserRegistered&&(t.input=Object(s.debounce)(this.onInput.bind(this),300));var n={addTagOnBlur:!0,maxTags:rankMath.maxTags,whitelist:this.state.whitelist||[],transformTag:function(t){t.value=e.stripTags(t.value)},templates:{tag:function(t,n){return"<tag title='".concat(e.stripTags(t),"'\n contenteditable='false'\n spellcheck='false'\n class='tagify__tag ").concat(n.class?n.class:"","'\n ").concat(e.getAttributes_esc(n),">\n <x title='' class='tagify__tag__removeBtn' role='button' aria-label='remove tag'></x>\n <div>\n <span class='tagify__tag-text'>").concat(e.stripTags(t),"</span>\n </div>\n </tag>")}},callbacks:t};return this.setKeywordsClasses(),wp.element.createElement(Ze,{ref:this.tagifyField,mode:"input",settings:n,showDropdown:this.state.showDropdown,initialValue:this.keywords,placeholder:Object(r.__)("Example: Rank Math SEO","rank-math")})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.showDropdown!==t.showDropdown||e.isRefreshing!==this.props.isRefreshing||e.keywords!==this.props.keywords}},{key:"getScoreClass",value:function(e){return 80<e?"good-fk":50<e?"ok-fk":"bad-fk"}},{key:"setKeywordsClasses",value:function(){var e=this;if(null!==this.tagifyField.current){var t=this.tagifyField.current,n=t.tagify.value;if(n.length>0){var r=t.queryTags();n.map((function(t,n){var a=rankMathEditor.resultManager.getScore(z.Helpers.removeDiacritics(t.value));r[n].classList.remove("ok-fk","good-fk","bad-fk"),r[n].classList.add(e.getScoreClass(a))}))}}}},{key:"onSetup",value:function(){this.selectFirstKeyword(),this.setKeywordsClasses()}},{key:"onInput",value:function(e){var t=this;(e=Object(s.has)(e.detail,"value")?e.detail.value:e.detail.data.value).length<2||(this.hideDropdown(),this.hasAdded?this.hasAdded=!1:this.request=he.a.ajax({url:rankMath.keywordsApi.url,data:{keyword:e,locale:rankMath.locale},success:function(n){if(t.hasAdded)t.hasAdded=!1;else{var r=he.a.map(n,(function(e){return e}));t.setState({whitelist:r,showDropdown:e})}}}))}},{key:"onAdd",value:function(e){this.hasAdded=!0,0===e.detail.index&&this.props.updateSelectedKeyword(e.detail,this.tagifyField.current),this.updateKeywords()}},{key:"onRemove",value:function(e){this.hideDropdown(),0===e.detail.index&&this.onSetup(),rankMathEditor.resultManager.deleteResult(e.detail.data.value),this.selectFirstKeyword(),this.updateKeywords()}},{key:"onClick",value:function(e){var t=this;this.clickCount++,1===this.clickCount?this.singleClickTimer=setTimeout((function(){t.clickCount=0,t.props.updateSelectedKeyword(e.detail,t.tagifyField.current)}),400):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0)}},{key:"onEdit",value:function(){this.hasAdded=!0,this.updateKeywords()}},{key:"selectFirstKeyword",value:function(){var e=this.tagifyField.current,t=e.tagify.value,n={tag:"",index:0,data:{value:""}};t.length>0&&(n={tag:e.queryTags()[0],index:0,data:{value:t[0].value}}),this.props.updateSelectedKeyword(n,e)}},{key:"updateKeywords",value:function(){var e=this.tagifyField.current,t=this.stripTags(e.toString());this.props.updateKeywords(t)}},{key:"hideDropdown",value:function(){null!==this.request&&(this.request.abort(),this.request=null),this.setState({whitelist:[],showDropdown:!1})}},{key:"getAttributes_esc",value:function(e){if("[object Object]"!=Object.prototype.toString.call(e))return"";var t,n,r=Object.keys(e),a="";for(n=r.length;n--;)"class"!=(t=r[n])&&e.hasOwnProperty(t)&&e[t]&&(a+=" "+t+(e[t]?'="'.concat(this.stripTags(e[t]),'"'):""));return a}},{key:"stripTags",value:function(e){return e=he()("<textarea />").html(e).text(),((new DOMParser).parseFromString(e,"text/html").body.textContent||"").replace(/["<>]/g,"")||""}}])&&Je(t.prototype,n),a&&Je(t,a),l}(o.Component),at=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{keywords:t.getKeywords(),isRefreshing:t.isRefreshing()}})),Object(a.withDispatch)((function(e){return{updateKeywords:function(t){e("rank-math").updateKeywords(t)},updateSelectedKeyword:function(t,n){n.queryTags().forEach((function(e){e.classList.remove("selected")})),""!==t.tag&&t.tag.classList.add("selected"),e("rank-math").updateSelectedKeyword(t)}}})))(rt),it=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),isPillarContent:t.getPillarContent()}})),Object(a.withDispatch)((function(e){return{togglePillarContent:function(t){e("rank-math").updatePillarContent(t)}}})))((function(e){var t=e.isLoaded,n=e.isPillarContent,a=e.togglePillarContent;return t?wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-focus-keyword"},wp.element.createElement("h2",{className:"components-panel__body-title"},Object(r.__)("Focus Keyword","rank-math"),wp.element.createElement(Te,null,wp.element.createElement(P,{components:{link:wp.element.createElement("a",{href:rankMath.assessor.hundredScoreLink,target:"_blank",rel:"noopener noreferrer"})}},Object(r.__)("Insert keywords you want to rank for. Try to {{link}}attain 100/100 points{{/link}} for better chances of ranking.","rank-math")))),!rankMath.isPro&&wp.element.createElement("a",{href:"https://rankmath.com/pricing/?utm_source=Plugin&utm_medium=Gutenberg%20General%20Tab%20Trends&utm_campaign=WP",title:Object(r.__)("Google Trends","rank-math"),target:"_blank",rel:"noreferrer noopener",id:"rank-math-compare-keywords-trigger",className:"button button-icon rank-math-compare-keywords-trigger",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon}}),wp.element.createElement(Fe.a.Slot,null,(function(e){return e.length>0?e:[]})),wp.element.createElement("div",null,wp.element.createElement(at,null)),wp.element.createElement(Ue,null),wp.element.createElement(p.CheckboxControl,{className:"pillar-content",label:wp.element.createElement(o.Fragment,null,wp.element.createElement("strong",null,Object(r.__)("This post is Pillar Content","rank-math")),wp.element.createElement(Te,null,Object(r.__)("Select one or more Pillar Content posts for each post tag or category to show them in the Link Suggestions meta box.","rank-math"))),checked:n,onChange:a})):null})),ot=n(23),lt=Object(a.withDispatch)((function(e){return{toggleEditor:function(){e("rank-math").toggleSnippetEditor(!0)}}}))((function(e){var t=e.toggleEditor;return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(X,{onClick:t}),wp.element.createElement(je,null),wp.element.createElement(ot.a.Slot,null,(function(e){return e.length>0?e:[]}))),wp.element.createElement(it,null),rankMath.canUser.analysis&&wp.element.createElement(Me,null))})),ct=function(e,t,n){return!1===n?delete e[t]:e[t]=!0,e},st=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getRobots();return{robots:t,isRobotIndex:"index"in t,isRobotNoIndex:"noindex"in t,isRobotNoFollow:"nofollow"in t,isRobotNoArchive:"noarchive"in t,isRobotNoImageIndex:"noimageindex"in t,isRobotNoSnippet:"nosnippet"in t}})),Object(a.withDispatch)((function(e,t){var n=t.robots;return{updateRobots:function(t,r){n=ct(n,t,r),"index"===t&&(n=ct(n,"noindex",!r)),"noindex"===t&&(n=ct(n,"index",!r)),e("rank-math").updateRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list"},wp.element.createElement(p.CheckboxControl,{className:"robot-choice-index",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Instructs search engines to index and show these pages in the search results","rank-math"))),checked:e.isRobotIndex,onChange:function(t){return e.updateRobots("index",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents pages from being indexed and displayed in search engine result pages","rank-math"))),checked:e.isRobotNoIndex,onChange:function(t){return e.updateRobots("noindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nofollow",label:wp.element.createElement(o.Fragment,null,Object(r.__)("Nofollow","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents search engines from following links on the pages","rank-math"))),checked:e.isRobotNoFollow,onChange:function(t){return e.updateRobots("nofollow",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noarchive",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Archive","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents search engines from showing Cached links for pages","rank-math"))),checked:e.isRobotNoArchive,onChange:function(t){return e.updateRobots("noarchive",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-noimageindex",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Image Index","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Lets you specify that you do not want your pages to appear as the referring page for images that appear in image search results","rank-math"))),checked:e.isRobotNoImageIndex,onChange:function(t){return e.updateRobots("noimageindex",t)}}),wp.element.createElement(p.CheckboxControl,{className:"robot-choice-nosnippet",label:wp.element.createElement(o.Fragment,null,Object(r.__)("No Snippet","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Prevents a snippet from being shown in the search results","rank-math"))),checked:e.isRobotNoSnippet,onChange:function(t){return e.updateRobots("nosnippet",t)}})))}));function ut(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 pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math");return{redirectionID:t.getRedirectionID(),redirectionUrl:t.getRedirectionUrl(),redirectionType:t.getRedirectionType(),hasRedirect:t.hasRedirect()}})),Object(a.withDispatch)((function(e,t){return{toggle:function(){e("rank-math").updateHasRedirect(!t.hasRedirect),e("rank-math").updateRedirectionItem(pt(pt({},t),{},{hasRedirect:!t.hasRedirect}))},updateRedirection:function(n,r){e("rank-math").updateRedirection(n,r),e("rank-math").updateRedirectionItem(pt(pt({},t),{},mt({},n,r)))}}})))((function(e){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.ToggleControl,{className:e.hasRedirect?"is-open":"is-close",label:Object(r.__)("Redirect","rank-math"),checked:e.hasRedirect,onChange:function(){return e.toggle()}}),wp.element.createElement(p.SelectControl,{label:Object(r.__)("Redirection Type","rank-math"),className:e.hasRedirect?"":"hidden",value:e.redirectionType,onChange:function(t){return e.updateRedirection("redirectionType",t)},options:[{value:"301",label:Object(r.__)("301 Permanent Move","rank-math")},{value:"302",label:Object(r.__)("302 Temporary Move","rank-math")},{value:"307",label:Object(r.__)("307 Temporary Redirect","rank-math")},{value:"410",label:Object(r.__)("410 Content Deleted","rank-math")},{value:"451",label:Object(r.__)("451 Content Unavailable for Legal Reasons","rank-math")}]}),!1===["410","451"].includes(e.redirectionType)&&wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",label:Object(r.__)("Destination URL","rank-math"),value:e.redirectionUrl,placeholder:"https://rankmath.com/",className:e.hasRedirect?"":"hidden",onChange:function(t){return e.updateRedirection("redirectionUrl",t)}}),wp.element.createElement(p.TextControl,{type:"hidden",value:e.redirectionID,className:"hidden"}))})),ht=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math"),n=rankMathEditor.assessor.dataCollector;return{placeholder:t.getCanonicalUrl()?t.getCanonicalUrl():n.getPermalink()?n.getPermalink():"https://rankmath.com/",canonicalUrl:t.getCanonicalUrl()}})),Object(a.withDispatch)((function(e){return{onUrlChange:function(t){e("rank-math").updateCanonicalUrl(t)}}})))((function(e){var t=e.canonicalUrl,n=e.placeholder,a=e.onUrlChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-canonical"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Canonical URL","rank-math"),wp.element.createElement(Te,null,Object(r.__)("The canonical URL informs search crawlers which page is the main page if you have double content","rank-math"))),wp.element.createElement(p.TextControl,{type:"url",autoComplete:"off",value:t,placeholder:n,onChange:function(e){return a(e)}}))})),ft=Object(u.compose)(Object(a.withSelect)((function(e){return{title:e("rank-math").getBreadcrumbTitle()}})),Object(a.withDispatch)((function(e){return{onTitleChange:function(t){e("rank-math").updateBreadcrumbTitle(t)}}})))((function(e){var t=e.title,n=e.onTitleChange;return wp.element.createElement(p.BaseControl,{className:"rank-math-breadcrumb-title"},wp.element.createElement("span",{className:"components-base-control__label"},Object(r.__)("Breadcrumb Title","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Breadcrumb Title to use for this post","rank-math"))),wp.element.createElement(p.TextControl,{value:t,onChange:function(e){return n(e)}}))}));function bt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt={"max-snippet":-1,"max-video-preview":-1,"max-image-preview":"large"},vt=Object(u.compose)(Object(a.withSelect)((function(e){var t=e("rank-math").getAdvancedRobots(),n=gt({},t);return Object(s.defaults)(n,yt),{meta:t,isSnippet:"max-snippet"in t,isImage:"max-image-preview"in t,isVideo:"max-video-preview"in t,maxSnippet:n["max-snippet"],maxImage:n["max-image-preview"],maxVideo:n["max-video-preview"]}})),Object(a.withDispatch)((function(e,t){var n=gt({},t.meta);return{updateRobots:function(t,r){Object(s.isBoolean)(r)?!1===r?delete n[t]:n[t]=yt[t]:n[t]=r,e("rank-math").updateAdvancedRobots(n)}}})))((function(e){return wp.element.createElement(p.BaseControl,{className:"rank-math-robots",id:"rank-math-robots",label:Object(r.__)("Advanced Robots Meta","rank-math")},wp.element.createElement("div",{className:"rank-math-robots-list advanced-robots"},wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Snippet","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum text-length, in characters, of a snippet for your page","rank-math"))),checked:e.isSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxSnippet,onChange:function(t){return e.updateRobots("max-snippet",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Video Preview","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum duration in seconds of an animated video preview","rank-math"))),checked:e.isVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.TextControl,{type:"number",value:e.maxVideo,onChange:function(t){return e.updateRobots("max-video-preview",t)}}),wp.element.createElement(p.CheckboxControl,{label:wp.element.createElement(o.Fragment,null,Object(r.__)("Max Image Preview","rank-math"),wp.element.createElement(Te,null,Object(r.__)("Specify a maximum size of image preview to be shown for images on this page","rank-math"))),checked:e.isImage,onChange:function(t){return e.updateRobots("max-image-preview",t)}}),wp.element.createElement(p.SelectControl,{value:e.maxImage,onChange:function(t){return e.updateRobots("max-image-preview",t)},options:[{value:"large",label:Object(r.__)("Large","rank-math")},{value:"standard",label:Object(r.__)("Standard","rank-math")},{value:"none",label:Object(r.__)("None","rank-math")}]})))})),kt=Object(u.compose)(Object(a.withSelect)((function(e){return{showScore:e("rank-math").getShowScoreFrontend()}})),Object(a.withDispatch)((function(e){return{toggleScore:function(t){e("rank-math").toggleFrontendScore(t)}}})))((function(e){var t=e.showScore,n=e.toggleScore;return wp.element.createElement(p.BaseControl,{className:"rank-math-frontend-score"},wp.element.createElement(p.ToggleControl,{label:Object(r.__)("Show SEO Score on Front-end","rank-math"),checked:t,onChange:n}))})),Ot=n(24),_t=function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(st,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(vt,null)),wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ht,null)),rankMath.assessor.hasBreadcrumb&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(ft,null)),rankMath.assessor.hasRedirection&&wp.element.createElement(p.PanelBody,{initialOpen:!0,className:"rank-math-redirect"},wp.element.createElement(dt,null)),rankMath.frontEndScore&&wp.element.createElement(p.PanelBody,{initialOpen:!0},wp.element.createElement(kt,null)),wp.element.createElement(Ot.a.Slot,null,(function(e){return e.length>0?e:[]})))},jt=function(e){"social"===e&&Object(a.dispatch)("rank-math").toggleSnippetEditor(!0)};t.a=function(){return wp.element.createElement(j,{className:"rank-math-tabs",activeClass:"is-active",tabs:(e=[],rankMath.canUser.general&&e.push({name:"general",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-settings",title:Object(r.__)("General","rank-math")}),wp.element.createElement("span",null,Object(r.__)("General","rank-math"))),view:lt,className:"rank-math-general-tab"}),rankMath.canUser.advanced&&e.push({name:"advanced",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-toolbox",title:Object(r.__)("Advanced","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Advanced","rank-math"))),view:_t,className:"rank-math-advanced-tab"}),rankMath.canUser.social&&e.push({name:"social",title:wp.element.createElement(o.Fragment,null,wp.element.createElement("i",{className:"rm-icon rm-icon-social",title:Object(r.__)("Social","rank-math")}),wp.element.createElement("span",null,Object(r.__)("Social","rank-math"))),view:Ee,className:"rank-math-social-tab"}),Object(i.applyFilters)("rank_math_sidebar_tabs",e)),onSelect:jt},(function(e){return wp.element.createElement("div",{className:"rank-math-tab-content-"+e.name},Object(o.createElement)(e.view))}));var e}},function(e,t,n){"use strict";var r=n(8),a=n(6),i=n(17),o=n(1),l=n(0),c=n(4);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer=new r.Analyzer({i18n:l,analyses:rankMath.assessor.researchesTests}),this.dataCollector=t,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),Object(a.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),Object(a.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),Object(a.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var t,n,u;return t=e,(n=[{key:"updateKeywordResult",value:function(e,t){rankMathEditor.resultManager.update(e,{keywordNotUsed:t}),e===this.getSelectedKeyword()&&Object(c.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(e,t){return"schemas"===t||Object(o.isObject)(e)||Object(o.isEmpty)(e)?e:r.Helpers.sanitizeAppData(e)}},{key:"getPaper",value:function(e){var t=Object(i.a)().getState(),n=this.dataCollector.getData(),l=new r.Paper("",{locale:rankMath.localeFull});return l.setTitle(t.appUi.serpTitle),l.setPermalink(n.slug),l.setDescription(t.appUi.serpDescription),l.setUrl(n.permalink),l.setText(Object(a.applyFilters)("rank_math_content",n.content)),l.setKeyword(e),Object(o.isUndefined)(n.featuredImage)||(l.setThumbnail(n.featuredImage.source_url),l.setThumbnailAltText(r.Helpers.removeDiacritics(n.featuredImage.alt_text))),l}},{key:"registerRefresh",value:function(){var e=this;this.refresh=Object(o.debounce)((function(t){var n=Object(i.a)().getState();if(!1!==n.appUi.isLoaded){var o=n.appData.keywords.split(","),l=[];Object(a.doAction)("rank_math_"+t+"_refresh"),o.map((function(t,n){var a=e.getPaper(r.Helpers.removeDiacritics(t)),i=0===n?rankMath.assessor.researchesTests:e.getSecondaryKeywordTests();l.push(e.analyzer.analyzeSome(i,a).then((function(e){rankMathEditor.resultManager.update(a.getKeyword(),e,0===n),0===n&&Object(c.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(l).then((function(){Object(c.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var e=Object(i.a)().getState().appData.keywords;return r.Helpers.removeDiacritics(e.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var e=Object(i.a)().getState(),t=""!==e.appUi.selectedKeyword.data.value?e.appUi.selectedKeyword.data.value:e.appData.keywords.split(",")[0];return r.Helpers.removeDiacritics(t)}},{key:"getResearch",value:function(e){return this.analyzer.researcher.getResearch(e)}}])&&s(t.prototype,n),u&&s(t,u),e}(),p=n(26);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"setup",value:function(e){Object(i.a)(),this.resultManager=new r.ResultManager,this.assessor=new u(e),new p.a,Object(a.doAction)("rank_math_loaded")}},{key:"refresh",value:function(e){this.assessor.refresh(e)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(e){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(e){throw"Implement the function"}}])&&m(t.prototype,n),o&&m(t,o),e}();t.a=d},function(e,t){e.exports=wp.editPost},function(e,t,n){"use strict";var r=n(34),a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(35),o=n(43),l=n(44),c="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===a)return n(r,e,""===t?"."+s(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)p+=u(i=e[d],m+s(i,d),n,r);else{var h=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(h){0;for(var f,b=h.call(e),g=0;!(f=b.next()).done;)p+=u(i=f.value,m+s(i,g++),n,r)}else if("object"===l){0;var w=""+e;o(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var d,h,f=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},g=function(e){var t=this;o(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function y(e,t,n){var a,o,l=e.result,c=e.keyPrefix,s=e.func,u=e.context,p=s.call(u,t,e.count++);Array.isArray(p)?v(p,l,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(a=p,o=c+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(a,{key:o},void 0!==a.props?a.props.children:void 0)),l.push(p))}function v(e,t,n,r,a){var i="";null!=n&&(i=m(n)+"/");var o=w.getPooled(t,i,r,a);!function(e,t,n){null==e||u(e,"",t,n)}(e,y,o),w.release(o)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},(h=w).instancePool=[],h.getPooled=d||f,h.poolSize||(h.poolSize=10),h.release=g;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;o(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)v(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var r=n(35);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t){e.exports=wp.plugins},,,,,function(e,t,n){var r=n(34);function a(e){return r.createElement("svg",e,r.createElement("g",{fill:"#fff"},[r.createElement("path",{d:"m462 234.84-76.17 3.43 13.43 21-127 81.18-126-52.93-146.26 60.97 10.14 24.34 136.1-56.71 128.57 54 138.69-88.61 13.43 21z",key:0}),r.createElement("path",{d:"m54.1 312.78 92.18-38.41 4.49 1.89v-54.58h-96.67zm210.9-223.57v235.05l7.26 3 89.43-57.05v-181zm-105.44 190.79 96.67 40.62v-165.19h-96.67z",key:1})]))}a.defaultProps={viewBox:"0 0 462.03 462.03",width:"20",className:"rank-math-icon"},e.exports=a,a.default=a},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(2),a=n.n(r),i=n(0),o=n(4),l=n(5),c=n(46),s=n(6),u=n(41),p=n(39),m=n(40),d=n(1),h=n(16),f=n.n(h),b=n(11),g=n(9),w=n(31);function y(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize=!1,this.isSavingRedirection=!1,this.isSavingSchemas=!1,this.oldSlug=!1,this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.isSavingPost=this.isSavingPost.bind(this),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var t,n,r;return t=e,(n=[{key:"collectGutenbergData",value:function(){if(Object(w.a)())return this._coreEditorSelect||(this._coreEditorSelect=Object(o.select)("core/editor")),!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return this._coreEditorSelect.getCurrentPostId()}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(b.safeDecodeURIComponent)(this._coreEditorSelect.getPermalink())}},{key:"getSlug",value:function(){var e=this.getPostAttribute("generated_slug");return"auto-draft"!==e&&"en"===rankMath.locale||(e=""),Object(b.safeDecodeURIComponent)(this.getPostAttribute("slug")||e)}},{key:"getFeaturedImage",value:function(){var e=this.getPostAttribute("featured_media");if(this.isValidMediaId(e)){var t=Object(o.select)("core").getMedia(e);if(!Object(d.isUndefined)(t))return t}}},{key:"isValidMediaId",value:function(e){return"number"==typeof e&&0<e}},{key:"getPostAttribute",value:function(e){return Object(w.a)()?(this._coreEditorSelect||(this._coreEditorSelect=Object(o.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(e)):""}},{key:"subscribeToGutenberg",value:function(){this.subscriber=Object(d.debounce)(this.refresh,500),Object(o.subscribe)(this.subscriber),Object(o.subscribe)(this.isSavingPost)}},{key:"refresh",value:function(){var e=v({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(e)}},{key:"isSavingPost",value:function(){var e=Object(o.select)("core/editor");if(!e.isAutosavingPost()&&e.isSavingPost()){var t=Object(o.select)("rank-math").getDirtyMetadata();Object(d.isEmpty)(t)||(f()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t}}),Object(o.dispatch)("rank-math").resetDirtyMetadata()),"publish"===this.getPostAttribute("status")&&(this.saveRedirection(),this.autoCreateRedirectionNotice()),this.saveSchemas()}}},{key:"saveSchemas",value:function(){var e=this;if(!this.isSavingSchemas){var t=Object(o.select)("rank-math").getSchemas();if(!Object(d.isEmpty)(t)&&!Object(d.isEqual)(t,Object(d.get)(rankMath,"schemas",{}))){this.isSavingSchemas=!0;var n=Object(o.select)("rank-math").getEditSchemas();f()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:this.getPostID(),objectType:rankMath.objectType,schemas:t}}).then((function(r){if(!Object(d.isEmpty)(r)){var a=v({},t),i=v({},n);Object(d.map)(r,(function(e,t){a["schema-"+e]=v({},a[t]),i["schema-"+e]=v({},i[t]),delete a[t],delete i[t]})),Object(o.dispatch)("rank-math").updateSchemas(a),Object(o.dispatch)("rank-math").updateEditSchemas(i)}setTimeout((function(){e.isSavingSchemas=!1}),2e3)}))}}}},{key:"saveRedirection",value:function(){var e=this;if(!this.isSavingRedirection){var t=Object(o.select)("rank-math").getRedirectionItem();if(!Object(d.isEmpty)(t)){this.isSavingRedirection=!0,t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink();var n=Object(o.dispatch)("rank-math"),r=Object(o.dispatch)("core/notices");n.resetRedirection(),f()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?(r.createInfoNotice(t.message,{id:"redirectionNotice"}),n.updateRedirection("redirectionID",0)):"update"===t.action?r.createInfoNotice(t.message,{id:"redirectionNotice"}):"new"===t.action&&(n.updateRedirection("redirectionID",t.id),r.createSuccessNotice(t.message,{id:"redirectionNotice"})),setTimeout((function(){e.isSavingRedirection=!1,r.removeNotice("redirectionNotice")}),2e3)}))}}}},{key:"autoCreateRedirectionNotice",value:function(){if(rankMath.assessor.hasRedirection&&Object(d.get)(rankMath,["assessor","autoCreateRedirection"],!1)&&!Object(o.select)("core/editor").isEditedPostNew()&&!1!==this.oldSlug){var e=this.getSlug();if(this.oldSlug!==e){var t=Object(o.dispatch)("core/notices");this.oldSlug=e,t.createSuccessNotice(Object(i.__)("Auto redirection created.","rank-math"),{id:"redirectionAutoCreationNotice"}),setTimeout((function(){t.removeNotice("redirectionAutoCreationNotice")}),2e3)}}}},{key:"handleEditorChange",value:function(e){var t=this,n={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if(Object(d.isInteger)(e.id))return this.initialize?void Object(d.forEach)(n,(function(n,r){t._data[r]!==e[r]&&t[n](t._data[r])})):(this.initialize=!0,Object(d.forEach)(n,(function(e,n){t[e](t._data[n])})),void rankMathEditor.refresh("init"));Object(o.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(e){Object(o.dispatch)("rank-math").updatePostID(e),Object(o.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(e){g.a.setVariable("title",e),g.a.setVariable("term",e),g.a.setVariable("author",e),Object(o.dispatch)("rank-math").updateSerpTitle(Object(o.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(e){g.a.setVariable("excerpt",e),g.a.setVariable("excerpt_only",e),g.a.setVariable("wc_shortdesc",e),g.a.setVariable("seo_description",e),Object(o.dispatch)("rank-math").updateSerpDescription(Object(o.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(e){Object(o.dispatch)("rank-math").updateFeaturedImage(e),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){Object(o.dispatch)("rank-math").updateSerpDescription(Object(o.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&O(t.prototype,n),r&&O(t,r),e}(),j=n(10),E=n.n(j),T=n(51),S=n.n(T),I=n(32),D=n(20);function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=Object(o.withSelect)((function(e){var t=e("rank-math");return{isLoaded:t.isLoaded(),score:t.getAnalysisScore()}}))((function(e){var t,n=e.isLoaded,r=e.score,a=E()("rank-math-toolbar-score",(P(t={},Object(D.a)(r),!0),P(t,"loading",!n),t));return wp.element.createElement("div",{className:a},wp.element.createElement(I.a,null),wp.element.createElement(S.a,null))})),N=n(3),x=Object(o.withSelect)((function(e){var t=e("rank-math"),n=t.getTwitterUseFacebook()?t.getFacebookTitle():t.getTwitterTitle();return Object(d.isEmpty)(n)&&(n=t.getSerpTitle()),{title:n,permalink:e("core/editor").getPermalink()}}))((function(e){var t=e.title,n=e.permalink,r=encodeURI(n),a=encodeURI(t);return wp.element.createElement(l.Fragment,null,wp.element.createElement("p",null,Object(i.__)("Notify your readers by sharing!","rank-math")),wp.element.createElement("div",{className:"rank-math-social-share-buttons"},wp.element.createElement("div",{className:"rank-math-share-button rm-facebook"},wp.element.createElement("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(N.Dashicon,{icon:"facebook-alt"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-twitter"},wp.element.createElement("a",{href:"https://twitter.com/share?url="+r+"&text="+a,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(N.Dashicon,{icon:"twitter"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-email"},wp.element.createElement("a",{href:"mailto:?subject="+a+"&body="+r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(N.Dashicon,{icon:"email"})))))}));function R(e){return(R="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})(e)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var a=H(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return U(this,n)}}function U(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(n,e);var t=F(n);function n(){return A(this,n),t.apply(this,arguments)}return n}(n(37).a),L=Object(o.withSelect)((function(e,t){var n=t.slug,r=e("core").getTaxonomy(n),a=e("core/editor").getEditedPostAttribute;return{taxonomy:r,selectedTermIds:r?a(r.rest_base):[],primaryTermID:e("rank-math").getPrimaryTermID()}}))(z),G=function(e){var t=e.TermComponent;return function(e){return!1!==rankMath.assessor.primaryTaxonomy&&e.slug===rankMath.assessor.primaryTaxonomy.name}(e)?wp.element.createElement(l.Fragment,null,wp.element.createElement(t,e),wp.element.createElement(N.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(L,e))):wp.element.createElement(t,e)},K=n(23),B=n(24),V=n(22);function W(e){return(W="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})(e)}function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t,n){return($="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ee(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ee(e);if(t){var a=ee(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return X(this,n)}}function X(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(m,e);var t,n,r,a=Q(m);function m(){return q(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"setup",value:function(e){this.registerSlots=this.registerSlots.bind(this),Object(s.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),$(ee(m.prototype),"setup",this).call(this,e),this.registerSidebar(),this.registerPostPublish(),this.registerPrimaryTermSelector()}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=K.a,this.RankMathAfterFocusKeyword=V.a,this.RankMathAdvancedTab=B.a,this.slots={AfterEditor:K.a,AfterFocusKeyword:V.a,AdvancedTab:B.a}}},{key:"registerSidebar",value:function(){Object(c.registerPlugin)("rank-math",{icon:wp.element.createElement(C,null),render:function(){return wp.element.createElement(l.Fragment,null,wp.element.createElement(u.PluginSidebarMoreMenuItem,{target:"seo-by-rank-math-sidebar",icon:wp.element.createElement(C,null)},i.__("Rank Math","rank-math")),wp.element.createElement(u.PluginSidebar,{name:"seo-by-rank-math-sidebar",title:i.__("Rank Math","rank-math"),className:"rank-math-sidebar-panel"},wp.element.createElement(p.a,null)))}})}},{key:"registerPostPublish",value:function(){Object(c.registerPlugin)("rank-math-post-publish",{render:function(){return wp.element.createElement(u.PluginPostPublishPanel,{initialOpen:!0,title:i.__("Rank Math","rank-math"),className:"rank-math-post-publish",icon:wp.element.createElement(l.Fragment,null)},wp.element.createElement(x,null))}})}},{key:"registerPrimaryTermSelector",value:function(){Object(s.addFilter)("editor.PostTaxonomyType","rank-math",(function(e){return function(t){return wp.element.createElement(G,Y({TermComponent:e},t))}}))}},{key:"updatePermalink",value:function(e){Object(o.dispatch)("core/editor").editPost({slug:e})}},{key:"updatePermalinkSanitize",value:function(e){e=this.assessor.getResearch("slugify")(e),Object(o.dispatch)("core/editor").editPost({slug:e})}}])&&Z(t.prototype,n),r&&Z(t,r),m}(m.a);a()(document).ready((function(){window.rankMathEditor=new te,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new _)}))}]);
|
assets/admin/js/import-export.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=
|
1 |
+
!function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=59)}({15:function(e,t,a){"use strict";var r=a(2),n=a.n(r);t.a=function(e,t,a){return n.a.ajax({url:rankMath.ajaxurl,type:a||"POST",dataType:"json",data:n.a.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})}},18:function(e,t,a){"use strict";var r=a(2),n=a.n(r);t.a=function(e,t,a,r){t=t||"error",r=r||!1;var i=n()('<div class="notice notice-'+t+' is-dismissible"><p>'+e+"</p></div>").hide();a.next(".notice").remove(),a.after(i),i.slideDown(),n()(document).trigger("wp-updates-notice-added"),r&&setTimeout((function(){i.fadeOut((function(){i.remove()}))}),r)}},2:function(e,t){e.exports=jQuery},38:function(e,t,a){"use strict";var r=a(2),n=a.n(r);t.a=function(e){var t=e||".rank-math-box-tabs";n()(t).children().on("click",(function(e){e.preventDefault();var t=n()(this),a=t.attr("href").substr(1);t.addClass("active-tab").siblings().removeClass("active-tab"),n()("#"+a).addClass("active-tab").siblings().removeClass("active-tab")}))}},59:function(e,t,a){"use strict";a.r(t);var r,n=a(2),i=a.n(n),o=a(15),s=a(18),c=a(38);(r=i.a)((function(){({init:function(){var e=this;Object(c.a)(),r(document.body).on("click",".rank-math-action",(function(t){var a=r(t.currentTarget).data("action");a in e&&e[a](t)})),this.importConfirm()},importConfirm:function(){var e=r("#import-me");e.on("change",(function(){e.removeClass("invalid")})),r("#rank-math-import-form").on("submit",(function(t){if(!e.get(0).files.length)return e.addClass("invalid"),void t.preventDefault();window.confirm(rankMath.importConfirm)||t.preventDefault()}))},createBackup:function(e){var t=r(e.currentTarget);t.prop("disabled",!0),Object(o.a)("create_backup").always((function(){t.prop("disabled",!1)})).done((function(e){if(e.success){var a=t.parent().find("tbody"),n=a.find("tr:first").clone();n.removeClass("hidden").find("th").html(e.backup),n.find("[data-action]").attr("data-key",e.key),a.prepend(n),r("#rank-math-no-backup-message").addClass("hidden"),Object(s.a)(e.message,"success",r(".wp-header-end"),2e3)}else Object(s.a)(e.error,"error",r(".wp-header-end"),2e3)}))},restoreBackup:function(e){if(window.confirm(rankMath.restoreConfirm)){var t=r(e.currentTarget);t.prop("disabled",!0),Object(o.a)("restore_backup",{key:t.attr("data-key")}).always((function(){t.prop("disabled",!1)})).done((function(e){e.success?Object(s.a)(e.message,"success",r(".wp-header-end"),2e3):Object(s.a)(e.error,"error",r(".wp-header-end"),2e3)}))}},deleteBackup:function(e){if(window.confirm(rankMath.deleteBackupConfirm)){var t=r(e.currentTarget);t.prop("disabled",!0),Object(o.a)("delete_backup",{key:t.data("key")}).always((function(){t.prop("disabled",!1)})).done((function(e){if(e.success){var a=t.closest("table");t.closest("tr").fadeOut((function(){r(this).remove(),1>a.find("tr").length&&r("#rank-math-no-backup-message").show()})),Object(s.a)(e.message,"success",r(".wp-header-end"),2e3)}else Object(s.a)(e.error,"error",r(".wp-header-end"),2e3)}))}},importPlugin:function(e){if(window.confirm(rankMath.importConfirm)){var t=r(e.currentTarget);t.prop("disabled",!0);var a=r.map(t.parents(".active-tab").find(".choices").find("input:checkbox:checked"),(function(e){return e.value}));if(1>a.length)Object(s.a)("Select data to import.","error",r(".wp-header-end"),2e3);else{t.data("active")&&a.push("deactivate");var n=r('<textarea id="import-progress-area" class="import-progress-area large-text" disabled="disabled" rows="8" style="margin: 20px 0;background: #eee;"></textarea>');r("#import-progress-area").remove(),t.parents(".active-tab").find("table").after(n),this.addLog("Import started...",n),this.ajaxImport(t.data("slug"),a,n,null,(function(){t.prop("disabled",!1),setTimeout((function(){n.fadeOut((function(){n.remove()}))}),3e3)}))}}},ajaxImport:function(e,t,a,r,n){var i=this;if(0===t.length)return this.addLog("Import finished.",a),void n();var s=t.shift(),c="deactivate"===s?"Deactivating plugin":"Importing "+s;r=r||1,this.addLog(c,a),Object(o.a)("import_plugin",{perform:s,pluginSlug:e,paged:r}).done((function(o){r=1,o&&o.page&&o.page<o.total_pages&&(r=o.page+1,t.unshift(s)),i.addLog(o.success?o.message:o.error,a),i.ajaxImport(e,t,a,r,n)})).fail((function(r){this.addLog(r.statusText,a),this.ajaxImport(e,t,a,null,n)}))},addLog:function(e,t){var a=new Date,r=t.val()+"["+(10>a.getHours()?"0":"")+a.getHours()+":"+(10>a.getMinutes()?"0":"")+a.getMinutes()+":"+(10>a.getSeconds()?"0":"")+a.getSeconds()+"] "+e+"\n";t.text(r).scrollTop(t[0].scrollHeight-t.height()-20)},cleanPlugin:function(e){if(window.confirm(rankMath.cleanPluginConfirm)){var t=r(e.currentTarget);t.prop("disabled",!0),Object(o.a)("clean_plugin",{pluginSlug:t.data("slug")}).always((function(){t.prop("disabled",!1),r("html, body").animate({scrollTop:0},"fast")})).done((function(e){e.success&&t.closest("tr").fadeOut((function(){r(this).remove()})),Object(s.a)(e.success?e.message:e.error,e.success?"success":"error",r(".wp-header-end"),5e3)}))}}}).init()}))}});
|
assets/admin/js/option-panel.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var a={};function e(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=a,e.d=function(t,a,n){e.o(t,a)||Object.defineProperty(t,a,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,a){if(1&a&&(t=e(t)),8&a)return t;if(4&a&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&a&&"string"!=typeof t)for(var i in t)e.d(n,i,function(a){return t[a]}.bind(null,i));return n},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},e.p="",e(e.s=59)}({1:function(t,a){t.exports=lodash},15:function(t,a,e){"use strict";var n=e(2),i=e.n(n);a.a=function(t,a,e){return i.a.ajax({url:rankMath.ajaxurl,type:e||"POST",dataType:"json",data:i.a.extend(!0,{action:"rank_math_"+t,security:rankMath.security},a)})}},17:function(t,a,e){"use strict";var n=e(2),i=e.n(n);a.a=function(t,a,e,n){a=a||"error",n=n||!1;var o=i()('<div class="notice notice-'+a+' is-dismissible"><p>'+t+"</p></div>").hide();e.next(".notice").remove(),e.after(o),o.slideDown(),i()(document).trigger("wp-updates-notice-added"),n&&setTimeout((function(){o.fadeOut((function(){o.remove()}))}),n)}},2:function(t,a){t.exports=jQuery},59:function(t,a,e){"use strict";e.r(a);var n,i=e(2),o=e.n(i),r=e(1),s=e(15),c=e(17);(n=o.a)((function(){window.rankMathOptions={init:function(){this.misc(),this.preview(),this.scCache(),rankMathAdmin.variableInserter(),this.searchEngine.init(),this.addressFormat(),this.siteMap(),this.robotsEvents()},searchEngine:{init:function(){n("#setting-panel-analytics").addClass("exclude"),this.form=n(".rank-math-search-options"),this.wrap=this.form.closest(".rank-math-wrap-settings"),this.input=this.form.find("input"),this.tabs=this.wrap.find(".rank-math-tabs"),this.panels=this.wrap.find(".rank-math-tab:not(.exclude)"),this.ids=["general","titles","sitemap"],this.indexes={},this.buildIndex(),this.events()},events:function(){var t=this,a=t.tabs.find(">.rank-math-tabs-navigation"),e=n('<div class="rank-math-search-dropdown"></div>');t.tabs.find(">.rank-math-tabs-content").prepend('<div class="rank-math-setting-search-empty hidden">No results found.</div>'),t.form.append(e),e.hide().empty();var i=Object(r.debounce)((function(a){t.wrap.addClass("searching"),t.searchIndexes(a,e)}),300);t.form.on("click",".clear-search",(function(e){e.preventDefault(),t.input.val(""),t.clearSearch(a)})),this.ids.forEach((function(a){e.append(t.indexes[a])})),t.input.on("input",(function(){if(""===t.input.val())return t.clearSearch(a,e),!1;i(t.input.val().toLowerCase())})),e.on("click",".cmb-row",(function(){var t=n(this),a=window.location.origin+window.location.pathname+"?page=rank-math-options-"+t.data("settings-id")+"#"+t.closest(".dropdown-tab").data("id");a===window.location.href?window.location.reload():window.location=a}));var o=n(".rank-math-search-options, .rank-math-search-options *, .rank-math-search-dropdown, .rank-math-search-dropdown *");n("body").on("click",(function(t){n(t.target).is(o)||e.hide()}))},searchIndexes:function(t,a){if(!(1>t.trim().length)){var e=a.find(".cmb-row"),i=0;e.hide().each((function(){var a=n(this);a.text().trim().toLowerCase().includes(t)&&(a.show(),++i)})),a.show(),a.toggleClass("empty",0===i)}},clearSearch:function(t,a){a=a||!1,this.wrap.removeClass("searching search-no-results"),n(">a.active",t).trigger("click"),a?a.hide():(n(".cmb-row").show(),n(".rank-math-cmb-dependency",".cmb-form, .rank-math-metabox-wrap").each((function(){rankMathAdmin.loopDependencies(n(this))})))},buildIndex:function(){var t=window.localStorage.getItem("rank-math-option-search-index"),a=void 0===t||t!==rankMath.version;this.ids.forEach((function(t){this.getIndex(t,a)}),this),a&&window.localStorage.setItem("rank-math-option-search-index",rankMath.version)},getIndex:function(t,a){var e=this;a?n("<div/>").load(rankMath.adminurl+"?page=rank-math-options-"+t,(function(a,i){if("error"!==i){var o=n(a).find(".rank-math-tabs-content");o.find(".rank-math-tab").each((function(){var t=n(this);t.removeClass().addClass("dropdown-tab"),t.attr("data-id",t.attr("id")),t.removeAttr("id"),t.find(".rank-math-notice").remove(),t.find(".rank-math-desc").remove()})),o.find(".rank-math-tab").removeClass().addClass("dropdown-tab").removeAttr("id"),o.find(".cmb-row").each((function(){var a=n(this);a.attr("data-settings-id",t),(a.hasClass("cmb-type-title")||a.hasClass("cmb-type-notice")||a.hasClass("rank-math-notice")||a.hasClass("rank-math-desc"))&&a.remove(),a.find(".cmb-td").children(":not(.cmb2-metabox-description)").remove(),a.find("label,.cmb2-metabox-description").unwrap(),a.removeAttr("data-fieldtype")})),o=o.html().replace(/(\r\n\t|\n|\r\t)/gm,""),e.indexes[t]=n(o),window.localStorage.setItem("rank-math-option-"+t+"-index",o)}})):e.indexes[t]=n(window.localStorage.getItem("rank-math-option-"+t+"-index"))}},scCache:function(){n(".console-cache-delete").on("click",(function(t){t.preventDefault();var a=n(this),e=a.data("days"),i=-1===e?"You are about to delete all the previously imported data?":"You are about to delete your 90 days Cache?";window.confirm(i+" Are you sure you want to do this?")&&(a.prop("disabled",!0),Object(s.a)("analytics_delete_cache",{days:e},"GET").always((function(){a.prop("disabled",!1)})).done((function(t){t&&t.success&&(Object(c.a)("Cache deleted.","success",n("h1",".rank-math-wrap-settings")),n(".rank-math-console-db-info").remove(),a.closest(".cmb-td").append(t.message))})))}));var t=n("#console_caching_control"),a=n(".console-cache-delete-custom");t.on("keyup",(function(){var e=t.val();a.data("days",e),a.html(a.attr("title").replace("%d",e))})).trigger("keyup"),n(".console-cache-update-manually").on("click",(function(a){a.preventDefault();var e=n(this),i=t.val();e.prop("disabled",!0),Object(s.a)("analytic_start_fetching",{days:i},"GET").done((function(t){t&&t.success?(Object(c.a)(t.message,"success",n("h1.page-title")),e.text("Fetching in Progress")):Object(c.a)("Unable to update cache due to: "+t.error,"error",n("h1.page-title"))}))}))},addressFormat:function(){var t=n("input[type=text], textarea",".rank-math-address-format");if(t.length){t.attr("autocomplete","off"),t.wrap('<div class="rank-math-variables-wrap"/>');var a=n("body"),e=t.parent(".rank-math-variables-wrap");e.append('<a href="#" class="rank-math-variables-button button button-secondary button-address"><span class="dashicons dashicons-arrow-down-alt2"></span></a>');var i=n("<ul/>"),o=n('<div class="rank-math-variables-dropdown"></div>');n.each({"{address} {locality}, {region} {postalcode}":"(New York, NY 12345)","{address} {postalcode}, {locality} {region}":"(New York 12345, NY)","{address} {locality} {postalcode}":"(New York NY 12345)","{postalcode} {region} {locality} {address}":"(12345 NY New York)","{address} {locality}":"(New York NY)"},(function(t,a){i.append('<li data-var="'+a+'"><strong>'+t+"</strong></li>")})),o.append(i),n("rank-math-variables-wrap:eq(0)").append(o);var r=n(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");a.on("click",(function(t){n(t.target).is(r)||o.hide()}));var s=o.find("input"),c=o.find("li");n(e).on("click",".rank-math-variables-button",(function(t){t.preventDefault(),n(this).after(o),c.show(),o.show(),s.val("").focus()})),o.on("click","li",(function(t){t.preventDefault();var a=n(this);a.closest(".rank-math-variables-wrap").find("textarea").val(a.find("strong").text())}))}},misc:function(){void 0!==o.a.fn.select2&&n("[data-s2-pages]").select2({ajax:{url:rankMath.ajaxurl+"?action=rank_math_search_pages",data:function(t){return{term:t.term,security:rankMath.security}},dataType:"json",delay:250},width:"100%",minimumInputLength:3}),n("#htaccess_accept_changes").on("change",(function(){n("#htaccess_content").prop("readonly",!this.checked)})),n(".reset-options").on("click",(function(){return!!window.confirm("Are you sure? You want to reset settings.")&&(n(window).off("beforeunload"),!0)}));var t=n(".rank-math-tabs");setTimeout((function(){window.localStorage.removeItem(t.attr("id"))}),1e3),n(".save-options").on("click",(function(){var a=n("> .rank-math-tabs-navigation > a.active",t);return window.localStorage.setItem(t.attr("id"),a.attr("href")),n(window).off("beforeunload"),!0}));var a=!1;n(window).on("load",(function(){n(".cmb-form").on("change","input:not(.notrack), textarea:not(.notrack), select:not(.notrack)",(function(){a=!0}))})),n(window).on("beforeunload",(function(){if(a)return"Are you sure? You didn't finish the form!"})),n(".custom-sep").on("keyup",(function(){var t=n(this);t.closest("li").find("input.cmb2-option").val(t.text()).trigger("change")}))},preview:function(){n("[data-preview]").on("change",(function(){var t=n(this),a=null,e="";if(t.is(":radio")&&(a=t.closest(".cmb-td")),null!==a)if(a.hasClass("done"))t.is(":checked")&&(e=a.find("h5")).text(e.data("title").format(t.val()));else if(a.addClass("done"),"title"===t.data("preview")){var i="";i+='<div class="rank-math-preview-title" data-title="Preview"><div>',i+='<h5 data-title="'+rankMath.postTitle+" {0} "+rankMath.blogName+'"></h5>',i+="<span>"+rankMath.postUri+"</span>",i+="</div></div>",a.append(i),(e=a.find("h5")).text(e.data("title").format(t.val()))}})).trigger("change")},siteMap:function(){var t=n(".sitemap-nginx-notice");t.length&&t.on("click","a span",(function(a){return a.preventDefault(),t.toggleClass("active"),!1}))},robotsEvents:function(){n(".rank-math-robots-data").each((function(){var t=n(this).find("ul li:first-child input"),a=n(this).find("ul li:nth-child(2) input");t.on("change",(function(){t.is(":checked")&&a.prop("checked",!1).trigger("change")})),a.on("change",(function(){a.is(":checked")&&t.prop("checked",!1)}))}))}},window.rankMathOptions.init()}))}});
|
1 |
+
!function(t){var a={};function e(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=a,e.d=function(t,a,n){e.o(t,a)||Object.defineProperty(t,a,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,a){if(1&a&&(t=e(t)),8&a)return t;if(4&a&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&a&&"string"!=typeof t)for(var i in t)e.d(n,i,function(a){return t[a]}.bind(null,i));return n},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},e.p="",e(e.s=60)}({1:function(t,a){t.exports=lodash},15:function(t,a,e){"use strict";var n=e(2),i=e.n(n);a.a=function(t,a,e){return i.a.ajax({url:rankMath.ajaxurl,type:e||"POST",dataType:"json",data:i.a.extend(!0,{action:"rank_math_"+t,security:rankMath.security},a)})}},18:function(t,a,e){"use strict";var n=e(2),i=e.n(n);a.a=function(t,a,e,n){a=a||"error",n=n||!1;var o=i()('<div class="notice notice-'+a+' is-dismissible"><p>'+t+"</p></div>").hide();e.next(".notice").remove(),e.after(o),o.slideDown(),i()(document).trigger("wp-updates-notice-added"),n&&setTimeout((function(){o.fadeOut((function(){o.remove()}))}),n)}},2:function(t,a){t.exports=jQuery},60:function(t,a,e){"use strict";e.r(a);var n,i=e(2),o=e.n(i),r=e(1),s=e(15),c=e(18);(n=o.a)((function(){window.rankMathOptions={init:function(){this.misc(),this.preview(),this.scCache(),rankMathAdmin.variableInserter(),this.searchEngine.init(),this.addressFormat(),this.siteMap(),this.robotsEvents()},searchEngine:{init:function(){n("#setting-panel-analytics").addClass("exclude"),this.form=n(".rank-math-search-options"),this.wrap=this.form.closest(".rank-math-wrap-settings"),this.input=this.form.find("input"),this.tabs=this.wrap.find(".rank-math-tabs"),this.panels=this.wrap.find(".rank-math-tab:not(.exclude)"),this.ids=["general","titles","sitemap"],this.indexes={},this.buildIndex(),this.events()},events:function(){var t=this,a=t.tabs.find(">.rank-math-tabs-navigation"),e=n('<div class="rank-math-search-dropdown"></div>');t.tabs.find(">.rank-math-tabs-content").prepend('<div class="rank-math-setting-search-empty hidden">No results found.</div>'),t.form.append(e),e.hide().empty();var i=Object(r.debounce)((function(a){t.wrap.addClass("searching"),t.searchIndexes(a,e)}),300);t.form.on("click",".clear-search",(function(e){e.preventDefault(),t.input.val(""),t.clearSearch(a)})),this.ids.forEach((function(a){e.append(t.indexes[a])})),t.input.on("input",(function(){if(""===t.input.val())return t.clearSearch(a,e),!1;i(t.input.val().toLowerCase())})),e.on("click",".cmb-row",(function(){var t=n(this),a=window.location.origin+window.location.pathname+"?page=rank-math-options-"+t.data("settings-id")+"#"+t.closest(".dropdown-tab").data("id");a===window.location.href?window.location.reload():window.location=a}));var o=n(".rank-math-search-options, .rank-math-search-options *, .rank-math-search-dropdown, .rank-math-search-dropdown *");n("body").on("click",(function(t){n(t.target).is(o)||e.hide()}))},searchIndexes:function(t,a){if(!(1>t.trim().length)){var e=a.find(".cmb-row"),i=0;e.hide().each((function(){var a=n(this);a.text().trim().toLowerCase().includes(t)&&(a.show(),++i)})),a.show(),a.toggleClass("empty",0===i)}},clearSearch:function(t,a){a=a||!1,this.wrap.removeClass("searching search-no-results"),n(">a.active",t).trigger("click"),a?a.hide():(n(".cmb-row").show(),n(".rank-math-cmb-dependency",".cmb-form, .rank-math-metabox-wrap").each((function(){rankMathAdmin.loopDependencies(n(this))})))},buildIndex:function(){var t=window.localStorage.getItem("rank-math-option-search-index"),a=void 0===t||t!==rankMath.version;this.ids.forEach((function(t){this.getIndex(t,a)}),this),a&&window.localStorage.setItem("rank-math-option-search-index",rankMath.version)},getIndex:function(t,a){var e=this;a?n("<div/>").load(rankMath.adminurl+"?page=rank-math-options-"+t,(function(a,i){if("error"!==i){var o=n(a).find(".rank-math-tabs-content");o.find(".rank-math-tab").each((function(){var t=n(this);t.removeClass().addClass("dropdown-tab"),t.attr("data-id",t.attr("id")),t.removeAttr("id"),t.find(".rank-math-notice").remove(),t.find(".rank-math-desc").remove()})),o.find(".rank-math-tab").removeClass().addClass("dropdown-tab").removeAttr("id"),o.find(".cmb-row").each((function(){var a=n(this);a.attr("data-settings-id",t),(a.hasClass("cmb-type-title")||a.hasClass("cmb-type-notice")||a.hasClass("rank-math-notice")||a.hasClass("rank-math-desc"))&&a.remove(),a.find(".cmb-td").children(":not(.cmb2-metabox-description)").remove(),a.find("label,.cmb2-metabox-description").unwrap(),a.removeAttr("data-fieldtype")})),o=o.html().replace(/(\r\n\t|\n|\r\t)/gm,""),e.indexes[t]=n(o),window.localStorage.setItem("rank-math-option-"+t+"-index",o)}})):e.indexes[t]=n(window.localStorage.getItem("rank-math-option-"+t+"-index"))}},scCache:function(){n(".console-cache-delete").on("click",(function(t){t.preventDefault();var a=n(this),e=a.data("days"),i=-1===e?"You are about to delete all the previously imported data?":"You are about to delete your 90 days Cache?";window.confirm(i+" Are you sure you want to do this?")&&(a.prop("disabled",!0),Object(s.a)("analytics_delete_cache",{days:e},"GET").always((function(){a.prop("disabled",!1)})).done((function(t){t&&t.success&&(Object(c.a)("Cache deleted.","success",n("h1",".rank-math-wrap-settings")),n(".rank-math-console-db-info").remove(),a.closest(".cmb-td").append(t.message))})))}));var t=n("#console_caching_control"),a=n(".console-cache-delete-custom");t.on("keyup",(function(){var e=t.val();a.data("days",e),a.html(a.attr("title").replace("%d",e))})).trigger("keyup"),n(".console-cache-update-manually").on("click",(function(a){a.preventDefault();var e=n(this),i=t.val();e.prop("disabled",!0),Object(s.a)("analytic_start_fetching",{days:i},"GET").done((function(t){t&&t.success?(Object(c.a)(t.message,"success",n("h1.page-title")),e.text("Fetching in Progress")):Object(c.a)("Unable to update cache due to: "+t.error,"error",n("h1.page-title"))}))}))},addressFormat:function(){var t=n("input[type=text], textarea",".rank-math-address-format");if(t.length){t.attr("autocomplete","off"),t.wrap('<div class="rank-math-variables-wrap"/>');var a=n("body"),e=t.parent(".rank-math-variables-wrap");e.append('<a href="#" class="rank-math-variables-button button button-secondary button-address"><span class="dashicons dashicons-arrow-down-alt2"></span></a>');var i=n("<ul/>"),o=n('<div class="rank-math-variables-dropdown"></div>');n.each({"{address} {locality}, {region} {postalcode}":"(New York, NY 12345)","{address} {postalcode}, {locality} {region}":"(New York 12345, NY)","{address} {locality} {postalcode}":"(New York NY 12345)","{postalcode} {region} {locality} {address}":"(12345 NY New York)","{address} {locality}":"(New York NY)"},(function(t,a){i.append('<li data-var="'+a+'"><strong>'+t+"</strong></li>")})),o.append(i),n("rank-math-variables-wrap:eq(0)").append(o);var r=n(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");a.on("click",(function(t){n(t.target).is(r)||o.hide()}));var s=o.find("input"),c=o.find("li");n(e).on("click",".rank-math-variables-button",(function(t){t.preventDefault(),n(this).after(o),c.show(),o.show(),s.val("").focus()})),o.on("click","li",(function(t){t.preventDefault();var a=n(this);a.closest(".rank-math-variables-wrap").find("textarea").val(a.find("strong").text())}))}},misc:function(){void 0!==o.a.fn.select2&&n("[data-s2-pages]").select2({ajax:{url:rankMath.ajaxurl+"?action=rank_math_search_pages",data:function(t){return{term:t.term,security:rankMath.security}},dataType:"json",delay:250},width:"100%",minimumInputLength:3}),n("#htaccess_accept_changes").on("change",(function(){n("#htaccess_content").prop("readonly",!this.checked)})),n(".reset-options").on("click",(function(){return!!window.confirm("Are you sure? You want to reset settings.")&&(n(window).off("beforeunload"),!0)}));var t=n(".rank-math-tabs");setTimeout((function(){window.localStorage.removeItem(t.attr("id"))}),1e3),n(".save-options").on("click",(function(){var a=n("> .rank-math-tabs-navigation > a.active",t);return window.localStorage.setItem(t.attr("id"),a.attr("href")),n(window).off("beforeunload"),!0}));var a=!1;n(window).on("load",(function(){n(".cmb-form").on("change","input:not(.notrack), textarea:not(.notrack), select:not(.notrack)",(function(){a=!0}))})),n(window).on("beforeunload",(function(){if(a)return"Are you sure? You didn't finish the form!"})),n(".custom-sep").on("keyup",(function(){var t=n(this);t.closest("li").find("input.cmb2-option").val(t.text()).trigger("change")}))},preview:function(){n("[data-preview]").on("change",(function(){var t=n(this),a=null,e="";if(t.is(":radio")&&(a=t.closest(".cmb-td")),null!==a)if(a.hasClass("done"))t.is(":checked")&&(e=a.find("h5")).text(e.data("title").format(t.val()));else if(a.addClass("done"),"title"===t.data("preview")){var i="";i+='<div class="rank-math-preview-title" data-title="Preview"><div>',i+='<h5 data-title="'+rankMath.postTitle+" {0} "+rankMath.blogName+'"></h5>',i+="<span>"+rankMath.postUri+"</span>",i+="</div></div>",a.append(i),(e=a.find("h5")).text(e.data("title").format(t.val()))}})).trigger("change")},siteMap:function(){var t=n(".sitemap-nginx-notice");t.length&&t.on("click","a span",(function(a){return a.preventDefault(),t.toggleClass("active"),!1}))},robotsEvents:function(){n(".rank-math-robots-data").each((function(){var t=n(this).find("ul li:first-child input"),a=n(this).find("ul li:nth-child(2) input");t.on("change",(function(){t.is(":checked")&&a.prop("checked",!1).trigger("change")})),a.on("change",(function(){a.is(":checked")&&t.prop("checked",!1)}))}))}},window.rankMathOptions.init()}))}});
|
assets/admin/js/post-list.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var n={};function e(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,e),r.l=!0,r.exports}e.m=t,e.c=n,e.d=function(t,n,a){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:a})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(a,r,function(n){return t[n]}.bind(null,r));return a},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=
|
1 |
+
!function(t){var n={};function e(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,e),r.l=!0,r.exports}e.m=t,e.c=n,e.d=function(t,n,a){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:a})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(a,r,function(n){return t[n]}.bind(null,r));return a},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=61)}({2:function(t,n){t.exports=jQuery},61:function(t,n,e){"use strict";e.r(n);var a=e(2),r=e.n(a);function i(t,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var l=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.addButtons(),this.editingEvents(),this.saveEvents()}var n,e,a;return n=t,(e=[{key:"addButtons",value:function(){var t=r()("#rank_math_seo_details, #rank_math_title, #rank_math_description, #rank_math_image_alt, #rank_math_image_title");t.each((function(){var t=r()(this);t.append(' <a href=#" class="dashicons dashicons-edit" title="'+rankMath.bulkEditTitle+'"></a>'),t.wrapInner("<span/>"),t.append(' <span><a href="#" class="button button-primary button-small rank-math-column-save-all">'+rankMath.buttonSaveAll+'</a> <a href="#" class="button-link button-link-delete rank-math-column-cancel-all">'+rankMath.buttonCancel+"</a></span>")})),t.on("click",".dashicons-edit, .rank-math-column-cancel-all",(function(n){n.preventDefault();var e=r()(this).closest("th");r()(this).hasClass("rank-math-column-cancel-all")?(t.removeClass("bulk-editing"),r()(".rank-math-column-cancel","td.bulk-editing.dirty").trigger("click"),r()("td.bulk-editing").removeClass("bulk-editing")):(e.toggleClass("bulk-editing"),r()("td.column-"+e.attr("id")).toggleClass("bulk-editing"))}))}},{key:"editingEvents",value:function(){r()(".rank-math-column-value").on("input",(function(){var t=r()(this),n=t.closest("td");t.text()!==t.prev().text()?n.addClass("dirty"):n.removeClass("dirty")})).on("keypress",(function(t){if(13===t.keyCode)return r()(this).parent().find(".rank-math-column-save").trigger("click"),!1})),r()(".rank-math-column-cancel").on("click",(function(t){t.preventDefault();var n=r()(this).closest("td");n.removeClass("dirty");var e=n.find(".rank-math-column-value").prev(".rank-math-column-display");e.find("span").length&&(e=e.find("span")),n.find(".rank-math-column-value").text(e.text())}))}},{key:"saveEvents",value:function(){var t=this;r()(".rank-math-column-save-all").on("click",(function(n){n.preventDefault();var e=r()(this),a={},i=[];if(r()(".dirty.bulk-editing").each((function(){var t=r()(this),n=parseInt(t.closest("tr").attr("id").replace("post-","")),e=t.find(".rank-math-column-value");i.push(t),a[n]=a[n]||{},a[n][e.data("field")]=e.text()})),r.a.isEmptyObject(a))return r()(e.next()).trigger("click"),!0;t.save(a).done((function(n){n.success&&(i.forEach((function(n){t.setColumn(n)})),r()(e.next()).trigger("click"))}))})),r()(".rank-math-column-save").on("click",(function(n){n.preventDefault();var e=r()(this).closest(".dirty"),a=parseInt(e.closest("tr").attr("id").replace("post-","")),i=e.find(".rank-math-column-value"),l={};l[a]={},l[a][i.data("field")]=i.text(),t.save(l).done((function(n){n.success&&t.setColumn(e)}))}))}},{key:"setColumn",value:function(t){t.removeClass("dirty bulk-editing");var n=t.find(".rank-math-column-value").prev(".rank-math-column-display");n.find("span").length&&(n=n.find("span"));var e=document.createElement("div");e.innerHTML=t.find(".rank-math-column-value").text(),n.text(e.innerText)}},{key:"save",value:function(t){return r.a.ajax({url:rankMath.endpoint+"/updateMetaBulk",method:"POST",beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",rankMath.restNonce)},data:{rows:t}})}}])&&i(n.prototype,e),a&&i(n,a),t}();r()((function(){new l}))}});
|
assets/admin/js/product-description.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=65)}({2:function(e,t){e.exports=jQuery},47:function(e,t,n){var r=n(48),i=n(66),o=n(69),c=Math.max,a=Math.min;e.exports=function(e,t,n){var u,s,f,l,p,m,v=0,d=!1,h=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=u,r=s;return u=s=void 0,v=t,l=e.apply(r,n)}function _(e){return v=e,p=setTimeout(g,t),d?b(e):l}function x(e){var n=e-m;return void 0===m||n>=t||n<0||h&&e-v>=f}function g(){var e=i();if(x(e))return w(e);p=setTimeout(g,function(e){var n=t-(e-m);return h?a(n,f-(e-v)):n}(e))}function w(e){return p=void 0,y&&u?b(e):(u=s=void 0,l)}function j(){var e=i(),n=x(e);if(u=arguments,s=this,m=e,n){if(void 0===p)return _(m);if(h)return clearTimeout(p),p=setTimeout(g,t),b(m)}return void 0===p&&(p=setTimeout(g,t)),l}return t=o(t)||0,r(n)&&(d=!!n.leading,f=(h="maxWait"in n)?c(o(n.maxWait)||0,t):f,y="trailing"in n?!!n.trailing:y),j.cancel=function(){void 0!==p&&clearTimeout(p),v=0,u=m=s=p=void 0},j.flush=function(){return void 0===p?l:w(i())},j}},48:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},49:function(e,t,n){var r=n(67),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},50:function(e,t,n){var r=n(49).Symbol;e.exports=r},6:function(e,t){e.exports=wp.hooks},65:function(e,t,n){"use strict";n.r(t);var r=n(2),i=n.n(r),o=n(47),c=n.n(o),a=n(6),u=n(9);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.excerpt=i()("#excerpt"),this.elemPrice=i()("#_sale_price"),this.elemRegPrice=i()("#_regular_price"),this.refreshWCPrice=this.refreshWCPrice.bind(this),this.events(),this.hooks()}var t,n,r;return t=e,(n=[{key:"hooks",value:function(){void 0!==this.excerpt&&Object(a.addFilter)("rank_math_content","rank-math",this.getContent.bind(this))}},{key:"getContent",value:function(e){return e+="undefined"!=typeof tinymce&&tinymce.activeEditor&&"excerpt"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():this.excerpt.val()}},{key:"events",value:function(){"undefined"!=typeof tinymce&&tinymce.activeEditor&&void 0!==tinymce.editors.excerpt&&tinymce.editors.excerpt.on("keyup change",c()((function(){rankMathEditor.refresh("content")}),500)),this.debounceWCPrice=c()(this.refreshWCPrice,500),this.elemPrice.on("input",this.debounceWCPrice),this.elemRegPrice.on("input",this.debounceWCPrice)}},{key:"refreshWCPrice",value:function(){u.a.setVariable("wc_price",this.getWooCommerceProductPrice()),Object(a.doAction)("rank_math_update_description_preview")}},{key:"getWooCommerceProductPrice",value:function(){var e=this.elemPrice.val()?this.elemPrice.val():this.elemRegPrice.val();return accounting.formatMoney(e,{symbol:woocommerce_admin_meta_boxes.currency_format_symbol,decimal:woocommerce_admin_meta_boxes.currency_format_decimal_sep,thousand:woocommerce_admin_meta_boxes.currency_format_thousand_sep,precision:woocommerce_admin_meta_boxes.currency_format_num_decimals,format:woocommerce_admin_meta_boxes.currency_format})}}])&&s(t.prototype,n),r&&s(t,r),e}();i()((function(){new f}))},66:function(e,t,n){var r=n(49);e.exports=function(){return r.Date.now()}},67:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(68))},68:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},69:function(e,t,n){var r=n(48),i=n(70),o=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||u.test(e)?s(e.slice(2),n?2:8):c.test(e)?NaN:+e}},70:function(e,t,n){var r=n(71),i=n(74);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},71:function(e,t,n){var r=n(50),i=n(72),o=n(73),c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?i(e):o(e)}},72:function(e,t,n){var r=n(50),i=Object.prototype,o=i.hasOwnProperty,c=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=c.call(e);return r&&(t?e[a]=n:delete e[a]),i}},73:function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},74:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},9:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(2),i=n.n(r);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=null}var t,n,r;return t=e,(n=[{key:"swap",value:function(e,t){var n=this;if(!(e=e||""))return"";var r=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return e.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(r,(function(e){return n.replace(t,e)})).trim()}},{key:"replace",value:function(e,t){var n=t.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(n)?i()("#description").val():n.includes("customfield(")?(n=n.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[n]:"":(e=e||this.getMap(),(n="seo_description"===(n="seo_title"===(n=n.includes("(")?n.split("(")[0]:n)?"title":n)?"excerpt":n)in e?e[n]:"")}},{key:"getMap",value:function(){var e=this;return null!==this.map||(this.map={},i.a.each(rankMath.variables,(function(t,n){t=t.toLowerCase().replace(/%+/g,"").split("(")[0],e.map[t]=n.example}))),this.map}},{key:"setVariable",value:function(e,t){null!==this.map?this.map[e]=t:void 0!==rankMath.variables[e]&&(rankMath.variables[e].example=t)}}])&&o(t.prototype,n),r&&o(t,r),e}())}});
|
assets/admin/js/validate.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=
|
1 |
+
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=64)}({2:function(t,e){t.exports=jQuery},64:function(t,e,n){"use strict";n.r(e);var r,a=n(2);(r=n.n(a).a)((function(){window.rankMathValidate={init:function(){this.extendLibrary(),this.watchFields()},extendLibrary:function(){r.validator.addMethod("regex",(function(t,e,n){var a=new RegExp("string"==typeof n?n:r(e).data("validate-pattern"));return this.optional(e)||a.test(t)}),rankMath.validationl10n.regexErrorDefault),r.extend(r.validator.messages,{required:rankMath.validationl10n.requiredErrorDefault,email:rankMath.validationl10n.emailErrorDefault,url:rankMath.validationl10n.urlErrorDefault}),r.extend(r.validator.defaults,{errorClass:"invalid"})},watchFields:function(){var t=this;r(".rank-math-validate-field").on("focus","input[type=text], input[type=password], input[type=url], input[type=email], input[type=number], textarea",(function(){t.fieldValidation(r(this).closest("form"))}))},fieldValidation:function(t){return"1"!==t.data("validated")&&(t.data("validated","1").validate(),!0)}},window.rankMathValidate.init()}))}});
|
assets/admin/js/wizard.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var e={};function n(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(a,r,function(e){return t[e]}.bind(null,r));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=
|
1 |
+
!function(t){var e={};function n(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(a,r,function(e){return t[e]}.bind(null,r));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=62)}({2:function(t,e){t.exports=jQuery},62:function(t,e,n){"use strict";n.r(e);var a,r=n(2);(a=n.n(r).a)((function(){window.rankMathSetupWizard={init:function(){rankMath.currentStep in this&&this[rankMath.currentStep](),a(document).on("cmb_init",(function(){a(".cmb-multicheck-toggle",".multicheck-checked").trigger("click")}))},compatibility:function(){a(".wizard-deactivate-plugin").on("click",(function(t){t.preventDefault();var e=a(this);if(!e.hasClass("disabled")){var n=e.closest("tr");a.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:e.data("plugin")}}).always((function(t){"1"===t&&(n.find(".dashicons-warning").removeClass("dashicons-warning").addClass("dashicons-yes"),e.addClass("disabled").text(rankMath.deactivated))}))}}))},import:function(){var t=a("#import-progress"),e=a("#import-progress-bar"),n=0,r=0,i=function(t,e){var n=new Date,a=e.val()+"["+(10>n.getHours()?"0":"")+n.getHours()+":"+(10>n.getMinutes()?"0":"")+n.getMinutes()+":"+(10>n.getSeconds()?"0":"")+n.getSeconds()+"] "+t+"\n";e.text(a).scrollTop(e[0].scrollHeight-e.height()-20)},o=function(t){t>100&&(t=100),e.find(".number").html(t),e.find("#importBar").css("width",t+"%")},c=function t(e,c,u,s,l,p){if(0!==c.length){s=s||1;var d=c.shift(),h="deactivate"===d?"Deactivating "+p:"Importing "+d+" from "+p,g=Math.floor(100/r);i(h,u),a.ajax({url:rankMath.ajaxurl,type:"POST",data:{perform:d,pluginSlug:e,paged:s,action:"rank_math_import_plugin",security:rankMath.security}}).success((function(a){var r=1;a&&a.page&&a.page<a.total_pages&&(r=a.page+1,c.unshift(d)),a&&a.total_pages&&(g=Math.ceil(g/a.total_pages)),o(n+=g),i(a.success?a.message:a.error,u),t(e,c,u,r,l,p)})).error((function(n){i(n.statusText,u),t(e,c,u,null,l,p)}))}else l()};a(".button-import",".form-footer").on("click",(function(n){if(n.preventDefault(),rankMath.isConfigured&&!window.confirm(rankMath.confirm))return!1;var c=a(".import-data:checkbox:checked");if(!c.length)return window.alert("Please select plugin to import data."),!1;var s=a(this),l={},p=[];a.each(c,(function(){var t=a(this).val(),e=a(this).parents(".cmb-group-description").next().find(":checkbox:checked"),n=e.data("active"),i=a(this).data("plugin");p.push(i);var o=a.map(e,(function(t){return t.value}));0<o.length&&n&&o.push("deactivate"),r+=o.length,l[t]={plugin:i,actions:o}})),s.prop("disabled",!0),t.show(),e.show(),e.find(".plugin-from").html(p.join()),i("Import started...",t),u(l,t,(function(){o(100),s.prop("disabled",!1),a(".button",".form-footer").hide(),a(".button-continue").show()}))}));var u=function e(n,a,r){var o=Object.keys(n),u=o.length,s=n[o[0]],l=Object.keys(n)[0];if(delete n[l],0===u)return i("Import finished. Click on the button below to continue the Setup Wizard.",a),void r();c(l,s.actions,t,null,(function(){e(n,a,r)}),s.plugin)};a(".import-data").on("change",(function(){for(var t=a(this),e=this.checked,n=t.parents(".cmb-group-description").next().find(".cmb2-option"),r=0;r<n.length;r++)"checkbox"===n[r].type&&(n[r].checked=e);e&&("yoast"===t.val()?(a('.import-data[value="aioseo"]').prop("checked",!1).trigger("change"),a('.import-data[value="seopress"]').prop("checked",!1).trigger("change")):"aioseo"===t.val()?(a('.import-data[value="yoast"]').prop("checked",!1).trigger("change"),a('.import-data[value="seopress"]').prop("checked",!1).trigger("change")):"seopress"===t.val()&&(a('.import-data[value="yoast"]').prop("checked",!1).trigger("change"),a('.import-data[value="aioseo"]').prop("checked",!1).trigger("change")))})),a(".cmb-type-group .cmb2-checkbox-list .cmb2-option").on("click",(function(){var t=a(this),e=t.attr("name"),n=t.parents("ul").find('input[name="'+e+'"]:checkbox:checked'),r=t.parents("ul").find('input[name="'+e+'"]');n.length===r.length&&t.parents(".cmb-type-group").find(".import-data").prop("checked",!0).trigger("change")})),a(".button-deactivate-plugins").on("click",(function(t){var e=a(this);e.parents("form").find("input[data-active]").length&&(t.preventDefault(),e.text(e.data("deactivate-message")),a.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:"all"}}).success((function(){e.parents("form").trigger("submit")})).error((function(){window.alert("Something went wrong! Please try again later.")})))}))},yoursite:function(){a("#rank-math-search-input").on("input keypress",(function(t){var e=a(this),n=e.next();if(13===t.keyCode||13===t.which){if("createEvent"in document){var r=this.ownerDocument,i=r.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,r.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),n[0].dispatchEvent(i)}return!1}n.attr("href",n.data("href")+encodeURIComponent(e.val()))}));var t=a("#business_type");0!==parseInt(t.data("default"))&&a("#site_type").on("change",(function(){var e=a(this).val();"news"!==e&&"webshop"!==e&&"otherbusiness"!==e||t.val("Organization").trigger("change"),"business"===e&&t.val("LocalBusiness").trigger("change")}))},analytics:function(){a("#console_authorization_code").on("paste",(function(){var t=a(this).next(".button");setTimeout((function(){t.trigger("click")}),100)}))},ready:function(){a("#auto-update").on("change",(function(){a(".rank-math-auto-update-email-wrapper").toggle(a(this).is(":checked"))})),a(".rank-math-additional-options input.rank-math-modules").on("change",(function(){var t=a(this);a.ajax({url:rankMath.api.root+"rankmath/v1/autoUpdate",method:"POST",beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{key:t.data("key"),value:t.is(":checked")}})}))}},window.rankMathSetupWizard.init()}))}});
|
assets/admin/js/wplink.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=62)}({2:function(e,t){e.exports=jQuery},62:function(e,t,n){"use strict";n.r(t);var i=n(2);!function(e,t,n){var i,r,l,a,s,o=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i,c=/^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,63}[^ "]*$/i,p={},u={},d="ontouchend"in document;function h(){return i?i.$('a[data-wplink-edit="true"]'):null}window.wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:"",textarea:"",modalOpen:!1,init:function(){p.wrap=e("#wp-link-wrap"),p.dialog=e("#wp-link"),p.backdrop=e("#wp-link-backdrop"),p.submit=e("#wp-link-submit"),p.close=e("#wp-link-close");var n=e('<div class="link-nofollow"><label><span> </span> <input type="checkbox" id="wp-link-nofollow"> '+t.relCheckbox+'</label></div><div class="link-sponsored"><label><span> </span> <input type="checkbox" id="wp-link-sponsored"> '+t.sponsoredCheckbox+"</label></div>"),i=e('<div class="wp-link-title-field"> <label><span>'+t.linkTitle+'</span> <input id="wp-link-title" type="text"></label></div>');n.insertAfter("#wp-link .link-target"),i.insertAfter("#wp-link .wp-link-text-field"),e("#wp-link .query-results").css("top","290px"),p.text=e("#wp-link-text"),p.url=e("#wp-link-url"),p.nonce=e("#_ajax_linking_nonce"),p.openInNewTab=e("#wp-link-target"),p.search=e("#wp-link-search"),p.nofollow=e("#wp-link-nofollow"),p.sponsored=e("#wp-link-sponsored"),p.title=e("#wp-link-title"),u.search=new s(e("#search-results")),u.recent=new s(e("#most-recent-results")),u.elements=p.dialog.find(".query-results"),p.queryNotice=e("#query-notice-message"),p.queryNoticeTextDefault=p.queryNotice.find(".query-notice-default"),p.queryNoticeTextHint=p.queryNotice.find(".query-notice-hint"),p.dialog.keydown(wpLink.keydown),p.dialog.keyup(wpLink.keyup),p.submit.click((function(e){e.preventDefault(),wpLink.update()})),p.close.add(p.backdrop).add("#wp-link-cancel button").click((function(e){e.preventDefault(),wpLink.close()})),u.elements.on("river-select",wpLink.updateFields),p.search.on("focus.wplink",(function(){p.queryNoticeTextDefault.hide(),p.queryNoticeTextHint.removeClass("screen-reader-text").show()})).on("blur.wplink",(function(){p.queryNoticeTextDefault.show(),p.queryNoticeTextHint.addClass("screen-reader-text").hide()})),p.search.on("keyup input",(function(){window.clearTimeout(r),r=window.setTimeout((function(){wpLink.searchInternalLinks()}),500)})),p.url.on("paste",(function(){setTimeout(wpLink.correctURL,0)})),p.url.on("blur",wpLink.correctURL)},correctURL:function(){var t=e.trim(p.url.val());t&&l!==t&&!/^(?:[a-z]+:|#|\?|\.|\/)/.test(t)&&(p.url.val("http://"+t),l=t)},open:function(t,n,r){var l,a=e(document.body);a.addClass("modal-open"),wpLink.modalOpen=!0,wpLink.range=null,t&&(window.wpActiveEditor=t),window.wpActiveEditor&&(this.textarea=e("#"+window.wpActiveEditor).get(0),void 0!==window.tinymce&&(a.append(p.backdrop,p.wrap),l=window.tinymce.get(window.wpActiveEditor),i=l&&!l.isHidden()?l:null),!wpLink.isMCE()&&document.selection&&(this.textarea.focus(),this.range=document.selection.createRange()),p.wrap.show(),p.backdrop.show(),wpLink.refresh(n,r),e(document).trigger("wplink-open",p.wrap))},isMCE:function(){return i&&!i.isHidden()},refresh:function(e,t){u.search.refresh(),u.recent.refresh(),wpLink.isMCE()?wpLink.mceRefresh(e,t):(p.wrap.hasClass("has-text-field")||p.wrap.addClass("has-text-field"),document.selection?document.selection.createRange().text||t||"":void 0!==this.textarea.selectionStart&&this.textarea.selectionStart!==this.textarea.selectionEnd&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd)||t||""),p.text.val(t),wpLink.setDefaultValues()),d?p.url.focus().blur():window.setTimeout((function(){p.url[0].select(),p.url.focus()})),u.recent.ul.children().length||u.recent.ajax(),l=p.url.val().replace(/^http:\/\//,"")},hasSelectedText:function(e){var t,n,r,l=i.selection.getContent();if(/</.test(l)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(l.trim())||-1===l.indexOf("href=")))return!1;if(e.length){if(!(n=e[0].childNodes)||!n.length)return!1;for(r=n.length-1;0<=r;r--)if(3!==(t=n[r]).nodeType&&!window.tinymce.dom.BookmarkManager.isBookmarkNode(t))return!1}return!0},mceRefresh:function(n,r){var l,a,s=h(),u=this.hasSelectedText(s);s.length?(l=s.text(),a=s.attr("href"),e.trim(l)||(l=r||""),n&&(c.test(n)||o.test(n))&&(a=n),"_wp_link_placeholder"!==a?(p.url.val(a),p.openInNewTab.prop("checked","_blank"===i.dom.getAttrib(s,"target")),p.nofollow.prop("checked",i.dom.getAttrib(s,"rel").includes("nofollow")),p.sponsored.prop("checked",i.dom.getAttrib(s,"rel").includes("sponsored")),p.title.val(i.dom.getAttrib(s,"title")),p.submit.val(t.update)):this.setDefaultValues(l),n&&n!==a?p.search.val(n):p.search.val(""),window.setTimeout((function(){wpLink.searchInternalLinks()}))):(l=i.selection.getContent({format:"text"})||r||"",this.setDefaultValues(l)),u?(p.text.val(l),p.wrap.addClass("has-text-field")):(p.text.val(""),p.wrap.removeClass("has-text-field"))},close:function(t){e(document.body).removeClass("modal-open"),wpLink.modalOpen=!1,"noReset"!==t&&(wpLink.isMCE()?(i.plugins.wplink&&i.plugins.wplink.close(),i.focus()):(wpLink.textarea.focus(),wpLink.range&&(wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select()))),p.backdrop.hide(),p.wrap.hide(),p.title.val(""),l=!1,e(document).trigger("wplink-close",p.wrap)},getAttrs:function(){wpLink.correctURL();var t=p.nofollow.prop("checked")?"nofollow":"";p.sponsored.prop("checked")&&(t=t?t+" sponsored":"sponsored");var n={href:e.trim(p.url.val()),target:p.openInNewTab.prop("checked")?"_blank":null,rel:t};return e.trim(p.title.val())&&(n.title=e.trim(p.title.val())),n},buildHtml:function(e){var t='<a href="'+e.href+'"';return e.target&&(t+=' target="'+e.target+'"'),e.rel&&(t+=' rel="'+e.rel+'"'),e.title&&(t+=' title="'+e.title+'"'),t+">"},update:function(){wpLink.isMCE()?wpLink.mceUpdate():wpLink.htmlUpdate()},htmlUpdate:function(){var i=wpLink.textarea;if(i){var r,l,a,s,o,c=wpLink.getAttrs(),u=document.createElement("a");if(u.href=c.href,"javascript:"!==u.protocol&&"data:"!==u.protocol||(c.href=""),c.href){r=wpLink.buildHtml(c);var d=p.text.val();document.selection&&wpLink.range?(i.focus(),wpLink.range.text=r+(d||wpLink.range.text)+"</a>",wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select(),wpLink.range=null):void 0!==i.selectionStart&&(l=i.selectionStart,a=i.selectionEnd,s=l+(r=r+(o=d||i.value.substring(l,a))+"</a>").length,l!==a||o||(s-=4),i.value=i.value.substring(0,l)+r+i.value.substring(a,i.value.length),i.selectionStart=i.selectionEnd=s),wpLink.close(),i.focus(),e(i).trigger("change"),n.a11y.speak(t.linkInserted)}}},mceUpdate:function(){var r,l,a,s,o=wpLink.getAttrs(),c=document.createElement("a");if(c.href=o.href,"javascript:"!==c.protocol&&"data:"!==c.protocol||(o.href=""),!o.href)return i.execCommand("unlink"),void wpLink.close();r=i.$(h()),i.undoManager.transact((function(){r.length||(i.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder","data-wp-temp-link":1}),r=i.$('a[data-wp-temp-link="1"]').removeAttr("data-wp-temp-link"),a=e.trim(r.text())),r.length?(p.wrap.hasClass("has-text-field")&&((l=p.text.val())?r.text(l):a||r.text(o.href)),o["data-wplink-edit"]=null,o["data-mce-href"]=null,o.hasOwnProperty("rel")&&!o.rel&&(o.rel=null),r.attr(o)):i.execCommand("unlink")})),wpLink.close("noReset"),i.focus(),r.length&&((s=r.parent("#_mce_caret")).length&&s.before(r.removeAttr("data-mce-bogus")),i.selection.select(r[0]),i.selection.collapse(),i.plugins.wplink&&i.plugins.wplink.checkLink(r[0])),i.nodeChanged(),p.title.val(""),n.a11y.speak(t.linkInserted)},updateFields:function(e,t){p.url.val(t.children(".item-permalink").val()),p.wrap.hasClass("has-text-field")&&!p.text.val()&&p.text.val(t.children(".item-title").text())},getUrlFromSelection:function(t){return t||(this.isMCE()?t=i.selection.getContent({format:"text"}):document.selection&&wpLink.range?t=wpLink.range.text:void 0!==this.textarea.selectionStart&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd))),(t=e.trim(t))&&o.test(t)?"mailto:"+t:t&&c.test(t)?t.replace(/&|�?38;/gi,"&"):""},setDefaultValues:function(e){p.url.val(this.getUrlFromSelection(e)),p.search.val(""),wpLink.searchInternalLinks(),p.submit.val(t.save)},searchInternalLinks:function(){var e,t=p.search.val()||"";if(2<t.length){if(u.recent.hide(),u.search.show(),wpLink.lastSearch===t)return;wpLink.lastSearch=t,e=p.search.parent().find(".spinner").addClass("is-active"),u.search.change(t),u.search.ajax((function(){e.removeClass("is-active")}))}else u.search.hide(),u.recent.show()},next:function(){u.search.next(),u.recent.next()},prev:function(){u.search.prev(),u.recent.prev()},keydown:function(e){var t;if(27===e.keyCode?(wpLink.close(),e.stopImmediatePropagation()):9===e.keyCode&&("wp-link-submit"!==(t=e.target.id)||e.shiftKey?"wp-link-close"===t&&e.shiftKey&&(p.submit.focus(),e.preventDefault()):(p.close.focus(),e.preventDefault())),!(e.shiftKey||38!==e.keyCode&&40!==e.keyCode||document.activeElement&&("link-title-field"===document.activeElement.id||"url-field"===document.activeElement.id))){var n=38===e.keyCode?"prev":"next";clearInterval(wpLink.keyInterval),wpLink[n](),wpLink.keyInterval=setInterval(wpLink[n],wpLink.keySensitivity),e.preventDefault()}},keyup:function(e){38!==e.keyCode&&40!==e.keyCode||(clearInterval(wpLink.keyInterval),e.preventDefault())},delayedCallback:function(e,t){var n,i,r,l;return t?(setTimeout((function(){if(i)return e.apply(l,r);n=!0}),t),function(){if(n)return e.apply(this,arguments);r=arguments,l=this,i=!0}):e}},s=function(t,n){var i=this;this.element=t,this.ul=t.children("ul"),this.contentHeight=t.children("#link-selector-height"),this.waiting=t.find(".river-waiting"),this.change(n),this.refresh(),e("#wp-link .query-results, #wp-link #link-selector").scroll((function(){i.maybeLoad()})),t.on("click","li",(function(t){i.select(e(this),t)}))},e.extend(s.prototype,{refresh:function(){this.deselect(),this.visible=this.element.is(":visible")},show:function(){this.visible||(this.deselect(),this.element.show(),this.visible=!0)},hide:function(){this.element.hide(),this.visible=!1},select:function(e,t){if(!e.hasClass("unselectable")&&e!==this.selected){this.deselect(),this.selected=e.addClass("selected");var n=e.outerHeight(),i=this.element.height(),r=e.position().top,l=this.element.scrollTop();0>r?this.element.scrollTop(l+r):r+n>i&&this.element.scrollTop(l+r-i+n),this.element.trigger("river-select",[e,t,this])}},deselect:function(){this.selected&&this.selected.removeClass("selected"),this.selected=!1},prev:function(){var e;this.visible&&(this.selected&&(e=this.selected.prev("li")).length&&this.select(e))},next:function(){if(this.visible){var t=this.selected?this.selected.next("li"):e("li:not(.unselectable):first",this.element);t.length&&this.select(t)}},ajax:function(e){var t=this,n=1===this.query.page?0:wpLink.minRiverAJAXDuration,i=wpLink.delayedCallback((function(n,i){t.process(n,i),e&&e(n,i)}),n);this.query.ajax(i)},change:function(e){this.query&&this._search===e||(this._search=e,this.query=new a(e),this.element.scrollTop(0))},process:function(n,i){var r="",l=!0,a="",s=1===i.page;n?e.each(n,(function(){a=l?"alternate":"",a+=this.title?"":" no-title",r+=a?'<li class="'+a+'">':"<li>",r+='<input type="hidden" class="item-permalink" value="'+this.permalink+'" />',r+='<span class="item-title">',r+=this.title?this.title:t.noTitle,r+='</span><span class="item-info">'+this.info+"</span></li>",l=!l})):s&&(r+='<li class="unselectable no-matches-found"><span class="item-title"><em>'+t.noMatchesFound+"</em></span></li>"),this.ul[s?"html":"append"](r)},maybeLoad:function(){var e=this,t=this.element,n=t.scrollTop()+t.height();!this.query.ready()||n<this.contentHeight.height()-wpLink.riverBottomThreshold||setTimeout((function(){var n=t.scrollTop(),i=n+t.height();!e.query.ready()||i<e.contentHeight.height()-wpLink.riverBottomThreshold||(e.waiting.addClass("is-active"),t.scrollTop(n+e.waiting.outerHeight()),e.ajax((function(){e.waiting.removeClass("is-active")})))}),wpLink.timeToTriggerRiver)}}),a=function(e){this.page=1,this.allLoaded=!1,this.querying=!1,this.search=e},e.extend(a.prototype,{ready:function(){return!(this.querying||this.allLoaded)},ajax:function(t){var n=this,i={action:"wp-link-ajax",page:this.page,_ajax_linking_nonce:p.nonce.val()};this.search&&(i.search=this.search),this.querying=!0,e.post(window.ajaxurl,i,(function(e){n.page++,n.querying=!1,n.allLoaded=!e,t(e,i)}),"json")}}),e(document).ready(wpLink.init)}(n.n(i).a,window.wpLinkL10n,window.wp)}});
|
1 |
+
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=63)}({2:function(e,t){e.exports=jQuery},63:function(e,t,n){"use strict";n.r(t);var i=n(2);!function(e,t,n){var i,r,l,a,s,o=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i,c=/^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,63}[^ "]*$/i,p={},u={},d="ontouchend"in document;function h(){return i?i.$('a[data-wplink-edit="true"]'):null}window.wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:"",textarea:"",modalOpen:!1,init:function(){p.wrap=e("#wp-link-wrap"),p.dialog=e("#wp-link"),p.backdrop=e("#wp-link-backdrop"),p.submit=e("#wp-link-submit"),p.close=e("#wp-link-close");var n=e('<div class="link-nofollow"><label><span> </span> <input type="checkbox" id="wp-link-nofollow"> '+t.relCheckbox+'</label></div><div class="link-sponsored"><label><span> </span> <input type="checkbox" id="wp-link-sponsored"> '+t.sponsoredCheckbox+"</label></div>"),i=e('<div class="wp-link-title-field"> <label><span>'+t.linkTitle+'</span> <input id="wp-link-title" type="text"></label></div>');n.insertAfter("#wp-link .link-target"),i.insertAfter("#wp-link .wp-link-text-field"),e("#wp-link .query-results").css("top","290px"),p.text=e("#wp-link-text"),p.url=e("#wp-link-url"),p.nonce=e("#_ajax_linking_nonce"),p.openInNewTab=e("#wp-link-target"),p.search=e("#wp-link-search"),p.nofollow=e("#wp-link-nofollow"),p.sponsored=e("#wp-link-sponsored"),p.title=e("#wp-link-title"),u.search=new s(e("#search-results")),u.recent=new s(e("#most-recent-results")),u.elements=p.dialog.find(".query-results"),p.queryNotice=e("#query-notice-message"),p.queryNoticeTextDefault=p.queryNotice.find(".query-notice-default"),p.queryNoticeTextHint=p.queryNotice.find(".query-notice-hint"),p.dialog.keydown(wpLink.keydown),p.dialog.keyup(wpLink.keyup),p.submit.click((function(e){e.preventDefault(),wpLink.update()})),p.close.add(p.backdrop).add("#wp-link-cancel button").click((function(e){e.preventDefault(),wpLink.close()})),u.elements.on("river-select",wpLink.updateFields),p.search.on("focus.wplink",(function(){p.queryNoticeTextDefault.hide(),p.queryNoticeTextHint.removeClass("screen-reader-text").show()})).on("blur.wplink",(function(){p.queryNoticeTextDefault.show(),p.queryNoticeTextHint.addClass("screen-reader-text").hide()})),p.search.on("keyup input",(function(){window.clearTimeout(r),r=window.setTimeout((function(){wpLink.searchInternalLinks()}),500)})),p.url.on("paste",(function(){setTimeout(wpLink.correctURL,0)})),p.url.on("blur",wpLink.correctURL)},correctURL:function(){var t=e.trim(p.url.val());t&&l!==t&&!/^(?:[a-z]+:|#|\?|\.|\/)/.test(t)&&(p.url.val("http://"+t),l=t)},open:function(t,n,r){var l,a=e(document.body);a.addClass("modal-open"),wpLink.modalOpen=!0,wpLink.range=null,t&&(window.wpActiveEditor=t),window.wpActiveEditor&&(this.textarea=e("#"+window.wpActiveEditor).get(0),void 0!==window.tinymce&&(a.append(p.backdrop,p.wrap),l=window.tinymce.get(window.wpActiveEditor),i=l&&!l.isHidden()?l:null),!wpLink.isMCE()&&document.selection&&(this.textarea.focus(),this.range=document.selection.createRange()),p.wrap.show(),p.backdrop.show(),wpLink.refresh(n,r),e(document).trigger("wplink-open",p.wrap))},isMCE:function(){return i&&!i.isHidden()},refresh:function(e,t){u.search.refresh(),u.recent.refresh(),wpLink.isMCE()?wpLink.mceRefresh(e,t):(p.wrap.hasClass("has-text-field")||p.wrap.addClass("has-text-field"),document.selection?document.selection.createRange().text||t||"":void 0!==this.textarea.selectionStart&&this.textarea.selectionStart!==this.textarea.selectionEnd&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd)||t||""),p.text.val(t),wpLink.setDefaultValues()),d?p.url.focus().blur():window.setTimeout((function(){p.url[0].select(),p.url.focus()})),u.recent.ul.children().length||u.recent.ajax(),l=p.url.val().replace(/^http:\/\//,"")},hasSelectedText:function(e){var t,n,r,l=i.selection.getContent();if(/</.test(l)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(l.trim())||-1===l.indexOf("href=")))return!1;if(e.length){if(!(n=e[0].childNodes)||!n.length)return!1;for(r=n.length-1;0<=r;r--)if(3!==(t=n[r]).nodeType&&!window.tinymce.dom.BookmarkManager.isBookmarkNode(t))return!1}return!0},mceRefresh:function(n,r){var l,a,s=h(),u=this.hasSelectedText(s);s.length?(l=s.text(),a=s.attr("href"),e.trim(l)||(l=r||""),n&&(c.test(n)||o.test(n))&&(a=n),"_wp_link_placeholder"!==a?(p.url.val(a),p.openInNewTab.prop("checked","_blank"===i.dom.getAttrib(s,"target")),p.nofollow.prop("checked",i.dom.getAttrib(s,"rel").includes("nofollow")),p.sponsored.prop("checked",i.dom.getAttrib(s,"rel").includes("sponsored")),p.title.val(i.dom.getAttrib(s,"title")),p.submit.val(t.update)):this.setDefaultValues(l),n&&n!==a?p.search.val(n):p.search.val(""),window.setTimeout((function(){wpLink.searchInternalLinks()}))):(l=i.selection.getContent({format:"text"})||r||"",this.setDefaultValues(l)),u?(p.text.val(l),p.wrap.addClass("has-text-field")):(p.text.val(""),p.wrap.removeClass("has-text-field"))},close:function(t){e(document.body).removeClass("modal-open"),wpLink.modalOpen=!1,"noReset"!==t&&(wpLink.isMCE()?(i.plugins.wplink&&i.plugins.wplink.close(),i.focus()):(wpLink.textarea.focus(),wpLink.range&&(wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select()))),p.backdrop.hide(),p.wrap.hide(),p.title.val(""),l=!1,e(document).trigger("wplink-close",p.wrap)},getAttrs:function(){wpLink.correctURL();var t=p.nofollow.prop("checked")?"nofollow":"";p.sponsored.prop("checked")&&(t=t?t+" sponsored":"sponsored");var n={href:e.trim(p.url.val()),target:p.openInNewTab.prop("checked")?"_blank":null,rel:t};return e.trim(p.title.val())&&(n.title=e.trim(p.title.val())),n},buildHtml:function(e){var t='<a href="'+e.href+'"';return e.target&&(t+=' target="'+e.target+'"'),e.rel&&(t+=' rel="'+e.rel+'"'),e.title&&(t+=' title="'+e.title+'"'),t+">"},update:function(){wpLink.isMCE()?wpLink.mceUpdate():wpLink.htmlUpdate()},htmlUpdate:function(){var i=wpLink.textarea;if(i){var r,l,a,s,o,c=wpLink.getAttrs(),u=document.createElement("a");if(u.href=c.href,"javascript:"!==u.protocol&&"data:"!==u.protocol||(c.href=""),c.href){r=wpLink.buildHtml(c);var d=p.text.val();document.selection&&wpLink.range?(i.focus(),wpLink.range.text=r+(d||wpLink.range.text)+"</a>",wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select(),wpLink.range=null):void 0!==i.selectionStart&&(l=i.selectionStart,a=i.selectionEnd,s=l+(r=r+(o=d||i.value.substring(l,a))+"</a>").length,l!==a||o||(s-=4),i.value=i.value.substring(0,l)+r+i.value.substring(a,i.value.length),i.selectionStart=i.selectionEnd=s),wpLink.close(),i.focus(),e(i).trigger("change"),n.a11y.speak(t.linkInserted)}}},mceUpdate:function(){var r,l,a,s,o=wpLink.getAttrs(),c=document.createElement("a");if(c.href=o.href,"javascript:"!==c.protocol&&"data:"!==c.protocol||(o.href=""),!o.href)return i.execCommand("unlink"),void wpLink.close();r=i.$(h()),i.undoManager.transact((function(){r.length||(i.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder","data-wp-temp-link":1}),r=i.$('a[data-wp-temp-link="1"]').removeAttr("data-wp-temp-link"),a=e.trim(r.text())),r.length?(p.wrap.hasClass("has-text-field")&&((l=p.text.val())?r.text(l):a||r.text(o.href)),o["data-wplink-edit"]=null,o["data-mce-href"]=null,o.hasOwnProperty("rel")&&!o.rel&&(o.rel=null),r.attr(o)):i.execCommand("unlink")})),wpLink.close("noReset"),i.focus(),r.length&&((s=r.parent("#_mce_caret")).length&&s.before(r.removeAttr("data-mce-bogus")),i.selection.select(r[0]),i.selection.collapse(),i.plugins.wplink&&i.plugins.wplink.checkLink(r[0])),i.nodeChanged(),p.title.val(""),n.a11y.speak(t.linkInserted)},updateFields:function(e,t){p.url.val(t.children(".item-permalink").val()),p.wrap.hasClass("has-text-field")&&!p.text.val()&&p.text.val(t.children(".item-title").text())},getUrlFromSelection:function(t){return t||(this.isMCE()?t=i.selection.getContent({format:"text"}):document.selection&&wpLink.range?t=wpLink.range.text:void 0!==this.textarea.selectionStart&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd))),(t=e.trim(t))&&o.test(t)?"mailto:"+t:t&&c.test(t)?t.replace(/&|�?38;/gi,"&"):""},setDefaultValues:function(e){p.url.val(this.getUrlFromSelection(e)),p.search.val(""),wpLink.searchInternalLinks(),p.submit.val(t.save)},searchInternalLinks:function(){var e,t=p.search.val()||"";if(2<t.length){if(u.recent.hide(),u.search.show(),wpLink.lastSearch===t)return;wpLink.lastSearch=t,e=p.search.parent().find(".spinner").addClass("is-active"),u.search.change(t),u.search.ajax((function(){e.removeClass("is-active")}))}else u.search.hide(),u.recent.show()},next:function(){u.search.next(),u.recent.next()},prev:function(){u.search.prev(),u.recent.prev()},keydown:function(e){var t;if(27===e.keyCode?(wpLink.close(),e.stopImmediatePropagation()):9===e.keyCode&&("wp-link-submit"!==(t=e.target.id)||e.shiftKey?"wp-link-close"===t&&e.shiftKey&&(p.submit.focus(),e.preventDefault()):(p.close.focus(),e.preventDefault())),!(e.shiftKey||38!==e.keyCode&&40!==e.keyCode||document.activeElement&&("link-title-field"===document.activeElement.id||"url-field"===document.activeElement.id))){var n=38===e.keyCode?"prev":"next";clearInterval(wpLink.keyInterval),wpLink[n](),wpLink.keyInterval=setInterval(wpLink[n],wpLink.keySensitivity),e.preventDefault()}},keyup:function(e){38!==e.keyCode&&40!==e.keyCode||(clearInterval(wpLink.keyInterval),e.preventDefault())},delayedCallback:function(e,t){var n,i,r,l;return t?(setTimeout((function(){if(i)return e.apply(l,r);n=!0}),t),function(){if(n)return e.apply(this,arguments);r=arguments,l=this,i=!0}):e}},s=function(t,n){var i=this;this.element=t,this.ul=t.children("ul"),this.contentHeight=t.children("#link-selector-height"),this.waiting=t.find(".river-waiting"),this.change(n),this.refresh(),e("#wp-link .query-results, #wp-link #link-selector").scroll((function(){i.maybeLoad()})),t.on("click","li",(function(t){i.select(e(this),t)}))},e.extend(s.prototype,{refresh:function(){this.deselect(),this.visible=this.element.is(":visible")},show:function(){this.visible||(this.deselect(),this.element.show(),this.visible=!0)},hide:function(){this.element.hide(),this.visible=!1},select:function(e,t){if(!e.hasClass("unselectable")&&e!==this.selected){this.deselect(),this.selected=e.addClass("selected");var n=e.outerHeight(),i=this.element.height(),r=e.position().top,l=this.element.scrollTop();0>r?this.element.scrollTop(l+r):r+n>i&&this.element.scrollTop(l+r-i+n),this.element.trigger("river-select",[e,t,this])}},deselect:function(){this.selected&&this.selected.removeClass("selected"),this.selected=!1},prev:function(){var e;this.visible&&(this.selected&&(e=this.selected.prev("li")).length&&this.select(e))},next:function(){if(this.visible){var t=this.selected?this.selected.next("li"):e("li:not(.unselectable):first",this.element);t.length&&this.select(t)}},ajax:function(e){var t=this,n=1===this.query.page?0:wpLink.minRiverAJAXDuration,i=wpLink.delayedCallback((function(n,i){t.process(n,i),e&&e(n,i)}),n);this.query.ajax(i)},change:function(e){this.query&&this._search===e||(this._search=e,this.query=new a(e),this.element.scrollTop(0))},process:function(n,i){var r="",l=!0,a="",s=1===i.page;n?e.each(n,(function(){a=l?"alternate":"",a+=this.title?"":" no-title",r+=a?'<li class="'+a+'">':"<li>",r+='<input type="hidden" class="item-permalink" value="'+this.permalink+'" />',r+='<span class="item-title">',r+=this.title?this.title:t.noTitle,r+='</span><span class="item-info">'+this.info+"</span></li>",l=!l})):s&&(r+='<li class="unselectable no-matches-found"><span class="item-title"><em>'+t.noMatchesFound+"</em></span></li>"),this.ul[s?"html":"append"](r)},maybeLoad:function(){var e=this,t=this.element,n=t.scrollTop()+t.height();!this.query.ready()||n<this.contentHeight.height()-wpLink.riverBottomThreshold||setTimeout((function(){var n=t.scrollTop(),i=n+t.height();!e.query.ready()||i<e.contentHeight.height()-wpLink.riverBottomThreshold||(e.waiting.addClass("is-active"),t.scrollTop(n+e.waiting.outerHeight()),e.ajax((function(){e.waiting.removeClass("is-active")})))}),wpLink.timeToTriggerRiver)}}),a=function(e){this.page=1,this.allLoaded=!1,this.querying=!1,this.search=e},e.extend(a.prototype,{ready:function(){return!(this.querying||this.allLoaded)},ajax:function(t){var n=this,i={action:"wp-link-ajax",page:this.page,_ajax_linking_nonce:p.nonce.val()};this.search&&(i.search=this.search),this.querying=!0,e.post(window.ajaxurl,i,(function(e){n.page++,n.querying=!1,n.allLoaded=!e,t(e,i)}),"json")}}),e(document).ready(wpLink.init)}(n.n(i).a,window.wpLinkL10n,window.wp)}});
|
includes/admin/class-api.php
CHANGED
@@ -119,7 +119,7 @@ class Api {
|
|
119 |
[
|
120 |
'username' => $username,
|
121 |
'api_key' => $api_key,
|
122 |
-
'site_url' => esc_url(
|
123 |
]
|
124 |
);
|
125 |
}
|
119 |
[
|
120 |
'username' => $username,
|
121 |
'api_key' => $api_key,
|
122 |
+
'site_url' => esc_url( home_url() ),
|
123 |
]
|
124 |
);
|
125 |
}
|
includes/class-frontend-seo-score.php
CHANGED
@@ -147,7 +147,7 @@ class Frontend_SEO_Score {
|
|
147 |
<div class="rank-math-seo-score template-<?php echo sanitize_html_class( $args['template'], 'circle' ); ?> <?php echo sanitize_html_class( $rating, 'unknown' ); ?>-seo <?php echo esc_attr( $args['class'] ); ?>">
|
148 |
|
149 |
<span class="score">
|
150 |
-
<?php echo esc_html( $score ); ?>
|
151 |
<span class="outof">
|
152 |
/ 100
|
153 |
</span>
|
147 |
<div class="rank-math-seo-score template-<?php echo sanitize_html_class( $args['template'], 'circle' ); ?> <?php echo sanitize_html_class( $rating, 'unknown' ); ?>-seo <?php echo esc_attr( $args['class'] ); ?>">
|
148 |
|
149 |
<span class="score">
|
150 |
+
<?php echo esc_html( absint( $score ) ); ?>
|
151 |
<span class="outof">
|
152 |
/ 100
|
153 |
</span>
|
includes/helpers/class-choices.php
CHANGED
@@ -649,6 +649,10 @@ trait Choices {
|
|
649 |
$post_type
|
650 |
);
|
651 |
|
|
|
|
|
|
|
|
|
652 |
if ( class_exists( 'WooCommerce' ) && 'product' === $post_type ) {
|
653 |
return 'WooCommerceProduct';
|
654 |
}
|
649 |
$post_type
|
650 |
);
|
651 |
|
652 |
+
if ( ! $schema ) {
|
653 |
+
return false;
|
654 |
+
}
|
655 |
+
|
656 |
if ( class_exists( 'WooCommerce' ) && 'product' === $post_type ) {
|
657 |
return 'WooCommerceProduct';
|
658 |
}
|
includes/helpers/class-wordpress.php
CHANGED
@@ -367,7 +367,11 @@ trait WordPress {
|
|
367 |
* @return int
|
368 |
*/
|
369 |
public static function duration_to_seconds( $iso8601 ) {
|
370 |
-
$
|
|
|
|
|
|
|
|
|
371 |
$interval = new \DateInterval( $iso8601 );
|
372 |
|
373 |
return array_sum(
|
367 |
* @return int
|
368 |
*/
|
369 |
public static function duration_to_seconds( $iso8601 ) {
|
370 |
+
$end = substr( $iso8601, -1 );
|
371 |
+
if ( ! in_array( $end, [ 'D', 'H', 'M', 'S' ], true ) ) {
|
372 |
+
$iso8601 = $iso8601 . 'S';
|
373 |
+
}
|
374 |
+
$iso8601 = ! Str::starts_with( 'P', $iso8601 ) ? 'PT' . $iso8601 : $iso8601;
|
375 |
$interval = new \DateInterval( $iso8601 );
|
376 |
|
377 |
return array_sum(
|
includes/modules/analytics/class-analytics-common.php
CHANGED
@@ -44,6 +44,7 @@ class Analytics_Common {
|
|
44 |
|
45 |
$this->filter( 'rank_math/tools/analytics_clear_caches', 'analytics_clear_caches' );
|
46 |
$this->filter( 'rank_math/tools/analytics_reindex_posts', 'analytics_reindex_posts' );
|
|
|
47 |
}
|
48 |
|
49 |
/**
|
@@ -116,4 +117,19 @@ class Analytics_Common {
|
|
116 |
Data_Fetcher::get()->flat_posts();
|
117 |
return __( 'Post re-index in progress.', 'rank-math' );
|
118 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
}
|
44 |
|
45 |
$this->filter( 'rank_math/tools/analytics_clear_caches', 'analytics_clear_caches' );
|
46 |
$this->filter( 'rank_math/tools/analytics_reindex_posts', 'analytics_reindex_posts' );
|
47 |
+
$this->filter( 'rank_math/tools/analytics_recreate_table', 'analytics_recreate_table' );
|
48 |
}
|
49 |
|
50 |
/**
|
117 |
Data_Fetcher::get()->flat_posts();
|
118 |
return __( 'Post re-index in progress.', 'rank-math' );
|
119 |
}
|
120 |
+
|
121 |
+
/**
|
122 |
+
* Recreate tables.
|
123 |
+
*/
|
124 |
+
public function analytics_recreate_table() {
|
125 |
+
delete_option( 'rank_math_analytics_installed' );
|
126 |
+
( new \RankMath\Analytics\Installer() )->install( false );
|
127 |
+
|
128 |
+
if ( defined( 'RANK_MATH_PRO_VERSION' ) ) {
|
129 |
+
delete_option( 'rank_math_analytics_pro_installed' );
|
130 |
+
( new \RankMathPro\Analytics\Installer() )->install();
|
131 |
+
}
|
132 |
+
|
133 |
+
return __( 'Tables re-created.', 'rank-math' );
|
134 |
+
}
|
135 |
}
|
includes/modules/analytics/class-analytics.php
CHANGED
@@ -493,6 +493,12 @@ class Analytics extends Base {
|
|
493 |
'description' => sprintf( __( 'Missing some posts/pages in the Analytics data? Clear the index and build a new one for more accurate stats.', 'rank-math' ), '<a href="https://rankmath.com/kb/how-to-fix-review-schema-errors/" target="_blank">' . esc_attr__( 'here', 'rank-math' ) . '</a>' ),
|
494 |
'button_text' => __( 'Rebuild Index', 'rank-math' ),
|
495 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
496 |
],
|
497 |
3
|
498 |
);
|
493 |
'description' => sprintf( __( 'Missing some posts/pages in the Analytics data? Clear the index and build a new one for more accurate stats.', 'rank-math' ), '<a href="https://rankmath.com/kb/how-to-fix-review-schema-errors/" target="_blank">' . esc_attr__( 'here', 'rank-math' ) . '</a>' ),
|
494 |
'button_text' => __( 'Rebuild Index', 'rank-math' ),
|
495 |
],
|
496 |
+
'analytics_recreate_table' => [
|
497 |
+
'title' => __( 'Re-create database Table', 'rank-math' ),
|
498 |
+
/* translators: 1. Review Schema documentation link */
|
499 |
+
'description' => __( 'Create database tables if missing.', 'rank-math' ),
|
500 |
+
'button_text' => __( 'Re-create Tables', 'rank-math' ),
|
501 |
+
],
|
502 |
],
|
503 |
3
|
504 |
);
|
includes/modules/analytics/class-data-fetcher.php
CHANGED
@@ -263,7 +263,6 @@ class Data_Fetcher {
|
|
263 |
public function daily_tasks() {
|
264 |
$start = Helper::get_midnight( time() - DAY_IN_SECONDS );
|
265 |
$date = date_i18n( 'Y-m-d', $start - DAY_IN_SECONDS * 2 );
|
266 |
-
Api::get()->refresh_token_on_login();
|
267 |
$this->get_analytics_data( $date );
|
268 |
$this->delete_all_useless();
|
269 |
$this->calculate_stats();
|
263 |
public function daily_tasks() {
|
264 |
$start = Helper::get_midnight( time() - DAY_IN_SECONDS );
|
265 |
$date = date_i18n( 'Y-m-d', $start - DAY_IN_SECONDS * 2 );
|
|
|
266 |
$this->get_analytics_data( $date );
|
267 |
$this->delete_all_useless();
|
268 |
$this->calculate_stats();
|
includes/modules/analytics/class-installer.php
CHANGED
@@ -68,8 +68,8 @@ class Installer {
|
|
68 |
position DOUBLE NOT NULL,
|
69 |
ctr DOUBLE NOT NULL,
|
70 |
PRIMARY KEY (id),
|
71 |
-
INDEX analytics_query (query),
|
72 |
-
INDEX analytics_page (page),
|
73 |
INDEX clicks (clicks),
|
74 |
INDEX position (position)
|
75 |
) $collate;",
|
@@ -93,7 +93,7 @@ class Installer {
|
|
93 |
mobile_pagescore DOUBLE DEFAULT 0,
|
94 |
pagespeed_refreshed TIMESTAMP,
|
95 |
PRIMARY KEY (id),
|
96 |
-
INDEX analytics_object_page (page)
|
97 |
) $collate;",
|
98 |
];
|
99 |
|
68 |
position DOUBLE NOT NULL,
|
69 |
ctr DOUBLE NOT NULL,
|
70 |
PRIMARY KEY (id),
|
71 |
+
INDEX analytics_query (query(190)),
|
72 |
+
INDEX analytics_page (page(190)),
|
73 |
INDEX clicks (clicks),
|
74 |
INDEX position (position)
|
75 |
) $collate;",
|
93 |
mobile_pagescore DOUBLE DEFAULT 0,
|
94 |
pagespeed_refreshed TIMESTAMP,
|
95 |
PRIMARY KEY (id),
|
96 |
+
INDEX analytics_object_page (page(190))
|
97 |
) $collate;",
|
98 |
];
|
99 |
|
includes/modules/analytics/class-watcher.php
CHANGED
@@ -76,7 +76,7 @@ class Watcher {
|
|
76 |
$fk = get_post_meta( $post_id, 'rank_math_focus_keyword', true );
|
77 |
$schemas = \RankMath\Schema\DB::get_schema_types( $post_id );
|
78 |
|
79 |
-
if ( 'off' === get_post_meta( $post_id, 'rank_math_rich_snippet', true ) ) {
|
80 |
$schemas = __( 'None', 'rank-math' );
|
81 |
}
|
82 |
|
76 |
$fk = get_post_meta( $post_id, 'rank_math_focus_keyword', true );
|
77 |
$schemas = \RankMath\Schema\DB::get_schema_types( $post_id );
|
78 |
|
79 |
+
if ( empty( $schemas ) && 'off' === get_post_meta( $post_id, 'rank_math_rich_snippet', true ) ) {
|
80 |
$schemas = __( 'None', 'rank-math' );
|
81 |
}
|
82 |
|
includes/modules/analytics/google/class-api.php
CHANGED
@@ -54,6 +54,7 @@ class Api extends Console {
|
|
54 |
|
55 |
$tokens = Authentication::tokens();
|
56 |
$this->token = $tokens['access_token'];
|
|
|
57 |
}
|
58 |
|
59 |
/**
|
@@ -67,7 +68,6 @@ class Api extends Console {
|
|
67 |
|
68 |
$tokens = Authentication::tokens();
|
69 |
if ( empty( $tokens['refresh_token'] ) ) {
|
70 |
-
// Authentication::tokens( false );
|
71 |
return;
|
72 |
}
|
73 |
|
54 |
|
55 |
$tokens = Authentication::tokens();
|
56 |
$this->token = $tokens['access_token'];
|
57 |
+
$this->refresh_token_on_login();
|
58 |
}
|
59 |
|
60 |
/**
|
68 |
|
69 |
$tokens = Authentication::tokens();
|
70 |
if ( empty( $tokens['refresh_token'] ) ) {
|
|
|
71 |
return;
|
72 |
}
|
73 |
|
includes/modules/schema/assets/js/schema-classic.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function r(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(a,i,function(t){return e[t]}.bind(null,i));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=36)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.hooks},function(e,t,r){"use strict";r.d(t,"k",(function(){return a.b})),r.d(t,"h",(function(){return a.a})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return c})),r.d(t,"g",(function(){return m})),r.d(t,"i",(function(){return d})),r.d(t,"a",(function(){return p})),r.d(t,"d",(function(){return h})),r.d(t,"j",(function(){return _})),r.d(t,"f",(function(){return O})),r.d(t,"e",(function(){return k})),r.d(t,"m",(function(){return A})),r.d(t,"l",(function(){return G})),r.d(t,"n",(function(){return q}));var a=r(18),i=r(1);function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,s=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,n=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw n}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function s(e,t){if(Object(i.isEmpty)(e)||t.id===e)return t;var r,a=n(t.properties);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.id===e)return o;if(o.map.isGroup){var c=s(e,o);if(c)return c}}}catch(e){a.e(e)}finally{a.f()}}function c(e,t){if(Object(i.isEmpty)(e))return t;var r,a=n(t.properties);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.property===e)return o.value=Object(i.has)(t.metadata,e)?t.metadata[e]:o.value,o}}catch(e){a.e(e)}finally{a.f()}return!1}var l=r(10);function m(){return{id:"g-".concat(Object(l.v4)()),property:"",properties:[],map:{isGroup:!0,isArray:!1,isRequired:!1,isRecommended:!1}}}function d(){return{id:"p-".concat(Object(l.v4)()),property:"",value:"",map:{isGroup:!1,isArray:!1,isRequired:!1,isRecommended:!1}}}function p(e){return e.id="g-".concat(Object(l.v4)()),e.properties.forEach((function(e){e.map.isGroup?p(e):e.id="p-".concat(Object(l.v4)())})),e}var u=function e(t){if(!t)return m();var r=t.map.isGroup?m():d();return Object(i.forEach)(t,(function(t,a){if("map"!==a){var n=d();t.map.isGroup&&(n=e(t)),n.map=t.map,n.property=a,n.value=Object(i.get)(t.map,"value",Object(i.get)(t.map,"field.default","")),r.properties.push(n)}else Object(i.has)(t,"title")&&(r.map.title=t.title,r.map.defaultEn=t.defaultEn)})),r};function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(i.isString)(e)?Object(a.a)(e):e,n=u(r);return(n=Object(i.merge)(n,t)).property=e,n}var b=r(3);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t){return Object(i.isEmpty)(t)||Object(i.forEach)(t,(function(t,r){if("@context"!==r){var n=c(r,e);if(n)R(n,r,t);else{var o=Object(a.a)(r);Object(i.isArray)(t)?(n=m()).map.isArray=!0:n=Object(i.isObject)(t)||o?_(o?h(o):m(),t):d(),R(n,r,t),n.property=r,e.properties.push(n)}}})),e}var R=function(e,t,r){if(!t)return e;var a=Object(b.applyFilters)("rank_math_schema_convert_value",!1,e,t,r);return!1!==a||!1!==(a=Object(b.applyFilters)("rank_math_schema_convert_"+t,!1,e,r))?a:(e.value=r,e)};function O(e,t){return _(h(t),e)}function k(e){var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),r=Object(b.applyFilters)("rank_math_schema_type",Object(i.get)(t,"@type","")),a=Object(i.get)(t,"metadata",{type:"template"});delete t.metadata;var n="custom"===a.type?m():h(r);Object(i.has)(n.map,"title")&&!Object(i.has)(a,"title")&&(a.title=n.map.title),Object(i.has)(a,"title")&&a.title===n.map.defaultEn&&(a.title=n.map.title),n.property=Object(i.get)(a,"title",r),n.metadata=a;var o=c("@type",n);!1!==o&&""!==o.value&&(t["@type"]=o.value);var s=(n=_(n,t)).properties.pop();return n.properties.unshift(s),n}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){if(!Object(i.isEmpty)(e.value)||!Object(i.isUndefined)(e.map.field)&&"toggle"===e.map.field.type)return e.value;var t=Object(i.get)(e,"map.field.placeholder");return Object(i.isEmpty)(t)?Object(i.get)(e,"map.field.default",!1):t},w=function(e){if(Object(i.isEmpty)(e)||Object(i.isUndefined)(e.properties))return e;var t={};return"metadata"in e&&(t.metadata=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.metadata),t.metadata.title=e.property),Object(i.map)(e.properties,(function(e){var r=Object(i.get)(e,"map.save",!0),a=Object(i.get)(e,"map.isHidden",!1);if(!1!==r&&!a)if("metadata"!==r){var n=function(e){var t=!1;return t=Object(b.applyFilters)("rank_math_schema_process_value",t,e),Object(b.applyFilters)("rank_math_schema_process_"+e.property,t,e)}(e);if(!1===n){if(e.map.isArray){var o=[];return Object(i.map)(e.properties,(function(e){o.push(Object(i.isUndefined)(e.properties)?e.value:A(e))})),void(t[e.property]=o)}if(e.map.isGroup){var s=A(e);return s["@type"]=Object(i.get)(s,"@type",e.property),void(t[e.property]=s)}var c=v(e);!Object(i.isBoolean)(c)&&Object(i.isEmpty)(c)||!c||(t[e.property]=c)}else t[e.property]=n}else{var l=v(e);if(Object(i.isEmpty)(l)&&"toggle"!==e.map.field.type)return;t.metadata[e.property]=l}})),t};function A(e){var t=w(e);return t=Object(b.applyFilters)("rank_math_processed_schema_"+t["@type"],t),Object(b.applyFilters)("rank_math_processed_schema",t)}function G(e){return"string"!=typeof e&&(e=JSON.stringify(e,null,2)),(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,(function(e){var t="number";return/^"/.test(e)?t=/:$/.test(e)?"key":"string":/true|false/.test(e)?t="boolean":/null/.test(e)&&(t="null"),'<span class="'+t+'">'+e+"</span>"}))}function q(e,t){if(!Object(i.has)(e,"map.dependency"))return!0;var r=null,a=e.map.dependency,n=Object(i.get)(a,"relation","or");return Object(i.forEach)(a,(function(e){var a,o,s,l=c(e.field,t),m=(a=l.value,o=Object(i.get)(e,"value",!1),s=Object(i.get)(e,"comparison","="),Object(i.isArray)(o)&&"="===s?o.includes(a):Object(i.isArray)(o)&&"!="===s?!o.includes(a):"="===s&&a===o||"=="===s&&a===o||">="===s&&a>=o||"<="===s&&a<=o||">"===s&&a>o||"<"===s&&a<o||"!="===s&&a!==o);if("or"===n&&m)return r=!0,!1;"and"===n&&(r=(null===r||r)&&m)})),!!r}},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.element},function(e,t){e.exports=wp.compose},function(e,t){e.exports=jQuery},function(e,t,r){var a;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)&&a.length){var o=i.apply(null,a);o&&e.push(o)}else if("object"===n)for(var s in a)r.call(a,s)&&a[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(a=function(){return i}.apply(t,[]))||(e.exports=a)}()},function(e,t,r){var a=r(25),i=r(26),n=i;n.v1=a,n.v4=i,e.exports=n},function(e,t,r){"use strict";var a=r(12),i=r(0),n=r(2);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],a=!0,i=!1,n=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){i=!0,n=e}finally{try{a||null==s.return||s.return()}finally{if(i)throw n}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}t.a=function(e){var t=e.onClick,r=e.children,s=(e.className,Object(a.useRef)()),c=o(Object(a.useState)(!1),2),l=c[0],m=c[1],d=function(e){s.current.contains(e.target)||m(!1)};return Object(a.useEffect)((function(){return l?document.addEventListener("mousedown",d):document.removeEventListener("mousedown",d),function(){document.removeEventListener("mousedown",d)}}),[l]),wp.element.createElement("div",{ref:s,className:"rank-math-inline-confirmation"},!l&&r(m),l&&wp.element.createElement("div",{className:"rank-math-confirm-delete"},wp.element.createElement("span",null,Object(i.__)("Delete?","rank-math")),wp.element.createElement(n.Button,{isLink:!0,onClick:function(){m(!1),t()}},wp.element.createElement("span",null,Object(i.__)("Yes","rank-math"))),wp.element.createElement(n.Button,{isLink:!0,onClick:function(){return m(!1)}},wp.element.createElement("span",null,Object(i.__)("No","rank-math")))))}},function(e,t){e.exports=React},function(e,t,r){e.exports=r(27)()},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var a=r(1);function i(e){return Object(a.get)({off:"rm-icon rm-icon-schema",Article:"rm-icon rm-icon-post",Book:"rm-icon rm-icon-book",Course:"rm-icon rm-icon-course",Event:"rm-icon rm-icon-calendar",JobPosting:"rm-icon rm-icon-job",Local:"rm-icon rm-icon-local-seo",Music:"rm-icon rm-icon-music",Product:"rm-icon rm-icon-cart",WooCommerceProduct:"rm-icon rm-icon-cart",Recipe:"rm-icon rm-icon-recipe",Restaurant:"rm-icon rm-icon-restaurant",Video:"rm-icon rm-icon-video",Person:"rm-icon rm-icon-users",Review:"rm-icon rm-icon-star",Service:"rm-icon rm-icon-service",Software:"rm-icon rm-icon-software"},e,"rm-icon rm-icon-schema")}},function(e,t){e.exports=rankMathAnalyzer},function(e,t){e.exports=wp.apiFetch},function(e,t,r){"use strict";var a=r(1),i=r(0),n=r(7),o=r(2),s=r(5),c=r(14),l=r(11),m=Object(o.withFilters)("rankMath.schema.SchemaList")((function(e){var t=e.schemas,r=e.edit,n=e.trash,s=e.preview,m=e.showProNotice;return Object(a.isEmpty)(t)?null:wp.element.createElement("div",{className:"rank-math-schema-in-use"},wp.element.createElement("h4",{className:"rank-math-schema-section-title"},Object(i.__)("Schema in Use","rank-math")),m&&wp.element.createElement("div",{className:"components-notice rank-math-notice is-warning"},wp.element.createElement("div",{className:"components-notice__content"},Object(i.__)("Multiple Schemas are allowed in the","rank-math")," ",wp.element.createElement("a",{href:"https://rankmath.com/pricing/?utm_source=Plugin&utm_medium=Schema%20Tab%20Notice&utm_campaign=WP",rel:"noreferrer noopener",target:"_blank"},wp.element.createElement("strong",null,Object(i.__)("PRO Version","rank-math"))))),Object(a.map)(t,(function(e,t){return wp.element.createElement("div",{key:t,id:"rank-math-schema-item",className:"rank-math-schema-item row"},wp.element.createElement("strong",{className:"rank-math-schema-name"},wp.element.createElement("i",{className:Object(c.a)(e["@type"])}),Object(a.get)(e,"metadata.title",e["@type"])),wp.element.createElement("span",{className:"rank-math-schema-item-actions"},wp.element.createElement(o.Button,{className:"button rank-math-edit-schema",isLink:!0,onClick:function(){return r(t)}},wp.element.createElement("i",{className:"rm-icon rm-icon-edit"}),wp.element.createElement("span",null,Object(i.__)("Edit","rank-math"))),wp.element.createElement(o.Button,{className:"button rank-math-preview-schema",isLink:!0,onClick:function(){return s(t)}},wp.element.createElement("i",{className:"rm-icon rm-icon-eye"}),wp.element.createElement("span",null,Object(i.__)("Preview","rank-math"))),wp.element.createElement(l.a,{key:t,onClick:function(){return n(t)}},(function(e){return wp.element.createElement(o.Button,{isLink:!0,className:"button rank-math-delete-schema",onClick:function(){return e(!0)}},wp.element.createElement("i",{className:"rm-icon rm-icon-trash"}),wp.element.createElement("span",null,Object(i.__)("Delete","rank-math")))}))))})))}));t.a=Object(n.compose)(Object(s.withSelect)((function(e){var t=e("rank-math").getSchemas();return{schemas:t,showProNotice:1<=Object.keys(t).length}})),Object(s.withDispatch)((function(e){return{trash:function(t){e("rank-math").deleteSchema(t)},edit:function(t){e("rank-math").setEditingSchemaId(t),e("rank-math").toggleSchemaEditor(!0)},preview:function(t){e("rank-math").setEditingSchemaId(t),e("rank-math").setEditorTab("codeValidation"),e("rank-math").toggleSchemaEditor(!0)}}})))(m)},function(e,t,r){"use strict";r.d(t,"b",(function(){return p})),r.d(t,"a",(function(){return u}));var a=r(1),i=r(0),n=r(16),o=r.n(n),s=r(3),c={version:"1.0.0",properties:{author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math")}}}},rating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}},bookEditions:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Edition","rank-math"),help:Object(i.__)("Either a specific edition of the written work, or the volume of the work","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Book"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Title","rank-math"),help:Object(i.__)("The title of the tome. Use for the title of the tome if it differs from the book. *Optional when tome has the same title as the book","rank-math")}}},bookEdition:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Edition","rank-math"),help:Object(i.__)("The edition of the book","rank-math")}}},isbn:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("ISBN","rank-math"),help:Object(i.__)("The ISBN of the print book","rank-math")}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("URL","rank-math"),help:Object(i.__)("URL specific to this edition if one exists","rank-math")}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datepicker",label:Object(i.__)("Date Published","rank-math"),help:Object(i.__)("Date of first publication of this tome","rank-math")}}},bookFormat:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Book Format","rank-math"),desc:"The format of the book.",options:{"https://schema.org/EBook":"eBook","https://schema.org/Hardcover":"Hardcover","https://schema.org/Paperback":"Paperback","https://schema.org/AudioBook":"Audio Book"},default:"https://schema.org/Hardcover"}}}},provider:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Course Provider","rank-math"),classes:"show-property",options:{Organization:"Organization",Person:"Person"},default:"Organization"}}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Course Provider Name","rank-math")}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Course Provider URL","rank-math")}}}},"virtual-location":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{value:"VirtualLocation"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Online Event URL","rank-math"),help:Object(i.__)("The URL of the online event, where people can join. This property is required if your event is happening online","rank-math")}}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}},"physical-location":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Place"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue Name","rank-math"),help:Object(i.__)("The venue name.","rank-math")}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue URL","rank-math"),help:Object(i.__)("Website URL of the venue","rank-math")}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}}},"event-performer":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Performer Information","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Performer","rank-math"),classes:"show-property",options:{Organization:"Organization",Person:"Person"},default:"Person"}}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math")}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Website or Social Link","rank-math")}}}},offers:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Offers","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Offer"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math")}}},category:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Category","rank-math")}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("URL","rank-math")}}},price:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Price","rank-math")}}},priceCurrency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Currency","rank-math")}}},availability:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Availability","rank-math"),help:Object(i.__)("Offer availability","rank-math"),classes:"col-4",options:{"":"None",InStock:"In Stock",SoldOut:"Sold Out",PreOrder:"Preorder"},default:"InStock"}}},validFrom:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid From","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math")}}},priceValidUntil:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid Until","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math")}}},inventoryLevel:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Inventory Level","rank-math")}}}},"monetary-amount-unit":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Salary","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"QuantitativeValue"}},value:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Salary (Recommended)","rank-math"),help:Object(i.__)("Insert amount, e.g. 50.00, or a salary range, e.g. 40.00-50.00","rank-math"),classes:"col-4"}}},unitText:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Payroll (Recommended)","rank-math"),help:Object(i.__)("Salary amount is for","rank-math"),options:{"":"None",YEAR:"Yearly",MONTH:"Monthly",WEEK:"Weekly",DAY:"Daily",HOUR:"Hourly"},classes:"col-4"}}}},"monetary-amount":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"MonetaryAmount"}},currency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Salary Currency","rank-math"),help:Object(i.__)("ISO 4217 Currency code. Example: EUR","rank-math"),classes:"col-4"}}},value:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Salary","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"QuantitativeValue"}},value:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Salary (Recommended)","rank-math"),help:Object(i.__)("Insert amount, e.g. 50.00, or a salary range, e.g. 40.00-50.00","rank-math"),classes:"col-4"}}},unitText:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Payroll (Recommended)","rank-math"),help:Object(i.__)("Salary amount is for","rank-math"),options:{"":"None",YEAR:"Yearly",MONTH:"Monthly",WEEK:"Weekly",DAY:"Daily",HOUR:"Hourly"},classes:"col-4"}}}}},"hiring-organization":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Organization"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Hiring Organization","rank-math"),help:Object(i.__)("The name of the company. Leave empty to use your own company information.","rank-math"),classes:"col-4"}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Organization URL (Recommended)","rank-math"),help:Object(i.__)("The URL of the organization offering the job position. Leave empty to use your own company information","rank-math"),classes:"col-6"}}},logo:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Organization Logo (Recommended)","rank-math"),help:Object(i.__)("Logo URL of the organization offering the job position. Leave empty to use your own company information","rank-math"),classes:"col-6"}}}},brand:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Brand"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Brand Name","rank-math")}}}},calories:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"NutritionInformation"}},calories:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Calories","rank-math"),help:Object(i.__)("The number of calories in the recipe. Optional.","rank-math")}}}},"video-object":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Video","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"VideoObject"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Name","rank-math"),help:Object(i.__)("A recipe video Name","rank-math"),classes:"col-6"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),help:Object(i.__)("A recipe video Description","rank-math")}}},embedUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Video URL","rank-math"),help:Object(i.__)("A video URL. Optional.","rank-math"),classes:"col-6"}}},contentUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Content URL","rank-math"),help:Object(i.__)("A URL pointing to the actual video media file","rank-math"),classes:"col-6"}}},thumbnailUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Recipe Video Thumbnail","rank-math"),help:Object(i.__)("A recipe video thumbnail URL","rank-math"),classes:"col-6"}}},uploadDate:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datepicker",label:Object(i.__)("Video Upload Date","rank-math"),classes:"col-6"}}}},instructionText:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"HowtoStep"}},text:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"textarea"}}}},instructions:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Recipe Instructions","rank-math"),help:Object(i.__)("Either a specific edition of the written work, or the volume of the work","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"HowToSection"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Name","rank-math"),help:Object(i.__)("Instruction name of the recipe.","rank-math")}}},itemListElement:{map:{isArray:!0,isGroup:!0,isRequired:!1,isRecommended:!1,arrayMap:"instructionText",arrayProps:{map:{classes:"show-delete-property-group"}},classes:"show-add-property-group",field:{label:Object(i.__)("Instruction Texts","rank-math")}}}},"geo-coordinates":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Geo Cordinates","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"GeoCoordinates"}},latitude:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Latitude","rank-math")}}},longitude:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Longitude","rank-math")}}}},"opening-hours":{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Timings","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"OpeningHoursSpecification"}},dayOfWeek:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"checkbox",label:Object(i.__)("Open Days","rank-math"),options:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},default:[]}}},opens:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"timepicker",label:Object(i.__)("Opening Time","rank-math"),classes:"col-6",placeholder:"09:00 AM"}}},closes:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"timepicker",label:Object(i.__)("Closing Time","rank-math"),classes:"col-6",placeholder:"05:00 PM"}}}},cuisine:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1},cuisine:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Cuisine","rank-math")}}}}},schemas:{Article:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Article","rank-math"),defaultEn:"Article"},headline:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Article Type","rank-math"),classes:"show-property",options:{Article:"Article",BlogPosting:"Blog Post",NewsArticle:"News Article"},notice:{status:"warning",className:"article-notice",content:Object(i.__)("Google does not allow Person as the Publisher for articles. Organization will be used instead.","rank-math")}}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Published Date","rank-math"),classes:"hide-group",default:"%date(Y-m-d\\TH:i:sP)%"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Modified Date","rank-math"),classes:"hide-group",default:"%modified(Y-m-d\\TH:i:sP)%"}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Book:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Book","rank-math"),defaultEn:"Book"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("URL","rank-math")}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}},hasPart:{map:{isArray:!0,isGroup:!0,isRequired:!1,isRecommended:!1,arrayMap:"bookEditions",arrayProps:{map:{classes:"show-delete-property-group"}},field:{label:Object(i.__)("Editions","rank-math")}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Course:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Course","rank-math"),defaultEn:"Course"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},provider:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Course Provider","rank-math"),classes:"show-property",options:{Organization:"Organization",Person:"Person"},default:"Organization"}}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Course Provider Name","rank-math")}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Course Provider URL","rank-math")}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}}},Event:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Event","rank-math"),defaultEn:"Event"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"select",label:Object(i.__)("Event Type","rank-math"),help:Object(i.__)("Type of the event","rank-math"),classes:"show-property col-4",options:{Event:"Event",BusinessEvent:"Business Event",ChildrensEvent:"Childrens Event",ComedyEvent:"Comedy Event",DanceEvent:"Dance Event",DeliveryEvent:"Delivery Event",EducationEvent:"Education Event",ExhibitionEvent:"Exhibition Event",Festival:"Festival",FoodEvent:"Food Event",LiteraryEvent:"Literary Event",MusicEvent:"Music Event",PublicationEvent:"Publication Event",SaleEvent:"Sale Event",ScreeningEvent:"Screening Event",SocialEvent:"Social Event",SportsEvent:"Sports Event",TheaterEvent:"Theater Event",VisualArtsEvent:"Visual Arts Event"}}}},eventStatus:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Event Status","rank-math"),help:Object(i.__)("Current status of the event (optional)","rank-math"),options:{"":"None",EventScheduled:"Scheduled",EventCancelled:"Cancelled",EventPostponed:"Postponed",EventRescheduled:"Rescheduled",EventMovedOnline:"Moved Online"},classes:"col-4",default:"EventScheduled"}}},eventAttendanceMode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Event Attendance Mode","rank-math"),help:Object(i.__)("Indicates whether the event occurs online, offline at a physical location, or a mix of both online and offline.","rank-math"),options:{OfflineEventAttendanceMode:"Offline",OnlineEventAttendanceMode:"Online",MixedEventAttendanceMode:"Online + Offline"},default:"OfflineEventAttendanceMode",classes:"col-4"}}},VirtualLocation:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header",dependency:[{field:"eventAttendanceMode",value:["OnlineEventAttendanceMode","MixedEventAttendanceMode"]}]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{value:"VirtualLocation"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Online Event URL","rank-math"),help:Object(i.__)("The URL of the online event, where people can join. This property is required if your event is happening online","rank-math")}}}},location:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header",dependency:[{field:"eventAttendanceMode",value:["OfflineEventAttendanceMode","MixedEventAttendanceMode"]}]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Place"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue Name","rank-math"),help:Object(i.__)("The venue name.","rank-math")}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue URL","rank-math"),help:Object(i.__)("Website URL of the venue","rank-math")}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}}},performer:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Performer Information","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Performer","rank-math"),classes:"show-property",options:{Organization:"Organization",Person:"Person"},default:"Person"}}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math")}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Website or Social Link","rank-math")}}}},startDate:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Start Date","rank-math"),help:Object(i.__)("Date and time of the event","rank-math"),classes:"col-4"}}},endDate:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("End Date","rank-math"),help:Object(i.__)("End date and time of the event","rank-math"),classes:"col-4"}}},offers:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Offers","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Offer"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math"),classes:"hide-group",placeholder:"General Admission"}}},category:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Category","rank-math"),classes:"hide-group",placeholder:"primary"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("URL","rank-math")}}},price:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Price","rank-math")}}},priceCurrency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Currency","rank-math")}}},availability:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Availability","rank-math"),help:Object(i.__)("Offer availability","rank-math"),classes:"col-4",options:{"":"None",InStock:"In Stock",SoldOut:"Sold Out",PreOrder:"Preorder"},default:"InStock"}}},validFrom:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid From","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math")}}},priceValidUntil:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid Until","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math"),classes:"hide-group"}}},inventoryLevel:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Inventory Level","rank-math")}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},JobPosting:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Job Posting","rank-math"),defaultEn:"Job Posting"},title:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},baseSalary:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"MonetaryAmount"}},currency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Salary Currency","rank-math"),help:Object(i.__)("ISO 4217 Currency code. Example: EUR","rank-math"),classes:"col-4"}}},value:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Salary","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"QuantitativeValue"}},value:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Salary (Recommended)","rank-math"),help:Object(i.__)("Insert amount, e.g. 50.00, or a salary range, e.g. 40.00-50.00","rank-math"),classes:"col-4"}}},unitText:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Payroll (Recommended)","rank-math"),help:Object(i.__)("Salary amount is for","rank-math"),options:{"":"None",YEAR:"Yearly",MONTH:"Monthly",WEEK:"Weekly",DAY:"Daily",HOUR:"Hourly"},classes:"col-4"}}}}},datePosted:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datepicker",label:Object(i.__)("Date Posted","rank-math"),help:Object(i.__)("The original date on which employer posted the job. You can leave it empty to use the post publication date as job posted date","rank-math"),classes:"col-4"}}},validThrough:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datepicker",label:Object(i.__)("Expiry Posted","rank-math"),help:Object(i.__)("The date when the job posting will expire. If a job posting never expires, or you do not know when the job will expire, do not include this property","rank-math"),classes:"col-4"}}},unpublish:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Unpublish when expired","rank-math"),options:{on:"Yes",off:"No"},help:Object(i.__)("If checked, post status will be changed to Draft and its URL will return a 404 error, as required by the Rich Result guidelines","rank-math"),classes:"col-4",default:"on"}}},employmentType:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"checkbox",multiple:!0,label:Object(i.__)("Employment Type (Recommended)","rank-math"),help:Object(i.__)("Type of employment. You can choose more than one value","rank-math"),options:{"":"None",FULL_TIME:"Full Time",PART_TIME:"Part Time",CONTRACTOR:"Contractor",TEMPORARY:"Temporary",INTERN:"Intern",VOLUNTEER:"Volunteer",PER_DIEM:"Per Diem",OTHER:"Other"},default:[]}}},hiringOrganization:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Organization"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Hiring Organization","rank-math"),help:Object(i.__)("The name of the company. Leave empty to use your own company information.","rank-math"),classes:"col-4"}}},sameAs:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Organization URL (Recommended)","rank-math"),help:Object(i.__)("The URL of the organization offering the job position. Leave empty to use your own company information","rank-math"),classes:"col-6"}}},logo:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Organization Logo (Recommended)","rank-math"),help:Object(i.__)("Logo URL of the organization offering the job position. Leave empty to use your own company information","rank-math"),classes:"col-6"}}}},id:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Posting ID (Recommended)","rank-math"),help:Object(i.__)("The hiring organization's unique identifier for the job. Leave empty to use the post ID","rank-math"),classes:"col-6"}}},jobLocation:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Place"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue Name","rank-math"),help:Object(i.__)("The venue name.","rank-math"),classes:"hide-group"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Venue URL","rank-math"),help:Object(i.__)("Website URL of the venue","rank-math"),classes:"hide-group"}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Music:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Music","rank-math"),defaultEn:"Music"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("URL","rank-math"),placeholder:"%url%"}}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Music Type","rank-math"),classes:"show-property",options:{MusicGroup:"MusicGroup",MusicAlbum:"MusicAlbum"},default:"MusicGroup"}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Person:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Person","rank-math"),defaultEn:"Person"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},email:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Email","rank-math")}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}},gender:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Gender","rank-math"),classes:"col-6"}}},jobTitle:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Job title","rank-math"),help:Object(i.__)("The job title of the person (for example, Financial Manager).","rank-math"),classes:"col-6"}}}},Product:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Product","rank-math"),defaultEn:"Product"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Product name","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},sku:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Product SKU","rank-math")}}},brand:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Brand"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Brand Name","rank-math")}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}},gtin8:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Gtin","rank-math"),classes:"hide-group"}}},mpn:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("MPN","rank-math"),classes:"hide-group"}}},isbn:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("ISBN","rank-math"),classes:"hide-group"}}},offers:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Offers","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Offer"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math"),classes:"hide-group"}}},category:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Category","rank-math"),classes:"hide-group"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("URL","rank-math"),classes:"hide-group",placeholder:"%url%"}}},price:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Price","rank-math")}}},priceCurrency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Currency","rank-math")}}},availability:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Availability","rank-math"),help:Object(i.__)("Offer availability","rank-math"),classes:"col-4",options:{"":"None",InStock:"In Stock",SoldOut:"Sold Out",PreOrder:"Preorder"},default:"InStock"}}},validFrom:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid From","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math"),classes:"hide-group"}}},priceValidUntil:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid Until","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math")}}},inventoryLevel:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Inventory Level","rank-math"),classes:"hide-group"}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}}},Recipe:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Recipe","rank-math"),defaultEn:"Recipe"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Published Date","rank-math"),classes:"hide-group",default:"%date(Y-m-d\\TH:i:sP)%"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},prepTime:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Preparation Time","rank-math"),help:Object(i.__)("ISO 8601 duration format. Example: PT1H30M","rank-math"),classes:"col-4"}}},cookTime:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Cooking Time","rank-math"),help:Object(i.__)("ISO 8601 duration format. Example: PT1H30M","rank-math"),classes:"col-4"}}},totalTime:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Total Time","rank-math"),help:Object(i.__)("ISO 8601 duration format. Example: PT1H30M","rank-math"),classes:"col-4"}}},recipeCategory:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Type","rank-math"),help:Object(i.__)("Type of dish, for example appetizer, or dessert.","rank-math"),classes:"col-4"}}},recipeCuisine:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Cuisine","rank-math"),help:Object(i.__)("The cuisine of the recipe (for example, French or Ethiopian).","rank-math"),classes:"col-4"}}},keywords:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Keywords","rank-math"),help:Object(i.__)("Other terms for your recipe such as the season, the holiday, or other descriptors. Separate multiple entries with commas.","rank-math"),classes:"col-4"}}},recipeYield:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Recipe Yield","rank-math"),help:Object(i.__)("Quantity produced by the recipe, for example 4 servings","rank-math"),classes:"col-4"}}},nutrition:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"NutritionInformation"}},calories:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Calories","rank-math"),help:Object(i.__)("The number of calories in the recipe. Optional.","rank-math")}}}},recipeIngredient:{map:{isArray:!0,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"show-add-property show-delete-property",field:{label:Object(i.__)("Recipe Ingredients","rank-math"),help:Object(i.__)("Recipe ingredients, add one item per line","rank-math")}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}},video:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Video","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"VideoObject"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Name","rank-math"),help:Object(i.__)("A recipe video Name","rank-math"),classes:"col-6"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),help:Object(i.__)("A recipe video Description","rank-math")}}},embedUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Video URL","rank-math"),help:Object(i.__)("A video URL. Optional.","rank-math"),classes:"col-6"}}},contentUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Content URL","rank-math"),help:Object(i.__)("A URL pointing to the actual video media file","rank-math"),classes:"col-6"}}},thumbnailUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Recipe Video Thumbnail","rank-math"),help:Object(i.__)("A recipe video thumbnail URL","rank-math"),classes:"col-6"}}},uploadDate:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datepicker",label:Object(i.__)("Video Upload Date","rank-math"),classes:"col-6"}}}},instructionType:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"radio",label:Object(i.__)("Instruction Type","rank-math"),options:{SingleField:"Single Field",HowToStep:"How To Step"},default:"SingleField"}}},instructionsSingleField:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Recipe Instructions","rank-math")},dependency:[{field:"instructionType",value:"SingleField"}]}},instructionsHowToStep:{map:{isArray:!0,isGroup:!0,isRequired:!1,isRecommended:!1,arrayMap:"instructions",arrayProps:{map:{classes:"show-delete-property-group"}},field:{label:Object(i.__)("Recipe Instructions","rank-math")},dependency:[{field:"instructionType",value:["HowToStep"]}]}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Restaurant:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Restaurant","rank-math"),defaultEn:"Restaurant"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},telephone:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Phone Number","rank-math")}}},priceRange:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Price Range","rank-math"),classes:"col-4"}}},address:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Address","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"PostalAddress"}},streetAddress:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Street Address","rank-math")}}},addressLocality:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Locality","rank-math")}}},addressRegion:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Region","rank-math")}}},postalCode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Postal Code","rank-math")}}},addressCountry:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"text",label:Object(i.__)("Country","rank-math")}}}},geo:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Geo Cordinates","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"GeoCoordinates"}},latitude:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Latitude","rank-math")}}},longitude:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Longitude","rank-math")}}}},openingHoursSpecification:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Timings","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"OpeningHoursSpecification"}},dayOfWeek:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"checkbox",label:Object(i.__)("Open Days","rank-math"),options:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},default:[]}}},opens:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"timepicker",label:Object(i.__)("Opening Time","rank-math"),classes:"col-6",placeholder:"09:00 AM"}}},closes:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"timepicker",label:Object(i.__)("Closing Time","rank-math"),classes:"col-6",placeholder:"05:00 PM"}}}},servesCuisine:{map:{isArray:!0,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"show-add-property show-delete-property",field:{label:Object(i.__)("Serves Cuisine","rank-math")}}},hasMenu:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Menu URL","rank-math"),help:Object(i.__)("URL pointing to the menu of the restaurant.","rank-math"),classes:"col-6"}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},Service:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Service","rank-math"),defaultEn:"Service"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},serviceType:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Service Type","rank-math"),help:Object(i.__)("The type of service being offered, e.g. veterans' benefits, emergency relief, etc.","rank-math"),classes:"col-4"}}},offers:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Offers","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Offer"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math"),classes:"hide-group"}}},category:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Category","rank-math"),classes:"hide-group"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("URL","rank-math"),classes:"hide-group"}}},price:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Price","rank-math")}}},priceCurrency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Currency","rank-math")}}},availability:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Availability","rank-math"),help:Object(i.__)("Offer availability","rank-math"),classes:["col-4","hide-group"],options:{"":"None",InStock:"In Stock",SoldOut:"Sold Out",PreOrder:"Preorder"},default:"InStock"}}},validFrom:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid From","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math"),classes:"hide-group"}}},priceValidUntil:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid Until","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math"),classes:"hide-group"}}},inventoryLevel:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Inventory Level","rank-math"),classes:"hide-group"}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},SoftwareApplication:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Software","rank-math"),defaultEn:"Software"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},reviewLocation:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"select",label:Object(i.__)("Review Location","rank-math"),help:Object(i.__)("The review or rating must be displayed on the page to comply with Google's Schema guidelines.","rank-math"),options:{bottom:"Below Content",top:"Above Content",both:"Above and Below Content",custom:"Custom (use shortcode)"},default:"custom"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]",dependency:[{field:"reviewLocation",value:"custom"}]}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},operatingSystem:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Operating System","rank-math"),help:Object(i.__)("For example, Windows 7, OSX 10.6, Android 1.6","rank-math"),classes:"col-6"}}},applicationCategory:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Application Category","rank-math"),help:Object(i.__)("For example, Game, Multimedia","rank-math"),classes:"col-6"}}},offers:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Offers","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Offer"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Name","rank-math"),classes:"hide-group"}}},category:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Category","rank-math"),classes:"hide-group"}}},url:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("URL","rank-math"),classes:"hide-group"}}},price:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Price","rank-math")}}},priceCurrency:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{label:Object(i.__)("Currency","rank-math")}}},availability:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"select",label:Object(i.__)("Availability","rank-math"),help:Object(i.__)("Offer availability","rank-math"),classes:["col-4","hide-group"],options:{"":"None",InStock:"In Stock",SoldOut:"Sold Out",PreOrder:"Preorder"},default:"InStock"}}},validFrom:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid From","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math"),classes:"hide-group"}}},priceValidUntil:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"datepicker",label:Object(i.__)("Price Valid Until","rank-math"),help:Object(i.__)("The date after which the price will no longer be available","rank-math"),classes:"hide-group"}}},inventoryLevel:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Inventory Level","rank-math"),classes:"hide-group"}}}},review:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Review","rank-math")}},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Review"}},datePublished:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Published Date","rank-math"),placeholder:"%date(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},dateModified:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"datetimepicker",label:Object(i.__)("Modified Date","rank-math"),placeholder:"%modified(Y-m-d\\TH:i:sP)%",classes:"hide-group"}}},author:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Person"}},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Author Name","rank-math"),placeholder:"%name%"}}}},reviewRating:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:"hide-group-header"},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"Rating"}},ratingValue:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating","rank-math"),help:Object(i.__)("Rating score","rank-math")}}},worstRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Minimum","rank-math"),help:Object(i.__)("Rating minimum score","rank-math"),placeholder:1}}},bestRating:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{type:"number",label:Object(i.__)("Rating Maximum","rank-math"),help:Object(i.__)("Rating maximum score","rank-math"),placeholder:5}}}}},image:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,classes:["hide-group-header","hide-group"]},"@type":{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,value:"ImageObject"}},url:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Image URL","rank-math"),placeholder:"%post_thumbnail%"}}}}},VideoObject:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("Video","rank-math"),defaultEn:"Video"},name:{map:{isArray:!1,isGroup:!1,isRequired:!0,isRecommended:!1,field:{label:Object(i.__)("Headline","rank-math"),placeholder:"%seo_title%"}}},description:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!0,field:{type:"textarea",label:Object(i.__)("Description","rank-math"),placeholder:"%seo_description%"}}},reviewLocationShortcode:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,save:"metadata",field:{type:"text",label:Object(i.__)("Shortcode","rank-math"),help:Object(i.__)("You can use the Schema Block in the block editor, or copy and paste this in the content. This shortcode will work on this page only.","rank-math"),disabled:"disabled"},value:"[rank_math_rich_snippet]"}},uploadDate:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Upload Date","rank-math"),classes:"hide-group",placeholder:"%date(Y-m-d\\TH:i:sP)%"}}},contentUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Content URL","rank-math"),help:Object(i.__)("A URL pointing to the actual video media file","rank-math"),classes:"col-6"}}},embedUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Embed URL","rank-math"),help:Object(i.__)("A URL pointing to the embeddable player for the video","rank-math"),classes:"col-6"}}},duration:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Duration","rank-math"),help:Object(i.__)("ISO 8601 duration format. Example: 1H30M","rank-math"),classes:"col-6"}}},interactionCount:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Views","rank-math"),help:Object(i.__)("Number of views","rank-math"),classes:"col-6"}}},thumbnailUrl:{map:{isArray:!1,isGroup:!1,isRequired:!1,isRecommended:!1,field:{label:Object(i.__)("Video Thumbnail","rank-math"),help:Object(i.__)("A video thumbnail URL","rank-math"),classes:"hide-group",placeholder:"%post_thumbnail%"}}}},WooCommerceProduct:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("WooCommerce Product","rank-math"),defaultEn:"WooCommerce Product"}},EDDProduct:{map:{isArray:!1,isGroup:!0,isRequired:!1,isRecommended:!1,title:Object(i.__)("EDD Product","rank-math"),defaultEn:"EDD Product"}}}},l={set:function(e,t,r){return!!e&&(localStorage.setItem(e,JSON.stringify({value:t,expires:this.expiry(r)})),!0)},get:function(e){if(!e)return!1;var t=localStorage.getItem(e);return!!t&&((t=JSON.parse(t)).expires&&Date.now()>t.expires?(localStorage.removeItem(e),!1):t.value)},remove:function(e){return!!e&&(localStorage.removeItem(e),!0)},expiry:function(e){if(!e)return!1;if(-1===e){var t=new Date;return t.setYear(1970),t.getTime()}var r=parseInt(e),a=e.replace(r,"");return"d"===a&&(r=24*r*60*60*1e3),"h"===a&&(r=60*r*60*1e3),"m"===a&&(r=60*r*1e3),"s"===a&&(r*=1e3),Date.now()+r}};function m(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var d="rank_math_schema_templates_store",p=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cahce=null,this.templates=null,this.verion="1.1.0","product"!==rankMath.postType&&delete c.schemas.WooCommerceProduct,"download"!==rankMath.postType&&delete c.schemas.EDDProduct,this.cache=Object(s.applyFilters)("rank_math_schema_maps",c),Object(s.doAction)("rank_math_schema_template_loaded")}var t,r,n;return t=e,(r=[{key:"verifyCache",value:function(){var e=l.get(d);return!1!==e&&this.version===e.version&&(this.cache=e,Object(s.doAction)("rank_math_schema_template_loaded"),!0)}},{key:"fetchStore",value:function(){var e=this;o()({method:"GET",url:"//"+window.location.host+"/wp-json/rankmath/v1/getSchemas"}).then((function(t){l.set(d,t,"30d"),e.cache=t,Object(s.doAction)("rank_math_schema_template_loaded")}))}},{key:"getMap",value:function(e){var t=Object(a.get)(this.cache.properties,e,!1);return t||Object(a.get)(this.cache.schemas,e,!1)}},{key:"getTemplates",value:function(){var e=this;return null===this.templates&&(this.templates=[],Object(a.forEach)(this.cache.schemas,(function(t,r){var n=Object(a.get)(t,"map.title",r);e.templates.push({type:r,title:"WooCommerceProduct"!==r?n:Object(i.__)("WooCommerce Product","rank-math")})})),this.templates=Object(a.orderBy)(this.templates,"type")),this.templates}}])&&m(t.prototype,r),n&&m(t,n),e}());function u(e){return p.getMap(e)}},function(e,t,r){"use strict";var a=r(13),i=r.n(a),n=r(9),o=r.n(n),s=r(8),c=r.n(s),l=r(1),m=r(10),d=r(0),p=r(7),u=r(6),h=r(2),b=r(5),f=r(3),y=r(4),_=function(e){var t=e.position,r=void 0===t?"middle right":t,a=e.value,i=e.onChange,n=e.children;return wp.element.createElement(h.Dropdown,{position:r,className:"rank-math-datepicker",contentClassName:"rank-math-datepicker__dialog",renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return wp.element.createElement(u.Fragment,null,n,wp.element.createElement(h.Button,{icon:"calendar-alt",onClick:t,"aria-expanded":r}))},renderContent:function(){return wp.element.createElement(h.DatePicker,{currentDate:a.split("T")[0],onChange:function(e){i(e.split("T")[0])}})}})},R=function(e){var t=e.position,r=void 0===t?"middle right":t,a=e.value,i=e.onChange,n=e.children;return wp.element.createElement(h.Dropdown,{position:r,className:"rank-math-datepicker",contentClassName:"rank-math-datepicker__dialog",renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return wp.element.createElement(u.Fragment,null,n,wp.element.createElement(h.Button,{icon:"calendar-alt",onClick:t,"aria-expanded":r}))},renderContent:function(){return wp.element.createElement(h.DateTimePicker,{is12Hour:!0,currentDate:a,onChange:i})}})};function O(e){return Object(l.map)(e,(function(e,t){return{label:e,value:t}}))}function k(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function v(e,t){if(null==e)return{};var r,a,i=function(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var w=function(e){var t=e.value,r=e.onChange,a=e.type,i=e.options,n=void 0===i?{}:i,o=v(e,["value","onChange","type","options"]);return"radio"===a?wp.element.createElement(h.RadioControl,j({selected:t,options:O(n),onChange:r},o)):"select"===a?(!Object(l.has)(o,"multiple")&&Object(l.isArray)(t)&&(t=t[0]),wp.element.createElement(h.SelectControl,j({value:t,options:O(n),onChange:r},o))):"toggle"===a?wp.element.createElement(h.ToggleControl,j({checked:t,onChange:r},o)):"number"===a?wp.element.createElement(h.TextControl,j({type:"number",autoComplete:"off",value:t,onChange:r},o)):"url"===a?wp.element.createElement(h.TextControl,j({type:"url",autoComplete:"off",value:t,onChange:r},o)):"datepicker"===a?wp.element.createElement(_,{value:t,position:"middle left",onChange:r},wp.element.createElement(h.TextControl,j({value:t,onChange:r},o))):"datetimepicker"===a?wp.element.createElement(R,{value:t,position:"middle left",onChange:r},wp.element.createElement(h.TextControl,j({value:t,onChange:r},o))):"textarea"===a?wp.element.createElement(h.TextareaControl,j({rows:5,value:t,onChange:r},o)):"checkbox"===a?wp.element.createElement("div",{className:"rank-math-checkbox-component components-base-control schema-property--value"},wp.element.createElement("label",{htmlFor:"checklist-label",className:"components-base-control__label"},o.label),wp.element.createElement("div",null,O(n).map((function(e){return wp.element.createElement(h.CheckboxControl,{key:Object(l.uniqueId)("checkbox-"),label:e.label,checked:Object(l.includes)(t,e.value),onChange:function(a){var i=k(t);a?i.push(e.value):Object(l.remove)(i,(function(t){return t===e.value})),r(i)}})})))):wp.element.createElement(h.TextControl,j({value:t,onChange:r},o))};w.defaultProps={value:"",type:"text",onChange:null},w.propTypes={id:i.a.string,onChange:i.a.func.isRequired};var A=w,G=r(11);function q(){return(q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T=Object(p.compose)(Object(b.withSelect)((function(e,t){return S(S({},t),{},{isPro:e("rank-math").isPro()})})))((function(e){if(!1===Object(y.n)(e.data,e.schema))return e.data.map.isHidden=!0,null;var t=e.data,r=t.property,a=t.id,i=t.map,n=e.actions,s=n.removeProperty,c=n.propertyChange,m=n.duplicateProperty,d=Object(l.get)(i,"field",{label:!1}),p=S({},d),b=function(e,t){var r=e.data,a=r.property,i=r.value,n=e.schema.metadata;return i===Object(l.get)(t,"placeholder","")&&(i=""),"reviewLocation"===a&&Object(l.has)(n,"reviewLocation")&&(i=n.reviewLocation),"unpublish"===a&&Object(l.has)(n,"unpublish")&&(i=n.unpublish),e.isPro&&"[rank_math_rich_snippet]"===i&&(i='[rank_math_rich_snippet id="'+n.shortcode+'"]'),Object(f.applyFilters)("rank_math_schema_property_value",i,e)}(e,d);i.isRequired&&(d.label&&(p.label=wp.element.createElement(u.Fragment,null,d.label," ",wp.element.createElement("span",null,"*"))),d.placeholder||(p.required="required")),e.isCustom&&(p.type="text",delete p.label);var _=o()("schema-group-or-property-container schema-property-container",Object(l.get)(d,"classes",!1),{"hide-property":"@type"===r});return e.data.map.isHidden=!1,wp.element.createElement("div",{className:_},wp.element.createElement("div",{className:"schema-group-or-property schema-property"},wp.element.createElement("div",{className:"schema-property--body"},!e.isCustom&&d.label?null:wp.element.createElement("div",{className:"schema-property--field"},wp.element.createElement(h.TextControl,{value:r,onChange:function(e){c(a,"property",e)}})),wp.element.createElement("div",{className:"schema-property--value"},wp.element.createElement(A,q({value:b},p,{onChange:function(e){c(a,"value",e)}})),Object(l.has)(p,"notice")&&wp.element.createElement(h.Notice,q({isDismissible:!1},p.notice),p.notice.content)),!i.isRequired&&wp.element.createElement("div",{className:"schema-property--header"},wp.element.createElement(h.Button,{isSecondary:!0,className:"button rank-math-duplicate-property",onClick:function(){return m(a,e.parentId,e.data)}},wp.element.createElement("i",{className:"rm-icon rm-icon-copy"})),wp.element.createElement(G.a,{key:a,onClick:function(){return s(a,e.parentId)}},(function(e){return wp.element.createElement(h.Button,{isSecondary:!0,className:"button rank-math-delete-group",onClick:function(){return e(!0)}},wp.element.createElement("i",{className:"rm-icon rm-icon-trash"}))}))))))})),C={},I=function e(t){if(!1===Object(y.n)(t.data,t.schema))return t.data.map.isHidden=!0,null;var r=t.parentId,a=t.isCustom,i=t.isPro,n=t.isMain,s=void 0!==n&&n,c=t.data,m=c.id,p=c.property,u=c.properties,b=c.map,f=t.actions,_=f.addProperty,R=f.addGroup,O=f.removeGroup,k=f.propertyChange,g=f.duplicateGroup,j=Object(l.get)(b,"field",{label:!1}),v=o()("schema-group-or-property-container schema-group-container",Object(l.get)(b,"classes",!1),{"hide-property":"metadata"===p,"is-group":b.isGroup,"is-array":b.isArray,"no-array-map":Object(l.isUndefined)(b.arrayMap)});return b.isArray&&(C[m]=0),t.data.map.isHidden=!1,wp.element.createElement("div",{className:v},wp.element.createElement("div",{className:"schema-group-or-property schema-group"},wp.element.createElement("div",{className:"schema-group-header"},function(){if(t.isArray)return C[r]+=1,wp.element.createElement("div",{className:"schema-property--label"},p," ",C[r]);if(!a&&j.label)return wp.element.createElement("div",{className:"schema-property--label"},j.label);var e="WooCommerceProduct"!==p?p:"WooCommerce Product";return wp.element.createElement("div",{className:"schema-property--field"},wp.element.createElement(h.TextControl,{value:e,disabled:!i,onChange:function(e){k(m,"property",e)}}))}(),wp.element.createElement(h.ButtonGroup,{className:"schema-group--actions schema-group--actions--tr"},wp.element.createElement(h.Button,{className:"button rank-math-add-property",isLink:!0,onClick:function(){return _(m)}},wp.element.createElement("i",{className:"rm-icon rm-icon-circle-plus"}),wp.element.createElement("span",null,Object(d.__)("Add Property","rank-math"))),wp.element.createElement(h.Button,{className:"button rank-math-add-property-group",isLink:!0,onClick:function(){return R(m,b)}},wp.element.createElement("i",{className:"rm-icon rm-icon-circle-plus"}),wp.element.createElement("span",null,Object(d.__)("Add Property Group","rank-math"))),!s&&wp.element.createElement(h.Button,{className:"button rank-math-duplicate-property-group",isLink:!0,onClick:function(){return g(m,t.parentId,t.data)}},wp.element.createElement("i",{className:"rm-icon rm-icon-circle-plus"}),wp.element.createElement("span",null,Object(d.__)("Duplicate Group","rank-math"))),wp.element.createElement(G.a,{key:m,onClick:function(){return O(m,t.parentId)}},(function(e){return wp.element.createElement(h.Button,{className:"button rank-math-delete-group",isLink:!0,onClick:function(){return e(!0)}},wp.element.createElement("i",{className:"rm-icon rm-icon-trash"}),wp.element.createElement("span",null,Object(d.__)("Delete","rank-math")))})))),wp.element.createElement("div",{className:"schema-group--children"},Object(l.map)(u,(function(r,n){return r.map.isGroup?wp.element.createElement(e,{key:n,data:r,parentId:m,isArray:b.isArray,isCustom:a,schema:t.schema,actions:t.actions,isPro:i}):wp.element.createElement(T,{key:n,data:r,parentId:m,isCustom:a,schema:t.schema,actions:t.actions})}))),s&&wp.element.createElement("div",{className:"schema-group-footer"},wp.element.createElement(h.ButtonGroup,{className:"schema-group--actions schema-group--actions--tr"},wp.element.createElement(h.Button,{className:"button rank-math-add-property",isLink:!0,onClick:function(){return _(m)}},wp.element.createElement("i",{className:"rm-icon rm-icon-circle-plus"}),wp.element.createElement("span",null,Object(d.__)("Add Property","rank-math"))),wp.element.createElement(h.Button,{className:"button rank-math-add-property-group",isLink:!0,onClick:function(){return R(m,b)}},wp.element.createElement("i",{className:"rm-icon rm-icon-circle-plus"}),wp.element.createElement("span",null,Object(d.__)("Add Property Group","rank-math"))),wp.element.createElement(G.a,{key:m,onClick:function(){return O(m,t.parentId)}},(function(e){return wp.element.createElement(h.Button,{className:"button rank-math-delete-group",isLink:!0,onClick:function(){return e(!0)}},wp.element.createElement("i",{className:"rm-icon rm-icon-trash"}),wp.element.createElement("span",null,Object(d.__)("Delete","rank-math")))}))))))};function D(e){return(D="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})(e)}function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,a=Y(e);if(t){var i=Y(this).constructor;r=Reflect.construct(a,arguments,i)}else r=a.apply(this,arguments);return B(this,r)}}function B(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?V(e):t}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(n,e);var t,r,a,i=F(n);function n(){var e;return L(this,n),(e=i.apply(this,arguments)).addGroup=function(t,r){var a=x({},e.state.data),i=Object(y.b)(t,a),n=r.isArray,o=r.arrayMap,s=void 0!==o&&o,c=r.arrayProps,l=void 0===c?{}:c,m=n&&s?Object(y.d)(s,l):Object(y.g)();i.properties.push(m),e.setState({data:a})},e.addProperty=function(t){var r=x({},e.state.data);Object(y.b)(t,r).properties.push(Object(y.i)()),e.setState({data:r})},e.duplicateGroup=function(t,r,a){var i=x({},e.state.data),n=Object(y.b)(r,i),o=Object(l.cloneDeep)(a),s=n.properties.findIndex((function(e){return e.id===t}));n.properties.splice(s,0,Object(y.a)(o)),e.setState({data:i})},e.duplicateProperty=function(t,r,a){var i=x({},e.state.data),n=Object(y.b)(r,i),o=x({},a),s=n.properties.findIndex((function(e){return e.id===t}));o.id="p-".concat(Object(m.v4)()),n.properties.splice(s,0,o),e.setState({data:i})},e.removeGroup=function(t,r){var a=x({},e.state.data),i=Object(y.b)(r,a);if(i.id!==t){var n=i.properties.findIndex((function(e){return e.id===t}));i.properties.splice(n,1),e.setState({data:a})}else e.setState({data:Object(y.g)()})},e.removeProperty=function(t,r){var a=x({},e.state.data),i=Object(y.b)(r,a),n=i.properties.findIndex((function(e){return e.id===t}));i.properties.splice(n,1),e.setState({data:a})},e.propertyChange=function(t,r,a){var i=x({},e.state.data),n=Object(y.b)(t,i);Object.assign(n,M({},r,a)),!Object(l.isEmpty)(i.metadata)&&Object(l.has)(i.metadata,n.property)&&(i.metadata[n.property]=a),e.setState({data:i})},e.options=Object(l.get)(e.props.data,"metadata",{}),e.state={data:e.props.data,loading:!1,showNotice:!1,postId:rankMath.objectID},e.setState=e.setState.bind(V(e)),e.templateSaveCount=0,e.isEditingTemplate=Object(l.get)(rankMath,"isTemplateScreen",!1),e}return t=n,(r=[{key:"getWrapperClasses",value:function(){var e=Object(l.get)(rankMath,"knowledgegraphType",!1);e=!1===e?"empty":"local-"+e;var t=Object(l.get)(this.props.data,"property","");return Object(l.isArray)(t)&&(t=t.join("-")),t="schema-"+t.toLowerCase(),o()("schema-builder",t,M({"schema-template-pre-defined":"template"===this.options.type,"schema-template-custom":"custom"===this.options.type},"".concat(e),"template"===this.options.type))}},{key:"render",value:function(){var e=this;return wp.element.createElement("form",{className:this.getWrapperClasses()},wp.element.createElement(I,{data:this.state.data,schema:this.state.data,isPro:this.props.isPro,parentId:null,isMain:!0,isArray:!1,isCustom:"custom"===this.options.type,actions:{addGroup:this.addGroup,addProperty:this.addProperty,removeGroup:this.removeGroup,removeProperty:this.removeProperty,propertyChange:this.propertyChange,duplicateGroup:this.duplicateGroup,duplicateProperty:this.duplicateProperty}}),wp.element.createElement("div",{className:"schema-builder-save-as"},this.props.isPro&&wp.element.createElement(u.Fragment,null,"custom"!==this.options.type&&wp.element.createElement(h.Button,{isSecondary:!0,onClick:function(){return e.props.toggleMode(e.props.id,e.state.data)}},Object(d.__)("Advanced Editor","rank-math")),!this.isEditingTemplate&&wp.element.createElement(h.Button,{isSecondary:!0,className:this.state.loading?"save-as-template saving":"save-as-template",onClick:function(){e.templateSaveCount>=1&&!confirm(Object(d.__)("Each save will create a new template.","rank-math"))||(e.templateSaveCount+=1,e.props.saveTemplate(e.state.data,e.setState))}},this.state.showNotice?Object(d.__)("Template saved.","rank-math"):Object(d.__)("Save as Template","rank-math")),this.state.showNotice&&wp.element.createElement("div",{className:"rank-math-save-template-confirmation"},Object(d.__)("Template saved.","rank-math"))),this.isEditingTemplate&&wp.element.cre
|
|