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