{"version":3,"sources":["../ui/src/components/player-components/comments/commentsPopover.tsx"],"sourcesContent":["import { conditions } from \"helpers\";\r\nimport { ConditionName, ICommentPopoverProps } from \"interfaces\";\r\nimport { useAppSelector } from \"redux-share/hooks\";\r\nimport Popover from \"../popover/popover\";\r\nimport { shallowEqual } from 'react-redux'\r\nimport dynamic from \"next/dynamic\";\r\n\r\nconst CommentContentPopover = dynamic(() => import(\"./commentContentPopover\"));\r\n\r\nconst CommentsPopover = ({ status, onClose, setScrollEnd }: ICommentPopoverProps) => {\r\n\r\n    const { params } = useAppSelector(({ videoData: { params, isComplexPortrait } }) => ({ params, isComplexPortrait }), shallowEqual);\r\n    \r\n     return (\r\n        <Popover\r\n            status={status}\r\n            onClose={onClose}\r\n            styles={{ width: \"100%\" }}\r\n            isFullHeight={conditions(ConditionName.isComplexPortrait)}\r\n            isHeader={conditions(ConditionName.isComplexPortrait)}\r\n            headerTitle={conditions(ConditionName.isComplexPortrait) ? \"دیدگاه ها\" : \"\"}\r\n            type={conditions(ConditionName.isComplexPortrait) ? \"popover\" : \"modal\"}\r\n            isHasCatchUpLineOnTop={conditions(ConditionName.isComplexPortrait)}\r\n            classNames={`${conditions(ConditionName.isComplexPortrait) && params.theme === \"light\" ? \"!pl-bg-white\" : \"!pl-bg-black/[0.7]\"}`}\r\n        >\r\n             {status ? <CommentContentPopover setScrollEnd={setScrollEnd} /> : <></>}\r\n        </Popover>\r\n    )\r\n}\r\n\r\nexport default CommentsPopover;"],"mappings":"4LAAAA,IAIA,OAAS,gBAAAC,MAAoB,cAC7B,OAAOC,MAAa,eAoBG,OAAwD,YAAAC,EAAxD,OAAAC,MAAA,oBAlBvB,IAAMC,EAAwBH,EAAQ,IAAM,OAAO,sCAAyB,CAAC,EAEvEI,EAAkB,CAAC,CAAE,OAAAC,EAAQ,QAAAC,EAAS,aAAAC,CAAa,IAA4B,CAEjF,GAAM,CAAE,OAAAC,CAAO,EAAIC,EAAe,CAAC,CAAE,UAAW,CAAE,OAAAD,EAAQ,kBAAAE,CAAkB,CAAE,KAAO,CAAE,OAAAF,EAAQ,kBAAAE,CAAkB,GAAIX,CAAY,EAEhI,OACGG,EAACS,EAAA,CACG,OAAQN,EACR,QAASC,EACT,OAAQ,CAAE,MAAO,MAAO,EACxB,aAAcM,qBAA0C,EACxD,SAAUA,qBAA0C,EACpD,YAAaA,qBAA0C,EAAI,oDAAc,GACzE,KAAMA,qBAA0C,EAAI,UAAY,QAChE,sBAAuBA,qBAA0C,EACjE,WAAY,GAAGA,qBAA0C,GAAKJ,EAAO,QAAU,QAAU,eAAiB,oBAAoB,GAE5H,SAAAH,EAASH,EAACC,EAAA,CAAsB,aAAcI,EAAc,EAAKL,EAAAD,EAAA,EAAE,EACzE,CAER,EAEOY,EAAQT","names":["init_esm_shims","shallowEqual","dynamic","Fragment","jsx","CommentContentPopover","CommentsPopover","status","onClose","setScrollEnd","params","useAppSelector","isComplexPortrait","popover_default","conditions","commentsPopover_default"]}