OCDevCenterFirstAccessForumPostCommentsCard.react",["fbt","GeoHeading.react","OCDevCenterFirstAccessForumPostComment.react","OCDevCenterFirstAccessForumPostCommentReplies.react","OCDevCenterFirstAccessForumPostCommentReplyField.react","OCDevCenterFirstAccessForumPostCommentsCard_post.graphql","OCDevCenterFirstAccessForumPostCommentsCard_user.graphql","OCDevUICard.react","OCDevUICardSection.react","OCDevUIFlexItem.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useState;function a(a){var e=a.post;a=a.user;e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevCenterFirstAccessForumPostCommentsCard_post.graphql"),e);var f=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterFirstAccessForumPostCommentsCard_user.graphql"),a);a=m(null);var g=a[0],k=a[1];a=((e=(a=e.comments)==null?void 0:a.nodes)!=null?e:[]).filter(Boolean);return a.length===0?null:l.jsxs(c("OCDevUICard.react"),{className:"x12kfqi8 x1izhqgq xv34xx1 x1ddcwha x1qkmp1j x193iq5w xgqtt45",useOldDesign:!0,children:[l.jsx(c("OCDevUICardSection.react"),{children:l.jsx(c("OCDevUIFlexItem.react"),{flexGrow:1,children:l.jsx(c("GeoHeading.react"),{level:3,children:h._("Comments")})})}),a.map(function(a,b){return l.jsxs("div",{children:[l.jsx(c("OCDevCenterFirstAccessForumPostComment.react"),{comment:a,commentType:"comment",position:b,onReply:function(){return k(a.id)}}),l.jsx(c("OCDevCenterFirstAccessForumPostCommentReplies.react"),{comment:a,onReply:function(){return k(a.id)}}),g===a.id?l.jsx(c("OCDevCenterFirstAccessForumPostCommentReplyField.react"),{comment:a,user:f,onCancel:function(){return k(null)}}):null]},b)})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevCenterFirstAccessForumPostCommentReplyField.react",["fbt","GeoButton.react","GeoFlexbox.react","OCDevCenterFirstAccessForumPostCommentReplyFieldMutation.graphql","OCDevCenterFirstAccessForumPostCommentReplyField_comment.graphql","OCDevCenterFirstAccessForumPostCommentReplyField_user.graphql","OCDevCenterFirstAccessForumPostShared.react","OCDevUIForm.react","OCDevUIFormSubmitButton.react","OCDevUITextAreaWithMarkdownPreview.react","OCExternalTaskAvatar.react","OCExternalTaskCommentInternalAction","RelayHooks","asyncToGeneratorRuntime","castToEnum","geoMargin","react","stylex","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=m||(m=d("react")),o=m.useState;function a(a){var e,f=a.comment,g=a.onCancel;a=a.user;f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevCenterFirstAccessForumPostCommentReplyField_comment.graphql"),f);var m=f.external_post,q=f.id;f=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterFirstAccessForumPostCommentReplyField_user.graphql"),a);a=f.fb_employee_id;f=f.profile_photo;var r=o(""),s=r[0];r=r[1];var t=o("DEFAULT"),u=t[0];t=t[1];var v=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevCenterFirstAccessForumPostCommentReplyFieldMutation.graphql")),w=(e=m==null?void 0:m.id)!=null?e:"";e=a!=null;m=(m==null?void 0:(a=m.internal_task)==null?void 0:a.number)!=null;function x(){return y.apply(this,arguments)}function y(){y=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(s.length<1)return;var a=(yield v({input:{comment_parent_id:q,external_post_id:w,message:s,subscription_status:!0,internal_action:c("castToEnum")(u,c("OCExternalTaskCommentInternalAction"),"DEFAULT")}}));a!=null&&g()});return y.apply(this,arguments)}return n.jsx(c("OCDevUIForm.react"),{onSubmit:x,children:n.jsxs(c("GeoFlexbox.react"),{xstyle:p.root,children:[n.jsx("div",{className:(l||(l=c("stylex")))([p.metadata,c("geoMargin").end16]),children:n.jsx(c("OCExternalTaskAvatar.react"),{size:"normal",src:f==null?void 0:f.uri})}),n.jsxs(c("GeoFlexbox.react"),{direction:"column",grow:1,children:[n.jsx(c("OCDevUITextAreaWithMarkdownPreview.react"),{enabledSyntax:"complete",isLabelHidden:!0,isResizable:!1,label:h._("Comment"),placeholder:h._("Write a reply..."),rows:3,shouldAutoGrow:!1,value:s,onChange:r}),n.jsxs(c("GeoFlexbox.react"),{direction:"row",xstyle:p.top_6,children:[n.jsx(c("OCDevUIFormSubmitButton.react"),{}),n.jsx(c("GeoButton.react"),{label:"Cancel",onClick:g}),n.jsx(d("OCDevCenterFirstAccessForumPostShared.react").OCDevCenterFirstAccessForumPostInternalActionSelector,{setValue:t,shouldDisplay:e&&m,value:u})]})]})]})})}a.displayName=a.name+" [from "+f.id+"]";var p={root:{backgroundColor:"x1ywc1zp",borderTopColor:"xe3zbwb",borderTopStyle:"x13fuv20",borderTopWidth:"x178xt8z",paddingTop:"xyamay9",paddingEnd:"x1pi30zi",paddingBottom:"x1l90r2v",paddingStart:"x3hkoc4",$$css:!0},top_6:{paddingTop:"x1yrsyyn",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",$$css:!0},metadata:{maxWidth:"x1x67gh",minWidth:"x46jg8d",$$css:!0}};g["default"]=a}),226);
-----
OCDevCenterFirstAccessForumPostCommentsCard_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterFirstAccessForumPostCommentsCard_user",selections:[{args:null,kind:"FragmentSpread",name:"OCDevCenterFirstAccessForumPostCommentReplyField_user"}],type:"User",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterFirstAccessForumPostCommentReplyField_comment.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterFirstAccessForumPostCommentReplyField_comment",selections:[a,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"external_post",plural:!1,selections:[a,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"XOCExternalForumPostInternalTask",kind:"LinkedField",name:"internal_task",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"number",storageKey:null}],storageKey:null}],type:"ExternalForumPost",abstractKey:null}],storageKey:null}],type:"ExternalTaskComment",abstractKey:null}}();e.exports=a}),null);
-----