(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.blocks,r=window.React;var n,o,l;function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(null,arguments)}var c=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),n||(n=r.createElement("path",{fill:"#000",d:"M24 21.5H11l-.3-1H23V2.4H2V13H1V1.4h23zM5.5 5C6.3 5 7 5.7 7 6.5S6.3 8 5.5 8 4 7.3 4 6.5 4.7 5 5.5 5M20 7H9V6h11zM7 11.5c0-.8-.7-1.5-1.5-1.5S4 10.7 4 11.5v.4c.3-.2.6-.3 1-.3zM20 17v-1h-7.9l-.9 1zm0-5H9v-1h11z"})),o||(o=r.createElement("path",{fill:"#000",d:"M10.9 14.8H7.6s-.1 0-.1.1l-.2.7c0 .1 0 .2.1.2h1.3c.1 0 .1.1.1.2l-2 2.2 1 3.4c0 .1 0 .1-.1.1h-1c-.1 0-.1 0-.1-.1L6 19.8c0-.1-.2-.1-.2 0L5.4 21v.1l.4 1.5.1.1h3.3c.1 0 .1-.1.1-.1L8 18.3v-.1l3-3.2c0-.1 0-.2-.1-.2"})),l||(l=r.createElement("path",{fill:"#D8141C",d:"m7.022 13-1.99.008a.11.11 0 0 0-.102.076l-.257.721c-.03.076.03.152.103.152h.836c.074 0 .125.076.103.152l-2.37 6.717a.108.108 0 0 1-.206 0l-1.703-4.848a.112.112 0 0 1 .103-.152h.859a.11.11 0 0 1 .103.076l.616 1.748a.108.108 0 0 0 .206 0l.954-2.72a.112.112 0 0 0-.103-.152H.108c-.073 0-.125.076-.103.152l3.127 8.996a.108.108 0 0 0 .205 0l3.787-10.774c.022-.076-.029-.152-.102-.152"})))};const a=JSON.parse('{"apiVersion":3,"name":"vk-blocks/page-list-ancestor","title":"Page List Ancestor","category":"veu-block","description":"Display Ansestor Pages","textdomain":"vk-all-in-one-expansion-unit","attributes":{},"supports":{"className":true}}'),s=window.wp.blockEditor,u=window.wp.serverSideRender;var v=e.n(u);const d=window.wp.element;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},f(e)}var p,b,y,m=a.name,h={icon:React.createElement(c,null),edit:function(e){var t=e.attributes,r=t.className;(0,d.useEffect)((function(){var e,t=document.querySelector(".block-editor__container iframe"),r=(null==t||null===(e=t.contentWindow)||void 0===e?void 0:e.document)||document,n=new MutationObserver((function(){var e=r.querySelector(".block-editor-block-list__layout");if(e){var t=e.querySelectorAll(".veu_post_list_ancestor_block .veu_pageList_ancestor");0!==t.length&&t.forEach((function(e){e.dataset.prevented||(e.dataset.prevented="true",e.addEventListener("click",(function(t){t.preventDefault(),e.style.cursor="default",e.style.boxShadow="unset",e.style.color="inherit",e.style.textDecorationColor="inherit",e.style.pointerEvents="none"})),e.addEventListener("mouseover",(function(t){t.preventDefault(),e.style.cursor="default",e.style.boxShadow="unset",e.style.color="inherit",e.style.textDecorationColor="inherit",e.style.pointerEvents="none"})))}))}})),o=r.querySelector(".block-editor-block-list__layout")||r.body;return o&&n.observe(o,{childList:!0,subtree:!0}),function(){n.disconnect()}}),[]);var n=(0,s.useBlockProps)({className:"veu_post_list_ancestor_block ".concat(r)});return React.createElement(React.Fragment,null,React.createElement("div",n,React.createElement(v(),{block:"vk-blocks/page-list-ancestor",attributes:t})))}};(0,t.unstable__bootstrapServerSideBlockDefinitions)((p={},y=a,(b=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(b=m))in p?Object.defineProperty(p,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[b]=y,p)),(0,t.registerBlockType)(a,h)})();