let player,$wrapper;import{addChapterControl}from"./chapters";export default function(e){"undefined"!=typeof jQuery&&(player=e,$wrapper=jQuery(player.elements.container).closest(".presto-player__wrapper"),player.on("ready",addChapterControl),player.on("controlshidden",addParentClass),player.on("controlsshown",removeParentClass))}export function addParentClass(e){"undefined"!=typeof jQuery&&jQuery(e?.detail?.plyr?.elements?.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}export function removeParentClass(e){"undefined"!=typeof jQuery&&jQuery(e?.detail?.plyr?.elements?.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}