;/*FB_PKG_DELIM*/ __d("LSExecuteCTA",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.ftr(c.db.table(119).fetch(),function(b){return c.i64.eq(b.ctaId,a[0])}).next().then(function(a,e){var g=a.done;a=a.value;return g?0:(e=a.item,d[0]=new c.Map(),d[0].set("banner_id",e.bannerId),d[0].set("cta_type",e.ctaType),d[0].set("context_id",e.contextId),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"in_thread_banner_execute_cta_queue",[0,73],d[1],f,f,[0,0],[0,0],f,f,[0,0]))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSFetchBanners",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"in_thread_banner_fetch_activity_banners_queue",[0,72],d[1],f,f,[0,0],[0,0],f,f,[0,0])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSServerMutationCta",["LSIssueNewError","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return c.seq([function(a){return c.sb(c.db.table(115).fetch(),[["timestampMs","DESC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[0]=!1:(b=a.item,d[0]=b.errorShouldBeShown)})},function(a){return d[0]===!0?c.seq([function(a){return c.localizeV2Async([0,2285622730],f).then(function(a){return d[4]=a})},function(a){return c.localizeV2Async([0,1919524925],f).then(function(a){return d[5]=a})},function(a){return c.sp(b("LSIssueNewError"),f,[0,1545093],d[4],d[5],f)}]):c.resolve()},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("marketplace_cta_type",a[1]),d[3]=c.toJSON(d[2]),c.sp(b("LSIssueNewTask"),"marketplace_server_mutation_cta",[0,279],d[3],f,f,[0,0],[0,0],f,f,[0,0])}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRequestAdContextFromThreadKey",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1];c.n;var d=[],e=[],f;return c.seq([function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[1]=c.toJSON(d[0]),c.sp(b("LSIssueNewTask"),"ctm_ad_context",[0,235],d[1],f,f,[0,0],[0,0],f,f,[0,0])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("CometMarketplaceConfirmMarkAsPaidDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5436864742990701"}),null); __d("CometMarketplaceConfirmMarkAsPaidDialogQuery$Parameters",["CometMarketplaceConfirmMarkAsPaidDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometMarketplaceConfirmMarkAsPaidDialogQuery_facebookRelayOperation"),metadata:{},name:"CometMarketplaceConfirmMarkAsPaidDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("CometMarketplaceInboxLabelChatDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5046975135324826"}),null); __d("CometMarketplaceInboxLabelChatDialogQuery$Parameters",["CometMarketplaceInboxLabelChatDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometMarketplaceInboxLabelChatDialogQuery_facebookRelayOperation"),metadata:{},name:"CometMarketplaceInboxLabelChatDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("CometMarketplaceSellerListingTransactionReportingFromThreadViewDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5048846461842440"}),null); __d("CometMarketplaceSellerListingTransactionReportingFromThreadViewDialogQuery$Parameters",["CometMarketplaceSellerListingTransactionReportingFromThreadViewDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometMarketplaceSellerListingTransactionReportingFromThreadViewDialogQuery_facebookRelayOperation"),metadata:{},name:"CometMarketplaceSellerListingTransactionReportingFromThreadViewDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("useMessengerUnsendNUXQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4823686477743600"}),null); __d("useMessengerUnsendNUXQuery.graphql",["useMessengerUnsendNUXQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"id"}],c=[{kind:"Variable",name:"nux_id",variableName:"id"}],d={alias:null,args:null,kind:"ScalarField",name:"should_show",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useMessengerUnsendNUXQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[d],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useMessengerUnsendNUXQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("useMessengerUnsendNUXQuery_facebookRelayOperation"),metadata:{},name:"useMessengerUnsendNUXQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometMarketplaceConfirmMarkAsPaidDialog.entrypoint",["CometMarketplaceConfirmMarkAsPaidDialogQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{cometMarketplaceConfirmMarkAsPaidDialogQueryReference:{parameters:c("CometMarketplaceConfirmMarkAsPaidDialogQuery$Parameters"),variables:{thread_id:a.threadId}}}}},root:c("JSResourceForInteraction")("CometMarketplaceConfirmMarkAsPaidDialog.react").__setRef("CometMarketplaceConfirmMarkAsPaidDialog.entrypoint")};g["default"]=a}),98); __d("CometMarketplaceInboxLabelChatDialog.entrypoint",["CometMarketplaceInboxLabelChatDialogQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{cometMarketplaceInboxLabelChatDialogQueryReference:{parameters:c("CometMarketplaceInboxLabelChatDialogQuery$Parameters"),variables:{id:a.thread_id}}}}},root:c("JSResourceForInteraction")("CometMarketplaceInboxLabelChatDialog.react").__setRef("CometMarketplaceInboxLabelChatDialog.entrypoint")};g["default"]=a}),98); __d("CometMarketplaceSellerListingTransactionReportingFromThreadViewDialog.entrypoint",["CometMarketplaceSellerListingTransactionReportingFromThreadViewDialogQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{cometMarketplaceSellerListingTransactionReportingFromThreadViewDialogQueryReference:{parameters:c("CometMarketplaceSellerListingTransactionReportingFromThreadViewDialogQuery$Parameters"),variables:{id:a.threadId,scale:d("WebPixelRatio").get()}}}}},root:c("JSResourceForInteraction")("CometMarketplaceSellerListingTransactionReportingFromThreadViewDialog.react").__setRef("CometMarketplaceSellerListingTransactionReportingFromThreadViewDialog.entrypoint")};g["default"]=a}),98); __d("MWLSAdContextCtaParser.bs",["JSResource","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=new Set(["ads_context"]);function a(a){var b=h.useRef(null);a=c("useCometLazyDialog")(c("JSResource")("MWCTMAdContextDialog.react").__setRef("MWLSAdContextCtaParser.bs"));var d=a[0];return function(a,c){var e=c.ctaType;if(e==="ads_context")return{_0:function(b){return d({adId:c.ctaId,onClose:function(a){},threadKey:a.banner.threadKey},function(a){})},_1:b,TAG:1};else return{_0:void 0,TAG:3}}}g.adContextCta=b;g.useHook=a}),98); __d("MWLSEnsureAdContextExists.bs",["LS.bs","LSRequestAdContextFromThreadKey","MWThreadKey.bs","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=d("MWThreadKey.bs").useIdMemoizedExn();h.useEffect(function(){var a=b.runInTransaction(function(a){return c("LSRequestAdContextFromThreadKey")(e,d("LS.bs").make(a))},"readwrite");c("promiseDone")(a)},[e,b])}g.useHook=a}),98); __d("MWChatHeaderDetailsSubtitleIcons.bs",["cr:1737008"],(function(a,b,c,d,e,f,g){"use strict";g.$MDSMWChatHeaderDetailsSubtitleIcons$OR$TetraMWChatHeaderDetailsSubtitleIcons$requireCond=b("cr:1737008"),g.Muted=b("cr:1737008").Muted}),98); __d("MWChatHeaderDetailsSubtitle.bs",["fbt","ix","CometMiddot.react","CometTintedIcon.react","MWCMInboxHeaderCommunityGroupName.react","MWCMThreadTypes.bs","MWChatHeaderDetailsSubtitleIcons.bs","MWLSThread.bs","MWThread_DEPRECATED.bs","MWTooltip.react","bs_curry","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||b("react");function a(a){var c=a.actorAttribution,d=a.isActiveNow,e=a.isMuted;a=a.isOngoingCall;var f=b("MWThread_DEPRECATED.bs").useIdExn();f=b("MWThread_DEPRECATED.bs").toThreadKey(f);f=b("MWLSThread.bs").useThread(f);var i,k=0;f!==void 0&&b("MWCMThreadTypes.bs").isJoinedCMThread(f.threadType)?i=j.jsx(b("MWCMInboxHeaderCommunityGroupName.react"),{thread:f}):k=1;k===1&&(i=a?g._("__JHASH__440_c1t5rby__JHASH__"):d?g._("__JHASH__u26x21RxFUk__JHASH__"):c!==void 0?c:null);f=e&&i!==null?j.jsx(b("CometMiddot.react"),{}):null;k=e?j.jsx(b("MWTooltip.react"),{align:"start",position:"above",tooltip:g._("__JHASH__XpvJmcPfz_-__JHASH__"),children:j.jsx(b("CometTintedIcon.react"),{color:"secondary",icon:b("fbicon")._(h("636130"),12),testid:void 0})}):null;return j.jsxs(j.Fragment,{children:[i,f,k]})}function c(a){return g._("__JHASH__u26x21RxFUk__JHASH__")}function d(a){a=a.forceInlineDisplay;var c={align:"start",children:b("bs_curry")._1(b("MWChatHeaderDetailsSubtitleIcons.bs").Muted.icon),position:"above",tooltip:g._("__JHASH__XpvJmcPfz_-__JHASH__")};a!==void 0&&(c.forceInlineDisplay=a);return j.jsx(b("MWTooltip.react"),babelHelpers["extends"]({},c))}d.displayName=d.name+" [from "+e.id+"]";function k(a){return g._("__JHASH__440_c1t5rby__JHASH__")}e=a;a=c;c=d;d=k;f.make=e;f.activeNow=a;f.mutedIcon=c;f.ongoingCall=d}),null); __d("MWChatRTCButtonIcons.bs",["cr:1755417"],(function(a,b,c,d,e,f,g){"use strict";g.$MDSMWChatRTCButtonIcons$OR$TetraMWChatRTCButtonIcons$requireCond=a=b("cr:1755417");g.$$Audio=a.$$Audio;g.Video=a.Video;g.Info=a.Info}),98); __d("TetraMWChatHeaderDetailsSubtitleIcons.bs",["ix","CometTintedIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){return i.jsx(c("CometTintedIcon.react"),{color:"secondary",icon:d("fbicon")._(h("636130"),12),testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";b={icon:a};g.Muted=b}),98); __d("TetraMWChatRTCButtonIcons.bs",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a,b){return h.jsxs("svg",{height:b,role:"presentation",viewBox:"-5 -5 30 30",width:b,children:[h.jsx("path",{d:"M10.952 14.044c.074.044.147.086.22.125a.842.842 0 001.161-.367c.096-.195.167-.185.337-.42.204-.283.552-.689.91-.772.341-.078.686-.105.92-.11.435-.01 1.118.174 1.926.648a15.9 15.9 0 011.713 1.147c.224.175.37.43.393.711.042.494-.034 1.318-.754 2.137-1.135 1.291-2.859 1.772-4.942 1.088a17.47 17.47 0 01-6.855-4.212 17.485 17.485 0 01-4.213-6.855c-.683-2.083-.202-3.808 1.09-4.942.818-.72 1.642-.796 2.136-.754.282.023.536.17.711.392.25.32.663.89 1.146 1.714.475.808.681 1.491.65 1.926-.024.31-.026.647-.112.921-.11.35-.488.705-.77.91-.236.17-.226.24-.42.336a.841.841 0 00-.368 1.161c.04.072.081.146.125.22a14.012 14.012 0 004.996 4.996z",fill:a}),h.jsx("path",{d:"M10.952 14.044c.074.044.147.086.22.125a.842.842 0 001.161-.367c.096-.195.167-.185.337-.42.204-.283.552-.689.91-.772.341-.078.686-.105.92-.11.435-.01 1.118.174 1.926.648.824.484 1.394.898 1.713 1.147.224.175.37.43.393.711.042.494-.034 1.318-.754 2.137-1.135 1.291-2.859 1.772-4.942 1.088a17.47 17.47 0 01-6.855-4.212 17.485 17.485 0 01-4.213-6.855c-.683-2.083-.202-3.808 1.09-4.942.818-.72 1.642-.796 2.136-.754.282.023.536.17.711.392.25.32.663.89 1.146 1.714.475.808.681 1.491.65 1.926-.024.31-.026.647-.112.921-.11.35-.488.705-.77.91-.236.17-.226.24-.42.336a.841.841 0 00-.368 1.161c.04.072.081.146.125.22a14.012 14.012 0 004.996 4.996z",fill:"none",stroke:a})]})}a.displayName=a.name+" [from "+f.id+"]";e={icon:a};function b(a,b,c){c=c!==void 0?c:!1;var d=c?"-3":"-5";return h.jsxs("svg",{height:b,role:"presentation",viewBox:d+" -5 30 30",width:b,children:[h.jsx("path",{d:"M19.492 4.112a.972.972 0 00-1.01.063l-3.052 2.12a.998.998 0 00-.43.822v5.766a1 1 0 00.43.823l3.051 2.12a.978.978 0 001.011.063.936.936 0 00.508-.829V4.94a.936.936 0 00-.508-.828zM10.996 18A3.008 3.008 0 0014 14.996V5.004A3.008 3.008 0 0010.996 2H3.004A3.008 3.008 0 000 5.004v9.992A3.008 3.008 0 003.004 18h7.992z",fill:a}),c?h.jsx("circle",{className:"x1xgahvj",cx:"24",cy:"10",r:"2"}):null]})}b.displayName=b.name+" [from "+f.id+"]";d={icon:b};function c(a,b){return h.jsx("svg",{height:"24px",name:"icon",role:"presentation",viewBox:"0 0 36 36",width:"24px",children:h.jsx("g",{transform:"translate(18,18)scale(1.2)translate(-18,-18)",children:h.jsx("path",{d:"M18,10 C16.6195,10 15.5,11.119 15.5,12.5 C15.5,13.881 16.6195,15 18,15 C19.381,15 20.5,13.881 20.5,12.5 C20.5,11.119 19.381,10 18,10 Z M16,25 C16,25.552 16.448,26 17,26 L19,26 C19.552,26 20,25.552 20,25 L20,18 C20,17.448 19.552,17 19,17 L17,17 C16.448,17 16,17.448 16,18 L16,25 Z M18,30 C11.3725,30 6,24.6275 6,18 C6,11.3725 11.3725,6 18,6 C24.6275,6 30,11.3725 30,18 C30,24.6275 24.6275,30 18,30 Z",fill:a,stroke:a},"lens")})})}c.displayName=c.name+" [from "+f.id+"]";a={icon:c};g.$$Audio=e;g.Video=d;g.Info=a}),98); __d("MWChatConnectionStatus.bs",["fbt","MWText.react","MqttState.bs","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function j(a){return i.jsx("div",{className:"x17zy6dr x1r4l5d8 x1lliihq xz9dl7a xsag5q8 x2b8uid",children:i.jsx(c("MWText.react"),{type:"meta4",children:a})})}j.displayName=j.name+" [from "+f.id+"]";function a(a){a=a.connectionStatus;if(a===d("MqttState.bs").connected)return null;else if(a===d("MqttState.bs").disconnected)return j(h._("__JHASH__c91Lbfy37OX__JHASH__"));else if(a===d("MqttState.bs").connecting)return j(h._("__JHASH__t43xAFuvvRz__JHASH__"));else return null}b=a;g.renderStatus=j;g.make=b}),98); __d("MWChatConnectionStatusCard.bs",["LSPlatformConnectionStatusProvider","MWChatConnectionStatus.bs","react"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react");function a(a){a=h.useContext(b("LSPlatformConnectionStatusProvider").Context);return h.jsx(b("MWChatConnectionStatus.bs").make,{connectionStatus:a.status})}a.displayName=a.name+" [from "+e.id+"]";c=a;f.make=c}),null); __d("MWChatEncryptedBackupsUpsellWrapper.react",["cr:1920","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){a=a.children;var c=b("cr:1920")==null?void 0:b("cr:1920")();return(c=c)!=null?c:h.jsx(h.Fragment,{children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSPresenceStatusText.bs",["fbt","CometRelativeTimestamp.react","MAWGating","MWChatContactPresenceHook.bs","MWPActor.bs","MessagingThreadType.bs","ReQL.bs","ReQLSubscription.bs","bs_caml","bs_curry","bs_int64","cr:4714","cr:4715","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=h._("__JHASH__KJ9BpmLEozf__JHASH__");function k(a){var b=a.threadKey;a=c("bs_int64").to_string(b);var e=c("useReStore")(),f=d("MWPActor.bs").useActor();return d("ReQLSubscription.bs").useArray(i.useMemo(function(){return d("ReQL.bs").map(d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("participants")),{hd:b,tl:0}),function(a){return c("bs_caml").i64_neq(a.contactId,f)}),function(a){return a.contactId})},[e,f,a]))}function l(a){var b=a.contactId,e=a.renderNullState;a=a.renderWrapper;var f=d("MWChatContactPresenceHook.bs").useIsActive(b);b=d("MWChatContactPresenceHook.bs").useLastActiveTimestampMs(b);if(f)return c("bs_curry")._1(a,j);else if(b!==void 0)return c("bs_curry")._1(a,h._("__JHASH___H_8HkZmS8j__JHASH__",[h._param("time",i.jsx(c("CometRelativeTimestamp.react"),{date:new Date(b),format:"minimized"}))]));else return c("bs_curry")._1(e)}e={make:l};function m(a){var b=a.renderNullState,d=a.renderWrapper;a=a.thread;a=k(a);if(a.length!==1)return c("bs_curry")._1(b);a=a[0];return i.jsx(l,{contactId:a,renderNullState:b,renderWrapper:d})}m.displayName=m.name+" [from "+f.id+"]";f={PresenceText:e,make:m};function n(a){var b=a.renderNullState,e=a.renderWrapper;a=a.thread;a=k(a);a=d("MWChatContactPresenceHook.bs").useHasActiveContact(a);if(a)return c("bs_curry")._1(e,j);else return c("bs_curry")._1(b)}e={make:n};function o(a){return a}function p(a){return null}function a(a){var e=a.thread,f=a.renderWrapper;a=a.renderNullState;f=f!==void 0?f:o;a=a!==void 0?a:p;var g=e.threadType;if(c("bs_caml").i64_eq(g,d("MessagingThreadType.bs").oneToOne)||c("bs_caml").i64_eq(g,d("MessagingThreadType.bs").secureMessageOverWaOneToOne)&&d("MAWGating").isArmadillo()&&d("MAWGating").isE2EEAttributionAndPresenceEnabled())return b("cr:4715")==null?i.jsx(m,{renderNullState:a,renderWrapper:f,thread:e}):i.jsx(b("cr:4715"),{renderNullState:a,renderWrapper:f,thread:e});else if(c("bs_caml").i64_eq(g,d("MessagingThreadType.bs").group)||c("bs_caml").i64_eq(g,d("MessagingThreadType.bs").secureMessageOverWaGroup)&&d("MAWGating").isArmadillo()&&d("MAWGating").isE2EEAttributionAndPresenceEnabled())return b("cr:4714")==null?i.jsx(n,{renderNullState:a,renderWrapper:f,thread:e}):i.jsx(b("cr:4714"),{renderNullState:a,renderWrapper:f,thread:e});else return null}a=a;f=f;e=e;var q=o,r=p;a=a;g.OneOnOnePresence=f;g.GroupPresence=e;g.defaultRenderWrapper=q;g.defaultRenderNullState=r;g.make=a}),98); __d("LSRtcCallState.re",["LSRtcCallState.bs"],(function(a,b,c,d,e,f){c=(a=b("LSRtcCallState.bs")).noOngoingCall;f.noOngoingCall=c;d=a.audioGroupCall;f.audioGroupCall=d;e=a.videoGroupCall;f.videoGroupCall=e;b=a.video1to1Call;f.video1to1Call=b;c=a.audio1to1Call;f.audio1to1Call=c}),null); __d("LSContactVerificationBadge.bs",["CometPageVerificationIcon.react","LSContactBitOffset.bs","LSContactCapabilityBitOffset.bs","bs_caml_option","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.contact,e=a.icon;a=a.size;b=d("LSContactBitOffset.bs").has(d("LSContactCapabilityBitOffset.bs").verified,b);if(b!==void 0&&b)return h.jsx("span",{className:"xurb0ha",children:e!==void 0?c("bs_caml_option").valFromOption(e):a!==void 0?h.jsx(c("CometPageVerificationIcon.react"),{size:a,verificationBadge:"BLUE_VERIFIED"}):null});else return null}b=a;e=b;g.make=e}),98); __d("LSVerificationBadge.bs",["LSContactVerificationBadge.bs","MWPActor.bs","ReQL.bs","ReQLSubscription.bs","ReQLSuspense","bs_caml","bs_caml_option","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.icon,e=a.size,f=a.thread,g=c("useReStore")(),i=d("MWPActor.bs").useActor();a=d("ReQLSubscription.bs").useArray(h.useMemo(function(){return d("ReQL.bs").take(d("ReQL.bs").map(d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(g.table("participants")),{hd:f.threadKey,tl:0}),function(a){return c("bs_caml").i64_neq(a.contactId,i)}),function(a){var b=d("ReQLSuspense").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(g.table("contacts")),{hd:a.contactId,tl:0}));return[a,b]}),2)},[g,JSON.stringify(f.threadKey),i]));var j=d("ReQLSubscription.bs").useFirst(h.useMemo(function(){return d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(g.table("contacts")),{hd:i,tl:0})},[g,i])),k=a.length;if(k!==1){if(k!==0)return null;if(j===void 0)return null;k=j}else{j=a[0];a=j[1];if(a===void 0)return null;k=a}j={contact:k};e!==void 0&&(j.size=c("bs_caml_option").valFromOption(e));b!==void 0&&(j.icon=c("bs_caml_option").valFromOption(b));return h.jsx(d("LSContactVerificationBadge.bs").make,babelHelpers["extends"]({},j))}a.displayName=a.name+" [from "+f.id+"]";b=a;e=b;g.make=e}),98); __d("MWInboxHeaderDetails",["CometMiddot.react","CometPlaceholder.react","I64","LSPresenceStatusText.bs","LSRtcCallState.re","LSThreadTitle.bs","LSVerificationBadge.bs","MWCMInboxHeaderCommunityGroupName.react","MWCMThreadTypes.bs","MWChatCalculateIsMutedFromExpireTime.bs","MWChatHeaderDetailsSubtitle.bs","MWLSContactTypeExactUtils.bs","MWSeparatorContainer.react","MWText.react","MWVerticalRhythm","MessagingThreadType.re","MessengerMuteUtils.bs","ReQL","ReQLSuspense","cr:4703","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={container:{alignItems:"x1cy8zhl",display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",minHeight:"xj9xw9b",$$css:!0},item:{alignItems:"x6s0dn4",display:"x78zum5",maxWidth:"x193iq5w",$$css:!0},middot:{paddingStart:"x1k2j06m",paddingEnd:"x10ogl3i",$$css:!0}};function a(a){var e=a.color,f=a.thread;a=a.threadNameSize;var g=c("useReStore")(),j=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("contacts")).getKeyRange(f.threadKey).filter(d("MWLSContactTypeExactUtils.bs").isIgContact)},[g,f.threadKey]),k=(j==null?void 0:j.secondaryName)!=null&&(j==null?void 0:j.secondaryName)!==""!==""?j.secondaryName:null;j=d("MWCMThreadTypes.bs").isJoinedCMThread(f.threadType);var l=d("I64").equal(f.threadType,c("MessagingThreadType.re").discoverablePublicChat),m=d("MessengerMuteUtils.bs").calcMuteUntilMs(f),n=d("MWChatCalculateIsMutedFromExpireTime.bs").useHook(m);m=!d("I64").equal(f.ongoingCallState,c("LSRtcCallState.re").noOngoingCall);var o=h.jsx("div",{className:"x1k2j06m x10ogl3i",children:h.jsx(c("MWText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:h.jsx(c("CometMiddot.react"),{})})}),p=h.jsx(d("LSThreadTitle.bs").make,{thread:f});return h.jsxs("div",{className:"x1cy8zhl x78zum5 xdt5ytf x1iyjqo2 xl56j7k xj9xw9b",children:[h.jsx("div",{className:"x6s0dn4 x78zum5 x193iq5w",children:h.jsxs(c("MWText.react"),{align:"center",color:e,isSemanticHeading:!0,numberOfLines:1,testid:void 0,type:a,children:[p,h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(d("LSVerificationBadge.bs").make,{size:"small",thread:f})})]})}),l?b("cr:4703")!=null&&f.memberCount!=null?h.jsxs(h.Fragment,{children:[h.jsx(c("MWVerticalRhythm"),{height:8}),h.jsx(c("MWText.react"),{align:"center",numberOfLines:1,type:"meta3",children:h.jsx(b("cr:4703"),{count:d("I64").to_int32(f.memberCount)})})]}):null:j?h.jsx(c("MWCMInboxHeaderCommunityGroupName.react"),{renderWrapper:function(a){return h.jsxs(h.Fragment,{children:[h.jsx(c("MWVerticalRhythm"),{height:6}),h.jsx("div",{className:"x6s0dn4 x78zum5 x193iq5w","data-testid":void 0,children:h.jsx(c("MWText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:a})})]})},thread:f}):m?h.jsxs(h.Fragment,{children:[h.jsx(c("MWVerticalRhythm"),{height:6}),h.jsxs(c("MWSeparatorContainer.react"),{separator:o,xstyle:i.item,children:[k!=null?h.jsx(c("MWText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:k}):null,h.jsx(c("MWText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:h.jsx(c("MWChatHeaderDetailsSubtitle.bs").ongoingCall,{})}),n?h.jsx(c("MWChatHeaderDetailsSubtitle.bs").mutedIcon,{forceInlineDisplay:!0}):null]})]}):h.jsx(d("LSPresenceStatusText.bs").make,{renderNullState:function(){return h.jsxs(c("MWSeparatorContainer.react"),{beforeContent:h.jsx(c("MWVerticalRhythm"),{height:6}),separator:o,xstyle:i.item,children:[k!=null?h.jsxs(c("MWText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:[" ",k," "]}):null,n?h.jsx(c("MWChatHeaderDetailsSubtitle.bs").mutedIcon,{forceInlineDisplay:!0}):null]})},renderWrapper:function(a){return h.jsxs(h.Fragment,{children:[h.jsx(c("MWVerticalRhythm"),{height:6}),h.jsxs(c("MWSeparatorContainer.react"),{separator:o,xstyle:i.item,children:[k!==null?h.jsx(c("MWText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:k}):null,h.jsx(c("MWText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:a}),n?h.jsx(c("MWChatHeaderDetailsSubtitle.bs").mutedIcon,{forceInlineDisplay:!0}):null]})]})},thread:f})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSContactLink.bs",["CometLink.react","CometPressable.react","CurrentEnvironment","MWLSContactTypeExactUtils.bs","XCometVanityURLControllerRouteBuilder","bs_caml_option","bs_int64","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.secondaryName,e=d("MWLSContactTypeExactUtils.bs").isIgContact(a);return b!==void 0&&e?"https://www.instagram.com/"+b:(c("CurrentEnvironment").facebookdotcom?"":"https://www.facebook.com")+c("XCometVanityURLControllerRouteBuilder").buildURL({vanity:c("bs_int64").to_string(a.id)})}var i={expanding:{display:"x78zum5",$$css:!0}};function b(a){var b=a.isText,e=a.children,f=a.contact,g=a.label;a=a.testid;b=b!==void 0?b:!0;var j=g!==void 0?c("bs_caml_option").some(g):void 0,k=f.secondaryName,l=d("MWLSContactTypeExactUtils.bs").isIgContact(f);if(k!==void 0&&l){l="https://www.instagram.com/"+k;if(b){k={children:e,href:l,target:"_blank"};g!==void 0&&(k.label=g);a!==void 0&&(k.testid=a);return h.jsx(c("CometLink.react"),babelHelpers["extends"]({},k))}k={children:e,expanding:!0,linkProps:{target:"_blank",url:l},overlayRadius:6,xstyle:function(a){return[i.expanding]}};j!==void 0&&(k.label=c("bs_caml_option").valFromOption(j));a!==void 0&&(k.testid=c("bs_caml_option").valFromOption(a));return h.jsx(c("CometPressable.react"),babelHelpers["extends"]({},k))}l=(c("CurrentEnvironment").facebookdotcom?"":"https://www.facebook.com")+c("XCometVanityURLControllerRouteBuilder").buildURL({vanity:c("bs_int64").to_string(f.id)});k=c("CurrentEnvironment").facebookdotcom?void 0:"_blank";if(b){f={children:e,href:l};k!==void 0&&(f.target=c("bs_caml_option").valFromOption(k));g!==void 0&&(f.label=g);a!==void 0&&(f.testid=a);return h.jsx(c("CometLink.react"),babelHelpers["extends"]({},f))}b={url:l};k!==void 0&&(b.target=c("bs_caml_option").valFromOption(k));g={children:e,expanding:!0,linkProps:b,overlayRadius:6,xstyle:function(a){return[i.expanding]}};j!==void 0&&(g.label=c("bs_caml_option").valFromOption(j));a!==void 0&&(g.testid=c("bs_caml_option").valFromOption(a));return h.jsx(c("CometPressable.react"),babelHelpers["extends"]({},g))}b.displayName=b.name+" [from "+f.id+"]";e=b;f=a;b=e;g.getHref=f;g.make=b}),98); __d("MWInboxHeaderDetailsContainer.bs",["CometLazyDialogTrigger.react","CometPlaceholder.react","CometPressable.react","JSResourceForInteraction","LSContactLink.bs","LSMessagingThreadTypeUtil.bs","MDSRow.react","MDSRowItem.react","MWCMUseFolder.bs","MWInboxHeaderDetails","MWThreadPicture.bs","MWUseAriaLabelForThread.bs","MWV2GetOtherUser.bs","ReQL.bs","ReQLSuspense","bs_caml_option","bs_curry","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={title:{maxWidth:"x193iq5w",$$css:!0}};function j(a){var b=a.children,e=a.thread,f=h.useRef(null),g=c("useReStore")();a=d("ReQLSuspense").useArray(function(){return d("ReQL.bs").take(d("ReQL.bs").leftJoin(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(g.table("participants")),{hd:e.threadKey,tl:0}),d("ReQL.bs").fromTableAscending(g.table("contacts"))),8)},[e.threadKey]);a=d("MWV2GetOtherUser.bs").useOtherUser(e,a);var j=d("MWCMUseFolder.bs").useHook(e),k=d("MWUseAriaLabelForThread.bs").useHook(e);if(a!==void 0){a=a[1];return h.jsx(d("LSContactLink.bs").make,{contact:a,isText:!1,label:a.name,children:b})}if(!d("LSMessagingThreadTypeUtil.bs").isGroup(e.threadType))return b;a={onClose:function(a){}};j!==void 0&&(a.folder=c("bs_caml_option").valFromOption(j));return h.jsx(c("CometLazyDialogTrigger.react"),{dialogProps:a,dialogResource:c("JSResourceForInteraction")("MWLSGroupMembershipDialog.react",{"class":"fluid",name:"MWLSGroupMembershipDialog"}).__setRef("MWInboxHeaderDetailsContainer.bs"),children:function(a){return h.jsx(c("CometPressable.react"),{"aria-label":k,onPress:function(b){return c("bs_curry")._1(a)},overlayDisabled:!0,ref:f,xstyle:function(a){return[i.title]},children:b})}})}j.displayName=j.name+" [from "+f.id+"]";b={make:j};var k={detailsContainer:{paddingStart:"x1h0ha7o",$$css:!0}};function a(a){var b=a.photoSize,e=a.badgeSize,f=a.threadNameSize,g=a.color,i=a.thread;a=a.isContainerPressable;b=b!==void 0?b:"s_40";e=e!==void 0?e:10;f=f!==void 0?f:"headlineEmphasized3";a=a!==void 0?a:!0;e=h.jsx(c("MDSRowItem.react"),{children:h.jsx(d("MWThreadPicture.bs").make,{badgeSize:e,photoSize:b,thread:i,withAltText:!1})});b={thread:i,threadNameSize:f};g!==void 0&&(b.color=c("bs_caml_option").valFromOption(g));f=h.jsx(c("MDSRowItem.react"),{expanding:!0,xstyle:k.detailsContainer,children:h.jsx(c("MWInboxHeaderDetails"),babelHelpers["extends"]({},b))});return h.jsx(c("MDSRow.react"),{expanding:!0,paddingHorizontal:0,paddingVertical:0,verticalAlign:"center",children:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:a?h.jsxs(j,{thread:i,children:[e,f]}):h.jsxs(h.Fragment,{children:[h.jsx(j,{thread:i,children:e}),f]})})})}a.displayName=a.name+" [from "+f.id+"]";e=a;f=b;a=e;g.ThreadPressable=f;g.make=a}),98); __d("MWInboxInfoSharedContentQPLLogger.bs",["QPLUserFlow","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h={contents:!1};function a(a){var b;switch(a.TAG){case 0:b="side_panel_media";break;case 1:b="side_panel_files";break;case 2:b="side_panel_links";break}h.contents=!0;c("QPLUserFlow").start(c("qpl")._(778117242,"206"),{annotations:{string:{entrypoint:b}},cancelOnUnload:!0})}function b(a){if(h.contents===!1){var b;switch(a.TAG){case 0:b="media";break;case 1:b="file";break;case 2:b="link";break}h.contents=!0;c("QPLUserFlow").start(c("qpl")._(778117242,"206"),{annotations:{string:{content_location:"thread",content_type:b,entrypoint:"thread"}},cancelOnUnload:!0})}c("QPLUserFlow").addPoint(c("qpl")._(778117242,"206"),"shared_content_click",{})}function d(a){var b;switch(a.TAG){case 0:b="open_tab_media";break;case 1:b="open_tab_files";break;case 2:b="open_tab_links";break}c("QPLUserFlow").addPoint(c("qpl")._(778117242,"206"),b,{})}function e(a,b){switch(a.TAG){case 0:c("QPLUserFlow").addPoint(c("qpl")._(778117242,"206"),"load_tab_media",{});c("QPLUserFlow").addAnnotations(c("qpl")._(778117242,"206"),{"int":{media_count:b}});return;case 1:c("QPLUserFlow").addPoint(c("qpl")._(778117242,"206"),"load_tab_files",{});c("QPLUserFlow").addAnnotations(c("qpl")._(778117242,"206"),{"int":{files_count:b}});return;case 2:c("QPLUserFlow").addPoint(c("qpl")._(778117242,"206"),"load_tab_links",{});c("QPLUserFlow").addAnnotations(c("qpl")._(778117242,"206"),{"int":{links_count:b}});return}}function f(a){var b;switch(a.TAG){case 0:b="media";break;case 1:b="file";break;case 2:b="link";break}c("QPLUserFlow").addPoint(c("qpl")._(778117242,"206"),"shared_content_click",{});c("QPLUserFlow").addAnnotations(c("qpl")._(778117242,"206"),{string:{content_location:"side_panel",content_type:b}});var d;switch(a.TAG){case 0:case 1:d=!1;break;case 2:d=!0;break}if(d){c("QPLUserFlow").endSuccess(c("qpl")._(778117242,"206"));h.contents=!1;return}}function i(a){c("QPLUserFlow").endCancel(c("qpl")._(778117242,"206"),{annotations:{string:{cancel_reason:"side_panel_navigated_back"}}}),h.contents=!1}function j(a){c("QPLUserFlow").endCancel(c("qpl")._(778117242,"206"),{annotations:{string:{cancel_reason:"close_info_panel"}}}),h.contents=!1}function k(a){c("QPLUserFlow").endCancel(c("qpl")._(778117242,"206"),{annotations:{string:{cancel_reason:"navigated_away"}}}),h.contents=!1}function l(a){c("QPLUserFlow").endSuccess(c("qpl")._(778117242,"206")),h.contents=!1}function m(a){c("QPLUserFlow").endCancel(c("qpl")._(778117242,"206"),{annotations:{string:{cancel_reason:"closed_viewer"}}}),h.contents=!1}g.logOpenSidePanel=a;g.logOpenSharedContentFromThread=b;g.logOpenTab=d;g.logLoadTab=e;g.logOpenSharedContentFromSidePanel=f;g.logNavigateBackFromSidePanel=i;g.logCloseInfoPanel=j;g.logNavigateAwaySidePanel=k;g.logOpenContentViewer=l;g.logCloseContentViewer=m}),98); __d("MWChatInThreadBanner.bs",["CometImageIcon_DEPRECATED.react","CometPressable.react","MDSRow.react","MDSRowItem.react","MDSTextPairing.react","MWText.react","TetraButton.react","bs_belt_Option","bs_caml_option","bs_curry","react","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={container:{backgroundColor:"xcrg951",position:"x1n2onr6",$$css:!0},grow:{flexGrow:"x1iyjqo2",$$css:!0},image:{marginEnd:"x11i5rnm",$$css:!0},infoLabel:{backgroundColor:"x1qhmfi1",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x4p5aij",paddingEnd:"x150jy0e",paddingBottom:"x1j85h84",paddingStart:"x1e558r4",textOverflow:"xlyipyv",whiteSpace:"xuxw1ft",$$css:!0},linkBanner:{width:"xh8yej3",$$css:!0},sheet:{borderBottom:"xdppsyt",$$css:!0},sheetInner:{paddingBottom:"x1a8lsjc",width:"xh8yej3",$$css:!0}};function j(a){var b=a.action;a=a.button;var d=a.ctaTitle;switch(b.TAG){case 0:return h.jsx(c("MDSRowItem.react"),{xstyle:i.grow,children:h.jsx(c("TetraButton.react"),{label:d,linkProps:{url:b._0},type:"secondary"})});case 1:var e=b._0,f={label:d,onPress:function(a){return c("bs_curry")._1(e)},type:"secondary"};b._1!==void 0&&(f.ref=c("bs_caml_option").valFromOption(b._1));return h.jsx(c("MDSRowItem.react"),{xstyle:i.grow,children:h.jsx(c("TetraButton.react"),babelHelpers["extends"]({},f))});case 2:return h.jsx(c("MDSRowItem.react"),{xstyle:i.grow,children:c("bs_curry")._1(b._0,function(a,b,e,f,g,i,j){return h.jsx(c("TetraButton.react"),{label:d,onPress:function(a){return c("bs_curry")._1(b)},ref:a,type:"secondary"})})});case 3:c("recoverableViolation")("In thread banner cta not implemented, CTA type: "+a.ctaType+" CTA Title: "+a.ctaTitle,"messenger_web_product");return null}}b={make:j};function a(a){var b=a.banner;a=a.ctaParser;var d=b.banner.iconUrl;d=d!==void 0?h.jsx(c("MDSRowItem.react"),{expanding:!1,children:h.jsx("div",{className:"x11i5rnm",children:h.jsx(c("CometImageIcon_DEPRECATED.react"),{size:24,src:d,style:"circle"})})}):null;var e=h.jsx(c("MDSRowItem.react"),{expanding:!0,children:h.jsx(c("MDSTextPairing.react"),{body:c("bs_belt_Option").getWithDefault(b.banner.titleSectionOne,"")+c("bs_belt_Option").getWithDefault(b.banner.titleSectionTwo,""),bodyLineLimit:1,level:4,meta:b.banner.heading,metaLineLimit:1,metaLocation:"above"})}),f=b.banner.infoLabel;f=f!==void 0?h.jsx(c("MDSRowItem.react"),{children:h.jsx(c("MWText.react"),{type:"meta1",children:h.jsx("span",{className:"x1qhmfi1 x1lcm9me x1yr5g0i xrt01vj x10y3i5r x6ikm8r x10wlt62 x4p5aij x150jy0e x1j85h84 x1e558r4 xlyipyv xuxw1ft",children:f})})}):null;var g=b.leftButton,k=b.rightButton,l,m=0,n;g!==void 0?k!==void 0?l=h.jsxs(c("MDSRow.react"),{paddingTop:8,spacing:4,children:[h.jsx(j,{action:c("bs_curry")._2(a,b,g),button:g}),h.jsx(j,{action:c("bs_curry")._2(a,b,k),button:k})]}):(n=g,m=1):k!==void 0?(n=k,m=1):l=null;m===1&&(l=h.jsx(c("MDSRow.react"),{paddingTop:8,children:h.jsx(j,{action:c("bs_curry")._2(a,b,n),button:n})}));var o=h.jsxs("div",{className:"x1a8lsjc xh8yej3",children:[h.jsxs(c("MDSRow.react"),{children:[d,e,f]}),l]});g=c("bs_belt_Option").map(b.bannerAction,c("bs_curry")._1(a,b));var p;if(g!==void 0)switch(g.TAG){case 0:p=h.jsx(c("CometPressable.react"),{expanding:!0,linkProps:{target:"_blank",url:g._0},xstyle:function(a){return[i.linkBanner]},children:o});break;case 1:var q=g._0;k={children:o,expanding:!0,onPress:function(a){return c("bs_curry")._1(q)}};g._1!==void 0&&(k.ref=c("bs_caml_option").valFromOption(g._1));p=h.jsx(c("CometPressable.react"),babelHelpers["extends"]({},k));break;case 2:p=c("bs_curry")._1(g._0,function(a,b,d,e,f,g,i){return h.jsx(c("CometPressable.react"),{expanding:!0,onPress:function(a){return c("bs_curry")._1(b)},ref:a,children:o})});break;case 3:c("recoverableViolation")("In thread banner cta not implemented: "+c("bs_belt_Option").getWithDefault(c("bs_belt_Option").map(b.bannerAction,function(a){return a.ctaType}),""),"messenger_web_product");p=o;break}else p=o;return h.jsx("div",{className:"xcrg951 x1n2onr6",children:h.jsx("div",{className:"xdppsyt",children:p})})}a.displayName=a.name+" [from "+f.id+"]";e=a;d=b;f=e;g.BannerButton=d;g.make=f}),98); __d("MWLSEnsureInThreadBannerExists.bs",["LS.bs","LSFetchBanners","MWThreadKey.bs","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")(),e=d("MWThreadKey.bs").useIdMemoizedExn();h.useEffect(function(){var a=b.runInTransaction(function(a){return c("LSFetchBanners")(e,d("LS.bs").make(a))},"readwrite");c("promiseDone")(a)},[e,b])}g.useHook=a}),98); __d("MWLSExecuteInThreadBannerCta.bs",["LS.bs","LSExecuteCTA","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")();return h.useCallback(function(a){var e=b.runInTransaction(function(b){return c("LSExecuteCTA")(a,d("LS.bs").make(b))},"readwrite");c("promiseDone")(e)},[b])}g.useHook=a}),98); __d("MWLSMarketplaceServerMutationCta.bs",["LS.bs","LSServerMutationCta","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(){var a=c("useReStore")();return h.useCallback(function(b,e){var f=a.runInTransaction(function(a){return c("LSServerMutationCta")(b,e,d("LS.bs").make(a))},"readwrite");c("promiseDone")(f)},[a])}g.useHook=a}),98); __d("MWLSMarketplaceCtaParser.bs",["CometLazyPopoverTrigger.react","CometMarketplaceConfirmMarkAsPaidDialog.entrypoint","CometMarketplaceCreateDiscountedPriceDialog.entrypoint","CometMarketplaceInboxLabelChatDialog.entrypoint","CometMarketplaceLogger","CometMarketplaceSellerListingTransactionReportingFromThreadViewDialog.entrypoint","JSResource","MWLSExecuteInThreadBannerCta.bs","MWLSMarketplaceServerMutationCta.bs","MWPActor.bs","MWThreadKey.bs","ReQL.bs","ReQLSubscription.bs","bs_belt_Option","bs_caml","bs_curry","bs_int64","bs_js_dict","bs_js_json","react","recoverableViolation","useCometEntryPointDialog","useCometLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=["marketplace_mark_as_available","marketplace_mark_as_pending","marketplace_mark_as_sold","marketplace_mark_as_sold_scaled","marketplace_mark_as_sold_with_txn_survey","marketplace_mark_as_sold_with_txn_survey_scaled","marketplace_mark_as_sold_with_select_buyer","marketplace_mark_as_sold_with_select_buyer_scaled"];var i=new Set(b);e=new Set(b.concat(["marketplace_rate_buyer","marketplace_scaled_rate_buyer","marketplace_rate_seller","marketplace_scaled_rate_seller","marketplace_report_buyer","marketplace_report_seller","marketplace_see_details","marketplace_request_payment","marketplace_send_payment","marketplace_find_similar","marketplace_more_options","marketplace_p2m_request_payment","marketplace_xma_call_function","marketplace_label_chat","marketplace_mark_as_paid","marketplace_view_profile","marketplace_create_discount","marketplace_server_mutation","marketplace_banner_open_native"]));function j(a){var b=c("useReStore")(),e=d("MWPActor.bs").useActor(),f=d("MWThreadKey.bs").useIdMemoizedExn();a=h.useMemo(function(){return d("ReQL.bs").map(d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("participants")),{hd:f,tl:0}),function(a){return c("bs_caml").i64_neq(a.contactId,e)}),function(a){return a.contactId})},[JSON.stringify(e),f,b]);a=d("ReQLSubscription.bs").useFirst(a);if(a!==void 0)return c("bs_int64").to_string(a)}function a(a){var b=d("MWLSExecuteInThreadBannerCta.bs").useHook(),e=d("MWLSMarketplaceServerMutationCta.bs").useHook(),f=j(),g=h.useRef(null);a=c("useCometLazyDialog")(c("JSResource")("CometFRX_DEPRECATED.react").__setRef("MWLSMarketplaceCtaParser.bs"));var k=a[0],l=d("MWThreadKey.bs").useIdMemoizedExn();a=c("bs_int64").to_string(l);var m=c("useCometEntryPointDialog")(c("CometMarketplaceInboxLabelChatDialog.entrypoint"),{thread_id:a}),n=m[0];c("useCometEntryPointDialog")(c("CometMarketplaceSellerListingTransactionReportingFromThreadViewDialog.entrypoint"),{threadId:a});m=c("useCometEntryPointDialog")(c("CometMarketplaceConfirmMarkAsPaidDialog.entrypoint"),{threadId:a});var o=m[0];m=c("useCometEntryPointDialog")(c("CometMarketplaceCreateDiscountedPriceDialog.entrypoint"),{threadId:a});var p=m[0];return h.useMemo(function(){var a=function a(j,m){var q=m.ctaType;if(q==="marketplace_see_details"||q==="marketplace_banner_open_native"){var r=m.webviewUrl;if(r!==void 0)return{_0:r,TAG:0};r=m.deeplinkUrl;if(r!==void 0)return{_0:r,TAG:0};else{c("recoverableViolation")("Marketplace see details cta without url","messenger_web_product");return{_0:void 0,TAG:3}}}if(q==="marketplace_view_profile"){r=m.webviewUrl;if(r!==void 0)return{_0:r,TAG:0};r=m.deeplinkUrl;if(r!==void 0)return{_0:r,TAG:0};else{c("recoverableViolation")("Marketplace view profile cta without url","messenger_web_product");return{_0:void 0,TAG:3}}}if(q==="marketplace_scaled_rate_seller")if(m.webviewUrl!=null)return{_0:m.webviewUrl,TAG:0};else return{_0:void 0,TAG:3};if(q==="marketplace_more_options"&&j.overflowMenuActions.length>0)return{_0:function(b){return h.jsx(c("CometLazyPopoverTrigger.react"),{align:"end",popoverProps:{ctaParser:function(b){return a(j,b)},menu:j.overflowMenuActions},popoverResource:c("JSResource")("MWLSMarketplacePopoverMenu.react").__setRef("MWLSMarketplaceCtaParser.bs"),children:b})},TAG:2};if(q==="marketplace_report_buyer"||q==="marketplace_report_seller")if(f!==void 0)return{_0:function(a){return k({entryPoint:"REPORT_BUTTON",id:f,location:q==="marketplace_report_buyer"?"marketplace_messenger_report_buyer":"marketplace_messenger_report_seller"},function(a){})},_1:g,TAG:1};else{c("recoverableViolation")("Haven't implemented report buyer/seller for threads with more than 1 person","messenger_web_product");return{_0:void 0,TAG:3}}if(q==="marketplace_mark_as_sold_with_txn_survey"||q==="marketplace_mark_as_sold_with_txn_survey_scaled")return{_0:function(a){return c("bs_curry")._1(b,m.ctaId)},_1:void 0,TAG:1};if(i.has(q))return{_0:function(a){return c("bs_curry")._1(b,m.ctaId)},_1:void 0,TAG:1};if(q!=="marketplace_server_mutation")if(q==="marketplace_label_chat")return{_0:function(a){return n({threadID:c("bs_int64").to_string(l)},function(a){return c("bs_curry")._1(b,m.ctaId)})},_1:void 0,TAG:1};else if(q==="marketplace_mark_as_paid")return{_0:function(a){return o({threadID:c("bs_int64").to_string(l)},function(a){return c("bs_curry")._1(b,m.ctaId)})},_1:void 0,TAG:1};else if(q==="marketplace_create_discount")return{_0:function(a){d("CometMarketplaceLogger").logClick("create_discount","messenger_thread_view");return p({threadID:c("bs_int64").to_string(l)},function(a){return c("bs_curry")._1(b,m.ctaId)})},_1:void 0,TAG:1};else return{_0:void 0,TAG:3};r=m.actionContentBlob;var s=r!==void 0?c("bs_belt_Option").getExn(c("bs_js_json").decodeString(c("bs_belt_Option").getExn(c("bs_js_dict").get(c("bs_belt_Option").getExn(c("bs_js_json").decodeObject(JSON.parse(r))),"marketplace_cta_type")))):"";return{_0:function(a){return c("bs_curry")._2(e,l,s)},_1:void 0,TAG:1}};return a},[b,e,f,k,p,n,o,l])}f=e;b=j;e=a;g.marketplaceCta=f;g.useOtherParticipantId=b;g.useHook=e}),98); __d("MWLSInThreadBannerCtaParser.bs",["MWLSAdContextCtaParser.bs","MWLSMarketplaceCtaParser.bs","bs_curry"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("MWLSMarketplaceCtaParser.bs").useHook(),e=d("MWLSAdContextCtaParser.bs").useHook();return function(a,f){var g=f.ctaType;if(d("MWLSMarketplaceCtaParser.bs").marketplaceCta.has(g))return c("bs_curry")._2(b,a,f);else if(d("MWLSAdContextCtaParser.bs").adContextCta.has(g))return c("bs_curry")._2(e,a,f);else return{_0:void 0,TAG:3}}}g.useHook=a}),98); __d("MWProactiveWarningNoticeInThreadBanner.react",["ix","CometIcon.react","CometPressable.react","MDSRow.react","MDSRowItem.react","MWText.react","fbicon","react","useIXTProactiveWarningFlowTriggerDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j={chevron:{paddingTop:"x1nn3v0j",$$css:!0},container:{backgroundColor:"xcrg951",position:"x1n2onr6",$$css:!0},grow:{flexGrow:"x1iyjqo2",paddingTop:"x1yrsyyn",$$css:!0},image:{paddingTop:"x4p5aij",$$css:!0},linkBanner:{width:"xh8yej3",$$css:!0},sheet:{borderBottom:"xdppsyt",$$css:!0},sheetInner:{paddingBottom:"x1a8lsjc",width:"xh8yej3",$$css:!0}};function a(a){var b=c("useIXTProactiveWarningFlowTriggerDialog")({proactive_warning_request_context:a.context,trigger_event_type:"OPEN_PROACTIVE_WARNING_FLOW"}),e=b[0],f=function(){};return i.jsx("div",{className:"xcrg951 x1n2onr6",children:i.jsx("div",{className:"xdppsyt",children:i.jsx(c("CometPressable.react"),{expanding:!0,onPress:function(){e({flowCallbacks:{onClose:f}})},xstyle:j.linkBanner,children:i.jsx("div",{className:"x1a8lsjc xh8yej3",children:i.jsxs(c("MDSRow.react"),{children:[i.jsx(c("MDSRowItem.react"),{xstyle:j.image,children:i.jsx("div",{children:i.jsx(c("CometIcon.react"),{color:"highlight",icon:d("fbicon")._(h("492713"),16),size:16})})}),i.jsx(c("MDSRowItem.react"),{xstyle:j.grow,children:i.jsx(c("MWText.react"),{type:"body3",children:a.label})}),i.jsx(c("MDSRowItem.react"),{xstyle:j.chevron,children:i.jsx(c("MWText.react"),{type:"body3",children:i.jsx("div",{children:i.jsx(c("CometIcon.react"),{disabled:!0,icon:d("fbicon")._(h("492547"),10),size:10})})})})]})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWLSInThreadBannerComponent.bs",["MWChatInThreadBanner.bs","MWLSEnsureAdContextExists.bs","MWLSEnsureInThreadBannerExists.bs","MWLSInThreadBanner.bs","MWLSInThreadBannerCtaParser.bs","MWLSThread.bs","MWProactiveWarningNoticeInThreadBanner.react","MWThreadKey.bs","ReQLSubscription.bs","bs_belt_Option","bs_caml","bs_caml_int64","bs_caml_option","bs_curry","bs_int64","cr:1066","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=b("cr:1066")==null?void 0:c("bs_caml_option").some(b("cr:1066"));var i=b("cr:1066")==null?function(a,b){}:b("cr:1066").useHook;function a(a){d("MWLSEnsureInThreadBannerExists.bs").useHook();d("MWLSEnsureAdContextExists.bs").useHook();var e=c("useReStore")(),f=d("MWThreadKey.bs").useIdMemoizedExn();a=h.useMemo(function(){return d("MWLSInThreadBanner.bs").getInThread(e,f)},[e,f]);a=d("ReQLSubscription.bs").useFirst(a);var g=d("MWLSInThreadBannerCtaParser.bs").useHook(),j=d("MWLSThread.bs").useThread(f),k=c("bs_curry")._2(i,!0,j);if(a===void 0)return null;var l=a.banner.bannerCtaType;if(l!==void 0){if(l==="ads_context")return h.jsx(d("MWChatInThreadBanner.bs").make,{banner:a,ctaParser:g});l=1}else l=1;if(l===1){l=a.banner.cta1Type;var m=a.banner.cta2Type;if(l!==void 0&&m!==void 0){if(l==="proactive_warning_affirmative"||l==="proactive_warning_negative"||m==="proactive_warning_affirmative"||m==="proactive_warning_negative")if(!(b("cr:1066")==null)&&k!==void 0&&j!==void 0&&c("bs_caml").i64_gt(c("bs_belt_Option").getWithDefault(j.proactiveWarningDismissTime,c("bs_caml_int64").zero),c("bs_int64").zero))return h.jsx(c("MWProactiveWarningNoticeInThreadBanner.react"),{context:k.context,label:"See things you can do to stay safe"});else return null;l=2}else l=2;if(l===2)return h.jsx(d("MWChatInThreadBanner.bs").make,{banner:a,ctaParser:g})}}f=a;a=e;e=i;f=f;g.$MWProactiveWarningPayload$OR$null$requireCond=b("cr:1066");g.canfetchProactiveWarningForTopBanner=a;g.useFetchProactiveWarningPaylod=e;g.make=f}),98); __d("MWChatUnsendNUXReceiverBanner.bs",["fbt","ix","CometLazyDialogTrigger.react","CometSkittleIcon.react","JSResource","MDSRow.react","MDSRowItem.react","MWText.react","TetraButton.react","bs_curry","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={button:{flexBasis:"x1r8uery",flexGrow:"x1iyjqo2",$$css:!0},card:{backgroundColor:"xcrg951",boxShadow:"x7m3og9",position:"x10l6tqk",width:"xh8yej3",zIndex:"x1vjfegm",$$css:!0},imageRow:{paddingTop:"x1nn3v0j",$$css:!0}};function a(a){var b=a.onDismiss,e=a.onView;a=h._("__JHASH__6a2Fgvho2wx__JHASH__");var f=h._("__JHASH__ZJi8hPzvWwM__JHASH__");return j.jsxs("div",{className:"xcrg951 x7m3og9 x10l6tqk xh8yej3 x1vjfegm",children:[j.jsxs(c("MDSRow.react"),{paddingHorizontal:12,paddingTop:12,children:[j.jsx(c("MDSRowItem.react"),{xstyle:[k.imageRow],children:j.jsx(c("CometSkittleIcon.react"),{color:"gray",icon:d("fbicon")._(i("685851"),16),size:36})}),j.jsxs(c("MDSRowItem.react"),{expanding:!0,children:[j.jsx(c("MDSRow.react"),{paddingHorizontal:0,paddingTop:0,children:j.jsx(c("MDSRowItem.react"),{children:j.jsx(c("MWText.react"),{color:"primary",type:"headline4",children:a})})}),j.jsx(c("MDSRow.react"),{paddingHorizontal:0,paddingTop:8,children:j.jsx(c("MDSRowItem.react"),{children:j.jsx(c("MWText.react"),{color:"secondary",type:"body4",children:f})})})]})]}),j.jsxs(c("MDSRow.react"),{paddingHorizontal:12,paddingTop:8,paddingVertical:12,wrap:"forward",children:[j.jsx(c("MDSRowItem.react"),{xstyle:[k.button],children:j.jsx(c("CometLazyDialogTrigger.react"),{dialogProps:{onClose:function(a){}},dialogResource:c("JSResource")("MWChatUnsendNUXInterstitialDialog.react").__setRef("MWChatUnsendNUXReceiverBanner.bs"),children:function(a){return j.jsx(c("TetraButton.react"),{label:h._("__JHASH__LPDl6ep1oBy__JHASH__"),onPress:function(b){c("bs_curry")._1(a);return c("bs_curry")._1(e)},type:"secondary"})}})}),j.jsx(c("MDSRowItem.react"),{xstyle:[k.button],children:j.jsx(c("TetraButton.react"),{label:h._("__JHASH__IRN53cEfYnc__JHASH__"),onPress:b,type:"secondary"})})]})]})}a.displayName=a.name+" [from "+f.id+"]";b=a;g.make=b}),98); __d("useMessengerUnsendNUX",["CometDismissFBNuxMutation","CometLogImpressionFBNuxMutation","CometRelay","RelayHooks","promiseDone","react","useMessengerUnsendNUXQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useCallback,j=h!==void 0?h:h=b("useMessengerUnsendNUXQuery.graphql");function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=i(function(e){c("promiseDone")(d("CometRelay").fetchQuery(b,j,{id:a}).toPromise(),function(a){a=(a=a==null?void 0:(a=a.nux)==null?void 0:a.should_show)!=null?a:!1;e(a)},null)},[b,a]),f=i(function(){d("CometDismissFBNuxMutation").commit(b,a)},[b,a]),g=i(function(){d("CometLogImpressionFBNuxMutation").commit(b,a)},[b,a]);return[e,f,g]}g["default"]=a}),98); __d("MWChatUnsendNUXReceiver.bs",["MWChatUnsendNUXReceiverBanner.bs","MWPActor.bs","MWThreadKey.bs","ReQL.bs","SortedAsyncIterable.bs","bs_belt_Option","bs_caml","bs_caml_int64","bs_curry","react","useMessengerUnsendNUX","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){return Date.now()-c("bs_caml_int64").to_float(c("bs_belt_Option").getWithDefault(a.unsentTimestampMs,c("bs_caml_int64").zero))<=1e4}function a(a){var b=d("MWPActor.bs").useActor(),e=d("MWThreadKey.bs").useIdMemoizedExn(),f=c("useReStore")();a=h.useState(function(){return!1});var g=a[0],j=a[1],k=h.useRef(!1),l=h.useRef(!1),m=h.useRef();a=c("useMessengerUnsendNUX")(8568);var n=a[0],o=a[1],p=a[2],q=h.useCallback(function(a){a=m.current;if(a!==void 0){c("bs_curry")._1(a);m.current=void 0;return}},[]);a=h.useCallback(function(a){l.current=!0;c("bs_curry")._1(o);c("bs_curry")._1(q);return c("bs_curry")._1(j,function(a){return!1})},[]);var r=h.useCallback(function(a){var b=!g&&!k.current;if(b&&i(a)){k.current=!0;return c("bs_curry")._1(n,function(a){k.current=!1;if(a)return c("bs_curry")._1(j,function(a){return!0});else{c("bs_curry")._1(q);l.current=!0;return}})}},[b,g]);h.useEffect(function(){if(l.current)return;else{m.current=d("SortedAsyncIterable.bs").subscribe(d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(f.table("messages")),{hd:e,tl:0}),function(a){if(a.isUnsent)return c("bs_caml").i64_neq(a.senderId,b);else return!1}),function(a,b){switch(b.TAG){case 0:case 1:return c("bs_curry")._1(r,b._0);case 2:return}});return function(a){c("bs_curry")._1(q);if(g&&!l.current)return c("bs_curry")._1(p)}}},[g,r,e,q]);if(g)return h.jsx(d("MWChatUnsendNUXReceiverBanner.bs").make,{onDismiss:a,onView:a});else return null}b=8568;e=1e4;f=a;a=b;b=e;e=i;f=f;g.cNUX_ID=a;g.cTEN_SECONDS=b;g.isMessageUnsentInLastTenSeconds=e;g.make=f}),98); __d("MWChatUnsendNUXSender.bs",["JSResource","MWChatUnsendNUXReceiver.bs","MWPActor.bs","MWThreadKey.bs","ReQL.bs","SortedAsyncIterable.bs","bs_caml","bs_curry","react","useCometLazyDialog","useMessengerUnsendNUX","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=d("MWPActor.bs").useActor(),e=d("MWThreadKey.bs").useIdMemoizedExn(),f=c("useReStore")(),g=h.useRef(!1),i=h.useRef(!1),j=h.useRef(!1),k=h.useRef();a=c("useMessengerUnsendNUX")(8598);var l=a[0],m=a[1],n=h.useCallback(function(a){a=k.current;if(a!==void 0){c("bs_curry")._1(a);k.current=void 0;return}},[]),o=h.useCallback(function(a){if(!j.current){j.current=!0;c("bs_curry")._1(n);return c("bs_curry")._1(m)}},[]);a=c("useCometLazyDialog")(c("JSResource")("MWChatUnsendNUXSenderDialog.react").__setRef("MWChatUnsendNUXSender.bs"));var p=a[0],q=h.useCallback(function(a){var b=!g.current&&!i.current;if(b&&d("MWChatUnsendNUXReceiver.bs").isMessageUnsentInLastTenSeconds(a)){g.current=!0;return c("bs_curry")._1(l,function(a){g.current=!1,a?(p({onView:o},function(a){}),i.current=!0):(c("bs_curry")._1(n),j.current=!0)})}},[b,n]);h.useEffect(function(){k.current=d("SortedAsyncIterable.bs").subscribe(d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(f.table("messages")),{hd:e,tl:0}),function(a){if(a.isUnsent)return c("bs_caml").i64_eq(a.senderId,b);else return!1}),function(a,b){switch(b.TAG){case 0:case 1:return c("bs_curry")._1(q,b._0);case 2:return}});return n},[e,q,n]);return null}b=8598;e=a;g.cNUX_ID=b;g.make=e}),98); __d("MWChatVideoPlayerControls.react",["VideoPlayerControlsContainerOverlay.react","VideoPlayerControlsGroups.react","VideoPlayerFullscreenControl.react","VideoPlayerHooks","VideoPlayerPlaybackControl.react","VideoPlayerPlaybackTimer.react","VideoPlayerScrubber.react","VideoPlayerVolumeControl.react","react","useVideoPlayerBigPlayButtonOverlay","useVideoPlayerDefaultControlsVisibility"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){return h.jsx("span",{className:"x12y6twl x1g0ag68",children:a.children})}i.displayName=i.name+" [from "+f.id+"]";function a(a){var b=c("useVideoPlayerDefaultControlsVisibility")(),e=b.isControlsVisible;b=b.onUserInteraction;var f=d("VideoPlayerHooks").usePaused();f=c("useVideoPlayerBigPlayButtonOverlay")({forceVisible:f});var g=f.bigPlayButtonElement;f=f.bigPlayButtonIsVisible;var j=d("VideoPlayerHooks").useIsFullscreen();e=e&&!f;f=h.jsx(c("VideoPlayerControlsContainerOverlay.react"),{isVisible:e,children:j?h.jsxs(h.Fragment,{children:[h.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{children:[h.jsx(c("VideoPlayerPlaybackControl.react"),{}),h.jsx(c("VideoPlayerPlaybackTimer.react"),{})]}),h.jsx(d("VideoPlayerControlsGroups.react").Expanded,{children:h.jsx(c("VideoPlayerScrubber.react"),{onUserInteraction:b})}),h.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{children:[h.jsx(c("VideoPlayerFullscreenControl.react"),{onUserInteraction:b}),h.jsx(c("VideoPlayerVolumeControl.react"),{onUserInteraction:b})]})]}):h.jsxs(h.Fragment,{children:[h.jsx(d("VideoPlayerControlsGroups.react").Contracted,{children:h.jsx(i,{children:h.jsx(c("VideoPlayerPlaybackControl.react"),{})})}),h.jsx(d("VideoPlayerControlsGroups.react").Expanded,{children:h.jsx(c("VideoPlayerScrubber.react"),{onUserInteraction:b})}),h.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{children:[a.hideExpandButton?null:h.jsx(i,{children:h.jsx(c("VideoPlayerFullscreenControl.react"),{onUserInteraction:b})}),h.jsx(i,{children:h.jsx(c("VideoPlayerVolumeControl.react"),{onUserInteraction:b})})]})]})});return h.jsxs(h.Fragment,{children:[g,f]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatVideoPlayer.react",["CometProductAttribution","GraphQLVideoAutoplayGatingResult","MWChatVideoAutoplaySettingContext","MWChatVideoPlayerControls.react","VideoPlayerDefaultControls.react","VideoPlayerProgressiveImplementationData","VideoPlayerProgressiveImplementationV2.react","VideoPlayerSurface.react","VideoPlayerX.react","computeAspectRatio","getVideoPlayerAutoplayProps","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={link_context:null,rootName:"MWChatMediaRoot.react",tap_point:"unexpected",tracePolicy:"comet.sharedmediaviewer.media",trackingNodes:null},j=function(a,b){switch(a){case"mwchat":return h.jsx(c("MWChatVideoPlayerControls.react"),{hideExpandButton:b===!0});case"default":return h.jsx(c("VideoPlayerDefaultControls.react"),{});case"none":return null;default:return null}};function a(a){var b=a.autoPlaySetting,e=a.controls,f=a.fbid,g=a.hdSrc,k=a.hideExpandButton,l=a.initialForceHD,m=a.originalHeight,n=a.originalWidth;a=a.sdSrc;l=d("VideoPlayerProgressiveImplementationData").makeProgressiveImplementationData({hdSrc:g,hdSrcPreferred:(g=l)!=null?g:!1,isExternalMedia:!1,sdSrc:a});g=d("MWChatVideoAutoplaySettingContext").useMWChatVideoAutoplaySetting();if(l==null)return null;a=[{Component:c("VideoPlayerProgressiveImplementationV2.react"),data:l,typename:"VideoPlayerProgressiveImplementation"}];l=c("getVideoPlayerAutoplayProps")(d("GraphQLVideoAutoplayGatingResult").makeGraphQLVideoAutoplayGatingResult("unknown",b!=null?b:g,!0),"respect_user_settings",null);b=c("computeAspectRatio")(n,m);return h.createElement(c("VideoPlayerX.react"),babelHelpers["extends"]({},l,{implementations:a,key:f,loopCount:-1,playerOriginOverride:"messaging",portalingEnabled:!1,productAttribution:{v2:[d("CometProductAttribution").getProductAttributionEntryV2(i)]},subOrigin:"messenger_thread",videoFBID:f,videoPixelsAspectRatio:b}),h.jsx(c("VideoPlayerSurface.react"),{children:j(e,k)}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatRTCButtons.bs",["fbt","CometPressable.react","JSResource","LSContactBitOffset.bs","LSContactCapabilityBitOffset.bs","LSContactType.bs","LSMessagingThreadTypeUtil.bs","LSRtcCallState.bs","LSThreadBitOffset.bs","LSThreadCapabilityBitOffset.bs","MAWGating","MWChatContactPresenceHook.bs","MWChatIsMessageRequest.bs","MWChatRTCButtonIcons.bs","MWLSFeatureLimitedStatus.bs","MWPActor.bs","MWStartRTCCallUtils","MWTooltip.react","MessagingThreadType.bs","MessengerDesktopDeepLinkUtils","MessengerDesktopLocalServerRequest","ODS","Promise","RTCCallState.bs","ReQL.bs","ReQLSubscription.bs","ReQLSuspense","bs_belt_Option","bs_caml","bs_caml_int64","bs_caml_option","bs_curry","bs_int64","bs_js_null_undefined","emptyFunction","gkx","promiseDone","qex","react","useCometLazyDialog","useRTWebCometStartCallCallback","useReStore","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j="startVideoCall",k="startVoiceCall",l="joinVideoChat";function m(a,e,f,g){var h=c("useReStore")(),j=c("useRTWebCometStartCallCallback")(),k=d("MWPActor.bs").useActor();return i.useCallback(function(i){i=b("Promise").all([d("ReQL.bs").first(d("ReQL.bs").map(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(h.table("rtc_ongoing_calls_on_threads_v2")),{hd:a.threadKey,tl:0}),function(a){return a.ongoingCallServerInfoData})),d("ReQL.bs").first(d("ReQL.bs").map(d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(h.table("participants")),{hd:a.threadKey,tl:0}),function(a){return c("bs_caml").i64_neq(a.contactId,k)}),function(a){return c("bs_int64").to_string(a.contactId)})),d("ReQL.bs").first(d("ReQL.bs").map(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(h.table("mi_act_mapping_table")),{hd:a.threadKey,tl:0}),function(a){return a.jid}))]);i=i.then(function(h){var i=h[1],k=h[0];c("bs_curry")._1(e);j({existingCall:k!==void 0?{call_state:d("RTCCallState.bs").ofLsRtcCallState(a.ongoingCallState,a.threadType),initiator_fbid:null,server_info_data:c("bs_js_null_undefined").fromOption(c("bs_caml_option").valFromOption(k))}:null,isE2eeMandated:d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType),mediaType:f,thread:{e2eeThreadID:c("bs_belt_Option").map(h[2],function(a){return c("bs_int64").to_string(a)}),id:c("bs_int64").to_string(a.threadKey),secureOneToOneThreadPeerId:i!==void 0&&c("bs_caml").i64_eq(a.threadType,d("MessagingThreadType.bs").secureMessageOverWaOneToOne)?c("bs_caml_option").some(c("bs_caml_option").valFromOption(i)):void 0,type:c("bs_caml_int64").to_int32(a.threadType)},trigger:g});return b("Promise").resolve()});c("promiseDone")(i)},[h,j,JSON.stringify(a.threadKey),a.ongoingCallState,g,e])}function n(a,e,f,g,h){var j=i.useRef(c("uuid")()).current;return i.useCallback(function(e){var g=c("bs_int64").to_string(a.threadKey),i=f==="video"?1:0;g="/call?threadid="+g+"&isvideocall="+i+"&funnel_id="+j;d("ODS").bumpEntityKey(3303,"dapp_calling_entrypoints","initiating_dapp_call");d("MWStartRTCCallUtils").logCallAttemptViaLocalhost({funnelSessionId:j});c("promiseDone")(b("Promise").all([new(c("MessengerDesktopLocalServerRequest"))(g,d("MessengerDesktopDeepLinkUtils").PORT).setOnLoadEndHandler(function(){}).setErrorHandler(function(a){d("ODS").bumpEntityKey(3303,"dapp_calling_entrypoints","call_failed_with_error_"+a),h(e)}).setTimeoutHandler(function(){d("ODS").bumpEntityKey(3303,"dapp_calling_entrypoints","call_timed_out"),h(e)}).send()]))},[f,j,a.threadKey,h])}function o(a){var b=c("useReStore")(),e=d("MWPActor.bs").useActor(),f=i.useMemo(function(){return d("ReQL.bs").take(d("ReQL.bs").filter(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("participants")),{hd:a.threadKey,tl:0}),function(a){return c("bs_caml").i64_neq(a.contactId,e)}),1)},[b,a.threadKey,JSON.stringify(e)]);f=d("ReQLSubscription.bs").useArray(f);return d("MWChatContactPresenceHook.bs").useHasActiveContact(f.map(function(a){return a.contactId}))}function p(a){var b=a.threadKey,e=c("useReStore")(),f=d("MWPActor.bs").useActor();a=d("ReQLSubscription.bs").useArray(i.useMemo(function(){return d("ReQL.bs").map(d("ReQL.bs").filter(d("ReQL.bs").take(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("participants")),{hd:b,tl:0}),2),function(a){return c("bs_caml").i64_neq(a.contactId,f)}),function(a){return d("ReQLSuspense").first(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(e.table("contacts")),{hd:a.contactId,tl:0}))})},[e,JSON.stringify(b),JSON.stringify(f)]));var g;if(a.length!==1)g=!1;else{var h=a[0];g=h!==void 0?c("bs_caml").i64_eq(h.contactType,d("LSContactType.bs").page):!1}if(!g)return[!0,!0];h=!0;g=!0;for(var j=0,k=a.length;j=d("MWGroupLimitConfig.bs").gxac:d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType)?b>=c("bs_curry")._1(d("MWGroupLimitConfig.bs").armadillo):b>=d("MWGroupLimitConfig.bs").nonGxac;b=d("MWXacGating.bs").isGroupsEnabled()&&b>=d("MWGroupLimitConfig.bs").gxac;return[f,b]}function b(a,b){var e=h.useMemo(function(){if(d("MWXacGating.bs").isGroupsEnabled())return a.some(d("MWInteropTokenUtils.bs").isInterop);else return!1},[a]),f=a.length;e=e?f>=(d("MWGroupLimitConfig.bs").gxac-1|0):b?f>=(c("bs_curry")._1(d("MWGroupLimitConfig.bs").armadillo)-1|0):f>=(d("MWGroupLimitConfig.bs").nonGxac-1|0);b=d("MWXacGating.bs").isGroupsEnabled()&&f>=d("MWGroupLimitConfig.bs").gxac;return[e,b]}e=i;f=a;a=b;g.emptySelectedParticipants=e;g.useHookForThread=f;g.useHookForNewThread=a}),98); __d("MWGroupMembershipListItem.bs",["I64"],(function(a,b,c,d,e,f,g){"use strict";var h={CommunityMember:"communityMemberType",ParticipantAndContact:"participantAndContactType",ServerSearchResult:"serverSearchResultType"};function a(a){if(a.type===h.ParticipantAndContact)return a.participant.isAdmin;return a.type===h.CommunityMember?a.communityMember.isAdmin:!1}function b(a){if(a.type===h.ParticipantAndContact)return a.participant.isModerator;return a.type===h.CommunityMember?a.communityMember.isModerator:!1}function c(a){if(a.type===h.ParticipantAndContact)return a.contact.id;return a.type===h.CommunityMember?a.communityMember.contactId:d("I64").of_string(a.serverSearchResult.resultId)}g.MWGroupMembershipMemberTypes=h;g.isAdmin=a;g.isModerator=b;g.contactId=c}),98); __d("MWGroupMembershipListItemWrapper",["MWGroupMembershipListItem.bs"],(function(a,b,c,d,e,f,g){"use strict";b="ParticipantAndContact";c="CommunityMember";function a(a){switch(a.tag){case"ParticipantAndContact":return{contact:a.value[1],participant:a.value[0],type:d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.ParticipantAndContact};case"CommunityMember":return{communityMember:a.value,type:d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.CommunityMember};case"ServerSearchResult":return{serverSearchResult:a.value,type:d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.ServerSearchResult}}}g.participantAndContactType=b;g.communityMemberType=c;g.tToRE=a}),98); __d("MWLSGroupMembershipMemberCell.bs",["fbt","ix","CometLazyPopoverTrigger.react","CometMiddot.react","GenderConst","JSResource","LSContactBlockedByViewerStatus.bs","LSContactGenderToGenderConst.bs","LSGroupParticipantJoinState.bs","LSMediaUrl.bs","LSWhatsAppConnectStatus.bs","MAWThreadCutover.bs","MDSListCell.react","MDSTextPairing.react","MWCMThreadTypes.bs","MWGroupMembershipListItem.bs","MWIcon.react","MWInboxRouteBuilder.bs","MWLSContactTypeExactUtils.bs","MWProfilePhoto.react","MWText.react","bs_int64","fbicon","getFBTSafeGenderFromGenderConst","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=h._("__JHASH__3WTOYPxVm2l__JHASH__"),l=h._("__JHASH__J1b76x4xKfs__JHASH__");function m(a,b){return j.useMemo(function(){if(a.type===d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.ServerSearchResult&&a.serverSearchResult.contextLine!=="")return[j.jsx(j.Fragment,{children:a.serverSearchResult.contextLine})];var e=b.filter(function(a){return a!=null});return e.length>0?e.map(function(a,b){return j.jsxs(j.Fragment,{children:[b!==0?j.jsx(c("CometMiddot.react"),{}):null,a]},String(b))}):void 0},[a,b])}function n(a){if(a.type===d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.ParticipantAndContact){var b=a.contact,e=a.participant,f=b.blockedByViewerStatus,g=b.gender,h=b.name,i=b.secondaryName,j=b.waConnectStatus,k=e.groupParticipantJoinState,l=e.isSuperAdmin;e=e.subscribeSource;return{isBlocked:!c("bs_int64").equal(f,d("LSContactBlockedByViewerStatus.bs").unblocked),nonWaAddressable:c("bs_int64").equal(j,d("LSWhatsAppConnectStatus.bs").whatsappNotAddressable),isSuperAdmin:l===!0,isInvitedByViewer:c("bs_int64").equal(k,d("LSGroupParticipantJoinState.bs").invited),gender:d("LSContactGenderToGenderConst.bs").make(g),secondaryName:i!==void 0&&d("MWLSContactTypeExactUtils.bs").isIgContact(b)?i:null,subscribeSource:e,name:h,profilePictureUrl:d("LSMediaUrl.bs").Contact.profilePictureUrl(b)}}if(a.type===d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.CommunityMember){f=a.communityMember;j=f.isBlocked;l=f.name;k=f.nickname;g=f.profilePictureUrl;return{isBlocked:(i=j)!=null?i:!1,nonWaAddressable:!1,isSuperAdmin:!1,isInvitedByViewer:!1,gender:c("GenderConst").NOT_A_PERSON,secondaryName:null,subscribeSource:void 0,name:(e=k)!=null?e:l,profilePictureUrl:(h=g)!=null?h:""}}b=a.serverSearchResult;f=b.displayName;j=b.profilePicUrl;return{isBlocked:!c("bs_int64").equal(b.blockedByViewerStatus,d("LSContactBlockedByViewerStatus.bs").unblocked),nonWaAddressable:!1,isSuperAdmin:!1,isInvitedByViewer:!1,gender:c("GenderConst").NOT_A_PERSON,secondaryName:null,subscribeSource:void 0,name:f,profilePictureUrl:(i=j)!=null?i:""}}function o(a,b,c,e,f){var g,i;g=(g=d("MWGroupMembershipListItem.bs").isAdmin(a))!=null?g:!1;i=(i=d("MWGroupMembershipListItem.bs").isModerator(a))!=null?i:!1;a=n(a);var j=a.isInvitedByViewer,m=a.isSuperAdmin,o=a.nonWaAddressable;a=a.subscribeSource;if(b&&o&&!j)return h._("__JHASH__Ai4p9Jl-Ya6__JHASH__").toString();if(b&&!o&&j)return h._("__JHASH__HSm7vqMGwVL__JHASH__").toString();if(a!==void 0&&m)return c?k:a;if(g&&e)return k;return i&&f?l:null}function a(a){var b=a.folder,e=a.isMAWParticipantSuperAdmin,f=a.isSecure,g=a.membershipListItem,k=a.onClose,l=a.showAdminIndicator,p=a.showInvitedByViewerOnly;p=p===void 0?!1:p;var q=a.showModeratorIndicator;a=a.thread;var r=c("bs_int64").to_string(d("MWGroupMembershipListItem.bs").contactId(g)),s=d("MAWThreadCutover.bs").useGetCutoverSecureThreadKey(r),t=s!==void 0?d("MWInboxRouteBuilder.bs").buildE2EEThreadURL({thread_key:s}):d("MWInboxRouteBuilder.bs").buildURL({thread_key:r});s=n(g);var u=s.gender,v=s.isBlocked,w=s.isInvitedByViewer,x=s.isSuperAdmin,y=s.name,z=s.profilePictureUrl,A=s.secondaryName;s=s.subscribeSource;var B=d("MWCMThreadTypes.bs").isJoinedCMThread(a.threadType),C=m(g,[A,o(g,f,B,l,q),v?h._("__JHASH__iywW1hlnypb__JHASH__"):null,s!==void 0&&!x&&!B?s:null]),D=f&&w&&!p;return j.jsx(c("CometLazyPopoverTrigger.react"),{align:"end",popoverProps:{isMAWParticipantSuperAdmin:e,membershipListItem:g,onClose:k,onCloseDialog:k,thread:a,folder:b},popoverResource:c("JSResource")("MWLSGroupMembershipMenu.react").__setRef("MWLSGroupMembershipMemberCell.bs"),popoverType:"menu",preloadTrigger:"button",children:function(a,b,e,f,g,l,m){return j.jsx(c("MDSListCell.react"),{addOnEnd:j.jsx(c("MWIcon.react"),{"aria-label":h._("__JHASH__-R08aUV4n3s__JHASH__",[h._name("name",y,c("getFBTSafeGenderFromGenderConst")(u))]),color:"secondary",icon:d("fbicon")._(i("484388"),24),onHoverIn:f,onHoverOut:function(){return g()},onPress:function(){return b()},onPressIn:l,ref:a,testid:void 0}),addOnEndVerticalAlign:"center",addOnStart:j.jsx(c("MWProfilePhoto.react"),{alt:y,linkProps:{onNavigate:k,url:t},shape:"circle",size:36,source:{uri:z}}),content:C!==void 0?j.jsx(c("MDSTextPairing.react"),{body:j.jsx(c("MWText.react"),{color:D?"disabled":"secondary",type:"body4",children:C}),headline:j.jsx(c("MWText.react"),{color:D?"disabled":"primary",type:"headline4",children:y}),level:4}):j.jsx(c("MWText.react"),{align:"start",numberOfLines:1,type:"headline4",children:y}),size:"medium",testid:void 0,verticalAlign:C===void 0?"center":"top"},r)}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWLSGroupMembershipMemberList.bs",["LSGroupParticipantJoinState.bs","LSMessagingThreadTypeUtil.bs","MAWThreadId.bs","MWGroupMembershipListItem.bs","MWLSGroupMembershipMemberCell.bs","Promise","bs_int64","cr:2629","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(){return}function a(a){var e=a.folder,f=a.participantsAndContacts,g=a.showAdmodIndicator,j=a.showAdmodsOnly,k=a.showInvitedByViewerOnly,l=a.thread,m=a.onClose,n=m===void 0?i:m;m=a.doSortParticipants;a=m===void 0?!0:m;var o=c("useReStore")();m=h.useState(function(){});var p=m[0],q=m[1];m=a?f.slice(0).sort(function(a,b){if(a.type===d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.ParticipantAndContact&&b.type===d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.ParticipantAndContact)return a.contact.name.localeCompare(b.contact.name);else if(a.type===d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.CommunityMember&&b.type===d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.CommunityMember)return a.communityMember.name.localeCompare(b.communityMember.name);else if(a.type===d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.ServerSearchResult&&b.type===d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.ServerSearchResult)return a.serverSearchResult.displayName.localeCompare(b.serverSearchResult.displayName);else return 0}):f.slice(0);a=j?m.filter(function(a){var b;b=(b=d("MWGroupMembershipListItem.bs").isAdmin(a))!=null?b:!1;a=(a=d("MWGroupMembershipListItem.bs").isModerator(a))!=null?a:!1;return b||a}):k?m.filter(function(a){a=a.type===d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.ParticipantAndContact?a.participant.groupParticipantJoinState:d("LSGroupParticipantJoinState.bs").member;return c("bs_int64").equal(a,d("LSGroupParticipantJoinState.bs").invited)}):m;var r=d("LSMessagingThreadTypeUtil.bs").isSecure(l.threadType);h.useEffect(function(){b("cr:2629")!=null&&r&&c("promiseDone")(d("MAWThreadId.bs").ofThreadKey(o,l.threadKey).then(function(a){if(a.TAG===0)return b("cr:2629").getGroupSuperAdmin({threadId:a._0}).sendAndReceive().then(function(a){return q(function(){return a})});else return b("Promise").resolve()}))},[o,JSON.stringify(l.threadKey)]);return a.map(function(a){var b=d("MWGroupMembershipListItem.bs").contactId(a);return h.jsx(c("MWLSGroupMembershipMemberCell.bs"),{folder:e,isMAWParticipantSuperAdmin:r&&p!==void 0?p===c("bs_int64").to_string(b):!1,isSecure:r,membershipListItem:a,onClose:n,showAdminIndicator:g,showInvitedByViewerOnly:k,showModeratorIndicator:g,thread:l},c("bs_int64").to_string(b))})}g["default"]=a}),98); __d("MWCMBotFalcoLogger",["GroupsCometChatsEngagementLogger"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.action,c=a.clientExtras;c=c===void 0?{}:c;var e=a.event,f=a.fbGroupId,g=a.source,h=a.surface;a=a.threadKey;d("GroupsCometChatsEngagementLogger").log({action:b,client_extras:babelHelpers["extends"]({},c,{thread_id:a}),event:e,group_id:f,source:g,surface:h})}g.logBotsEvent=a}),98); __d("MWCMBulkInviteDialog.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("MWCMBulkInviteDialog.react").__setRef("MWCMBulkInviteDialog.entrypoint")};g["default"]=a}),98); __d("MWCMEditChatInfoDialogTrigger.bs",["CometCardedDialogLoadingState.re","CometEntryPointDialogTrigger.react","GroupsCometChatEditChatDialog.entrypoint","bs_int64","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.children;a=a.thread;return h.jsx(c("CometEntryPointDialogTrigger.react"),{dialogEntryPoint:c("GroupsCometChatEditChatDialog.entrypoint"),fallback:function(a){return h.jsx(d("CometCardedDialogLoadingState.re").make,{})},otherProps:{enableEditNameOrDescription:!0,onClose:function(a){}},preloadParams:{threadID:c("bs_int64").to_string(a.threadKey)},children:b})}a.displayName=a.name+" [from "+f.id+"]";b=a;e=b;g.make=e}),98); __d("MWCMLinkShare.bs",["fbt","C4gEngagementFalcoEvent.bs","CommunityMessagingEnableState.bs","LSThreadBitOffset.bs","LSThreadCapabilityBitOffset.bs","MWCMUseFolder.bs","URI","XGroupsC4GThreadViewControllerRouteBuilder","bs_belt_Option","bs_caml","bs_curry","bs_int64","cometPushToast","react","useCopyText"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function j(a){var b=a.children,e=a.folder;a=a.thread;var f=c("bs_int64").to_string(e.fbGroupId),g=c("bs_int64").to_string(a.threadKey);e=i.useMemo(function(){return new(c("URI"))(c("XGroupsC4GThreadViewControllerRouteBuilder").buildURL({idorvanity:f,thread_id:g})).setDomain("www.facebook.com").toString()},[f,g]);a=c("bs_curry")._1(c("useCopyText"),{value:e});var j=a[2];e=function(a){c("bs_curry")._1(j),d("C4gEngagementFalcoEvent.bs").log(function(){return{action:"tap",event:"thread_user_copy_invite_link",group_id:f,source:"copy_link",surface:"thread_settings",thread_id:g}}),d("cometPushToast").cometPushSimpleToast(h._("__JHASH__8en83pDSGh6__JHASH__"))};return c("bs_curry")._2(b,a[1],e)}e={make:j};function k(a){return c("bs_caml").i64_eq(c("bs_belt_Option").getWithDefault(a,d("CommunityMessagingEnableState.bs").enabled),d("CommunityMessagingEnableState.bs").disableRequested)}function a(a){var b=d("MWCMUseFolder.bs").useHook(a),c=d("LSThreadBitOffset.bs").has(d("LSThreadCapabilityBitOffset.bs").threadDetailsShowChatInviteLink,a);return i.useMemo(function(){if(b!==void 0&&c)return!k(b.enableState);else return!1},[b])}function b(a){var b=a.children;a=a.thread;var c=d("MWCMUseFolder.bs").useHook(a),e=d("LSThreadBitOffset.bs").has(d("LSThreadCapabilityBitOffset.bs").threadDetailsShowChatInviteLink,a);if(c!==void 0&&e)return i.jsx(j,{folder:c,thread:a,children:b});else return null}f=b;b=e;e=k;a=a;f=f;g.Impl=b;g.isCommunityScheduledForRemoval=e;g.useShouldShowInviteLink=a;g.make=f}),98); __d("MWCMUseFolder.re",["MWCMUseFolder.bs"],(function(a,b,c,d,e,f){a=b("MWCMUseFolder.bs").useHook;f.useFolder=a}),null); __d("MWMemberListGlimmer.react",["CometGlimmer.react","MDSListCell.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={nameGlimmer:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xlup9mm",width:"x1oux285",$$css:!0},profileGlimmer:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"xc9qbxq",width:"x14qfxbe",$$css:!0}};function a(){return new Array(3).fill("").map(function(a,b){return h.jsx(c("MDSListCell.react"),{addOnStart:h.jsx(c("CometGlimmer.react"),{index:0,xstyle:i.profileGlimmer}),content:h.jsx(c("CometGlimmer.react"),{index:1,xstyle:i.nameGlimmer}),size:"medium"},b)})}g["default"]=a}),98); __d("useCommunityMembers",["I64","LS.re","LSClearCommunityMembersAndRange","LSIntEnum","LSIssueCommunityMemberListFetch","LSVec","MWCMThreadTypes.bs","ReQL","ReQLSuspense","react","regeneratorRuntime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.useCallback,j=h.useEffect;function a(a){var b=c("useReStore")();return d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.table("community_members_ranges_v2__generated")).getKeyRange(a)},[b,a])}function e(a){a===void 0&&(a=7);var b=c("useReStore")();return i(function(){return b.runInTransaction(function(b){return c("LSClearCommunityMembersAndRange")(d("LSIntEnum").ofNumber(a),c("LS.re").make(b))},"readwrite")},[b,a])}function f(a,e,f){f===void 0&&(f=d("I64").of_int32(7));var g=c("useReStore")(),h=e.threadKey,i=e.threadType;e=d("I64").to_string(h);var k=d("I64").to_string(a),l=d("I64").to_string(i);j(function(){var e=d("MWCMThreadTypes.bs").isBroadcastThread(i)?[d("LSIntEnum").ofNumber(0)]:[],j=function(){return b("regeneratorRuntime").async(function(i){while(1)switch(i.prev=i.next){case 0:i.next=2;return b("regeneratorRuntime").awrap(g.runInTransaction(function(b){return c("LSIssueCommunityMemberListFetch")(a,c("LSVec").make([d("LSIntEnum").ofNumber(0)]),!1,!1,"","",f,d("I64").equal(f,d("I64").of_int32(0))?void 0:h,void 0,c("LSVec").make(e),c("LS.re").make(b))},"readwrite"));case 2:case"end":return i.stop()}},null,this)};j()},[g,k,e,l])}g.useCommunityMembersRanges=a;g.useClearMemberList=e;g.useFetchCommunityMembers=f}),98); __d("MWCMInboxInfoMemberList.react",["fbt","ix","CometLazyDialogTrigger.react","I64","JSResourceForInteraction","MDSListCell.react","MDSText.react","MWGroupMembershipListItemWrapper","MWLSGroupMembershipMemberList.bs","MWMemberListGlimmer.react","MWPBumpEntityKey","ReQL","ReQLSuspense","TetraIcon.react","fbicon","react","useCommunityMembers","useReStore"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useEffect;function a(a){var b=a.folder;a=a.thread;var e=c("useReStore")();d("useCommunityMembers").useFetchCommunityMembers(b.fbGroupId,a);var f=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(e.table("community_members").index("communitySource")).getKeyRange(b.fbGroupId,d("I64").of_int32(7)).take(15)},[e,b.fbGroupId]),g=d("useCommunityMembers").useClearMemberList(),l=d("I64").to_string(a.threadKey);k(function(){g();return function(){g()}},[l,g]);k(function(){f.length>0&&d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.cm.member_list","community_members_loaded")},[f.length]);return f.length===0?j.jsx(c("MWMemberListGlimmer.react"),{}):j.jsxs(j.Fragment,{children:[j.jsx(c("MWLSGroupMembershipMemberList.bs"),{doSortParticipants:!1,participantsAndContacts:f.map(function(a){return d("MWGroupMembershipListItemWrapper").tToRE({tag:"CommunityMember",value:a})}),showAdmodIndicator:!0,showAdmodsOnly:!1,showInvitedByViewerOnly:!1,thread:a}),j.jsx(c("CometLazyDialogTrigger.react"),{dialogProps:{folder:b},dialogResource:c("JSResourceForInteraction")("MWLSGroupMembershipDialog.react").__setRef("MWCMInboxInfoMemberList.react"),children:function(a){return j.jsx(c("MDSListCell.react"),{addOnStart:j.jsx("div",{className:"x6s0dn4 xljulmy x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 xc9qbxq xl56j7k x14qfxbe",children:j.jsx(c("TetraIcon.react"),{icon:d("fbicon")._(i("485094"),24)})}),content:j.jsx(c("MDSText.react"),{type:"headline4",children:h._("__JHASH__BN54OIlz3MA__JHASH__")}),onPress:function(b){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.cm.member_list","see_all"),a()},size:"medium"})}})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("FDSMembersSectionIcons.bs",["ix","fbicon"],(function(a,b,c,d,e,f,g,h){"use strict";a=d("fbicon")._(h("483769"),20);b={icon:a};g.Add=b}),98); __d("MWAddMemberToGroupDialogTrigger.bs",["CometLazyDialogTrigger.react","JSResource","LSDatabaseType.bs","MWLSDatabaseLazySync.bs","bs_curry","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){}function a(a){var b=a.children;a=a.thread;var e=d("MWLSDatabaseLazySync.bs").useSync(d("LSDatabaseType.bs").ranking),f=h.useRef(null);return h.jsx(c("CometLazyDialogTrigger.react"),{dialogProps:{onClose:i,thread:a},dialogResource:c("JSResource")("MWAddParticipantDialogForJSResource.react").__setRef("MWAddMemberToGroupDialogTrigger.bs"),children:function(a){return c("bs_curry")._2(b,function(b){c("bs_curry")._1(e);return c("bs_curry")._1(a)},f)}})}a.displayName=a.name+" [from "+f.id+"]";b=a;e=i;f=b;g.onClose=e;g.make=f}),98); __d("MWMembersSectionIcons.bs",["cr:11273"],(function(a,b,c,d,e,f,g){"use strict";g.$MDSMembersSectionIcons$OR$FDSMembersSectionIcons$requireCond=b("cr:11273"),g.Add=b("cr:11273").Add}),98); __d("MWPParticipantsAndContactsForThread_DO_NOT_USE_THIS_WILL_KILL_PERFORMANCE.bs",["ReQL.bs","ReQLSubscription.bs","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=c("useReStore")();return d("ReQLSubscription.bs").useArray(h.useMemo(function(){return d("ReQL.bs").mergeJoin(d("ReQL.bs").getKeyRange(d("ReQL.bs").fromTableAscending(b.table("participants")),{hd:a.threadKey,tl:0}),d("ReQL.bs").fromTableAscending(b.table("contacts")))},[b,JSON.stringify(a.threadKey)]))}b=a;g.useValue=b}),98); __d("MWInboxInfoMemberList.bs",["fbt","LSMessagingThreadTypeUtil.bs","LSThreadBitOffset.bs","LSThreadCapabilityBitOffset.bs","MAWGating","MDSListCell.react","MWAddMemberToGroupDialogTrigger.bs","MWCMIsAnyCMThread","MWGroupLimitContainer.bs","MWGroupMembershipListItem.bs","MWIcon.react","MWLSFeatureLimitedStatus.bs","MWLSGroupMembershipMemberList.bs","MWMembersSectionIcons.bs","MWPParticipantsAndContactsForThread_DO_NOT_USE_THIS_WILL_KILL_PERFORMANCE.bs","MWText.react","bs_curry","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=h._("__JHASH__P1CnLTqi4fK__JHASH__");function k(a){a=a.thread;return i.jsx(d("MWGroupLimitContainer.bs").make,{groupLimitReachedContent:i.jsx(c("MDSListCell.react"),{content:i.jsx(c("MWText.react"),{color:"secondary",testid:void 0,type:"body4",children:h._("__JHASH____m4bWP_4pT__JHASH__")}),size:"medium"}),thread:a,children:i.jsx(d("MWAddMemberToGroupDialogTrigger.bs").make,{thread:a,children:function(a,b){return i.jsx(c("MDSListCell.react"),{addOnStart:i.jsx("div",{className:"x6s0dn4 xljulmy x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 xc9qbxq xl56j7k x14qfxbe",children:i.jsx(c("MWIcon.react"),{icon:d("MWMembersSectionIcons.bs").Add.icon})}),content:i.jsx(c("MWText.react"),{type:"headline4",children:j}),onPress:function(b){return c("bs_curry")._1(a)},ref:b,size:"medium"})}})})}k.displayName=k.name+" [from "+f.id+"]";b={make:k};function a(a){a=a.thread;var b=d("LSMessagingThreadTypeUtil.bs").isSecure(a.threadType);b=d("MWLSFeatureLimitedStatus.bs").useIsReadOnlyFeatureLimited()&&(!b||d("MAWGating").isFeatureLimitEnabled());var e=d("LSThreadBitOffset.bs").has(d("LSThreadCapabilityBitOffset.bs").addMember,a),f=d("MWPParticipantsAndContactsForThread_DO_NOT_USE_THIS_WILL_KILL_PERFORMANCE.bs").useValue(a),g=!c("MWCMIsAnyCMThread")(a.threadType);return i.jsxs(i.Fragment,{children:[i.jsx(c("MWLSGroupMembershipMemberList.bs"),{participantsAndContacts:f.map(function(a){var b=a[0];a=a[1];return{contact:a,participant:b,type:d("MWGroupMembershipListItem.bs").MWGroupMembershipMemberTypes.ParticipantAndContact}}),showAdmodIndicator:g,showAdmodsOnly:!1,showInvitedByViewerOnly:!1,thread:a}),!b&&e?i.jsx(k,{thread:a}):null]})}e=a;f=b;a=e;g.AddPeopleButton=f;g.make=a}),98); __d("MWInboxInfoMembersSection.bs",["fbt","I64","MWCMIsAnyCMThread","MWCMThreadTypes.bs","MWCMUseFolder.bs","MWCollapsible.react","MWInboxInfoMemberList.bs","MWInboxPersistedUIState","MWPBumpEntityKey","MessagingThreadType.re","bs_curry","bs_int64","cr:4705","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j="__MWInboxInfoMembersSection.isOpen__";function a(a){a=a.thread;var e=d("MWInboxPersistedUIState").usePersistedUIState(!1,j),f=e[0],g=e[1];e=d("MWCMUseFolder.bs").useHook(a);var k=c("MWCMIsAnyCMThread")(a.threadType),l=d("MWCMThreadTypes.bs").isBroadcastThread(a.threadType),m,n=0;b("cr:4705")==null||!(e!==void 0&&k)?n=1:m=i.jsx(b("cr:4705"),{folder:e,thread:a});n===1&&(m=i.jsx(d("MWInboxInfoMemberList.bs").make,{thread:a}));n=a.memberCount?"("+c("bs_int64").to_string(a.memberCount)+")":"";a=d("I64").equal(a.threadType,d("MessagingThreadType.re").discoverablePublicChat);l=e!==void 0&&l?h._("__JHASH__xl4TrC_gZzb__JHASH__",[h._param("member_count",n)]):e!==void 0&&k?h._("__JHASH__vIXzo8z-i9s__JHASH__",[h._param("member_count",n)]):a&&c("gkx")("3187")?h._("__JHASH__1uZ4DO16hPR__JHASH__"):h._("__JHASH__4d9xLPGdRx4__JHASH__");return i.jsx(c("MWCollapsible.react"),{isOpen:f,label:l,onPress:function(a){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.infobar","chat_members_section."+(f?"close":"open"));return c("bs_curry")._1(g,function(a){return!a})},children:m})}a.displayName=a.name+" [from "+f.id+"]";e=a;f=j;a=e;g.storageKey=f;g.make=a}),98); __d("CommunityBotEnabledStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({ENABLED:"ENABLED",NOT_ENABLED:"NOT_ENABLED"});f["default"]=a}),66); __d("bs_caml_int32",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){if(b===0)throw{RE_EXN_ID:"Division_by_zero",Error:new Error()};return a/b|0}function b(a,b){if(b===0)throw{RE_EXN_ID:"Division_by_zero",Error:new Error()};return a%b}f.div=a;f.mod_=b}),null);/*FB_PKG_DELIM*/ /** * License: https://www.facebook.com/legal/license/t3hOLs8wlXy/ */ __d("exif-js-2.3.0",[],(function(a,b,c,d,e,f){"use strict";var g={},h={exports:g},i;function j(){(function(){var a=!1,b=this,c=function(a){if(a instanceof c)return a;if(!(this instanceof c))return new c(a);this.EXIFwrapped=a};typeof g!=="undefined"?(typeof h!=="undefined"&&h.exports&&(g=h.exports=c),g.EXIF=c):b.EXIF=c;var d=c.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},e=c.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},f=c.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},j=c.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},k=c.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function l(a){return!!a.exifdata}function m(a,b){b||a.match(/^data\:([^\;]+)\;base64,/im)[1]||"";a=a.replace(/^data\:([^\;]+)\;base64,/gim,"");b=atob(a);a=b.length;var c=new ArrayBuffer(a),d=new Uint8Array(c);for(var e=0;e4?c:b+8;g=[];for(i=0;i4?c:b+8;return x(a,d,f-1);case 3:if(f==1)return a.getUint16(b+8,!e);else{d=f>2?c:b+8;g=[];for(i=0;ia.byteLength)return{};c=t(a,b,b+c,j,d);if(c.Compression)switch(c.Compression){case 6:if(c.JpegIFOffset&&c.JpegIFByteCount){d=b+c.JpegIFOffset;b=c.JpegIFByteCount;c.blob=new Blob([new Uint8Array(a.buffer,d,b)],{type:"image/jpeg"})}break;case 1:break;default:}else c.PhotometricInterpretation==2;return c}function x(a,b,c){var d="";for(var e=b;e")+8;f=f.substring(f.indexOf("0){b["@attributes"]={};for(var c=0;c0)for(var c=0;c=d.length)break;h=d[g++]}else{g=d.next();if(g.done)break;h=g.value}h=h;if(b>h.maxContainerWidth)continue;c=h.width;break}e(c)},[a]);b=c("useResizeObserver")(b);return[b,d]}function e(a,b){a=k(a,b);return[void 0,a]}d=c("gkx")("1549702")?e:a;g.BreakpointRelationship=j;g.useContainerBreakpoints=d}),98); __d("useEventHandler",["react","useLayoutEffect_SAFE_FOR_SSR"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useRef;function a(a){var b=i(a);c("useLayoutEffect_SAFE_FOR_SSR")(function(){b.current=a},[a]);return h(function(){b.current.apply(b,arguments)},[])}g["default"]=a}),98); __d("BaseHScroll.react",["BaseHScrollConstants","BaseScrollableArea.react","BaseView.react","FocusInertRegion.react","HiddenSubtreePassiveContext","Locale","UserAgent","emptyFunction","react","smoothScrollTo","stylex","useBaseHScrollFakeCards","useContainerBreakpoints","useEventHandler","useLayoutEffect_SAFE_FOR_SSR","useMergeRefs","useUnsafeRef_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useContext,k=e.useMemo,l=e.useRef,m=e.useState,n=d("Locale").isRTL();e=c("UserAgent").isBrowser("Safari < 14")||c("UserAgent").isBrowser("Mobile Safari < 14");var o=c("UserAgent").isBrowser("Chrome"),p=c("UserAgent").isBrowser("IE")||c("UserAgent").isBrowser("Edge"),aa=n&&e,q=h.createContext(null);function a(a){var b=a.accessibilityLabel,e=a.buttonWrapperStyle,f=a.cardWidth,g=a.containerXStyle;g=g===void 0?s.containerPaddingDefault:g;var o=a.outerContainerXStyle,t=a.scrollViewXStyle,ba=a.scrollContainerXStyle,u=a.disableScrolling;u=u===void 0?!1:u;var v=a.gap,w=v===void 0?0:v;v=a.hideArrows;v=v===void 0?!1:v;var x=a.initialScrollToIndex,y=a.initialScrollSmoothing,z=y===void 0?!1:y;y=a.isButtonInward;y=y===void 0?!1:y;var A=a.maxContentWindowWidth,ca=a.nextButton,B=a.peekWidth,da=a.prevButton,C=a.onPressNext,ea=C===void 0?c("emptyFunction"):C;C=a.onPressPrev;var fa=C===void 0?c("emptyFunction"):C;C=a.peek;var D=C===void 0?!1:C;C=a.peekPaddingStart;var E=a.peekPaddingEnd,F=a.testid,G=babelHelpers.objectWithoutPropertiesLoose(a,["accessibilityLabel","buttonWrapperStyle","cardWidth","containerXStyle","outerContainerXStyle","scrollViewXStyle","scrollContainerXStyle","disableScrolling","gap","hideArrows","initialScrollToIndex","initialScrollSmoothing","isButtonInward","maxContentWindowWidth","nextButton","peekWidth","prevButton","onPressNext","onPressPrev","peek","peekPaddingStart","peekPaddingEnd","testid"]);F=A!=null&&D&&E!=null&&C!=null;var H=f.type==="responsive"?f.minWidth:f.width;a=k(function(){var a=[];if(f.type==="fixed")a.push({maxContainerWidth:Infinity,width:H+"px"});else if(D&&A!=null){var b=B*2,c=2*H+w+b,e=1;while(c50&&c>a-b-50&&(S.current=!0)}},[]);var T=c("useEventHandler")(function(){var a;a=(a=L.current)==null?void 0:a.getDOMNode();if(a==null)return;var b=a.getBoundingClientRect();b=b.width;var c=a.scrollLeft,d=a.scrollWidth;if(!G.isCircular)n&&!p?S.current?(P(c>d-b-w),R(c-w),R(c<-d+b+w)):(P(cd-b-w));else{c=Z.current(a);d=c.childCards;if(d==null||d[0]==null)return;ha({isRTL:n,isRTLScrollFromMaxScroll:S,scrollRef:L})}});N=c("useBaseHScrollFakeCards")({children:G.isCircular?G.children:[],fakeCardXStyle:G.isCircular?G.fakeCardXStyle:null,gap:w,isCircular:(N=G.isCircular)!=null?N:!1,minWidth:H,onResize:T,peek:D,peekWidth:B});var U=N[0],ga=N[1],V=N[2],ha=N[3];N=c("useMergeRefs")(I,K,V);var W=j(c("HiddenSubtreePassiveContext"));c("useLayoutEffect_SAFE_FOR_SSR")(function(){var a=W.subscribeToChanges(function(a){a.hidden||T()});return function(){return a.remove()}},[W,T]);c("useLayoutEffect_SAFE_FOR_SSR")(function(){T()},[M,T]);var X=l(w);c("useLayoutEffect_SAFE_FOR_SSR")(function(){X.current=w},[w]);var Y=i(function(a){var b=a.getBoundingClientRect(),c=A!=null?Math.min(b.width-(D?2*B:0),A):D?b.width-2*B:b.width,d=(b.width-c)/2,e=b.left+d;b=b.right-d;d=Array.from(a.children[0].children).filter(function(a){return a.tagName==="DIV"});return{childCards:d,containerLeft:e,containerRight:b,containerWidth:c}},[A,D,B]),Z=l(Y);c("useLayoutEffect_SAFE_FOR_SSR")(function(){Z.current=Y},[Y]);var $=((I=U)!=null?I:[]).length;c("useLayoutEffect_SAFE_FOR_SSR")(function(){var a;if(x==null&&$===0)return;var b=(a=L.current)==null?void 0:a.getDOMNode();if(b==null)return;a=Z.current(b);a=a.childCards;var d=0;if(x!=null)for(var e=0;e=0;n?h++:h--){var i=e[h].getBoundingClientRect();if(i.left<=f-d("BaseHScrollConstants").WIGGLE_ROOM){g=i;break}}if(g==null)return;i=g.right-b;i!==0&&(n&&p?c("smoothScrollTo")(a,{left:a.scrollLeft-i}):c("smoothScrollTo")(a,{left:a.scrollLeft+i}),fa())};V=function(){var a;a=(a=L.current)==null?void 0:a.getDOMNode();if(a==null)return;var b=Y(a),e=b.childCards,f=b.containerLeft;b=b.containerRight;var g;for(var h=n?e.length-1:0;n?h>=0:h=b+d("BaseHScrollConstants").WIGGLE_ROOM){g=i;break}}if(g==null)return;i=g.left-f;i!==0&&(n&&p?c("smoothScrollTo")(a,{left:a.scrollLeft-i}):c("smoothScrollTo")(a,{left:a.scrollLeft+i}),ea())};I=k(function(){return J!=null?{gap:w,width:J}:null},[J,w]);r(L,M);return h.jsxs(c("BaseView.react"),{ref:N,testid:void 0,xstyle:o,children:[h.jsx("div",{"aria-hidden":v||!!O,className:c("stylex")(s.buttonWrapper,(v||!!O)&&s.hidden,e),style:n?{right:a!=null&&!F?a:D?B:0,transform:"translate(calc("+(!D&&y?0:50)+"% + "+(D?w/2:0)+"px), -50%)"}:{left:a!=null&&!F?a:D?B:0,transform:"translate(calc(-"+(!D&&y?0:50)+"% - "+(D?w/2:0)+"px), -50%)"},suppressHydrationWarning:!G.isCircular,children:da(n?V:K,!!O)}),h.jsx(c("BaseView.react"),{"aria-label":b,role:b!=null?"region":void 0,xstyle:[s.scrollContainer,g,ba],children:h.jsxs(c("BaseScrollableArea.react"),{hideScrollbar:!0,horizontal:!0,onScroll:T,ref:L,style:{scrollPadding:a},vertical:!1,xstyle:[s.scrollView,!aa&&s.scrollViewSnap,u&&s.scrollViewNoScroll,t],children:[D&&A!=null&&C==null&&h.jsx("span",{style:{flexShrink:0,minWidth:B,width:"calc((100% - "+A+"px) / 2)"}}),D&&(C!=null||A==null)&&h.jsx("span",{style:{minWidth:(M=C)!=null?M:B}}),h.jsxs(q.Provider,{value:I,children:[U,G.children,ga]}),D&&A!=null&&E==null&&h.jsx("span",{style:{flexShrink:0,minWidth:B,width:"calc((100% - "+A+"px) / 2)"}}),D&&(E!=null||A==null)&&h.jsx("span",{style:{minWidth:(N=E)!=null?N:B}})]})}),h.jsx("div",{"aria-hidden":v||!!Q,className:c("stylex")(s.buttonWrapper,(v||!!Q)&&s.hidden,e),style:n?{left:a!=null&&!F?a:D?B:0,transform:"translate(calc(-"+(!D&&y?0:50)+"% - "+(D?w/2:0)+"px), -50%)"}:{right:a!=null&&!F?a:D?B:0,transform:"translate(calc("+(!D&&y?0:50)+"% + "+(D?w/2:0)+"px), -50%)"},suppressHydrationWarning:!G.isCircular,children:ca(n?K:V,!!Q)})]})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=a["aria-hidden"];b=b===void 0?!1:b;var d=a.children,e=a.expanding;e=e===void 0?!1:e;var f=a.role,g=a.type;g=g===void 0?"default":g;a=a.xstyle;var i=j(q);if(i==null)return null;var k=i.gap;i=i.width;g={flexBasis:g==="custom"?void 0:g==="doubleWidth"?"calc(("+i+") * 2 + "+k+"px)":i};return h.jsx(c("FocusInertRegion.react"),{disabled:!b,children:h.jsx("div",{"aria-hidden":b,className:c("stylex")(s.card,n&&s.cardRTL,t[k],e&&s.cardExpanding,a),role:f,style:g,children:d})})}b.displayName=b.name+" [from "+f.id+"]";var r=function(a,b){};o&&(r=function(a,b){var d=c("useUnsafeRef_DEPRECATED")(null);c("useLayoutEffect_SAFE_FOR_SSR")(function(){var b,c=d.current;b=(b=a.current)==null?void 0:b.getDOMNode();c!=null&&b!=null&&(b.scrollLeft=c)},[b,a]);b=(b=a.current)==null?void 0:b.getDOMNode();b!=null&&(d.current=b.scrollLeft)});var s={buttonWrapper:{opacity:"x1hc1fzr",position:"x10l6tqk",top:"xwa60dl",transitionDuration:"x1d8287x",transitionProperty:"x19991ni",transitionTimingFunction:"xwji4o3",zIndex:"x1vjfegm",$$css:!0},card:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",minWidth:"xeuugli",scrollSnapAlign:"x1bhewko",$$css:!0},cardExpanding:{display:"x78zum5",$$css:!0},cardRTL:{scrollSnapAlign:"x83psoy",$$css:!0},containerPaddingDefault:{paddingBottom:"xwib8y2",paddingTop:"x1y1aw1k",$$css:!0},hidden:{opacity:"xg01cxk",pointerEvents:"x47corl",$$css:!0},scrollContainer:{marginBottom:"x1wsgfga",marginTop:"x9otpla",$$css:!0},scrollView:{boxSizing:"x9f619",marginBottom:"xat24cr",paddingBottom:"xwib8y2",paddingTop:"x1y1aw1k",scrollbarWidth:"x1rohswg",$$css:!0},scrollViewNoScroll:{overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},scrollViewSnap:{scrollSnapType:"xhfbhpw",$$css:!0}},t={0:{marginEnd:"x11i5rnm",$$css:!0},4:{marginEnd:"xw3qccf",":last-of-type_marginEnd":"xnqqybz",$$css:!0},8:{marginEnd:"x1emribx",":last-of-type_marginEnd":"xnqqybz",$$css:!0},12:{marginEnd:"xq8finb",":last-of-type_marginEnd":"xnqqybz",$$css:!0},16:{marginEnd:"xktsk01",":last-of-type_marginEnd":"xnqqybz",$$css:!0}};g.HScrollContainer=a;g.HScrollChild=b}),98); __d("useBaseHScrollFakeCards",["BaseHScroll.react","BaseHScrollConstants","UserAgent","react","useEventHandler","useResizeObserver"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){var b=a.children,e=a.fakeCardXStyle,f=a.gap,g=a.isCircular,j=a.minWidth,k=a.onResize,l=a.peek,m=a.peekWidth;a=i(0);var n=a[0],o=a[1];a=c("useEventHandler")(function(a){a=a.width;a=Math.min(a,d("BaseHScrollConstants").MAX_CONTAINER_WIDTH);var c=l?m*2:0;if(g){a=Math.floor((a-c+f)/(j+f));b.length=k-q&&i<=k+q){k=j-2*a+p-f;o(k)}if(i>=n-q&&i<=n+q){j=a-p+f;o(j)}}};return[p,n,a,q]}g["default"]=a}),98); __d("ChevronLeftFilled20.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsxs("svg",babelHelpers["extends"]({fill:"currentColor",viewBox:"0 0 20 20",width:"1em",height:"1em"},a,{children:[a.title!=null&&h.jsx("title",{children:a.title}),a.children!=null&&h.jsx("defs",{children:a.children}),h.jsx("path",{d:"M12.2 4.53 6.727 10l5.47 5.47a.75.75 0 0 1-1.061 1.06l-6-6a.751.751 0 0 1 0-1.06l6-6A.75.75 0 1 1 12.2 4.53z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("ChevronRightFilled20.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsxs("svg",babelHelpers["extends"]({fill:"currentColor",viewBox:"0 0 20 20",width:"1em",height:"1em"},a,{children:[a.title!=null&&h.jsx("title",{children:a.title}),a.children!=null&&h.jsx("defs",{children:a.children}),h.jsx("path",{d:"M7.8 4.53 13.273 10 7.8 15.47a.75.75 0 0 0 1.061 1.06l6-6a.751.751 0 0 0 0-1.06l-6-6A.75.75 0 0 0 7.8 4.53z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("CometHScroll.react",["fbt","BaseHScroll.react","ChevronLeftFilled20.svg.react","ChevronRightFilled20.svg.react","CometCircleButton.react","CometTrackingNodeProvider.react","Locale","SVGIcon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useCallback,k=h._("__JHASH__J8Yoib5UPEE__JHASH__"),l=h._("__JHASH__EhkFtPPvOVh__JHASH__"),m=d("Locale").isRTL(),n=44;function a(a){var b=a.nextButtonLabel,e=b===void 0?k:b;b=a.prevButtonLabel;var f=b===void 0?l:b;b=a.reduceArrowSize;var g=b===void 0?!1:b;b=babelHelpers.objectWithoutPropertiesLoose(a,["nextButtonLabel","prevButtonLabel","reduceArrowSize"]);a=j(function(a,b){return i.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:419,children:i.jsx(c("CometCircleButton.react"),{color:"secondary",disabled:b,icon:d("SVGIcon").svgIcon(m?c("ChevronRightFilled20.svg.react"):c("ChevronLeftFilled20.svg.react")),label:f,onPress:a,size:g?40:48,testid:void 0,type:"overlay-raised"})})},[f,g]);var h=j(function(a,b){return i.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:420,children:i.jsx(c("CometCircleButton.react"),{color:"secondary",disabled:b,icon:d("SVGIcon").svgIcon(m?c("ChevronLeftFilled20.svg.react"):c("ChevronRightFilled20.svg.react")),label:e,onPress:a,size:g?40:48,testid:void 0,type:"overlay-raised"})})},[e,g]);return i.jsx(d("BaseHScroll.react").HScrollContainer,babelHelpers["extends"]({},b,{nextButton:h,peekWidth:n,prevButton:a}))}a.displayName=a.name+" [from "+f.id+"]";g.Container=a;g.Child=d("BaseHScroll.react").HScrollChild}),98); __d("range",[],(function(a,b,c,d,e,f){function a(a,b,c){c=c==null||c===0?a