OCDevCenterFirstAccessForumPostView.react",["fbt","GeoNotice.react","GeoPageItem.react","GeoPageSection.react","OCDevCenterFirstAccessContainer.react","OCDevCenterFirstAccessForumPostAddCommentCard.react","OCDevCenterFirstAccessForumPostCommentsCard.react","OCDevCenterFirstAccessForumPostDetailCard.react","OCDevCenterFirstAccessForumPostView_forum.graphql","OCDevCenterFirstAccessForumPostView_post.graphql","OCDevCenterFirstAccessForumPostView_user.graphql","OCDevCenterFirstAccessForumRoute","OCDevCenterNewFirstAccessHomeRoute","OCDevUIBreadcrumb.react","OCDevUIBreadcrumbs.react","RelayHooks","react","useDocumentTitle"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||d("react");function a(a){var e=a.forum,f=a.post;a=a.user;f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevCenterFirstAccessForumPostView_post.graphql"),f);e=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterFirstAccessForumPostView_forum.graphql"),e);a=d("RelayHooks").useFragment(k!==void 0?k:k=b("OCDevCenterFirstAccessForumPostView_user.graphql"),a);var g=f.is_locked,l=f.is_viewer_employee,n=f.title,o=e.is_closed,p=e.name;n=(n=n)!=null?n:"";p=(p=p)!=null?p:"";c("useDocumentTitle")(n+" - "+p);var q=c("OCDevCenterNewFirstAccessHomeRoute").getURI();e=c("OCDevCenterFirstAccessForumRoute").getURI({forumSlug:(e=e.slug)!=null?e:""});n=n.length>50?n.substring(0,50)+"...":n;o=(o===!1||l===!0)&&g===!1;l=g!==!1?h._("You cannot add comments to a locked post."):h._("This forum is closed. You can no longer add comments.");return m.jsx(c("OCDevCenterFirstAccessContainer.react"),{heading:m.jsxs(c("OCDevUIBreadcrumbs.react"),{level:3,children:[m.jsx(c("OCDevUIBreadcrumb.react"),{label:h._("First Access"),to:q.getPath()},1),m.jsx(c("OCDevUIBreadcrumb.react"),{label:h._("{forum name} Forum",[h._param("forum name",p)]),to:e.getPath()},2),m.jsx(c("OCDevUIBreadcrumb.react"),{label:n},3)]}),children:m.jsxs(c("GeoPageSection.react"),{children:[m.jsx(c("OCDevCenterFirstAccessForumPostDetailCard.react"),{post:f}),m.jsx(c("GeoPageItem.react"),{columns:12,children:m.jsx(c("OCDevCenterFirstAccessForumPostCommentsCard.react"),{post:f,user:a})}),m.jsx(c("GeoPageItem.react"),{columns:12,children:o?m.jsx(c("OCDevCenterFirstAccessForumPostAddCommentCard.react"),{post:f}):m.jsx("div",{className:"xh8yej3",children:m.jsx(c("GeoNotice.react"),{status:"warning",children:l})})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevCenterFirstAccessForumPostView_post.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterFirstAccessForumPostView_post",selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_viewer_employee",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_locked",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevCenterFirstAccessForumPostDetailCard_post"},{args:null,kind:"FragmentSpread",name:"OCDevCenterFirstAccessForumPostCommentsCard_post"},{args:null,kind:"FragmentSpread",name:"OCDevCenterFirstAccessForumPostAddCommentCard_post"}],type:"ExternalForumPost",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterFirstAccessForumPostAddCommentCard.react",["fbt","ix","GeoButton.react","GeoCard.react","GeoCardFooter.react","GeoCardHeader.react","GeoFlexbox.react","GeoSection.react","GeoTooltip.react","Image.react","OCDevCenterFirstAccessForumFileAttachmentModal.react","OCDevCenterFirstAccessForumPostAddCommentCardMutation.graphql","OCDevCenterFirstAccessForumPostAddCommentCard_post.graphql","OCDevCenterFirstAccessForumPostShared.react","OCDevCenterFirstAccessUploadFileConfig","OCDevUIForm.react","OCDevUIFormSubmitButton.react","OCDevUITextAreaWithMarkdownPreview.react","OCExternalTaskCommentInternalAction","RelayHooks","asyncToGeneratorRuntime","castToEnum","geoMargin","react","uniqueID","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react")),n=l.useState,o=i("1857187"),p=i("1622701");function a(a){a=a.post;a=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterFirstAccessForumPostAddCommentCard_post.graphql"),a);var e=a.id,g=a.internal_task;a=a.is_viewer_employee;var i=n(""),l=i[0],r=i[1];i=n([]);var s=i[0],t=i[1];i=n(!1);var u=i[0],v=i[1];i=n("");var w=i[0],x=i[1];i=n(!1);var y=i[0],z=i[1];i=n(c("uniqueID")());var A=i[0],B=i[1];i=n("DEFAULT");var C=i[0];i=i[1];var D=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevCenterFirstAccessForumPostAddCommentCardMutation.graphql"));function E(){z(!0)}function F(a){z(!1),t(s.concat(a).sort(function(a,b){return((a=a.fileName)!=null?a:"")<((a=b.fileName)!=null?a:"")?-1:1}))}function G(){z(!1),t([])}function H(){return I.apply(this,arguments)}function I(){I=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;v(!0);a=(yield D({input:{attachment_ids:s.map(function(a){a=a.id;return(a=a)!=null?a:""}),comment_parent_id:null,external_post_id:(a=e)!=null?a:"",message:l,subscription_status:!0,internal_action:c("castToEnum")(C,c("OCExternalTaskCommentInternalAction"),"DEFAULT")}}));a!=null&&(r(""),B(c("uniqueID")()),t([]),v(!1))});return I.apply(this,arguments)}function J(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:q.previewWrap,children:m.jsx(c("GeoButton.react"),{icon:m.jsx(c("Image.react"),{src:e===w?p:o}),isLabelHidden:!0,label:"",tooltip:m.jsx(c("GeoTooltip.react"),{content:b}),onClick:function(){var b=[].concat(s).filter(function(b){return b.id!==a.id});t(b)},onHoverEnd:function(){x("")},onHoverStart:function(){x(e)}})},e)}J.displayName=J.name+" [from "+f.id+"]";return m.jsxs(c("OCDevUIForm.react"),{onSubmit:H,children:[m.jsx(c("GeoCard.react"),{footer:m.jsx(c("GeoCardFooter.react"),{primaryButton:m.jsx(c("OCDevUIFormSubmitButton.react"),{}),startContent:m.jsxs(c("GeoFlexbox.react"),{alignItems:"end",children:[s.map(J),m.jsx(c("GeoFlexbox.react"),{alignSelf:"stretch",grow:1}),m.jsx(d("OCDevCenterFirstAccessForumPostShared.react").OCDevCenterFirstAccessForumPostInternalActionSelector,{setValue:i,shouldDisplay:a===!0&&(g==null?void 0:g.number)!=null,value:C}),m.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").start8,children:m.jsx(c("GeoButton.react"),{isDisabled:u,isLabelHidden:!1,label:h._("Attach Files"),tooltip:m.jsx(c("GeoTooltip.react"),{content:d("OCDevCenterFirstAccessUploadFileConfig").attachmentsUploaderDescription}),onClick:E})})]})}),header:m.jsx(c("GeoCardHeader.react"),{heading:h._("Add Comment")}),children:m.jsx(c("GeoSection.react"),{children:m.jsx(c("OCDevUITextAreaWithMarkdownPreview.react"),{enabledSyntax:"complete",isLabelHidden:!0,isResizable:!1,label:h._("Comment"),placeholder:h._("Comment on this post..."),rows:3,shouldAutoGrow:!0,validateField:function(){return l.length>0?null:"Field is required"},validationKey:A,value:l,onChange:r})})}),m.jsx(c("OCDevCenterFirstAccessForumFileAttachmentModal.react"),{buttonText:"Confirm",isShown:y,onButtonClicked:F,onHide:G})]})}a.displayName=a.name+" [from "+f.id+"]";var q={previewWrap:{borderTopColor:"xe3zbwb",borderEndColor:"x1ud72sc",borderBottomColor:"xfjrsp3",borderStartColor:"x12rtjqh",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStartRadius:"x8u2fvd",borderTopEndRadius:"x1ht7hnu",borderBottomEndRadius:"x1quq95r",borderBottomStartRadius:"x5yzy4c",cursor:"x1ypdohk",height:"x10w6t97",width:"x1td3qas",marginRight:"xl010v5",marginStart:null,marginEnd:null,overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};g["default"]=a}),226);
-----
OCDevCenterFirstAccessForumPostAddCommentCard_post.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterFirstAccessForumPostAddCommentCard_post",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_viewer_employee",storageKey:null},{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};e.exports=a}),null);
-----
-----
OCDevCenterFirstAccessForumPostView_post.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterFirstAccessForumPostView_post",selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_viewer_employee",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_locked",storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevCenterFirstAccessForumPostDetailCard_post"},{args:null,kind:"FragmentSpread",name:"OCDevCenterFirstAccessForumPostCommentsCard_post"},{args:null,kind:"FragmentSpread",name:"OCDevCenterFirstAccessForumPostAddCommentCard_post"}],type:"ExternalForumPost",abstractKey:null};e.exports=a}),null);
-----
OCDevCenterFirstAccessForumPostAddCommentCard.react",["fbt","ix","GeoButton.react","GeoCard.react","GeoCardFooter.react","GeoCardHeader.react","GeoFlexbox.react","GeoSection.react","GeoTooltip.react","Image.react","OCDevCenterFirstAccessForumFileAttachmentModal.react","OCDevCenterFirstAccessForumPostAddCommentCardMutation.graphql","OCDevCenterFirstAccessForumPostAddCommentCard_post.graphql","OCDevCenterFirstAccessForumPostShared.react","OCDevCenterFirstAccessUploadFileConfig","OCDevUIForm.react","OCDevUIFormSubmitButton.react","OCDevUITextAreaWithMarkdownPreview.react","OCExternalTaskCommentInternalAction","RelayHooks","asyncToGeneratorRuntime","castToEnum","geoMargin","react","uniqueID","useOCDevUICommitMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||(l=d("react")),n=l.useState,o=i("1857187"),p=i("1622701");function a(a){a=a.post;a=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevCenterFirstAccessForumPostAddCommentCard_post.graphql"),a);var e=a.id,g=a.internal_task;a=a.is_viewer_employee;var i=n(""),l=i[0],r=i[1];i=n([]);var s=i[0],t=i[1];i=n(!1);var u=i[0],v=i[1];i=n("");var w=i[0],x=i[1];i=n(!1);var y=i[0],z=i[1];i=n(c("uniqueID")());var A=i[0],B=i[1];i=n("DEFAULT");var C=i[0];i=i[1];var D=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevCenterFirstAccessForumPostAddCommentCardMutation.graphql"));function E(){z(!0)}function F(a){z(!1),t(s.concat(a).sort(function(a,b){return((a=a.fileName)!=null?a:"")<((a=b.fileName)!=null?a:"")?-1:1}))}function G(){z(!1),t([])}function H(){return I.apply(this,arguments)}function I(){I=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;v(!0);a=(yield D({input:{attachment_ids:s.map(function(a){a=a.id;return(a=a)!=null?a:""}),comment_parent_id:null,external_post_id:(a=e)!=null?a:"",message:l,subscription_status:!0,internal_action:c("castToEnum")(C,c("OCExternalTaskCommentInternalAction"),"DEFAULT")}}));a!=null&&(r(""),B(c("uniqueID")()),t([]),v(!1))});return I.apply(this,arguments)}function J(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:q.previewWrap,children:m.jsx(c("GeoButton.react"),{icon:m.jsx(c("Image.react"),{src:e===w?p:o}),isLabelHidden:!0,label:"",tooltip:m.jsx(c("GeoTooltip.react"),{content:b}),onClick:function(){var b=[].concat(s).filter(function(b){return b.id!==a.id});t(b)},onHoverEnd:function(){x("")},onHoverStart:function(){x(e)}})},e)}J.displayName=J.name+" [from "+f.id+"]";return m.jsxs(c("OCDevUIForm.react"),{onSubmit:H,children:[m.jsx(c("GeoCard.react"),{footer:m.jsx(c("GeoCardFooter.react"),{primaryButton:m.jsx(c("OCDevUIFormSubmitButton.react"),{}),startContent:m.jsxs(c("GeoFlexbox.react"),{alignItems:"end",children:[s.map(J),m.jsx(c("GeoFlexbox.react"),{alignSelf:"stretch",grow:1}),m.jsx(d("OCDevCenterFirstAccessForumPostShared.react").OCDevCenterFirstAccessForumPostInternalActionSelector,{setValue:i,shouldDisplay:a===!0&&(g==null?void 0:g.number)!=null,value:C}),m.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").start8,children:m.jsx(c("GeoButton.react"),{isDisabled:u,isLabelHidden:!1,label:h._("Attach Files"),tooltip:m.jsx(c("GeoTooltip.react"),{content:d("OCDevCenterFirstAccessUploadFileConfig").attachmentsUploaderDescription}),onClick:E})})]})}),header:m.jsx(c("GeoCardHeader.react"),{heading:h._("Add Comment")}),children:m.jsx(c("GeoSection.react"),{children:m.jsx(c("OCDevUITextAreaWithMarkdownPreview.react"),{enabledSyntax:"complete",isLabelHidden:!0,isResizable:!1,label:h._("Comment"),placeholder:h._("Comment on this post..."),rows:3,shouldAutoGrow:!0,validateField:function(){return l.length>0?null:"Field is required"},validationKey:A,value:l,onChange:r})})}),m.jsx(c("OCDevCenterFirstAccessForumFileAttachmentModal.react"),{buttonText:"Confirm",isShown:y,onButtonClicked:F,onHide:G})]})}a.displayName=a.name+" [from "+f.id+"]";var q={previewWrap:{borderTopColor:"xe3zbwb",borderEndColor:"x1ud72sc",borderBottomColor:"xfjrsp3",borderStartColor:"x12rtjqh",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStartRadius:"x8u2fvd",borderTopEndRadius:"x1ht7hnu",borderBottomEndRadius:"x1quq95r",borderBottomStartRadius:"x5yzy4c",cursor:"x1ypdohk",height:"x10w6t97",width:"x1td3qas",marginRight:"xl010v5",marginStart:null,marginEnd:null,overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};g["default"]=a}),226);
-----
OCDevCenterFirstAccessForumPostAddCommentCard_post.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevCenterFirstAccessForumPostAddCommentCard_post",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_viewer_employee",storageKey:null},{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};e.exports=a}),null);
-----