!function(){var e={184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=rankMath.links[e]||"";if(!n)return"#";if(!t)return n;var r={utm_source:"Plugin",utm_medium:encodeURIComponent(t),utm_campaign:"WP"};return n+"?"+Object.keys(r).map((function(e){return"".concat(e,"=").concat(r[e])})).join("&")}var c=wp.data;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},p(e)}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;t0&&wp.element.createElement(g,{imageID:t,sizeSlug:n}),t>0?wp.element.createElement(l.Button,{icon:"edit",className:"rank-math-replace-image",onClick:r}):wp.element.createElement(l.Button,{onClick:r,className:"rank-math-add-image",isPrimary:!0},s),t>0&&wp.element.createElement(l.Button,{icon:"no-alt",className:"rank-math-delete-image",onClick:a}))},k=wp.hooks;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 S(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return E(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 E(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 E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,De.addQueryArgs)(`/wp/v2/block-renderer/${e}`,{context:"edit",...null!==t?{attributes:t}:{},...n})}(o,c,s),m=i?{attributes:null!==(n=a)&&void 0!==n?n:null}:null,h=y.current=xe()({path:p,data:m,method:i?"POST":"GET"}).then((e=>{f.current&&h===y.current&&e&&v(e.rendered)})).catch((e=>{f.current&&h===y.current&&v({error:!0,errorMsg:e.message})})).finally((()=>{f.current&&h===y.current&&k(!1)}));return h}const S=(0,Ne.useDebounce)(_,500);(0,i.useEffect)((()=>()=>{f.current=!1}),[]),(0,i.useEffect)((()=>{void 0===g?_():(0,e.isEqual)(g,n)||S()})),(0,i.useEffect)((()=>{if(!w)return;const e=setTimeout((()=>{b(!0)}),1e3);return()=>clearTimeout(e)}),[w]);const E=!!d,C=""===d,O=null==d?void 0:d.error;return w?(0,i.createElement)(m,Pe({},n,{showLoader:h}),E&&(0,i.createElement)(i.RawHTML,{className:a},d)):C||!E?(0,i.createElement)(c,n):O?(0,i.createElement)(p,Pe({response:d},n)):(0,i.createElement)(i.RawHTML,{className:a},d)}const Me={},Qe=(0,c.withSelect)((e=>{const t=e("core/editor");if(t){const e=t.getCurrentPostId();if(e&&"number"==typeof e)return{currentPostId:e}}return Me}))((e=>{let{urlQueryArgs:t=Me,currentPostId:n,...r}=e;const o=(0,i.useMemo)((()=>n?{post_id:n,...t}:t),[n,t]);return(0,i.createElement)(Be,Pe({urlQueryArgs:o},r))}));window&&window.wp&&window.wp.components&&(window.wp.components.ServerSideRender=(0,i.forwardRef)(((e,t)=>(function(e,t={}){const{since:n,version:r,alternative:o,plugin:a,link:i,hint:l}=t,s=`${e} is deprecated${n?` since version ${n}`:""}${r?` and will be removed${a?` from ${a}`:""} in version ${r}`:""}.${o?` Please use ${o} instead.`:""}${i?` See: ${i}`:""}${l?` Note: ${l}`:""}`;s in Ae||((0,k.doAction)("deprecated",e,t,s),console.warn(s),Ae[s]=!0)}("wp.components.ServerSideRender",{version:"6.2",since:"5.3",alternative:"wp.serverSideRender"}),(0,i.createElement)(Qe,Pe({},e,{ref:t}))))));var We,He=Qe;(0,t.updateCategory)("rank-math-blocks",{icon:r}),We=[(0,o.__)("FAQ","rank-math"),(0,o.__)("Frequently Asked Questions","rank-math"),(0,o.__)("Schema","rank-math"),(0,o.__)("SEO","rank-math"),(0,o.__)("Structured Data","rank-math"),(0,o.__)("Yoast","rank-math"),(0,o.__)("Rank Math","rank-math"),(0,o.__)("Block","rank-math"),(0,o.__)("Markup","rank-math"),(0,o.__)("Rich Snippet","rank-math")],(0,t.registerBlockType)("rank-math/faq-block",{title:(0,o.__)("FAQ by Rank Math","rank-math"),description:(0,o.__)("Easily add Schema-ready, SEO-friendly, Frequently Asked Questions to your content.","rank-math"),category:"rank-math-blocks",icon:"editor-ul",keywords:We,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:a,edit:U,save:Y,transforms:V}),function(){var e=[(0,o.__)("HowTo","rank-math"),(0,o.__)("Schema","rank-math"),(0,o.__)("SEO","rank-math"),(0,o.__)("Structured Data","rank-math"),(0,o.__)("Yoast","rank-math"),(0,o.__)("Rank Math","rank-math"),(0,o.__)("Block","rank-math"),(0,o.__)("Markup","rank-math"),(0,o.__)("Rich Snippet","rank-math")],n=(0,k.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:""}});(0,t.registerBlockType)("rank-math/howto-block",{title:(0,o.__)("HowTo by Rank Math","rank-math"),description:(0,o.__)("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:n,example:G,edit:Ce,save:Oe,transforms:je})}(),"undefined"==typeof rankMath||(0,e.isUndefined)(rankMath.canUser)||!rankMath.canUser.snippet||(0,e.isUndefined)(rankMath.schemas)||function(){var n=[(0,o.__)("Schema","rank-math"),(0,o.__)("Markup","rank-math"),(0,o.__)("Structured Data","rank-math"),(0,o.__)("Rich Snippet","rank-math"),(0,o.__)("SEO","rank-math"),(0,o.__)("Rank Math","rank-math"),(0,o.__)("Yoast","rank-math")];(0,t.registerBlockType)("rank-math/rich-snippet",{title:(0,o.__)("Schema by Rank Math","rank-math"),description:(0,o.__)("Add the Schema generated by Rank Math anywhere on your page using this Block.","rank-math"),category:"rank-math-blocks",icon:r,keywords:n,attributes:(0,k.applyFilters)("rank_math_block_schema_attributes",{post_id:{default:rankMath.objectID}}),edit:function(t){var n=t.setAttributes,r=t.attributes,a=[];return(0,e.forEach)(r,(function(t,i){"post_id"!==i?"className"!==i&&a.push(wp.element.createElement(l.TextControl,{key:i,label:(0,o.__)((0,e.startCase)(i),"rank-math"),value:r[i],type:"string",onChange:function(e){var t={};t[i]=e,n(t)}})):a.push(wp.element.createElement(l.TextControl,{key:i,label:(0,o.__)((0,e.startCase)(i),"rank-math"),value:r[i],type:"number",min:1,step:1,onChange:function(e){var t={};t[i]=e||rankMath.objectID,n(t)}}))})),wp.element.createElement("div",null,wp.element.createElement(s.InspectorControls,{key:"inspector"},a),wp.element.createElement(He,{block:"rank-math/rich-snippet",attributes:r}))}})}()}()}();