{"version":3,"file":"floatingDateSlot.mjs","names":[],"sources":["../../../../../src/components/MessageList/hooks/floatingDateSlot.ts"],"sourcesContent":["export const INLINE_DATE_SEPARATOR_SELECTOR =\n  '.str-chat__date-separator:not(.str-chat__date-separator--floating)';\n\n/**\n * Inline separators inside the items Virtuoso rendered within the queried scroller. Content outside\n * the items, such as the thread's parent message in the list header, stays mounted while the items\n * around it scroll away.\n */\nexport const VIRTUALIZED_ITEM_DATE_SEPARATOR_SELECTOR = `:scope [data-item-index] ${INLINE_DATE_SEPARATOR_SELECTOR}`;\n\n/** How often the floating date separator re-measures the list while it scrolls or resizes. */\nexport const FLOATING_DATE_MEASURE_THROTTLE_MS = 100;\n\n/**\n * The inline separator overlaps the band at the top of the list where the floating separator is\n * drawn. The band is taken to be as tall as the inline separator, as both render `DateSeparator`.\n */\nexport const overlapsFloatingSlot = (separatorRect: DOMRect, listTop: number) =>\n  separatorRect.bottom > listTop && separatorRect.top < listTop + separatorRect.height;\n"],"mappings":";AAAA,IAAa,iCACX;;;;;;AAOF,IAAa,2CAA2C,4BAA4B;;;;;AASpF,IAAa,wBAAwB,eAAwB,YAC3D,cAAc,SAAS,WAAW,cAAc,MAAM,UAAU,cAAc"}