Panov's theorem for weak Hopf algebras