MetaLlamaVideoPostsWrapperImplementation.react",["CometErrorBoundary.react","CometErrorRoot.react","CometRelay","FBLogger","MCDSCMSCommonBox.react","MCDSFlexbox.react","MetaLlamaBlogCardImplementation.react","MetaLlamaPostTypesBlogrollImplementation.react","MetaLlamaPostTypesFeaturedSectionImplementation.react","MetaLlamaPostTypesUtils","MetaLlamaVideoPostsWrapperImplementationQuery.graphql","isTruthy","mcdsMargin","react","stylex","useMetaLlamaFeaturedPostsHelper.react"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c=u||(u=o("react")),d={flexJustifyCenter:{justifyContent:"xl56j7k",$$css:!0}},m=4,p="llama_video_posts_wrapper_query";function _(t){var a,i,l,u,_,f,g,h,y,C=c.Children.toArray(t.children).filter(function(e){var t;return(e==null||(t=e.type)==null?void 0:t.name)==="MCDSCMSCommonBackgroundColor"}),b=C==null||(a=C[0])==null||(a=a.props)==null?void 0:a.color,v;r("isTruthy")(C)&&C.forEach(function(e){var t;return(t=Array(o("MetaLlamaPostTypesUtils").getChildPropsChildren(e)))==null?void 0:t.flatMap(function(e){var t;(e==null||(t=e[0])==null||(t=t.type)==null?void 0:t.name)==="MetaLlamaPostTypesFeaturedSection"&&(v=e==null?void 0:e[0])})});var S=null;try{var R,L=v!=null?v:(R=c.Children.toArray(t.children))==null||(R=R.filter(function(e){var t,n;return((t=e==null||(n=e.type)==null?void 0:n.name)!=null?t:"")==="MetaLlamaPostTypesFeaturedSection"}))==null?void 0:R[0];S=L}catch(e){r("FBLogger")(p,"getFeaturedSection, unexpected null for video posts wrapper query in prod").info("message: "+String(e))}var E=(i=S)==null||(i=i.props)==null?void 0:i.children,k=E==null?void 0:E.filter(function(e){var t,n;return((t=e==null||(n=e.type)==null?void 0:n.name)!=null?t:"")==="MetaLlamaBlogCard"}),I=k==null?void 0:k.map(function(e){var t;return e==null||(t=e.props)==null?void 0:t.cardCtaType}),T=!r("isTruthy")(k),D,x,$,P;if(T){var N,M,w;P=E==null||(N=E[0])==null?void 0:N.props,$=(M=P)==null?void 0:M.children,D=E!=null?o("MetaLlamaPostTypesUtils").getCustomLayoutFeaturedCards(E[0]):null,x=(w=D)==null?void 0:w.map(function(e){var t,n;return Number((t=e==null||(n=e.props)==null?void 0:n.cmsid)!=null?t:0)})}var A=E==null?void 0:E.filter(function(e){var t;return(e==null||(t=e.type)==null?void 0:t.name)==="MetaLlamaBlogCard"}),F=A==null||(l=A.filter(function(e){var t;return(e==null||(t=e.type)==null?void 0:t.name)==="MetaLlamaBlogCard"}))==null?void 0:l.map(function(e){var t;return Number(e==null||(t=e.props)==null?void 0:t.cmsID)}),O=(u=D)==null?void 0:u.map(function(e){var t;return e==null||(t=e.props)==null?void 0:t.cardctatype}),B=null;try{var W,q=(W=c.Children.toArray(t.children))==null?void 0:W.filter(function(e){var t;return(e==null||(t=e.type)==null?void 0:t.name)==="MetaLlamaPostTypesBlogroll"})[0];B=q}catch(e){r("FBLogger")(p,"getBlogRoll, unexpected null for video posts wrapper query in prod").info("message: "+String(e))}var U=o("CometRelay").useLazyLoadQuery(e!==void 0?e:e=n("MetaLlamaVideoPostsWrapperImplementationQuery.graphql"),{}),V,H;if(T){var G,z,j;V=U==null||(G=U.xfb_llama_video_posts)==null||(G=G.nodes)==null?void 0:G.filter(function(e){var t;return(t=x)==null?void 0:t.includes(Number(e.cms_id))}),H=$!=null?c.jsx(r("MCDSFlexbox.react"),babelHelpers.extends({xstyle:d.flexJustifyCenter},P,{children:V&&((z=V)==null?void 0:z.map(function(e,t){var n,o,a,i,l,s;return c.createElement(r("MCDSCMSCommonBox.react"),babelHelpers.extends({className:(n=$)==null||(n=n[t])==null||(n=n.props)==null?void 0:n.className},(o=$)==null||(o=o[t])==null?void 0:o.props,{key:"box-"+t}),c.jsx(r("MetaLlamaBlogCardImplementation.react"),{cardCtaType:(a=(i=I==null?void 0:I[t])!=null?i:O==null?void 0:O[t])!=null?a:"icon-link",category:e==null?void 0:e.category,children:null,cmsID:(l=e==null?void 0:e.cms_id)!=null?l:"0",creationTime:String(e==null?void 0:e.creation_time),ctaURL:(s=e==null?void 0:e.url)!=null?s:"#",description:e==null?void 0:e.description,image:e==null?void 0:e.image,showEqualCardHeights:!0,title:e==null?void 0:e.title},t))}))})):V&&((j=V)==null?void 0:j.map(function(e,t){var n,o,a;return c.jsx(r("MetaLlamaBlogCardImplementation.react"),{cardCtaType:(n=I==null?void 0:I[t])!=null?n:"icon-link",category:e==null?void 0:e.category,children:null,cmsID:(o=e==null?void 0:e.cms_id)!=null?o:"0",creationTime:String(e==null?void 0:e.creation_time),ctaURL:(a=e==null?void 0:e.url)!=null?a:"#",description:e==null?void 0:e.description,image:e==null?void 0:e.image,title:e==null?void 0:e.title},t)}))}var K=(_=r("useMetaLlamaFeaturedPostsHelper.react")(U==null||(f=U.xfb_llama_video_posts)==null?void 0:f.nodes,x!=null?x:F))==null||(_=_.filter(function(e){return e!=null&&e!==void 0}))==null?void 0:_.slice(0,T?(g=x)==null?void 0:g.length:m),Q=U==null||(h=U.xfb_llama_video_posts)==null||(h=h.nodes)==null||(h=h.filter(function(e){return!K.includes(Number(e.cms_id))&&e!==void 0&&e!=null&&e}))==null?void 0:h.slice(0,m),X=Q==null?void 0:Q.map(function(e){return e.cms_id});return c.jsxs("div",{className:"x1lliihq",children:[c.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(r("mcdsMargin").bottom24),{children:S!=null&&(U==null||(y=U.xfb_llama_video_posts)==null?void 0:y.nodes)&&(T?H:c.jsx(r("CometErrorBoundary.react"),{fallback:function(){return c.jsx(r("CometErrorRoot.react"),{})},onError:function(t){r("FBLogger")(p,"Unexpected null for video posts wrapper featured section implementation").info(String(t))},children:c.jsx(r("MetaLlamaPostTypesFeaturedSectionImplementation.react"),{backgroundColor:b,cardCtaTypes:I,children:E,featuredPostIds:K,posts:U})}))})),B!=null&&t.children!=null&&c.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(r("mcdsMargin").all24),{children:c.Children.toArray(t.children).map(function(e,t){var n,r,o;return(e==null||(n=e.type)==null?void 0:n.name)!=="MCDSCMSCommonBackgroundColor"&&(e==null||(r=e.type)==null?void 0:r.name)!=="MetaLlamaPostTypesFeaturedSection"&&(e==null||(o=e.type)==null?void 0:o.name)!=="MetaLlamaPostTypesBlogroll"&&c.jsx("div",{className:"xdj266r x11t971q xat24cr xvc5jky x1os88jd",children:e},t)})})),B!=null&&U!=null&&c.jsx(r("CometErrorBoundary.react"),{fallback:function(){return c.jsx(r("CometErrorRoot.react"),{})},onError:function(t){r("FBLogger")(p,"Unexpected null for video posts wrapper blogroll section implementation").info(String(t))},children:c.jsx(r("MetaLlamaPostTypesBlogrollImplementation.react"),{children:null,featuredPostIds:K,latestPostIds:X==null?void 0:X.map(function(e){return Number(e)}),posts:U,showFeaturedSection:S!=null,showLatestSection:t.showLatestSection})})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),98);
-----
MetaLlamaVideoPostsWrapperImplementationQuery.graphql",["MetaLlamaVideoPostsWrapperImplementationQuery_facebookRelayOperation","relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:null,args:null,kind:"ScalarField",name:"all_blog_categories",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"category",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"cms_id",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"featured",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"image",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"is_published",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},m=[{kind:"Literal",name:"first",value:24}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MetaLlamaVideoPostsWrapperImplementationQuery",selections:[{alias:null,args:null,concreteType:"XFBLlamaVideoPostsConnection",kind:"LinkedField",name:"xfb_llama_video_posts",plural:!1,selections:[{alias:null,args:null,concreteType:"XLLMLlamaPostTypesSummary",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,t,r,o,a,i,l,s,u,c],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"MetaLlamaPostTypesFeaturedSectionImplementation_posts"},{args:null,kind:"FragmentSpread",name:"MetaLlamaPostTypesBlogrollImplementation_posts"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MetaLlamaVideoPostsWrapperImplementationQuery",selections:[{alias:null,args:null,concreteType:"XFBLlamaVideoPostsConnection",kind:"LinkedField",name:"xfb_llama_video_posts",plural:!1,selections:[{alias:null,args:null,concreteType:"XLLMLlamaPostTypesSummary",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,t,r,o,a,i,l,s,u,c,d],storageKey:null}],storageKey:null},{alias:"posts",args:m,concreteType:"XFBLlamaVideoPostsConnection",kind:"LinkedField",name:"xfb_llama_video_posts",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBLlamaVideoPostsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XLLMLlamaPostTypesSummary",kind:"LinkedField",name:"node",plural:!1,selections:[t,r,o,a,l,u,c,d,{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e,i,s],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null}],storageKey:null}],storageKey:"xfb_llama_video_posts(first:24)"},{alias:"posts",args:m,filters:null,handle:"connection",key:"MetaLlamaPostTypesFeaturedSectionImplementation__posts",kind:"LinkedHandle",name:"xfb_llama_video_posts"},{alias:"posts",args:m,filters:null,handle:"connection",key:"MetaLlamaPostTypesBlogrollImplementation__posts",kind:"LinkedHandle",name:"xfb_llama_video_posts"}]},params:{id:n("MetaLlamaVideoPostsWrapperImplementationQuery_facebookRelayOperation"),metadata:{},name:"MetaLlamaVideoPostsWrapperImplementationQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----
MetaLlamaVideoPostsWrapperImplementationQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="10008340469281986"}),null);
-----