PageSourceSearch

https://www.elle.com.au/wp-content/themes/express/build/js/main.js?ver=147406cc329860ce53ac

js elle.com.au collected 2026-10-02 03:23:12 UTC 17,726 bytes, 1 lines download raw bytes

1(()=>{var e={3393(e,t,o){"use strict";function n(e){return e?e.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)'):(console.warn("You need to pass a parent HTMLElement"),[])}o.d(t,{r:()=>n})},5650(e,t,o){var n=o(8942).Symbol;e.exports=n},7379(e,t,o){var n=o(5650),r=o(8870),a=o(9005),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?r(e):a(e)}},6403(e,t,o){var n=o(2945),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},4967(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},8870(e,t,o){var n=o(5650),r=Object.prototype,a=r.hasOwnProperty,i=r.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),o=e[s];try{e[s]=void 0;var n=!0}catch(e){}var r=i.call(e);return n&&(t?e[s]=o:delete e[s]),r}},9005(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},8942(e,t,o){var n=o(4967),r="object"==typeof self&&self&&self.Object===Object&&self,a=n||r||Function("return this")();e.exports=a},2945(e){var t=/\s/;e.exports=function(e){for(var o=e.length;o--&&t.test(e.charAt(o)););return o}},2784(e,t,o){var n=o(1580),r=o(4495),a=o(6131),i=Math.max,s=Math.min;e.exports=function(e,t,o){var c,l,d,u,p,f,m=0,h=!1,b=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var o=c,n=l;return c=l=void 0,m=t,u=e.apply(n,o)}function v(e){var o=e-f;return void 0===f||o>=t||o<0||b&&e-m>=d}function w(){var e=r();if(v(e))return S(e);p=setTimeout(w,function(e){var o=t-(e-f);return b?s(o,d-(e-m)):o}(e))}function S(e){return p=void 0,y&&c?g(e):(c=l=void 0,u)}function E(){var e=r(),o=v(e);if(c=arguments,l=this,f=e,o){if(void 0===p)return function(e){return m=e,p=setTimeout(w,t),h?g(e):u}(f);if(b)return clearTimeout(p),p=setTimeout(w,t),g(f)}return void 0===p&&(p=setTimeout(w,t)),u}return t=a(t)||0,n(o)&&(h=!!o.leading,d=(b="maxWait"in o)?i(a(o.maxWait)||0,t):d,y="trailing"in o?!!o.trailing:y),E.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=f=l=p=void 0},E.flush=function(){return void 0===p?u:S(r())},E}},1580(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547(e){e.exports=function(e){return null!=e&&"object"==typeof e}},1187(e,t,o){var n=o(7379),r=o(547);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},4495(e,t,o){var n=o(8942);e.exports=function(){return n.Date.now()}},7331(e,t,o){var n=o(2784),r=o(1580);e.exports=function(e,t,o){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(o)&&(a="leading"in o?!!o.leading:a,i="trailing"in o?!!o.trailing:i),n(e,t,{leading:a,maxWait:t,trailing:i})}},6131(e,t,o){var n=o(6403),r=o(1580),a=o(1187),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var o=s.test(e);return o||c.test(e)?l(e.slice(2),o?2:8):i.test(e)?NaN:+e}}};const t={};function o(n){const r=t[n];if(void 0!==r)return r.exports;const a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.m=e,o.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},(()=>{const e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;let t;o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}const a=Object.create(null);o.r(a);const i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,o.d(a,i),a}})(),o.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],a=t[n++];o.o(e,r)?0===a&&n++:0===a?Object.defineProperty(e,r,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,r,{enumerable:!0,get:a})}else for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,n)=>(o.f[n](e,t),t),[])),o.u=e=>"js/chunk."+{76:"6147cb26d058258220dd",235:"eef7a9e23a450db251dc",297:"415a500339961aa320bc",453:"03b81d9d5664a62de294",601:"0f6de50d682b3fed2b01",781:"784354193736a949124f",897:"b31c37f5cee10f11fd0f",973:"3095b382de93a3076190",979:"abb87fcdf51d178ffb85"}[e]+"."+({76:"popular-post-carousel",235:"requestidlecallback-polyfill",297:"AuthorSlider",453:"ccb-slider",601:"overlay",781:"carousel-block",897:"carousel",979:"swiper"}[e]||e)+".js",o.miniCssF=e=>{},o.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={},t="@xwp/express:";o.l=(n,r,a,i)=>{if(e[n])return void e[n].push(r);let s,c;if(void 0!==a){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const o=e[l];
1if(o.getAttribute("src")==n||o.getAttribute("data-webpack")==t+a){s=o;break}}}s||(c=!0,s=document.createElement("script"),s.charset="utf-8",o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+a),s.src=n),e[n]=[r];const d=(t,o)=>{s.onerror=s.onload=null,clearTimeout(u);const r=e[n];if(delete e[n],s.parentNode?.removeChild(s),r?.forEach(e=>e(o)),t)return t(o)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}})(),o.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{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 o=t.getElementsByTagName("script");if(o.length){let t=o.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=o[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e+"../"})(),(()=>{const e={330:0};o.f.j=(t,n)=>{let r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{const a=new Promise((o,n)=>r=e[t]=[o,n]);n.push(r[2]=a);const i=o.p+o.u(t),s=new Error,c=n=>{if(o.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){const e=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+e+": "+o+")",s.name="ChunkLoadError",s.type=e,s.request=o,s.event=n,r[1](s)}};o.l(i,c,"chunk-"+t,t)}};const t=(t,n)=>{let[r,a,i]=n;var s,c,l=0;if(r.some(t=>0!==e[t])){for(s in a)o.o(a,s)&&(o.m[s]=a[s]);i&&i(o)}for(t&&t(n);l<r.length;l++)c=r[l],o.o(e,c)&&e[c]&&e[c][0](),e[c]=0},n=globalThis.webpackChunk_xwp_express||=[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";const e=window.wp.domReady;var t=o.n(e),n=o(7331),r=o.n(n);let a=null;const i={init(){document.addEventListener("click",function(e){const t=e.target.closest(".social-share__item.link");if(!t)return;const o=t.getAttribute("data-url");o&&(e.preventDefault(),navigator.clipboard.writeText(o),t.classList.add("is-success"),setTimeout(function(){t.classList.remove("is-success")},1e3))})}},s={init(){document.addEventListener("click",e=>{const t=e.target.closest("[data-social]");t&&(e.preventDefault(),this.open(t))})},open(e){const t=e.getAttribute("data-social"),o=e.getAttribute("data-share-url");if(!t||!o)return;if("mail"===t){const t=e.getAttribute("data-share-title")||"",n=encodeURIComponent(t),r=encodeURIComponent(o);return void(window.location.href=`mailto:?subject=${n}&body=${r}`)}const n=o.includes("?")?"&":"?",r=`${o}${n}share=${encodeURIComponent(t)}`;window.open(r,"_blank","noopener")}},c={init(){const e=document.querySelectorAll("[data-share-hover-hydrate]");e.length&&e.forEach(e=>{e.addEventListener("pointerenter",()=>this.hydrate(e)),e.addEventListener("focusin",()=>this.hydrate(e)),e.addEventListener("focusout",t=>{e.contains(t.relatedTarget)||this.dehydrate(e)}),e.addEventListener("pointerleave",()=>{e.contains(e.ownerDocument.activeElement)||this.dehydrate(e)})})},hydrate(e){const t=e.querySelector(".saved-article-card__actions-social-share-options"),o=e.querySelector("template[data-share-template]");t&&o&&!t.dataset.hydrated&&(t.appendChild(o.content.cloneNode(!0)),t.dataset.hydrated="true")},dehydrate(e){const t=e.querySelector(".saved-article-card__actions-social-share-options");t&&t.dataset.hydrated&&(t.replaceChildren(),delete t.dataset.hydrated)}},l=function(){const e=window.innerWidth-document.documentElement.clientWidth;return{init(){document.documentElement.style.setProperty("--scrollbar--width",`${e}px`)}}}();var d=o(3393);function u({dropdownSelector:e,buttonSelector:t,iconButtonSelector:o,menuSelector:n,closeBtnSelector:r}){const i=document.querySelectorAll(e);if(!i.length)return;const s=()=>document.querySelector(".js-site-overlay-backdrop"),c=(e,t)=>{if(!window.matchMedia("(max-width: 767px)").matches||!e.classList.contains("js-login-dropdown")&&!e.classList.contains("js-account-dropdown"))return;const o=s();o&&(o.dataset.overlay=t?"true":void 0),document.body.classList.toggle("is-not-scrollable",t)},l=(e,t,o)=>
1{t.hidden=!0,o.setAttribute("aria-expanded","false"),i.forEach(e=>{e.classList.remove("is-open"),e.setAttribute("menu-expanded","false")}),c(e,!1)};a=e=>{const t=document.querySelector(".account-dropdown-menu-sticky"),o=document.querySelector(".account-dropdown-menu-primary");if(!t||!o)return;const n=()=>i.forEach(e=>e.classList.add("is-open"));!o.hidden&&e?(t.hidden=!1,o.hidden=!0,n()):t.hidden||e||(o.hidden=!1,t.hidden=!0,n())},i.forEach(e=>{const a=e.querySelector(t),d=e.querySelector(n);if(!a||!d)return;e.querySelectorAll(o).forEach(t=>{t.addEventListener("click",o=>{o.preventDefault(),o.stopPropagation(),(()=>{const e=s(),t=document.querySelector(".header-modal.is-overlaid, .mega-menu.is-overlaid, .search-box.is-overlaid");e&&t&&(delete e.dataset.overlay,document.body.classList.remove("is-not-scrollable","header-modal-is-open"),t.classList.remove("is-overlaid"),document.querySelectorAll(".js-use-overlay").forEach(e=>e.setAttribute("aria-expanded","false")))})(),console.log("icon button",t.classList),((e,t,o)=>{const n=e.classList.toggle("is-open");t.hidden=!n,o.setAttribute("aria-expanded",n),i.forEach(t=>{t===e?t.classList.toggle("is-open",n):t.classList.remove("is-open"),t.setAttribute("menu-expanded",n?"true":"false")}),c(e,n)})(e,d,a)})});const u=e.querySelector(r);u&&u.addEventListener("click",()=>{l(e,d,a)}),document.addEventListener("click",t=>{e.contains(t.target)||l(e,d,a)})})}function p(){const e=document.querySelectorAll(".social-share__toggle");if(!e.length)return;const t=window.matchMedia("(min-width: 960px)");let o=null;const n=()=>
1{if(!document.body.classList.contains("social-share-sheet-is-open"))return;const e=document.querySelector(".js-social-share-backdrop");e&&delete e.dataset.overlay,document.body.classList.remove("social-share-sheet-is-open"),document.querySelector(".is-overlaid, .js-login-dropdown.is-open, .js-account-dropdown.is-open")||document.body.classList.remove("is-not-scrollable")},r=e=>{e.isPortalled||(document.body.appendChild(e.panel),e.isPortalled=!0)},a=e=>{e.isPortalled&&(e.anchor.appendChild(e.panel),e.isPortalled=!1)},i=e=>{if(t.matches)return e.panel.removeAttribute("role"),e.panel.removeAttribute("aria-modal"),a(e),n(),void(e.closeButton&&e.closeButton.ownerDocument.activeElement===e.closeButton&&e.toggle.focus());e.panel.setAttribute("role","dialog"),e.panel.setAttribute("aria-modal","true"),r(e),(()=>{let e=document.querySelector(".js-social-share-backdrop");return e||(e=document.createElement("div"),e.classList.add("site-overlay","social-share__backdrop","js-social-share-backdrop"),e.setAttribute("aria-hidden","true"),document.body.appendChild(e)),e})().dataset.overlay="true",document.body.classList.add("is-not-scrollable","social-share-sheet-is-open"),e.closeButton&&!e.panel.contains(e.panel.ownerDocument.activeElement)&&e.closeButton.focus()},s=(e,t)=>{var r;e&&(e.panel.classList.remove("is-open"),e.panel.setAttribute("aria-hidden","true"),e.panel.removeAttribute("role"),e.panel.removeAttribute("aria-modal"),e.toggle.setAttribute("aria-expanded","false"),a(e),n(),o===e&&(o=null),t&&e.toggle.focus(),(r=e.panel).dataset.hydrated&&(r.replaceChildren(),delete r.dataset.hydrated))};e.forEach(e=>{const n=e.closest(".social-share__anchor")||e.closest(".social-share"),a=e.getAttribute("aria-controls"),c=n&&n.querySelector(".social-share__options")||a&&document.getElementById(a)||null;if(!n||!c)return;const l={anchor:n,toggle:e,panel:c,get closeButton(){return c.querySelector(".social-share__close")}};e.addEventListener("click",()=>{o!==l?(function(e){if(e.dataset.hydrated)return;const t=e.parentElement&&e.parentElement.querySelector("template[data-share-template]");t&&(e.appendChild(t.content.cloneNode(!0)),e.dataset.hydrated="true")}(c),l.closeButton&&l.closeButton.addEventListener("click",()=>s(l,!0)),(e=>{o&&o!==e&&s(o,!1),t.matches||(r(e),e.panel.getBoundingClientRect()),e.panel.classList.add("is-open"),e.panel.setAttribute("aria-hidden","false"),e.toggle.setAttribute("aria-expanded","true"),o=e,i(e)})(l)):s(l,!0)})}),document.addEventListener("click",e=>{o&&(o.anchor.contains(e.target)||o.panel.contains(e.target)||s(o,!t.matches))}),document.addEventListener("keydown",e=>{o&&("Escape"!==e.key?"Tab"!==e.key||t.matches||function(e,t){const o=Array.from((0,d.r)(t)).filter(e=>null!==e.offsetParent);if(!o.length)return;const n=o[0],r=o[o.length-1],a=t.ownerDocument.activeElement;e.shiftKey&&a===n?(e.preventDefault(),r.focus()):e.shiftKey||a!==r||(e.preventDefault(),n.focus())}(e,o.panel):s(o,!0))});const c=()=>{o?i(o):n()};"function"==typeof t.addEventListener?t.addEventListener("change",c):t.addListener(c)}t()(async()=>{if(await async function(){window.requestIdleCallback||await o.e(235).then(o.t.bind(o,7954,23))}(),(()=>{const e=document.querySelector(".site-header");if(!e)return;let t,o=document.querySelector(".site-header-sentinel");function n(){const n="mobile"===function(){try{return window.getComputedStyle(document.documentElement,"::after").content.replace(/['"]/g,"")}catch(e){return""}}();let r=e.classList.contains("is-hidden"),i=e.classList.contains("is-stuck"),s=e.classList.contains("is-animated");const{top:c,bottom:l,height:d}=o.getBoundingClientRect(),u=i,p=t<=window.scrollY,f=l<0;n?p?u?f&&(r=!0,s=!0):(s=!1,c<0&&(r=!0),f&&(i=!0)):u?(r=!1,s=!0,c-d<0||(i=!1,s=!1)):f||(r=!1):(i=f,r=!1,s=!1),requestAnimationFrame(()=>{e.classList.toggle("is-hidden",r),e.classList.toggle("is-stuck",i),e.classList.toggle("is-animated",s),a&&a(i)}),t=window.scrollY}o||(o=document.createElement("div"),o.classList.add("site-header-sentinel"),e.insertAdjacentElement("beforebegin",o)),window.addEventListener("resize",r()(n,100),!1),window.addEventListener("scroll",r()(n,100),!1),n()})(),document.querySelectorAll(".form-control.sailthru-email").forEach(e
1=>{e.setAttribute("type","email"),e.setAttribute("required",""),e.setAttribute("placeholder","Your email")}),document.querySelectorAll(".brand-segregation__link--inactive .brand-segregation__image").forEach(e=>{const t=e.src;t.endsWith(".svg")&&fetch(t).then(e=>e.text()).then(t=>{const o=function(e,t="#a69d8c"){const o=atob(e),n=(new DOMParser).parseFromString(o,"text/xml");n.querySelectorAll("path").forEach(e=>{if(e.hasAttribute("style")){let o=e.getAttribute("style");o.includes("fill")||(o+=`; fill: ${t}`,e.setAttribute("style",o))}else e.setAttribute("style",`fill: ${t}`)}),n.querySelectorAll("*[fill]").forEach(e=>{e.setAttribute("fill",t)});const r=(new XMLSerializer).serializeToString(n);return btoa(r)}(btoa(t));e.src=`data:image/svg+xml;base64,${o}`}).catch(e=>{console.error("Error fetching SVG:",e)})}),setTimeout(async()=>{if(document.querySelector(".slider")){const{CCBSlider:e}=await Promise.all([o.e(973),o.e(453)]).then(o.bind(o,5083));e.init()}if(document.querySelector(".js-carousel")){const{Carousel:e}=await o.e(897).then(o.bind(o,8968));e.init()}if(document.querySelector(".entry-author-bio__slider")){const{AuthorBioSlider:e}=await o.e(297).then(o.bind(o,4435));e.init()}if(document.querySelector(".wp-block-xwp-carousel, .wp-block-xwp-brand-carousel")){const{CarouselBlock:e}=await Promise.all([o.e(973),o.e(781)]).then(o.bind(o,5207));e.init()}if(document.querySelector(".wp-block-areblocks-popular-post-carousel, .popular-post-carousel")){const{initPopularPostCarousel:e}=await Promise.all([o.e(973),o.e(76)]).then(o.bind(o,9358));e()}},100),document.querySelectorAll('[data-target*="#"]').length){const{OverlayHelper:e}=await o.e(601).then(o.bind(o,4162));e.init()}window.matchMedia("(min-width: 960px)")&&setTimeout(l.init,0),i.init(),s.init(),c.init();const e=document.querySelectorAll(".brand-bar__brands strong");e.forEach(t=>{t.addEventListener("click",function(){t.parentElement.classList.contains("show")||e.forEach(e=>e.parentElement.classList.remove("show")),t.parentElement.classList.toggle("show")})})}),document.addEventListener("DOMContentLoaded",()=>{u({dropdownSelector:".js-login-dropdown",buttonSelector:".js-login-dropdown-trigger",iconButtonSelector:".js-login-dropdown-trigger",menuSelector:".login-dropdown-menu",closeBtnSelector:".login-dropdown-menu__close"}),u({dropdownSelector:".js-account-dropdown",buttonSelector:".btn-secondary",iconButtonSelector:".btn-account-dropdown__icon, .btn-account-dropdown__handler",menuSelector:".account-dropdown-menu",closeBtnSelector:".account-dropdown-menu__close"}),p()})})()})();

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.