OCDevManageApplicationPostsCommentsContentSetCommentingMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XOCDeveloperPostSetCommentingEnabledResponsePayload",kind:"LinkedField",name:"xoc_developer_post_set_commenting_enabled",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevManageApplicationPostsCommentsContentSetCommentingMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevManageApplicationPostsCommentsContentSetCommentingMutation",selections:b},params:{id:"24080858081596399",metadata:{},name:"OCDevManageApplicationPostsCommentsContentSetCommentingMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
OCDevManageApplicationPostsCommentsContent.react",["fbt","ix","GeoButton.react","GeoDivider.react","GeoDropdownMenu.react","GeoFlexbox.react","GeoGrid.react","GeoHeading.react","GeoMenuItem.react","GeoSection.react","GeoSpinner.react","GeoStatusIcon.react","GeoText.react","Image.react","OCDevManageApplicationPostRoute","OCDevManageApplicationPostsComment.react","OCDevManageApplicationPostsCommentsContentSetCommentingMutation.graphql","OCDevManageApplicationPostsCommentsContent_post.graphql","OCDevPostExpansibleMarkdownRenderer.react","RelayHooks","asyncToGeneratorRuntime","fbicon","geoMargin","react","useOCDevManageRouteParams","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;function a(a){var e,g,l,p;a=a.post;var q=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageApplicationPostsCommentsContent_post.graphql"),a);a=n((a=q==null?void 0:q.is_commenting_enabled)!=null?a:!0);var r=a[0],s=a[1];a=n(!1);var t=a[0],u=a[1];a=c("useOCDevManageRouteParams")();a=a.applicationID;var v=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevManageApplicationPostsCommentsContentSetCommentingMutation.graphql"));function w(a){return x.apply(this,arguments)}function x(){x=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=q==null?void 0:q.id;if(b==null)return;u(!0);yield v({input:{post_id:b,is_commenting_enabled:a}});u(!1);s(a)});return x.apply(this,arguments)}var y=(e=q==null||(g=q.comments)==null?void 0:g.__id)!=null?e:"";e=q==null||(l=q.comments)==null||(l=l.edges)==null?void 0:l.map(function(a){a=a.node;return a}).filter(Boolean).map(function(a){return m.jsx(c("OCDevManageApplicationPostsComment.react"),{comment:a,connectionID:y,isCommentingDisabled:!r,organization:q==null?void 0:q.organization},a.id)});return m.jsxs(c("GeoGrid.react"),{children:[m.jsx(c("GeoDivider.react"),{xstyle:c("geoMargin").top0}),m.jsxs(c("GeoSection.react"),{children:[m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",justifyContent:"space-between",xstyle:c("geoMargin").bottom16,children:[m.jsx(c("GeoHeading.react"),{level:1,children:h._(/*BTDS*/"Preview")}),m.jsx(c("GeoButton.react"),{href:c("OCDevManageApplicationPostRoute").getURI({applicationID:a,postID:(a=q.id)!=null?a:""}),icon:d("fbicon")._(i("477825"),16),isLabelHidden:!0,label:h._(/*BTDS*/"Edit Post"),variant:"default"})]}),m.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[((a=q.tile_landscape_image)==null?void 0:a.uri)!=null&&m.jsx(c("Image.react"),{src:q.tile_landscape_image.uri,width:"100%"}),q.body_text_with_markdown!=null&&m.jsx(c("OCDevPostExpansibleMarkdownRenderer.react"),{markdown:q.body_text_with_markdown})]})]}),m.jsx(c("GeoSection.react"),{children:m.jsxs(c("GeoFlexbox.react"),{direction:"row",justifyContent:"space-between",children:[m.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").horiz16,children:h._(/*BTDS*/"Comments ({Comment count})",[h._param("Comment count",q==null||(p=q.comments)==null?void 0:p.count)])}),t?m.jsx(c("GeoSpinner.react"),{size:"small",loggingName:f.id}):m.jsx(c("GeoDropdownMenu.react"),{isLabelHidden:!0,label:h._(/*BTDS*/"Comment actions"),useEllipsisIcon:!0,children:m.jsx(c("GeoMenuItem.react"),{description:r?h._(/*BTDS*/"Comments are currently enabled for this post"):h._(/*BTDS*/"Comments are currently disabled for this post"),icon:r?d("fbicon")._(i("969195"),16):d("fbicon")._(i("508557"),16),label:r?h._(/*BTDS*/"Close commenting"):h._(/*BTDS*/"Turn on commenting"),onClick:function(){return w(!r)}})})]})}),!r&&m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",xstyle:[c("geoMargin").all16,o.infoBox],children:[m.jsx(c("GeoStatusIcon.react"),{status:"recommendation"}),m.jsx(c("GeoText.react"),{xstyle:c("geoMargin").start12,children:h._(/*BTDS*/"Commenting has been disabled for this post. All past comments have been hidden.")})]}),e]})}a.displayName=a.name+" [from "+f.id+"]";var o={infoBox:{backgroundColor:"xdu83i5",borderStartStartRadius:"x1obq294",borderStartEndRadius:"x5a5i1n",borderEndEndRadius:"xde0f50",borderEndStartRadius:"x15x8krk",paddingTop:"xz9dl7a",paddingInlineEnd:"xpdmqnj",paddingBottom:"xsag5q8",paddingInlineStart:"x1g0dm76",$$css:!0}};g["default"]=a}),226);
-----
-----
OCDevManageApplicationPostsCommentsContent.react",["fbt","ix","GeoButton.react","GeoDivider.react","GeoDropdownMenu.react","GeoFlexbox.react","GeoGrid.react","GeoHeading.react","GeoMenuItem.react","GeoSection.react","GeoSpinner.react","GeoStatusIcon.react","GeoText.react","Image.react","OCDevManageApplicationPostRoute","OCDevManageApplicationPostsComment.react","OCDevManageApplicationPostsCommentsContentSetCommentingMutation.graphql","OCDevManageApplicationPostsCommentsContent_post.graphql","OCDevPostExpansibleMarkdownRenderer.react","RelayHooks","asyncToGeneratorRuntime","fbicon","geoMargin","react","useOCDevManageRouteParams","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;function a(a){var e,g,l,p;a=a.post;var q=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageApplicationPostsCommentsContent_post.graphql"),a);a=n((a=q==null?void 0:q.is_commenting_enabled)!=null?a:!0);var r=a[0],s=a[1];a=n(!1);var t=a[0],u=a[1];a=c("useOCDevManageRouteParams")();a=a.applicationID;var v=c("useOCDevUICommitMutation")(k!==void 0?k:k=b("OCDevManageApplicationPostsCommentsContentSetCommentingMutation.graphql"));function w(a){return x.apply(this,arguments)}function x(){x=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=q==null?void 0:q.id;if(b==null)return;u(!0);yield v({input:{post_id:b,is_commenting_enabled:a}});u(!1);s(a)});return x.apply(this,arguments)}var y=(e=q==null||(g=q.comments)==null?void 0:g.__id)!=null?e:"";e=q==null||(l=q.comments)==null||(l=l.edges)==null?void 0:l.map(function(a){a=a.node;return a}).filter(Boolean).map(function(a){return m.jsx(c("OCDevManageApplicationPostsComment.react"),{comment:a,connectionID:y,isCommentingDisabled:!r,organization:q==null?void 0:q.organization},a.id)});return m.jsxs(c("GeoGrid.react"),{children:[m.jsx(c("GeoDivider.react"),{xstyle:c("geoMargin").top0}),m.jsxs(c("GeoSection.react"),{children:[m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",justifyContent:"space-between",xstyle:c("geoMargin").bottom16,children:[m.jsx(c("GeoHeading.react"),{level:1,children:h._(/*BTDS*/"Preview")}),m.jsx(c("GeoButton.react"),{href:c("OCDevManageApplicationPostRoute").getURI({applicationID:a,postID:(a=q.id)!=null?a:""}),icon:d("fbicon")._(i("477825"),16),isLabelHidden:!0,label:h._(/*BTDS*/"Edit Post"),variant:"default"})]}),m.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[((a=q.tile_landscape_image)==null?void 0:a.uri)!=null&&m.jsx(c("Image.react"),{src:q.tile_landscape_image.uri,width:"100%"}),q.body_text_with_markdown!=null&&m.jsx(c("OCDevPostExpansibleMarkdownRenderer.react"),{markdown:q.body_text_with_markdown})]})]}),m.jsx(c("GeoSection.react"),{children:m.jsxs(c("GeoFlexbox.react"),{direction:"row",justifyContent:"space-between",children:[m.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").horiz16,children:h._(/*BTDS*/"Comments ({Comment count})",[h._param("Comment count",q==null||(p=q.comments)==null?void 0:p.count)])}),t?m.jsx(c("GeoSpinner.react"),{size:"small",loggingName:f.id}):m.jsx(c("GeoDropdownMenu.react"),{isLabelHidden:!0,label:h._(/*BTDS*/"Comment actions"),useEllipsisIcon:!0,children:m.jsx(c("GeoMenuItem.react"),{description:r?h._(/*BTDS*/"Comments are currently enabled for this post"):h._(/*BTDS*/"Comments are currently disabled for this post"),icon:r?d("fbicon")._(i("969195"),16):d("fbicon")._(i("508557"),16),label:r?h._(/*BTDS*/"Close commenting"):h._(/*BTDS*/"Turn on commenting"),onClick:function(){return w(!r)}})})]})}),!r&&m.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",xstyle:[c("geoMargin").all16,o.infoBox],children:[m.jsx(c("GeoStatusIcon.react"),{status:"recommendation"}),m.jsx(c("GeoText.react"),{xstyle:c("geoMargin").start12,children:h._(/*BTDS*/"Commenting has been disabled for this post. All past comments have been hidden.")})]}),e]})}a.displayName=a.name+" [from "+f.id+"]";var o={infoBox:{backgroundColor:"xdu83i5",borderStartStartRadius:"x1obq294",borderStartEndRadius:"x5a5i1n",borderEndEndRadius:"xde0f50",borderEndStartRadius:"x15x8krk",paddingTop:"xz9dl7a",paddingInlineEnd:"xpdmqnj",paddingBottom:"xsag5q8",paddingInlineStart:"x1g0dm76",$$css:!0}};g["default"]=a}),226);
-----