modules.getRenderedIndexes=function(v)return function()local C={}for H=-(2*#v.props.images+v.state.offset),2*#v.props.images+v.state.offset,1 do local N=v.state.selectedIndex+H N=((N+#v.props.images)-1)%#v.props.images+1 table.insert(C,N)end return C end end

modules.getRenderedIndexes = function(self)
	return function()
		local res = {}
		for i = -(2 * #self.props.images + self.state.offset), (2 * #self.props.images + self.state.offset) do
			local index = self.state.selectedIndex + i

			-- NOTE: Really dislike this modulo pattern for circular indexes.
			-- Taken from: https://stackoverflow.com/questions/52103713/alternative-to-modulus-in-lua
			index = (index + #self.props.images - 1) % #self.props.images + 1

			table.insert(res, index)
		end

		return res
	end
end
