import{V as a,R as i,F as o,y as s,P as t}from"./index-Flm6m8Wj.js";const e=async(e,n,c=!1)=>{let l;const r=String(a(i.Publish));l=await o.isValidAction({goTo:r,modalOpen:"LOGIN_FORM"}),l&&(e.clear(),c&&e.onClickReview(),setTimeout((()=>{n&&e.directNavigation(n),s.location.pathname!==r&&s.push(r),t()}),400))};export{e as P};