OCAccountBlockUserDialog.react",["fbt","OCAccountBlockUserDialogMutation.graphql","OCAccountBlockUserDialog_follower.graphql","OCAccountPeopleProfileImage.react","OCDSButton.react","OCDSDialog.react","OCDSDialogBody.react","OCDSDialogFooter.react","OCDSHeading.react","OCDSSpacer.react","OCDSText.react","OCDSTextList.react","OCDSTextListItem.react","asyncToGeneratorRuntime","react","react-relay","uuidv4"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState,n={description_header:{paddingTop:"x1p5oq8j",$$css:!0},description_list:{paddingLeft:"x163pfp",paddingStart:null,paddingEnd:null,$$css:!0}};function a(a){var e=a.follower,f=a.isShown;f=f===void 0?!1:f;var g=a.onBlock,k=a.onCancel,o=a.onClick,p=a.onError,q=a.onHide;a=m(!1);var r=a[0],s=a[1];a=m(!1);var t=a[0],u=a[1],v=d("react-relay").useFragment(i!==void 0?i:i=b("OCAccountBlockUserDialog_follower.graphql"),e);a=d("react-relay").useMutation(j!==void 0?j:j=b("OCAccountBlockUserDialogMutation.graphql"));var w=a[0];return l.jsxs(c("OCDSDialog.react"),{footer:l.jsxs(l.Fragment,{children:[l.jsx(c("OCDSDialogFooter.react"),{primaryButton:l.jsx(c("OCDSButton.react"),{"data-testid":void 0,display:"block",isDisabled:!(v==null?void 0:v.user_id),isLoading:r,label:h._("BLOCK"),type:"primary",variant:"filled",onClick:b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;s(!0);u(!1);o();yield w({variables:{user_id:(a=v==null?void 0:v.user_id)!=null?a:"",client_mutation_id:c("uuidv4")()},onCompleted:function(){s(!1),g()},onError:function(){u(!0),s(!1),p()}})})}),secondaryButton:l.jsx(c("OCDSButton.react"),{display:"block",label:h._("CANCEL"),type:"secondary",variant:"outline",onClick:function(){k()}})}),t&&l.jsx(c("OCDSSpacer.react"),{bottomSize:"small",children:l.jsx(c("OCDSText.react"),{color:"error",display:"block",textAlign:"center",type:"body2",children:h._("Something went wrong. Please try again later.")})})]}),isShown:f,onHide:function(){q()},children:[l.jsx("div",{className:"x78zum5 x6s0dn4 xl56j7k xieb3on",children:l.jsx(c("OCAccountPeopleProfileImage.react"),{userKey:v})}),l.jsxs(c("OCDSDialogBody.react"),{children:[l.jsx(c("OCDSHeading.react"),{type:"heading4",children:h._("Block {follower_name}?",[h._param("follower_name",(e=v.handle)!=null?e:v.alias)])}),l.jsx(c("OCDSText.react"),{color:"gray",display:"block",type:"body2",xstyle:n.description_header,children:h._("If you block someone, they won"t be able to:")}),l.jsx(c("OCDSText.react"),{color:"gray",children:l.jsxs(c("OCDSTextList.react"),{xstyle:n.description_list,children:[l.jsx(c("OCDSTextListItem.react"),{children:h._("Follow you. If you"re following each other, you"ll automatically unfollow each other.")}),l.jsx(c("OCDSTextListItem.react"),{children:h._("Send you messages or invitations to events, games or parties.")}),l.jsx(c("OCDSTextListItem.react"),{children:h._("See your VR activity or profile in search.")})]})}),l.jsx(c("OCDSText.react"),{color:"gray",display:"block",type:"body2",xstyle:n.description_header,children:h._("We won"t tell this person that you"ve blocked them. You can unblock them at any time in Settings. We may share this info with apps you use.")})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCAccountBlockUserDialogMutation.graphql",["OCAccountBlockUserDialogMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"client_mutation_id"},c={defaultValue:null,kind:"LocalArgument",name:"user_id"},d=[{fields:[{kind:"Variable",name:"client_mutation_id",variableName:"client_mutation_id"},{kind:"Variable",name:"user_id",variableName:"user_id"}],kind:"ObjectValue",name:"data"}],e={alias:null,args:null,kind:"ScalarField",name:"user_id",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},g={alias:null,args:null,concreteType:"BlockedUser",kind:"LinkedField",name:"blocked_user",plural:!1,selections:[f],storageKey:null},h=[{kind:"Literal",name:"orderby",value:["NAME_OR_ALIAS"]}],i=[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"OCAccountBlockUserDialogMutation",selections:[{alias:null,args:d,concreteType:"UserBlockResponsePayload",kind:"LinkedField",name:"user_block",plural:!1,selections:[e,g,{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"OCAccountPeopleLists_counts"}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"OCAccountBlockUserDialogMutation",selections:[{alias:null,args:d,concreteType:"UserBlockResponsePayload",kind:"LinkedField",name:"user_block",plural:!1,selections:[e,{alias:null,args:null,filters:null,handle:"deleteRecord",key:"",kind:"ScalarHandle",name:"user_id"},g,{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"profile_status",storageKey:null},{alias:null,args:h,concreteType:"UserFollowersConnection",kind:"LinkedField",name:"followers",plural:!1,selections:i,storageKey:"followers(orderby:["NAME_OR_ALIAS"])"},{alias:null,args:h,concreteType:"UserFollowsConnection",kind:"LinkedField",name:"follows",plural:!1,selections:i,storageKey:"follows(orderby:["NAME_OR_ALIAS"])"},{alias:null,args:h,concreteType:"UserFollowerRequestsReceivedConnection",kind:"LinkedField",name:"follower_requests_received",plural:!1,selections:i,storageKey:"follower_requests_received(orderby:["NAME_OR_ALIAS"])"},f],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("OCAccountBlockUserDialogMutation_oculusRelayOperation"),metadata:{},name:"OCAccountBlockUserDialogMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCAccountBlockUserDialogMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5222481121206631"}),null);
-----
OCAccountBlockUserDialog.react",["fbt","OCAccountBlockUserDialogMutation.graphql","OCAccountBlockUserDialog_follower.graphql","OCAccountPeopleProfileImage.react","OCDSButton.react","OCDSDialog.react","OCDSDialogBody.react","OCDSDialogFooter.react","OCDSHeading.react","OCDSSpacer.react","OCDSText.react","OCDSTextList.react","OCDSTextListItem.react","react","react-relay","regeneratorRuntime","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react"),l=d("react").useState,m={description_header:{paddingTop:"x1p5oq8j",$$css:!0},description_list:{paddingLeft:"x163pfp",$$css:!0},dialog_profile:{display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",marginBottom:"xieb3on",$$css:!0}};function a(a){var e=a.follower,f=a.isShown;f=f===void 0?!1:f;var g=a.onBlock,n=a.onCancel,o=a.onClick,p=a.onError,q=a.onHide;a=l(!1);var r=a[0],s=a[1];a=l(!1);var t=a[0],u=a[1],v=d("react-relay").useFragment(i!==void 0?i:i=b("OCAccountBlockUserDialog_follower.graphql"),e);a=d("react-relay").useMutation(j!==void 0?j:j=b("OCAccountBlockUserDialogMutation.graphql"));var w=a[0];return k.jsxs(c("OCDSDialog.react"),{footer:k.jsxs(k.Fragment,{children:[k.jsx(c("OCDSDialogFooter.react"),{primaryButton:k.jsx(c("OCDSButton.react"),{"data-testid":void 0,display:"block",isDisabled:!(v==null?void 0:v.user_id),isLoading:r,label:h._("u62c9u9ed1"),type:"primary",variant:"filled",onClick:function(){var a;return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:s(!0);u(!1);o();d.next=5;return b("regeneratorRuntime").awrap(w({variables:{user_id:(a=v==null?void 0:v.user_id)!=null?a:"",client_mutation_id:c("uuid")()},onCompleted:function(){s(!1),g()},onError:function(){u(!0),s(!1),p()}}));case 5:case"end":return d.stop()}},null,this)}}),secondaryButton:k.jsx(c("OCDSButton.react"),{display:"block",label:h._("u53d6u6d88"),type:"secondary",variant:"outline",onClick:function(){n()}})}),t&&k.jsx(c("OCDSSpacer.react"),{bottomSize:"small",children:k.jsx(c("OCDSText.react"),{color:"error",display:"block",textAlign:"center",type:"body2",children:h._("u51fau9519u4e86uff0cu8bf7u7a0du540eu91cdu8bd5u3002")})})]}),isShown:f,onHide:function(){q()},children:[k.jsx("div",{className:"x78zum5 x6s0dn4 xl56j7k xieb3on",children:k.jsx(c("OCAccountPeopleProfileImage.react"),{userKey:v})}),k.jsxs(c("OCDSDialogBody.react"),{children:[k.jsx(c("OCDSHeading.react"),{type:"heading4",children:h._("u62c9u9ed1{follower_name}uff1f",[h._param("follower_name",(e=v.handle)!=null?e:v.alias)])}),k.jsx(c("OCDSText.react"),{color:"gray",display:"block",type:"body2",xstyle:m.description_header,children:h._("u5982u679cu4f60u62c9u9ed1u67d0u4ebauff0cu5bf9u65b9u5c06u65e0u6cd5uff1a")}),k.jsx(c("OCDSText.react"),{color:"gray",children:k.jsxs(c("OCDSTextList.react"),{xstyle:m.description_list,children:[k.jsx(c("OCDSTextListItem.react"),{children:h._("u5173u6ce8u4f60u3002u5982u679cu5df2u4e92u5173uff0cu4f60u4eecu4f1au81eau52a8u76f8u4e92u53d6u5173u3002")}),k.jsx(c("OCDSTextListItem.react"),{children:h._("u7ed9u4f60u53d1u6d88u606fu6216u9080u8bf7u4f60u52a0u5165u6d3bu52a8u3001u6e38u620fu6216u6d3eu5bf9u3002")}),k.jsx(c("OCDSTextListItem.react"),{children:h._("u5728u641cu7d22u4e2du770bu5230u4f60u7684 VR u52a8u6001u6216u4e2au4ebau4e3bu9875u3002")})]})}),k.jsx(c("OCDSText.react"),{color:"gray",display:"block",type:"body2",xstyle:m.description_header,children:h._("u6211u4eecu4e0du4f1au8ba9u8fd9u4f4du7528u6237u77e5u9053u81eau5df1u88abu4f60u62c9u9ed1u3002u4f60u53efu4ee5u968fu65f6u5728u8bbeu7f6eu4e2du53d6u6d88u62c9u9ed1u3002u6211u4eecu53efu80fdu4f1au628au8fd9u9879u4fe1u606fu5206u4eabu7ed9u4f60u4f7fu7528u7684u5e94u7528u3002")})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCAccountBlockUserDialogMutation.graphql",["OCAccountBlockUserDialogMutation_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"client_mutation_id"},c={defaultValue:null,kind:"LocalArgument",name:"user_id"},d=[{fields:[{kind:"Variable",name:"client_mutation_id",variableName:"client_mutation_id"},{kind:"Variable",name:"user_id",variableName:"user_id"}],kind:"ObjectValue",name:"data"}],e={alias:null,args:null,kind:"ScalarField",name:"user_id",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},g={alias:null,args:null,concreteType:"BlockedUser",kind:"LinkedField",name:"blocked_user",plural:!1,selections:[f],storageKey:null},h=[{kind:"Literal",name:"orderby",value:["NAME_OR_ALIAS"]}],i=[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"OCAccountBlockUserDialogMutation",selections:[{alias:null,args:d,concreteType:"UserBlockResponsePayload",kind:"LinkedField",name:"user_block",plural:!1,selections:[e,g,{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"OCAccountPeopleLists_counts"}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"OCAccountBlockUserDialogMutation",selections:[{alias:null,args:d,concreteType:"UserBlockResponsePayload",kind:"LinkedField",name:"user_block",plural:!1,selections:[e,{alias:null,args:null,filters:null,handle:"deleteRecord",key:"",kind:"ScalarHandle",name:"user_id"},g,{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"profile_status",storageKey:null},{alias:null,args:h,concreteType:"UserFollowersConnection",kind:"LinkedField",name:"followers",plural:!1,selections:i,storageKey:"followers(orderby:["NAME_OR_ALIAS"])"},{alias:null,args:h,concreteType:"UserFollowsConnection",kind:"LinkedField",name:"follows",plural:!1,selections:i,storageKey:"follows(orderby:["NAME_OR_ALIAS"])"},{alias:null,args:h,concreteType:"UserFollowerRequestsReceivedConnection",kind:"LinkedField",name:"follower_requests_received",plural:!1,selections:i,storageKey:"follower_requests_received(orderby:["NAME_OR_ALIAS"])"},f],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("OCAccountBlockUserDialogMutation_oculusRelayOperation"),metadata:{},name:"OCAccountBlockUserDialogMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCAccountBlockUserDialogMutation_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5222481121206631"}),null);
-----