MDCAppStoreComment.react",["fbt","CometRelay","GraphQLError","MCDSDropdownMenu.react","MCDSDropdownMenuIconTrigger.react","MCDSDropdownMenuItem.react","MCDSFlexbox.react","MCDSHorizontalStack.react","MCDSIcon.react","MCDSIconContainerWithLidOutline.svg.react","MCDSIconContentFlagOutline.svg.react","MCDSIconThreeDotsHorizontalOutline.svg.react","MCDSText.react","MDCAppStoreCommentDeleteCommentMutation.graphql","MDCAppStoreComment_comment.graphql","MDCAppStoreComment_viewer.graphql","MDCAppStoreDeleteCommentModal.react","MDCAppStoreErrorContext","MDCAppStoreI18n","MDCAppStoreRelativeTime","MDCAppStoreV2ProfilePhoto.react","mcdsMargin","react","useMDCAppStoreV2Mutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react"));e=l;var n=e.useCallback,o=e.useContext,p=e.useState;function a(a){var e,f=a.comment,g=a.connectionID;a=a.viewer;var l=o(c("MDCAppStoreErrorContext")),q=l.onError;l=p(!1);var r=l[0],s=l[1],t=d("CometRelay").useFragment(i!==void 0?i:i=b("MDCAppStoreComment_comment.graphql"),f);l=d("CometRelay").useFragment(j!==void 0?j:j=b("MDCAppStoreComment_viewer.graphql"),a);l=((f=l.user)==null?void 0:f.id)===((a=t.creator)==null?void 0:a.id);f=c("useMDCAppStoreV2Mutation")(k!==void 0?k:k=b("MDCAppStoreCommentDeleteCommentMutation.graphql"),{suppressCometError:!0});var u=f[0];a=f[1];f=n(function(){if(t.id==null)return;u({variables:{input:{developer_post_comment_id:t.id},connections:[g]},onCompleted:function(){s(!1)},onError:function(a){s(!1);var b=d("GraphQLError").getErrorMessage(a);if(b!=null)q(a,b,{message:b,title:b,type:"skyline_error"});else{var c;b=a.message;c=(c=a.description)!=null?c:"";q(a,b,{message:c,title:b,type:"skyline_error"})}}})},[t.id,u,g,q]);l=m.jsx(c("MCDSDropdownMenu.react"),{trigger:m.jsx(c("MCDSDropdownMenuIconTrigger.react"),{"aria-label":h._(/*BTDS*/"Comments context menu"),icon:m.jsx(c("MCDSIcon.react"),{color:"primary",icon:c("MCDSIconThreeDotsHorizontalOutline.svg.react")})}),children:l?m.jsx(c("MCDSDropdownMenuItem.react"),{icon:m.jsx(c("MCDSIcon.react"),{icon:c("MCDSIconContainerWithLidOutline.svg.react")}),label:h._(/*BTDS*/"Delete"),value:"delete-comment",onSelect:function(){return s(!0)}},"delete-comment"):m.jsx(c("MCDSDropdownMenuItem.react"),{icon:m.jsx(c("MCDSIcon.react"),{icon:c("MCDSIconContentFlagOutline.svg.react")}),label:h._(/*BTDS*/"Report"),value:"hide-comment",onSelect:function(){}})});e=((e=t.creator)==null?void 0:e.alias)!=null?(e=t.creator)==null?void 0:e.alias:(e=t.creator)==null?void 0:e.name;var v=new Date().getUTCMonth(),w=new(d("MDCAppStoreI18n").RelativeDateTimeFormat)({relativeTimeThreshold:function(a){return a==="M"?v:d("MDCAppStoreRelativeTime").relativeTimeThreshold(a)}});return m.jsxs(c("MCDSFlexbox.react"),{direction:"column",gap:16,children:[m.jsxs(c("MCDSHorizontalStack.react"),{gap:12,justifyContent:"space-between",children:[m.jsxs(c("MCDSFlexbox.react"),{alignSelf:"flex-start",direction:"row",children:[m.jsx(c("MDCAppStoreV2ProfilePhoto.react"),{userRef:t.creator,useSmallIcon:!1}),m.jsxs(c("MCDSFlexbox.react"),{alignSelf:"center",direction:"column",xstyle:c("mcdsMargin").start16,children:[m.jsx(c("MCDSText.react"),{type:"mcds-large-body-emphasized",children:e}),m.jsx(c("MCDSText.react"),{color:"secondary",type:"mcds-large-body",children:w.format(new Date(((e=t.creation_time)!=null?e:0)*1e3))})]})]}),m.jsx(c("MCDSFlexbox.react"),{alignSelf:"flex-end",children:l})]}),m.jsx(c("MCDSText.react"),{color:"secondary",type:"mcds-small-body",children:t.body}),r&&m.jsx(c("MDCAppStoreDeleteCommentModal.react"),{isLoading:a,onClose:function(){return s(!1)},onConfirm:f})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreCommentDeleteCommentMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"connections"},b={defaultValue:null,kind:"LocalArgument",name:"input"},c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"deleted_id",storageKey:null};return{fragment:{argumentDefinitions:[a,b],kind:"Fragment",metadata:null,name:"MDCAppStoreCommentDeleteCommentMutation",selections:[{alias:null,args:c,concreteType:"XOCDeleteDeveloperPostCommentResponsePayload",kind:"LinkedField",name:"xoc_delete_developer_post_comment",plural:!1,selections:[d],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a],kind:"Operation",name:"MDCAppStoreCommentDeleteCommentMutation",selections:[{alias:null,args:c,concreteType:"XOCDeleteDeveloperPostCommentResponsePayload",kind:"LinkedField",name:"xoc_delete_developer_post_comment",plural:!1,selections:[d,{alias:null,args:null,filters:null,handle:"deleteEdge",key:"",kind:"ScalarHandle",name:"deleted_id",handleArgs:[{kind:"Variable",name:"connections",variableName:"connections"}]}],storageKey:null}]},params:{id:"24153523564286265",metadata:{},name:"MDCAppStoreCommentDeleteCommentMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----