import{a as y}from"./chunk-6RRU5S4N.mjs";import{a as b}from"./chunk-ZUKH7P2U.mjs";import{a as p}from"./chunk-NCSLLKDC.mjs";import{a as f}from"./chunk-WQWQCATJ.mjs";import{a as l}from"./chunk-66PCFZQY.mjs";import{useEffect as L,useRef as x}from"react";import{useFragment as _}from"react-relay";import{jsx as d,jsxs as $}from"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?y:a,j=e.CommentsListProps,c=e.CommentCreate,O=c===void 0?b:c,P=e.CommentCreateProps,s=e.onCommentCreateFocus,w=l(),S=w.resetCommentReply,i=x(null),u=_(f,r),h=typeof m=="boolean"?m:!0,E=function(){i.current&&(i.current.focus({preventScroll:!0}),s?.(i.current))};return L(function(){return function(){S()}},[]),u.isCommentsEnabled?$("div",{className:"grid",children:[d(g,v({target:u,subscriptionsEnabled:h,onReplyClick:E},j)),d(O,v({ref:i,targetObjectId:u.id},P))]}):null},z=p(k);export{z as a};
//# sourceMappingURL=chunk-XY52CVST.mjs.map