PageSourceSearch

https://www.visit-x.net/js/build/vite/assets/PjaxWrapper-Befa7FHD.js

js visit-x.net collected 2026-10-02 04:04:12 UTC 3,419 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pjax-CPCzxYh8.js","./GlobalEventHandler-w0VIL1rJ.js"])))=>i.map(i=>d[i]);
2import{f as e,h as t,o as n,r}from"./GlobalEventHandler-w0VIL1rJ.js";import{M as i,l as a}from"./CommonUtils-DEHCHPur.js";import{t as o}from"./Flux-BCQCef60.js";var s=e({default:()=>p}),c=t(n(),1);typeof window==`object`&&(window._pjaxUnloadFuncs=[]);var l=[`head > title`],u=!1,d=!1,f=[],p={init:async e=>{let{default:t}=await r(async()=>{let{default:e}=await import(`./pjax-CPCzxYh8.js`);return{default:e}},__vite__mapDeps([0,1]),import.meta.url);if(!window._pjaxInstance){let n=(0,c.default)({},e);n.selectors=l.concat(e.selectors),n.onBeforePushState=e=>{if(e.history&&history&&history.state){let t=e.stateOptions||{},n=history.state;n.pjaxStateOptions=t,history.replaceState(n,``,window.location.href)}},n.onBeforeSend=e=>(history&&(history.scrollRestoration=`manual`,e.history&&(e.stateOptions=e.stateOptions||{},e.stateOptions.scrollTop=a())),f.reduce((t,n)=>n(e)&&t,!0));let r=new t(n);document.body.addEventListener(`vx:reload-pjax`,function(e){let t=e.detail.url,n=e.detail.origEvent,i={};n&&n.target&&(i.el=n.target),r.loadUrl(t||window.location.href,(0,c.default)(i,r.options))}),document.body.addEventListener(`vx:reload-current-pjax`,function(){r.loadUrl(window.location.href,(0,c.default)({},r.options,{history:!1}))}),document.addEventListener(`pjax:beforeUnmountElement`,function(){let e;for(;e=window._pjaxUnloadFuncs.pop();)e()}),document.addEventListener(`pjax:success`,function(e){e.history&&!d&&window.location.search.indexOf(`noscroll=`)===-1&&(document.documentElement.scrollTop=0),window.setTimeout(()=>{if(d)d=!1;else{if(!e.history){history&&history.state&&history.state.pjaxStateOptions&&history.state.pjaxStateOptions.scrollTop!==void 0&&(o.Conversion.loadPageLoadIncentives(VXConfig.routeName,VXConfig.routeArgs),document.documentElement.scrollTop=history.state.pjaxStateOptions.scrollTop);return}let t=e.el&&e.el.dataset.pjaxScrollto,n=t?document.querySelector(`#pjax-scrollto-`+t):null,r=0;u&&=(n=document.querySelector(`#pjax-scrollto-top`),!1),!n&&(window.location.search.indexOf(`page=`)>-1||window.location.search.indexOf(`sort=`)>-1)&&(n=document.querySelector(`#pjax-scrollto-pagination`)),!n&&window.location.search.indexOf(`noscroll=`)===-1&&(n=document.querySelector(`#pjax-scrollto-view`)),!n&&window.location.search.indexOf(`noscroll=`)===-1&&(n=document.querySelector(`#pjax-scrollto`),r=35),n&&(document.documentElement.scrollTop=i(n)-r)}o.Conversion.loadPageLoadIncentives(VXConfig.routeName,VXConfig.routeArgs)},200)}),document.addEventListener(`pjax:error`,t=>{typeof e.onError==`function`&&e.onError(t)}),window._pjaxInstance=r}},resetFirstRun:()=>{window._pjaxInstance&&(window._pjaxInstance.firstrun=!0)},addUnloadFunc:e=>{e&&window._pjaxUnloadFuncs.push(e)},reload:(e,t)=>{window._pjaxInstance&&document.body?document.body.dispatchEvent(new CustomEvent(`vx:reload-pjax`,{detail:{url:e,origEvent:t}})):e?window.location.href=e:window.location.reload()},reloadCurrentPage:()=>{window._pjaxInstance&&document.body?document.body.dispatchEvent(new CustomEvent(`vx:reload-current-pjax`)):window.location.reload()},setTemporaryScrollToTop(){u=!0},setIgnoreNextPjaxScroll(){d=!0},addOnBeforeSendCallback(e){f.push(e)},removeOnBeforeSendCallback(e){f=f.filter(t=>t!==e)}};export{s as n,p as t};
3//# sourceMappingURL=PjaxWrapper-Befa7FHD.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.