;/*FB_PKG_DELIM*/

__d("IGDChatTabMessageNotificationOffMsys.react",["fbt","BaseImage.react","IGDChatTabsEnv","IGDFallbackProfileUrl","IGDSAvatar.react","IGDSBox.react","IGDSTextVariants.react","IGDThreadListNewMessageLoggingDataContext","MessengerWebUXLogger","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=60,d="x1vd4nto-B",m={fadeIn:{animationDuration:"xs4xyr0",animationName:"x1rp1485",animationTimingFunction:"x4hg4is",$$css:!0},mediaPreview:{borderStartStartRadius:"xjwep3j",borderStartEndRadius:"x1t39747",borderEndEndRadius:"x1wcsgtt",borderEndStartRadius:"x1pczhz8",objectFit:"xl1xv1r",$$css:!0},messageBox:{flexBasis:"x1t1x2f9",flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",$$css:!0},root:{backgroundColor:"x7r02ix",borderStartStartRadius:"x6nl9eh",borderStartEndRadius:"x1a5l9x9",borderEndEndRadius:"x7vuprf",borderEndStartRadius:"x1mg3h75",boxShadow:"x1wp8tw6",zIndex:"x1vjfegm",":hover_backgroundColor":"x2nact",$$css:!0}};function p(e){var t=o("react-compiler-runtime").c(31),n=e.previewData,a=o("IGDThreadListNewMessageLoggingDataContext").useFlowInstanceIdContext(),i;t[0]!==a?(i={eventName:"igd_chat_tabs_notification",flowInstanceId:a},t[0]=a,t[1]=i):i=t[1];var l=r("MessengerWebUXLogger").useImpressionLoggerRef(i),d=n.groupSubtitle,p=n.mediaPreviewSrc,_=n.message,f=n.senderImageSrc,g=n.senderName,h=d!=null,y;t[2]===Symbol.for("react.memo_cache_sentinel")?(y=[m.root,m.fadeIn],t[2]=y):y=t[2];var C;t[3]===Symbol.for("react.memo_cache_sentinel")?(C=s._(/*BTDS*/"Instagram Avatar Profile Picture"),t[3]=C):C=t[3];var b=f!=null?f:o("IGDFallbackProfileUrl").FALLBACK_PROFILE_PIC_URL,v;t[4]!==b?(v=u.jsx(r("IGDSBox.react"),{margin:3,children:u.jsx(r("IGDSAvatar.react"),{alt:C,size:"large",src:b})}),t[4]=b,t[5]=v):v=t[5];var S;t[6]!==g?(S=g!=null?g:s._(/*BTDS*/"Instagram User"),t[6]=g,t[7]=S):S=t[7];var R;t[8]!==S?(R=u.jsx(r("IGDSBox.react"),{children:u.jsx(o("IGDSTextVariants.react").IGDSTextBodyEmphasized,{maxLines:1,textAlign:"start",zeroMargin:!0,children:S})}),t[8]=S,t[9]=R):R=t[9];var L;t[10]!==d||t[11]!==h?(L=h&&u.jsx(r("IGDSBox.react"),{marginTop:1,width:"100%",children:u.jsx(o("IGDSTextVariants.react").IGDSTextBodyEmphasized,{maxLines:1,textAlign:"start",zeroMargin:!0,children:d})}),t[10]=d,t[11]=h,t[12]=L):L=t[12];var E=h?1:2,k;t[13]!==_?(k=_!=null?_:s._(/*BTDS*/"Sent a message."),t[13]=_,t[14]=k):k=t[14];var I;t[15]!==k||t[16]!==E?(I=u.jsx(r("IGDSBox.react"),{marginTop:1,width:"100%",children:u.jsx(o("IGDSTextVariants.react").IGDSTextBody,{color:"secondaryText",maxLines:E,textAlign:"start",zeroMargin:!0,children:k})}),t[15]=k,t[16]=E,t[17]=I):I=t[17];var T;t[18]!==I||t[19]!==R||t[20]!==L?(T=u.jsxs(r("IGDSBox.react"),{direction:"column",height:"100%",justifyContent:"center",marginEnd:3,overflow:"hidden",paddingY:3,xstyle:m.messageBox,children:[R,L,I]}),t[18]=I,t[19]=R,t[20]=L,t[21]=T):T=t[21];var D;t[22]!==p?(D=p!=null&&u.jsx(r("IGDSBox.react"),{padding:4,children:u.jsx(r("BaseImage.react"),{height:c,src:p,width:c,xstyle:m.mediaPreview})}),t[22]=p,t[23]=D):D=t[23];var x;t[24]!==T||t[25]!==D||t[26]!==v?(x=u.jsxs(r("IGDSBox.react"),{alignItems:"center",direction:"row",height:o("IGDChatTabsEnv").NOTIFICATION_HEIGHT,overflow:"hidden",width:o("IGDChatTabsEnv").NOTIFICATION_WIDTH,xstyle:y,children:[v,T,D]}),t[24]=T,t[25]=D,t[26]=v,t[27]=x):x=t[27];var $;return t[28]!==l||t[29]!==x?($=u.jsx(r("IGDSBox.react"),{containerRef:l,children:x}),t[28]=l,t[29]=x,t[30]=$):$=t[30],$}l.default=p}),226);
__d("IGDChatTabMessageNotificationUtilsOffMsys",["fbt","IGDGetThread","relay-runtime/store/RelayModernRecord"],(function(t,n,r,o,a,i,l,s){"use strict";var e;function u(e,t,n,r,o,a,i,l,s){return!(n||e===t||r<o||(s==null?void 0:s.has(a))===!0||l!=="INBOX"||i)}function c(e,t,n,r,o,a,i,l){return!(e===t||r<o||(l==null?void 0:l.has(a))===!0||i||n==null||n===e||n!==t)}function d(e){return e==="\u2764"?s._(/*BTDS*/"Liked your message"):s._(/*BTDS*/"Reacted {emoji} to your message",[s._param("emoji",e)])}function m(t,n,a){var i=t.getStore().getSource().get(o("IGDGetThread").GetXFBIGDirectViewerThreadDataID(n));if(i==null)return null;var l=(e||(e=r("relay-runtime/store/RelayModernRecord"))).getValue(i,"is_group")===!0;if(!l)return null;var s=e.getValue(i,"thread_title"),u=t.getStore().getSource(),c=e.getLinkedRecordIDs(i,"users"),d=[],m=[];if(c!=null){for(var _ of c)if(_!=null){var f=u.get(_);if(f!=null){var g=(e||(e=r("relay-runtime/store/RelayModernRecord"))).getValue(f,"full_name"),h=e.getValue(f,"id");g!=null&&h!=null&&(d.push(String(g)),m.push(String(h)))}}}return p(typeof s=="string"?s:null,d,a,m)}function p(e,t,n,r){if(e!=null&&e!=="")return s._(/*BTDS*/"To {subtitle}",[s._param("subtitle",e)]);for(var o=["you"],a=0;a<t.length;a++)r[a]!==n&&o.push(t[a]);if(o.length<=1)return null;var i;if(o.length<=3)i=o.join(", ").replace(/,([^,]*)$/," &$1");else{var l=o.length-2;i=o[0]+", "+o[1]+", & "+String(l)+" others"}return s._(/*BTDS*/"To {subtitle}",[s._param("subtitle",i)])}l.shouldRenderChatTabMessageNotificationOffMsys=u,l.shouldRenderChatTabReactionNotificationOffMsys=c,l.getReactionPreviewTextOffMsys=d,l.computeGroupSubtitleFromStoreOffMsys=m}),226);
__d("IGDChatTabsQPLInstanceKeyContext.react",["emptyFunction","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e,c=u.createContext,d=u.useContext,m=u.useMemo,p=u.useState,_=c({setThreadListKey:r("emptyFunction"),setThreadViewKey:r("emptyFunction"),threadListKey:0,threadViewKeys:{}});function f(e){var t=o("react-compiler-runtime").c(10),n=e.children,r=p(0),a=r[0],i=r[1],l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={},t[0]=l):l=t[0];var u=p(l),c=u[0],d=u[1],m;t[1]!==c?(m=function(t,n){var e;d(babelHelpers.extends({},c,(e={},e[t]=n,e)))},t[1]=c,t[2]=m):m=t[2];var f;t[3]!==m||t[4]!==a||t[5]!==c?(f={setThreadListKey:i,setThreadViewKey:m,threadListKey:a,threadViewKeys:c},t[3]=m,t[4]=a,t[5]=c,t[6]=f):f=t[6];var g=f,h;return t[7]!==n||t[8]!==g?(h=s.jsx(_.Provider,{value:g,children:n}),t[7]=n,t[8]=g,t[9]=h):h=t[9],h}function g(){return d(_)}l.IGDChatTabsQPLInstanceKeyContextProvider=f,l.useIGDChatTabsQPLInstanceKeyContext=g}),98);
__d("useAddToNotificationQueueOffMsys",["IGDChatTabsStateContext.react","react","react-compiler-runtime","setTimeout"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(e||(e=o("react"))).useCallback,u=5e3;function c(){var e=o("react-compiler-runtime").c(2),t=o("IGDChatTabsStateContext.react").useIGDChatTabsDispatch(),n;return e[0]!==t?(n=function(n){t==null||t({notification:n,type:"push_notification_off_msys"}),r("setTimeout")(function(){t==null||t({messageId:n.messageId,type:"clear_notification_off_msys"})},u)},e[0]=t,e[1]=n):n=e[1],n}l.default=c}),98);
__d("useSubscribeToMessagesOffMsys",["CurrentUser","IGDChatTabMessageNotificationUtilsOffMsys","IGDChatTabsStateContext.react","IGDGetThread","getIGDNotificationEventEmitter","react","react-compiler-runtime","react-relay","relay-runtime/store/RelayModernRecord","useAddToNotificationQueueOffMsys","useServerTime"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=u.useCallback,d=u.useEffect;function m(){var t=o("react-compiler-runtime").c(8),n=o("react-relay").useRelayEnvironment(),a=o("IGDChatTabsStateContext.react").useIGDChatTabsState(),i=r("useAddToNotificationQueueOffMsys")(),l=a==null?void 0:a.openedTabs,s=r("useServerTime")(),u;t[0]!==i||t[1]!==n||t[2]!==l||t[3]!==s?(u=function(a){var t=r("CurrentUser").getEIMU(),u=n.getStore().getSource().get(o("IGDGetThread").GetXFBIGDirectViewerThreadDataID(a.threadFbid)),c=u!=null?(e||(e=r("relay-runtime/store/RelayModernRecord"))).getValue(u,"is_muted")===!0:!1,d=u!=null?(e||(e=r("relay-runtime/store/RelayModernRecord"))).getValue(u,"system_folder"):null,m=typeof d=="string"?d:null,p=o("IGDChatTabMessageNotificationUtilsOffMsys").shouldRenderChatTabMessageNotificationOffMsys(a.senderFbid,t,!1,Number(a.timestampMs),s.valueOf(),a.threadFbid,c,m,l);if(p){var _,f,g=o("IGDChatTabMessageNotificationUtilsOffMsys").computeGroupSubtitleFromStoreOffMsys(n,a.threadFbid,t),h={groupSubtitle:g,mediaPreviewSrc:a.mediaPreviewSrc,message:a.textBody,messageId:a.messageId,senderImageSrc:(_=a.senderProfilePicUrl)!=null?_:void 0,senderName:(f=a.senderName)!=null?f:void 0,threadKey:a.threadFbid,timestampMs:a.timestampMs};i(h)}},t[0]=i,t[1]=n,t[2]=l,t[3]=s,t[4]=u):u=t[4];var c=u,m,p;t[5]!==c?(m=function(){var e=r("getIGDNotificationEventEmitter")().addListener("newMessage",c);return(function(){e.remove()})},p=[c],t[5]=c,t[6]=m,t[7]=p):(m=t[6],p=t[7]),d(m,p)}l.default=m}),98);
__d("useSubscribeToReactionsOffMsys",["CurrentUser","IGDChatTabMessageNotificationUtilsOffMsys","IGDChatTabsStateContext.react","IGDGetThread","getIGDNotificationEventEmitter","react","react-compiler-runtime","react-relay","relay-runtime/store/RelayModernRecord","useAddToNotificationQueueOffMsys","useServerTime"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=u.useCallback,d=u.useEffect;function m(){var t=o("react-compiler-runtime").c(8),n=o("react-relay").useRelayEnvironment(),a=o("IGDChatTabsStateContext.react").useIGDChatTabsState(),i=r("useAddToNotificationQueueOffMsys")(),l=a==null?void 0:a.openedTabs,s=r("useServerTime")(),u;t[0]!==i||t[1]!==n||t[2]!==l||t[3]!==s?(u=function(a){var t=r("CurrentUser").getEIMU(),u=Number(a.reactionTimestampMs),c=n.getStore().getSource().get(o("IGDGetThread").GetXFBIGDirectViewerThreadDataID(a.threadFbid)),d=c!=null?(e||(e=r("relay-runtime/store/RelayModernRecord"))).getValue(c,"is_muted")===!0:!1,m=o("IGDChatTabMessageNotificationUtilsOffMsys").shouldRenderChatTabReactionNotificationOffMsys(a.reactorFbid,t,a.reactedToMessageSenderFbid,u,s.valueOf(),a.threadFbid,d,l);if(m){var p=n.getStore().getSource(),_=null,f=null;if(c!=null){var g=(e||(e=r("relay-runtime/store/RelayModernRecord"))).getLinkedRecordIDs(c,"users");if(g!=null){for(var h of g)if(h!=null){var y=p.get(h);if(y!=null&&String((e||(e=r("relay-runtime/store/RelayModernRecord"))).getValue(y,"id"))===a.reactorFbid){var C,b;_=String((C=(e||(e=r("relay-runtime/store/RelayModernRecord"))).getValue(y,"full_name"))!=null?C:"")||null,f=String((b=(e||(e=r("relay-runtime/store/RelayModernRecord"))).getValue(y,"profile_pic_url"))!=null?b:"")||null;break}}}}var v=o("IGDChatTabMessageNotificationUtilsOffMsys").getReactionPreviewTextOffMsys(a.emoji),S={groupSubtitle:null,mediaPreviewSrc:null,message:v,messageId:a.messageId,senderImageSrc:f!=null?f:void 0,senderName:_!=null?_:void 0,threadKey:a.threadFbid,timestampMs:String(u)};i(S)}},t[0]=i,t[1]=n,t[2]=l,t[3]=s,t[4]=u):u=t[4];var c=u,m,p;t[5]!==c?(m=function(){var e=r("getIGDNotificationEventEmitter")().addListener("newReaction",c);return(function(){e.remove()})},p=[c],t[5]=c,t[6]=m,t[7]=p):(m=t[6],p=t[7]),d(m,p)}l.default=m}),98);
__d("useSubscribeToNotificationsOffMsys",["useSubscribeToMessagesOffMsys","useSubscribeToReactionsOffMsys"],(function(t,n,r,o,a,i,l){"use strict";function e(){r("useSubscribeToMessagesOffMsys")(),r("useSubscribeToReactionsOffMsys")()}l.default=e}),98);
__d("IGDChatTabMessageNotificationsContainerOffMsys.react",["CometPressable.react","IGDChatTabMessageNotificationOffMsys.react","IGDChatTabSingleContainerStyles","IGDChatTabsEnv","IGDChatTabsJewelStyles","IGDChatTabsQPLInstanceKeyContext.react","IGDChatTabsStateContext.react","IGDChatTabsStateTypes","IGDSBox.react","IGDSThemeConstantsHelpers","IGDThreadListNewMessageLoggingDataContext","MessengerWebUXLogger","QuickPerformanceLogger","Random","loadIGDChatTabEntryPoint","qpl","react","react-compiler-runtime","useCometRelayEntrypointContextualEnvironmentProvider","useIGDOpenChatTab.react","usePolarisIsSmallScreen","useSubscribeToNotificationsOffMsys"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=s.useCallback,d={chatTabsClosedRoot:{bottom:"xrsf3xo",$$css:!0},chatTabsOpenRoot:{bottom:"xqxrpsi",$$css:!0},mobileNavRoot:{marginBottom:"xp13qc",$$css:!0},pressableContainer:{borderStartStartRadius:"x6nl9eh",borderStartEndRadius:"x1a5l9x9",borderEndEndRadius:"x7vuprf",borderEndStartRadius:"x1mg3h75",$$css:!0},root:{insetInlineEnd:"x145d82y",left:null,right:null,position:"xixxii4",rowGap:"x3pnbk8",zIndex:"x1vjfegm",$$css:!0}},m=3,p=o("IGDSThemeConstantsHelpers").getNumericValue("revamp-nav-bottom-toolbar-height");function _(){var t,n,a=o("react-compiler-runtime").c(24),i=o("IGDChatTabsStateContext.react").useIGDChatTabsDispatch(),l=o("IGDChatTabsStateContext.react").useIGDChatTabsState(),s=r("usePolarisIsSmallScreen")(),c=l==null?void 0:l.notificationsOffMsys,_=(l==null?void 0:l.activeView)!=null;r("useSubscribeToNotificationsOffMsys")();var f=o("IGDThreadListNewMessageLoggingDataContext").useFlowInstanceIdContext(),g=o("IGDChatTabsQPLInstanceKeyContext.react").useIGDChatTabsQPLInstanceKeyContext(),h=r("MessengerWebUXLogger").useInteractionLogger(),y=_?o("IGDChatTabsStateTypes").IGDChatTabsMessagingInitiationSource.NotificationWithTabOpen:o("IGDChatTabsStateTypes").IGDChatTabsMessagingInitiationSource.NotificationWithJewel,C=r("useIGDOpenChatTab.react")(),b;a[0]!==i||a[1]!==f||a[2]!==y||a[3]!==h||a[4]!==C||a[5]!==g?(b=function(n){C(n.threadKey,y),i==null||i({messageId:n.messageId,type:"clear_notification"}),h==null||h({eventName:"igd_chat_tabs_notification_clicked",flowInstanceId:f});var t=g.threadViewKeys[n.threadKey]==null,a=o("Random").uint32();g.setThreadViewKey(n.threadKey,a),(e||(e=r("QuickPerformanceLogger"))).markerStart(r("qpl")._(882771792,"2790"),a),e.markerAnnotate(r("qpl")._(882771792,"2790"),{bool:{isFirstLoad:t},string:{trigger:"notification"}},{instanceKey:a})},a[0]=i,a[1]=f,a[2]=y,a[3]=h,a[4]=C,a[5]=g,a[6]=b):b=a[6];var v=b,S=(t=(n=document.documentElement)==null?void 0:n.clientHeight)!=null?t:0,R=(_?o("IGDChatTabsEnv").CHAT_TAB_HEIGHT+o("IGDChatTabSingleContainerStyles").CHAT_TAB_CONTAINER_MARGIN:o("IGDChatTabsJewelStyles").JEWEL_SIZE+o("IGDChatTabsJewelStyles").JEWEL_MARGIN)+(s?p:0),L=Math.min(Math.floor((S-R)/(o("IGDChatTabsEnv").NOTIFICATION_HEIGHT+o("IGDChatTabsEnv").NOTIFICATION_ROW_GAP)),m),E=r("useCometRelayEntrypointContextualEnvironmentProvider")(),k;a[7]!==E?(k=function(t){r("loadIGDChatTabEntryPoint")(E,t)},a[7]=E,a[8]=k):k=a[8];var I=k;if(c==null||c.size===0||L===0)return null;var T=s&&d.mobileNavRoot,D=_?d.chatTabsOpenRoot:d.chatTabsClosedRoot,x;a[9]!==T||a[10]!==D?(x=[d.root,T,D],a[9]=T,a[10]=D,a[11]=x):x=a[11];var $;a[12]!==c?($=Array.from(c.values()),a[12]=c,a[13]=$):$=a[13];var P;a[14]!==L||a[15]!==$?(P=$.slice(-L),a[14]=L,a[15]=$,a[16]=P):P=a[16];var N;a[17]!==v||a[18]!==I||a[19]!==P?(N=P.map(function(e,t){return u.jsx(r("CometPressable.react"),{expanding:!0,onHoverIn:function(){return I(e.threadKey)},onPress:function(){v(e)},role:"button",xstyle:d.pressableContainer,children:u.jsx(r("IGDChatTabMessageNotificationOffMsys.react"),{previewData:e})},t)}),a[17]=v,a[18]=I,a[19]=P,a[20]=N):N=a[20];var M;return a[21]!==x||a[22]!==N?(M=u.jsx(r("IGDSBox.react"),{direction:"columnReverse",xstyle:x,children:N}),a[21]=x,a[22]=N,a[23]=M):M=a[23],M}l.default=_}),98);
__d("IGDChatTabsContentOffMsysQuery$Parameters",["IGDChatTabsContentOffMsysQuery_instagramRelayOperation","IGDMaxUnreadMessagesCount.relayprovider","IGDPinnedThreadsRenderEnabledGK.relayprovider","IGDThreadListActionsEnabledGK.relayprovider","PolarisAIGMAccountLabelEnabled.relayprovider"],(function(t,n,r,o,a,i){"use strict";var e={kind:"PreloadableConcreteRequest",params:{id:n("IGDChatTabsContentOffMsysQuery_instagramRelayOperation"),metadata:{is_fully_www_executable:!0},name:"IGDChatTabsContentOffMsysQuery",operationKind:"query",text:null,providedVariables:{__relay_internal__pv__IGDPinnedThreadsRenderEnabledGKrelayprovider:n("IGDPinnedThreadsRenderEnabledGK.relayprovider"),__relay_internal__pv__IGDMaxUnreadMessagesCountrelayprovider:n("IGDMaxUnreadMessagesCount.relayprovider"),__relay_internal__pv__PolarisAIGMAccountLabelEnabledrelayprovider:n("PolarisAIGMAccountLabelEnabled.relayprovider"),__relay_internal__pv__IGDThreadListActionsEnabledGKrelayprovider:n("IGDThreadListActionsEnabledGK.relayprovider")}}};a.exports=e}),null);
__d("IGDChatTabsContentOffMsys.entrypoint",["IGDChatTabsContentOffMsysQuery$Parameters","IGDMqttWebDeviceID","IGPresenceUnifiedSetupQuery$Parameters","JSResourceForInteraction","PolarisViewerSettingsQuery$Parameters"],(function(t,n,r,o,a,i,l){"use strict";var e={getPreloadProps:function(t){var e={mailboxQueryRef:{parameters:r("IGDChatTabsContentOffMsysQuery$Parameters"),variables:{device_id_for_iris_subscription:r("IGDMqttWebDeviceID").clientId}},presenceSetupQueryRef:{parameters:r("IGPresenceUnifiedSetupQuery$Parameters"),variables:{}},viewerSettingsQueryRef:{parameters:r("PolarisViewerSettingsQuery$Parameters"),variables:{}}};return{queries:e}},root:r("JSResourceForInteraction")("IGDChatTabsContentOffMsys.react").__setRef("IGDChatTabsContentOffMsys.entrypoint")};l.default=e}),98);
__d("IGDChatTabsJewelOffMsysQuery_instagramRelayOperation",[],(function(t,n,r,o,a,i){a.exports="26302028256140656"}),null);
__d("IGDChatTabsJewelOffMsysQuery.graphql",["IGDChatTabsJewelOffMsysQuery_instagramRelayOperation","relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"device_id_for_iris_subscription"}],t=[{kind:"Variable",name:"device_id_for_iris_subscription",variableName:"device_id_for_iris_subscription"}],r={kind:"Literal",name:"folder",value:"INBOX"},o=[{kind:"Literal",name:"first",value:15},r],a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"profile_pic_url",storageKey:null},l=["folder"];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:{throwOnFieldError:!0},name:"IGDChatTabsJewelOffMsysQuery",selections:[{alias:null,args:t,concreteType:"SlideMailbox",kind:"LinkedField",name:"get_slide_mailbox_for_iris_subscription",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"IGDChatTabsPOGsOffMsys_SlideMailbox"},{args:[r],kind:"FragmentSpread",name:"useIGDSystemFolderUnreadThreadCountFromFragment_SlideMailbox"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"IGDChatTabsJewelOffMsysQuery",selections:[{alias:null,args:t,concreteType:"SlideMailbox",kind:"LinkedField",name:"get_slide_mailbox_for_iris_subscription",plural:!1,selections:[{alias:null,args:o,concreteType:"SlideMailboxThreadsByFolderConnection",kind:"LinkedField",name:"threads_by_folder",plural:!1,selections:[{alias:null,args:null,concreteType:"SlideMailboxThreadsByFolderEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"SlideThread",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBIGDirectViewerThread",kind:"LinkedField",name:"as_ig_direct_thread",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"thread_key",storageKey:null},{name:"client__is_unread",args:null,fragment:{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"marked_as_unread",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_activity_timestamp_ms",storageKey:null},{alias:null,args:null,concreteType:"XFBSlideReadReceipt",kind:"LinkedField",name:"slide_read_receipts",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"participant_fbid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"watermark_timestamp_ms",storageKey:null}],storageKey:null}],type:"XFBIGDirectViewerThread",abstractKey:null},kind:"RelayResolver",storageKey:null,isOutputType:!0},{alias:null,args:null,kind:"ScalarField",name:"thread_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thread_image_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewer_id",storageKey:null},{alias:null,args:null,concreteType:"XDTUserDict",kind:"LinkedField",name:"users",plural:!0,selections:[a,i,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:[{kind:"Literal",name:"fetch_latest_reel_media",value:!0}],kind:"ScalarField",name:"latest_reel_media",storageKey:"latest_reel_media(fetch_latest_reel_media:true)"},{alias:null,args:null,kind:"ScalarField",name:"latest_besties_reel_media",storageKey:null},{alias:null,args:[{kind:"Literal",name:"fetch_reel_media_seen_timestamp",value:!0}],kind:"ScalarField",name:"reel_media_seen_timestamp",storageKey:"reel_media_seen_timestamp(fetch_reel_media_seen_timestamp:true)"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thread_subtype",storageKey:null},{alias:null,args:null,concreteType:"XDTUserDict",kind:"LinkedField",name:"viewer",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"interop_messaging_user_fbid",storageKey:null},i],storageKey:null},a],storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],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:'threads_by_folder(first:15,folder:"INBOX")'},{alias:null,args:o,filters:l,handle:"connection",key:"IGDChatTabsPOGsOffMsys__threads_by_folder",kind:"LinkedHandle",name:"threads_by_folder"},{alias:null,args:o,filters:l,handle:"connection",key:"IGDThreadListOffMsys_SlideMailbox__threads_by_folder",kind:"LinkedHandle",name:"threads_by_folder"},a],storageKey:null}]},params:{id:n("IGDChatTabsJewelOffMsysQuery_instagramRelayOperation"),metadata:{is_fully_www_executable:!0},name:"IGDChatTabsJewelOffMsysQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
__d("IGDChatTabsPOGOffMsys_XFBIGDirectViewerThread.graphql",[],(function(t,n,r,o,a,i){"use strict";var e={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"IGDChatTabsPOGOffMsys_XFBIGDirectViewerThread",selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"thread_key",storageKey:null},action:"THROW"},{alias:null,args:null,kind:"ScalarField",name:"thread_title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thread_image_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewer_id",storageKey:null},{alias:null,args:null,concreteType:"XDTUserDict",kind:"LinkedField",name:"users",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"profile_pic_url",storageKey:null}],storageKey:null}],type:"XFBIGDirectViewerThread",abstractKey:null};a.exports=e}),null);
__d("IGDChatTabsTooltipWrapper.react",["IGDSTooltip.react","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t=o("react-compiler-runtime").c(4),n=e.children,a=e.isVisible,i=e.tooltip;if(i==null)return n;var l;return t[0]!==n||t[1]!==a||t[2]!==i?(l=s.jsx(r("IGDSTooltip.react"),{align:"middle",color:"primary",isVisible:a,position:"above",tooltip:i,children:n}),t[0]=n,t[1]=a,t[2]=i,t[3]=l):l=t[3],l}l.default=u}),98);
__d("useLoadIGDChatTabEntrypoint.react",["IGDChatTabsStateContext.react","loadIGDChatTabEntryPoint","react","react-compiler-runtime","useCometRelayEntrypointContextualEnvironmentProvider","useIsChatTabsDisplay"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(e||(e=o("react"))).useCallback;function u(e){var t=o("react-compiler-runtime").c(8),n=r("useCometRelayEntrypointContextualEnvironmentProvider")(),a=o("IGDChatTabsStateContext.react").useIGDChatTabsState(),i;t[0]!==(a==null?void 0:a.openedTabs)||t[1]!==e?(i=a==null?void 0:a.openedTabs.get(e),t[0]=a==null?void 0:a.openedTabs,t[1]=e,t[2]=i):i=t[2];var l=i,s=r("useIsChatTabsDisplay")(),u;return t[3]!==n||t[4]!==s||t[5]!==(l==null?void 0:l.chatTabEntrypointRef)||t[6]!==e?(u=function(){s&&(l==null?void 0:l.chatTabEntrypointRef)==null&&r("loadIGDChatTabEntryPoint")(n,e)},t[3]=n,t[4]=s,t[5]=l==null?void 0:l.chatTabEntrypointRef,t[6]=e,t[7]=u):u=t[7],l==null||l.chatTabEntrypointRef,u}l.default=u}),98);
__d("IGDChatTabsPOGOffMsys.react",["fbt","CometPressable.react","CometRelay","IGDChatTabsPOGOffMsys_XFBIGDirectViewerThread.graphql","IGDChatTabsStateTypes","IGDChatTabsTooltipWrapper.react","IGDFallbackProfileUrl","IGDSBox.react","IGDSText.react","IGDSingleAvatar.react","IGDThreadListNewMessageLoggingDataContext","MessengerWebUXLogger","react","react-compiler-runtime","useIGDOpenChatTab.react","useLoadIGDChatTabEntrypoint.react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.useCallback,p=d.useMemo,_=d.useState,f={pog:{borderTopColor:"xbe7ycp",borderInlineEndColor:"x1npm9xp",borderBottomColor:"x5p4dl0",borderInlineStartColor:"x179w5xb",borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopWidth:"xamhcws",borderInlineEndWidth:"x1alpsbp",borderBottomWidth:"xlxy82",borderInlineStartWidth:"xyumdvf",marginInlineStart:"xw01apr",zIndex:"x1vjfegm",$$css:!0}};function g(t){var a=o("react-compiler-runtime").c(35),i=t.isUnreadPOG,l=t.viewerThreadRef,u=o("CometRelay").useFragment(e!==void 0?e:e=n("IGDChatTabsPOGOffMsys_XFBIGDirectViewerThread.graphql"),l),d=u.thread_key,m;a[0]!==u.thread_title?(m=u.thread_title||s._(/*BTDS*/"Instagram User"),a[0]=u.thread_title,a[1]=m):m=a[1];var p=m,g;if(a[2]!==u.thread_image_url||a[3]!==u.users||a[4]!==u.viewer_id){var h,y,C;g=(h=(y=u.thread_image_url)!=null?y:(C=u.users.find(function(e){return e.id!==u.viewer_id}))==null?void 0:C.profile_pic_url)!=null?h:o("IGDFallbackProfileUrl").FALLBACK_PROFILE_PIC_URL,a[2]=u.thread_image_url,a[3]=u.users,a[4]=u.viewer_id,a[5]=g}else g=a[5];var b=g,v=o("IGDThreadListNewMessageLoggingDataContext").useFlowInstanceIdContext(),S=r("MessengerWebUXLogger").useInteractionLogger(),R=String(i),L;a[6]!==R?(L={isUnreadPOG:R},a[6]=R,a[7]=L):L=a[7];var E;a[8]!==v||a[9]!==L?(E={eventName:"igd_chat_tabs_pog",extraData:L,flowInstanceId:v},a[8]=v,a[9]=L,a[10]=E):E=a[10];var k=r("MessengerWebUXLogger").useImpressionLoggerRef(E),I;a[11]!==p?(I=c.jsx(r("IGDSBox.react"),{maxWidth:95,children:c.jsx(r("IGDSText.react"),{maxLines:1,size:"footnote",weight:"medium",zeroMargin:!0,children:p})}),a[11]=p,a[12]=I):I=a[12];var T=I,D=r("useLoadIGDChatTabEntrypoint.react")(d),x=r("useIGDOpenChatTab.react")(),$;a[13]!==v||a[14]!==i||a[15]!==S||a[16]!==x||a[17]!==d?($=function(){x(d,o("IGDChatTabsStateTypes").IGDChatTabsMessagingInitiationSource.ChatTabsPOG),S==null||S({eventName:"igd_chat_tabs_pog",extraData:{isUnreadPOG:String(i)},flowInstanceId:v})},a[13]=v,a[14]=i,a[15]=S,a[16]=x,a[17]=d,a[18]=$):$=a[18];var P=$,N=_(!1),M=N[0],w=N[1],A;a[19]===Symbol.for("react.memo_cache_sentinel")?(A=s._(/*BTDS*/"User avatar").toString(),a[19]=A):A=a[19];var F=A+" "+p.toString(),O;a[20]!==D?(O=function(){D==null||D(),w(!0)},a[20]=D,a[21]=O):O=a[21];var B;a[22]===Symbol.for("react.memo_cache_sentinel")?(B=function(){w(!1)},a[22]=B):B=a[22];var W;a[23]!==b?(W=c.jsx(r("IGDSingleAvatar.react"),{size:"tiny",src:b}),a[23]=b,a[24]=W):W=a[24];var q;a[25]!==k||a[26]!==P||a[27]!==F||a[28]!==W||a[29]!==O?(q=c.jsx(r("CometPressable.react"),{"aria-label":F,onHoverIn:O,onHoverOut:B,onPress:P,ref:k,role:"button",xstyle:f.pog,children:W}),a[25]=k,a[26]=P,a[27]=F,a[28]=W,a[29]=O,a[30]=q):q=a[30];var U;return a[31]!==M||a[32]!==q||a[33]!==T?(U=c.jsx(r("IGDChatTabsTooltipWrapper.react"),{isVisible:M,tooltip:T,children:q}),a[31]=M,a[32]=q,a[33]=T,a[34]=U):U=a[34],U}l.default=g}),226);
__d("IGDChatTabsPOGsOffMsys_SlideMailbox.graphql",["XFBIGDirectViewerThreadIsUnreadResolver"],(function(t,n,r,o,a,i){"use strict";var e={argumentDefinitions:[],kind:"Fragment",metadata:{connection:[{count:null,cursor:null,direction:"forward",path:["threads_by_folder"]}]},name:"IGDChatTabsPOGsOffMsys_SlideMailbox",selections:[{alias:"threads_by_folder",args:[{kind:"Literal",name:"folder",value:"INBOX"}],concreteType:"SlideMailboxThreadsByFolderConnection",kind:"LinkedField",name:"__IGDChatTabsPOGsOffMsys__threads_by_folder_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"SlideMailboxThreadsByFolderEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"SlideThread",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBIGDirectViewerThread",kind:"LinkedField",name:"as_ig_direct_thread",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"thread_key",storageKey:null},{alias:null,args:null,fragment:{args:null,kind:"FragmentSpread",name:"XFBIGDirectViewerThreadIsUnreadResolver_XFBIGDirectViewerThread"},kind:"RelayResolver",name:"client__is_unread",resolverModule:n("XFBIGDirectViewerThreadIsUnreadResolver").client__is_unread,path:"threads_by_folder.edges.node.as_ig_direct_thread.client__is_unread"},{args:null,kind:"FragmentSpread",name:"IGDChatTabsPOGOffMsys_XFBIGDirectViewerThread"},{args:null,kind:"FragmentSpread",name:"IGDChatTabsUnreadOverflowItemOffMsys_XFBIGDirectViewerThread"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],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:'__IGDChatTabsPOGsOffMsys__threads_by_folder_connection(folder:"INBOX")'}],type:"SlideMailbox",abstractKey:null};a.exports=e}),null);
__d("IGDChatTabsUnreadOverflowPlaceholder.react",["IGDSBox.react","IGDSConstants","IGDSGlimmer.react","IGDSPopoverLoadingState.react","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u={glimmer:{height:"x5yr21d",width:"xh8yej3",$$css:!0},root:{borderStartStartRadius:"x1ua1ujl",borderStartEndRadius:"xksyday",borderEndEndRadius:"xshg46c",borderEndStartRadius:"xlej2ay",marginBottom:"x1hq5gj4",$$css:!0}};function c(){var e=o("react-compiler-runtime").c(2),t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(r("IGDSBox.react"),{height:r("IGDSConstants").AVATAR_SIZES.tiny,marginEnd:2,overflow:"hidden",shape:"circle",width:r("IGDSConstants").AVATAR_SIZES.tiny,children:s.jsx(r("IGDSGlimmer.react"),{index:0,xstyle:u.glimmer})}),e[0]=t):t=e[0];var n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(r("IGDSBox.react"),{alignItems:"center",direction:"row",children:[t,s.jsx(r("IGDSBox.react"),{height:12,overflow:"hidden",width:160,children:s.jsx(r("IGDSGlimmer.react"),{index:1,xstyle:u.glimmer})})]}),e[1]=n):n=e[1],n}function d(){var e=o("react-compiler-runtime").c(1),t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(r("IGDSPopoverLoadingState.react"),{popoverContent:s.jsxs(r("IGDSBox.react"),{alignItems:"start",direction:"column",maxWidth:300,padding:3,children:[s.jsx(c,{}),s.jsx(c,{}),s.jsx(c,{})]}),popoverXStyle:u.root}),e[0]=t):t=e[0],t}l.default=d}),98);
__d("IGDChatTabsUnreadOverflowPopoverOffMsys.react",["fbt","CometPressable.react","IGDChatTabsEnv","IGDChatTabsUnreadOverflowPlaceholder.react","IGDSLazyPopoverTrigger.react","IGDSMoreHorizontalPanoOutlineIcon.react","IGDThreadListNewMessageLoggingDataContext","JSResourceForInteraction","MessengerWebUXLogger","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e.useCallback,d={moreUnreadIndicator:{alignItems:"x6s0dn4",backgroundColor:"x1gjpkn9",borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",height:"xxk0z11",justifyContent:"xl56j7k",marginInlineStart:"xw01apr",width:"xvy4d1p",$$css:!0}},m=r("JSResourceForInteraction")("IGDChatTabsUnreadOverflowOffMsys.react").__setRef("IGDChatTabsUnreadOverflowPopoverOffMsys.react");function p(e){var t=o("react-compiler-runtime").c(20),n=e.onChatTabJewelClick,a=e.unreadThreadRefs,i=o("IGDThreadListNewMessageLoggingDataContext").useFlowInstanceIdContext(),l=r("MessengerWebUXLogger").useInteractionLogger(),c;t[0]!==i?(c={eventName:"igd_chat_tabs_pog_overflow_icon",flowInstanceId:i},t[0]=i,t[1]=c):c=t[1];var p=r("MessengerWebUXLogger").useImpressionLoggerRef(c),_=a.length,f;t[2]!==_?(f=s._(/*BTDS*/"_j{\"*\":\"{number of unread chats} unread chats\",\"_1\":\"{number of unread chats} unread chat\"}",[s._plural(_),s._param("number of unread chats",_)]),t[2]=_,t[3]=f):f=t[3];var g=f,h;t[4]!==a?(h=a.slice(o("IGDChatTabsEnv").MAX_POGS),t[4]=a,t[5]=h):h=t[5];var y=h,C;t[6]!==i||t[7]!==l||t[8]!==n?(C=function(){n(),l==null||l({eventName:"igd_chat_tabs_pog_overflow_icon",flowInstanceId:i})},t[6]=i,t[7]=l,t[8]=n,t[9]=C):C=t[9];var b=C,v;t[10]===Symbol.for("react.memo_cache_sentinel")?(v=u.jsx(r("IGDChatTabsUnreadOverflowPlaceholder.react"),{}),t[10]=v):v=t[10];var S;t[11]!==y?(S={unreadThreads:y},t[11]=y,t[12]=S):S=t[12];var R;t[13]!==p||t[14]!==b||t[15]!==g?(R=function(t,n,o){return u.jsx(r("CometPressable.react"),{onHoverIn:n,onHoverOut:o,onPress:b,ref:t,xstyle:d.moreUnreadIndicator,children:u.jsx("div",{ref:p,children:u.jsx(r("IGDSMoreHorizontalPanoOutlineIcon.react"),{alt:g,size:16})})})},t[13]=p,t[14]=b,t[15]=g,t[16]=R):R=t[16];var L;return t[17]!==S||t[18]!==R?(L=u.jsx(r("IGDSLazyPopoverTrigger.react"),{align:"end",fallback:v,popoverProps:S,popoverResource:m,popoverType:"menu",position:"above",children:R}),t[17]=S,t[18]=R,t[19]=L):L=t[19],L}l.default=p}),226);
__d("IGDChatTabsPOGsOffMsys.react",["CometRelay","IGDChatTabsEnv","IGDChatTabsPOGOffMsys.react","IGDChatTabsPOGsOffMsys_SlideMailbox.graphql","IGDChatTabsUnreadOverflowPopoverOffMsys.react","IGDSBox.react","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react"));function c(t){var a,i=o("react-compiler-runtime").c(17),l=t.mailboxRef,s=t.onChatTabJewelClick,c=o("CometRelay").useFragment(e!==void 0?e:e=n("IGDChatTabsPOGsOffMsys_SlideMailbox.graphql"),l),p;if(i[0]!==((a=c.threads_by_folder)==null?void 0:a.edges)){var _,f,g;p=(_=(f=c.threads_by_folder)==null?void 0:f.edges)!=null?_:[],i[0]=(g=c.threads_by_folder)==null?void 0:g.edges,i[1]=p}else p=i[1];var h=p,y,C,b,v,S;if(i[2]!==h||i[3]!==s){var R=h.map(m).filter(Boolean),L=R.filter(d),E=L.length,k=E>0?L.slice(0,o("IGDChatTabsEnv").MAX_POGS):R.slice(0,o("IGDChatTabsEnv").MAX_POGS);y=r("IGDSBox.react"),C="center",b="rowReverse",v=E>o("IGDChatTabsEnv").MAX_POGS&&u.jsx(r("IGDChatTabsUnreadOverflowPopoverOffMsys.react"),{onChatTabJewelClick:s,unreadThreadRefs:L});var I;i[9]!==E?(I=function(t){return u.jsx(r("IGDChatTabsPOGOffMsys.react"),{isUnreadPOG:E>0,viewerThreadRef:t},t.thread_key)},i[9]=E,i[10]=I):I=i[10],S=k.toReversed().map(I),i[2]=h,i[3]=s,i[4]=y,i[5]=C,i[6]=b,i[7]=v,i[8]=S}else y=i[4],C=i[5],b=i[6],v=i[7],S=i[8];var T;return i[11]!==y||i[12]!==C||i[13]!==b||i[14]!==v||i[15]!==S?(T=u.jsxs(y,{alignItems:C,direction:b,children:[v,S]}),i[11]=y,i[12]=C,i[13]=b,i[14]=v,i[15]=S,i[16]=T):T=i[16],T}function d(e){return e.client__is_unread===!0}function m(e){var t;return e==null||(t=e.node)==null?void 0:t.as_ig_direct_thread}l.default=c}),98);
__d("useIGDChatTabsRenderCircularJewel.react",["PolarisClipsCommentsPopoverVisibilityContext.react","react-compiler-runtime","useGetPageIDFromCometRouterState.react","useIGDChatTabsReelsPageResize.react","usePolarisIsSmallScreen"],(function(t,n,r,o,a,i,l){"use strict";var e=new Set(["AdTools","boostMediaPage","mediaInsights","insightsMediaGrid"]);function s(){var t=o("react-compiler-runtime").c(2),n=r("useGetPageIDFromCometRouterState.react")(),a=r("usePolarisIsSmallScreen")(),i=r("useIGDChatTabsReelsPageResize.react")(),l=i[0],s=o("PolarisClipsCommentsPopoverVisibilityContext.react").usePolarisClipsCommentsPopoverVisibility(),u=s.isVisible;if(a||l||u)return!0;if(n==null)return!1;var c;return t[0]!==n?(c=e.has(n),t[0]=n,t[1]=c):c=t[1],c}l.default=s}),98);
__d("IGDChatTabsJewelOffMsys.react",["fbt","CometPlaceholder.react","CometPressable.react","CometRelay","IGDChatTabsJewelOffMsysQuery.graphql","IGDChatTabsJewelStyles","IGDChatTabsPOGsOffMsys.react","IGDChatTabsQPLInstanceKeyContext.react","IGDChatTabsStateContext.react","IGDChatTabsStateTypes","IGDSBox.react","IGDSDirectPrismOutline24Icon.react","IGDSText.react","IGDThreadListNewMessageLoggingDataContext","MessengerWebUXLogger","PolarisBadgeConstants","PolarisDirectNavItemBadge.react","PolarisDirectStringHelpers","PolarisPageTitle.react","QuickPerformanceLogger","Random","qpl","react","react-compiler-runtime","useIGDChatTabsRenderCircularJewel.react","useIGDSystemFolderUnreadThreadCountFromFragment","usePolarisIsSmallScreen"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=c.useCallback,p={directIcon:{marginTop:"xvijh9v",$$css:!0},jewelForMobileNav:{width:"x15yg21f",$$css:!0}},_=s._(/*BTDS*/"Messages");function f(t){var a=o("react-compiler-runtime").c(50),i=t.jewelQueryRef,l=o("IGDChatTabsStateContext.react").useIGDChatTabsDispatch(),c=o("IGDThreadListNewMessageLoggingDataContext").useFlowInstanceIdContext(),m=o("IGDChatTabsQPLInstanceKeyContext.react").useIGDChatTabsQPLInstanceKeyContext(),f=r("MessengerWebUXLogger").useInteractionLogger(),h=r("usePolarisIsSmallScreen")(),y=o("CometRelay").usePreloadedQuery(e!==void 0?e:e=n("IGDChatTabsJewelOffMsysQuery.graphql"),i),C=y.get_slide_mailbox_for_iris_subscription,b=r("useIGDSystemFolderUnreadThreadCountFromFragment")(C),v=b<o("PolarisBadgeConstants").BADGE_COUNT_LIMIT?String(b):o("PolarisBadgeConstants").BADGE_COUNT_LIMIT+"+",S=r("useIGDChatTabsRenderCircularJewel.react")(),R;a[0]!==l||a[1]!==c||a[2]!==f||a[3]!==m||a[4]!==b?(R=function(){l==null||l({type:"open_view",view:o("IGDChatTabsStateTypes").IGDChatTabsView.ChatTabsThreadListView}),f==null||f({eventName:"igd_chat_tabs_jewel_clicked",extraData:{unSeenCount:String(b)},flowInstanceId:c});var e=o("Random").uint32();(u||(u=r("QuickPerformanceLogger"))).markerStart(r("qpl")._(882771984,"2789"),e),m.threadListKey===0&&(u||(u=r("QuickPerformanceLogger"))).markerAnnotate(r("qpl")._(882771984,"2789"),{bool:{isFirstLoad:!0}},{instanceKey:e}),m.setThreadListKey(e)},a[0]=l,a[1]=c,a[2]=f,a[3]=m,a[4]=b,a[5]=R):R=a[5];var L=R,E;a[6]!==c?(E={eventName:"igd_chat_tabs_jewel",flowInstanceId:c},a[6]=c,a[7]=E):E=a[7];var k=r("MessengerWebUXLogger").useImpressionLoggerRef(E,g),I=r("MessengerWebUXLogger").useImpressionLogger(),T;a[8]!==c||a[9]!==I?(T=function(){I==null||I({eventName:"igd_chat_tabs_badge",flowInstanceId:c})},a[8]=c,a[9]=I,a[10]=T):T=a[10];var D=T,x;a[11]===Symbol.for("react.memo_cache_sentinel")?(x=d.jsx(r("IGDSDirectPrismOutline24Icon.react"),{alt:_,color:"ig-primary-icon"}),a[11]=x):x=a[11];var $=x,P;a[12]!==v||a[13]!==D||a[14]!==b?(P=b>0&&d.jsx(r("IGDSBox.react"),{containerRef:D,children:d.jsx(r("PolarisDirectNavItemBadge.react"),{ariaLabel:o("PolarisDirectStringHelpers").getBadgeNotificationAltText(b),badgeText:b>0?v:void 0})}),a[12]=v,a[13]=D,a[14]=b,a[15]=P):P=a[15];var N;a[16]!==P?(N=d.jsxs(r("IGDSBox.react"),{display:"flex",position:"relative",xstyle:p.directIcon,children:[$,P]}),a[16]=P,a[17]=N):N=a[17];var M=N,w;a[18]!==b?(w=b>0?" - "+s._(/*BTDS*/"_j{\"*\":\"{notificationCount} new notifications\",\"_1\":\"{notificationCount} new notification\"}",[s._plural(b),s._param("notificationCount",b)]).toString():"",a[18]=b,a[19]=w):w=a[19];var A=w,F;a[20]===Symbol.for("react.memo_cache_sentinel")?(F=_.toString(),a[20]=F):F=a[20];var O=""+F+A,B=S?"column":"row",W=b===0?2:b<9?3:4,q;a[21]!==M||a[22]!==W?(q=d.jsx(r("IGDSBox.react"),{marginEnd:W,children:M}),a[21]=M,a[22]=W,a[23]=q):q=a[23];var U;a[24]===Symbol.for("react.memo_cache_sentinel")?(U=d.jsx(r("IGDSText.react"),{size:"label",weight:"semibold",zeroMargin:!1,children:_}),a[24]=U):U=a[24];var V;a[25]!==q?(V=d.jsxs(r("IGDSBox.react"),{alignItems:"center",direction:"row",children:[q,U]}),a[25]=q,a[26]=V):V=a[26];var H;a[27]!==C||a[28]!==L?(H=C!=null&&d.jsx(r("CometPlaceholder.react"),{fallback:null,name:"IGDChatTabsPOGsOffMsys",children:d.jsx(r("IGDChatTabsPOGsOffMsys.react"),{mailboxRef:C,onChatTabJewelClick:L})}),a[27]=C,a[28]=L,a[29]=H):H=a[29];var G;a[30]!==B||a[31]!==V||a[32]!==H||a[33]!==O?(G=d.jsxs(r("IGDSBox.react"),{accessibilityLabel:O,alignItems:"center",direction:B,display:"flex",justifyContent:"between",position:"relative",width:"100%",children:[V,H]}),a[30]=B,a[31]=V,a[32]=H,a[33]=O,a[34]=G):G=a[34];var z=G,j=h&&o("IGDChatTabsJewelStyles").IGDChatTabsJewelStyles.rootForMobileNav,K;a[35]!==j?(K=[o("IGDChatTabsJewelStyles").IGDChatTabsJewelStyles.root,j],a[35]=j,a[36]=K):K=a[36];var Q;a[37]!==b?(Q=d.jsx(r("PolarisPageTitle.react"),{badgeConfig:{badgeCount:b,badgeCountLimit:o("PolarisBadgeConstants").BADGE_COUNT_LIMIT}}),a[37]=b,a[38]=Q):Q=a[38];var X=S&&p.jewelForMobileNav,Y;a[39]!==X?(Y=[o("IGDChatTabsJewelStyles").IGDChatTabsJewelStyles.button,o("IGDChatTabsJewelStyles").IGDChatTabsJewelStyles.buttonExpanded,X],a[39]=X,a[40]=Y):Y=a[40];var J=S?M:z,Z;a[41]!==L||a[42]!==Y||a[43]!==J?(Z=d.jsx(r("CometPressable.react"),{onPress:L,role:"button",testid:void 0,xstyle:Y,children:J}),a[41]=L,a[42]=Y,a[43]=J,a[44]=Z):Z=a[44];var ee;return a[45]!==k||a[46]!==K||a[47]!==Q||a[48]!==Z?(ee=d.jsxs(r("IGDSBox.react"),{containerRef:k,xstyle:K,children:[Q,Z]}),a[45]=k,a[46]=K,a[47]=Q,a[48]=Z,a[49]=ee):ee=a[49],ee}function g(){(u||(u=r("QuickPerformanceLogger"))).markerEnd(r("qpl")._(882775198,"2787"),2),u.markerAnnotate(r("qpl")._(25305590,"1127"),{string:{entrypoint:"igd_chat_tabs"}})}l.default=f}),226);
__d("IGDChatTabsJewelOffMsysQuery$Parameters",["IGDChatTabsJewelOffMsysQuery_instagramRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e={kind:"PreloadableConcreteRequest",params:{id:n("IGDChatTabsJewelOffMsysQuery_instagramRelayOperation"),metadata:{is_fully_www_executable:!0},name:"IGDChatTabsJewelOffMsysQuery",operationKind:"query",text:null}};a.exports=e}),null);
__d("IGDChatTabsOmnipickerHeader.react",["fbt","IGDChatTabsHeader.react","IGDChatTabsStateContext.react","IGDChatTabsStateTypes","IGDSText.react","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e.useCallback;function d(){var e=o("react-compiler-runtime").c(8),t=o("IGDChatTabsStateContext.react").useIGDChatTabsDispatch(),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=u.jsx(r("IGDSText.react"),{elementType:"h3",size:"label",weight:"semibold",zeroMargin:!1,children:s._(/*BTDS*/"New message")}),e[0]=n):n=e[0];var a=n,i;e[1]!==t?(i=function(){t==null||t({type:"open_view",view:o("IGDChatTabsStateTypes").IGDChatTabsView.ChatTabsThreadListView})},e[1]=t,e[2]=i):i=e[2];var l=i,c;e[3]!==t?(c=function(){t==null||t({type:"close_view",view:o("IGDChatTabsStateTypes").IGDChatTabsView.ChatTabsOmnipickerView})},e[3]=t,e[4]=c):c=e[4];var d=c,m;return e[5]!==l||e[6]!==d?(m=u.jsx(r("IGDChatTabsHeader.react"),{headerContent:a,headerType:"omnipicker",onClose:d,onGoBack:l}),e[5]=l,e[6]=d,e[7]=m):m=e[7],m}l.default=d}),226);
__d("MWXSpinner.react",["fbt","FDSProgressRingIndeterminate.react","ScreenReaderText.react","react","react-strict-dom"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t=e.color,n=e.size,a=e.xstyle,i=t==="disabled_DEPRECATED"?"dark":t;return u.jsxs(o("react-strict-dom").html.div,{children:[u.jsx(r("ScreenReaderText.react"),{text:s._(/*BTDS*/"Loading...")}),u.jsx(r("FDSProgressRingIndeterminate.react"),{color:i,isDecorative:!0,size:n,xstyle:a})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226);
__d("IGDChatTabsOmnipickerPlaceholder.react",["IGDChatTabSingleTabContainer.react","IGDChatTabsOmnipickerHeader.react","IGDSBox.react","IGDSGlimmer.react","MWXSpinner.react","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u={chatButtonGlimmer:{borderStartStartRadius:"x1obq294",borderStartEndRadius:"x5a5i1n",borderEndEndRadius:"xde0f50",borderEndStartRadius:"x15x8krk",$$css:!0},glimmer:{height:"x5yr21d",width:"xh8yej3",$$css:!0}};function c(){var e=o("react-compiler-runtime").c(3),t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(r("IGDChatTabsOmnipickerHeader.react"),{}),e[0]=t):t=e[0];var n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(r("IGDSBox.react"),{height:400,justifyContent:"center",children:s.jsx(r("MWXSpinner.react"),{color:"disabled_DEPRECATED",size:32})}),e[1]=n):n=e[1];var a;return e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs(r("IGDChatTabSingleTabContainer.react"),{children:[t,s.jsxs(r("IGDSBox.react"),{alignItems:"center",direction:"column",children:[n,s.jsx(r("IGDSBox.react"),{height:44,paddingX:4,width:"100%",children:s.jsx(r("IGDSGlimmer.react"),{index:2,xstyle:[u.glimmer,u.chatButtonGlimmer]})})]})]}),e[2]=a):a=e[2],a}l.default=c}),98);
__d("IGDChatTabsOmnipickerContainerOffMsysLazyLoaded.react",["CometPlaceholder.react","IGDChatTabsOmnipickerPlaceholder.react","IGDChatTabsStateContext.react","IGDChatTabsStateTypes","IGDEntryPoints","IGDEntrypointProvider.react","JSResourceForInteraction","lazyLoadComponent","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=r("lazyLoadComponent")(r("JSResourceForInteraction")("IGDChatTabsOmnipickerContainerOffMsys.react").__setRef("IGDChatTabsOmnipickerContainerOffMsysLazyLoaded.react"));function c(e){var t=o("react-compiler-runtime").c(3),n=e.nullStateQueryRef,a=o("IGDChatTabsStateContext.react").useCurrentChatTabsView();if(a===o("IGDChatTabsStateTypes").IGDChatTabsView.ChatTabsOmnipickerView&&n!=null){var l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(r("IGDChatTabsOmnipickerPlaceholder.react"),{}),t[0]=l):l=t[0];var c;return t[1]!==n?(c=s.jsx(o("IGDEntrypointProvider.react").IGDEntrypointProvider,{entrypoint:o("IGDEntryPoints").IGDEntryPoints.IGD_CHAT_TABS_OMNIPICKER,children:s.jsx(r("CometPlaceholder.react"),{fallback:l,name:i.id,children:s.jsx(u,{nullStateQueryRef:n})})}),t[1]=n,t[2]=c):c=t[2],c}return null}l.default=c}),98);
__d("useIGDChatTabsReOpenTabFromInbox.react",["IGDChatTabsStateContext.react","IGDChatTabsStateTypes","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(e||(e=o("react"))).useEffect;function u(){var e=o("react-compiler-runtime").c(6),t=o("IGDChatTabsStateContext.react").useIGDChatTabsState(),n=o("IGDChatTabsStateContext.react").useIGDChatTabsDispatch(),r;e[0]!==n||e[1]!==(t==null?void 0:t.selectedThreadKeyFromInbox)?(r=function(){(t==null?void 0:t.selectedThreadKeyFromInbox)!=null&&(n==null||n({source:o("IGDChatTabsStateTypes").IGDChatTabsMessagingInitiationSource.DirectInbox,threadKey:t==null?void 0:t.selectedThreadKeyFromInbox,type:"open_tab"}))},e[0]=n,e[1]=t==null?void 0:t.selectedThreadKeyFromInbox,e[2]=r):r=e[2];var a=t==null?void 0:t.selectedThreadKeyFromInbox,i;e[3]!==n||e[4]!==a?(i=[n,a],e[3]=n,e[4]=a,e[5]=i):i=e[5],s(r,i)}l.default=u}),98);
__d("IGDChatTabsRootContentOffMsys.react",["CometPageletWithDiv.react","CometPlaceholder.react","CometRelay","HeroInteractionIgnoreWithDiv.react","IGDChatTabMessageNotificationsContainerOffMsys.react","IGDChatTabsContentOffMsys.entrypoint","IGDChatTabsJewelOffMsys.react","IGDChatTabsJewelOffMsysQuery$Parameters","IGDChatTabsJewelPlaceholder.react","IGDChatTabsOmnipickerContainerOffMsysLazyLoaded.react","IGDChatTabsQPLInstanceKeyContext.react","IGDChatTabsStateContext.react","IGDChatTabsThemeProvider.react","IGDChatTabsThreadListContainerPlaceholder.react","IGDMediaStagingContext","IGDMqttWebDeviceID","IGDOmniPickerNullStateListQuery$Parameters","PolarisSuspenseWithErrorBoundary.react","react","react-compiler-runtime","useCometRelayEntrypointContextualEnvironmentProvider","useIGDChatTabsReOpenTabFromInbox.react","usePolarisIsTinyScreen"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(){var e=o("react-compiler-runtime").c(4),t=o("IGDChatTabsStateContext.react").useIGDChatTabsState(),n=r("useCometRelayEntrypointContextualEnvironmentProvider")(),a=o("CometRelay").useEntryPointLoader(n,r("IGDChatTabsContentOffMsys.entrypoint")),i=a[0],l=a[1];if((t==null?void 0:t.activeView)!=null&&i==null&&l({}),i==null)return null;var u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(r("IGDChatTabsThreadListContainerPlaceholder.react"),{}),e[0]=u):u=e[0];var c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={},e[1]=c):c=e[1];var d;return e[2]!==i?(d=s.jsx(r("PolarisSuspenseWithErrorBoundary.react"),{loadingRenderer:u,name:"IGDChatTabsContent",children:s.jsx(o("CometRelay").EntryPointContainer,{entryPointReference:i,props:c})}),e[2]=i,e[3]=d):d=e[3],d}function c(){var e=o("react-compiler-runtime").c(15),t=r("usePolarisIsTinyScreen")(),n=o("CometRelay").useQueryLoader(r("IGDChatTabsJewelOffMsysQuery$Parameters")),a=n[0],i=n[1],l=o("CometRelay").useQueryLoader(r("IGDOmniPickerNullStateListQuery$Parameters")),c=l[0],d=l[1];a==null&&i({device_id_for_iris_subscription:r("IGDMqttWebDeviceID").clientId}),c==null&&d({input:{count_per_page:20,is_private_share:!1,views:["DIRECT_USER_SEARCH_NULLSTATE"]}}),r("useIGDChatTabsReOpenTabFromInbox.react")();var m;e[0]!==t?(m={0:"x1vjfegm",1:"x1vjfegm xlshs6z"}[!!t<<0],e[0]=t,e[1]=m):m=e[1];var p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(r("IGDChatTabsJewelPlaceholder.react"),{}),e[2]=p):p=e[2];var _;e[3]!==a?(_=a!=null&&s.jsx(r("IGDChatTabsJewelOffMsys.react"),{jewelQueryRef:a}),e[3]=a,e[4]=_):_=e[4];var f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(r("IGDChatTabMessageNotificationsContainerOffMsys.react"),{}),e[5]=f):f=e[5];var g;e[6]!==c?(g=s.jsx(r("IGDChatTabsOmnipickerContainerOffMsysLazyLoaded.react"),{nullStateQueryRef:c}),e[6]=c,e[7]=g):g=e[7];var h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(r("CometPlaceholder.react"),{fallback:null,name:"IGDChatTabsContentLoaderOffMsys",children:s.jsx(u,{})}),e[8]=h):h=e[8];var y;e[9]!==_||e[10]!==g?(y=s.jsx(o("IGDChatTabsQPLInstanceKeyContext.react").IGDChatTabsQPLInstanceKeyContextProvider,{children:s.jsx(o("IGDMediaStagingContext").IGDMediaStagingContextProvider,{children:s.jsx(r("IGDChatTabsThemeProvider.react"),{children:s.jsxs(r("HeroInteractionIgnoreWithDiv.react"),{children:[_,f,g,h]})})})}),e[9]=_,e[10]=g,e[11]=y):y=e[11];var C;return e[12]!==m||e[13]!==y?(C=s.jsx(o("CometPageletWithDiv.react").Placeholder,{className:m,fallback:p,name:"IGDChatTabsRootContentOffMsys",children:y}),e[12]=m,e[13]=y,e[14]=C):C=e[14],C}l.default=c}),98);