"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk5LXTKYISjs = require('./chunk-5LXTKYIS.js');var _chunk73UWZSQDjs = require('./chunk-73UWZSQD.js');var _chunk6CUG5GRXjs = require('./chunk-6CUG5GRX.js');var _chunkTJ65TCJ6js = require('./chunk-TJ65TCJ6.js');var _chunkOUOR52IRjs = require('./chunk-OUOR52IR.js');var _react = require('react');var _reactrelay = require('react-relay');var _jsxruntime = require('react/jsx-runtime');function n(t){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}function C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(m){return Object.getOwnPropertyDescriptor(t,m).enumerable})),r.push.apply(r,o)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?C(Object(r),!0).forEach(function(o){R(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function R(t,e,r){return(e=D(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function D(t){var e=F(t,"string");return n(e)=="symbol"?e:e+""}function F(t,e){if(n(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var k=function(e){var r=e.target,o=e.subscriptionsEnabled,m=o===void 0?!0:o,a=e.CommentsList,g=a===void 0?_chunk5LXTKYISjs.a:a,j=e.CommentsListProps,c=e.CommentCreate,O=c===void 0?_chunk73UWZSQDjs.a:c,P=e.CommentCreateProps,s=e.onCommentCreateFocus,w=_chunkOUOR52IRjs.a.call(void 0, ),S=w.resetCommentReply,i=_react.useRef.call(void 0, null),u=_reactrelay.useFragment.call(void 0, _chunkTJ65TCJ6js.a,r),h=typeof m=="boolean"?m:!0,E=function(){i.current&&(i.current.focus({preventScroll:!0}),_optionalChain([s, 'optionalCall', _2 => _2(i.current)]))};return _react.useEffect.call(void 0, function(){return function(){S()}},[]),u.isCommentsEnabled?_jsxruntime.jsxs.call(void 0, "div",{className:"grid",children:[_jsxruntime.jsx.call(void 0, g,v({target:u,subscriptionsEnabled:h,onReplyClick:E},j)),_jsxruntime.jsx.call(void 0, O,v({ref:i,targetObjectId:u.id},P))]}):null},z= exports.a =_chunk6CUG5GRXjs.a.call(void 0, k);exports.a = z;
//# sourceMappingURL=chunk-JCBYWB4W.js.map