PageSourceSearch

https://www.summitbunbury.com.au/wp-content/plugins/agentpoint-rea…/view.min.js?ver=9a36f215f2871c13

js summitbunbury.com.au collected 2026-10-09 00:23:33 UTC 2,900 bytes, 1 lines download raw bytes

1import{store,getContext,getElement}from"@wordpress/interactivity";import{createLoadMoreAction,createInfiniteScrollCallback}from"../utils/interactivity-helpers.min.js";import{initHoverVideoPlayback}from"../utils/hover-video.min.js";const videoStates=new WeakMap,videoOriginals=new WeakMap;function getVideoState(e){var t;return null!==(t=videoStates.get(e))&&void 0!==t?t:"thumbnail"}function renderVideoState(e,t){var i;if(videoStates.set(e,t),"thumbnail"===t){const t=videoOriginals.get(e);return void(void 0!==t&&(e.innerHTML=t))}const o="hover"===t?e.getAttribute("data-video-src"):e.getAttribute("data-video-active-src");if(!o)return;const a=document.createElement("iframe");a.className="apblock-agent__figure__video",a.src=o,a.title=null!==(i=e.getAttribute("data-video-title"))&&void 0!==i?i:"",a.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"),a.setAttribute("referrerpolicy","strict-origin-when-cross-origin"),a.allowFullscreen=!0,e.innerHTML="",e.appendChild(a)}function saveOriginal(e){videoOriginals.has(e)||videoOriginals.set(e,e.innerHTML)}function initVideoPreviewHandlers(){document.addEventListener("mouseenter",e=>{var t,i;const o=null===(i=(t=e.target).closest)||void 0===i?void 0:i.call(t,'[data-thumb-type="video"]');o&&"thumbnail"===getVideoState(o)&&(saveOriginal(o),renderVideoState(o,"hover"))},!0),document.addEventListener("mouseleave",e=>{var t,i;const o=null===(i=(t=e.target).closest)||void 0===i?void 0:i.call(t,'[data-thumb-type="video"]');o&&"hover"===getVideoState(o)&&renderVideoState(o,"thumbnail")},!0),document.addEventListener("click",e=>{var t,i;const o=null===(i=(t=e.target).closest)||void 0===i?void 0:i.call(t,'[data-thumb-type="video"]');o&&"active"!==getVideoState(o)&&(saveOriginal(o),renderVideoState(o,"active"))})}const AGENT_FIGURE_SELECTOR=".apblock-agent__figure--thumb-hover-video",AGENT_CONTAINER_SELECTOR=".apblock-agent__figure__video--hover",loadMoreAgents=createLoadMoreAction({gridSelector:".apblock-agent__content",restEndpoint:"/wp-json/applus/v1/agents/render"});store("aprealty-agents-page-block",{state:{get isLoadingMore(){var e;return null!==(e=getContext().isLoadingMore)&&void 0!==e&&e},get displayedCount(){var e,t,i;const o=getContext(),a=null!==(e=o.perPage)&&void 0!==e?e:0,n=null!==(t=o.currentPage)&&void 0!==t?t:1,r=null!==(i=o.totalProperties)&&void 0!==i?i:n*a;if(a<=0)return 0;const l=n*a;return Math.min(l,r)},get totalCount(){var e;return null!==(e=getContext().totalProperties)&&void 0!==e?e:0}},actions:{loadMore:async()=>{const e=getContext();await loadMoreAgents(e)}},callbacks:{initAgentsPage(){document.body.classList.add("ap_agents-page-block"),initVideoPreviewHandlers(),initHoverVideoPlayback(AGENT_FIGURE_SELECTOR,AGENT_CONTAINER_SELECTOR)},initInfiniteScroll(){createInfiniteScrollCallback(loadMoreAgents)(getElement,getContext)}}});

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.