MCDSCMSCommonLazyLoadableRefImplementationWithQueryLoader.react",["CMSLazyLoadableRefQPLContext","CometRelay","GalaxyCMSReactBlock.react","MCDSCMSCommonLazyLoadableRefImplementationWithQueryLoaderQuery.graphql","MCDSCMSCommonLazyLoadableRefPlaceholder.react","MCDSCMSCommonPageModuleLoggingContext.react","MCDSCommonRootTagSchemaRelayQueries","MDCCommonLazyLoadContext","MFBRootTagSchemaRelayQueries","Placeholder.react","clearTimeout","react","setTimeout","useMDCUrlAndReferrer"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useEffect,n=e.useMemo,o=e.useState;function p(a){var e=a.glimmerHeight,f=a.glimmerRows,g=a.glimmerWidth,i=a.isGlimmer,k=a.isLoading,l=a.onContentLoad;a=a.queryRef;a=d("CometRelay").usePreloadedQuery(h!==void 0?h:h=b("MCDSCMSCommonLazyLoadableRefImplementationWithQueryLoaderQuery.graphql"),a);a=a.xmdc_cms_content_by_id;var o=a==null?void 0:a.cms_content,p=a==null?void 0:a.root_tag,q=d("CometRelay").useFragment(c("MFBRootTagSchemaRelayQueries"),o),r=d("CometRelay").useFragment(c("MCDSCommonRootTagSchemaRelayQueries"),o);a=n(function(){switch(p){case"mcds":return r;case"mfb":return q;default:return void 0}},[q,r,p]);m(function(){o!=null&&l()},[l,o]);return k?j.jsx(c("MCDSCMSCommonLazyLoadableRefPlaceholder.react"),{glimmerHeight:e,glimmerRows:f,glimmerWidth:g,isGlimmer:i}):o!=null?j.jsx(c("GalaxyCMSReactBlock.react"),{content:o,dataQueries:a,referenceMappings:[]}):j.jsx(j.Fragment,{})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=a.glimmerHeight,e=a.glimmerRows,f=a.glimmerWidth,g=a.isGlimmer,h=a.lazyLoadContentID,i=a.refID;a=c("useMDCUrlAndReferrer")();var n=a.url;a=l(c("MCDSCMSCommonPageModuleLoggingContext.react"));var q=a.setLazyContentLoadedStatus;a=l(c("MDCCommonLazyLoadContext"));var r=a.lazyLoadDelay;a=l(c("CMSLazyLoadableRefQPLContext"));var s=a.tracePolicy;a=o(!0);var t=a[0],u=a[1];a=d("CometRelay").useQueryLoader(c("MCDSCMSCommonLazyLoadableRefImplementationWithQueryLoaderQuery.graphql"));var v=a[0],w=a[1];m(function(){u(!0);if(r!=null){var a=c("setTimeout")(function(){w({refID:i,requesterURI:n,tracePolicy:s,galaxyCometSource:"LAZY_LOAD_MODULE"})},r);return function(){return c("clearTimeout")(a)}}else w({refID:i,requesterURI:n,tracePolicy:s})},[i,r,w,s,n]);a=k(function(){u(!1),q(h,!0)},[h,q]);return v==null?j.jsx(c("MCDSCMSCommonLazyLoadableRefPlaceholder.react"),{glimmerHeight:b,glimmerRows:e,glimmerWidth:f,isGlimmer:g}):j.jsx(c("Placeholder.react"),{fallback:j.jsx(c("MCDSCMSCommonLazyLoadableRefPlaceholder.react"),{glimmerHeight:b,glimmerRows:e,glimmerWidth:f,isGlimmer:g}),children:j.jsx(p,{glimmerHeight:b,glimmerRows:e,glimmerWidth:f,isGlimmer:g,isLoading:t,queryRef:v,onContentLoad:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MCDSCMSCommonLazyLoadableRefImplementationWithQueryLoaderQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24603066862718253"}),null);
-----
-----
MCDSCMSCommonLazyLoadableRefImplementationWithQueryLoaderQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24603066862718253"}),null);
-----