PageSourceSearch

https://static-www.adweek.com/wp-content/themes/adweek-next/dist/js/bottom/index.js?ver=1786986026

js adweek.com collected 2026-09-24 07:55:32 UTC 9,933 bytes, 21 lines download raw bytes

1!function(){"use strict";var e,t,o,a="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},n={},i={},r=a.parcelRequire3558;null==r&&((r=function(e){if(e in n)return n[e].exports;if(e in i){var t=i[e];delete i[e];var o={id:e,exports:{}};return n[e]=o,t.call(o.exports,o,o.exports),o.exports}var a=Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,t){i[e]=t},a.parcelRequire3558=r),(0,r.register)("gUqxu",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.notifications=e.exports.default=void 0;let o=e.exports.notifications={login:{title:"Login",body:"You have successfully logged in."},logout:{title:"Log Out",body:"You have successfully logged out."},corporatesubscribed:{title:"Subscribed",body:"You have a active corporate subscription."}};e.exports.default=o});var s=jQuery;function l(){s&&s.fn&&s.fn.galleryMockup&&s(".gallery-footer").galleryMockup()}s("body").hasClass("single")?s("body").hasClass("article-content-loaded")?(l(),console.log("initializeGalleryMockup called after .article-content-loaded in body tag")):s(document).on("aw_article_content_loaded",function(){l(),console.log("initializeGalleryMockup called after aw_article_content_loaded")}):(l(),console.log("initializeGalleryMockup called without aw_article_content_loaded")),(e=jQuery)(function(){let t,o,a=e=>{if("object"!=typeof e||"string"!=typeof e.title||"string"!=typeof e.body)return"";let{title:t,body:o}=e;return`
2
3    <div aria-live="polite" aria-atomic="true" style="position: relative;">
4
5        <div class="toast mt-3 initial-position" style="position: absolute; top: 0; right: 0;">
6            <div class="toast-header">
7                <img src="https://www.adweek.com/wp-content/themes/AdWeek/assets/images/icons/favicon.ico" class="mr-2" alt="...">
8                <strong class="mr-auto">${t}</strong>
9                <small></small>
10                <button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
11                    <span aria-hidden="true">&times;</span>
12                </button>
13            </div>
14            <div class="toast-body">
15                ${o}
16            </div>
17        </div>
18    
19    </div>
20    `},n=new URLSearchParams(new URL(window.location).search);if(t=n.get("ntfBody"),n.get("ntfTitle"),o=n.get("ntfData"),(t||o)&&o.length>0){var i,r;let t,n="";o&&o.length>0&&(awGetUserData(),"login"==o||"logout"==o||"corporatesubscribed"==o?awIsUserLoggedIn()&&"login"==o&&"true"!==Cookies.get("aw_login_msg")?(n=a(adw.notifications[o]),Cookies.set("aw_login_msg","true",{expires:365}),Cookies.set("aw_account_access","true",{expires:365}),Cookies.remove("aw_logout_msg")):awIsUserLoggedIn()&&"logout"==o?console.log("User Not Logout Yet"):awIsUserLoggedIn()||"logout"!=o||"true"===Cookies.get("aw_logout_msg")||"true"!=Cookies.get("aw_account_access")?awIsUserLoggedIn()||"login"!=o?awIsUserLoggedIn()&&"corporatesubscribed"==o&&"true"!==Cookies.get("aw_corporatesubscribed_msg")&&(Cookies.set("aw_corporatesubscribed_msg","true",{expires:365}),n=a(adw.notifications[o])):console.log("User Not Login Yet"):(n=a(adw.notifications[o]),Cookies.set("aw_logout_msg","true",{expires:365}),Cookies.remove("aw_login_msg")):n=a(adw.notifications[o])),i=n,t=document.querySelector("#aw-navbar-root")?document.querySelector("#aw-navbar-root"):document.querySelector(".secondary-nav-container")?document.querySelector(".secondary-nav-container"):document.querySelector(".navbar-wrapper"),(r=document.createElement("div")).classList=["container-fluid"],r.innerHTML=i,"object"==typeof t&&"null"!==t&&t?.insertAdjacentElement?.("afterend",r),e(".toast").on("shown.bs.toast",function(){e(".toast").addClass("final-position")}),e(".toast").toast({autohide:!0,delay:6e3,animation:!0}).toast("show")}});var d={};async function c(e,t="",o="",a=!0,n=""){let i=`${window.location.origin}/wp-json/adw/v1/query/?query=${e}`;t&&(i+=`&image_size=${t}`),o&&(i+=`&premium_markup_type=${o}`),a&&(i+=`&get_post_data=${a}`),n&&(i+=`&get_markup=${n}`);try{let e=await fetch(i);return await e}catch(e){throw console.error("Developer message: Error in fetching query data: "+e),e}}async function u(e,t){let o=`${window.location.origin}/wp-json/adw/v1/query/?query=${e}&get_markup=${t}&get_post_data=false&taxonomy=${adw.posts.taxonomy}`;try{let e=await fetch(o);return await e}catch(e){throw console.error("Developer message: Error in fetching query markup data: "+e),e}}async function p(e,t){let o=`${window.location.origin}/wp-json/adw/v1/query/?query=${e}&request_uri=${t}&get_markup=index_item&get_post_data=false&pagination_markup=search_page_pagination`;try{let e=await fetch(o);return await e}catch(e){throw console.error("Developer message: Error in fetching query markup data: "+e),e}}function g(e){var t=e.target,o=t.dataset.markup,a=t.dataset.triggerLength,n=t.dataset.query,i=JSON.parse(n);let r=t.querySelector(".grid-scroller__item-container").cloneNode();if(t.scrollLeft>a&&"false"===t.dataset.isLoading&&"false"===t.dataset.isDone){let e=r.cloneNode();e.insertAdjacentHTML("beforeend",'<div class="d-flex h-100 flex-column justify-content-center">\n  <div class="spinner-border text-danger" role="status">\n  <span class="sr-only">Loading...</span>\n</div>\n</div>'),t.appendChild(e),t.dataset.isLoading=!0,(0,d.getQueryMarkup)(n,o).then(e=>e.json()).then(e=>e.markup).then(o=>{if(e.remove(),!o||0===o.length)return!1;{let e=t.querySelector(".grid-scroller__item-container").cloneNode();for(let a=0;a<o.length;a++){let n=e.cloneNode();n.insertAdjacentHTML("beforeend",o[a]),t.appendChild(n)}return!0}}).then(e=>{if(t.dispatchEvent(new Event("aw_infinite_loading.complete",{bubbles:!0})),e){var o=t.scrollWidth-t.clientWidth;i.offset=i.offset+i.posts_per_page,t.dataset.triggerLength=o-(o-a)/2,t.dataset.query=JSON.stringify(i),t.dataset.isLoading=!1}else t.dataset.isDone=!0,t.removeEventListener("scroll",g),t.removeEventListener("click.scrollVW",g)})}}Object.defineProperty(d,"__esModule",{value:!0}),d.getQuery=c,d.getQueryMarkup=u,d.getQueryandPaginationMarkupForSearch=p,document.querySelectorAll(".grid-scroller .grid-scroller__c
20ontainer").forEach(function(e){let t=JSON.parse(e.dataset.query),o=e.scrollWidth-e.clientWidth;t.posts_per_page===e.childElementCount&&(e.dataset.isLoading=!1,e.dataset.isDone=!1,e.dataset.triggerLength=o/2,t.offset=t.posts_per_page,t.posts_per_page=200,e.dataset.query=JSON.stringify(t),e.addEventListener("scroll",g),e.addEventListener("click.scrollVW",g))});document.addEventListener("DOMContentLoaded",function(){if(document.querySelector(".single-post, .single-contributor_content")){let e=document.getElementsByClassName("custom-publish-time");if(e&&e?.[0]){let t=awCalculateArticleTime(e[0].getAttribute("data-published-time"));e[0].innerHTML=t}}awUpdateArticleTimeOnCategoryPage()}),function(e){let t=jQuery("article.main-content");if(t&&t.length){let o=t.data("authors"),a=t.data("date"),n=e("article").data("id"),i=t.data("featured"),r=t.data("categories"),s=t.data("zone"),l={page:location.pathname,documentTitle:document.title,dimension1:o,dimension2:a,dimension3:n,dimension4:1,dimension5:i,dimension6:r,dimension7:s};window.dataLayer=window.dataLayer||[],window.dataLayer.push(l)}e(document).on("aw-location-detected",function(e,t){if(t&&t.country&&t.country.iso_code){let e=t.country.iso_code;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"country_detected",country:e})}})}(jQuery);var w=(t=r("gUqxu"))&&t.__esModule?t:{default:t};window.addEventListener("DOMContentLoaded",function(){var e=jQuery;if(console.log("pre awLoadAds function call"),adw.is_user_logged_in)void 0!==window.awLoadAds?window.awLoadAds({usePersonalizedAds:!0}):console.error("awLoadAds is undefined");else{void 0!==window.awLoadAds?"u">typeof otGeoContinent&&"EU"===otGeoContinent&&"u">typeof OnetrustActiveGroups?window.awLoadAds({usePersonalizedAds:OnetrustActiveGroups.includes("C0004")}):window.awLoadAds({usePersonalizedAds:!0}):console.error("awLoadAds is undefined"),window.lytics=window.lytics||{},window.lytics.fields=window.lytics.fields||{};var t="unknown",o=Cookies.get("locationCookie"),a={ip:"unknown",country:{iso_code:"unknown"}};if(void 0!==o){var n=JSON.parse(o);a.ip=n.ip,a.country.iso_code=n.country.iso_code,e(document).trigger("aw-ip-detected",a.ip),e("head").append('<meta name="ipaddr" value="'+a.ip+'" />'),a&&a.country&&a.country.iso_code&&(t=a.country.iso_code,e(document).trigger("aw-location-detected",a)),window.lytics.fields.attr_user_country_code=t}}}),(o=jQuery)(window).on("load",function(){o("#wpcf7-f911187-p801333-o1").length&&(document.querySelector(".wpcf7").addEventListener("wpcf7submit",function(e){var t='<span class="wpcf7-not-valid-tip" aria-hidden="true">The field is required.</span>';"BusinessType"==e.detail.inputs[6].name&&""==e.detail.inputs[6].value&&o(t).insertAfter('select[name="BusinessType"]'),"Job-Level-Seniority"==e.detail.inputs[7].name&&""==e.detail.inputs[7].value&&o(t).insertAfter('select[name="Job-Level-Seniority"]'),"Job-Function"==e.detail.inputs[8].name&&""==e.detail.inputs[8].value&&o(t).insertAfter('select[name="Job-Function"]')},!1),o(".wpcf7-submit").on("click",function(e){o(".wpcf7-form-control").each(function(){console.log(o(this).val()),""!==o(this).val()&&o(this).next().find("wpcf7-not-valid-tip").remove()}),""!=o('select[name="recipient"]').val()&&""!=o('input[name="first_name"]').val()&&""!=o('input[name="last_name"]').val()&&""!=o('input[name="email"]').val()&&""!=o('input[name="company"]').val()&&""!=o('input[name="title"]').val()&&""!=o('textarea[name="message"]').val()&&(""===o('select[name="BusinessType"]').val()&&e.preventDefault(),""===o('select[name="Job-Level-Seniority"]').val()&&e.preventDefault(),""===o('select[name="Job-Function"]').val()&&e.preventDefault())}))}),adw.notifications=w.default}();
21//# sourceMappingURL=index.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.