useChatGeminiWorkchatToGoogleChatMigrateGroupMutation",["fbt","CometRelay","I64","react","react-compiler-runtime","useChatGeminiWorkchatToGoogleChatMigrateGroupMutation.graphql","useCometAlertDialog"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=(u||(u=o("react"))).useCallback,m=e!==void 0?e:e=n("useChatGeminiWorkchatToGoogleChatMigrateGroupMutation.graphql");function p(e){var t=o("react-compiler-runtime").c(6),n=e.groupId,a=e.message_thread_id,i=e.threadKey,l=o("CometRelay").useMutation(m),u=l[0],d=r("useCometAlertDialog")(),p;return t[0]!==n||t[1]!==a||t[2]!==u||t[3]!==d||t[4]!==i?(p=function(){u({variables:{input:{group_fbid:n,thread_fbid:i?(c||(c=o("I64"))).to_string(i):null}},optimisticUpdater:function(t){if(a!=null){var e=t.get(a);e&&e.setValue("CREATION_IN_PROGRESS","workchat_to_google_chat_migration_status")}},onError:function(t){var e=s._(/*BTDS*/"Workchat migration failed");d({body:t.message,title:e},_)},updater:function(t){var e=t.getRootField("xfb_workchat_to_google_chat_provision_guest_users");if(e!=null){var n=e.getLinkedRecord("message_thread");if(!(n==null||a==null)){var r=t.get(a);if(r!=null){var o=n.getValue("workchat_to_google_chat_migration_status"),i=n.getValue("migrated_chat_google_space_id");o!=null&&r.setValue(o,"workchat_to_google_chat_migration_status"),i!=null&&r.setValue(i,"migrated_chat_google_space_id")}}}}})},t[0]=n,t[1]=a,t[2]=u,t[3]=d,t[4]=i,t[5]=p):p=t[5],p}function _(){}l.default=p}),226);
-----
useChatGeminiWorkchatToGoogleChatMigrateGroupMutation.graphql",["useChatGeminiWorkchatToGoogleChatMigrateGroupMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBWorkchatToGoogleChatProvisionGuestUsersResponsePayload",kind:"LinkedField",name:"xfb_workchat_to_google_chat_provision_guest_users",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"google_space_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null},{alias:null,args:null,concreteType:"MessageThread",kind:"LinkedField",name:"message_thread",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"workchat_to_google_chat_migration_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"migrated_chat_google_space_id",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"provisioned_only",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"useChatGeminiWorkchatToGoogleChatMigrateGroupMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"useChatGeminiWorkchatToGoogleChatMigrateGroupMutation",selections:t},params:{id:n("useChatGeminiWorkchatToGoogleChatMigrateGroupMutation_facebookRelayOperation"),metadata:{},name:"useChatGeminiWorkchatToGoogleChatMigrateGroupMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
ChatGeminiGoogleChatAutoMigrationGuestSpaceCreateGoogleChatBanner.react",["fbt","ix","ChatGeminiLinkExistingGoogleChatDialog.entrypoint","CometColumn.react","CometColumnItem.react","CometImage.react","CometRow.react","CometRowItem.react","FDSButton.react","FDSCard.react","FDSLink.react","FDSText.react","FDSTextPairing.react","gkx","goURIOnWindow","react","react-compiler-runtime","useChatGeminiGoogleChatMigrationBannerDismissal.react","useChatGeminiWorkchatToGoogleChatMigrateGroupMutation","useCometConfirmationDialog","useCometEntryPointDialog"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c=e||(e=o("react"));function d(e){var t=o("react-compiler-runtime").c(37),n=e.message_thread_id,a=e.threadKey,i=e.workchat_type_for_google_migration,l;t[0]!==n||t[1]!==a?(l={groupId:null,message_thread_id:n,threadKey:a},t[0]=n,t[1]=a,t[2]=l):l=t[2];var d=r("useChatGeminiWorkchatToGoogleChatMigrateGroupMutation")(l),p=r("useCometConfirmationDialog")(),_;t[3]===Symbol.for("react.memo_cache_sentinel")?(_={},t[3]=_):_=t[3];var f=r("useCometEntryPointDialog")(r("ChatGeminiLinkExistingGoogleChatDialog.entrypoint"),_),g=f[0],h;t[4]!==d||t[5]!==p?(h=function(){r("gkx")("20234")?p({body:s._(/*BTDS*/"Are you sure you want to move this chat to Google Chat?"),cancel:s._(/*BTDS*/"Cancel"),confirm:s._(/*BTDS*/"Continue"),title:s._(/*BTDS*/"Move chat to Google Chat")},d):d()},t[4]=d,t[5]=p,t[6]=h):h=t[6];var y=h,C=m,b;t[7]!==n||t[8]!==g||t[9]!==a||t[10]!==i?(b=function(){g({messageThreadId:n,threadKey:a,workchatTypeForGoogleMigration:i})},t[7]=n,t[8]=g,t[9]=a,t[10]=i,t[11]=b):b=t[11];var v=b,S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S=u("942454"),t[12]=S):S=t[12];var R=S,L=r("useChatGeminiGoogleChatMigrationBannerDismissal.react")(a),E=L.dismissButton,k=L.isDismissed;if(k)return null;var I;t[13]===Symbol.for("react.memo_cache_sentinel")?(I="x1y1aw1k xf159sx xwib8y2 xmzvs34",t[13]=I):I=t[13];var T;t[14]===Symbol.for("react.memo_cache_sentinel")?(T="x1p5oq8j x64bnmy xwxc41k x13jy36j",t[14]=T):T=t[14];var D;t[15]===Symbol.for("react.memo_cache_sentinel")?(D=c.jsx(r("CometRowItem.react"),{verticalAlign:"center",children:c.jsx(r("CometImage.react"),{height:36,src:R,width:36})}),t[15]=D):D=t[15];var x;t[16]===Symbol.for("react.memo_cache_sentinel")?(x=s._(/*BTDS*/"This group will become read-only. History"),t[16]=x):x=t[16];var $;t[17]===Symbol.for("react.memo_cache_sentinel")?($=c.jsx("strong",{children:s._(/*BTDS*/"will not")}),t[17]=$):$=t[17];var P;t[18]===Symbol.for("react.memo_cache_sentinel")?(P=c.jsx(r("CometRowItem.react"),{expanding:!0,verticalAlign:"top",children:c.jsx(r("FDSTextPairing.react"),{headline:"Migrate this group to Google Chat",isSemanticHeading:!0,level:3,meta:c.jsxs("span",{children:[x," ",$," ",s._(/*BTDS*/"be migrated.")]})})}),t[18]=P):P=t[18];var N;t[19]!==E?(N=c.jsx(r("CometColumnItem.react"),{paddingHorizontal:0,paddingVertical:0,children:c.jsxs(r("CometRow.react"),{paddingHorizontal:0,paddingTop:0,spacing:16,children:[D,P,c.jsx(r("CometRowItem.react"),{children:E})]})}),t[19]=E,t[20]=N):N=t[20];var M;t[21]===Symbol.for("react.memo_cache_sentinel")?(M="xw7yly9",t[21]=M):M=t[21];var w;t[22]===Symbol.for("react.memo_cache_sentinel")?(w=s._(/*BTDS*/"Migrate to Google Chat"),t[22]=w):w=t[22];var A;t[23]!==y?(A=c.jsx(r("CometColumnItem.react"),{paddingHorizontal:0,paddingVertical:0,children:c.jsx("div",{className:M,children:c.jsx(r("FDSButton.react"),{label:w,onPress:y})})}),t[23]=y,t[24]=A):A=t[24];var F;t[25]===Symbol.for("react.memo_cache_sentinel")?(F="x1wsgfga x14vqqas x2b8uid",t[25]=F):F=t[25];var O;t[26]===Symbol.for("react.memo_cache_sentinel")?(O=s._(/*BTDS*/"Learn more about Google Chat migration"),t[26]=O):O=t[26];var B;t[27]===Symbol.for("react.memo_cache_sentinel")?(B=s._(/*BTDS*/"Learn more"),t[27]=B):B=t[27];var W;t[28]===Symbol.for("react.memo_cache_sentinel")?(W=c.jsxs(r("FDSLink.react"),{"aria-label":O,onClick:C,children:[B,r("gkx")("3262")?" ":null]}),t[28]=W):W=t[28];var q;t[29]!==v?(q=r("gkx")("3262")?c.jsxs(c.Fragment,{children:[c.jsxs(r("FDSText.react"),{color:"secondary",type:"bodyLink4",children:[s._(/*BTDS*/"|")," "]}),c.jsx(r("FDSLink.react"),{"aria-label":s._(/*BTDS*/"Already created this group?"),onClick:v,children:s._(/*BTDS*/"Already created this group?")})]}):null,t[29]=v,t[30]=q):q=t[30];var U;t[31]!==q?(U=c.jsx(r("CometColumnItem.react"),{expanding:!0,paddingHorizontal:0,paddingVertical:0,children:c.jsx("div",{className:F,children:c.jsxs(r("FDSText.react"),{color:"highlight",type:"bodyLink4",children:[W,q]})})}),t[31]=q,t[32]=U):U=t[32];var V;return t[33]!==N||t[34]!==A||t[35]!==U?(V=c.jsx("div",{className:I,children:c.jsx(r("FDSCard.react"),{background:"default",border:"solid",children:c.jsx("div",{className:T,children:c.jsxs(r("CometColumn.react"),{spacing:0,children:[N,A,U]})})})}),t[33]=N,t[34]=A,t[35]=U,t[36]=V):V=t[36],V}function m(){r("goURIOnWindow")(window.open("","_blank"),"https://fburl.com/migrationlearnmore")}l.default=d}),226);
-----
useChatGeminiWorkchatToGoogleChatMigrateGroupMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24960158413684024"}),null);
-----
-----
useChatGeminiWorkchatToGoogleChatMigrateGroupMutation.graphql",["useChatGeminiWorkchatToGoogleChatMigrateGroupMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBWorkchatToGoogleChatProvisionGuestUsersResponsePayload",kind:"LinkedField",name:"xfb_workchat_to_google_chat_provision_guest_users",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"google_space_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null},{alias:null,args:null,concreteType:"MessageThread",kind:"LinkedField",name:"message_thread",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"workchat_to_google_chat_migration_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"migrated_chat_google_space_id",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"provisioned_only",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"useChatGeminiWorkchatToGoogleChatMigrateGroupMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"useChatGeminiWorkchatToGoogleChatMigrateGroupMutation",selections:t},params:{id:n("useChatGeminiWorkchatToGoogleChatMigrateGroupMutation_facebookRelayOperation"),metadata:{},name:"useChatGeminiWorkchatToGoogleChatMigrateGroupMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
ChatGeminiGoogleChatAutoMigrationGuestSpaceCreateGoogleChatBanner.react",["fbt","ix","ChatGeminiLinkExistingGoogleChatDialog.entrypoint","CometColumn.react","CometColumnItem.react","CometImage.react","CometRow.react","CometRowItem.react","FDSButton.react","FDSCard.react","FDSLink.react","FDSText.react","FDSTextPairing.react","gkx","goURIOnWindow","react","react-compiler-runtime","useChatGeminiGoogleChatMigrationBannerDismissal.react","useChatGeminiWorkchatToGoogleChatMigrateGroupMutation","useCometConfirmationDialog","useCometEntryPointDialog"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c=e||(e=o("react"));function d(e){var t=o("react-compiler-runtime").c(37),n=e.message_thread_id,a=e.threadKey,i=e.workchat_type_for_google_migration,l;t[0]!==n||t[1]!==a?(l={groupId:null,message_thread_id:n,threadKey:a},t[0]=n,t[1]=a,t[2]=l):l=t[2];var d=r("useChatGeminiWorkchatToGoogleChatMigrateGroupMutation")(l),p=r("useCometConfirmationDialog")(),_;t[3]===Symbol.for("react.memo_cache_sentinel")?(_={},t[3]=_):_=t[3];var f=r("useCometEntryPointDialog")(r("ChatGeminiLinkExistingGoogleChatDialog.entrypoint"),_),g=f[0],h;t[4]!==d||t[5]!==p?(h=function(){r("gkx")("20234")?p({body:s._(/*BTDS*/"Are you sure you want to move this chat to Google Chat?"),cancel:s._(/*BTDS*/"Cancel"),confirm:s._(/*BTDS*/"Continue"),title:s._(/*BTDS*/"Move chat to Google Chat")},d):d()},t[4]=d,t[5]=p,t[6]=h):h=t[6];var y=h,C=m,b;t[7]!==n||t[8]!==g||t[9]!==a||t[10]!==i?(b=function(){g({messageThreadId:n,threadKey:a,workchatTypeForGoogleMigration:i})},t[7]=n,t[8]=g,t[9]=a,t[10]=i,t[11]=b):b=t[11];var v=b,S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S=u("942454"),t[12]=S):S=t[12];var R=S,L=r("useChatGeminiGoogleChatMigrationBannerDismissal.react")(a),E=L.dismissButton,k=L.isDismissed;if(k)return null;var I;t[13]===Symbol.for("react.memo_cache_sentinel")?(I="x1y1aw1k xf159sx xwib8y2 xmzvs34",t[13]=I):I=t[13];var T;t[14]===Symbol.for("react.memo_cache_sentinel")?(T="x1p5oq8j x64bnmy xwxc41k x13jy36j",t[14]=T):T=t[14];var D;t[15]===Symbol.for("react.memo_cache_sentinel")?(D=c.jsx(r("CometRowItem.react"),{verticalAlign:"center",children:c.jsx(r("CometImage.react"),{height:36,src:R,width:36})}),t[15]=D):D=t[15];var x;t[16]===Symbol.for("react.memo_cache_sentinel")?(x=s._(/*BTDS*/"This group will become read-only. History"),t[16]=x):x=t[16];var $;t[17]===Symbol.for("react.memo_cache_sentinel")?($=c.jsx("strong",{children:s._(/*BTDS*/"will not")}),t[17]=$):$=t[17];var P;t[18]===Symbol.for("react.memo_cache_sentinel")?(P=c.jsx(r("CometRowItem.react"),{expanding:!0,verticalAlign:"top",children:c.jsx(r("FDSTextPairing.react"),{headline:"Migrate this group to Google Chat",isSemanticHeading:!0,level:3,meta:c.jsxs("span",{children:[x," ",$," ",s._(/*BTDS*/"be migrated.")]})})}),t[18]=P):P=t[18];var N;t[19]!==E?(N=c.jsx(r("CometColumnItem.react"),{paddingHorizontal:0,paddingVertical:0,children:c.jsxs(r("CometRow.react"),{paddingHorizontal:0,paddingTop:0,spacing:16,children:[D,P,c.jsx(r("CometRowItem.react"),{children:E})]})}),t[19]=E,t[20]=N):N=t[20];var M;t[21]===Symbol.for("react.memo_cache_sentinel")?(M="xw7yly9",t[21]=M):M=t[21];var w;t[22]===Symbol.for("react.memo_cache_sentinel")?(w=s._(/*BTDS*/"Migrate to Google Chat"),t[22]=w):w=t[22];var A;t[23]!==y?(A=c.jsx(r("CometColumnItem.react"),{paddingHorizontal:0,paddingVertical:0,children:c.jsx("div",{className:M,children:c.jsx(r("FDSButton.react"),{label:w,onPress:y})})}),t[23]=y,t[24]=A):A=t[24];var F;t[25]===Symbol.for("react.memo_cache_sentinel")?(F="x1wsgfga x14vqqas x2b8uid",t[25]=F):F=t[25];var O;t[26]===Symbol.for("react.memo_cache_sentinel")?(O=s._(/*BTDS*/"Learn more about Google Chat migration"),t[26]=O):O=t[26];var B;t[27]===Symbol.for("react.memo_cache_sentinel")?(B=s._(/*BTDS*/"Learn more"),t[27]=B):B=t[27];var W;t[28]===Symbol.for("react.memo_cache_sentinel")?(W=c.jsxs(r("FDSLink.react"),{"aria-label":O,onClick:C,children:[B,r("gkx")("3262")?" ":null]}),t[28]=W):W=t[28];var q;t[29]!==v?(q=r("gkx")("3262")?c.jsxs(c.Fragment,{children:[c.jsxs(r("FDSText.react"),{color:"secondary",type:"bodyLink4",children:[s._(/*BTDS*/"|")," "]}),c.jsx(r("FDSLink.react"),{"aria-label":s._(/*BTDS*/"Already created this group?"),onClick:v,children:s._(/*BTDS*/"Already created this group?")})]}):null,t[29]=v,t[30]=q):q=t[30];var U;t[31]!==q?(U=c.jsx(r("CometColumnItem.react"),{expanding:!0,paddingHorizontal:0,paddingVertical:0,children:c.jsx("div",{className:F,children:c.jsxs(r("FDSText.react"),{color:"highlight",type:"bodyLink4",children:[W,q]})})}),t[31]=q,t[32]=U):U=t[32];var V;return t[33]!==N||t[34]!==A||t[35]!==U?(V=c.jsx("div",{className:I,children:c.jsx(r("FDSCard.react"),{background:"default",border:"solid",children:c.jsx("div",{className:T,children:c.jsxs(r("CometColumn.react"),{spacing:0,children:[N,A,U]})})})}),t[33]=N,t[34]=A,t[35]=U,t[36]=V):V=t[36],V}function m(){r("goURIOnWindow")(window.open("","_blank"),"https://fburl.com/migrationlearnmore")}l.default=d}),226);
-----
useChatGeminiWorkchatToGoogleChatMigrateGroupMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24960158413684024"}),null);
-----