Peach Pasta Salad with Arugula and Tomatoes

[] *”,”skip”:6,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“tablet”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:”body.single, body.page:not(.home)”,”spacing”:0.7,”max”:4,”lazy”:true,”lazyMax”:11,”elementSelector”:”.entry-content > *”,”skip”:0,”classNames”:[],”position”:”afterend”,”every”:0,”enabled”:true},”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“phone”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:”body.single, body.page:not(.home)”,”spacing”:0.85,”max”:4,”lazy”:true,”lazyMax”:11,”elementSelector”:”.entry-content > *”,”skip”:5,”classNames”:[],”position”:”afterend”,”every”:0,”enabled”:true},”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Recipe”],”key”:”location”}],”devices”:[“tablet”,”desktop”],”name”:”Recipe”,”sticky”:false,”location”:”Recipe”,”dynamic”:{“pageSelector”:””,”spacing”:0.7,”max”:4,”lazy”:false,”lazyMax”:null,”elementSelector”:”.wprm-recipe-ingredients-container li, .wprm-recipe-instructions-container li, .wprm-recipe-notes-container span, .wprm-recipe-notes-container li, .wprm-nutrition-label-container”,”skip”:0,”classNames”:[],”position”:”beforebegin”,”every”:1,”enabled”:true},”adSizes”:[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],”priority”:-101,”autosize”:true},{“sequence”:4,”targeting”:[{“value”:[“Recipe”],”key”:”location”}],”devices”:[“phone”],”name”:”Recipe_4″,”sticky”:false,”location”:”Recipe”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:1,”lazy”:false,”lazyMax”:null,”elementSelector”:”.wprm-recipe-ingredients-container”,”skip”:0,”classNames”:[],”position”:”beforebegin”,”every”:1,”enabled”:true},”adSizes”:[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],”priority”:-104,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Recipe”],”key”:”location”}],”devices”:[“phone”],”name”:”Recipe”,”sticky”:false,”location”:”Recipe”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:3,”lazy”:false,”lazyMax”:null,”elementSelector”:”.wprm-recipe-ingredients-container, .wprm-recipe-instructions-container, .wprm-recipe-notes-container”,”skip”:0,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”adSizes”:[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],”priority”:-101,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Recipe”],”key”:”location”}],”devices”:[“desktop”,”tablet”],”name”:”Recipe”,”sticky”:false,”location”:”Recipe”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:1,”lazy”:false,”lazyMax”:null,”elementSelector”:”#zlrecipe-ingredients-list”,”skip”:0,”classNames”:[],”position”:”afterbegin”,”every”:1,”enabled”:true},”adSizes”:[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],”priority”:-101,”autosize”:true},{“sequence”:3,”targeting”:[{“value”:[“Recipe”],”key”:”location”}],”devices”:[“phone”],”name”:”Recipe_3″,”sticky”:false,”location”:”Recipe”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:0,”lazy”:true,”lazyMax”:1,”elementSelector”:”#zlrecipe-ingredients”,”skip”:0,”classNames”:[],”position”:”beforebegin”,”every”:1,”enabled”:true},”adSizes”:[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],”priority”:-103,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Recipe”],”key”:”location”}],”devices”:[“phone”],”name”:”Recipe”,”sticky”:false,”location”:”Recipe”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:1,”lazy”:false,”lazyMax”:null,”elementSelector”:”#zlrecipe-instructions”,”skip”:0,”classNames”:[],”position”:”afterbegin”,”every”:1,”enabled”:true},”adSizes”:[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],”priority”:-101,”autosize”:true},{“sequence”:2,”targeting”:[{“value”:[“Recipe”],”key”:”location”}],”devices”:[“phone”],”name”:”Recipe_2″,”sticky”:false,”location”:”Recipe”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:1,”lazy”:false,”lazyMax”:null,”elementSelector”:”#zlrecipe-instructions-list”,”skip”:0,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”adSizes”:[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],”priority”:-102,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“desktop”,”tablet”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:”body.search”,”spacing”:0,”max”:2,”lazy”:true,”lazyMax”:2,”elementSelector”:”.content article”,”skip”:2,”classNames”:[],”position”:”afterend”,”every”:6,”enabled”:true},”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“phone”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:”body.search”,”spacing”:0,”max”:2,”lazy”:true,”lazyMax”:2,”elementSelector”:”.content article”,”skip”:1,”classNames”:[],”position”:”afterend”,”every”:4,”enabled”:true},”adSizes”:[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],”priority”:199,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Below Post”],”key”:”location”}],”devices”:[“tablet”,”phone”,”desktop”],”name”:”Below_Post”,”sticky”:false,”location”:”Below Post”,”dynamic”:{“pageSelector”:”body.single, body.page”,”spacing”:0,”max”:0,”lazy”:true,”lazyMax”:1,”elementSelector”:”.entry-content”,”skip”:0,”classNames”:[],”position”:”afterend”,”every”:0,”enabled”:true},”adSizes”:[[728,90],[336,280],[320,50],[468,60],[250,250],[1,1],[320,100],[300,250],[970,250],[728,250]],”priority”:99,”autosize”:true},{“sequence”:null,”targeting”:[{“value”:[“Footer”],”key”:”location”},{“value”:true,”key”:”sticky”}],”devices”:[“phone”,”tablet”,”desktop”],”name”:”Footer”,”sticky”:true,”location”:”Footer”,”dynamic”:{“pageSelector”:””,”spacing”:0,”max”:1,”lazy”:false,”lazyMax”:null,”elementSelector”:”body”,”skip”:0,”classNames”:[],”position”:”beforeend”,”every”:1,”enabled”:true},”adSizes”:[[320,50],[320,100],[728,90],[970,90],[468,60],[1,1],[300,50]],”priority”:-1,”autosize”:true}],”adDensityLayout”:{“mobile”:{“adDensity”:0.28,”onePerViewport”:false},”pageOverrides”:[{“mobile”:{“adDensity”:0.3,”onePerViewport”:false},”pageSelector”:”body.blog, body.search, body.archive”,”desktop”:{“adDensity”:0.26,”onePerViewport”:false}}],”desktop”:{“adDensity”:0.26,”onePerViewport”:false}},”adDensityEnabled”:true,”siteExperiments”:[],”videoPlayers”:{“contextual”:{“autoplayCollapsibleEnabled”:false,”overrideEmbedLocation”:false,”defaultPlayerType”:”static”},”videoEmbed”:”wordpress”,”footerSelector”:””,”players”:[{“devices”:[“desktop”,”mobile”],”description”:””,”id”:4050760,”title”:”Stationary related player – desktop and mobile”,”type”:”stationaryRelated”,”enabled”:true,”playerId”:”bD0ohhX8″},{“playlistId”:””,”pageSelector”:””,”devices”:[“desktop”],”description”:””,”elementSelector”:””,”skip”:0,”id”:4050761,”position”:”afterend”,”title”:””,”type”:”stickyRelated”,”enabled”:true,”playerId”:”bD0ohhX8″},{“playlistId”:””,”pageSelector”:”body.single, body.page:not(.home)”,”devices”:[“mobile”],”mobileLocation”:”top-center”,”description”:””,”skip”:1,”title”:””,”type”:”stickyRelated”,”enabled”:true,”elementSelector”:”.entry-content > p “,”id”:4050762,”position”:”afterend”,”saveVideoCloseState”:false,”shuffle”:false,”playerId”:”bD0ohhX8″},{“playlistId”:”HIbPjUzo”,”pageSelector”:”body.single, body.page:not(.home)”,”devices”:[“desktop”],”description”:””,”skip”:1,”title”:”MY OTHER VIDEOS”,”type”:”stickyPlaylist”,”enabled”:true,”footerSelector”:””,”elementSelector”:”.entry-content > p”,”id”:4050763,”position”:”afterend”,”saveVideoCloseState”:false,”shuffle”:true,”playerId”:”a6xDAtoQ”},{“playlistId”:”HIbPjUzo”,”pageSelector”:””,”devices”:[“desktop”],”description”:””,”elementSelector”:””,”skip”:0,”id”:4050765,”position”:”afterend”,”title”:””,”type”:”sekindo”,”enabled”:false,”playerId”:””},{“playlistId”:”HIbPjUzo”,”pageSelector”:””,”devices”:[“mobile”],”description”:””,”elementSelector”:””,”skip”:0,”id”:4050766,”position”:”afterend”,”title”:””,”type”:”sekindo”,”enabled”:false,”playerId”:””},{“playlistId”:”HIbPjUzo”,”pageSelector”:”body.single, body.page:not(.home)”,”devices”:[“mobile”],”mobileLocation”:”top-center”,”description”:””,”skip”:1,”title”:”MY OTHER VIDEOS”,”type”:”stickyPlaylist”,”enabled”:true,”footerSelector”:””,”elementSelector”:”.entry-content > p”,”id”:4050764,”position”:”afterend”,”saveVideoCloseState”:false,”shuffle”:true,”playerId”:”a6xDAtoQ”}],”partners”:{“roundel”:true,”yahoossp”:true,”oneVideo”:true,”criteo”:true,”mediaGrid”:true,”gumgum”:true,”telaria”:true,”colossus”:true,”districtM”:true,”amazonUAM”:true,”kargo”:true,”thirtyThreeAcross”:true,”stickyOutstream”:{“mobile”:{“enabled”:true},”desktop”:{“enabled”:true},”blockedPageSelectors”:””,”allowForPageWithStickyPlayer”:{“enabled”:false}},”sharethrough”:true,”rubicon”:true,”appNexus”:true,”conversant”:true,”tripleLift”:true,”openx”:true,”pubMatic”:true,”spotx”:true,”indexExchange”:true}}};]]> Peach Pasta Salad with Arugula and Tomatoes – Julia’s Album =t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?”Object is not iterable.”:”Symbol.iterator is not defined.”)}function a(t,e){var n=”function”==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e– >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function l(t,e,n){if(n||2===arguments.length)for(var i,o=0,r=e.length;oe.top+e.height/2},t.playerVisible=function(t){var e=t.getBoundingClientRect();return window.innerHeight>e.top},t.createQueryString=function(t){return Object.keys(t).map((function(e){return””.concat(e,”=”).concat(t[e])})).join(“&”)},t.createEncodedQueryString=function(t){return Object.keys(t).map((function(e){return””.concat(e,”=”).concat(encodeURIComponent(t[e]))})).join(“&”)},t.setMobileLocation=function(t){var e,n;return”top-left”===(t=t||”bottom-right”)?t=”adthrive-collapse-top-left”:”top-right”===t?t=”adthrive-collapse-top-right”:”bottom-left”===t?t=”adthrive-collapse-bottom-left”:”bottom-right”===t?t=”adthrive-collapse-bottom-right”:”top-center”===t&&(e=navigator.userAgent,n=/Tablet|iPad|Playbook|Nook|webOS|Kindle|Android (?!.*Mobile).*Safari/i.test(e),t=/Mobi|iP(hone|od)|Opera Mini/i.test(e)&&!n?”adthrive-collapse-top-center”:”adthrive-collapse-bottom-right”),t},t}(),y=function(e){this._clsOptions=e,this.removeVideoTitleWrapper=t(this._clsOptions.siteAds.adOptions.removeVideoTitleWrapper,!1);var n=this._clsOptions.siteAds.videoPlayers;this.footerSelector=t(n&&n.footerSelector,””),this.players=t(n&&n.players.map((function(t){return t.mobileLocation=h.setMobileLocation(t.mobileLocation),t})),[]),this.contextualSettings=n&&n.contextual},f=function(t){this.mobileStickyPlayerOnPage=!1,this.playlistPlayerAdded=!1,this.contextualPlayerAdded=!1,this.sekindoPlayerAdded=!1,this.footerSelector=””,this.removeVideoTitleWrapper=!1,this.videoAdOptions=new y(t),this.players=this.videoAdOptions.players,this.contextualSettings=this.videoAdOptions.contextualSettings,this.removeVideoTitleWrapper=this.videoAdOptions.removeVideoTitleWrapper,this.footerSelector=this.videoAdOptions.footerSelector},m=function(t){function e(e){var n=t.call(this)||this;return n._probability=e,n}return i(e,t),e.prototype.get=function(){if(this._probability<0||this._probability>1)throw new Error(“Invalid probability”);return Math.random()=t.dateStart,o=null===t.dateEnd||Date.now()=e?”desktop”:n>=t?”tablet”:”phone”}(i,o),this._config=new O(t),this._clsOptions.enabledLocations=this._config.enabledLocations}return n.prototype.start=function(){var e,n,i,o=this;try{!function(t){var e=document.body,n=”adthrive-device-“.concat(t);if(!e.classList.contains(n))try{e.classList.add(n)}catch(t){document.createElement(“_”)}}(this._device);var r=(e=this._device,n=this._clsOptions.siteAds.adUnits,i=new b,n.filter((function(t){return void 0!==t.dynamic&&t.dynamic.enabled})).map((function(n){var o=n.location.replace(/s+/g,”_”);return{auctionPriority:P.get(o)||8,location:o,sequence:t(n.sequence,1),sizes:E(n.adSizes).filter((function(t){return w(n.location,t,e,i)})),devices:n.devices,pageSelector:t(n.dynamic.pageSelector,””).trim(),elementSelector:t(n.dynamic.elementSelector,””).trim(),position:t(n.dynamic.position,”beforebegin”),max:Math.floor(t(n.dynamic.max,0)),spacing:t(n.dynamic.spacing,0),skip:Math.floor(t(n.dynamic.skip,0)),every:Math.max(Math.floor(t(n.dynamic.every,1)),1),classNames:n.dynamic.classNames||[],sticky:”Footer”===n.location||n.sticky,stickyOverlapSelector:t(n.stickyOverlapSelector,””).trim(),autosize:n.autosize,special:t(n.targeting,[]).filter((function(t){return”special”===t.key})).reduce((function(t,e){return t.concat.apply(t,l([],a(e.value),!1))}),[]),lazy:t(n.dynamic.lazy,!1),lazyMax:t(n.dynamic.lazyMax,2),lazyMaxDefaulted:0!==n.dynamic.lazyMax&&!n.dynamic.lazyMax}}))).filter((function(t){return o._locationEnabled(t)})).filter((function(t){return function(t,e){return t.devices.includes(e)}(t,o._device)})).filter((function(t){return 0===(e=t).pageSelector.length||null!==document.querySelector(e.pageSelector);var e}));this.inject(r).forEach((function(t){return o._clsOptions.setInjectedSlots(t)}))}catch(t){}},n.prototype.inject=function(e,n){void 0===n&&(n=document);var i=this._clsOptions.siteAds,o=t(i.adDensityEnabled,!0),r=i.adDensityLayout&&o,s=e.filter((function(t){return r?”Content”!==t.location:t})),c=e.filter((function(t){return r?”Content”===t.location:null}));return l(l([],a(s.length?this._injectNonDensitySlots(s,n):[]),!1),a(c.length?this._injectDensitySlots(c,n):[]),!1)},n.prototype._injectNonDensitySlots=function(t,n){var i,o,s=this;void 0===n&&(n=document);var c=[],d=[];try{for(var u=r(t),p=u.next();!p.done;p=u.next()){var h=p.value,y=0,f=0,m=0;h.spacing>0&&(y=window.innerHeight*h.spacing,f=y);var _=this._repeatDynamicAds(h),g=this.getElements(h.elementSelector,n);h.skip;for(var v=function(t){if(m+1>_.length)return”break”;var i=g[t];if(y>0){var o=e(i).bottom;if(o<=f)return"continue";f=o+y}var r=_[m],s="".concat(r.location,"_").concat(r.sequence);c.some((function(t){return t.name===s}))&&(m+=1);var u=b.getDynamicElementId(r),p="adthrive-".concat(h.location.replace("_","-").toLowerCase()),v=l([p,"".concat(p,"-").concat(h.sequence)],a(h.classNames),!1),S=b.addAd(i,u,h.position,v);if(S){var P=A(r,S);if(P.length){var E={clsDynamicAd:h,dynamicAd:r,element:S,sizes:P,name:s,infinite:n!==document};c.push(E),d.push({location:r.location,element:S}),"Recipe"===h.location&&++b._recipeCount,m+=1}i=S}},b=this,S=h.skip;S0?[p]:[]),!1)),!1));return this._pubLog={onePerViewport:c,targetDensity:r,targetDensityUnits:d,combinedMax:p},{onePerViewport:c,targetAll:u,targetDensityUnits:d,combinedMax:p,numberOfUnits:h}},n.prototype._determineOverrides=function(t){var e=this;return t.filter((function(t){var e=u(t.pageSelector);return""===t.pageSelector||e.elements&&e.elements.length})).map((function(t){return t[e._densityDevice]}))},n.prototype._shouldTargetAllEligible=function(t){return t===this._densityMax},n.prototype._getTargetDensityUnits=function(t){return Math.floor(t*this._mainContentHeight/(1-t)/this._minDivHeight)-this._recipeCount},n.prototype._getCombinedMax=function(e,n){return void 0===n&&(n=document),t(e.filter((function(t){var e;try{e=n.querySelector(t.elementSelector)}catch(t){}return e})).map((function(t){return Number(t.max)+Number(t.lazyMaxDefaulted?0:t.lazyMax)})).sort((function(t,e){return e-t}))[0],0)},n.prototype._elementLargerThanMainContent=function(t){return t.offsetHeight>=this._mainContentHeight&&this._totalAvailableElements.length>1},n.prototype._elementDisplayNone=function(t){var e=window.getComputedStyle(t,null).display;return e&&”none”===e||”none”===t.style.display},n.prototype._isBelowMaxes=function(t,e){return this._adInjectionMap.map.lengthi?window.innerHeight:i},n.prototype._useWiderSpacing=function(t,e){return this._mainContentHeight/Math.min(t,e)},n.prototype._useSmallestSpacing=function(t){return t&&window.innerHeight>this._absoluteMinimumSpacingByDevice?window.innerHeight:this._absoluteMinimumSpacingByDevice},n.prototype._moreAvailableElementsThanUnitsToInject=function(t,e){return this._totalAvailableElements.length>t||this._totalAvailableElements.length>e},n.prototype._logDensityInfo=function(t,e,n){var i=this._pubLog;i.onePerViewport,i.targetDensity;i.targetDensityUnits;i.combinedMax,this._totalAvailableElements.length},n.prototype._checkElementSpacing=function(t){var e=t.dynamicAd,n=t.element,i=t.insertEvery,r=t.targetAll,a=t.target,l=void 0===a?document:a;(this._isFirstAdInjected()||this._hasProperSpacing(n,e,r,i))&&(++this._totalContentInserted,this._markSpotForContentAd(n,o({},e),l))},n.prototype._isFirstAdInjected=function(){return!this._adInjectionMap.map.length},n.prototype._markSpotForContentAd=function(t,e,n){void 0===n&&(n=document);var i=”beforebegin”===e.position||”afterbegin”===e.position;this._adInjectionMap.add(t,this._getElementCoords(t,i),e,n),this._adInjectionMap.sort()},n.prototype._hasProperSpacing=function(t,e,n,i){var o=”beforebegin”===e.position||”afterbegin”===e.position,r=”beforeend”===e.position||”afterbegin”===e.position,a=n||this._isElementFarEnoughFromOtherAdElements(t,i,o),l=r||this._isElementNotInRow(t,o),s=-1===t.id.indexOf(“AdThrive_Below_Post”);return a&&l&&s},n.prototype._isElementFarEnoughFromOtherAdElements=function(t,e,n){for(var i=this._getElementCoords(t,n),o=!1,r=0;ra&&(!l||i+et.offsetHeight?e:t}))||document.body},n.prototype._getElementsFromDynamicAdEntry=function(t,e){var n=this;void 0===e&&(e=document);var i=this._getLongestArticleTag(e),o=i?[i]:[],r=[];t.forEach((function(t){var i=Array.from(n.getElements(t.elementSelector,e)).slice(0,t.skip);n._getSelectors(t.elementSelector).forEach((function(a){for(var l=e.querySelectorAll(a),s=function(e){var a=l[e];if(n._adInjectionMap.map.some((function(t){return t.el.isEqualNode(a)})))return”continue”;var s=a&&a.parentElement;s&&s!==document.body?o.push(s):o.push(a),-1===i.indexOf(a)&&r.push({dynamicAd:t,element:a})},c=0;ct.offsetHeight?e:t}));return n&&n.offsetHeight>1.5*window.innerHeight?n:null},n.prototype._getSelectors=function(t){return t.includes(“,”)?t.split(“,”):[t]},n.prototype._getElementCoords=function(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect();return(e?n.top:n.bottom)+window.scrollY},n.prototype._addContentAd=function(t,e,n){void 0===n&&(n=document);var i=null,o=”adthrive-“.concat(e.location.replace(“_”,”-“).toLowerCase()),r=””.concat(o,”-“).concat(e.sequence),s=this.addAd(t,this.getDynamicElementId(e),e.position,l([o,r],a(e.classNames),!1));if(s){var c=A(e,s);if(c.length)s.style.minHeight=this.locationToMinHeight[e.location],i={clsDynamicAd:e,dynamicAd:e,element:s,sizes:c,name:””.concat(e.location,”_”).concat(e.sequence),infinite:n!==document}}return i},n.prototype.getDynamicElementId=function(t){return””.concat(“AdThrive”,”_”).concat(t.location,”_”).concat(t.sequence,”_”).concat(this._device)},n.prototype.getElements=function(t,e){return void 0===e&&(e=document),e.querySelectorAll(t)},n.prototype.addAd=function(t,e,n,i){if(void 0===i&&(i=[]),!document.getElementById(e)){var o=”);t.insertAdjacentHTML(n,o)}return document.getElementById(e)},n.prototype._repeatDynamicAds=function(e){for(var n=[],i=e.lazy?t(this.locationMaxLazySequence.get(e.location),0):0,r=e.max,a=e.lazyMax,l=0===i&&e.lazy?r+a:Math.min(Math.max(i-e.sequence+1,0),r+a),s=Math.max(r,l),c=0;c=r;n.push(o(o({},e),{sequence:d,lazy:u}))}return n},n.prototype._locationEnabled=function(t){var e=this._clsOptions.enabledLocations.includes(t.location),n=this._clsOptions.disableAds&&this._clsOptions.disableAds.all||document.body.classList.contains(“adthrive-disable-all”),i=!document.body.classList.contains(“adthrive-disable-content”)&&!this._clsOptions.disableAds.reasons.has(“content_plugin”);return e&&!n&&i},n}();!function(t){t.Video_Collapse_Autoplay_SoundOff=”Video_Collapse_Autoplay_SoundOff”,t.Video_Individual_Autoplay_SOff=”Video_Individual_Autoplay_SOff”,t.Video_Coll_SOff_Smartphone=”Video_Coll_SOff_Smartphone”,t.Video_In_Post_ClicktoPlay_SoundOn=”Video_In-Post_ClicktoPlay_SoundOn”}(M||(M={})),function(t){t.StickySekindo=”stickySekindo”,t.StaticSekindo=”staticSekindo”,t.None=”none”}(C||(C={}));var j,x=function(t){function e(){var e=t.call(this)||this;return e.key=”sekho”,e._result=!1,e._choices=[{choice:!0},{choice:!1}],e._result=e.run(),e.setExperimentKey(),e}return i(e,t),Object.defineProperty(e.prototype,”result”,{get:function(){return this._result},enumerable:!1,configurable:!0}),e.prototype.run=function(){return new m(.05).get()},e}(_),R=function(t){function e(e,n){var i=t.call(this,e,(new x).result,”ClsVideoInsertion”)||this;return i._videoConfig=e,i._clsOptions=n,i._IN_POST_SELECTOR=”.adthrive-video-player”,i._WRAPPER_BAR_HEIGHT=36,i._playersAddedFromPlugin=[],i}return i(e,t),e.prototype.init=function(){this._initializePlayers()},e.prototype._wrapJWPlayerWithCLS=function(t,e,n){if(void 0===n&&(n=0),t.parentNode){var i=t.offsetWidth*(9/16),o=this._createGenericCLSWrapper(i,e,n);t.parentNode.insertBefore(o,t),o.appendChild(t)}},e.prototype._createSekindoCLSWrapper=function(t,e){var n=this._getTitleHeight(document.createElement(“h4”));return this._createGenericCLSWrapper(t,e,n)},e.prototype._createGenericCLSWrapper=function(t,e,n){var i=document.createElement(“div”);return i.id=”cls-video-container-“.concat(e),i.className=”adthrive”,i.style.minHeight=””.concat(t+n,”px”),i},e.prototype._getTitleHeight=function(t){t.innerText=”Title”,t.style.visibility=”hidden”,document.body.appendChild(t);var e=window.getComputedStyle(t),n=parseInt(e.height,10),i=parseInt(e.marginTop,10),o=parseInt(e.marginBottom,10);return document.body.removeChild(t),Math.min(n+o+i,50)},e.prototype._initializePlayers=function(){var t=document.querySelectorAll(this._IN_POST_SELECTOR);t.length&&this._initializeRelatedPlayers(t),this._shouldRunAutoplayPlayers()&&this._determineAutoplayPlayers()},e.prototype._createStationaryRelatedPlayer=function(t,e){this._device,M.Video_In_Post_ClicktoPlay_SoundOn,e&&t.mediaId&&(this._wrapJWPlayerWithCLS(e,t.mediaId),this._playersAddedFromPlugin.push(t.mediaId))},e.prototype._createStickyRelatedPlayer=function(t,e){if(this._device,M.Video_Individual_Autoplay_SOff,this._stickyRelatedOnPage=!0,this._videoConfig.mobileStickyPlayerOnPage=”mobile”===this._device,e&&t.position&&t.mediaId){var n=document.createElement(“div”);e.insertAdjacentElement(t.position,n);var i=document.createElement(“h3″);i.style.margin=”10px 0”;var o=this._getTitleHeight(i);this._wrapJWPlayerWithCLS(n,t.mediaId,this._WRAPPER_BAR_HEIGHT+o),this._playersAddedFromPlugin.push(t.mediaId)}},e.prototype._createSekindoPlayer=function(t,e){var n=t.playlistId;o(o({},t),{classNames:[]});var i=”mobile”===this._device?{width:340,height:260}:{width:320,height:250},r=this._createSekindoCLSWrapper(i.height,n);e.insertAdjacentElement(t.position,r),this._playersAddedFromPlugin.push(n)},e.prototype._createPlaylistPlayer=function(t,e){var n=t.playlistId;this._videoConfig.mobileStickyPlayerOnPage=!0;var i=document.createElement(“div”);e.insertAdjacentElement(t.position,i),this._wrapJWPlayerWithCLS(i,n,this._WRAPPER_BAR_HEIGHT),this._playersAddedFromPlugin.push(“playlist-“.concat(n))},e.prototype._isVideoAllowedOnPage=function(){var t=this._clsOptions.disableAds;return t&&t.video?(t.reasons.has(“video_tag”)||t.reasons.has(“video_plugin”)||t.reasons.has(“video_page”),!1):!this._clsOptions.videoDisabledFromPlugin},e}(function(t){function e(e,n,i){var o=t.call(this)||this;o._videoConfig=e,o._component=i,o._stickyRelatedOnPage=!1,o._contextualMediaIds=[];var r=o._videoConfig.players||[];o._device=c()?”desktop”:”mobile”,o._potentialPlayerMap=o._setPotentialPlayerMap(n);var a=r.filter((function(t){return”stationaryRelated”===t.type&&t.enabled}));return o._potentialPlayerMap.stationaryRelated=a,o}return i(e,t),e.prototype._setPotentialPlayerMap=function(t){var e=this,n=this._videoConfig.players,i={stickyRelated:[],stickyPlaylist:[],sekindo:[],stationaryRelated:[]};return n&&n.length?n.filter((function(t){var n;return null===(n=t.devices)||void 0===n?void 0:n.includes(e._device)})).reduce((function(n,i){return n[i.type]||(v.event(e._component,”constructor”,”Unknown Video Player Type detected”,i.type),n[i.type]=[]),i.enabled&&(t&&”sekindo”===i.type||n[i.type].push(i)),n}),i):i},e.prototype._checkPlayerSelectorOnPage=function(t){var e=this,n=this._potentialPlayerMap[t].map((function(t){return{player:t,playerElement:e._getPlacementElement(t)}}));return n.length?n[0]:{player:null,playerElement:null}},e.prototype._getOverrideElement=function(t,e,n){if(t&&e){var i=document.createElement(“div”);e.insertAdjacentElement(t.position,i),n=i}else{var o=this._checkPlayerSelectorOnPage(“stickyPlaylist”),r=o.player,a=o.playerElement;if(r&&a){i=document.createElement(“div”);a.insertAdjacentElement(r.position,i),n=i}}return n},e.prototype._shouldOverrideElement=function(t){var e=t.getAttribute(“override-embed”);return”true”===e||”false”===e?”true”===e:!!this._videoConfig.contextualSettings&&this._videoConfig.contextualSettings.overrideEmbedLocation},e.prototype._getPlacementElement=function(t){var e=u(t.pageSelector),n=d(t.elementSelector);return e.valid?t.pageSelector&&!e.elements.length?(v.event(“VideoUtils”,”getPlacementElement”,new Error(“PSNF: “.concat(t.pageSelector,” does not exist on the page”))),null):n.valid?n.elements.length>t.skip?n.elements[t.skip]:(v.event(“VideoUtils”,”getPlacementElement”,new Error(“ESNF: “.concat(t.elementSelector,” does not exist on the page”))),null):null:null},e.prototype._getEmbeddedPlayerType=function(t){var e=t.getAttribute(“data-player-type”);return e&&”default”!==e||(e=this._videoConfig.contextualSettings?this._videoConfig.contextualSettings.defaultPlayerType:”static”),this._stickyRelatedOnPage&&(e=”static”),e},e.prototype._getUnusedMediaId=function(t){var e=t.getAttribute(“data-video-id”);return!(!e||this._contextualMediaIds.includes(e))&&(this._contextualMediaIds.push(e),e)},e.prototype._createRelatedPlayer=function(t,e,n){“collapse”===e?this._createCollapsePlayer(t,n):”static”===e&&this._createStaticPlayer(t,n)},e.prototype._createCollapsePlayer=function(t,e){var n=this._checkPlayerSelectorOnPage(“stickyRelated”),i=n.player,r=n.playerElement,a=i||this._potentialPlayerMap.stationaryRelated[0];a&&a.playerId&&(this._shouldOverrideElement(e)&&(e=this._getOverrideElement(i,r,e)),e=document.querySelector(“#cls-video-container-“.concat(t,” > div”))||e,this._createStickyRelatedPlayer(o(o({},a),{mediaId:t}),e))},e.prototype._createStaticPlayer=function(t,e){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId){var n=this._potentialPlayerMap.stationaryRelated[0];this._createStationaryRelatedPlayer(o(o({},n),{mediaId:t}),e)}},e.prototype._shouldRunAutoplayPlayers=function(){return!(!this._isVideoAllowedOnPage()||!(this._potentialPlayerMap.stickyRelated.length||this._potentialPlayerMap.stickyPlaylist.length||this._potentialPlayerMap.sekindo.length))},e.prototype._determineAutoplayPlayers=function(){var t=this._component,e=”VideoManagerComponent”===t,n=this._config;if(this._stickyRelatedOnPage)v.event(t,”stickyRelatedOnPage”,e&&{device:n&&n.context.device,isDesktop:this._device}||{});else{var i=this._checkPlayerSelectorOnPage(“stickyPlaylist”),o=i.player,r=i.playerElement,a=this._checkPlayerSelectorOnPage(“sekindo”),l=a.player,s=a.playerElement;o&&o.playerId&&o.playlistId&&r?this._createPlaylistPlayer(o,r):l&&l.playlistId&&s?this._createSekindoPlayer(l,s):v.event(t,”noStickyPlaylistOrSekindo”,e&&{vendor:”none”,device:n&&n.context.device,isDesktop:this._device}||{})}},e.prototype._initializeRelatedPlayers=function(t){for(var e=0;e Source

Leave a Reply