(()=>{"use strict";const e=lodash,t=wp.i18n,a=wp.hooks,n=wp.data,m=wp.components;(0,a.addFilter)("rank_math_schema_list","rank-math-pro",(function(a){if((0,e.isEmpty)(rankMath.activeTemplates))return a;var l=wp.element.createElement("div",{className:"rank-math-schema-active-templates"},wp.element.createElement("h4",{className:"rank-math-schema-section-title"},(0,t.__)("Global Templates in Use","rank-math-pro")),(0,e.map)(rankMath.activeTemplates,(function(a,l){return wp.element.createElement("div",{key:l,id:"rank-math-schema-item",className:"rank-math-schema-item row"},wp.element.createElement("strong",{className:"rank-math-schema-name"},(0,e.get)(a,"metadata.title",a["@type"])),wp.element.createElement("span",{className:"rank-math-schema-item-actions"},wp.element.createElement(m.Button,{isLink:!0,className:"button rank-math-delete-schema",onClick:function(){return(0,n.dispatch)("rank-math-pro").deleteActiveTemplate(l)}},wp.element.createElement("i",{className:"rm-icon rm-icon-trash"}),wp.element.createElement("span",null,(0,t.__)("Delete","rank-math-pro")))))})));return wp.element.createElement(React.Fragment,null,a,l)}))})();