function showHideArrow(gtourWrapper,isHidden){const arrowElement=gtourWrapper.querySelector("[data-popper-arrow]");arrowElement!==undefined&&arrowElement!==null&&(isHidden?arrowElement.classList.add("force-hide"):arrowElement.classList.remove("force-hide"))}export function SetTourStepPopperByElement(forElement,gtourWrapper,placement,strategy){popperInstance!==null&&popperInstance.destroy();forElement!==null&&(showHideArrow(gtourWrapper,!1),popperInstance=Popper.createPopper(forElement,gtourWrapper,{placement:placement,strategy:strategy}))}export function SetTourStepPopperBySelector(forElementSelector,gtourWrapper,placement,strategy){const forElement=document.querySelector(forElementSelector);forElement!==undefined&&forElement!==null&&SetTourStepPopperByElement(forElement,gtourWrapper,placement,strategy)}export function ResetTourStepPopper(gtourWrapper,placement,strategy){showHideArrow(gtourWrapper,!0);SetTourStepPopperByElement(null,gtourWrapper,placement,strategy)}import"./vendor.min.js";var popperInstance=null;