;/*FB_PKG_DELIM*/

__d("StoriesTrayTileContentV2.react",["ix","CometBackgroundImage.react","CometColumn.react","CometColumnItem.react","CometRelay","FDSTextPairing.react","StoriesRatioBox.react","TetraIcon.react","TetraText.react","fbicon","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={background:{transformOrigin:"x1g0ag68",transitionDuration:"xx6bhzk",transitionProperty:"x11xpdln",transitionTimingFunction:"xcj1dhv",$$css:!0},backgroundFocused:{transform:"x1nhozj7",$$css:!0},full:{bottom:"x1ey2m1c",boxSizing:"x9f619",end:"xds687c",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",$$css:!0},overlayContainer:{height:"x5yr21d",width:"xh8yej3",$$css:!0}};function a(a){var b=a.aspectRatioReal,e=a.avatarInteractable,f=a.backgroundColor,g=a.bucketUrl,j=a.coverImage,m=a.coverImageNullElement,n=a.isSmall,o=a.likeCount,p=a.metaText,q=a.numLines,r=a.playCount,s=a.pressableState,t=a.text,u=a.tileAvatar,v=a.tilePadding,w=a.title,x=a.videoAutoplayWrapper;a=a.warningScreen;var y=w!=null,z=t!=null&&w==null,A=r!=null,B=o!=null&&o!=="0",C=!y&&!z&&!A&&!B;s=(s=(s==null?void 0:s.hovered)||(s==null?void 0:s.focused)&&(s==null?void 0:s.focusVisible))!=null?s:!1;return k.jsxs(c("StoriesRatioBox.react"),{height:1,width:(b=b)!=null?b:1,children:[j!=null?k.jsxs("div",{className:(i||(i=c("stylex")))(l.background,s&&l.backgroundFocused,l.full),style:{backgroundColor:f},children:[x!=null?x:k.jsx(c("CometBackgroundImage.react"),{src:j}),a!=null&&k.jsx("div",{className:"x1ey2m1c x9f619 xds687c x10l6tqk x17qophe x13vifvy x1ja2u2z",children:k.jsx(d("CometRelay").MatchContainer,{match:a,props:{alwaysShowCoverComponent:!0,alwaysShowDetails:!1,alwaysUseSmallLayout:!0,data:a,mediaUri:(b=j)!=null?b:"",surface:"story_tray",url:g}})})]}):m,k.jsxs(c("CometColumn.react"),{paddingHorizontal:0,paddingVertical:0,xstyle:l.overlayContainer,children:[k.jsx(c("CometColumnItem.react"),{expanding:!0,children:k.jsx("div",{className:"xnt7nc8",children:!e&&u!=null?u:null})}),k.jsx(c("CometColumnItem.react"),{children:k.jsx("div",{className:C?null:"x1vf6whn x123ep6o"})}),k.jsx(c("CometColumnItem.react"),{children:k.jsxs("div",{className:C?null:"x1sag07j",children:[y?k.jsx("div",{className:"x6s0dn4 x9f619 x78zum5 x1yc453h xh8yej3 x47corl xnt7nc8",style:babelHelpers["extends"]({},v,{paddingTop:0}),children:k.jsx(c("FDSTextPairing.react"),{headline:w,headlineColor:"primaryOnMedia",level:4,meta:t,metaColor:"primaryOnMedia"})}):null,z?k.jsx("div",{className:"x9f619 x1yc453h xh8yej3 x47corl xnt7nc8",style:babelHelpers["extends"]({},v,{paddingTop:0}),children:k.jsx(c("FDSTextPairing.react"),{body:k.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:q,testid:void 0,type:n?"bodyLink4":"bodyLink3",children:t}),level:4,meta:p,metaColor:"secondaryOnMedia",metaLineLimit:1,metaLocation:"above"})}):null,A?k.jsxs("div",{className:"x6s0dn4 x9f619 x78zum5 xsag5q8 xurb0ha x1yc453h xh8yej3",children:[k.jsx("div",{className:"xnt7nc8 x78zum5",children:k.jsx(c("TetraIcon.react"),{color:"white",icon:d("fbicon")._(h("484861"),12)})}),k.jsx("div",{className:"x1e558r4 xnt7nc8",children:k.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"bodyLink4",children:r})})]}):null,B?k.jsxs("div",{className:"x6s0dn4 x9f619 x78zum5 xsag5q8 xurb0ha x1yc453h xh8yej3",children:[k.jsx("div",{className:"xnt7nc8 x78zum5",children:k.jsx(c("TetraIcon.react"),{color:"white",icon:d("fbicon")._(h("509920"),12)})}),k.jsx("div",{className:"x1e558r4 xnt7nc8",children:k.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"bodyLink4",children:o})})]}):null]})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("StoriesTrayTileView_LWRAnimations.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoriesTrayTileView_LWRAnimations",selections:[{args:null,kind:"FragmentSpread",name:"StoriesTrayTileReactionIconWrapper_LWRAnimations"}],type:"Viewer",abstractKey:null};e.exports=a}),null);
__d("StoriesTrayTileView_warningScreen.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"StoriesTrayTileView_warningScreen",selections:[{args:null,documentName:"StoriesTrayTileView_warningScreen",fragmentName:"CometWarningScreenOverlay_data",fragmentPropName:"data",kind:"ModuleImport"}],type:"OverlayWarningScreenViewModel",abstractKey:null};e.exports=a}),null);
__d("cometValidateAsElementRect",[],(function(a,b,c,d,e,f){"use strict";function a(a){return typeof a==="object"?{bottom:typeof (a==null?void 0:a.bottom)==="number"?a.bottom:0,height:typeof (a==null?void 0:a.height)==="number"?a.height:0,left:typeof (a==null?void 0:a.left)==="number"?a.left:0,right:typeof (a==null?void 0:a.right)==="number"?a.right:0,top:typeof (a==null?void 0:a.top)==="number"?a.top:0,width:typeof (a==null?void 0:a.width)==="number"?a.width:0}:{bottom:0,height:0,left:0,right:0,top:0,width:0}}f["default"]=a}),66);
__d("StoriesTrayTileView.react",["CometPressable.react","CometRelay","StoriesConstants","StoriesGating","StoriesTrayTileView_LWRAnimations.graphql","StoriesTrayTileView_warningScreen.graphql","TopOfFeedLoggingContext","cometValidateAsElementRect","cr:5063","cr:6579","qex","react","requireDeferred","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.useContext,n=e.useRef,o=c("requireDeferred")("ODS").__setRef("StoriesTrayTileView.react"),p=12,q=8,r=46,s={avatarWrapper:{position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",$$css:!0},boxShadow:{boxShadow:"x2pq9lr",$$css:!0},button:{appearance:"xjyslct",backgroundColor:"xjbqb8w",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x972fbf",borderEndWidth:"xcfux6l",borderBottomWidth:"x1qhh985",borderStartWidth:"xm0m39n",boxSizing:"x9f619",display:"x1lliihq",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",position:"x1n2onr6",textAlign:"x16tdsg8",width:"xh8yej3",zIndex:"x1ja2u2z",":active_transform":"xk4oym4",$$css:!0},buttonFocused:{filter:"x14xfefy",$$css:!0},emptyCoverImageFilter:{backgroundImage:"xxj740w",$$css:!0},full:{bottom:"x1ey2m1c",boxSizing:"x9f619",end:"xds687c",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",$$css:!0},light:{opacity:"xbyyjgo",$$css:!0},pointerEventsNone:{pointerEvents:"x47corl",$$css:!0},tile:{backgroundColor:"x1qhmfi1",borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}},t=function(a){var b=a.showOutline?l.jsx("div",{className:"x1a2cdl4 xnhgr82 x1qt0ttw xgk8upj x1ey2m1c xlg9a9y x9f619 xds687c x47corl x10l6tqk x17qophe x13vifvy"}):null;return l.jsxs("div",{className:"x1n2onr6",children:[a.children,b]})};function a(a){var e=a.animations,f=a.avatar,g=a.avatarInteractable,k=g===void 0?!1:g,u=a.backgroundColor,v=a.bucketUrl;g=a.canViewerReply;g=g===void 0?!1:g;var w=a.coverImage,x=a.disabled,y=a.disablePreloadOnMouseHover,z=a.disablePreloadOnRender;a.gender;a.hasNew;var A=a.hasReactionIcon;A=A===void 0?!1:A;var B=a.isUploading;B=B===void 0?!1:B;var C=a.label,D=a.metaText,E=a.onPress,F=a.onPressIn,G=a.passthroughProps,H=a.storyId,I=a.text,J=a.warningScreenNode,K=a.aspectRatio,L=K===void 0?d("StoriesConstants").DEFAULT_ASPECT_RATIO:K;K=a.numLines;var M=a.showOutline;M=M===void 0?!1:M;var N=a.showShadow,O=N===void 0?!0:N;N=a.small;N=N===void 0?!1:N;a=a.theme;a=a===void 0?"dark":a;var P=(K=K)!=null?K:2,Q=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesTrayTileView_warningScreen.graphql"),J);K=d("StoriesGating").shouldUseCompartmentStoriesTiles();J=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesTrayTileView_LWRAnimations.graphql"),e);e=m(c("TopOfFeedLoggingContext"));e=e.tofuSessionID;var R={padding:N?q:p},S=A?{padding:N?q:p,paddingRight:r}:R,T=f!=null?l.jsx("div",{className:(j||(j=c("stylex")))(s.avatarWrapper,!k&&s.pointerEventsNone),style:R,children:f}):null,U=n(null),V=l.jsx("div",{className:(j||(j=c("stylex")))(B&&s.emptyCoverImageFilter,s.full)});N=b("cr:6579")!=null&&g?l.jsx("div",{className:"x1ey2m1c xds687c x1y1aw1k x1sxyh0 xwib8y2 xurb0ha x10l6tqk",children:l.jsx(b("cr:6579"),{animations:J,storyId:H})}):null;var W=function(a){return l.jsx(b("cr:5063"),{aspectRatioReal:L,avatarInteractable:k,backgroundColor:u,bucketUrl:v,coverImage:w,coverImageNullElement:V,isSmall:!0,metaText:D,numLines:P,pressableState:a,text:I,tileAvatar:T,tilePadding:S,warningScreen:Q})};if(v!=null||E!=null){R=babelHelpers["extends"]({},G,{getTilePosition:function(){var a;return c("cometValidateAsElementRect")((a=U.current)==null?void 0:a.getBoundingClientRect())},tofuTraySessionID:e});B=(f=c("qex")._("1496"))!=null?f:z;var X={passthroughProps:R,prefetchQueriesOnHover:y!==!0,preloadCodeOnMount:B!==!0,traceParams:{navigation_source:"stories_tray_tile"},url:v},Y=function(a){o.onReady(function(a){a.bumpEntityKey(4329,"fb_stories_web","stories_tray_pog_click",1)}),E&&E(a)};g=function(a,b){a===void 0&&(a=null);return l.jsx(c("CometPressable.react"),{disabled:x,display:"inline",label:C!=null?C:void 0,linkProps:X,onPress:function(a){Y(a),b&&b()},onPressIn:F,overlayDisabled:!0,ref:a,suppressHydrationWarning:!0,xstyle:function(a){var b=a.focused,c=a.focusVisible;a=a.hovered;return[s.tile,s.button,(a||b&&c)&&s.buttonFocused,O&&s.boxShadow]},children:W})};return l.jsx("div",{ref:U,children:l.jsxs(t,{showOutline:K===!0?!0:M,children:[g(),k?T:null,A?N:null]})})}else return l.jsx(t,{showOutline:K===!0?!0:M,children:l.jsxs("div",{className:(j||(j=c("stylex")))(s.tile,O&&s.boxShadow,a==="light"&&s.light),children:[W(),k?T:null,A?N:null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("StoriesTrayUtils",["StoriesLoggingConstants","XCometStoriesControllerRouteBuilder"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.bucketID,d=a.cardID,e=a.bucketCount,f=a.source;f=f===void 0?c("StoriesLoggingConstants").ACTION_SOURCE.TRAY:f;a=a.viewSingle;a=a!=null?a:f===c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_SURFACE;var g=null;a?g={bucket_count:e,bucket_id:b,card_id:d===null?void 0:d,source:f,view_single:!0}:g={bucket_count:e,bucket_id:b,card_id:d===null?void 0:d,source:f};return c("XCometStoriesControllerRouteBuilder").buildURL(g)}g.getBucketURL=a}),98);