PageSourceSearch

https://www.womensweeklyfood.com.au/wp-content/themes/express/build/js/ads.js?ver=440361a2ac78e22a11ff

js womensweeklyfood.com.au collected 2026-09-24 21:59:05 UTC 12,546 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e={};const t={};function i(n){const s=t[n];if(void 0!==s)return s.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.m=e,i.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var s=t[n++],o=t[n++];i.o(e,s)?0===o&&n++:0===o?Object.defineProperty(e,s,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,s,{enumerable:!0,get:o})}else for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,n)=>(i.f[n](e,t),t),[])),i.u=e=>"js/chunk.85dfc2ba03c01c27a99d.native-ad-loader.js",i.miniCssF=e=>{},i.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={},t="@xwp/express:";i.l=(n,s,o,d)=>{if(e[n])return void e[n].push(s);let r,a;if(void 0!==o){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const i=e[l];if(i.getAttribute("src")==n||i.getAttribute("data-webpack")==t+o){r=i;break}}}r||(a=!0,r=document.createElement("script"),r.charset="utf-8",i.nc&&r.setAttribute("nonce",i.nc),r.setAttribute("data-webpack",t+o),r.src=n),e[n]=[s];const c=(t,i)=>{r.onerror=r.onload=null,clearTimeout(u);const s=e[n];if(delete e[n],r.parentNode?.removeChild(r),s?.forEach(e=>e(i)),t)return t(i)},u=setTimeout(c.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=c.bind(null,r.onerror),r.onload=c.bind(null,r.onload),a&&document.head.appendChild(r)}})(),(()=>{let e;globalThis.importScripts&&(e=globalThis.location+"");const t=globalThis.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const i=t.getElementsByTagName("script");if(i.length){let t=i.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=i[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e+"../"})(),(()=>{const e={633:0};i.f.j=(t,n)=>{let s=i.o(e,t)?e[t]:void 0;if(0!==s)if(s)n.push(s[2]);else{const o=new Promise((i,n)=>s=e[t]=[i,n]);n.push(s[2]=o);const d=i.p+i.u(t),r=new Error,a=n=>{if(i.o(e,t)&&(s=e[t],0!==s&&(e[t]=void 0),s)){const e=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;r.message="Loading chunk "+t+" failed.\n("+e+": "+i+")",r.name="ChunkLoadError",r.type=e,r.request=i,r.event=n,s[1](r)}};i.l(d,a,"chunk-"+t,t)}};const t=(t,n)=>{let[s,o,d]=n;var r,a,l=0;if(s.some(t=>0!==e[t])){for(r in o)i.o(o,r)&&(i.m[r]=o[r]);d&&d(i)}for(t&&t(n);l<s.length;l++)a=s[l],i.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=globalThis.webpackChunk_xwp_express||=[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();const n=window.wp.domReady;var s=i.n(n);const o=window.PWT||{},d=window.googletag||{};d.cmd=d.cmd||[];let r=!1,a=!1,l=!1;const c=[];function u(e,t){if(!window._iasGateExpected||window.__iasDone)return void e();let i=!1;const n=function(){i||(i=!0,window.removeEventListener("aremedia:iasDone",n),e())};window.addEventListener("aremedia:iasDone",n),setTimeout(function(){i||d.pubads().setTargeting("ias_to","1"),n()},t)}window.PWT=o,window.googletag=d,window.pwtFinished=r,window.gptLoaded=a,window.initAdServerSet=l,window.pwtBids=c;const p={settings:{},adSlots:{},validAd:[],lazyAdsObserver:{},init(e){this.settings=e,this.initDirectPPID();const t=e.adTargetParams||[],i=this;this.lazyAdsObserver=new IntersectionObserver(this.renderLazyAds,{root:null,rootMargin:"500px 0px 500px 0px",threshold:0}),d.cmd.push(function(){a=!0,i.settings.ads.forEach(function(e){if(void 0!==e.hideOnMobile&&!0===e.hideOnMobile&&i.isMobile())return;if(void 0!==e.hideOnDesktop&&!0===e.hideOnDesktop&&i.isDesktop())return;let t=e.sizes;1===e.sizes.length&&e.sizes[0].length&&(t=e.sizes[0]),i.isMobile()&&e.mobileSizes&&e.mobileSizes.length&&(t=e.mobileSizes[0].length?e.mobileSizes[0]:e.mobileSizes),"native"!==e.location&&e.mediaTypes.banner.sizes&&(e.mediaTypes.banner.sizes=t);const n=d.defineSlot(e.adUnitId,t,e.divId,"responsive-ad");if(n){if(n.addService(d.pubads()),void 0!==e.adTargetingParams)for(const t in e.adTargetingParams)n.setTargeting(t,e.adTargetingParams[t]);if(i.adSlots[e.divId]=n,i.validAd.push(e),["billboard","leaderboard"].includes(e.location)){const e=d.sizeMapping().addSize([1024,600],[[970,250],[728,90]]).addSize([640,480],[320,50]).addSize([0,0],[320,50]).build();n.defineSizeMapping(e)}}if("wallpaper-ad"===e.location&&d.pubads().addEventListener("slotOnload",e=>{const t=e.slot;n===t&&document.body.classList.add("wallpaper-ad-loaded")}),"billboard"===e.location&&d.pubads().addEventListener("slotRenderEnded",e=>{const t=e.slot;if(n===t){const e=document.querySelector(".ad.billboard");if(e){const t=e.getBoundingClientRect();document.body.style.setProperty("--billboard-ad-height","-"+t.height+"px"),i.isMobile()&&e.style.setProperty("background","#FFF");const n=e.querySelector(".ad-title");n&&n.remove()}}}),"half-page"===e.location){const e=d.sizeMapping().addSize([1024,600],[[300,600],[300,250]]).addSize([640,480],[300,250]).addSize([0,0],[300,250]).build();n.defineSizeMapping(e),d.pubads().addEventListener("slotRenderEnded",function(e){const t=e.size||[],s=e.slot.getSlotElementId(),o=e.slot;if(n===o&&t&&s){const e=document.getElementById(s)?.closest(".ad");if(e){e.style.minHeight=`${t[1]}px`,i.isMobile()&&e.style.setProperty("background","#FFFFFF");const n=e.querySelector(".ad-title");n&&n.remove()}}})}"mrec"!==e.location&&"leaderboard"!==e.location||d.pubads().addEventListener("slotRenderEnded",function(e){const t=e.slot?.getSlotElementId();if(!t)return;const n=document.getElementById(t)?.closest(".ad");if(!n)return;i.isMobile()&&n.style.setProperty("background","#FFFFFF");const s=n.querySelector(".ad-title");s&&s.remove()})}),i.setTargetingKeywords(t),d.pubads().addEventListener("slotRenderEnded",e=>{if(!e.isEmpty)return;const t=e.slot?.getSlotElementId();if(!t)return;const i=document.getElementById(t)?.closest(".ad");i?.classList.add("ad--collapsed")}),d.pubads().enableSingleRequest(),d.pubads().disableInitialLoad(),d.enableServices(),i.initAdServer(),setTimeout(function(){r||console.log("OpenWrap Failsafe Invoked"),r=!0,i.initAdServer()},1e4)}),o.jsLoaded=function(){"function"==typeof o.requestBids?o.requestBids(i.validAd,function(e){r=!0,c.push(e),i.initAdServer()}):(r=!0,i.initAdServer())}},initAmazonTamAdServer(e){!function(e,t,i,n,s,o,d){function r(i,n){t[e]._Q.push([i,n])}t[e]||(t[e]={init(){r("i",arguments)},fetchBids(){r("f",arguments)},setDisplayBids(){},targetingKeys:()=>[],_Q:[]},(o=i.createElement(n)).async=!0,o.src="//c.amazon-adsystem.com/aax2/apstag.js",(d=i.getElementsByTagName(n)[0]).parentNode.insertBefore(o,d))}("apstag",window,document,"script"),apstag.init({pubID:e,adServer:"googletag",videoAdServer:"DFP",bidTimeout:2e3})},handleAmazonVideoBid(e,t){const i=e.filter(function(e){return"video"===e.mediaType})[0];if(i)return t+"scp="+i.encodedQsParams},transformSlotSizeToAmazonAdSize(e){const t={fluid:[0,0]};return e.map(function(e){if(Array.isArray(e)){const i=e[0];return t.hasOwnProperty(i),t.hasOwnProperty(i)?t[i]:e}return t.hasOwnProperty(e)?t[e]:e})},amazonAdBidHandleAndSetTargeting(){const e=this,t=e.settings.ads.map(({divId:t,sizes:i,adUnitId:n,location:s,hideOnDesktop:o,hideOnMobile:d,mobileSizes:r})=>{if(void 0!==d&&!0===d&&e.isMobile())return null;if(void 0!==o&&!0===o&&e.isDesktop())return null;let a=i;return e.isMobile()&&r&&r.length&&(a=r),"wallpaper-ad"!==s&&"native"!==s?{slotID:t,slotName:n,sizes:e.transformSlotSizeToAmazonAdSize(a)}:null}).filter(e=>null!==e);apstag.fetchBids({slots:t},function(t){e.handleAmazonVideoBid(t,"https://pubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&output=vast&iu=/6062/video-demo&sz=400x300&unviewed_position_start=1&url=http://www.simplevideoad.com&ciu_szs=728x90,300x250&correlator=7105"),d.cmd.push(function(){apstag.setDisplayBids()})})},initDirectPPID(){if(!window.ExpressPPIDConfig||!window.ExpressPPIDConfig.enabled)return;const e=(t=0)=>{const i=(()=>
1{if("function"==typeof window.ExpressResolvePPID){const e=window.ExpressResolvePPID();if(e)return e}const e=window.ExpressPPIDConfig.localStorageKey||"ajs_user_id";let t=localStorage.getItem(e);if(t&&"null"!==t&&'""'!==t){try{t=JSON.parse(t)}catch(e){}if(t&&"object"==typeof t&&(t=t.acid||t.userId||t.id||""),t=String(t).replace(/^"(.*)"$/,"$1").trim(),t&&"undefined"!==t&&"[object Object]"!==t)return t}if(window.AfxIdentity&&"function"==typeof window.AfxIdentity.getProfile){const e=window.AfxIdentity.getProfile();if(e?.acid)return e.acid}return null})();return i?(window.googletag=window.googletag||{cmd:[]},d.cmd.push(function(){d.pubads().setPublisherProvidedId(i)}),!0):(t<10&&setTimeout(()=>e(t+1),500),!1)};e()},setTargetingKeywords(e){if(void 0!==d.pubads){e.width=`${window.screen.width}`,e.height=`${window.screen.height}`,e.inSkin=e.width<374?"0":e.width<1505?"1":"2";for(const t in e){const i=e[t];void 0!==i&&""!==i&&d.pubads().setTargeting(t,i)}}},initAdServer(){if(!l&&a&&r){let e;for(l=!0;e=c.shift();)o.addKeyValuePairsToGPTSlots(e);const t=this.settings.ads,{_isIasPluginActive:i}=window;for(const e in t)void 0!==this.adSlots[t[e].divId]&&(i||d.display(t[e].divId));this.renderAds()}},isMobile(){return void 0===this._is_mobile&&(this._is_mobile=null!==navigator.userAgent.match(/mobile|iPhone|Blackberry|Android|MIDP|AvantGo|BlackBerry|J2ME|Opera Mini|DoCoMo|NetFront|Nokia|PalmOS|PalmSource|portalmmm|Plucker|ReqwirelessWeb|SonyEricsson|Symbian|UP\.Browser|Windows CE|Xiino/i),this._is_mobile||(this._is_mobile=window.screen.width<=768)),this._is_mobile},isDesktop(){return!this.isMobile()},dispatchCustomEvent:(e,t)=>{window.dispatchEvent(new CustomEvent(e,{detail:{adContainerElement:t}}))},renderLazyAds(e){e.forEach(function(e){if(e.isIntersecting&&"function"==typeof d.pubads){const t=e.target.closest(".native-ad-wrapper");if(t){const e=t.nextElementSibling;e&&e.classList.contains("unfilled--native")&&("complete"!==document.readyState?window.addEventListener("load",()=>{p.dispatchCustomEvent("loadingNativeAds",e)}):p.dispatchCustomEvent("loadingNativeAds",e))}p.lazyAdsObserver.unobserve(e.target),u(()=>{d.pubads().refresh([p.adSlots[e.target.getAttribute("id")]])},2e3)}})},renderAds(){const e=this;d.cmd.push(function(){const t=[];e.settings.ads.forEach(function(i){if(void 0!==e.adSlots[i.divId])if(void 0!==i.isLazyLoad&&!0===i.isLazyLoad){const e=document.getElementById(i.divId);e?e.classList.add("express-lazy-load-ad"):console.error("Ad div not found:",i.divId,i)}else t.push(e.adSlots[i.divId])}),t.length>0&&u(()=>{d.pubads().refresh(t)},1600),document.querySelectorAll(".express-lazy-load-ad").length&&e.loadLazyAds(!0)})},loadLazyAds(e){const t=this,i=document.querySelectorAll(".express-lazy-load-ad");0===i.length&&"settings"in t&&"ads"in t.settings&&"object"==typeof t.settings.ads&&t.settings.ads.forEach(function(e){if(void 0!==e.isLazyLoad&&!0===e.isLazyLoad){const t=document.getElementById(e.divId);0<t.length&&i.push(t)}}
1),i.forEach(function(i){!0===e&&"IntersectionObserver"in window?p.lazyAdsObserver.observe(i):u(()=>{d.pubads().refresh([t.adSlots[i.getAttribute("id")]])},2e3)})}};window.addEventListener("message",e=>{const{data:t}=e;if(t&&t.message&&"adContentAvailable"===t.message){const e=(e=>{if(e){const t=expressAds.ads.find(t=>t.adUnitId===e);if(t){const e=document.getElementById(t.divId);if(e){const t=e.closest(".native-ad-wrapper").nextElementSibling;if(t&&t.classList.contains("unfilled--native"))return t}}}const t=document.getElementsByClassName("unfilled--native");return t&&t.length?t[0]:null})(t.adID??null);t.content&&e&&((e,t)=>{const{link:i,image:n,headline:s,sponsor:o}=t,d=e.querySelector("img");let r=e.querySelector(".article-card__terms");r||(r=e.querySelector(".article-card__title")),r||(r=e.querySelector(".entry-title"));const a=e.querySelector("a.article-card__post-thumbnail");let l=null;r&&(l="A"===r.tagName?r:r.querySelector("a"));const c=e.querySelector(".article-card__sponsor-link"),u=e.querySelector(".article-card__sponsor-link");d&&n&&(d.src=n),i&&(c&&(c.href=i),l&&(l.href=i),a&&(a.href=i)),s&&l&&(l.innerText=s),o&&u&&(u.innerText=o),e.classList.remove("unfilled--native");const f=e?.previousElementSibling;f?.classList.contains("native-ad-wrapper")&&f?.classList.add("hide"),e.classList.remove("hide"),p.dispatchCustomEvent("nativeAdInjected",e)})(e,t.content)}}),window.expressAdmGpt=p,s()(async function(){if(document.querySelectorAll(".has-preloading").length){const{NativeAdLoader:e}=await i.e(996).then(i.bind(i,2123));e.init()}})})();

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.