Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ window.yoast=window.yoast||{},window.yoast.schemaBlocks=function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},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=240)}([,function(t,e){t.exports=window.wp.element},function(t,e){t.exports=window.lodash},function(t,e){t.exports=window.React},,,,,,,function(t,e){t.exports=window.wp.i18n},,,function(t,e){t.exports=window.yoast.componentsNew},,,,,,,,,,function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlockValidationResult=e.BlockValidation=e.BlockPresence=void 0;var o=n(509);Object.defineProperty(e,"BlockValidation",{enumerable:!0,get:function(){return o.BlockValidation}});var r=n(135);Object.defineProperty(e,"BlockValidationResult",{enumerable:!0,get:function(){return r.BlockValidationResult}}),Object.defineProperty(e,"BlockPresence",{enumerable:!0,get:function(){return r.BlockPresence}})},function(t,e){t.exports=window.wp.data},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(32),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.save=function(t,e,n){return null},e.prototype.edit=function(t,e,n){return null},e.prototype.sidebar=function(t,e){return null},e.prototype.configuration=function(){var t;return{attributes:(t={},t[this.options.name]={required:!0===this.options.required},t)}},e.prototype.validate=function(t){return new s.BlockValidationResult(t.clientId,this.constructor.name,s.BlockValidation.Unknown,s.BlockPresence.Unknown)},e}(i(n(241)).default);e.default=a},,,,,,,,,,function(t,e,n){"use strict";var o,r,i=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,r=t.length;n=t&&t!==r.NONE&&console.log.apply(console,i(["%c "+r[t]+":","color: "+s[t]+";"],e))},t.prototype.log=function(){for(var t=[],e=0;e=e&&e!==r.NONE&&console.groupCollapsed(t)},t.prototype.endGroup=function(){console.groupEnd()},t}();e.ConsoleLogger=a;var u=new a(r.ERROR);e.default=u},function(t,e){t.exports=window.wp.components},,,function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(241)),a=n(32),u=n(135),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(t){return null},e.prototype.configuration=function(){return{}},e.prototype.validate=function(t){return new a.BlockValidationResult(t.clientId,t.name,a.BlockValidation.Valid,u.BlockPresence.Unknown)},e}(s.default);e.default=c},,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getHumanReadableBlockName=e.getBlockType=e.restoreBlock=e.removeBlock=e.getBlockByClientId=void 0;var o=n(33);function r(t){return o.select("core/blocks").getBlockType(t)}e.getBlockByClientId=function(t){return o.select("core/block-editor").getBlock(t)},e.removeBlock=function(t){o.dispatch("core/block-editor").removeBlock(t)},e.restoreBlock=function(t,e){o.dispatch("core/block-editor").replaceBlock(t,e)},e.getBlockType=r,e.getHumanReadableBlockName=function(t){var e=r(t)||null;if(e)return e.title;var n=t.lastIndexOf("/");return n<0||n===t.length-1?t:t.substring(n+1).toLocaleLowerCase()}},,,,,,,,,,,function(t,e){t.exports=window.wp.blockEditor},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerBlockDefinition=e.getBlockDefinition=void 0;var o={};e.getBlockDefinition=function(t){return o[t]},e.registerBlockDefinition=function(t,e){o[t]=e}},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.YOAST_SCHEMA_BLOCKS_STORE_NAME=void 0,r(n(139),e),r(n(248),e),r(n(249),e),r(n(526),e),e.YOAST_SCHEMA_BLOCKS_STORE_NAME="yoast-seo/schema-blocks"},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BlockDefinitionRepository=e.BlockLeaf=e.BlockInstruction=e.BlockDefinition=void 0;var a=s(n(243));e.BlockDefinition=a.default;var u=s(n(34));e.BlockInstruction=u.default;var c=s(n(110));e.BlockLeaf=c.default;var l=i(n(81));e.BlockDefinitionRepository=l},function(t,e){t.exports=window.wp.blocks},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(245)),a=n(1),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.renderChildren=function(t,e,n){return t.map((function(t,o){return a.createElement(a.Fragment,{key:o},t[n](e,o))}))},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createBlockEditProps=e.getParentIdOfType=e.getParent=e.getBlockSchemaId=e.getBlockId=e.getParentId=void 0;var o=n(33),r=n(69);function i(t){return o.select("core/block-editor").getBlockRootClientId(t)}function s(t){var e,n=[t.name.replace(/\//g,"-")],r=t.clientId;do{e=i(r);var s=o.select("core/block-editor").getBlockIndex(r,e);n.push(s.toString()),r=e}while(""!==e);return n.join("-")}e.getParentId=i,e.getBlockId=s,e.getBlockSchemaId=function(t){return o.select("core/editor").getPermalink()+"#/schema/"+s(t)},e.getParent=function(t){var e=i(t);return e?r.getBlockByClientId(e):null},e.getParentIdOfType=function(t,e){return o.select("core/block-editor").getBlockParentsByBlockName(t,e)},e.createBlockEditProps=function(t,e){return void 0===e&&(e=!1),{attributes:t.attributes,className:t.attributes.className||"",clientId:t.clientId,isSelected:e,setAttributes:o.dispatch("core/block-editor").updateBlockAttributes.bind(null,t.clientId)}}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(i(n(245)).default);e.default=s},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BlockValidationResult=e.BlockPresence=void 0;var o,r=n(32),i=n(10),s=n(69);!function(t){t.Required="required",t.Recommended="recommended",t.Optional="optional",t.Unknown="unknown"}(o=e.BlockPresence||(e.BlockPresence={}));var a=function(){function t(t,e,n,o,r){this.name=e,this.clientId=t,this.result=n,this.blockPresence=o,this.issues=[],this.message=r}return t.MissingAttribute=function(e,n,a){var u=r.BlockValidation.Unknown,c="";switch(a){case o.Required:u=r.BlockValidation.MissingRequiredAttribute,c=i.sprintf( /* Translators: %1$s expands to the block name. */ i.__("The `%1$s` attribute is required but missing.","yoast-schema-blocks"),s.getHumanReadableBlockName(n));break;case o.Recommended:u=r.BlockValidation.MissingRecommendedAttribute,c=i.sprintf( /* Translators: %1$s expands to the block name. */ i.__("The `%1$s` attribute is recommended but missing.","yoast-schema-blocks"),s.getHumanReadableBlockName(n))}return new t(e.clientId,n||e.name,u,a||o.Unknown,c)},t.MissingBlock=function(e,n){return n===o.Recommended?t.MissingRecommendedBlock(e,n===o.Recommended):new t(null,e,r.BlockValidation.MissingRequiredBlock,n||o.Unknown,i.sprintf( /* Translators: %1$s expands to the block name. */ i.__("The `%1$s` block is required but missing.","yoast-schema-blocks"),s.getHumanReadableBlockName(e)))},t.MissingRecommendedBlock=function(e,n){return new t(null,e,r.BlockValidation.MissingRecommendedBlock,n?o.Recommended:o.Unknown,i.sprintf( /* Translators: %1$s expands to the block name. */ i.__("The `%1$s` block is recommended but missing.","yoast-schema-blocks"),s.getHumanReadableBlockName(e)))},t.Valid=function(e,n,i){return new t(e.clientId,n||e.name,r.BlockValidation.Valid,i||o.Unknown)},t}();e.BlockValidationResult=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitOnTag=e.stripAllTags=e.stripTags=void 0,e.stripTags=function(t,e){void 0===e&&(e=[]);var n=(new DOMParser).parseFromString(t,"text/html");return function t(e,n){e.forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var o=e.nodeName.toLowerCase();"script"!==o&&"style"!==o?(t(e.childNodes,n),n.includes(o)||e.replaceWith.apply(e,Array.from(e.childNodes))):e.remove()}}))}(n.body.childNodes,e),n.body.innerHTML},e.stripAllTags=function(t){return t.replace(/(<([^>]+)>)/g,"")},e.splitOnTag=function(t,e){return function t(e,n){var o=[];return e.forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&(e.nodeName.toLowerCase()!==n?o=o.concat(t(e.childNodes,n)):o.push(e.innerHTML))})),o}((new DOMParser).parseFromString(t,"text/html").body.childNodes,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e,n){for(var o=0,r=e;o0){var o=s.createElement(u.InspectorControls,{key:"sidebar-inspector-controls"},s.createElement(l.PanelBody,null,e));n.unshift(o)}return 1===n.length?n[0]:s.createElement(s.Fragment,{key:t.clientId},n.map((function(t,e){return s.createElement(s.Fragment,{key:e},t)})))},e.prototype.save=function(t){return this.tree.save(t)},e.prototype.register=function(){var t=this,e=this.configuration(),n=e.name;delete e.name,e.edit=function(e){return t.edit(e)},e.save=function(e){return t.save(e)},h.default.debug("registering block "+n),e.icon&&"string"==typeof e.icon&&e.icon.startsWith(" "+r.BlockValidation[n.result]),n})).filter((function(t){return t.result!==r.BlockValidation.Skipped}));if(s.default.endGroup(),e.length<1)return r.BlockValidationResult.Valid(t,t.name);var n=i.maxBy(e,(function(t){return t.result})),o=new r.BlockValidationResult(t.clientId,t.name,n.result,n.blockPresence);return o.issues=e,o},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultValidate=void 0;var o=n(2),r=n(176),i=n(32),s=n(140);e.defaultValidate=function(t,e){var n=[],a=i.BlockPresence.Unknown;if(e.options&&(a=s.getPresence(e.options),r.attributeExists(t,e.options.name)&&r.attributeNotEmpty(t,e.options.name)||n.push(i.BlockValidationResult.MissingAttribute(t,e.constructor.name,a))),t.name.startsWith("core/")&&!t.isValid&&n.push(new i.BlockValidationResult(t.clientId,e.constructor.name,i.BlockValidation.Invalid,a)),n.length<1)return i.BlockValidationResult.Valid(t,e.constructor.name,a);var u=o.maxBy(n,(function(t){return t.result})),c=new i.BlockValidationResult(t.clientId,e.constructor.name,u.result,u.blockPresence);return c.issues=n,c}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.validateInnerblockTree=e.findMissingBlocks=void 0;var r=n(81),i=n(32),s=o(n(137)),a=n(138),u=o(n(44)),c=n(135),l=n(69);function f(t,e,n){return e.filter((function(e){return!t.some((function(t){return t.name===e.name}))})).map((function(t){return i.BlockValidationResult.MissingBlock(l.getHumanReadableBlockName(t.name),n)}))}function p(t){var e=[];return s.default(t.innerBlocks,(function(t){var n=r.getBlockDefinition(t.name);n?e.push(n.validate(t)):(u.default.warning("Block definition for '"+t.name+"' is not registered."),e.push(new i.BlockValidationResult(t.clientId,t.name,i.BlockValidation.Unknown,c.BlockPresence.Unknown)))})),e}e.findMissingBlocks=f,e.validateInnerblockTree=p,e.default=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=[]);var o=e.map((function(t){return t.name})),r=n.map((function(t){return t.name})),i=[],s=a.getInnerblocksByName(t,o);i.push.apply(i,f(s,e,c.BlockPresence.Required));var u=a.getInnerblocksByName(t,r);i.push.apply(i,f(u,n,c.BlockPresence.Recommended));var l=p(t);return i.push.apply(i,l),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.schemaBlocksReducer=void 0;var o=n(523);Object.defineProperty(e,"schemaBlocksReducer",{enumerable:!0,get:function(){return o.schemaBlocksReducer}})},function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||o(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(524),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayOrObjectToOptions=void 0,e.arrayOrObjectToOptions=function(t){var e=[];if(Array.isArray(t)){for(var n=0,o=t;n0)return u.BlockValidationResult.Valid(t,this.options.name,e);var o=e===u.BlockPresence.Required?u.BlockValidation.MissingRequiredAttribute:u.BlockValidation.MissingRecommendedAttribute;return new u.BlockValidationResult(t.clientId,this.options.name,o,e)},e}(a.BlockInstruction);e.default=l},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(2),a=n(1),u=n(80),c=n(108),l=n(32),f=i(n(532)),p=i(n(247)),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.save=function(t,e,n){return a.createElement(u.InnerBlocks.Content,{key:n})},e.prototype.edit=function(t,e,n){var o={key:n};return this.options.requiredBlocks=this.options.requiredBlocks||[],this.options.recommendedBlocks=this.options.recommendedBlocks||[],this.options.appender?o.renderAppender=this.renderAppender(t.clientId,this.options.appenderLabel):o.renderAppender=!1,this.arrangeAllowedBlocks(o),this.options.template&&(o.template=this.options.template),a.createElement(u.InnerBlocks,o)},e.prototype.renderAppender=function(t,e){return function(){return a.createElement(f.default,{clientId:t,label:e})}},e.prototype.arrangeAllowedBlocks=function(t){t.allowedBlocks=["yoast/warning-block"],this.options.allowedBlocks&&(t.allowedBlocks=this.options.allowedBlocks.concat(t.allowedBlocks)),t.allowedBlocks=t.allowedBlocks.concat(this.options.requiredBlocks.map((function(t){return t.name}))).concat(this.options.recommendedBlocks.map((function(t){return t.name})))},e.prototype.validate=function(t){var e=p.default(t,this.options.requiredBlocks,this.options.recommendedBlocks);if(!e||e.length<1)return l.BlockValidationResult.Valid(t,this.constructor.name);var n=s.maxBy(e,(function(t){return t.result})),o=new l.BlockValidationResult(t.clientId,this.constructor.name,n.result,n.blockPresence);return o.issues=e,o},e}(c.BlockInstruction);e.default=d,c.BlockInstruction.register("inner-blocks",d)},function(t,e){t.exports=window.moment},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(537);e.default=function(t){return o.createElement("div",{className:"yoast-block-label-with-help-link"},o.createElement("div",{className:"yoast-block-sidebar-title"},t.text,o.createElement("span",{className:"yoast-inline-icon"},o.createElement(r.HelpLink,{URL:t.URL}))))}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(48)),a=n(136),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(t){var e=this,n=t.attributes[this.options.name];return"string"!=typeof n?[]:a.splitOnTag(n,this.options.tag).map((function(t){return a.stripTags(t,e.options.allowedTags)}))},e}(s.default);e.default=u,s.default.register("list",u)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(48)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.configuration=function(){return this.options},e.prototype.renderable=function(){return!1},e}(s.default);e.default=a,s.default.register("schema",a)},function(t,e){t.exports=window.wp.hooks},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInvalidResult=e.isOkResult=e.isResultValidForSchema=e.isEmptyResult=e.isMissingResult=e.isValidResult=void 0;var o=n(32);e.isValidResult=function(t){return t<200},e.isMissingResult=function(t){return[o.BlockValidation.MissingRecommendedBlock,o.BlockValidation.MissingRequiredBlock].includes(t)},e.isEmptyResult=function(t){return[o.BlockValidation.MissingRecommendedAttribute,o.BlockValidation.MissingRequiredAttribute,o.BlockValidation.MissingRecommendedVariation,o.BlockValidation.MissingRequiredVariation].includes(t)},e.isResultValidForSchema=function(t){return t<300},e.isOkResult=function(t){return t>=200&&t<300},e.isInvalidResult=function(t){return t>=300}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SchemaAnalysis=void 0;var r=n(33),i=n(1),s=n(10),a=n(13),u=n(45),c=o(n(577)),l=n(578),f=n(82),p=o(n(255));function d(t){return i.createElement(i.Fragment,null,i.createElement("div",{className:"yoast-block-sidebar-warnings"},i.createElement("div",{className:"yoast-block-sidebar-title"},s.__("Analysis","yoast-schema-blocks")),i.createElement("ul",{className:"yoast-block-sidebar-warnings"},t.warnings.map((function(t){return i.createElement(h,{warning:t,key:t.text})})))))}function h(t){return i.createElement("li",{className:"yoast-block-sidebar-warning"},i.createElement(a.SvgIcon,{icon:"circle",color:t.warning.color,size:"13px",className:"yoast-block-sidebar-warning-dot"}),t.warning.text)}e.SchemaAnalysis=function(){var t=r.useSelect((function(t){var e=t(f.YOAST_SCHEMA_BLOCKS_STORE_NAME).getBlockNames();return t(f.YOAST_SCHEMA_BLOCKS_STORE_NAME).getValidationsForBlockNames(e)}),[]),e=[],n=r.useSelect((function(t){var e=t("yoast-seo/schema-blocks"),n=e.getRequiredBlockNames,o=e.getRecommendedBlockNames;return{requiredBlocks:n()||[],recommendedBlocks:o()||[]}})),o=n.requiredBlocks,a=n.recommendedBlocks;t&&(e=l.createAnalysisMessages(t));var h=i.useState(""),_=h[0],y=h[1],v=i.useCallback((function(t){y(t)}),[_]);return i.createElement("div",{key:"schema-analysis",className:"yoast-schema-analysis"},i.createElement(p.default,{text:s.__("JobPosting schema","yoast-schema-blocks"),URL:"https://yoa.st/4dk"}),i.createElement(u.TextControl,{onChange:v,value:_,label:"Job title"}),i.createElement(d,{warnings:e}),i.createElement(c.default,{heading:s.__("Required information","yoast-schema-blocks"),blockNames:o}),i.createElement(c.default,{heading:s.__("Recommended information","yoast-schema-blocks"),blockNames:a}))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,e,n,o){void 0===o&&(o=n),Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,o){void 0===o&&(o=n),t[o]=e[n]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return r(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.initialize=void 0,n(506);var a=n(109),u=n(45),c=n(1),l=n(562),f=n(82),p=n(563),d=n(565),h=s(n(569)),_=s(n(570)),y=i(n(44)),v=s(n(575)),m=n(260);function g(t){return t.split("\n").map((function(t){return t.trim()})).join("")}e.initialize=function(t){void 0===t&&(t=y.LogLevel.ERROR),y.default.setLogLevel(t),f.initializeSchemaBlocksStore(),v.default(["core/paragraph","core/image","core/heading","core/separator","yoast/warning-block"],["yoast/job-posting"]),a.registerBlockType("yoast/warning-block",p.WarningBlock),jQuery('script[type="text/schema-template"]').each((function(){try{var t=g(this.innerHTML);d.processSchema(t).register()}catch(t){y.default.error("Failed to parse schema-template",t,this)}})),h.default(),jQuery('script[type="text/block-template"]').each((function(){try{var t=g(this.innerHTML);d.processBlock(t).register()}catch(t){y.default.error("Failed to parse gutenberg-template",t,this)}})),l.registerPlugin("yoast-seo-schema-blocks-analysis",{render:function(){return c.createElement(c.Fragment,null,["sidebar","metabox"].map((function(t){return c.createElement(u.Fill,{key:t,name:["yoast-schema-blocks-analysis",t].join("-")},c.createElement(m.SchemaAnalysis,null))})))},icon:null}),_.default()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(507),n(545)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(508),n(510),n(511),n(527),n(251),n(531),n(253),n(533),n(242),n(534),n(535),n(536),n(538),n(539),n(540),n(541),n(542),n(544)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(34)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.configuration=function(){return Object.assign(this.options,{attributes:{"is-yoast-schema-block":{type:"object",default:!0}}})},e.prototype.renderable=function(){return!1},e}(s.default);s.default.register("block",a)},function(t,e,n){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.BlockValidation=void 0,(o=e.BlockValidation||(e.BlockValidation={}))[o.Valid=100]="Valid",o[o.Unknown=101]="Unknown",o[o.Skipped=102]="Skipped",o[o.OK=200]="OK",o[o.MissingRecommendedAttribute=201]="MissingRecommendedAttribute",o[o.MissingRecommendedBlock=202]="MissingRecommendedBlock",o[o.MissingRecommendedVariation=203]="MissingRecommendedVariation",o[o.Invalid=300]="Invalid",o[o.MissingRequiredAttribute=301]="MissingRequiredAttribute",o[o.MissingRequiredBlock=302]="MissingRequiredBlock",o[o.MissingRequiredVariation=303]="MissingRequiredVariation"},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(34)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.edit=function(t){return t.className},e.prototype.save=function(t){return t.attributes.className?t.attributes.className:""},e}(s.default);e.default=a,s.default.register("class-name",a)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(242)),a=i(n(34)),u=n(250),c=["USD","EUR","GBP","AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","FJD","FKP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],l=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.options.options=u.arrayOrObjectToOptions(c),o}return r(e,t),e}(s.default);a.default.register("currency-select",l)},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),i=o(n(513)),s=o(n(514)),a=o(n(515)),u=o(n(516));function c(t,e){var n=e.separator,o=e.instructions;return t.split(n).map((function(t,e){return e%2?new i.default(o[t]):new s.default(t)})).filter((function(t){return!(t instanceof s.default&&""===t.value)}))}e.default=function(t){var e=(new DOMParser).parseFromString(t.template,"text/html");return t.tree=new u.default(function t(e,n){var o=r.flatMap(e,(function(e){return function(e,n){switch(e.nodeType){case Node.TEXT_NODE:return c(e.nodeValue,n);case Node.ELEMENT_NODE:for(var o=new a.default(e.nodeName.toLowerCase()),r=0;r0){var a=t(e,s.issues);if(a)return a}}return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetBlockValidation=e.addBlockValidation=void 0;var o=n(139);e.addBlockValidation=function(t){return o.AddBlockValidationCommand(t)},e.resetBlockValidation=function(){return o.ResetBlockValidationCommand()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.schemaBlocksReducer=void 0;var o=n(139),r=n(177);e.schemaBlocksReducer=function(t,e){switch(void 0===t&&(t=r.SchemaBlocksDefaultState),e.type){case o.SchemaBlocksStoreActions.RESET_BLOCK_VALIDATIONS:return r.SchemaBlocksDefaultState;case o.SchemaBlocksStoreActions.ADD_BLOCK_VALIDATION:var n=Object.assign({},t),i=e.validation;return n.validations=n.validations||{},n.validations[i.name]=i,n;default:return t}}},function(t,e,n){"use strict";var o=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,r=t.length;n0){var s=t(i.issues,n);if(s)return s}}return null}},function(t,e,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n0?h.BlockValidation.Valid:n===h.BlockPresence.Required?h.BlockValidation.MissingRequiredAttribute:h.BlockValidation.MissingRecommendedAttribute,new p.BlockValidationResult(t.clientId,this.constructor.name,o,n)},e}(l.default);e.default=_,l.default.register("date",_)},function(t,e){t.exports=window.wp.date},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(45),i=n(10),s=n(3),a=o(n(530)),u=[1,2,3,4,5,6],c={className:"block-library-heading-level-dropdown",isAlternate:!0};e.default=function(t){var e=t.selectedLevel,n=t.onChange,o=s.useCallback((function(t){var n=t.onToggle,o=t.isOpen,u=s.useCallback((function(t){o||"ArrowDown"!==t.key||(t.preventDefault(),t.stopPropagation(),n())}),[n]);return s.createElement(r.ToolbarButton,{"aria-expanded":o,"aria-haspopup":"true",icon:s.createElement(a.default,{level:e}),label:i.__("Change heading level","yoast-schema-blocks"),onClick:n,onKeyDown:u,showTooltip:!0,title:i.__("Change heading level","yoast-schema-blocks")})}),[]),l=s.useCallback((function(){return s.createElement(r.Toolbar,{className:"block-library-heading-level-toolbar",label:i.__("Change heading level","yoast-schema-blocks")},s.createElement(r.ToolbarGroup,{isCollapsed:!1,controls:u.map((function(t){var o=t===e;return{icon:s.createElement(a.default,{level:t}),title:i.sprintf(// translators: %s: heading level e.g: "1", "2", "3" i.__("Heading %d","yoast-schema-blocks"),t),isActive:o,onClick:function(){n(t)}}}))}))}),[]);return s.createElement(r.Dropdown,{popoverProps:c,renderToggle:o,renderContent:l})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(45),r=n(3);e.default=function(t){var e=t.level;return r.createElement(o.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},r.createElement(o.Path,{d:{1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"}[e]}))}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(1),a=i(n(34)),u=n(111),c=n(69),l=i(n(44)),f=n(81),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sidebar=function(t,e){var n=[];this.options.parents&&(n=u.getParentIdOfType(t.clientId,this.options.parents));var o=c.getBlockByClientId(t.clientId),r=[];return n.length>0&&n.forEach((function(t){var e=c.getBlockByClientId(t),n=f.getBlockDefinition(e.name);if(n){l.default.debug(o.name+" inherited sidebar from "+e.name+" definition");var i=u.createBlockEditProps(e);r.push.apply(r,n.sidebarElements(i))}})),s.createElement(s.Fragment,null,r)},e.prototype.configuration=function(){var t;return{attributes:(t={},t[this.options.name]={parents:this.options.parents},t)}},e}(a.default);e.default=p,a.default.register("inherit-sidebar",p)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(80);e.default=function(t){var e=t.clientId,n=t.label;return o.createElement("div",{"data-root-client-id":e,className:"wp-block block-editor-default-block-appender"},o.createElement("p",{className:"block-editor-default-block-appender__content yoast-schema-block-appender__content"},n),o.createElement(r.Inserter,{rootClientId:e,position:"bottom right"}))}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(34)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getBaseAttributes=function(t,e){var n={tagName:this.options.tag,value:t.attributes[this.options.name],className:this.options.class,"data-id":this.options.name,key:e};return this.options.multiline&&(n.multiline=this.options.multiline),n},e}(i(n(252)).default);e.default=a,s.default.register("rich-text",a)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(34)),a=n(45),u=n(1),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sidebar=function(t){var e=this,n=this.options,o=n.name,r=n.label,i=n.help,s=u.useCallback((function(n){var o;t.setAttributes(((o={})[e.options.name]=n,o))}),[t]);return u.createElement(a.CheckboxControl,{checked:t.attributes[o],label:r,onChange:s,help:i})},e.prototype.save=function(t){return t.attributes[this.options.name]&&this.options.output?this.options.output:null},e.prototype.configuration=function(){var t;return{attributes:(t={},t[this.options.name]={type:"boolean"},t)}},e}(s.default);s.default.register("sidebar-checkbox",c)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(254)),a=n(1),u=n(45),c=n(10),l=i(n(34));function f(t,e,n){var o,r;n.isValid()&&0!==n.asMinutes()?t.setAttributes(((r={})[e]=n.toISOString(),r)):t.setAttributes(((o={})[e]=null,o))}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sidebar=function(t,e){var n=this,o="",r=s.default.duration(NaN);"string"==typeof t.attributes[this.options.name]?r=s.default.duration(t.attributes[this.options.name]):"string"==typeof this.options.default&&(r=s.default.duration(this.options.default)),"string"==typeof this.options.label&&(o=this.options.label+" ");var i=Math.floor(r.asHours()),l=r.minutes(),p={label:o+c.__("hours","yoast-schema-blocks"),value:isNaN(i)||0===i?"":i,onChange:function(e){var o=s.default.duration({hours:parseInt(e,10),minutes:l||0});f(t,n.options.name,o)},type:"number",key:"hours"},d={label:o+c.__("minutes","yoast-schema-blocks"),value:isNaN(l)||0===l?"":l,onChange:function(e){var o=s.default.duration({hours:i||0,minutes:parseInt(e,10)});f(t,n.options.name,o)},type:"number",key:"minutes"};return this.options.help&&(p.help=this.options.help,d.help=this.options.help),a.createElement(a.Fragment,{key:e},[a.createElement(u.TextControl,p),a.createElement(u.TextControl,d)])},e.prototype.configuration=function(){var t;return{attributes:(t={},t[this.options.name]={type:"string",required:!0===this.options.required},t)}},e.prototype.value=function(t){var e=s.default.duration(NaN);return"string"==typeof t.attributes[this.options.name]?e=s.default.duration(t.attributes[this.options.name]):"string"==typeof this.options.default&&(e=s.default.duration(this.options.default)),e.isValid()?e.humanize():""},e}(i(n(178)).default);l.default.register("sidebar-duration",p)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(1),a=n(45),u=i(n(34)),c=i(n(178)),l=i(n(255)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sidebar=function(t,e){var n=this,o={label:this.options.label,value:t.attributes[this.options.name],className:this.options.className,placeholder:this.options.placeholder,onChange:function(e){var o,r="number"===n.options.type?parseInt(e,10):e;t.setAttributes(((o={})[n.options.name]=r,o))},key:e};return this.options.help&&(o.help=this.options.help),this.options.type&&(o.type=this.options.type),this.options.helpLink&&(o.label=l.default({text:o.label,URL:this.options.helpLink})),s.createElement(a.TextControl,o)},e.prototype.configuration=function(){var t;return{attributes:(t={},t[this.options.name]={type:"number"===this.options.type?"number":"string",required:!0===this.options.required},t)}},e.prototype.value=function(t){return t.attributes[this.options.name]||this.options.default||""},e}(c.default);u.default.register("sidebar-input",f)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HelpLink=void 0;var o=n(1);e.HelpLink=function(t){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 0 20 18",fill:"currentColor",height:"15",width:"22"},o.createElement("a",{className:"yoast-question-mark-icon",href:t.URL,rel:"noopener noreferrer",target:"_blank"},o.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113\n\t\t\t\t8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})))}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(1),a=n(45),u=i(n(34)),c=n(250),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sidebar=function(t,e){var n=this,o={label:this.options.label,value:t.attributes[this.options.name],options:c.arrayOrObjectToOptions(this.options.options),onChange:function(e){var o;return t.setAttributes(((o={})[n.options.name]=e,o))},key:e,multiple:this.options.multiple||!1};return s.createElement(a.SelectControl,o)},e.prototype.configuration=function(){var t;return{attributes:(t={},t[this.options.name]={type:!0===this.options.multiple?"array":"string",required:!0===this.options.required},t)}},e.prototype.value=function(t){return t.attributes[this.options.name]||c.arrayOrObjectToOptions(this.options.options)[0].value},e}(i(n(178)).default);u.default.register("sidebar-select",l)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(3),a=n(45),u=n(1),c=i(n(34)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.edit=function(t){var e=this,n=this.options,o=n.hideLabelFromVision,r=n.label,i=n.type,c=n.placeholder,l=t.attributes[this.options.name],f=s.useCallback((function(n){var o;t.setAttributes(((o={})[e.options.name]=n,o))}),[t]);return u.createElement(a.TextControl,{className:t.className,hideLabelFromVision:o,label:r,onChange:f,type:i,placeholder:c,value:l})},e.prototype.save=function(t){return t.attributes[this.options.name]},e.prototype.configuration=function(){var t;return{attributes:(t={},t[this.options.name]={type:"string"},t)}},e}(c.default);e.default=l,c.default.register("text-input",l)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(10),a=n(251),u=n(32),c=i(n(34)),l=n(32),f=n(176),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.isCompleted=function(t){return f.attributeExists(t,this.options.name)&&f.attributeNotEmpty(t,this.options.name)},e.prototype.validate=function(t){return this.isCompleted(t)?u.BlockValidationResult.Valid(t):new u.BlockValidationResult(t.clientId,t.name,u.BlockValidation.MissingRequiredAttribute,l.BlockPresence.Required,s.sprintf( /* Translators: %s expands to the label of the title field in the block sidebar. */ s.__("%s has been left empty.","yoast-schema-blocks"),this.options.fieldName))},e.prototype.renderable=function(){return!1},e}(a.Heading);c.default.register("title",p)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(n(34)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.configuration=function(){return{variations:[this.options]}},e.prototype.renderable=function(){return!1},e}(s.default);e.default=a,s.default.register("variation",a)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n0?null:u.createElement(f.default,i({},t,{key:"variation-picker-"+n}))},e.prototype.validate=function(t){var e=d.getPresence(this.options),n=p.getParent(t.clientId),o=n?n.name:this.constructor.name;if(function(t){return t.innerBlocks&&t.innerBlocks.length>0}(t))return l.BlockValidationResult.Valid(t,o,e);var r=e===l.BlockPresence.Required?l.BlockValidation.MissingRequiredVariation:l.BlockValidation.MissingRecommendedVariation;return new l.BlockValidationResult(t.clientId,o,r,e)},e}(c.BlockInstruction);e.VariationPicker=h,c.BlockInstruction.register("variation-picker",h)},function(t,e,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n0&&t.accept("constant",e[1]),e[2]&&"{{"===e[2].slice(0,2)&&(t.state("definition"),t.accept("definition",e[2].slice(2)),t.data("nested",[]))}),"open-instruction"),r.rule("definition",/\s*}}/,(function(t){t.untag("undefined"),t.state("default"),t.ignore()}),"close-instruction"),r.rule("definition",/\s*([a-zA-Z][a-zA-Z0-9-_]*)=/,(function(t,e){t.accept("key",e[1]),t.state("definition-value")}),"options-object-key"),r.rule("definition-value",/\s*\{\s*}/,(function(t){t.accept("empty-object"),t.tagged("array")||t.tagged("object")||t.state("definition")}),"empty-object"),r.rule("definition-value",/\s*\{/,(function(t){t.tag("object"),t.accept("object-open"),t.state("definition-key");var e=t.data("nested");e.push("object"),t.data("nested",e),t.tagged("array")&&t.untag("array")}),"open-object"),r.rule("definition-value #object",/\s*}/,(function(t){var e=t.data("nested");if(e.pop(),t.data("nested",e),t.accept("object-close"),0===e.length)return t.untag("object"),void t.state("definition");"array"===e[e.length-1]&&(t.untag("object"),t.tag("array"))}),"close-object"),r.rule("definition-key #object",/\s*"([^"\\]+|\\.)*":/,(function(t,e){t.accept("key",e[1]),t.state("definition-value")}),"object-key"),r.rule("definition-value #object",/\s*,/,(function(t){t.state("definition-key"),t.ignore()}),"object-comma"),r.rule("definition-value",/\s*\[/,(function(t){t.tag("array"),t.accept("array-open");var e=t.data("nested");e.push("array"),t.data("nested",e),t.tagged("object")&&t.untag("object")}),"open-array"),r.rule("definition-value #array",/\s*]/,(function(t){var e=t.data("nested");if(e.pop(),t.data("nested",e),t.accept("array-close"),0===e.length)return t.untag("array"),void t.state("definition");"object"===e[e.length-1]&&(t.untag("array"),t.tag("object"))}),"close-array"),r.rule("definition-value #array",/\s*,/,(function(t){t.ignore()}),"array-comma"),r.rule("definition-value",/\s*(\d+)/,(function(t,e){t.accept("value",parseInt(e[1],10)),t.tagged("array")||t.tagged("object")||t.state("definition")}),"number-value"),r.rule("definition-value",/\s*(true|false)/,(function(t,e){t.accept("value","true"===e[1]),t.tagged("array")||t.tagged("object")||t.state("definition")}),"boolean-value"),r.rule("definition-value",/\s*"([^"\\]+|\\.)*"/,(function(t,e){t.accept("value",e[1]),t.tagged("array")||t.tagged("object")||t.state("definition")}),"string-value"),e.default=function(t){return r.reset(),r.input(t),r.tokens()}},function(t,e,n){t.exports=function t(e,n,o){function r(s,a){if(!n[s]){if(!e[s]){if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};e[s][0].call(c.exports,(function(t){return r(e[s][1][t]||t)}),c,c.exports,t,e,n,o)}return n[s].exports}for(var i=!1,s=0;sn&&(r=n);var i=function(t){return t.charCodeAt(0).toString(16).toUpperCase()},s=function(t,e,n){return t.substr(e,n).replace(/\\/g,"\\\\").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(t){return"\\x0"+i(t)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(t){return"\\x"+i(t)})).replace(/[\u0100-\u0FFF]/g,(function(t){return"\\u0"+i(t)})).replace(/[\u1000-\uFFFF]/g,(function(t){return"\\u"+i(t)}))};return{prologTrunc:o>0,prologText:s(t,o,e-o),tokenText:s(t,e,1),epilogText:s(t,e+1,r-(e+1)),epilogTrunc:r3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;l(this,t),this.type=e,this.value=n,this.text=o,this.pos=r,this.line=i,this.column=s}return p(t,[{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t,e){return e};return"".concat(t("type",this.type)," ")+"(value: ".concat(t("value",JSON.stringify(this.value)),", ")+"text: ".concat(t("text",JSON.stringify(this.text)),", ")+"pos: ".concat(t("pos",this.pos),", ")+"line: ".concat(t("line",this.line),", ")+"column: ".concat(t("column",this.column),")")}},{key:"isA",value:function(t,e){return t===this.type&&(2!==arguments.length||e===this.value)}}]),t}(),_=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&&u(t,e)}(n,i(Error));var e=function(t){var e=a();return function(){var n,o=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return r(this,n)}}(n);function n(t,o,r,i,s){var a;return l(this,n),(a=e.call(this,t)).name="ParsingError",a.message=t,a.pos=o,a.line=r,a.column=i,a.input=s,a}return p(n,[{key:"toString",value:function(){for(var t=d(this.input,this.pos),e="line ".concat(this.line," (column ").concat(this.column,"): "),n="",o=0;o0?((e=this._tokenizr).state.apply(e,arguments),this):(t=this._tokenizr).state.apply(t,arguments)}},{key:"tag",value:function(){var t;return(t=this._tokenizr).tag.apply(t,arguments),this}},{key:"tagged",value:function(){var t;return(t=this._tokenizr).tagged.apply(t,arguments)}},{key:"untag",value:function(){var t;return(t=this._tokenizr).untag.apply(t,arguments),this}},{key:"repeat",value:function(){return this._tokenizr._log(" REPEAT"),this._repeat=!0,this}},{key:"reject",value:function(){return this._tokenizr._log(" REJECT"),this._reject=!0,this}},{key:"ignore",value:function(){return this._tokenizr._log(" IGNORE"),this._ignore=!0,this}},{key:"accept",value:function(t,e){return arguments.length<2&&(e=this._match[0]),this._tokenizr._log(" ACCEPT: type: ".concat(t,", value: ")+"".concat(JSON.stringify(e)," (").concat(o(e),'), text: "').concat(this._match[0],'"')),this._tokenizr._pending.push(new h(t,e,this._match[0],this._tokenizr._pos,this._tokenizr._line,this._tokenizr._column)),this}},{key:"stop",value:function(){return this._tokenizr._stopped=!0,this}}]),t}(),v=function(){function t(){l(this,t),this._before=null,this._after=null,this._finish=null,this._rules=[],this._debug=!1,this.reset()}return p(t,[{key:"reset",value:function(){return this._input="",this._len=0,this._eof=!1,this._pos=0,this._line=1,this._column=1,this._state=["default"],this._tag={},this._transaction=[],this._pending=[],this._stopped=!1,this._ctx=new y(this),this}},{key:"error",value:function(t){return new _(t,this._pos,this._line,this._column,this._input)}},{key:"debug",value:function(t){return this._debug=t,this}},{key:"_log",value:function(t){this._debug&&console.log("tokenizr: ".concat(t))}},{key:"input",value:function(t){if("string"!=typeof t)throw new Error('parameter "input" not a String');return this.reset(),this._input=t,this._len=t.length,this}},{key:"push",value:function(t){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof t)throw new Error('parameter "state" not a String');return this._log(" STATE (PUSH): "+"old: <".concat(this._state[this._state.length-1],">, ")+"new: <".concat(t,">")),this._state.push(t),this}},{key:"pop",value:function(){if(0!==arguments.length)throw new Error("invalid number of arguments");if(this._state.length<2)throw new Error("no more custom states to pop");return this._log(" STATE (POP): "+"old: <".concat(this._state[this._state.length-1],">, ")+"new: <".concat(this._state[this._state.length-2],">")),this._state.pop()}},{key:"state",value:function(t){if(1===arguments.length){if("string"!=typeof t)throw new Error('parameter "state" not a String');return this._log(" STATE (SET): "+"old: <".concat(this._state[this._state.length-1],">, ")+"new: <".concat(t,">")),this._state[this._state.length-1]=t,this}if(0===arguments.length)return this._state[this._state.length-1];throw new Error("invalid number of arguments")}},{key:"tag",value:function(t){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof t)throw new Error('parameter "tag" not a String');return this._log(" TAG (ADD): ".concat(t)),this._tag[t]=!0,this}},{key:"tagged",value:function(t){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof t)throw new Error('parameter "tag" not a String');return!0===this._tag[t]}},{key:"untag",value:function(t){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof t)throw new Error('parameter "tag" not a String');return this._log(" TAG (DEL): ".concat(t)),delete this._tag[t],this}},{key:"before",value:function(t){return this._before=t,this}},{key:"after",value:function(t){return this._after=t,this}},{key:"finish",value:function(t){return this._finish=t,this}},{key:"rule",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unknown";if(2===arguments.length&&"function"==typeof e){var i=[t,e];e=i[0],n=i[1],t="*"}else if(3===arguments.length&&"function"==typeof e){var s=[t,e,n];e=s[0],n=s[1],r=s[2],t="*"}if("string"!=typeof t)throw new Error('parameter "state" not a String');if(!("object"===o(e)&&e instanceof RegExp))throw new Error('parameter "pattern" not a RegExp');if("function"!=typeof n)throw new Error('parameter "action" not a Function');if("string"!=typeof r)throw new Error('parameter "name" not a String');t=t.split(/\s*,\s*/g).map((function(t){var e=t.split(/\s+/g),n=e.filter((function(t){return null===t.match(/^#/)})),o=e.filter((function(t){return null!==t.match(/^#/)})).map((function(t){return t.replace(/^#/,"")}));if(1!==n.length)throw new Error("exactly one state required");return{state:n[0],tags:o}}));var a="g";try{"boolean"==typeof new RegExp("","y").sticky&&(a="y")}catch(t){}return"boolean"==typeof e.multiline&&e.multiline&&(a+="m"),"boolean"==typeof e.dotAll&&e.dotAll&&(a+="s"),"boolean"==typeof e.ignoreCase&&e.ignoreCase&&(a+="i"),"boolean"==typeof e.unicode&&e.unicode&&(a+="u"),e=new RegExp(e.source,a),this._log("rule: configure rule (state: ".concat(t,", pattern: ").concat(e.source,")")),this._rules.push({state:t,pattern:e,action:n,name:r}),this}},{key:"_progress",value:function(t,e){for(var n=this._line,o=this._column,r=this._input,i=t;i, ")+"to: "))}},{key:"_tokenize",value:function(){var t=this,e=function(){t._eof||(null!==t._finish&&t._finish.call(t._ctx,t._ctx),t._eof=!0,t._pending.push(new h("EOF","","",t._pos,t._line,t._column)))};if(!(this._stopped||this._pos>=this._len)){for(var n=!0;n;){if(n=!1,this._debug){var o=d(this._input,this._pos),r=Object.keys(this._tag).map((function(t){return"#".concat(t)})).join(" ");this._log("INPUT: state: <".concat(this._state[this._state.length-1],">, tags: <").concat(r,">, text: ")+(o.prologTrunc?"...":'"')+"".concat(o.prologText,"<").concat(o.tokenText,">").concat(o.epilogText)+(o.epilogTrunc?"...":'"')+", at: "))}for(var i=0;i0&&(e+=" "+t.tags.map((function(t){return"#".concat(t)})).join(" ")),e})).join(", ");this._log(" RULE: state(s): <".concat(s,">, ")+"pattern: ".concat(this._rules[i].pattern.source))}var a=!1,u=this._rules[i].state.map((function(t){return t.state})),c=u.indexOf("*");if(c<0&&(c=u.indexOf(this._state[this._state.length-1])),c>=0){a=!0;var l=this._rules[i].state[c].tags;(l=l.filter((function(e){return!t._tag[e]}))).length>0&&(a=!1)}if(a){this._rules[i].pattern.lastIndex=this._pos;var f=this._rules[i].pattern.exec(this._input);if(this._rules[i].pattern.lastIndex=this._pos,null!==(f=this._rules[i].pattern.exec(this._input))&&f.index===this._pos){if(this._debug&&this._log(" MATCHED: "+JSON.stringify(f)),this._ctx._match=f,this._ctx._repeat=!1,this._ctx._reject=!1,this._ctx._ignore=!1,null!==this._before&&this._before.call(this._ctx,this._ctx,f,this._rules[i]),this._rules[i].action.call(this._ctx,this._ctx,f),null!==this._after&&this._after.call(this._ctx,this._ctx,f,this._rules[i]),this._ctx._reject)continue;if(this._ctx._repeat){n=!0;break}if(this._ctx._ignore){if(this._progress(this._pos,this._rules[i].pattern.lastIndex),this._pos=this._rules[i].pattern.lastIndex,this._pos>=this._len)return void e();n=!0;break}if(this._pending.length>0)return this._progress(this._pos,this._rules[i].pattern.lastIndex),this._pos=this._rules[i].pattern.lastIndex,void(this._pos>=this._len&&e());throw new Error('action of pattern "'+this._rules[i].pattern.source+'" neither rejected nor accepted any token(s)')}}}}throw this.error("token not recognized")}e()}},{key:"token",value:function(){if(0===this._pending.length&&this._tokenize(),this._pending.length>0){var t=this._pending.shift();return this._transaction.length>0&&this._transaction[0].push(t),this._log("TOKEN: ".concat(t.toString())),t}return null}},{key:"tokens",value:function(){for(var t,e=[];null!==(t=this.token());)e.push(t);return e}},{key:"peek",value:function(t){void 0===t&&(t=0);for(var e=0;e=this._pending.length)throw new Error("not enough tokens available for peek operation");return this._log("PEEK: ".concat(this._pending[t].toString())),this._pending[t]}},{key:"skip",value:function(t){void 0===t&&(t=1);for(var e=0;ethis._pending.length)throw new Error("not enough tokens available for skip operation");for(;t-- >0;)this.token();return this}},{key:"consume",value:function(t,e){for(var n=this,r=0;r, ")+"found: "),i.pos,i.line,i.column,n._input)};return 2!==arguments.length||i.isA(t,e)?i.isA(t)||s():s(JSON.stringify(e),o(e)),i}},{key:"begin",value:function(){return this._log("BEGIN: level ".concat(this._transaction.length)),this._transaction.unshift([]),this}},{key:"depth",value:function(){if(0===this._transaction.length)throw new Error("cannot determine depth -- no active transaction");return this._transaction[0].length}},{key:"commit",value:function(){if(0===this._transaction.length)throw new Error("cannot commit transaction -- no active transaction");var t=this._transaction.shift();return this._transaction.length>0&&(this._transaction[0]=this._transaction[0].concat(t)),this._log("COMMIT: level ".concat(this._transaction.length)),this}},{key:"rollback",value:function(){if(0===this._transaction.length)throw new Error("cannot rollback transaction -- no active transaction");var t=this._transaction.shift();return this._pending=t.concat(this._pending),this._log("ROLLBACK: level ".concat(this._transaction.length)),this}},{key:"alternatives",value:function(){for(var t=null,e=[],n=arguments.length,o=new Array(n),r=0;r0)throw(e=e.sort((function(t,e){return t.depth-e.depth})))[0].ex;return t}}]),t}();v.Token=h,v.ParsingError=_,v.ActionContext=y,e.exports=v},{}]},{},[1])(1)},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(258),i=n(141),s=o(n(44));e.default=function(){r.addFilter("blocks.registerBlockType","wordpress-seo/schema-blocks/schema-attribute",(function(t,e){return Object.keys(i.schemaDefinitions).includes(e)?(s.default.debug("Adding schema to: ",e),t.attributes||(t.attributes={}),t.attributes["yoast-schema"]={type:"object"},t):t}))}},function(t,e,n){"use strict";var o=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,r=t.length;n0&&e.push.apply(e,m(t.innerBlocks)))})),e}e.validateBlocks=m,e.default=function(){a.subscribe(s.debounce((function(){if(!v){var t=a.select("core/block-editor").getBlocks();if(t!==i){!function(t){for(var e=0,n=t;e',"");case r.BLOCK_RECOMMENDED: /* translators: %1$s: the block name that is removed, %2$s: the anchor to a page about recommended blocks, %3$s the closing anchor tag. */ return a.sprintf(a.__("You've just removed the ‘%1$s’ block, but this is a %2$srecommended block for Schema output%3$s. Are you sure you want to do this?","yoast-schema-blocks"),t,'',"")}}(p.getBlockType(t.name).title,n));var o={removedBlock:t,isRequired:n===r.BLOCK_REQUIRED,warningText:e};return s.createBlock("yoast/warning-block",o)}(t,c,o);i.dispatch("core/block-editor").insertBlock(l,u,e.clientId)}))}function _(t){var e={};return t.forEach((function(t){e[t.name]=t.warning||""})),e}!function(t){t[t.BLOCK_REQUIRED=0]="BLOCK_REQUIRED",t[t.BLOCK_RECOMMENDED=1]="BLOCK_RECOMMENDED"}(r||(r={})),e.default=function(t,e){void 0===e&&(e=[]);var n=f.mapBlocksRecursively(t,(function(t){return t.clientId}));d.removeObsoleteWarnings(f.getAllBlocks(t)),l.default(e,(function(t){if(t.innerBlocks&&0!==t.innerBlocks.length){var e=t.innerBlocks.filter((function(t){return!n.includes(t.clientId)}));if(0!==e.length){var o,i,s=(o=t.name,(i=u.getBlockDefinition(o))?Object.values(i.instructions).find((function(t){return t instanceof c.default})):null);s&&(function(t,e,n){var o=n.options.requiredBlocks||[];h(e.filter((function(t){return o.some((function(e){return t.name===e.name}))})),t,_(o),r.BLOCK_REQUIRED)}(t,e,s),function(t,e,n){var o=n.options.recommendedBlocks||[];h(e.filter((function(t){return o.some((function(e){return t.name===e.name}))})),t,_(o),r.BLOCK_RECOMMENDED)}(t,e,s))}}}))}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.removeObsoleteWarnings=void 0;var r=o(n(137)),i=n(69);e.removeObsoleteWarnings=function(t){var e=t.filter((function(t){return"yoast/warning-block"===t.name}));0!==e.length&&r.default(e,(function(e){var n=e.attributes;(function(t,e){return t.filter((function(t){return t.name===e})).length<1})(t,n.removedBlock.name)||i.removeBlock(e.clientId)}))}},function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(33),i=o(n(44)),s=n(82);e.default=function(t){if(!(t.length<1)){var e=r.dispatch(s.YOAST_SCHEMA_BLOCKS_STORE_NAME);e?(e.resetBlockValidation(),t.forEach((function(t){i.default.debug("storing validation: ",t),e.addBlockValidation(t)}))):i.default.debug("No Store! Cannot store validations.")}}},function(t,e,n){"use strict";var o=this&&this.__spreadArray||function(t,e){for(var n=0,o=e.length,r=t.length;n0&&n.forEach((function(e){var n=s.getBlockByClientId(e),r=i.getBlockDefinition(n.name);if(r){u.default.debug(t.clientId+" inherited sidebar from "+n.name+" definition");var c=a.createBlockEditProps(n);o.push.apply(o,r.sidebarElements(c))}})),r.createElement(c.PanelBody,null,o)}},function(t,e,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n=i.BlockValidation.Invalid}))?{text:r.sprintf( /* translators: %s expands to the schema block name. */ r.__("Not all required information has been provided! %s schema will not be generated for your page.","yoast-schema-blocks"),"JobPosting"),color:"red"}:{text:r.__("Good job! All required information has been provided.","yoast-schema-blocks"),color:"green"}}e.createAnalysisMessages=function(t){return t?o(o(o([],function(t){return t.filter((function(t){return t.message&&t.blockPresence===i.BlockPresence.Required})).map((function(t){return{color:"red",text:t.message}}))}(t)),function(t){return t.filter((function(t){return t.message&&t.blockPresence===i.BlockPresence.Recommended})).map((function(t){return{color:"orange",text:t.message}}))}(t)),[s(t)]):[]},e.sanitizeParentName=function(t){return t.startsWith("Yoast ")?t.substr(6).toLowerCase():t.toLowerCase()}}]);