{"version":3,"sources":["../ui/src/components/player-components/comments/singleReply.tsx"],"sourcesContent":["import Image from \"next/image\";\r\nimport LikeComment from \"./likeComment\";\r\nimport { ISingleReplyProps } from \"interfaces\";\r\nimport { getRemainingTime } from \"helpers\";\r\nimport dynamic from \"next/dynamic\";\r\n\r\nconst EmptyProfileIcon = dynamic(() => import(\"../../icon-components/emptyProfile\"));\r\n\r\nconst SingleReply = ({ reply, usersRepliesProfiles, commentsLocalStorageIds }: ISingleReplyProps) => {\r\n\r\n    const user = usersRepliesProfiles.find((user:any) => user.id === reply.author);\r\n\r\n    return (\r\n        <div className=\"pl-w-full pl-pr-4 pl-pt-4\">\r\n            <div className=\"pl-flex pl-justify-between pl-items-center pl-w-full\">\r\n                <div className=\"pl-flex pl-items-center pl-gap-1 pl-text-[11px] pl-font-normal\">\r\n                    {user && Object.keys(user.profile).length > 0 && user.profile.avatar_url ? <Image src={user.profile.avatar_url} width={24} height={24} alt=\"user-profile\" className=\"pl-rounded-full\" /> : <EmptyProfileIcon />}\r\n                    <p className=\"pl-text-main-highLight\">{user && Object.keys(user.profile).length > 0 && user.profile.name ? user.profile.name : \"کاربر ناشناس\"} .</p>\r\n                    <span className=\"pl-text-z-gray-400\">{getRemainingTime(reply.created_at)}</span>\r\n                </div>\r\n                <LikeComment commentId={reply.id} likesCount={reply.like} isIdInLocalStorage={!!commentsLocalStorageIds && commentsLocalStorageIds.includes(reply.id)}/>\r\n            </div>\r\n            <p className=\"pl-text-[13px] pl-font-normal pl-leading-[22px] pl-mb-1 pl-text-z-gray-700 dark:pl-text-secondary-50\">{reply.text}</p>\r\n        </div>\r\n    )\r\n}\r\n\r\nexport default SingleReply;"],"mappings":"qLAAAA,IAAA,OAAOC,MAAW,aAIlB,OAAOC,MAAa,eAY2E,cAAAC,EAC3E,QAAAC,MAD2E,oBAV/F,IAAMC,EAAmBH,EAAQ,IAAM,OAAO,6BAAoC,CAAC,EAE7EI,EAAc,CAAC,CAAE,MAAAC,EAAO,qBAAAC,EAAsB,wBAAAC,CAAwB,IAAyB,CAEjG,IAAMC,EAAOF,EAAqB,KAAME,GAAaA,EAAK,KAAOH,EAAM,MAAM,EAE7E,OACIH,EAAC,OAAI,UAAU,4BACX,UAAAA,EAAC,OAAI,UAAU,uDACX,UAAAA,EAAC,OAAI,UAAU,iEACV,UAAAM,GAAQ,OAAO,KAAKA,EAAK,OAAO,EAAE,OAAS,GAAKA,EAAK,QAAQ,WAAaP,EAACQ,EAAA,CAAM,IAAKD,EAAK,QAAQ,WAAY,MAAO,GAAI,OAAQ,GAAI,IAAI,eAAe,UAAU,kBAAkB,EAAKP,EAACE,EAAA,EAAiB,EAC7MD,EAAC,KAAE,UAAU,yBAA0B,UAAAM,GAAQ,OAAO,KAAKA,EAAK,OAAO,EAAE,OAAS,GAAKA,EAAK,QAAQ,KAAOA,EAAK,QAAQ,KAAO,sEAAe,MAAE,EAChJP,EAAC,QAAK,UAAU,qBAAsB,SAAAS,EAAiBL,EAAM,UAAU,EAAE,GAC7E,EACAJ,EAACU,EAAA,CAAY,UAAWN,EAAM,GAAI,WAAYA,EAAM,KAAM,mBAAoB,CAAC,CAACE,GAA2BA,EAAwB,SAASF,EAAM,EAAE,EAAE,GAC1J,EACAJ,EAAC,KAAE,UAAU,uGAAwG,SAAAI,EAAM,KAAK,GACpI,CAER,EAEOO,EAAQR","names":["init_esm_shims","Image","dynamic","jsx","jsxs","EmptyProfileIcon","SingleReply","reply","usersRepliesProfiles","commentsLocalStorageIds","user","Image","getRemainingTime","likeComment_default","singleReply_default"]}