Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.151/page_editor/app/components/fragment_content/getAllEditables",["module","exports","require","../../config/constants/backgroundImageFragmentEntryProcessor","../../config/constants/editableFragmentEntryProcessor","../../processors/index"],(function(e,t,r){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function getAllEditables(e){const t=e.cloneNode(!0);return Array.from(t.querySelectorAll("lfr-drop-zone")).forEach((e=>{e.parentElement.removeChild(e)})),[...Array.from(t.querySelectorAll("lfr-editable")).map((t=>{const r=t.getAttribute("id"),a=t.getAttribute("type");return{editableId:r,editableValueNamespace:o.EDITABLE_FRAGMENT_ENTRY_PROCESSOR,element:e.querySelector('lfr-editable[id="'.concat(r,'"]')),priority:parseInt(t.dataset.lfrPriority,10)||1/0,processor:l.default[a]||l.default.fallback,type:a}})),...Array.from(t.querySelectorAll("[data-lfr-editable-id]")).map((t=>{const r=t.dataset.lfrEditableId,a=t.dataset.lfrEditableType;return{editableId:r,editableValueNamespace:o.EDITABLE_FRAGMENT_ENTRY_PROCESSOR,element:e.querySelector('[data-lfr-editable-id="'.concat(r,'"]')),priority:parseInt(t.dataset.lfrPriority,10)||1/0,processor:l.default[a]||l.default.fallback,type:a}})),...Array.from(t.querySelectorAll("[data-lfr-background-image-id]")).map((t=>{const r=t.dataset.lfrBackgroundImageId;return{editableId:r,editableValueNamespace:a.BACKGROUND_IMAGE_FRAGMENT_ENTRY_PROCESSOR,element:e.querySelector('[data-lfr-background-image-id="'.concat(r,'"]')),priority:parseInt(t.dataset.lfrPriority,10)||1/0,processor:l.default["background-image"],type:"background-image"}}))]};var a=r("../../config/constants/backgroundImageFragmentEntryProcessor"),o=r("../../config/constants/editableFragmentEntryProcessor"),l=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("../../processors/index"))}));
//# sourceMappingURL=getAllEditables.js.map