PageSourceSearch

https://praiseindy.com/wp-content/plugins/ione-modules/build/universal-ads/index.js?ver=4aeb00260b134b686d4a

js praiseindy.com collected 2026-09-26 05:50:41 UTC 13,153 bytes, 1 lines download raw bytes

1(()=>{"use strict";const e=window.wp.hooks;function t(e){return new Promise((t,i)=>{const o=document.createElement("script");o.src=e,o.type="text/javascript",o.async=!0,o.onload=()=>t(o),o.onerror=()=>i(new Error(`Script load error for ${e}`)),document.body.appendChild(o)})}let i,o=!1;const s=()=>{let e=0;const t=document.querySelector(".io-header-size-helper");if(t){const i=t.getBoundingClientRect().height;e+=Math.round(i)}const i=document.getElementById("wpadminbar");return i&&"fixed"===window.getComputedStyle(i).position&&(e+=i.getBoundingClientRect().height||0),e};const n=function(){googletag.cmd.push(()=>{googletag.pubads().addEventListener("slotRenderEnded",e=>{if(null===e.size)return;const[t,n]=e.size;if([[1,1],[2,2],[3,3],[300,250],[336,280]].some(e=>e[0]===t&&e[1]===n))return;const d=e.slot,a=document.getElementById(d.getSlotElementId());a.matches(".ad-top .gpt-ad")&&function(e,t){const n=document.getElementsByClassName("ione-ad-top-close")[0];let d=!1,a=!1;const r=(e=!0)=>{d&&(a||(e?(t.style.top="-"+t.getBoundingClientRect().height+"px",a=!0,t.addEventListener("transitionend",l,{once:!0})):l(),n.classList.remove("is-visible")))},l=()=>{t.classList.remove("ione-ad-fixed"),t.style.top=null,a=!1,d=!1},g=e=>{"click"!==e.type&&("keydown"!==e.type||"Enter"!==e.key&&" "!==e.key)||(e.preventDefault(),d&&(o||(o=!0,window.iOneGA.sendEventDirectly("sticky_ad_close",{ad_position:"top",page_url:window.iOneGA.getPageUrl(),device_type:void 0!==window?.iOneUtils?.isMobileDevice&&"function"==typeof window.iOneUtils.isMobileDevice&&window.iOneUtils.isMobileDevice()?"mobile":"desktop"}))),r())};n.addEventListener("click",g),n.addEventListener("keydown",g);const c=e.getBoundingClientRect(),u=t.getBoundingClientRect();new IntersectionObserver((e,o)=>{e.forEach(e=>{e.isIntersecting?(clearTimeout(i),r(!1),i=setTimeout(()=>{o.disconnect()},1250)):(clearTimeout(i),(()=>{if(d)return;d=!0;const e=s();t.classList.add("ione-ad-fixed"),t.style.top=e+"px",n.style.top=e+t.getBoundingClientRect().height+2+"px",n.classList.add("is-visible")})(),i=setTimeout(()=>{r(),o.disconnect()},1500))})},{root:null,rootMargin:`-${s()+u.bottom-c.top}px 0px 0px 0px`,threshold:[0]}).observe(e)}(document.querySelector(".ad-top"),a)})})};console.log("---+ Universal Ione Ads +-----"),window.googletag=window.googletag||{},window.googletag.cmd=googletag.cmd||[],window.ioneAdSlots=window.ioneAdSlots||[];let d=!0,a=!0,r=!0;const l="https://securepubads.g.doubleclick.net/tag/js/gpt.js",g=e=>"string"==typeof window.OnetrustActiveGroups&&window.OnetrustActiveGroups.split(",").includes(e),c=new URL(window.location.href);c.searchParams.has("disable_openwrap")&&(d=!1),c.searchParams.has("disable_aps")&&(a=!1),c.searchParams.has("disable_refresh")&&(r=!1),googletag.cmd.push(()=>{googletag.setConfig({threadYield:"ENABLED_ALL_SLOTS"})});const u=function(){const e=window.location.href,i="//ads.pubmatic.com/AdServer/js/pwt/161483/"+window.ionegpt.pubmatic_profile_id;let o="";if(e.indexOf("pwtv=")>0){const t=/pwtv=(.*?)(&|$)/g.exec(e);t.length>=2&&t[1].length>0&&(o="/"+t[1])}return t(i+o+"/pwt.js")};let p=!1,h=!1;const w=()=>{"function"==typeof window.googletag?.cmd?.push&&(window.googletag.cmd.push(()=>{const e=window.googletag.pubads?.();e&&(g("C0004")?e.setPrivacySettings({nonPersonalizedAds:!1,restrictDataProcessing:!1}):e.setPrivacySettings({nonPersonalizedAds:!0,restrictDataProcessing:!0}))}),window.ione_uads&&"function"==typeof window.ione_uads.applyUoDidSegmentsTargeting&&window.ione_uads.applyUoDidSegmentsTargeting())},m=()=>{if(!p){if(p=!0,d)if(h)window.PWT=window.PWT||{},u();else{h=!0;const e=setTimeout(()=>{t(l),window.PWT=null},500);window.PWT={jsLoaded(){clearTimeout(e),t(l)}},u()}else h||(h=!0,t(l));a&&ionegpt.aps_pub_id&&(window.apstag||(window.apstag={init(){this._Q.push(["i",arguments])},fetchBids(){this._Q.push(["f",arguments])},setDisplayBids(){},targetingKeys:()=>[],_Q:[]},t("//c.amazon-adsystem.com/aax2/apstag.js"))),w(),window.ioneAdSlots&&window.ioneAdSlots.length>0&&window.googletag.cmd.push(()=>{if("function"!=typeof window.ione_uads?.refreshAds)return;const e=window.ioneAdSlots.map(e=>document.getElementById(e.getSlotElementId())).filter(e=>null!==e);e.length>0&&window.ione_uads.refreshAds(e)})}},f=()=>{h||(h=!0,t(l),w())},v=()=>{void 0!==window.OnetrustActiveGroups&&(g("C0004")?m():f())};let b=null;window.addEventListener("OneTrustGroupsUpdated",()=>{void 0!==window.OnetrustActiveGroups&&b&&(clearTimeout(b),b=null),v(),w()}),void 0!==window.OnetrustActiveGroups?v():b=setTimeout(()=>{console.warn("OneTrust consent state timeout - fallback to GPT only"),b=null,f()},2e3),iOneScriptLoader.mediumPriority(()=>{googletag.cmd.push(()=>{const e=document.createElement("link");
1e.id="rich-media-css",e.href="https://s3.amazonaws.com/ads-videoplayer/rich-media-ads-global.css",e.rel="stylesheet",e.type="text/css",document.body.appendChild(e)})});const y=new class{constructor(e,t,i){this.timeLimit=e,this.onLimitCallback=t,this.getAnchorAds=i,this.idsVisible=[],this.idsViewTime={},this.isViewportActive=!0,this.observer=new IntersectionObserver(this.onIntersecting.bind(this),{root:null,rootMargin:"0px",threshold:[0,.5]})}init(){document.addEventListener("visibilitychange",this.onViewportVisibilityChange.bind(this)),this.timeLimit&&setInterval(this.onTick.bind(this),1e3),window.addEventListener("ioneListicleObserved",this.refreshAnchorAds.bind(this))}observe(e){this.observer.observe(e)}unobserve(e){const t=this.idsVisible.indexOf(e.id);this.observer.unobserve(e),e.id&&(-1!==t&&delete this.idsVisible[t],e.id in this.idsViewTime&&delete this.idsViewTime[e.id])}onViewportVisibilityChange(){this.isViewportActive=!document.hidden}idsOverLimit(){const e=[];for(const[t,i]of Object.entries(this.idsViewTime))i>=this.timeLimit&&e.push(t);return e}onTick(){if(!this.isViewportActive)return;this.idsVisible.forEach(e=>{void 0===this.idsViewTime[e]&&(this.idsViewTime[e]=0),this.idsViewTime[e]+=1});const e=this.idsOverLimit();e.length&&(e.forEach(e=>{this.idsViewTime[e]=0}),this.onLimitCallback(e))}onIntersecting(e){e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>=.5?-1===this.idsVisible.indexOf(e.target.id)&&this.idsVisible.push(e.target.id):this.idsVisible=this.idsVisible.filter(t=>t!==e.target.id)})}refreshAnchorAds(){const e=this.getAnchorAds();e.forEach(e=>{this.idsViewTime[e]=0}),this.onLimitCallback(e,{innergallery_refresh:"yes"})}}(ionegpt.viewableRefreshInterval,function(e,t={}){const i=[],o=[];e.forEach(e=>{const t=window.ioneAdSlots.filter(t=>t.getSlotElementId()===e);t.length>0&&(i.push(t[0]),o.push(document.getElementById(e)))}
1),i.forEach(e=>{const t=window.ioneAdSlots.indexOf(e);t>-1&&window.ioneAdSlots.splice(t,1)}),googletag.destroySlots(i),o.forEach(e=>{const i=ione_uads.buildSlot(e);t.refresh="yes",i.setConfig({targeting:t}),window.ioneAdSlots.push(i)}),ione_uads.refreshAds(o)},function(){return window.ioneAdSlots.map(e=>e.getSlotElementId()).filter(e=>e.includes("anchor"))}),_=new IntersectionObserver((e,t)=>{const i=[];e.forEach(e=>{e.isIntersecting&&(i.push(e.target),t.unobserve(e.target))}),ione_uads.refreshAds(i)},{rootMargin:"0px 0px 100% 0px",threshold:[0]});window.ione_uads={ppid:null,buildSlot(e){const t=JSON.parse(e.dataset.config),i=!!t.is_out_of_page,o=t.sizes;let s,n=null;return i?s=googletag.defineOutOfPageSlot(t.ad_unit,e.id):(o.hasOwnProperty("desktop")&&(n=googletag.sizeMapping().addSize(ionegpt.mobile_breakpoint,o.desktop).addSize([0,0],o.mobile).build()),s=googletag.defineSlot(t.ad_unit,[1,1],e.id),null!==n&&s.defineSizeMapping(n),y.observe(e)),s.setConfig({targeting:t.targeting}).addService(googletag.pubads()),s},apsPromise(e,t=2e3){if(!(a&&window.apstag&&ionegpt.aps_pub_id&&g("C0004")))return!1;this.apstagHasInitialized||(window.apstag.init({pubID:ionegpt.aps_pub_id,adServer:"googletag"}),this.apstagHasInitialized=!0);const i=[];return e.forEach(function(e){const t={slotID:e.getSlotElementId(),slotName:e.getAdUnitPath(),slotParams:{}},o=e.getTargeting("pos");if(o[0]&&-1!==["skin","native","inimage"].indexOf(o[0]))return;t.slotParams.pos=o[0];const s=document.getElementById(e.getSlotElementId()),n=JSON.parse(s.dataset.config);window.innerWidth<ionegpt.mobile_breakpoint[0]?t.sizes=n.sizes.mobile:t.sizes=n.sizes.desktop,t.sizes.length>0&&i.push(t)}),0!==i.length&&new Promise(e=>{window.apstag.fetchBids({slots:i,timeout:t},function(){googletag.cmd.push(function(){window.apstag.setDisplayBids(),e()})})})},openWrapPromise:(e,t=2e3)=>!d||null===window.PWT||window.PWT&&void 0===window.PWT.generateConfForGPT||!g("C0004")?null:new Promise(i=>{const o=setTimeout(()=>{i()},t);PWT.requestBids(PWT.generateConfForGPT(e),function(e){PWT.addKeyValuePairsToGPTSlots(e),PWT.ow_BidsReceived=!0,clearTimeout(o),i()})}),refreshAds(e=[]){if(e.length>0){const t=[];e.forEach(e=>{const i=window.ioneAdSlots.filter(t=>t.getSlotElementId()===e.id);i.length>0&&t.push(i[0])}),Promise.all([this.apsPromise(t),this.openWrapPromise(t)]).then(()=>{googletag.pubads().refresh(t,{changeCorrelator:!1})})}},queueApiTasks:{viewableTimeObserverDisableForSlot(e){const t=document.getElementById(e);t&&y&&y.unobserve&&(console.log("Disabling viewable refresh for",e),y.unobserve(t),e.includes("anchor")&&window.dispatchEvent(new CustomEvent("ioneStopRefreshForAnchor")))}},queueApiPush(e){return e&&ione_uads.queueApiTasks&&ione_uads.queueApiTasks[e]?ione_uads.queueApiTasks[e].apply(ione_uads,[].slice.call(arguments,1)):null},buildAdsAndRefresh(){const e=[];document.querySelectorAll(".gpt-ad").forEach(t=>{if(t.dataset.adLoaded)return;t.dataset.adLoaded="true";const i=JSON.parse(t.dataset.config),o=this.buildSlot(t);window.ioneAdSlots.push(o),googletag.display(t.id),i.lazyload?_.observe(t):e.push(t)}),e.length>0&&this.refreshAds(e)},applyUoDidSegmentsTargeting(){"function"==typeof window.googletag?.cmd?.push&&window.googletag.cmd.push(()=>{const t=googletag.pubads?.();if(!t)return;const i=(0,e.applyFilters)("ione__ione_modules__universal_ads__uo_did_segments",{});i?.userId?(t.setPublisherProvidedId(i.userId),googletag.setConfig({targeting:{auth:"true"}})):googletag.setConfig({targeting:{auth:"false"}}),Array.isArray(i?.segments)&&0<i.segments.length?googletag.setConfig({targeting:{seg:i.segments}}):googletag.setConfig({targeting:{seg:null}})})},init(){googletag.cmd.push(()=>{const e={Test:ioneAdUtils.getEnvironment(),rosviews:ioneAdUtils.viewCount().toString(),utm_medium:ioneAdUtils.getUTM("utm_medium"),utm_campaign:ioneAdUtils.getUTM("utm_campaign"),utm_source:ioneAdUtils.getUTM("utm_source"),referral_url:ioneAdUtils.getReferrer()},t={...ionegpt.targeting,...e},i=Object.keys(t).filter(e=>{const i=t[e];return null!=i&&""!==i&&(!Array.isArray(i)||0!==i.length)}).reduce((e,i)=>({...e,[i]:t[i]}),{});googletag.setConfig({targeting:i,disableInitialLoad:!0,collapseDiv:"ON_NO_FILL",singleRequest:!0}),googletag.pubads().enableAsyncRendering(),g("C0004")?googletag.pubads().setPrivacySettings({nonPersonalizedAds:!1,restrictDataProcessing:!1}):googletag.pubads().setPrivacySettings({nonPersonalizedAds:!0,restrictDataProcessing:!0}),this.applyUoDidSegmentsTargeting(),googletag.enableServices(),googletag.pubads().addEventListener("slotRenderEnded",e=>{if(null!==e.size){const t=e.slot,i=document.getElementById(t.getSlotElementId()).querySelector("div"),o=e.size[0];if(o<300)return i.style.width="",void(i.style.margin="");i.style.width=o+"px",i.style.margin="0 auto"}}
1),this.buildAdsAndRefresh(),ionegpt.viewableRefreshInterval>=15&&r&&y.init()}),n(),window.vfQ=window.vfQ||[],window.vfQ.push(()=>{if("undefined"==typeof viafoura_ads)return;const e=(e,t)=>{const i=document.getElementById(e);i&&t&&(i.dataset.config=JSON.stringify(t),i.classList.add("gpt-ad"),googletag.cmd.push(()=>{this.buildAdsAndRefresh()}))},t=viafoura_ads?.active_conversations_ad_data?viafoura_ads.active_conversations_ad_data:null,i=viafoura_ads?.in_comment_ad_data?viafoura_ads.in_comment_ad_data:null;t&&(window.vf.$subscribe("vf-ads","requestContentRecirculationAd",i=>e(i,t)),window.vf.$subscribe("vf-ads","requestStandaloneAd",i=>e(i,t)),window.vf.$subscribe("vf-ads","requestConversationStarter",i=>e(i,t))),i&&window.vf.$subscribe("vf-ads","requestCommentAd",t=>e(t,i))})},setPublisherProvidedId(e){this.ppid=e;const t=document.createElement("script");t.async=!0,t.type="text/javascript",t.id="google-pcd-tag",t.src="https://pagead2.googlesyndication.com/pagead/js/pcd.js",t.setAttribute("data-audience-pixel",`dc_iu=/4052/DFPAudiencePixel;dc_seg=S1;ppid=${e}`),document.body.appendChild(t)}},iOneScriptLoader.mediumPriority(()=>{if(!document.cookie.split("; ").find(e=>e.startsWith("receive-cookie-deprecation="))){const e=new Date;e.setTime(e.getTime()+15552e6);const t="; expires="+e.toUTCString(),i=window.location.hostname.replace(/[^\w.-]/g,"");document.cookie="receive-cookie-deprecation=1"+t+"; path=/; domain="+i+"; Secure; HttpOnly; SameSite=None; Partitioned;"}"cookieDeprecationLabel"in navigator?navigator.cookieDeprecationLabel.getValue().then(e=>{ionegpt.targeting.deprecationlabel=e}).finally(()=>{ione_uads.init()}):ione_uads.init()}),window.ioneAdQueue=window.ioneAdQueue||[],window.ioneAdQueue.push=ione_uads.queueApiPush})();

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.