!function(t){if(t&&t.hooks&&t.element){var e=["core/group","core/cover"],o=t.element.createElement;t.hooks.addFilter("editor.BlockListBlock","x-t9/layout-custom-class",function(t){return function(r){if(!r||-1===e.indexOf(r.name))return o(t,r);var i=r.attributes&&r.attributes.layout?r.attributes.layout:null,n=i&&i.contentSize&&""!==i.contentSize,a=i&&i.wideSize&&""!==i.wideSize;if(!n&&!a)return o(t,r);var u=r.className||"";-1===u.indexOf("is-layout-custom")&&(u=(u+" is-layout-custom").trim());var c={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(c[l]=r[l]);return c.className=u,o(t,c)}})}}(window.wp);