Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.130/page_editor/app/utils/useHasRequiredChild",["module","exports","require","liferay!frontend-js-react-web$react","../contexts/GlobalContext","../contexts/StoreContext","../selectors/selectFormConfiguration","../services/FormService","./cache","./hasRequiredInputChild","./hasVisibleSubmitChild","./useCache"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,l.useGlobalContext)(),a=(0,o.useSelectorRef)((e=>e.layoutData)),f=(0,o.useSelectorRef)((e=>e.fragmentEntryLinks)),C=(0,o.useSelectorCallback)((t=>{var a;return(0,s.default)(null===(a=t.layoutData)||void 0===a?void 0:a.items[e],t.layoutData)}),[e]),{classNameId:m,classTypeId:y}=C,h=(0,d.default)({fetcher:()=>i.default.getFormFields({classNameId:m,classTypeId:y}),key:[u.CACHE_KEYS.formFields,m,y]});return(0,r.useCallback)((()=>!!h&&((0,c.default)(e,t)||(0,n.default)({formFields:h,fragmentEntryLinks:f.current,itemId:e,layoutData:a.current}))),[h,a,f,e,t])};var r=a("liferay!frontend-js-react-web$react"),l=a("../contexts/GlobalContext"),o=a("../contexts/StoreContext"),s=f(a("../selectors/selectFormConfiguration")),i=f(a("../services/FormService")),u=a("./cache"),n=f(a("./hasRequiredInputChild")),c=f(a("./hasVisibleSubmitChild")),d=f(a("./useCache"));function f(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=useHasRequiredChild.js.map