OCDevCenterFirstAccessForumPostComment.react",["fbt","ix","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoLink.react","GeoTooltip.react","Image.react","OCDevCenterFirstAccessForumFileAttachmentModal.react","OCDevCenterFirstAccessForumInlineUserInfo.react","OCDevCenterFirstAccessForumPostCommentAttachments.react","OCDevCenterFirstAccessForumPostCommentDeleteButton.react","OCDevCenterFirstAccessForumPostCommentEditField.react","OCDevCenterFirstAccessForumPostComment_comment.graphql","OCDevCenterPreferencesContext","OCDevUIMarkdownRenderer.react","OCExternalPostMetadataIcon.react","OCExternalPostMetadataIconType","OCExternalTaskAvatar.react","OCExternalTaskCommentMarkAnswerButton.react","OCExternalTaskCommentVoteButton.react","RelayHooks","formatDate","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useState,p="u2219",q=i("1857187"),r=i("1622701");function a(a){var e,g=a.comment,l=a.commentType,t=a.onReply;a=a.position;g=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterFirstAccessForumPostComment_comment.graphql"),g);var u=o(!1),v=u[0],w=u[1];u=o([]);var x=u[0],y=u[1];u=o(!1);var z=u[0],A=u[1];u=o("");var B=u[0],C=u[1];u=n(c("OCDevCenterPreferencesContext"));u=u.ownerID;var D=g.attachments,E=g.created_time,F=g.creator,G=g.is_creator_employee,H=g.last_modified_time,I=g.message,J=g.viewer,K=F==null?void 0:F.profile_photo;u=u===(F==null?void 0:F.id);J=(J=J==null?void 0:J.is_fb_employee)!=null?J:!1;e=((e=g.external_post)==null?void 0:(e=e.answering_comment)==null?void 0:e.id)===g.id;var L=m.jsx("span",{className:(k||(k=c("stylex")))(c("geoMargin").end4),children:p});function M(){A(!0)}function N(a){y(a),A(!1)}function O(){A(!1)}function P(a){var b,d;b=(b=a.fileName)!=null?b:"";var e=(d=a.id)!=null?d:"";return m.jsx(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"center",xstyle:s.previewPendingIcon,children:m.jsx(c("GeoButton.react"),{icon:m.jsx(c("Image.react"),{src:e===B?r:q}),isLabelHidden:!0,label:"",tooltip:m.jsx(c("GeoTooltip.react"),{content:b}),onClick:function(){var b=[].concat(x).filter(function(b){return b.id!==a.id});y(b)},onHoverEnd:function(){C("")},onHoverStart:function(){C(e)}})},e)}P.displayName=P.name+" [from "+f.id+"]";return m.jsxs(c("GeoFlexbox.react"),{xstyle:[l==="inline-reply"?s.reply:s.comment,(a==null||a>0)&&s.topBorder,e&&s.answer],children:[m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",xstyle:[s.metadata,c("geoMargin").end16],children:[m.jsx(c("OCExternalTaskAvatar.react"),{size:"normal",src:K==null?void 0:K.uri}),G===!0?m.jsx(c("OCExternalPostMetadataIcon.react"),{iconType:c("OCExternalPostMetadataIconType").EMPLOYEE_POST}):null,e===!0?m.jsx(c("OCExternalPostMetadataIcon.react"),{iconType:c("OCExternalPostMetadataIconType").ANSWER}):null]}),m.jsxs("div",{className:"xh8yej3",children:[m.jsx(c("GeoBaseText.react"),{color:"placeholder",display:"block",size:"header3",xstyle:c("geoMargin").bottom4,children:F!=null?m.jsx(d("OCDevCenterFirstAccessForumInlineUserInfo.react").OCDevCenterFirstAccessForumInlineUserInfo,{showEmployeeOnlyData:J,user:F}):null}),m.jsx("div",{className:k(c("geoMargin").bottom4),children:v?m.jsx(c("OCDevCenterFirstAccessForumPostCommentEditField.react"),{attachments:x,comment:g,onCancel:function(){w(!1),y([])},onComplete:function(){w(!1),y([])}}):m.jsx(c("OCDevUIMarkdownRenderer.react"),{enabledSyntax:"complete",markdown:(l=I)!=null?l:""})}),m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",children:[t!=null&&!v?m.jsxs(m.Fragment,{children:[m.jsx(c("GeoLink.react"),{xstyle:c("geoMargin").end4,onClick:t,children:h._("Reply")}),L]}):null,u&&!v?m.jsxs(m.Fragment,{children:[m.jsx(c("GeoLink.react"),{xstyle:c("geoMargin").end4,onClick:function(){w(!0),y([])},children:h._("Edit")}),L,m.jsx(c("OCDevCenterFirstAccessForumPostCommentDeleteButton.react"),{comment:g}),L]}):null,v?null:m.jsxs(m.Fragment,{children:[m.jsx(c("OCExternalTaskCommentMarkAnswerButton.react"),{comment:g}),m.jsx(c("OCExternalTaskCommentVoteButton.react"),{comment:g}),L]}),!v&&m.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:H==null?c("formatDate")(E,"M d, Y g:ia"):"Edited "+c("formatDate")(H,"M d, Y g:ia")})]}),m.jsx(c("GeoFlexbox.react"),{direction:"column",children:m.jsxs(c("GeoFlexbox.react"),{direction:"row",children:[((a=D==null?void 0:D.count)!=null?a:0)>0&&m.jsxs("div",{children:[m.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").top12}),m.jsx(c("OCDevCenterFirstAccessForumPostCommentAttachments.react"),{commentKey:g})]}),v&&m.jsx("div",{direction:"row",children:m.jsxs(c("GeoFlexbox.react"),{children:[x.map(P),m.jsxs("div",{children:[m.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").top12}),m.jsx(c("GeoTooltip.react"),{content:h._("Add more files to your comment"),heading:h._("Add attachments"),children:m.jsx(c("GeoLink.react"),{onClick:M,children:m.jsx(c("Image.react"),{className:"x1y0jav8 xm0qevz x1q0260 xf7athp xh4j8nf xlya59e x157eodl xpvcztv x1q04ism x178xt8z xm81vs4 xso031l xy80clv x8u2fvd x1ht7hnu x1quq95r x5yzy4c x1ypdohk x10w6t97 x1td3qas x1db2dqx x6ikm8r x10wlt62",src:i("1232409")})})})]})]})})]})})]}),m.jsx(c("OCDevCenterFirstAccessForumFileAttachmentModal.react"),{buttonText:"Confirm",isShown:z,onButtonClicked:N,onHide:O})]})}a.displayName=a.name+" [from "+f.id+"]";var s={comment:{paddingTop:"xyamay9",paddingEnd:"x1pi30zi",paddingBottom:"x1l90r2v",paddingStart:"x1swvt13",$$css:!0},answer:{borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"xmxso3f",borderEndColor:"x2zvq0q",borderBottomColor:"x1o7ufim",borderStartColor:"x15fpdjd",boxSizing:"x9f619",$$css:!0},reply:{backgroundColor:"x1ywc1zp",paddingTop:"xyamay9",paddingEnd:"x1pi30zi",paddingBottom:"x1l90r2v",paddingStart:"x3hkoc4",$$css:!0},topBorder:{borderTopColor:"xe3zbwb",borderTopStyle:"x13fuv20",borderTopWidth:"x178xt8z",$$css:!0},previewPendingIcon:{borderTopColor:"xe3zbwb",borderEndColor:"x1ud72sc",borderBottomColor:"xfjrsp3",borderStartColor:"x12rtjqh",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x972fbf",borderEndWidth:"xcfux6l",borderBottomWidth:"x1qhh985",borderStartWidth:"xm0m39n",borderTopStartRadius:"x8u2fvd",borderTopEndRadius:"x1ht7hnu",borderBottomEndRadius:"x1quq95r",borderBottomStartRadius:"x5yzy4c",cursor:"x1ypdohk",height:"x10w6t97",width:"x1td3qas",marginRight:"xl010v5",marginStart:null,marginEnd:null,overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x1d0ri9u",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",$$css:!0},metadata:{maxWidth:"x1x67gh",minWidth:"x46jg8d",$$css:!0}};g["default"]=a}),226);
-----
OCDevCenterFirstAccessForumPostCommentEditField.react",["fbt","GeoFlexbox.react","GeoLink.react","GeoText.react","GeoTextArea.react","OCDevCenterFirstAccessForumPostCommentEditFieldMutation.graphql","OCDevCenterFirstAccessForumPostCommentEditField_comment.graphql","OCDevUIMarkdownRenderer.react","RelayHooks","asyncToGeneratorRuntime","geoMargin","react","stylex","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l.useState;e="u2219";var o=m.jsx("span",{className:(k||(k=c("stylex")))(c("geoMargin").end4),children:e});function a(a){var e=a.attachments,f=a.comment,g=a.onCancel,k=a.onComplete;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevCenterFirstAccessForumPostCommentEditField_comment.graphql"),f);var l=a.id;f=a.message;f=n((a=f)!=null?a:"");var p=f[0];a=f[1];f=n(!1);var q=f[0],r=f[1],s=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevCenterFirstAccessForumPostCommentEditFieldMutation.graphql"));function t(){return u.apply(this,arguments)}function u(){u=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;if(p.length<1)return;r(!0);a=(yield s({input:{attachment_ids:e.map(function(a){a=a.id;return(a=a)!=null?a:""}),comment_id:(a=l)!=null?a:"",message:p}}));r(!1);a!=null&&k()});return u.apply(this,arguments)}return m.jsxs("div",{className:"xdj266r x11i5rnm xat24cr x1mh8g0r xexx8yu x4uap5 x18d9i69 xkhd6sd",children:[m.jsx(c("GeoTextArea.react"),{isDisabled:q,isLoading:q,label:h._("Edit"),placeholder:h._("Edit your comment..."),rows:2,shouldAutoGrow:!0,tooltip:h._("Enter to submit. Shift+Enter for newline. Escape to cancel."),value:p,onChange:a,onKeyDown:function(a){return a.key==="Escape"&&g()||a.key==="Enter"&&!a.shiftKey&&t()}}),m.jsx("div",{className:"x178xt8z xm81vs4 xso031l xy80clv x146dn1l x11t77rh x1thhq0t xf6uls8 x15yo4kd xb9moi8 xfth1om x21b0me xmls85d x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xz9dl7a xn6708d xsag5q8 x1ye3gou",children:m.jsx(c("OCDevUIMarkdownRenderer.react"),{enabledSyntax:"complete",markdown:p})}),m.jsx(c("GeoFlexbox.react"),{alignItems:"center",children:q?m.jsxs(m.Fragment,{children:[m.jsx(c("GeoText.react"),{xstyle:c("geoMargin").end4,children:h._("Save")}),o,m.jsx(c("GeoText.react"),{xstyle:c("geoMargin").end4,children:h._("Cancel")})]}):m.jsxs(m.Fragment,{children:[m.jsx(c("GeoLink.react"),{xstyle:c("geoMargin").end4,onClick:t,children:h._("Save")}),o,m.jsx(c("GeoLink.react"),{xstyle:c("geoMargin").end4,onClick:g,children:h._("Cancel")})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevCenterFirstAccessForumPostCommentEditField_comment.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterFirstAccessForumPostCommentEditField_comment",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],type:"ExternalTaskComment",abstractKey:null};e.exports=a}),null);
-----
-----
OCDevCenterFirstAccessForumPostCommentEditField.react",["fbt","GeoFlexbox.react","GeoLink.react","GeoText.react","GeoTextArea.react","OCDevCenterFirstAccessForumPostCommentEditFieldMutation.graphql","OCDevCenterFirstAccessForumPostCommentEditField_comment.graphql","OCDevUIMarkdownRenderer.react","RelayHooks","asyncToGeneratorRuntime","geoMargin","react","stylex","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l.useState;e="u2219";var o=m.jsx("span",{className:(k||(k=c("stylex")))(c("geoMargin").end4),children:e});function a(a){var e=a.attachments,f=a.comment,g=a.onCancel,k=a.onComplete;a=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevCenterFirstAccessForumPostCommentEditField_comment.graphql"),f);var l=a.id;f=a.message;f=n((a=f)!=null?a:"");var p=f[0];a=f[1];f=n(!1);var q=f[0],r=f[1],s=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevCenterFirstAccessForumPostCommentEditFieldMutation.graphql"));function t(){return u.apply(this,arguments)}function u(){u=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;if(p.length<1)return;r(!0);a=(yield s({input:{attachment_ids:e.map(function(a){a=a.id;return(a=a)!=null?a:""}),comment_id:(a=l)!=null?a:"",message:p}}));r(!1);a!=null&&k()});return u.apply(this,arguments)}return m.jsxs("div",{className:"xdj266r x11i5rnm xat24cr x1mh8g0r xexx8yu x4uap5 x18d9i69 xkhd6sd",children:[m.jsx(c("GeoTextArea.react"),{isDisabled:q,isLoading:q,label:h._("Edit"),placeholder:h._("Edit your comment..."),rows:2,shouldAutoGrow:!0,tooltip:h._("Enter to submit. Shift+Enter for newline. Escape to cancel."),value:p,onChange:a,onKeyDown:function(a){return a.key==="Escape"&&g()||a.key==="Enter"&&!a.shiftKey&&t()}}),m.jsx("div",{className:"x178xt8z xm81vs4 xso031l xy80clv x146dn1l x11t77rh x1thhq0t xf6uls8 x15yo4kd xb9moi8 xfth1om x21b0me xmls85d x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xz9dl7a xn6708d xsag5q8 x1ye3gou",children:m.jsx(c("OCDevUIMarkdownRenderer.react"),{enabledSyntax:"complete",markdown:p})}),m.jsx(c("GeoFlexbox.react"),{alignItems:"center",children:q?m.jsxs(m.Fragment,{children:[m.jsx(c("GeoText.react"),{xstyle:c("geoMargin").end4,children:h._("Save")}),o,m.jsx(c("GeoText.react"),{xstyle:c("geoMargin").end4,children:h._("Cancel")})]}):m.jsxs(m.Fragment,{children:[m.jsx(c("GeoLink.react"),{xstyle:c("geoMargin").end4,onClick:t,children:h._("Save")}),o,m.jsx(c("GeoLink.react"),{xstyle:c("geoMargin").end4,onClick:g,children:h._("Cancel")})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevCenterFirstAccessForumPostCommentEditField_comment.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterFirstAccessForumPostCommentEditField_comment",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],type:"ExternalTaskComment",abstractKey:null};e.exports=a}),null);
-----