useMAIBANotifications",["fbt","AdsAIEntrypointEnum","AdsAddToastCardAction","AdsDismissToastCardAction","AdsHelpTrayUILogger","FBLogger","MAIBAChatAppUIActions","MAIBAChatAppUIProvider","RelayHooks","gkx","react","react-compiler-runtime","useMAIBANotificationsSubscription.graphql"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=c.useCallback,m=c.useEffect,p=c.useMemo,_=c.useRef,f=c.useState,g="maiba-new-message-notification",h=50;function y(e,t,n){var a=e.length>h?e.substring(0,h)+"...":e;o("AdsHelpTrayUILogger").logMAIBANotificationToastImpression(t,n),r("AdsAddToastCardAction").dispatch({toastCard:{id:g,cardType:"info",header:s._(/*BTDS*/"New message from Ads AI"),bodyText:a,canDismiss:!0,callsToAction:[{label:s._(/*BTDS*/"Open Chat"),use:"default",onClick:function(){o("AdsHelpTrayUILogger").logMAIBANotificationToastClick(t,n),r("AdsDismissToastCardAction").dispatch({id:g},{line:"71",module:"useMAIBANotifications.js",moduleID:i.id}),o("MAIBAChatAppUIActions").openMAIBAChatThread({externalConversationId:t},{isFullScreen:!1},r("AdsAIEntrypointEnum").GLOBAL_NAV_PERSISTENT_ADS_AI_RING)}}]}},{line:"57",module:"useMAIBANotifications.js",moduleID:i.id})}function C(t){var a=o("react-compiler-runtime").c(7),i=t===void 0?!1:t,l=r("gkx")("4118"),s;a[0]!==i?(s=function(){if(!l)return!1;if(i){var e=r("MAIBAChatAppUIProvider")();if(e.isMAIBAChatAppOpen)return!1}return i},a[0]=i,a[1]=s):s=a[1];var u=f(s),c=u[0],d=u[1],p=_(null),g=v,h,C;a[2]===Symbol.for("react.memo_cache_sentinel")?(h=function(){if(l){var e=r("MAIBAChatAppUIProvider").toFluxStore(),t=e.addListener(function(){var e=r("MAIBAChatAppUIProvider")();e.isMAIBAChatAppOpen&&d(!1)});return(function(){t.remove()})}},C=[l],a[2]=h,a[3]=C):(h=a[2],C=a[3]),m(h,C);var S;a[4]===Symbol.for("react.memo_cache_sentinel")?(S={subscription:e!==void 0?e:e=n("useMAIBANotificationsSubscription.graphql"),variables:{},onNext:function(t){if(l){var e=t==null?void 0:t.xfb_maiba_async_message_subscribe,n=e==null?void 0:e.message,r=e==null?void 0:e.conversation;if(!(n==null||r==null)&&n.role==="ASSISTANT"&&n.id!==p.current){p.current=n.id;var o=g();if(o?d(!1):r.is_unread===!0?d(!0):d(!1),!o){var a,i,s,u=(a=n.snippet)!=null?a:"",c=(i=n.external_conversation_id)!=null?i:"",m=(s=n.id)!=null?s:"";u!==""&&c!==""&&m!==""&&y(u,c,m)}}}},onError:b},a[4]=S):S=a[4];var R=S;o("RelayHooks").useSubscription(R);var L;return a[5]!==c?(L={hasUnreadMessages:c},a[5]=c,a[6]=L):L=a[6],L}function b(e){r("FBLogger")("am_feature_ads_ai").warn("MAIBA notification subscription error",e.toString())}function v(){var e=r("MAIBAChatAppUIProvider")();return e.isMAIBAChatAppOpen}l.default=C}),226);
-----
MAIBAChatThread_useMAIBAChatThreadQueryFetchPolicyQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"externalConversationId"}],t=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],n={kind:"InlineFragment",selections:[{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"relay_record_initially_created_locally",storageKey:null}]}],type:"XFBMAIBAGenAICharmanderConversation",abstractKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"MAIBAChatThread_useMAIBAChatThreadQueryFetchPolicyQuery",selections:[{alias:"node",args:t,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[n],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"MAIBAChatThread_useMAIBAChatThreadQueryFetchPolicyQuery",selections:[{alias:"node",args:t,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"25444213188530534",metadata:{},name:"MAIBAChatThread_useMAIBAChatThreadQueryFetchPolicyQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
MAIBA404PageContent.react",["fbt","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","Image.react","MAIBAChatAppUIActions","MAIBAChatConstants","MAIBAL4AdAccountContext","cr:7013","geoMargin","gkx","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={fullHeight:{minHeight:"xg6iff7",paddingTop:"xb7x3ar",$$css:!0}};function a(){var a=d("react-compiler-runtime").c(9),e=c("gkx")("12597"),f=d("MAIBAL4AdAccountContext").useMAIBAL4AdAccountContext(),g=f.selectedAdAccount;a[0]!==g.id?(f=function(){d("MAIBAChatAppUIActions").openMAIBAChatThread({linkedAdAccountId:g.id})},a[0]=g.id,a[1]=f):f=a[1];f=f;var i;a[2]===Symbol["for"]("react.memo_cache_sentinel")?(i=[k.fullHeight,c("geoMargin").all16],e=e?j.jsxs("div",{className:"x1yztbdb x1n2onr6",children:[j.jsx(c("Image.react"),{height:90,src:d("MAIBAChatConstants").metaAIRingLarge,width:90}),b("cr:7013")&&j.jsx("div",{className:"x10w3d4m xl8wat7 x10l6tqk xdf3czs",children:j.jsx(b("cr:7013"),{})})]}):j.jsx(c("Image.react"),{height:90,src:d("MAIBAChatConstants").metaAIRingLarge,width:90}),a[2]=i,a[3]=e):(i=a[2],e=a[3]);var l;a[4]===Symbol["for"]("react.memo_cache_sentinel")?(l=j.jsx(c("GeoBaseText.react"),{color:"value",size:"header2",textAlign:"center",xstyle:[c("geoMargin").horiz20,c("geoMargin").top16],children:h._(/*BTDS*/"This chat is unavailable")}),a[4]=l):l=a[4];var m;a[5]===Symbol["for"]("react.memo_cache_sentinel")?(m=j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",textAlign:"center",xstyle:c("geoMargin").bottom16,children:h._(/*BTDS*/"The link may be broken or the chat may have been removed. Reload the chat to try again.")}),a[5]=m):m=a[5];var n;a[6]===Symbol["for"]("react.memo_cache_sentinel")?(n=h._(/*BTDS*/"Try again"),a[6]=n):n=a[6];a[7]!==f?(i=j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",justifyContent:"start",shrink:0,xstyle:i,children:[e,l,m,j.jsx(c("GeoButton.react"),{label:n,onClick:f,variant:"primary",xstyle:c("geoMargin").top0})]}),a[7]=f,a[8]=i):i=a[8];return i}g["default"]=a}),226);
-----
usePreloadMAIBAChatOnReady",["JSResource","MAIBAChatMessageDebuggingUtils","MAIBAChatThreadQuery.graphql","MAIBAThreadsInboxConstants","MAIBAThreadsList_Query.graphql","MAIBAUGPRecommendationsUtils","MAIBAUgpRecommendationsGraphQLQuery.graphql","RelayHooks","gkx","justknobx","preloadRelayFetchQuery","react","react-compiler-runtime","usePreloadMAIBAChatOnReadyQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");e.useCallback;var j=e.useEffect,k=!1;function l(){var a=d("react-compiler-runtime").c(2),b=d("RelayHooks").useRelayEnvironment(),e;a[0]!==b?(e=function(a){c("preloadRelayFetchQuery")(b,c("MAIBAThreadsList_Query.graphql"),{count:d("MAIBAThreadsInboxConstants").INBOX_FETCH_SIZE,currentAdAccountID:a})},a[0]=b,a[1]=e):e=a[1];return e}function m(){var a=d("react-compiler-runtime").c(2),b=d("RelayHooks").useRelayEnvironment(),e;a[0]!==b?(e=function(a){c("preloadRelayFetchQuery")(b,c("MAIBAUgpRecommendationsGraphQLQuery.graphql"),{adAccountID:a,deliveryChannel:d("MAIBAUGPRecommendationsUtils").getUGPDeliveryChannel(),deliverySurface:d("MAIBAUGPRecommendationsUtils").getUGPDeliverySurface()})},a[0]=b,a[1]=e):e=a[1];return e}function n(){var a=d("react-compiler-runtime").c(2),e=d("RelayHooks").useRelayEnvironment(),f=c("justknobx")._("4477"),g;a[0]!==e?(g=function(a){if(f<=0)return;d("RelayHooks").fetchQuery(e,h!==void 0?h:h=b("usePreloadMAIBAChatOnReadyQuery.graphql"),{count:f,current_ad_account_id:a},{fetchPolicy:"store-or-network"}).subscribe({next:function(a){var b;a==null||(b=a.viewer)==null||(b=b.osmip)==null||(b=b.maiba_thread_list)==null||b.nodes.forEach(function(a){c("preloadRelayFetchQuery")(e,c("MAIBAChatThreadQuery.graphql"),{externalConversationId:a.thread_key,shouldFetchMessageDebugInfo:d("MAIBAChatMessageDebuggingUtils").isMAIBAMessageDebuggingAllowed()})})}})},a[0]=e,a[1]=g):g=a[1];return g}function o(){return p}function p(){var a;(a=c("JSResource")).loadAll([a("AdsHelpTrayContentPlugins").__setRef("usePreloadMAIBAChatOnReady"),a("AdsHelpTrayChrome.react").__setRef("usePreloadMAIBAChatOnReady"),a("AdsHelpTray.react").__setRef("usePreloadMAIBAChatOnReady")],q)}function q(){}function a(a){var b=d("react-compiler-runtime").c(7),e=m(),f=l(),g=n(),h=o(),i,p;b[0]!==a||b[1]!==h||b[2]!==g||b[3]!==f||b[4]!==e?(i=function(){if(!c("gkx")("9019")||k)return;e(a);f(a);g(a);h();k=!0},p=[a,e,f,g,h],b[0]=a,b[1]=h,b[2]=g,b[3]=f,b[4]=e,b[5]=i,b[6]=p):(i=b[5],p=b[6]);j(i,p)}g["default"]=a}),98);
-----
useMAIBAChatThreadClientInitiated",["RelayHooks","useMAIBAChatThreadClientInitiatedQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){return((a=d("RelayHooks").useLazyLoadQuery(h!==void 0?h:h=b("useMAIBAChatThreadClientInitiatedQuery.graphql"),{externalConversationId:a},{fetchPolicy:"store-only"}).node)==null?void 0:a.is_created_locally)===!0}g["default"]=a}),98);
-----
useMAIBAChatThreadClientInitiatedQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"externalConversationId"}],b=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],c={kind:"InlineFragment",selections:[{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_created_locally",storageKey:null}]}],type:"XFBMAIBAGenAICharmanderConversation",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useMAIBAChatThreadClientInitiatedQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[c],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useMAIBAChatThreadClientInitiatedQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"24708147515507343",metadata:{},name:"useMAIBAChatThreadClientInitiatedQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MAIBAChatThreadBulkActionMenu.react",["fbt","GeoDropdownMenu.react","GeoMenuItem.react","JSResourceForInteraction","MAIBAChatConstants","react","react-compiler-runtime","useGeoLazyModal","useMAIBAUpdateThreadStatus"],(function(q,$,o,a,W,p,L,V){"use strict";var b,m=b||(b=a("react")),K=o("JSResourceForInteraction")("MAIBADeleteThreadModal.react").__setRef("MAIBAChatThreadBulkActionMenu.react"),Q=o("JSResourceForInteraction")("MAIBAArchiveThreadModal.react").__setRef("MAIBAChatThreadBulkActionMenu.react"),S=o("JSResourceForInteraction")("MAIBAChatThreadGenericModal.react").__setRef("MAIBAChatThreadBulkActionMenu.react"),c=function(e,i,u,A){return{canPerform:e,dataTestId:i,label:u,onClick:A}};function g(t){var e=a("react-compiler-runtime").c(11),i=t.activeThreadId,u=t.onBulkActionPerformed,A=t.onOpenNewThread,n=t.selectedThreads,T=o("useMAIBAUpdateThreadStatus")(),z=o("useGeoLazyModal")(S),s=z[0],h;e[0]!==n?(h=Object.keys(n),e[0]=n,e[1]=h):h=e[1];var l=h.length,I;if(e[2]!==i||e[3]!==u||e[4]!==A||e[5]!==n||e[6]!==l||e[7]!==s||e[8]!==T){var O=!1,P=!1,j=!1,v=O,k=P,_=j;Object.values(n).forEach(function(r){r.thread_status==="ACTIVE"?v=!0:r.thread_status==="ARCHIVED"?k=!0:r.thread_status==="PINNED"&&(_=!0)});var C=function(f,d){return u(),Object.entries(n).forEach(function(B){var H=B[0],E=B[1];d(E)&&T({externalConversationId:H,newStatus:f})})},J=function(){if(l>0)return s({action:a("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE,activeThreadId:i,externalConversationId:"",selectedThreadIds:n,onBulkActionSubmitted:u,onOpenNewThread:A})},x=function(){if(l>0)return s({action:a("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE,externalConversationId:"",selectedThreadIds:n,onBulkActionSubmitted:u})},M;e[10]===Symbol.for("react.memo_cache_sentinel")?(M=V._(/*BTDS*/"Select bulk action"),e[10]=M):M=e[10];var N=M,R={pin:c(v,"maiba-chat-thread-management-bulk-pin-button",a("MAIBAChatConstants").PIN_THREAD_LABEL,function(){return C("PINNED",y)}),unpin:c(_,"maiba-chat-thread-management-bulk-unpin-button",a("MAIBAChatConstants").UNPIN_THREAD_LABEL,function(){return C("ACTIVE",G)}),archive_no_modal:c(v&&!_,"maiba-chat-thread-management-bulk-archive-button-no-modal",a("MAIBAChatConstants").ARCHIVE_THREAD_LABEL,function(){return C("ARCHIVED",D)}),archive_with_modal:c(_,"maiba-chat-thread-management-bulk-archive-button-with-modal",a("MAIBAChatConstants").ARCHIVE_THREAD_LABEL,x),unarchive:c(k,"maiba-chat-thread-management-bulk-unarchive-button",a("MAIBAChatConstants").UNARCHIVE_THREAD_LABEL,function(){return C("ACTIVE",w)}),delete:c(!0,"maiba-chat-thread-management-bulk-delete-button",a("MAIBAChatConstants").DELETE_THREAD_LABEL,J)};I=l>0&&m.jsx(o("GeoDropdownMenu.react"),{buttonVariant:"primary","data-testid":void 0,dropdownWidth:100,label:N,useEllipsisIcon:!1,children:Object.keys(R).map(function(r,f){var d=R[r],B=d.canPerform,H=d.dataTestId,E=d.label,F=d.onClick;return B&&m.jsx(o("GeoMenuItem.react"),{"data-testid":void 0,label:E,onClick:F},f)})}),e[2]=i,e[3]=u,e[4]=A,e[5]=n,e[6]=l,e[7]=s,e[8]=T,e[9]=I}else I=e[9];return I}function w(t){return(t==null?void 0:t.thread_status)==="ARCHIVED"}function D(t){return(t==null?void 0:t.thread_status)==="ACTIVE"}function G(t){return(t==null?void 0:t.thread_status)==="PINNED"}function y(t){return(t==null?void 0:t.thread_status)==="ACTIVE"}L.default=g}),226);
-----
MAIBAChatThreadQuery.graphql",["MAIBAShouldFetchBlockRenderers.relayprovider"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"externalConversationId"},c={defaultValue:null,kind:"LocalArgument",name:"shouldFetchMessageDebugInfo"},d=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],e=[{kind:"Literal",name:"first",value:10}],f={alias:null,args:null,kind:"ScalarField",name:"last_shiba_progression_ts",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"external_conversation_id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"action_url",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"dialog_params",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"postback_action_text",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"postback_payload",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"snippet",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"block_type",storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"data",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"depth",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"entity_type",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"recommendation_id",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"ad_object_ids",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"ad_object_type",storageKey:null},w={kind:"InlineFragment",selections:[u,v,{alias:null,args:null,kind:"ScalarField",name:"display_text",storageKey:null}],type:"XFBAdObject",abstractKey:null},x={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},z={kind:"InlineFragment",selections:[y],type:"Node",abstractKey:"__isNode"},A={alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null},C={alias:null,args:null,concreteType:"InlineStyleAtRange",kind:"LinkedField",name:"inline_style_ranges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"inline_style",storageKey:null},A,B],storageKey:null},D=[j,n,{alias:null,args:null,kind:"ScalarField",name:"previous_turn_click_allowed",storageKey:null},k,l,m];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"MAIBAChatThreadQuery",selections:[{alias:"node",args:d,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MAIBAChatHeaderFragment"},{args:e,kind:"FragmentSpread",name:"MAIBAChatMessageListFragment"},f],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,c,{defaultValue:null,kind:"LocalArgument",name:"__relay_internal__pv__MAIBAShouldFetchBlockRenderersrelayprovider"}],kind:"Operation",name:"MAIBAChatThreadQuery",selections:[{alias:"node",args:d,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[g,{kind:"TypeDiscriminator",abstractKey:"__isXFBMAIBAConversation"},h,{alias:null,args:null,kind:"ScalarField",name:"thread_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_title",storageKey:null},{alias:"messages",args:e,concreteType:null,kind:"LinkedField",name:"maiba_message_list",plural:!1,selections:[g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"edges",plural:!0,selections:[g,{alias:null,args:null,concreteType:"XFBMAIBAMessage",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"offline_threading_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"created_timestamp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"role",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bot_request_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"streaming_state",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAAdminTextAttachment",kind:"LinkedField",name:"admin_text",plural:!1,selections:[g,{alias:null,args:null,concreteType:"XFBShibaSMAGXMAT",kind:"LinkedField",name:"render_payload",plural:!1,selections:[i,{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"cta",plural:!1,selections:[j,k,l,m,n],storageKey:null}],storageKey:null}],storageKey:null},h,{alias:null,args:null,kind:"ScalarField",name:"bot_response_id",storageKey:null},o,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"content",plural:!1,selections:[g,{kind:"InlineFragment",selections:[o],type:"XFBMAIBAMessagePlainTextContent",abstractKey:null},{kind:"InlineFragment",selections:[o,{alias:null,args:null,concreteType:"XFBMAIBAComposedBlockWithEntities",kind:"LinkedField",name:"composed_text",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"content",plural:!0,selections:[g,{kind:"TypeDiscriminator",abstractKey:"__isComposedBlockWithEntities"},p,q,r,{alias:null,args:null,kind:"ScalarField",name:"media_alignment",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"media_caption",storageKey:null},{alias:null,args:null,concreteType:"ComposedEntityAtRange",kind:"LinkedField",name:"entity_ranges",plural:!0,selections:[s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"ple_text",storageKey:null},t],type:"XFBPLEObject",abstractKey:null},w,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"points",storageKey:null},t],type:"XFBOSScoreObject",abstractKey:null},{kind:"InlineFragment",selections:[t],type:"XFBOSCTAObject",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"progress_subscription_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"account_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],type:"XFBReviewStatusObject",abstractKey:null},{kind:"InlineFragment",selections:[u,v,{alias:null,args:null,kind:"ScalarField",name:"action",storageKey:null}],type:"XFBNonOSCTAObject",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"format_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"raw_value",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"server_formatted_text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"attributes_json",storageKey:null}],type:"XFBMAIBAClientValue",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"data_viz_type",storageKey:null},j,x,{alias:null,args:null,concreteType:"XFBDataVizConfig",kind:"LinkedField",name:"data_config",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},x,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBDataEntryWithComposedText",kind:"LinkedField",name:"data_entries",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"values",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAComposedBlockWithEntities",kind:"LinkedField",name:"composed_text_values",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"content",plural:!0,selections:[g,p,q,r,{alias:null,args:null,concreteType:"ComposedEntityAtRange",kind:"LinkedField",name:"entity_ranges",plural:!0,selections:[s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[g,w,z],storageKey:null},A,B],storageKey:null},C,i],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_streaming",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null}],type:"XFBMAIBADataVizObject",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"external_url",storageKey:null}],type:"ExternalUrl",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"expression",storageKey:null}],type:"XFBMathObject",abstractKey:null},z],storageKey:null},A,B],storageKey:null},C,i,{condition:"__relay_internal__pv__MAIBAShouldFetchBlockRenderersrelayprovider",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{kind:"Literal",name:"supported",value:"42sSDn"}],concreteType:null,kind:"LinkedField",name:"renderer",plural:!1,selections:[g,{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageParagraphBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedParagraphBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageBlockquoteBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedBlockquoteBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingOneBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderOneBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingTwoBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderTwoBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingThreeBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderThreeBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingFourBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderFourBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingFiveBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderFiveBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingSixBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderSixBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageUnstyledBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedUnstyledBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageOrderedListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedOrderedListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageUnorderedListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedUnorderedListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageCheckboxListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedCheckboxListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAThematicBreakBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedThematicBreakBlockWithEntitiesRenderer",abstractKey:null}],storageKey:'renderer(supported:"42sSDn")'}]}],storageKey:null}],storageKey:null}],type:"XFBMAIBAMessageComposedTextContent",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"XFBMAIBAMessage",kind:"LinkedField",name:"message",plural:!1,selections:[o,y],storageKey:null}],type:"XFBMAIBAMessageComposedTextContent",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBASelectedAsset",kind:"LinkedField",name:"selected_assets",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"asset_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"asset_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"asset_type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBACarouselAttachment",kind:"LinkedField",name:"carousel",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBShibaSMAGCarouselItem",kind:"LinkedField",name:"render_payload",plural:!0,selections:[j,{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"image_url",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"ctas",plural:!0,selections:D,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAButtonAttachment",kind:"LinkedField",name:"buttons",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"render_payload",plural:!0,selections:D,storageKey:null}],storageKey:null},y,{alias:null,args:null,kind:"ScalarField",name:"message_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"feedback_response",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"suggested_prompts",storageKey:null},g,{condition:"shouldFetchMessageDebugInfo",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"bot_invocation_message_otid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fetch_id",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conversation",plural:!1,selections:[g,y,h],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,concreteType:"MAIBAClientErrorDetails",kind:"LinkedField",name:"maiba_client_message_error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exception_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"stack_trace",storageKey:null}],storageKey:null}]}]},{kind:"ClientExtension",selections:[{alias:null,args:null,concreteType:"MAIBAClientErrorDetails",kind:"LinkedField",name:"maiba_client_message_error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"user_message",storageKey:null}],storageKey:null}]}],storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isXFBMAIBAConversationMaibaMessageListEdge"},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_previous_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start_cursor",storageKey:null}],storageKey:null}],storageKey:"maiba_message_list(first:10)"},{alias:"messages",args:e,filters:null,handle:"connection",key:"MAIBAMessageListFragment__maiba_messages",kind:"LinkedHandle",name:"maiba_message_list"},y,f],storageKey:null}]},params:{id:"24436182599408338",metadata:{},name:"MAIBAChatThreadQuery",operationKind:"query",text:null,providedVariables:{__relay_internal__pv__MAIBAShouldFetchBlockRenderersrelayprovider:b("MAIBAShouldFetchBlockRenderers.relayprovider")}}}}();e.exports=a}),null);
-----
MAIBAChatThreadClientInitiatedQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"externalConversationId"}],b=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],c={kind:"InlineFragment",selections:[{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_created_locally",storageKey:null}]}],type:"XFBMAIBAGenAICharmanderConversation",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MAIBAChatThreadClientInitiatedQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[c],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MAIBAChatThreadClientInitiatedQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"24428966693464683",metadata:{},name:"MAIBAChatThreadClientInitiatedQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MAIBAChatThreadGenericModal.react",["fbt","AdsALSubsurface","AdsALSurface","AdsALSurfaceMAIBAPlugin","AdsAddToastCardAction","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","GeoTextInput.react","MAIBAChatConstants","MAIBASubsurfaces","gkx","react","react-compiler-runtime","useBoolean","useMAIBADeleteThread","useMAIBAInvalidInputErrorMessage","useMAIBAUpdateThreadStatus","useMAIBAUpdateTitle"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState,l=(b={},b[d("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE]={modalSubsurface:c("MAIBASubsurfaces").DELETE_THREAD_MODAL,dataTestID:"maiba_delete_thread_modal_82d1",dataTestIDFooter:"maiba_delete_thread_modal_footer_4d21",primaryButtonLabel:d("MAIBAChatConstants").DELETE,primaryButtonDataTestID:"maiba-chat-thread-management-delete-confirm-button"},b[d("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE]={modalSubsurface:c("MAIBASubsurfaces").ARCHIVE_THREAD_MODAL,dataTestID:"maiba_archive_thread_modal_8866",dataTestIDFooter:"maiba_archive_thread_modal_footer_3c01",primaryButtonLabel:d("MAIBAChatConstants").ARCHIVE,primaryButtonDataTestID:"maiba-chat-thread-management-archive-confirm-button"},b[d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME]={modalSubsurface:c("MAIBASubsurfaces").RENAME_THREAD_MODAL,dataTestID:"maiba_rename_thread_modal_84e9",dataTestIDFooter:"maiba_rename_thread_modal_footer_da2d",primaryButtonLabel:d("MAIBAChatConstants").SAVE,primaryButtonDataTestID:"maiba-chat-thread-management-rename-confirm-button"},b),m=function(a,b,c){switch(a){case d("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE:return b?h._(/*BTDS*/"",[h._plural(c,"number")]):d("MAIBAChatConstants").DELETE_TITLE;case d("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE:return b?h._(/*BTDS*/"",[h._plural(c)]):d("MAIBAChatConstants").ARCHIVE_TITLE;case d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME:return d("MAIBAChatConstants").RENAME_TITLE}},n=function(a,b,c){switch(a){case d("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE:return b&&c>1?h._(/*BTDS*/""):d("MAIBAChatConstants").DELETE_DESCRIPTION;case d("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE:return b&&c>1?h._(/*BTDS*/""):d("MAIBAChatConstants").ARCHIVE_DESCRIPTION;case d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME:return d("MAIBAChatConstants").RENAME_TITLE}};function a(a){var b=d("react-compiler-runtime").c(69),e=a.action,g=a.activeThreadId,i=a.existingThreadTitle,p=a.externalConversationId,q=a.onBulkActionSubmitted,r=a.onOpenThread,s=a.selectedThreadIds,t=c("useMAIBADeleteThread")(),u=function(){if(c("gkx")("6986")&&s){var a=h._(/*BTDS*/"",[h._plural(I,"number")]);Object.values(s).forEach(function(a){t({externalConversationId:(a=a.id)!=null?a:""})});c("AdsAddToastCardAction").dispatch({toastCard:{"data-testid":"maiba-chat-bulk-thread-management-menu-deleted-success-toast",id:"maiba-chat-bulk-thread-management-menu-deleted-success-toast",cardType:"success",canDismiss:!0,onDismiss:o,header:a,dismissTimer:5e3}},{line:"143",module:"MAIBAChatThreadGenericModal.react.js",moduleID:f.id});s&&g!=null&&s[g]&&r&&r({isNewThread:!0});q==null||q()}else t({externalConversationId:p}),c("AdsAddToastCardAction").dispatch({toastCard:d("MAIBAChatConstants").DELETED_SUCCESS_TOAST},{line:"167",module:"MAIBAChatThreadGenericModal.react.js",moduleID:f.id}),g===p&&r&&r({isNewThread:!0})},v=c("useMAIBAUpdateThreadStatus")();b[0]!==p||b[1]!==q||b[2]!==s||b[3]!==v?(a=function(){c("gkx")("6986")&&s?(Object.values(s).forEach(function(a){if(a.thread_status==="PINNED"||a.thread_status==="ACTIVE"){v({externalConversationId:(a=a.id)!=null?a:"",newStatus:"ARCHIVED"})}}),q==null||q()):v({externalConversationId:p,newStatus:"ARCHIVED"})},b[0]=p,b[1]=q,b[2]=s,b[3]=v,b[4]=a):a=b[4];var w=a;a=c("useMAIBAInvalidInputErrorMessage")(d("MAIBAChatConstants").ERROR_EMTPY_TITLE);var x=a.error,y=a.onFirstInteraction;a=k("");var z=a[0],A=a[1],B=c("useMAIBAUpdateTitle")();a=k(i);var C=a[0],D=a[1];b[5]!==p||b[6]!==z||b[7]!==B?(i=function(){B({externalConversationId:p,newTitle:z}),c("AdsAddToastCardAction").dispatch({toastCard:d("MAIBAChatConstants").RENAME_SUCCESS_TOAST},{line:"214",module:"MAIBAChatThreadGenericModal.react.js",moduleID:f.id})},b[5]=p,b[6]=z,b[7]=B,b[8]=i):i=b[8];var E=i;b[9]!==x?(a=function(a){if(a.trim().length===0)return x;else if(a.length>d("MAIBAChatConstants").THREAD_TITLE_MAX_LENGTH)return d("MAIBAChatConstants").ERROR_MAX_LENGTH;else return null},b[9]=x,b[10]=a):a=b[10];var F=a;i=e===d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME?z.trim().length===0||z.length>d("MAIBAChatConstants").THREAD_TITLE_MAX_LENGTH:!1;a=c("useBoolean")(!0);var G=a.value,H=a.setFalse;b[11]!==s?(a=Object.keys(s!=null?s:{}),b[11]=s,b[12]=a):a=b[12];var I=a.length;a=m(e,s!=null,I!=null?I:0);var J=n(e,s!=null,I!=null?I:0),K;b[13]!==e||b[14]!==F||b[15]!==J||b[16]!==y||b[17]!==A||b[18]!==D||b[19]!==z||b[20]!==C?(K=function(){switch(e){case d("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE:return j.jsx(c("GeoText.react"),{children:J});case d("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE:return j.jsx(c("GeoText.react"),{children:J});case d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME:return j.jsx("div",{style:{margin:16},children:j.jsx(c("GeoTextInput.react"),{"data-testid":void 0,isDisabled:!1,label:d("MAIBAChatConstants").INPUT_LABEL,value:C,warningMessage:F(z),onChange:function(a){y(),A(a),D(a)}})})}},b[13]=e,b[14]=F,b[15]=J,b[16]=y,b[17]=A,b[18]=D,b[19]=z,b[20]=C,b[21]=K):K=b[21];K=K;var L;b[22]!==e||b[23]!==H||b[24]!==w||b[25]!==u||b[26]!==E?(L=function(){bb103:switch(e){case d("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE:u();break bb103;case d("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE:w();break bb103;case d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME:E()}H()},b[22]=e,b[23]=H,b[24]=w,b[25]=u,b[26]=E,b[27]=L):L=b[27];L=L;var M;b[28]!==H?(M=function(){H()},b[28]=H,b[29]=M):M=b[29];M=M;var N=l[e],O;b[30]!==N.modalSubsurface?(O=d("AdsALSubsurface").getDynamicSubsurface(N.modalSubsurface),b[30]=N.modalSubsurface,b[31]=O):O=b[31];N=l[e];var P=l[e],Q=l[e],R;b[32]!==Q.dataTestIDFooter?(R={surface:Q.dataTestIDFooter},b[32]=Q.dataTestIDFooter,b[33]=R):R=b[33];Q=l[e];var S=l[e],T=l[e],U;b[34]!==T.primaryButtonDataTestID?(U={surface:T.primaryButtonDataTestID},b[34]=T.primaryButtonDataTestID,b[35]=U):U=b[35];b[36]!==i||b[37]!==L||b[38]!==Q.primaryButtonDataTestID||b[39]!==S.primaryButtonLabel||b[40]!==U?(T=j.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:i,label:S.primaryButtonLabel,logging:U,variant:"primary",onClick:L}),b[36]=i,b[37]=L,b[38]=Q.primaryButtonDataTestID,b[39]=S.primaryButtonLabel,b[40]=U,b[41]=T):T=b[41];b[42]!==M?(i=j.jsx(c("GeoCancelButton.react"),{onClick:M}),b[42]=M,b[43]=i):i=b[43];b[44]!==P.dataTestIDFooter||b[45]!==R||b[46]!==T||b[47]!==i?(L=j.jsx(c("GeoModalFooter.react"),{"data-testid":void 0,logging:R,primaryButton:T,secondaryButton:i}),b[44]=P.dataTestIDFooter,b[45]=R,b[46]=T,b[47]=i,b[48]=L):L=b[48];b[49]!==a?(Q=j.jsx(c("GeoModalHeader.react"),{heading:a}),b[49]=a,b[50]=Q):Q=b[50];S=l[e];b[51]!==S.dataTestID?(U={surface:S.dataTestID},b[51]=S.dataTestID,b[52]=U):U=b[52];b[53]!==K?(P=K(),b[53]=K,b[54]=P):P=b[54];b[55]!==P?(R=j.jsx(c("GeoSection.react"),{children:P}),b[55]=P,b[56]=R):R=b[56];b[57]!==G||b[58]!==a||b[59]!==M||b[60]!==N.dataTestID||b[61]!==L||b[62]!==Q||b[63]!==U||b[64]!==R?(T=j.jsx(c("GeoModal.react"),{"data-testid":void 0,footer:L,header:Q,isShown:G,label:a,logging:U,onHide:M,children:R}),b[57]=G,b[58]=a,b[59]=M,b[60]=N.dataTestID,b[61]=L,b[62]=Q,b[63]=U,b[64]=R,b[65]=T):T=b[65];b[66]!==T||b[67]!==O?(i=j.jsx(c("AdsALSurface").Comp,{subsurface:O,surface:c("AdsALSurfaceMAIBAPlugin"),children:T}),b[66]=T,b[67]=O,b[68]=i):i=b[68];return i}function o(){}g["default"]=a}),226);
-----
MAIBAThreadListItem.react",["GeoBaseInteractiveRow.react","GeoBaseText.react","GeoColorSelectors","GeoFlexbox.react","GeoListGenericItem.react","JSResource","geoMargin","gkx","lazyLoadComponent","react","react-compiler-runtime","stylex","useGeoTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState,l={name:{flexGrow:"x1iyjqo2",minWidth:"xeuugli",$$css:!0},root:{width:"xh8yej3",$$css:!0},threadsDropdownMenu:{width:"x1kky2od",height:"xlup9mm",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x1nn3v0j",paddingInlineEnd:"x14vy60q",paddingBottom:"x1120s5i",paddingInlineStart:"xyiysdx",$$css:!0},hidden:{visibility:"xlshs6z",$$css:!0},visible:{visibility:"xnpuxes",$$css:!0},threadPadding:{paddingTop:"x1yrsyyn",paddingBottom:"x10b6aqq",$$css:!0}},m=c("lazyLoadComponent")(c("JSResource")("MAIBAChatThreadManagementMenu.react").__setRef("MAIBAThreadListItem.react"));function a(a){var b=d("react-compiler-runtime").c(33),e=a.isActive,f=a.onCollapseThreadsList,g=a.onSelectThread,i=a.threadId,n=a.threadName;a=a.threadStatus;var o=c("useGeoTheme")();o=o.selectBorderRadius;var p;b[0]!==f||b[1]!==g||b[2]!==i?(p=function(){g({chatInitiationArgs:{},externalConversationId:i,isNewThread:!1}),f()},b[0]=f,b[1]=g,b[2]=i,b[3]=p):p=b[3];p=p;var q=k(!1),r=q[0],s=q[1];b[4]!==n?(q=j.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",showTruncationTooltip:!1,size:"value",weight:"normal",xstyle:l.name,children:n}),b[4]=n,b[5]=q):q=b[5];q=q;var t;b[6]!==r||b[7]!==o?(t=(h||(h=c("stylex"))).props(l.threadsDropdownMenu,r?l.visible:l.hidden,o({context:"content"})),b[6]=r,b[7]=o,b[8]=t):t=b[8];b[9]!==i||b[10]!==n||b[11]!==a?(r=i!=null&&c("gkx")("12557")&&j.jsx(m,{existingThreadTitle:n!=null?n:"",externalConversationId:i,isHeaderVariation:!1,threadStatus:a}),b[9]=i,b[10]=n,b[11]=a,b[12]=r):r=b[12];b[13]!==t||b[14]!==r?(n=j.jsx("div",babelHelpers["extends"]({},t,{children:r})),b[13]=t,b[14]=r,b[15]=n):n=b[15];a=n;b[16]!==e||b[17]!==o?(t=(h||(h=c("stylex"))).props(l.root,e===!0&&d("GeoColorSelectors").selectStaticBackgroundColor({surface:"wash",isMuted:!0}),o({context:"container"})),b[16]=e,b[17]=o,b[18]=t):t=b[18];b[19]===Symbol["for"]("react.memo_cache_sentinel")?(r=function(){s(!0)},n=function(){s(!1)},b[19]=r,b[20]=n):(r=b[19],n=b[20]);b[21]===Symbol["for"]("react.memo_cache_sentinel")?(e=[c("geoMargin").start8,l.threadPadding],b[21]=e):e=b[21];b[22]!==q?(o=j.jsx(c("GeoFlexbox.react"),{"data-testid":void 0,direction:"row",gap:8,grow:1,xstyle:e,children:q}),b[22]=q,b[23]=o):o=b[23];b[24]!==a?(e=j.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").end4,children:a}),b[24]=a,b[25]=e):e=b[25];b[26]!==p||b[27]!==o||b[28]!==e?(q=j.jsxs(c("GeoBaseInteractiveRow.react"),{accessibilityRole:"listitem",isFocusable:!0,isHoverable:!0,onPress:p,children:[o,e]}),b[26]=p,b[27]=o,b[28]=e,b[29]=q):q=b[29];b[30]!==q||b[31]!==t?(a=j.jsx(c("GeoListGenericItem.react"),{"data-testid":void 0,children:j.jsx("div",babelHelpers["extends"]({},t,{onMouseEnter:r,onMouseLeave:n,children:q}))}),b[30]=q,b[31]=t,b[32]=a):a=b[32];return a}g["default"]=a}),98);
-----
MAIBAChatAppUIActions",["MAIBAChatAppAction","MAIBAChatConstants"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("MAIBAChatAppAction").dispatch({windowAction:{actionType:"toggle"}},{line:"17",module:"MAIBAChatAppUIActions.js",moduleID:f.id})}function b(){c("MAIBAChatAppAction").dispatch({windowAction:{actionType:"open"}},{line:"23",module:"MAIBAChatAppUIActions.js",moduleID:f.id})}function e(){c("MAIBAChatAppAction").dispatch({windowAction:{actionType:"close"}},{line:"29",module:"MAIBAChatAppUIActions.js",moduleID:f.id})}function h(a){var b=a.externalConversationId,d=a.chatInitiationArgs,e=a.isNewThread;a=a.onStopGeneratingResponse;c("MAIBAChatAppAction").dispatch({chatAction:{chatInitiationArgs:d!=null?d:{},isNewThread:e!=null?e:!1,onStopGeneratingResponse:a,externalConversationId:b!=null?b:""},windowAction:{actionType:"open"}},{line:"40",module:"MAIBAChatAppUIActions.js",moduleID:f.id})}function i(a){c("MAIBAChatAppAction").dispatch({resizeAction:{width:a!=null?a:d("MAIBAChatConstants").DEFAULT_CHAT_WINDOW_WIDTH}},{line:"52",module:"MAIBAChatAppUIActions.js",moduleID:f.id})}g.toggleMAIBAChatAppOpen=a;g.openMAIBAChatApp=b;g.closeMAIBAChatApp=e;g.openMAIBAChatThread=h;g.updateMAIBAChatWindowWidth=i}),98);
-----
MAIBAChatThreadConversationQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"externalConversationId"},{defaultValue:null,kind:"LocalArgument",name:"isEmployee"},{defaultValue:null,kind:"LocalArgument",name:"shouldFetchDebugInfo"}],b=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],c=[{kind:"Literal",name:"first",value:10}],d={alias:null,args:null,kind:"ScalarField",name:"display_title",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"last_shiba_progression_ts",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"external_conversation_id",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"action_url",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"dialog_params",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"postback_action_text",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"postback_payload",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"previous_turn_click_allowed",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"snippet",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MAIBAChatThreadConversationQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{args:c,kind:"FragmentSpread",name:"MAIBAChatMessageListFragment"},d,e],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MAIBAChatThreadConversationQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[f,{kind:"TypeDiscriminator",abstractKey:"__isXFBMAIBAConversation"},{alias:"messages",args:c,concreteType:null,kind:"LinkedField",name:"maiba_message_list",plural:!1,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"edges",plural:!0,selections:[f,{alias:null,args:null,concreteType:"XFBMAIBAMessage",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"offline_threading_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"created_timestamp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bot_request_id",storageKey:null},g,{alias:null,args:null,kind:"ScalarField",name:"bot_response_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"streaming_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"role",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAAdminTextAttachment",kind:"LinkedField",name:"admin_text",plural:!1,selections:[f,{alias:null,args:null,concreteType:"XFBShibaSMAGXMAT",kind:"LinkedField",name:"render_payload",plural:!1,selections:[h,{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"cta",plural:!1,selections:[i,j,k,l,m],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAButtonAttachment",kind:"LinkedField",name:"buttons",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"render_payload",plural:!0,selections:[f,i,m,n,j,k,l],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"content",plural:!1,selections:[f,{kind:"InlineFragment",selections:[o],type:"XFBMAIBAMessagePlainTextContent",abstractKey:null},{kind:"InlineFragment",selections:[o,{alias:null,args:null,concreteType:"XFBMAIBAComposedBlockWithEntities",kind:"LinkedField",name:"composed_text",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"content",plural:!0,selections:[f,{kind:"TypeDiscriminator",abstractKey:"__isComposedBlockWithEntities"},{alias:null,args:null,kind:"ScalarField",name:"block_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"data",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"depth",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"media_alignment",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"media_caption",storageKey:null},{alias:null,args:null,concreteType:"ComposedEntityAtRange",kind:"LinkedField",name:"entity_ranges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"entity_type",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[f,p,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"external_url",storageKey:null}],type:"ExternalUrl",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"expression",storageKey:null}],type:"XFBMathObject",abstractKey:null},{kind:"InlineFragment",selections:[q],type:"Node",abstractKey:"__isNode"}],storageKey:null},r,s],storageKey:null},{alias:null,args:null,concreteType:"InlineStyleAtRange",kind:"LinkedField",name:"inline_style_ranges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"inline_style",storageKey:null},r,s],storageKey:null},h,{alias:null,args:[{kind:"Literal",name:"supported",value:"4dWNMJ"}],concreteType:null,kind:"LinkedField",name:"renderer",plural:!1,selections:[f,{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageParagraphBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedParagraphBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageBlockquoteBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedBlockquoteBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingOneBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderOneBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingTwoBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderTwoBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingThreeBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderThreeBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingFourBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderFourBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingFiveBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderFiveBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingSixBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderSixBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"AbraMessageInlineTableBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedTableBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageUnstyledBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedUnstyledBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageOrderedListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedOrderedListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageUnorderedListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedUnorderedListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageCheckboxListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedCheckboxListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAThematicBreakBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedThematicBreakBlockWithEntitiesRenderer",abstractKey:null}],storageKey:'renderer(supported:"4dWNMJ")'}],storageKey:null}],storageKey:null}],type:"XFBMAIBAMessageComposedTextContent",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"suggested_prompts",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message_id",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAAssetSelectionInfoGQL",kind:"LinkedField",name:"asset_selection",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"asset_selection_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"asset_selection_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ad_account_id",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAAssetSelectionAssetsGQL",kind:"LinkedField",name:"assets",plural:!0,selections:[q,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBACarouselAttachment",kind:"LinkedField",name:"carousel",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBShibaSMAGCarouselItem",kind:"LinkedField",name:"render_payload",plural:!0,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"image_url",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"ctas",plural:!0,selections:[i,m,n,j,k,l],storageKey:null}],storageKey:null}],storageKey:null},o,q,{alias:null,args:null,kind:"ScalarField",name:"feedback_response",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAHelpLink",kind:"LinkedField",name:"help_center_links",plural:!0,selections:[p,i,{alias:null,args:null,kind:"ScalarField",name:"sub_title",storageKey:null}],storageKey:null},f,{condition:"shouldFetchDebugInfo",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"additional_payload",storageKey:null}]},{condition:"isEmployee",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"fetch_id",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conversation",plural:!1,selections:[f,q,g],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,concreteType:"MAIBAClientErrorDetails",kind:"LinkedField",name:"maiba_client_message_error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exception_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"stack_trace",storageKey:null}],storageKey:null}]}]}],storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isXFBMAIBAConversationMaibaMessageListEdge"},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_previous_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start_cursor",storageKey:null}],storageKey:null}],storageKey:"maiba_message_list(first:10)"},{alias:"messages",args:c,filters:null,handle:"connection",key:"MAIBAMessageListFragment__maiba_messages",kind:"LinkedHandle",name:"maiba_message_list"},q,d,e],storageKey:null}]},params:{id:"24323190333935789",metadata:{},name:"MAIBAChatThreadConversationQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
MAIBAChatThreadManagementMenuStatusQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"externalConversationId"}],b=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],c={alias:null,args:null,kind:"ScalarField",name:"thread_status",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MAIBAChatThreadManagementMenuStatusQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[c],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MAIBAChatThreadManagementMenuStatusQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"24074716575461471",metadata:{},name:"MAIBAChatThreadManagementMenuStatusQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MAIBAChatThreadManagementMenu.react",["ix","GeoDropdownMenu.react","GeoMenuItem.react","MAIBAChatConstants","emptyFunction","fbicon","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(11),e=a.externalConversationId,f=a.isHeaderVariation;a=a.title;f=f===void 0?!1:f;if(e==null||e==="")return null;e=!f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=j.jsx(c("GeoMenuItem.react"),{icon:d("fbicon")._(h("477825"),16),label:d("MAIBAChatConstants").RENAME_THREAD_LABEL,onClick:c("emptyFunction")}),b[0]=f):f=b[0];var g;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(g=j.jsx(c("GeoMenuItem.react"),{icon:d("fbicon")._(h("483296"),16),label:d("MAIBAChatConstants").ARCHIVE_THREAD_LABEL,onClick:c("emptyFunction")}),b[1]=g):g=b[1];var i;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(i=j.jsx(c("GeoMenuItem.react"),{icon:d("fbicon")._(h("723621"),16),label:d("MAIBAChatConstants").PIN_THREAD_LABEL,onClick:c("emptyFunction")}),b[2]=i):i=b[2];var k;b[3]===Symbol["for"]("react.memo_cache_sentinel")?(k=j.jsx(c("GeoMenuItem.react"),{icon:d("fbicon")._(h("483825"),16),label:d("MAIBAChatConstants").DELETE_THREAD_LABEL,onClick:c("emptyFunction")}),b[3]=k):k=b[3];var l;b[4]!==e||b[5]!==f||b[6]!==g||b[7]!==i||b[8]!==k||b[9]!==a?(l=j.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat","data-testid":void 0,label:a,useEllipsisIcon:e,children:[f,g,i,k]}),b[4]=e,b[5]=f,b[6]=g,b[7]=i,b[8]=k,b[9]=a,b[10]=l):l=b[10];return l}g["default"]=a}),98);
-----
MAIBAChatRoot.react",["AdsHelpTrayPopNavigationStackAction","MAIBAChatThread.react","MAIBAChatWelcomePage.react","adsToggleHelpTray","react","withAdsHeroTracing"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");b={root:{height:"x5yr21d",$$css:!0}};function a(a){a=a.navState;var b=function(){return c("AdsHelpTrayPopNavigationStackAction").dispatch({},{line:"31",module:"MAIBAChatRoot.react.js",moduleID:f.id})},d=function(){return c("adsToggleHelpTray")(!1)};return a.id==null||a.id===""?i.jsx(c("MAIBAChatWelcomePage.react"),{onBack:b,onClose:d}):i.jsx(c("MAIBAChatThread.react"),{externalConversationId:a.id,isNewConversation:(a=(a=a.osmipExtraData)==null?void 0:a.isNewThread)!=null?a:!1,onBack:b,onClose:d})}a.displayName=a.name+" [from "+f.id+"]";e=c("withAdsHeroTracing")("am.help_center.ads_ai",a,{heroRootComponentName:f.id,xstyle:b.root});g["default"]=e}),98);
-----
MAIBAChatThread.react",["AdsOsmipChatConstants.react","GeoColorSelectors","GeoFlexbox.react","MAIBAChatHeader.react","MAIBAChatMessageComposer.react","MAIBAChatMessageList.react","MAIBAChatThreadConversationQuery.graphql","RelayHooks","gkx","react","withAdsHeroTracing"],(function(a,b,c,d,e,f,g){var h,i,j=i||d("react"),k=d("GeoColorSelectors").selectStaticBackgroundColor({surface:"content"}),l={root:{height:"x5yr21d",$$css:!0}};function a(a){var e=a.externalConversationId,f=a.isNewConversation,g=a.onBack;a=a.onClose;f=d("RelayHooks").useLazyLoadQuery(h!==void 0?h:h=b("MAIBAChatThreadConversationQuery.graphql"),{externalConversationId:e},{fetchPolicy:f?"store-only":"store-or-network"});var i=c("gkx")("2059")?d("AdsOsmipChatConstants.react").metaAIThreadHeaderImage:d("AdsOsmipChatConstants.react").adsAIThreadHeaderImage;if(e==null)return;return j.jsxs(c("GeoFlexbox.react"),{alignItems:"stretch",direction:"column",xstyle:[l.root,k],children:[j.jsx(c("MAIBAChatHeader.react"),{headerImage:i,title:(i=(i=f.node)==null?void 0:i.display_title)!=null?i:"new chat",onBack:g,onClose:a}),j.jsx(c("MAIBAChatMessageList.react"),{fragmentKey:f.node}),j.jsx(c("MAIBAChatMessageComposer.react"),{externalConversationId:e})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("withAdsHeroTracing")("am.help_center.ads_ai_message_response",a,{heroRootComponentName:f.id,xstyle:l.root});g["default"]=e}),98);
-----
MAIBAChatHelpTrayContentPlugin",["JSResourceForInteraction","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j=c("lazyLoadComponent")(c("JSResourceForInteraction")("MAIBAChatThread.react").__setRef("MAIBAChatHelpTrayContentPlugin"));a={type:"helpTrayContent",key:"maiba_chat",contentType:"MAIBA_CHAT",render:function(a){a=a.navState;return i.jsx(j,{navState:a})}};b=a;g["default"]=b}),98);
-----
-----
MAIBAChatThread_useMAIBAChatThreadQueryFetchPolicyQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"externalConversationId"}],t=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],n={kind:"InlineFragment",selections:[{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"relay_record_initially_created_locally",storageKey:null}]}],type:"XFBMAIBAGenAICharmanderConversation",abstractKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"MAIBAChatThread_useMAIBAChatThreadQueryFetchPolicyQuery",selections:[{alias:"node",args:t,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[n],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"MAIBAChatThread_useMAIBAChatThreadQueryFetchPolicyQuery",selections:[{alias:"node",args:t,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},n,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"25444213188530534",metadata:{},name:"MAIBAChatThread_useMAIBAChatThreadQueryFetchPolicyQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
MAIBA404PageContent.react",["fbt","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","Image.react","MAIBAChatAppUIActions","MAIBAChatConstants","MAIBAL4AdAccountContext","cr:7013","geoMargin","gkx","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={fullHeight:{minHeight:"xg6iff7",paddingTop:"xb7x3ar",$$css:!0}};function a(){var a=d("react-compiler-runtime").c(9),e=c("gkx")("12597"),f=d("MAIBAL4AdAccountContext").useMAIBAL4AdAccountContext(),g=f.selectedAdAccount;a[0]!==g.id?(f=function(){d("MAIBAChatAppUIActions").openMAIBAChatThread({linkedAdAccountId:g.id})},a[0]=g.id,a[1]=f):f=a[1];f=f;var i;a[2]===Symbol["for"]("react.memo_cache_sentinel")?(i=[k.fullHeight,c("geoMargin").all16],e=e?j.jsxs("div",{className:"x1yztbdb x1n2onr6",children:[j.jsx(c("Image.react"),{height:90,src:d("MAIBAChatConstants").metaAIRingLarge,width:90}),b("cr:7013")&&j.jsx("div",{className:"x10w3d4m xl8wat7 x10l6tqk xdf3czs",children:j.jsx(b("cr:7013"),{})})]}):j.jsx(c("Image.react"),{height:90,src:d("MAIBAChatConstants").metaAIRingLarge,width:90}),a[2]=i,a[3]=e):(i=a[2],e=a[3]);var l;a[4]===Symbol["for"]("react.memo_cache_sentinel")?(l=j.jsx(c("GeoBaseText.react"),{color:"value",size:"header2",textAlign:"center",xstyle:[c("geoMargin").horiz20,c("geoMargin").top16],children:h._(/*BTDS*/"This chat is unavailable")}),a[4]=l):l=a[4];var m;a[5]===Symbol["for"]("react.memo_cache_sentinel")?(m=j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",textAlign:"center",xstyle:c("geoMargin").bottom16,children:h._(/*BTDS*/"The link may be broken or the chat may have been removed. Reload the chat to try again.")}),a[5]=m):m=a[5];var n;a[6]===Symbol["for"]("react.memo_cache_sentinel")?(n=h._(/*BTDS*/"Try again"),a[6]=n):n=a[6];a[7]!==f?(i=j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",justifyContent:"start",shrink:0,xstyle:i,children:[e,l,m,j.jsx(c("GeoButton.react"),{label:n,onClick:f,variant:"primary",xstyle:c("geoMargin").top0})]}),a[7]=f,a[8]=i):i=a[8];return i}g["default"]=a}),226);
-----
usePreloadMAIBAChatOnReady",["JSResource","MAIBAChatMessageDebuggingUtils","MAIBAChatThreadQuery.graphql","MAIBAThreadsInboxConstants","MAIBAThreadsList_Query.graphql","MAIBAUGPRecommendationsUtils","MAIBAUgpRecommendationsGraphQLQuery.graphql","RelayHooks","gkx","justknobx","preloadRelayFetchQuery","react","react-compiler-runtime","usePreloadMAIBAChatOnReadyQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");e.useCallback;var j=e.useEffect,k=!1;function l(){var a=d("react-compiler-runtime").c(2),b=d("RelayHooks").useRelayEnvironment(),e;a[0]!==b?(e=function(a){c("preloadRelayFetchQuery")(b,c("MAIBAThreadsList_Query.graphql"),{count:d("MAIBAThreadsInboxConstants").INBOX_FETCH_SIZE,currentAdAccountID:a})},a[0]=b,a[1]=e):e=a[1];return e}function m(){var a=d("react-compiler-runtime").c(2),b=d("RelayHooks").useRelayEnvironment(),e;a[0]!==b?(e=function(a){c("preloadRelayFetchQuery")(b,c("MAIBAUgpRecommendationsGraphQLQuery.graphql"),{adAccountID:a,deliveryChannel:d("MAIBAUGPRecommendationsUtils").getUGPDeliveryChannel(),deliverySurface:d("MAIBAUGPRecommendationsUtils").getUGPDeliverySurface()})},a[0]=b,a[1]=e):e=a[1];return e}function n(){var a=d("react-compiler-runtime").c(2),e=d("RelayHooks").useRelayEnvironment(),f=c("justknobx")._("4477"),g;a[0]!==e?(g=function(a){if(f<=0)return;d("RelayHooks").fetchQuery(e,h!==void 0?h:h=b("usePreloadMAIBAChatOnReadyQuery.graphql"),{count:f,current_ad_account_id:a},{fetchPolicy:"store-or-network"}).subscribe({next:function(a){var b;a==null||(b=a.viewer)==null||(b=b.osmip)==null||(b=b.maiba_thread_list)==null||b.nodes.forEach(function(a){c("preloadRelayFetchQuery")(e,c("MAIBAChatThreadQuery.graphql"),{externalConversationId:a.thread_key,shouldFetchMessageDebugInfo:d("MAIBAChatMessageDebuggingUtils").isMAIBAMessageDebuggingAllowed()})})}})},a[0]=e,a[1]=g):g=a[1];return g}function o(){return p}function p(){var a;(a=c("JSResource")).loadAll([a("AdsHelpTrayContentPlugins").__setRef("usePreloadMAIBAChatOnReady"),a("AdsHelpTrayChrome.react").__setRef("usePreloadMAIBAChatOnReady"),a("AdsHelpTray.react").__setRef("usePreloadMAIBAChatOnReady")],q)}function q(){}function a(a){var b=d("react-compiler-runtime").c(7),e=m(),f=l(),g=n(),h=o(),i,p;b[0]!==a||b[1]!==h||b[2]!==g||b[3]!==f||b[4]!==e?(i=function(){if(!c("gkx")("9019")||k)return;e(a);f(a);g(a);h();k=!0},p=[a,e,f,g,h],b[0]=a,b[1]=h,b[2]=g,b[3]=f,b[4]=e,b[5]=i,b[6]=p):(i=b[5],p=b[6]);j(i,p)}g["default"]=a}),98);
-----
useMAIBAChatThreadClientInitiated",["RelayHooks","useMAIBAChatThreadClientInitiatedQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){return((a=d("RelayHooks").useLazyLoadQuery(h!==void 0?h:h=b("useMAIBAChatThreadClientInitiatedQuery.graphql"),{externalConversationId:a},{fetchPolicy:"store-only"}).node)==null?void 0:a.is_created_locally)===!0}g["default"]=a}),98);
-----
useMAIBAChatThreadClientInitiatedQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"externalConversationId"}],b=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],c={kind:"InlineFragment",selections:[{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_created_locally",storageKey:null}]}],type:"XFBMAIBAGenAICharmanderConversation",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useMAIBAChatThreadClientInitiatedQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[c],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useMAIBAChatThreadClientInitiatedQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"24708147515507343",metadata:{},name:"useMAIBAChatThreadClientInitiatedQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MAIBAChatThreadBulkActionMenu.react",["fbt","GeoDropdownMenu.react","GeoMenuItem.react","JSResourceForInteraction","MAIBAChatConstants","react","react-compiler-runtime","useGeoLazyModal","useMAIBAUpdateThreadStatus"],(function(q,$,o,a,W,p,L,V){"use strict";var b,m=b||(b=a("react")),K=o("JSResourceForInteraction")("MAIBADeleteThreadModal.react").__setRef("MAIBAChatThreadBulkActionMenu.react"),Q=o("JSResourceForInteraction")("MAIBAArchiveThreadModal.react").__setRef("MAIBAChatThreadBulkActionMenu.react"),S=o("JSResourceForInteraction")("MAIBAChatThreadGenericModal.react").__setRef("MAIBAChatThreadBulkActionMenu.react"),c=function(e,i,u,A){return{canPerform:e,dataTestId:i,label:u,onClick:A}};function g(t){var e=a("react-compiler-runtime").c(11),i=t.activeThreadId,u=t.onBulkActionPerformed,A=t.onOpenNewThread,n=t.selectedThreads,T=o("useMAIBAUpdateThreadStatus")(),z=o("useGeoLazyModal")(S),s=z[0],h;e[0]!==n?(h=Object.keys(n),e[0]=n,e[1]=h):h=e[1];var l=h.length,I;if(e[2]!==i||e[3]!==u||e[4]!==A||e[5]!==n||e[6]!==l||e[7]!==s||e[8]!==T){var O=!1,P=!1,j=!1,v=O,k=P,_=j;Object.values(n).forEach(function(r){r.thread_status==="ACTIVE"?v=!0:r.thread_status==="ARCHIVED"?k=!0:r.thread_status==="PINNED"&&(_=!0)});var C=function(f,d){return u(),Object.entries(n).forEach(function(B){var H=B[0],E=B[1];d(E)&&T({externalConversationId:H,newStatus:f})})},J=function(){if(l>0)return s({action:a("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE,activeThreadId:i,externalConversationId:"",selectedThreadIds:n,onBulkActionSubmitted:u,onOpenNewThread:A})},x=function(){if(l>0)return s({action:a("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE,externalConversationId:"",selectedThreadIds:n,onBulkActionSubmitted:u})},M;e[10]===Symbol.for("react.memo_cache_sentinel")?(M=V._(/*BTDS*/"Select bulk action"),e[10]=M):M=e[10];var N=M,R={pin:c(v,"maiba-chat-thread-management-bulk-pin-button",a("MAIBAChatConstants").PIN_THREAD_LABEL,function(){return C("PINNED",y)}),unpin:c(_,"maiba-chat-thread-management-bulk-unpin-button",a("MAIBAChatConstants").UNPIN_THREAD_LABEL,function(){return C("ACTIVE",G)}),archive_no_modal:c(v&&!_,"maiba-chat-thread-management-bulk-archive-button-no-modal",a("MAIBAChatConstants").ARCHIVE_THREAD_LABEL,function(){return C("ARCHIVED",D)}),archive_with_modal:c(_,"maiba-chat-thread-management-bulk-archive-button-with-modal",a("MAIBAChatConstants").ARCHIVE_THREAD_LABEL,x),unarchive:c(k,"maiba-chat-thread-management-bulk-unarchive-button",a("MAIBAChatConstants").UNARCHIVE_THREAD_LABEL,function(){return C("ACTIVE",w)}),delete:c(!0,"maiba-chat-thread-management-bulk-delete-button",a("MAIBAChatConstants").DELETE_THREAD_LABEL,J)};I=l>0&&m.jsx(o("GeoDropdownMenu.react"),{buttonVariant:"primary","data-testid":void 0,dropdownWidth:100,label:N,useEllipsisIcon:!1,children:Object.keys(R).map(function(r,f){var d=R[r],B=d.canPerform,H=d.dataTestId,E=d.label,F=d.onClick;return B&&m.jsx(o("GeoMenuItem.react"),{"data-testid":void 0,label:E,onClick:F},f)})}),e[2]=i,e[3]=u,e[4]=A,e[5]=n,e[6]=l,e[7]=s,e[8]=T,e[9]=I}else I=e[9];return I}function w(t){return(t==null?void 0:t.thread_status)==="ARCHIVED"}function D(t){return(t==null?void 0:t.thread_status)==="ACTIVE"}function G(t){return(t==null?void 0:t.thread_status)==="PINNED"}function y(t){return(t==null?void 0:t.thread_status)==="ACTIVE"}L.default=g}),226);
-----
MAIBAChatThreadQuery.graphql",["MAIBAShouldFetchBlockRenderers.relayprovider"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"externalConversationId"},c={defaultValue:null,kind:"LocalArgument",name:"shouldFetchMessageDebugInfo"},d=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],e=[{kind:"Literal",name:"first",value:10}],f={alias:null,args:null,kind:"ScalarField",name:"last_shiba_progression_ts",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"external_conversation_id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"action_url",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"dialog_params",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"postback_action_text",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"postback_payload",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"snippet",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"block_type",storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"data",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"depth",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"entity_type",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"recommendation_id",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"ad_object_ids",storageKey:null},v={alias:null,args:null,kind:"ScalarField",name:"ad_object_type",storageKey:null},w={kind:"InlineFragment",selections:[u,v,{alias:null,args:null,kind:"ScalarField",name:"display_text",storageKey:null}],type:"XFBAdObject",abstractKey:null},x={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},z={kind:"InlineFragment",selections:[y],type:"Node",abstractKey:"__isNode"},A={alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},B={alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null},C={alias:null,args:null,concreteType:"InlineStyleAtRange",kind:"LinkedField",name:"inline_style_ranges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"inline_style",storageKey:null},A,B],storageKey:null},D=[j,n,{alias:null,args:null,kind:"ScalarField",name:"previous_turn_click_allowed",storageKey:null},k,l,m];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"MAIBAChatThreadQuery",selections:[{alias:"node",args:d,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MAIBAChatHeaderFragment"},{args:e,kind:"FragmentSpread",name:"MAIBAChatMessageListFragment"},f],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,c,{defaultValue:null,kind:"LocalArgument",name:"__relay_internal__pv__MAIBAShouldFetchBlockRenderersrelayprovider"}],kind:"Operation",name:"MAIBAChatThreadQuery",selections:[{alias:"node",args:d,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[g,{kind:"TypeDiscriminator",abstractKey:"__isXFBMAIBAConversation"},h,{alias:null,args:null,kind:"ScalarField",name:"thread_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_title",storageKey:null},{alias:"messages",args:e,concreteType:null,kind:"LinkedField",name:"maiba_message_list",plural:!1,selections:[g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"edges",plural:!0,selections:[g,{alias:null,args:null,concreteType:"XFBMAIBAMessage",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"offline_threading_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"created_timestamp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"role",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bot_request_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"streaming_state",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAAdminTextAttachment",kind:"LinkedField",name:"admin_text",plural:!1,selections:[g,{alias:null,args:null,concreteType:"XFBShibaSMAGXMAT",kind:"LinkedField",name:"render_payload",plural:!1,selections:[i,{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"cta",plural:!1,selections:[j,k,l,m,n],storageKey:null}],storageKey:null}],storageKey:null},h,{alias:null,args:null,kind:"ScalarField",name:"bot_response_id",storageKey:null},o,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"content",plural:!1,selections:[g,{kind:"InlineFragment",selections:[o],type:"XFBMAIBAMessagePlainTextContent",abstractKey:null},{kind:"InlineFragment",selections:[o,{alias:null,args:null,concreteType:"XFBMAIBAComposedBlockWithEntities",kind:"LinkedField",name:"composed_text",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"content",plural:!0,selections:[g,{kind:"TypeDiscriminator",abstractKey:"__isComposedBlockWithEntities"},p,q,r,{alias:null,args:null,kind:"ScalarField",name:"media_alignment",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"media_caption",storageKey:null},{alias:null,args:null,concreteType:"ComposedEntityAtRange",kind:"LinkedField",name:"entity_ranges",plural:!0,selections:[s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"ple_text",storageKey:null},t],type:"XFBPLEObject",abstractKey:null},w,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"points",storageKey:null},t],type:"XFBOSScoreObject",abstractKey:null},{kind:"InlineFragment",selections:[t],type:"XFBOSCTAObject",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"progress_subscription_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"account_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],type:"XFBReviewStatusObject",abstractKey:null},{kind:"InlineFragment",selections:[u,v,{alias:null,args:null,kind:"ScalarField",name:"action",storageKey:null}],type:"XFBNonOSCTAObject",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"format_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"raw_value",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"server_formatted_text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"attributes_json",storageKey:null}],type:"XFBMAIBAClientValue",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"data_viz_type",storageKey:null},j,x,{alias:null,args:null,concreteType:"XFBDataVizConfig",kind:"LinkedField",name:"data_config",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},x,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBDataEntryWithComposedText",kind:"LinkedField",name:"data_entries",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"values",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAComposedBlockWithEntities",kind:"LinkedField",name:"composed_text_values",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"content",plural:!0,selections:[g,p,q,r,{alias:null,args:null,concreteType:"ComposedEntityAtRange",kind:"LinkedField",name:"entity_ranges",plural:!0,selections:[s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[g,w,z],storageKey:null},A,B],storageKey:null},C,i],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_streaming",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null}],type:"XFBMAIBADataVizObject",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"external_url",storageKey:null}],type:"ExternalUrl",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"expression",storageKey:null}],type:"XFBMathObject",abstractKey:null},z],storageKey:null},A,B],storageKey:null},C,i,{condition:"__relay_internal__pv__MAIBAShouldFetchBlockRenderersrelayprovider",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{kind:"Literal",name:"supported",value:"42sSDn"}],concreteType:null,kind:"LinkedField",name:"renderer",plural:!1,selections:[g,{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageParagraphBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedParagraphBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageBlockquoteBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedBlockquoteBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingOneBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderOneBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingTwoBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderTwoBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingThreeBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderThreeBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingFourBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderFourBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingFiveBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderFiveBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingSixBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderSixBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageUnstyledBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedUnstyledBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageOrderedListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedOrderedListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageUnorderedListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedUnorderedListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageCheckboxListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedCheckboxListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAThematicBreakBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedThematicBreakBlockWithEntitiesRenderer",abstractKey:null}],storageKey:'renderer(supported:"42sSDn")'}]}],storageKey:null}],storageKey:null}],type:"XFBMAIBAMessageComposedTextContent",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"XFBMAIBAMessage",kind:"LinkedField",name:"message",plural:!1,selections:[o,y],storageKey:null}],type:"XFBMAIBAMessageComposedTextContent",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBASelectedAsset",kind:"LinkedField",name:"selected_assets",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"asset_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"asset_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"asset_type",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBACarouselAttachment",kind:"LinkedField",name:"carousel",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBShibaSMAGCarouselItem",kind:"LinkedField",name:"render_payload",plural:!0,selections:[j,{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"image_url",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"ctas",plural:!0,selections:D,storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAButtonAttachment",kind:"LinkedField",name:"buttons",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"render_payload",plural:!0,selections:D,storageKey:null}],storageKey:null},y,{alias:null,args:null,kind:"ScalarField",name:"message_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"feedback_response",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"suggested_prompts",storageKey:null},g,{condition:"shouldFetchMessageDebugInfo",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"bot_invocation_message_otid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fetch_id",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conversation",plural:!1,selections:[g,y,h],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,concreteType:"MAIBAClientErrorDetails",kind:"LinkedField",name:"maiba_client_message_error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exception_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"stack_trace",storageKey:null}],storageKey:null}]}]},{kind:"ClientExtension",selections:[{alias:null,args:null,concreteType:"MAIBAClientErrorDetails",kind:"LinkedField",name:"maiba_client_message_error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"user_message",storageKey:null}],storageKey:null}]}],storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isXFBMAIBAConversationMaibaMessageListEdge"},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_previous_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start_cursor",storageKey:null}],storageKey:null}],storageKey:"maiba_message_list(first:10)"},{alias:"messages",args:e,filters:null,handle:"connection",key:"MAIBAMessageListFragment__maiba_messages",kind:"LinkedHandle",name:"maiba_message_list"},y,f],storageKey:null}]},params:{id:"24436182599408338",metadata:{},name:"MAIBAChatThreadQuery",operationKind:"query",text:null,providedVariables:{__relay_internal__pv__MAIBAShouldFetchBlockRenderersrelayprovider:b("MAIBAShouldFetchBlockRenderers.relayprovider")}}}}();e.exports=a}),null);
-----
MAIBAChatThreadClientInitiatedQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"externalConversationId"}],b=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],c={kind:"InlineFragment",selections:[{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_created_locally",storageKey:null}]}],type:"XFBMAIBAGenAICharmanderConversation",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MAIBAChatThreadClientInitiatedQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[c],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MAIBAChatThreadClientInitiatedQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"24428966693464683",metadata:{},name:"MAIBAChatThreadClientInitiatedQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MAIBAChatThreadGenericModal.react",["fbt","AdsALSubsurface","AdsALSurface","AdsALSurfaceMAIBAPlugin","AdsAddToastCardAction","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoText.react","GeoTextInput.react","MAIBAChatConstants","MAIBASubsurfaces","gkx","react","react-compiler-runtime","useBoolean","useMAIBADeleteThread","useMAIBAInvalidInputErrorMessage","useMAIBAUpdateThreadStatus","useMAIBAUpdateTitle"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useState,l=(b={},b[d("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE]={modalSubsurface:c("MAIBASubsurfaces").DELETE_THREAD_MODAL,dataTestID:"maiba_delete_thread_modal_82d1",dataTestIDFooter:"maiba_delete_thread_modal_footer_4d21",primaryButtonLabel:d("MAIBAChatConstants").DELETE,primaryButtonDataTestID:"maiba-chat-thread-management-delete-confirm-button"},b[d("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE]={modalSubsurface:c("MAIBASubsurfaces").ARCHIVE_THREAD_MODAL,dataTestID:"maiba_archive_thread_modal_8866",dataTestIDFooter:"maiba_archive_thread_modal_footer_3c01",primaryButtonLabel:d("MAIBAChatConstants").ARCHIVE,primaryButtonDataTestID:"maiba-chat-thread-management-archive-confirm-button"},b[d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME]={modalSubsurface:c("MAIBASubsurfaces").RENAME_THREAD_MODAL,dataTestID:"maiba_rename_thread_modal_84e9",dataTestIDFooter:"maiba_rename_thread_modal_footer_da2d",primaryButtonLabel:d("MAIBAChatConstants").SAVE,primaryButtonDataTestID:"maiba-chat-thread-management-rename-confirm-button"},b),m=function(a,b,c){switch(a){case d("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE:return b?h._(/*BTDS*/"",[h._plural(c,"number")]):d("MAIBAChatConstants").DELETE_TITLE;case d("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE:return b?h._(/*BTDS*/"",[h._plural(c)]):d("MAIBAChatConstants").ARCHIVE_TITLE;case d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME:return d("MAIBAChatConstants").RENAME_TITLE}},n=function(a,b,c){switch(a){case d("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE:return b&&c>1?h._(/*BTDS*/""):d("MAIBAChatConstants").DELETE_DESCRIPTION;case d("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE:return b&&c>1?h._(/*BTDS*/""):d("MAIBAChatConstants").ARCHIVE_DESCRIPTION;case d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME:return d("MAIBAChatConstants").RENAME_TITLE}};function a(a){var b=d("react-compiler-runtime").c(69),e=a.action,g=a.activeThreadId,i=a.existingThreadTitle,p=a.externalConversationId,q=a.onBulkActionSubmitted,r=a.onOpenThread,s=a.selectedThreadIds,t=c("useMAIBADeleteThread")(),u=function(){if(c("gkx")("6986")&&s){var a=h._(/*BTDS*/"",[h._plural(I,"number")]);Object.values(s).forEach(function(a){t({externalConversationId:(a=a.id)!=null?a:""})});c("AdsAddToastCardAction").dispatch({toastCard:{"data-testid":"maiba-chat-bulk-thread-management-menu-deleted-success-toast",id:"maiba-chat-bulk-thread-management-menu-deleted-success-toast",cardType:"success",canDismiss:!0,onDismiss:o,header:a,dismissTimer:5e3}},{line:"143",module:"MAIBAChatThreadGenericModal.react.js",moduleID:f.id});s&&g!=null&&s[g]&&r&&r({isNewThread:!0});q==null||q()}else t({externalConversationId:p}),c("AdsAddToastCardAction").dispatch({toastCard:d("MAIBAChatConstants").DELETED_SUCCESS_TOAST},{line:"167",module:"MAIBAChatThreadGenericModal.react.js",moduleID:f.id}),g===p&&r&&r({isNewThread:!0})},v=c("useMAIBAUpdateThreadStatus")();b[0]!==p||b[1]!==q||b[2]!==s||b[3]!==v?(a=function(){c("gkx")("6986")&&s?(Object.values(s).forEach(function(a){if(a.thread_status==="PINNED"||a.thread_status==="ACTIVE"){v({externalConversationId:(a=a.id)!=null?a:"",newStatus:"ARCHIVED"})}}),q==null||q()):v({externalConversationId:p,newStatus:"ARCHIVED"})},b[0]=p,b[1]=q,b[2]=s,b[3]=v,b[4]=a):a=b[4];var w=a;a=c("useMAIBAInvalidInputErrorMessage")(d("MAIBAChatConstants").ERROR_EMTPY_TITLE);var x=a.error,y=a.onFirstInteraction;a=k("");var z=a[0],A=a[1],B=c("useMAIBAUpdateTitle")();a=k(i);var C=a[0],D=a[1];b[5]!==p||b[6]!==z||b[7]!==B?(i=function(){B({externalConversationId:p,newTitle:z}),c("AdsAddToastCardAction").dispatch({toastCard:d("MAIBAChatConstants").RENAME_SUCCESS_TOAST},{line:"214",module:"MAIBAChatThreadGenericModal.react.js",moduleID:f.id})},b[5]=p,b[6]=z,b[7]=B,b[8]=i):i=b[8];var E=i;b[9]!==x?(a=function(a){if(a.trim().length===0)return x;else if(a.length>d("MAIBAChatConstants").THREAD_TITLE_MAX_LENGTH)return d("MAIBAChatConstants").ERROR_MAX_LENGTH;else return null},b[9]=x,b[10]=a):a=b[10];var F=a;i=e===d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME?z.trim().length===0||z.length>d("MAIBAChatConstants").THREAD_TITLE_MAX_LENGTH:!1;a=c("useBoolean")(!0);var G=a.value,H=a.setFalse;b[11]!==s?(a=Object.keys(s!=null?s:{}),b[11]=s,b[12]=a):a=b[12];var I=a.length;a=m(e,s!=null,I!=null?I:0);var J=n(e,s!=null,I!=null?I:0),K;b[13]!==e||b[14]!==F||b[15]!==J||b[16]!==y||b[17]!==A||b[18]!==D||b[19]!==z||b[20]!==C?(K=function(){switch(e){case d("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE:return j.jsx(c("GeoText.react"),{children:J});case d("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE:return j.jsx(c("GeoText.react"),{children:J});case d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME:return j.jsx("div",{style:{margin:16},children:j.jsx(c("GeoTextInput.react"),{"data-testid":void 0,isDisabled:!1,label:d("MAIBAChatConstants").INPUT_LABEL,value:C,warningMessage:F(z),onChange:function(a){y(),A(a),D(a)}})})}},b[13]=e,b[14]=F,b[15]=J,b[16]=y,b[17]=A,b[18]=D,b[19]=z,b[20]=C,b[21]=K):K=b[21];K=K;var L;b[22]!==e||b[23]!==H||b[24]!==w||b[25]!==u||b[26]!==E?(L=function(){bb103:switch(e){case d("MAIBAChatConstants").MAIBAThreadManagementAction.DELETE:u();break bb103;case d("MAIBAChatConstants").MAIBAThreadManagementAction.ARCHIVE:w();break bb103;case d("MAIBAChatConstants").MAIBAThreadManagementAction.RENAME:E()}H()},b[22]=e,b[23]=H,b[24]=w,b[25]=u,b[26]=E,b[27]=L):L=b[27];L=L;var M;b[28]!==H?(M=function(){H()},b[28]=H,b[29]=M):M=b[29];M=M;var N=l[e],O;b[30]!==N.modalSubsurface?(O=d("AdsALSubsurface").getDynamicSubsurface(N.modalSubsurface),b[30]=N.modalSubsurface,b[31]=O):O=b[31];N=l[e];var P=l[e],Q=l[e],R;b[32]!==Q.dataTestIDFooter?(R={surface:Q.dataTestIDFooter},b[32]=Q.dataTestIDFooter,b[33]=R):R=b[33];Q=l[e];var S=l[e],T=l[e],U;b[34]!==T.primaryButtonDataTestID?(U={surface:T.primaryButtonDataTestID},b[34]=T.primaryButtonDataTestID,b[35]=U):U=b[35];b[36]!==i||b[37]!==L||b[38]!==Q.primaryButtonDataTestID||b[39]!==S.primaryButtonLabel||b[40]!==U?(T=j.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:i,label:S.primaryButtonLabel,logging:U,variant:"primary",onClick:L}),b[36]=i,b[37]=L,b[38]=Q.primaryButtonDataTestID,b[39]=S.primaryButtonLabel,b[40]=U,b[41]=T):T=b[41];b[42]!==M?(i=j.jsx(c("GeoCancelButton.react"),{onClick:M}),b[42]=M,b[43]=i):i=b[43];b[44]!==P.dataTestIDFooter||b[45]!==R||b[46]!==T||b[47]!==i?(L=j.jsx(c("GeoModalFooter.react"),{"data-testid":void 0,logging:R,primaryButton:T,secondaryButton:i}),b[44]=P.dataTestIDFooter,b[45]=R,b[46]=T,b[47]=i,b[48]=L):L=b[48];b[49]!==a?(Q=j.jsx(c("GeoModalHeader.react"),{heading:a}),b[49]=a,b[50]=Q):Q=b[50];S=l[e];b[51]!==S.dataTestID?(U={surface:S.dataTestID},b[51]=S.dataTestID,b[52]=U):U=b[52];b[53]!==K?(P=K(),b[53]=K,b[54]=P):P=b[54];b[55]!==P?(R=j.jsx(c("GeoSection.react"),{children:P}),b[55]=P,b[56]=R):R=b[56];b[57]!==G||b[58]!==a||b[59]!==M||b[60]!==N.dataTestID||b[61]!==L||b[62]!==Q||b[63]!==U||b[64]!==R?(T=j.jsx(c("GeoModal.react"),{"data-testid":void 0,footer:L,header:Q,isShown:G,label:a,logging:U,onHide:M,children:R}),b[57]=G,b[58]=a,b[59]=M,b[60]=N.dataTestID,b[61]=L,b[62]=Q,b[63]=U,b[64]=R,b[65]=T):T=b[65];b[66]!==T||b[67]!==O?(i=j.jsx(c("AdsALSurface").Comp,{subsurface:O,surface:c("AdsALSurfaceMAIBAPlugin"),children:T}),b[66]=T,b[67]=O,b[68]=i):i=b[68];return i}function o(){}g["default"]=a}),226);
-----
MAIBAThreadListItem.react",["GeoBaseInteractiveRow.react","GeoBaseText.react","GeoColorSelectors","GeoFlexbox.react","GeoListGenericItem.react","JSResource","geoMargin","gkx","lazyLoadComponent","react","react-compiler-runtime","stylex","useGeoTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState,l={name:{flexGrow:"x1iyjqo2",minWidth:"xeuugli",$$css:!0},root:{width:"xh8yej3",$$css:!0},threadsDropdownMenu:{width:"x1kky2od",height:"xlup9mm",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x1nn3v0j",paddingInlineEnd:"x14vy60q",paddingBottom:"x1120s5i",paddingInlineStart:"xyiysdx",$$css:!0},hidden:{visibility:"xlshs6z",$$css:!0},visible:{visibility:"xnpuxes",$$css:!0},threadPadding:{paddingTop:"x1yrsyyn",paddingBottom:"x10b6aqq",$$css:!0}},m=c("lazyLoadComponent")(c("JSResource")("MAIBAChatThreadManagementMenu.react").__setRef("MAIBAThreadListItem.react"));function a(a){var b=d("react-compiler-runtime").c(33),e=a.isActive,f=a.onCollapseThreadsList,g=a.onSelectThread,i=a.threadId,n=a.threadName;a=a.threadStatus;var o=c("useGeoTheme")();o=o.selectBorderRadius;var p;b[0]!==f||b[1]!==g||b[2]!==i?(p=function(){g({chatInitiationArgs:{},externalConversationId:i,isNewThread:!1}),f()},b[0]=f,b[1]=g,b[2]=i,b[3]=p):p=b[3];p=p;var q=k(!1),r=q[0],s=q[1];b[4]!==n?(q=j.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",showTruncationTooltip:!1,size:"value",weight:"normal",xstyle:l.name,children:n}),b[4]=n,b[5]=q):q=b[5];q=q;var t;b[6]!==r||b[7]!==o?(t=(h||(h=c("stylex"))).props(l.threadsDropdownMenu,r?l.visible:l.hidden,o({context:"content"})),b[6]=r,b[7]=o,b[8]=t):t=b[8];b[9]!==i||b[10]!==n||b[11]!==a?(r=i!=null&&c("gkx")("12557")&&j.jsx(m,{existingThreadTitle:n!=null?n:"",externalConversationId:i,isHeaderVariation:!1,threadStatus:a}),b[9]=i,b[10]=n,b[11]=a,b[12]=r):r=b[12];b[13]!==t||b[14]!==r?(n=j.jsx("div",babelHelpers["extends"]({},t,{children:r})),b[13]=t,b[14]=r,b[15]=n):n=b[15];a=n;b[16]!==e||b[17]!==o?(t=(h||(h=c("stylex"))).props(l.root,e===!0&&d("GeoColorSelectors").selectStaticBackgroundColor({surface:"wash",isMuted:!0}),o({context:"container"})),b[16]=e,b[17]=o,b[18]=t):t=b[18];b[19]===Symbol["for"]("react.memo_cache_sentinel")?(r=function(){s(!0)},n=function(){s(!1)},b[19]=r,b[20]=n):(r=b[19],n=b[20]);b[21]===Symbol["for"]("react.memo_cache_sentinel")?(e=[c("geoMargin").start8,l.threadPadding],b[21]=e):e=b[21];b[22]!==q?(o=j.jsx(c("GeoFlexbox.react"),{"data-testid":void 0,direction:"row",gap:8,grow:1,xstyle:e,children:q}),b[22]=q,b[23]=o):o=b[23];b[24]!==a?(e=j.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").end4,children:a}),b[24]=a,b[25]=e):e=b[25];b[26]!==p||b[27]!==o||b[28]!==e?(q=j.jsxs(c("GeoBaseInteractiveRow.react"),{accessibilityRole:"listitem",isFocusable:!0,isHoverable:!0,onPress:p,children:[o,e]}),b[26]=p,b[27]=o,b[28]=e,b[29]=q):q=b[29];b[30]!==q||b[31]!==t?(a=j.jsx(c("GeoListGenericItem.react"),{"data-testid":void 0,children:j.jsx("div",babelHelpers["extends"]({},t,{onMouseEnter:r,onMouseLeave:n,children:q}))}),b[30]=q,b[31]=t,b[32]=a):a=b[32];return a}g["default"]=a}),98);
-----
MAIBAChatAppUIActions",["MAIBAChatAppAction","MAIBAChatConstants"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("MAIBAChatAppAction").dispatch({windowAction:{actionType:"toggle"}},{line:"17",module:"MAIBAChatAppUIActions.js",moduleID:f.id})}function b(){c("MAIBAChatAppAction").dispatch({windowAction:{actionType:"open"}},{line:"23",module:"MAIBAChatAppUIActions.js",moduleID:f.id})}function e(){c("MAIBAChatAppAction").dispatch({windowAction:{actionType:"close"}},{line:"29",module:"MAIBAChatAppUIActions.js",moduleID:f.id})}function h(a){var b=a.externalConversationId,d=a.chatInitiationArgs,e=a.isNewThread;a=a.onStopGeneratingResponse;c("MAIBAChatAppAction").dispatch({chatAction:{chatInitiationArgs:d!=null?d:{},isNewThread:e!=null?e:!1,onStopGeneratingResponse:a,externalConversationId:b!=null?b:""},windowAction:{actionType:"open"}},{line:"40",module:"MAIBAChatAppUIActions.js",moduleID:f.id})}function i(a){c("MAIBAChatAppAction").dispatch({resizeAction:{width:a!=null?a:d("MAIBAChatConstants").DEFAULT_CHAT_WINDOW_WIDTH}},{line:"52",module:"MAIBAChatAppUIActions.js",moduleID:f.id})}g.toggleMAIBAChatAppOpen=a;g.openMAIBAChatApp=b;g.closeMAIBAChatApp=e;g.openMAIBAChatThread=h;g.updateMAIBAChatWindowWidth=i}),98);
-----
MAIBAChatThreadConversationQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"externalConversationId"},{defaultValue:null,kind:"LocalArgument",name:"isEmployee"},{defaultValue:null,kind:"LocalArgument",name:"shouldFetchDebugInfo"}],b=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],c=[{kind:"Literal",name:"first",value:10}],d={alias:null,args:null,kind:"ScalarField",name:"display_title",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"last_shiba_progression_ts",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"external_conversation_id",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"action_url",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"dialog_params",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"postback_action_text",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"postback_payload",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"previous_turn_click_allowed",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"snippet",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},q={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"offset",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MAIBAChatThreadConversationQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{args:c,kind:"FragmentSpread",name:"MAIBAChatMessageListFragment"},d,e],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MAIBAChatThreadConversationQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[f,{kind:"TypeDiscriminator",abstractKey:"__isXFBMAIBAConversation"},{alias:"messages",args:c,concreteType:null,kind:"LinkedField",name:"maiba_message_list",plural:!1,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"edges",plural:!0,selections:[f,{alias:null,args:null,concreteType:"XFBMAIBAMessage",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"offline_threading_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"created_timestamp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"bot_request_id",storageKey:null},g,{alias:null,args:null,kind:"ScalarField",name:"bot_response_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"streaming_state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"role",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAAdminTextAttachment",kind:"LinkedField",name:"admin_text",plural:!1,selections:[f,{alias:null,args:null,concreteType:"XFBShibaSMAGXMAT",kind:"LinkedField",name:"render_payload",plural:!1,selections:[h,{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"cta",plural:!1,selections:[i,j,k,l,m],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAButtonAttachment",kind:"LinkedField",name:"buttons",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"render_payload",plural:!0,selections:[f,i,m,n,j,k,l],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"content",plural:!1,selections:[f,{kind:"InlineFragment",selections:[o],type:"XFBMAIBAMessagePlainTextContent",abstractKey:null},{kind:"InlineFragment",selections:[o,{alias:null,args:null,concreteType:"XFBMAIBAComposedBlockWithEntities",kind:"LinkedField",name:"composed_text",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"content",plural:!0,selections:[f,{kind:"TypeDiscriminator",abstractKey:"__isComposedBlockWithEntities"},{alias:null,args:null,kind:"ScalarField",name:"block_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"data",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"depth",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"media_alignment",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"media_caption",storageKey:null},{alias:null,args:null,concreteType:"ComposedEntityAtRange",kind:"LinkedField",name:"entity_ranges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"entity_type",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"entity",plural:!1,selections:[f,p,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"external_url",storageKey:null}],type:"ExternalUrl",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"expression",storageKey:null}],type:"XFBMathObject",abstractKey:null},{kind:"InlineFragment",selections:[q],type:"Node",abstractKey:"__isNode"}],storageKey:null},r,s],storageKey:null},{alias:null,args:null,concreteType:"InlineStyleAtRange",kind:"LinkedField",name:"inline_style_ranges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"inline_style",storageKey:null},r,s],storageKey:null},h,{alias:null,args:[{kind:"Literal",name:"supported",value:"4dWNMJ"}],concreteType:null,kind:"LinkedField",name:"renderer",plural:!1,selections:[f,{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageParagraphBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedParagraphBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageBlockquoteBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedBlockquoteBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingOneBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderOneBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingTwoBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderTwoBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingThreeBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderThreeBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingFourBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderFourBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingFiveBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderFiveBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageHeadingSixBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedHeaderSixBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"AbraMessageInlineTableBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedTableBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageUnstyledBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedUnstyledBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageOrderedListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedOrderedListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageUnorderedListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedUnorderedListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAMessageCheckboxListItemBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedCheckboxListItemBlockWithEntitiesRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MAIBAComposedBlockWithEntities_composedText",fragmentName:"MAIBAThematicBreakBlockRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"ComposedThematicBreakBlockWithEntitiesRenderer",abstractKey:null}],storageKey:'renderer(supported:"4dWNMJ")'}],storageKey:null}],storageKey:null}],type:"XFBMAIBAMessageComposedTextContent",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"suggested_prompts",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message_id",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAAssetSelectionInfoGQL",kind:"LinkedField",name:"asset_selection",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"asset_selection_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"asset_selection_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ad_account_id",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAAssetSelectionAssetsGQL",kind:"LinkedField",name:"assets",plural:!0,selections:[q,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBACarouselAttachment",kind:"LinkedField",name:"carousel",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBShibaSMAGCarouselItem",kind:"LinkedField",name:"render_payload",plural:!0,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"image_url",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBACTA",kind:"LinkedField",name:"ctas",plural:!0,selections:[i,m,n,j,k,l],storageKey:null}],storageKey:null}],storageKey:null},o,q,{alias:null,args:null,kind:"ScalarField",name:"feedback_response",storageKey:null},{alias:null,args:null,concreteType:"XFBMAIBAHelpLink",kind:"LinkedField",name:"help_center_links",plural:!0,selections:[p,i,{alias:null,args:null,kind:"ScalarField",name:"sub_title",storageKey:null}],storageKey:null},f,{condition:"shouldFetchDebugInfo",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"additional_payload",storageKey:null}]},{condition:"isEmployee",kind:"Condition",passingValue:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"fetch_id",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conversation",plural:!1,selections:[f,q,g],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,concreteType:"MAIBAClientErrorDetails",kind:"LinkedField",name:"maiba_client_message_error",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"exception_message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"stack_trace",storageKey:null}],storageKey:null}]}]}],storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isXFBMAIBAConversationMaibaMessageListEdge"},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"page_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"end_cursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_next_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"has_previous_page",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"start_cursor",storageKey:null}],storageKey:null}],storageKey:"maiba_message_list(first:10)"},{alias:"messages",args:c,filters:null,handle:"connection",key:"MAIBAMessageListFragment__maiba_messages",kind:"LinkedHandle",name:"maiba_message_list"},q,d,e],storageKey:null}]},params:{id:"24323190333935789",metadata:{},name:"MAIBAChatThreadConversationQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
MAIBAChatThreadManagementMenuStatusQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"externalConversationId"}],b=[{kind:"Variable",name:"id",variableName:"externalConversationId"}],c={alias:null,args:null,kind:"ScalarField",name:"thread_status",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MAIBAChatThreadManagementMenuStatusQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[c],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MAIBAChatThreadManagementMenuStatusQuery",selections:[{alias:"node",args:b,concreteType:null,kind:"LinkedField",name:"fetch__XFBMAIBAConversation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"24074716575461471",metadata:{},name:"MAIBAChatThreadManagementMenuStatusQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MAIBAChatThreadManagementMenu.react",["ix","GeoDropdownMenu.react","GeoMenuItem.react","MAIBAChatConstants","emptyFunction","fbicon","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(11),e=a.externalConversationId,f=a.isHeaderVariation;a=a.title;f=f===void 0?!1:f;if(e==null||e==="")return null;e=!f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=j.jsx(c("GeoMenuItem.react"),{icon:d("fbicon")._(h("477825"),16),label:d("MAIBAChatConstants").RENAME_THREAD_LABEL,onClick:c("emptyFunction")}),b[0]=f):f=b[0];var g;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(g=j.jsx(c("GeoMenuItem.react"),{icon:d("fbicon")._(h("483296"),16),label:d("MAIBAChatConstants").ARCHIVE_THREAD_LABEL,onClick:c("emptyFunction")}),b[1]=g):g=b[1];var i;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(i=j.jsx(c("GeoMenuItem.react"),{icon:d("fbicon")._(h("723621"),16),label:d("MAIBAChatConstants").PIN_THREAD_LABEL,onClick:c("emptyFunction")}),b[2]=i):i=b[2];var k;b[3]===Symbol["for"]("react.memo_cache_sentinel")?(k=j.jsx(c("GeoMenuItem.react"),{icon:d("fbicon")._(h("483825"),16),label:d("MAIBAChatConstants").DELETE_THREAD_LABEL,onClick:c("emptyFunction")}),b[3]=k):k=b[3];var l;b[4]!==e||b[5]!==f||b[6]!==g||b[7]!==i||b[8]!==k||b[9]!==a?(l=j.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat","data-testid":void 0,label:a,useEllipsisIcon:e,children:[f,g,i,k]}),b[4]=e,b[5]=f,b[6]=g,b[7]=i,b[8]=k,b[9]=a,b[10]=l):l=b[10];return l}g["default"]=a}),98);
-----
MAIBAChatRoot.react",["AdsHelpTrayPopNavigationStackAction","MAIBAChatThread.react","MAIBAChatWelcomePage.react","adsToggleHelpTray","react","withAdsHeroTracing"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");b={root:{height:"x5yr21d",$$css:!0}};function a(a){a=a.navState;var b=function(){return c("AdsHelpTrayPopNavigationStackAction").dispatch({},{line:"31",module:"MAIBAChatRoot.react.js",moduleID:f.id})},d=function(){return c("adsToggleHelpTray")(!1)};return a.id==null||a.id===""?i.jsx(c("MAIBAChatWelcomePage.react"),{onBack:b,onClose:d}):i.jsx(c("MAIBAChatThread.react"),{externalConversationId:a.id,isNewConversation:(a=(a=a.osmipExtraData)==null?void 0:a.isNewThread)!=null?a:!1,onBack:b,onClose:d})}a.displayName=a.name+" [from "+f.id+"]";e=c("withAdsHeroTracing")("am.help_center.ads_ai",a,{heroRootComponentName:f.id,xstyle:b.root});g["default"]=e}),98);
-----
MAIBAChatThread.react",["AdsOsmipChatConstants.react","GeoColorSelectors","GeoFlexbox.react","MAIBAChatHeader.react","MAIBAChatMessageComposer.react","MAIBAChatMessageList.react","MAIBAChatThreadConversationQuery.graphql","RelayHooks","gkx","react","withAdsHeroTracing"],(function(a,b,c,d,e,f,g){var h,i,j=i||d("react"),k=d("GeoColorSelectors").selectStaticBackgroundColor({surface:"content"}),l={root:{height:"x5yr21d",$$css:!0}};function a(a){var e=a.externalConversationId,f=a.isNewConversation,g=a.onBack;a=a.onClose;f=d("RelayHooks").useLazyLoadQuery(h!==void 0?h:h=b("MAIBAChatThreadConversationQuery.graphql"),{externalConversationId:e},{fetchPolicy:f?"store-only":"store-or-network"});var i=c("gkx")("2059")?d("AdsOsmipChatConstants.react").metaAIThreadHeaderImage:d("AdsOsmipChatConstants.react").adsAIThreadHeaderImage;if(e==null)return;return j.jsxs(c("GeoFlexbox.react"),{alignItems:"stretch",direction:"column",xstyle:[l.root,k],children:[j.jsx(c("MAIBAChatHeader.react"),{headerImage:i,title:(i=(i=f.node)==null?void 0:i.display_title)!=null?i:"new chat",onBack:g,onClose:a}),j.jsx(c("MAIBAChatMessageList.react"),{fragmentKey:f.node}),j.jsx(c("MAIBAChatMessageComposer.react"),{externalConversationId:e})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("withAdsHeroTracing")("am.help_center.ads_ai_message_response",a,{heroRootComponentName:f.id,xstyle:l.root});g["default"]=e}),98);
-----
MAIBAChatHelpTrayContentPlugin",["JSResourceForInteraction","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j=c("lazyLoadComponent")(c("JSResourceForInteraction")("MAIBAChatThread.react").__setRef("MAIBAChatHelpTrayContentPlugin"));a={type:"helpTrayContent",key:"maiba_chat",contentType:"MAIBA_CHAT",render:function(a){a=a.navState;return i.jsx(j,{navState:a})}};b=a;g["default"]=b}),98);
-----