PageSourceSearch

https://thewest.com.au/static/js/Shortstack_9880e4c5b86f41d4af59.js

js thewest.com.au collected 2026-10-01 08:57:43 UTC 2,117 bytes, 3 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6877],{21119:(function(C,l,t){t.r(l),t.d(l,{processEmbedParams:function(){return E}});var O=t(42305),m=t(91436),L=t(84539),D=t(28741),n=t(14041),P=t(50202),R=t(72307);const M="/embed";function u(e){return e.indexOf(M)===-1?`${e}`:e}function E(e){const o=new URL(e),c=o.searchParams.get("embedScriptUrl"),r=o.searchParams.get("embedId");if(c&&r)return{embedId:r,scriptUrl:c}}function b(e){return e.origin.indexOf("shortstack")>=0&&e.data&&e.data.originator==="shortstack"}const g=({link:e})=>{const o=E(e),c=o?.scriptUrl,r=o?.embedId,h=o?`${u(e)}&`:`${u(e)}?`,p=o!==void 0,[A]=(0,L.v)({consentRequiredLevel:m.Rg.Essential|m.Rg.Analytics,consentMet:{src:c||""}}),s=n.useRef(null),i=n.useMemo(()=>[],[]),d=n.useMemo(()=>[],[]),v=n.useCallback(a=>{function f(){setTimeout(()=>{s.current&&window.scrollTo({top:s.current.getBoundingClientRect().top+window.pageYOffset,behavior:"smooth"})},0)}if(!b(a)||!s.current)return;const _=i[i.length-1];_&&["success.form","success.invite","success.vote"].indexOf(_.data.name)>=0&&a.data.name==="changed.content"&&f(),i.push(a)},[s,i]);return n.useEffect(()=>{if(s.current){const a=(0,D.iframeResizer)({},s.current);d.push(...a.map(f=>f.iFrameResizer)),addEventListener("message",v)}return()=>{removeEventListener("message",v),d&&d.forEach(a=>a.close())}},[s,i]),(0,O.v)({consentRequiredLevel:m.Rg.Analytics|m.Rg.Advertising})?p?n.createElement("div",{"data-stck-id":r,"data-stck-src":`${h}embed=4&script=1`,"data-stck-style":"border:none;width:100%;height:100%;"}):n.createElement(P.v,{link:`${h}embed=1&v_offset=0&autoscroll_p=1`,innerRef:s,height:"auto",marginBottom:"md",allow:"autoplay",sandbox:"allow-modals allow-forms allow-scripts allow-same-origin allow-popups allow-top-navigation allow-top-navigation-by-user-activation allow-downloads allow-popups-to-escape-sandbox",allowFullScreen:!0,"data-hj-allow-iframe":!0,id:r||void 0,className:"embed_frame"}):n.createElement(R.V,null)};l.default=g,t.d(l,["Shortstack",0,g])})}]);
2
3//# sourceMappingURL=Shortstack_9880e4c5b86f41d4af59.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.