Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.145/page_editor/app/utils/hasRequiredInputChild",["module","exports","require","../config/constants/layoutDataItemTypes","./getDescendantIds","./getResponsiveConfig","./isRequiredFormInput"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function hasRequiredInputChild({checkHidden:e=!1,formFields:t,fragmentEntryLinks:n,itemId:o,layoutData:r,selectedViewportSize:a=null}){return(0,s.getDescendantIds)(r,o).some((s=>{const o=r.items[s];return o.type===i.LAYOUT_DATA_ITEM_TYPES.fragment&&((!e||isItemHidden(r,s,a))&&(0,d.isRequiredFormInput)(o,n,t))}))};var i=n("../config/constants/layoutDataItemTypes"),s=n("./getDescendantIds"),o=n("./getResponsiveConfig"),d=n("./isRequiredFormInput");function isItemHidden(e,t,n){const i=null==e?void 0:e.items[t];if(!i)return!1;return"none"===(0,o.getResponsiveConfig)(i.config,n).styles.display||isItemHidden(e,i.parentId,n)}}}));
//# sourceMappingURL=hasRequiredInputChild.js.map