ChatGeminiWorkMigrationHelpAndSupportDialog.react",["fbt","ix","CometColumn.react","CometColumnItem.react","CometImage.react","CometRow.react","CometRowItem.react","FDSCard.react","FDSDialog.react","FDSDialogConfirmationFooter.react","FDSDialogHeader.react","FDSFormCombobox.react","FDSFormTextInput.react","FDSText.react","react","useChatGeminiLockUnlockOneOnOneThreadMigrationLockMutation","useChatGeminiToggleMigratedWorkchatLockMutation"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c=e||(e=o("react")),d=e.useState;function m(e){var t=e.props,n=t.isOneOnOneThread,o=t.messageThreadId,a=t.onClose,i=t.threadKey,l=r("useChatGeminiToggleMigratedWorkchatLockMutation")({messageThreadId:o,threadKey:i}),m=r("useChatGeminiLockUnlockOneOnOneThreadMigrationLockMutation")({messageThreadId:o,threadKey:i}),p=m[0],_=d(null),f=_[0],g=_[1],h=d(null),y=h[0],C=h[1],b=[{value:"Unlocking this Work Chat because of a SEV"},{value:"Adding an external user to this group"},{value:"Problems with accessing/logging into/using Google Chat account"},{value:"Unlocking this group for another reason"},{value:"Other issues with chat migration"}];return c.jsx(r("FDSDialog.react"),{footer:c.jsx(r("FDSDialogConfirmationFooter.react"),{primary:{label:"Submit",onPress:function(){n===!0?p(y!=null?y:"",f,!0):l(y!=null?y:"",f,!0),a()},disabled:f==null||y==null},secondary:{label:"Cancel",onPress:a}}),header:c.jsx(r("FDSDialogHeader.react"),{onClose:a,text:"Help and support",withoutDivider:!0}),onClose:a,children:c.jsxs(r("CometColumn.react"),{paddingHorizontal:12,paddingVertical:12,spacing:24,children:[c.jsx(r("CometColumnItem.react"),{children:c.jsx(r("FDSFormCombobox.react"),{label:s._(/*BTDS*/""),listboxAccessibleLabelProps:{"aria-label":s._(/*BTDS*/"")},onValueChange:g,options:b,value:f})}),c.jsx(r("CometColumnItem.react"),{children:c.jsx(r("FDSFormTextInput.react"),{label:s._(/*BTDS*/""),onValueChange:C,value:y})}),f!==null&&c.jsx(r("CometColumnItem.react"),{children:c.jsx(r("FDSCard.react"),{background:"default",border:"solid",children:c.jsx("div",{className:"xz9dl7a xpdmqnj xsag5q8 x1g0dm76",children:c.jsxs(r("CometRow.react"),{paddingHorizontal:0,paddingVertical:0,children:[c.jsx(r("CometRowItem.react"),{verticalAlign:"center",children:c.jsx(r("CometImage.react"),{src:u("480268")})}),c.jsx(r("CometRowItem.react"),{expanding:!0,verticalAlign:"center",children:c.jsx(r("FDSText.react"),{type:"body3",children:s._(/*BTDS*/"")})})]})})})})]})})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226);
-----
useChatGeminiToggleMigratedWorkchatLockMutation",["fbt","CometRelay","I64","react","react-compiler-runtime","useChatGeminiToggleMigratedWorkchatLockMutation.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("useChatGeminiToggleMigratedWorkchatLockMutation.graphql");function p(e){var t=o("react-compiler-runtime").c(5),n=e.messageThreadId,a=e.threadKey,i=o("CometRelay").useMutation(m),l=i[0],u=r("useCometAlertDialog")(),d;return t[0]!==n||t[1]!==u||t[2]!==a||t[3]!==l?(d=function(t,r,i){l({variables:{input:{thread_fbid:(c||(c=o("I64"))).to_string(a),is_chat_unlocked:i,help_details:t!=null?t:null,help_reason:r!=null?r:null}},optimisticUpdater:function(t){if(n!=null){var e=t.get(n);e&&e.setValue(i,"is_google_migrated_chat_unlocked")}},onError:function(t){var e=s._(/*BTDS*/"Workchat toogle lock failed");u({body:t.message,title:e},_)},updater:function(t){var e=t.getRootField("xfb_toggle_migrated_workchat_lock");if(e!=null){var r=e.getLinkedRecord("message_thread");if(!(r==null||n==null)){var o=t.get(n);if(o!=null){var a=r.getValue("is_google_migrated_chat_unlocked");o.setValue(a,"is_google_migrated_chat_unlocked")}}}}})},t[0]=n,t[1]=u,t[2]=a,t[3]=l,t[4]=d):d=t[4],d}function _(){}l.default=p}),226); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<>
*
* @nolint
* @oncall lexical_web_text_editor
* @preserve-invariant-messages
* @preserve-whitespace
* @preventMunge
*/
-----
useChatGeminiToggleMigratedWorkchatLockMutation.graphql",["useChatGeminiToggleMigratedWorkchatLockMutation_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:"XFBToggleMigratedWorkchatLockResponsePayload",kind:"LinkedField",name:"xfb_toggle_migrated_workchat_lock",plural:!1,selections:[{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:"is_google_migrated_chat_unlocked",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"useChatGeminiToggleMigratedWorkchatLockMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"useChatGeminiToggleMigratedWorkchatLockMutation",selections:t},params:{id:n("useChatGeminiToggleMigratedWorkchatLockMutation_facebookRelayOperation"),metadata:{},name:"useChatGeminiToggleMigratedWorkchatLockMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
useChatGeminiToggleMigratedWorkchatLockMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24844298868596775"}),null);
-----
ChatGeminiGoogleChatMigrationContinueToGchatWithComposerBanner.react",["fbt","CometColumn.react","CometColumnItem.react","CometRow.react","CometRowItem.react","FDSButton.react","FDSCard.react","FDSTextPairing.react","XGChatRedirectingControllerRouteBuilder","goURIOnWindow","react","react-compiler-runtime","useChatGeminiLockUnlockOneOnOneThreadMigrationLockMutation","useChatGeminiToggleMigratedWorkchatLockMutation"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t=o("react-compiler-runtime").c(24),n=e.messageThreadId,a=e.migrated_chat_google_space_id,i=e.recipientID,l=e.threadKey,c;t[0]!==n||t[1]!==l?(c={messageThreadId:n,threadKey:l},t[0]=n,t[1]=l,t[2]=c):c=t[2];var d=r("useChatGeminiToggleMigratedWorkchatLockMutation")(c),m;t[3]!==n||t[4]!==l?(m={messageThreadId:n,threadKey:l},t[3]=n,t[4]=l,t[5]=m):m=t[5];var p=r("useChatGeminiLockUnlockOneOnOneThreadMigrationLockMutation")(m),_;t[6]!==a||t[7]!==i?(_=function(){if(i!=null){var e=r("XGChatRedirectingControllerRouteBuilder").buildUri({other_user_id:i,source:"ChatGeminiGoogleChatMigrationContinueToGchatWithoutComposerBanner"}).toString();r("goURIOnWindow")(window.open("","_blank"),e);return}if(a!=null){var t="https://mail.google.com/chat/u/0/#chat/"+a.replace("spaces","space");r("goURIOnWindow")(window.open("","_blank"),t)}},t[6]=a,t[7]=i,t[8]=_):_=t[8];var f=_,g;t[9]===Symbol.for("react.memo_cache_sentinel")?(g="xyamay9 xv54qhq x1l90r2v xf7dkkf",t[9]=g):g=t[9];var h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h="xz9dl7a xpdmqnj xsag5q8 x1g0dm76",t[10]=h):h=t[10];var y;t[11]===Symbol.for("react.memo_cache_sentinel")?(y="x1hq5gj4",t[11]=y):y=t[11];var C;t[12]===Symbol.for("react.memo_cache_sentinel")?(C=u.jsx(r("CometColumnItem.react"),{paddingHorizontal:0,paddingVertical:0,children:u.jsx("div",{className:y,children:u.jsx(r("FDSTextPairing.react"),{headline:"Work Chat unblocked temporarily for business-critical work",isSemanticHeading:!0,level:3,meta:s._(/*BTDS*/"For everything else, please use Google Chat. When youu2019re finished, lock this chat immediately to make it read-only again.")})})}),t[12]=C):C=t[12];var b;t[13]===Symbol.for("react.memo_cache_sentinel")?(b=s._(/*BTDS*/"Continue in Google Chat"),t[13]=b):b=t[13];var v;t[14]!==f?(v=u.jsx(r("CometRowItem.react"),{expanding:!0,children:u.jsx(r("FDSButton.react"),{label:b,onPress:f,reduceEmphasis:!0,size:"medium",type:"primary"})}),t[14]=f,t[15]=v):v=t[15];var S;t[16]===Symbol.for("react.memo_cache_sentinel")?(S=s._(/*BTDS*/"Lock chat"),t[16]=S):S=t[16];var R;t[17]!==d||t[18]!==p||t[19]!==i?(R=u.jsx(r("CometRowItem.react"),{expanding:!0,children:u.jsx(r("FDSButton.react"),{label:S,onPress:function(){i!=null?p(null,null,!1):d(null,null,!1)},size:"medium",type:"primary"})}),t[17]=d,t[18]=p,t[19]=i,t[20]=R):R=t[20];var L;return t[21]!==R||t[22]!==v?(L=u.jsx("div",{className:g,children:u.jsx(r("FDSCard.react"),{background:"default",border:"solid",children:u.jsx("div",{className:h,children:u.jsxs(r("CometColumn.react"),{children:[C,u.jsx(r("CometColumnItem.react"),{expanding:!0,paddingHorizontal:0,paddingVertical:0,children:u.jsxs(r("CometRow.react"),{paddingHorizontal:0,paddingVertical:0,children:[v,R]})})]})})})}),t[21]=R,t[22]=v,t[23]=L):L=t[23],L}l.default=c}),226);
-----
-----
useChatGeminiToggleMigratedWorkchatLockMutation",["fbt","CometRelay","I64","react","react-compiler-runtime","useChatGeminiToggleMigratedWorkchatLockMutation.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("useChatGeminiToggleMigratedWorkchatLockMutation.graphql");function p(e){var t=o("react-compiler-runtime").c(5),n=e.messageThreadId,a=e.threadKey,i=o("CometRelay").useMutation(m),l=i[0],u=r("useCometAlertDialog")(),d;return t[0]!==n||t[1]!==u||t[2]!==a||t[3]!==l?(d=function(t,r,i){l({variables:{input:{thread_fbid:(c||(c=o("I64"))).to_string(a),is_chat_unlocked:i,help_details:t!=null?t:null,help_reason:r!=null?r:null}},optimisticUpdater:function(t){if(n!=null){var e=t.get(n);e&&e.setValue(i,"is_google_migrated_chat_unlocked")}},onError:function(t){var e=s._(/*BTDS*/"Workchat toogle lock failed");u({body:t.message,title:e},_)},updater:function(t){var e=t.getRootField("xfb_toggle_migrated_workchat_lock");if(e!=null){var r=e.getLinkedRecord("message_thread");if(!(r==null||n==null)){var o=t.get(n);if(o!=null){var a=r.getValue("is_google_migrated_chat_unlocked");o.setValue(a,"is_google_migrated_chat_unlocked")}}}}})},t[0]=n,t[1]=u,t[2]=a,t[3]=l,t[4]=d):d=t[4],d}function _(){}l.default=p}),226); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @fullSyntaxTransform * @es6-async_DO_NOT_USE * @generated SignedSource<
-----
useChatGeminiToggleMigratedWorkchatLockMutation.graphql",["useChatGeminiToggleMigratedWorkchatLockMutation_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:"XFBToggleMigratedWorkchatLockResponsePayload",kind:"LinkedField",name:"xfb_toggle_migrated_workchat_lock",plural:!1,selections:[{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:"is_google_migrated_chat_unlocked",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"useChatGeminiToggleMigratedWorkchatLockMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"useChatGeminiToggleMigratedWorkchatLockMutation",selections:t},params:{id:n("useChatGeminiToggleMigratedWorkchatLockMutation_facebookRelayOperation"),metadata:{},name:"useChatGeminiToggleMigratedWorkchatLockMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
useChatGeminiToggleMigratedWorkchatLockMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24844298868596775"}),null);
-----
ChatGeminiGoogleChatMigrationContinueToGchatWithComposerBanner.react",["fbt","CometColumn.react","CometColumnItem.react","CometRow.react","CometRowItem.react","FDSButton.react","FDSCard.react","FDSTextPairing.react","XGChatRedirectingControllerRouteBuilder","goURIOnWindow","react","react-compiler-runtime","useChatGeminiLockUnlockOneOnOneThreadMigrationLockMutation","useChatGeminiToggleMigratedWorkchatLockMutation"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t=o("react-compiler-runtime").c(24),n=e.messageThreadId,a=e.migrated_chat_google_space_id,i=e.recipientID,l=e.threadKey,c;t[0]!==n||t[1]!==l?(c={messageThreadId:n,threadKey:l},t[0]=n,t[1]=l,t[2]=c):c=t[2];var d=r("useChatGeminiToggleMigratedWorkchatLockMutation")(c),m;t[3]!==n||t[4]!==l?(m={messageThreadId:n,threadKey:l},t[3]=n,t[4]=l,t[5]=m):m=t[5];var p=r("useChatGeminiLockUnlockOneOnOneThreadMigrationLockMutation")(m),_;t[6]!==a||t[7]!==i?(_=function(){if(i!=null){var e=r("XGChatRedirectingControllerRouteBuilder").buildUri({other_user_id:i,source:"ChatGeminiGoogleChatMigrationContinueToGchatWithoutComposerBanner"}).toString();r("goURIOnWindow")(window.open("","_blank"),e);return}if(a!=null){var t="https://mail.google.com/chat/u/0/#chat/"+a.replace("spaces","space");r("goURIOnWindow")(window.open("","_blank"),t)}},t[6]=a,t[7]=i,t[8]=_):_=t[8];var f=_,g;t[9]===Symbol.for("react.memo_cache_sentinel")?(g="xyamay9 xv54qhq x1l90r2v xf7dkkf",t[9]=g):g=t[9];var h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h="xz9dl7a xpdmqnj xsag5q8 x1g0dm76",t[10]=h):h=t[10];var y;t[11]===Symbol.for("react.memo_cache_sentinel")?(y="x1hq5gj4",t[11]=y):y=t[11];var C;t[12]===Symbol.for("react.memo_cache_sentinel")?(C=u.jsx(r("CometColumnItem.react"),{paddingHorizontal:0,paddingVertical:0,children:u.jsx("div",{className:y,children:u.jsx(r("FDSTextPairing.react"),{headline:"Work Chat unblocked temporarily for business-critical work",isSemanticHeading:!0,level:3,meta:s._(/*BTDS*/"For everything else, please use Google Chat. When youu2019re finished, lock this chat immediately to make it read-only again.")})})}),t[12]=C):C=t[12];var b;t[13]===Symbol.for("react.memo_cache_sentinel")?(b=s._(/*BTDS*/"Continue in Google Chat"),t[13]=b):b=t[13];var v;t[14]!==f?(v=u.jsx(r("CometRowItem.react"),{expanding:!0,children:u.jsx(r("FDSButton.react"),{label:b,onPress:f,reduceEmphasis:!0,size:"medium",type:"primary"})}),t[14]=f,t[15]=v):v=t[15];var S;t[16]===Symbol.for("react.memo_cache_sentinel")?(S=s._(/*BTDS*/"Lock chat"),t[16]=S):S=t[16];var R;t[17]!==d||t[18]!==p||t[19]!==i?(R=u.jsx(r("CometRowItem.react"),{expanding:!0,children:u.jsx(r("FDSButton.react"),{label:S,onPress:function(){i!=null?p(null,null,!1):d(null,null,!1)},size:"medium",type:"primary"})}),t[17]=d,t[18]=p,t[19]=i,t[20]=R):R=t[20];var L;return t[21]!==R||t[22]!==v?(L=u.jsx("div",{className:g,children:u.jsx(r("FDSCard.react"),{background:"default",border:"solid",children:u.jsx("div",{className:h,children:u.jsxs(r("CometColumn.react"),{children:[C,u.jsx(r("CometColumnItem.react"),{expanding:!0,paddingHorizontal:0,paddingVertical:0,children:u.jsxs(r("CometRow.react"),{paddingHorizontal:0,paddingVertical:0,children:[v,R]})})]})})})}),t[21]=R,t[22]=v,t[23]=L):L=t[23],L}l.default=c}),226);
-----