{"version":3,"sources":["../ui/src/components/player-components/comments/touchScreenCommentObserver.tsx"],"sourcesContent":["import { ITouchScreenCommentObserverProps } from \"interfaces\";\r\nimport useIntersect from \"../../../../../helpers/hooks/useIntersect\";\r\nimport store from \"../../../../../redux/store\";\r\n\r\nconst TouchScreenCommentObserver = ({ setScrollEnd }: ITouchScreenCommentObserverProps) => {\r\n\r\n    const handleIntersect = ([entry]: IntersectionObserverEntry[]) => {\r\n        const { comments, commentsCountPagination } = store.getState().comments\r\n        if (entry.isIntersecting && comments.length !== commentsCountPagination) setScrollEnd(true);\r\n    };\r\n    const observerRef = useIntersect(handleIntersect);\r\n\r\n    return <div id=\"observer\" className=\"pl-bg-transparent pl-pt-5\" ref={observerRef} />\r\n\r\n}\r\n\r\nexport default TouchScreenCommentObserver;"],"mappings":"sFAAAA,IAYW,cAAAC,MAAA,oBARX,IAAMC,EAA6B,CAAC,CAAE,aAAAC,CAAa,IAAwC,CAMvF,IAAMC,EAAcC,EAJI,CAAC,CAACC,CAAK,IAAmC,CAC9D,GAAM,CAAE,SAAAC,EAAU,wBAAAC,CAAwB,EAAIC,EAAM,SAAS,EAAE,SAC3DH,EAAM,gBAAkBC,EAAS,SAAWC,GAAyBL,EAAa,EAAI,CAC9F,CACgD,EAEhD,OAAOF,EAAC,OAAI,GAAG,WAAW,UAAU,4BAA4B,IAAKG,EAAa,CAEtF,EAEOM,EAAQR","names":["init_esm_shims","jsx","TouchScreenCommentObserver","setScrollEnd","observerRef","useIntersect_default","entry","comments","commentsCountPagination","store_default","touchScreenCommentObserver_default"]}